:root{--canvas: #f5f5fa;--ink: #33333b;--muted: #575764;--nav-height: 60px;font-family:Inter,Noto Sans JP,Hiragino Sans,Yu Gothic,system-ui,sans-serif;color:var(--ink);background:var(--canvas);line-height:1.5;font-synthesis:none}.theme-pdf{--accent: #e5322d;--accent-ink: #b2221d;--accent-hover: #c72b27;--tint: #fff0ed;--wash: #f4e9ed}.theme-img{--accent: #397de7;--accent-ink: #2456aa;--accent-hover: #2b65bc;--tint: #ebf3ff;--wash: #e6ecf8}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button,a[download]{cursor:pointer}button:disabled{cursor:default}a{color:inherit;text-underline-offset:.22em}:focus-visible{outline:2px solid var(--accent-ink);outline-offset:-2px}[hidden]{display:none!important}body{background:var(--canvas)}.tool-surface{min-height:100vh;min-height:100dvh;display:flow-root}.tool-heading{padding:29px 24px 32px;text-align:center}.tool-heading h1{margin:0;font-size:2.625rem;font-weight:650;line-height:1.22;letter-spacing:-.035em}.tool-heading p{margin:8px auto 0;font-size:1.375rem;line-height:1.5;max-width:54rem;color:var(--muted);text-wrap:pretty}.tool-surface:has(.tool-root:not([data-stage=pick])) :is(.tool-heading,.processor-foot){display:none}.processor-foot{display:flex;justify-content:space-between;gap:1rem;margin-top:auto;padding:10px 24px;font-size:.8rem;color:var(--muted);background:#fafafd}.tool-surface:has(.tool-root[data-stage=pick]){display:flex;flex-direction:column}.loading-note{text-align:center;color:var(--muted)}p,h2,h3{margin:0}button,.button-primary{border:0;background:#ebebf1;border-radius:8px;padding:.6rem .9rem;font-weight:600}button:disabled{opacity:.55}.button-primary{background:var(--accent);color:#fff}input:not([type=file],[type=checkbox],[type=radio]),select{min-width:0;max-width:100%;padding:.55rem .7rem;border:1px solid #9898a4;border-radius:6px;background-color:#fff}select{appearance:none;padding-inline-end:2.5rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23343440' stroke-width='2'/%3E%3C/svg%3E");background-position:right .85rem center;background-repeat:no-repeat}.file-list{list-style:none;margin:0;padding:0}.actions{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap}.tool-status,.muted{font-size:.94rem;color:var(--muted)}a[download]{font-weight:650}@media(max-width:720px){.tool-heading{padding:27px 24px 28px}.tool-heading h1{font-size:1.55rem;line-height:1.35}.tool-heading p{font-size:1rem;margin-top:6px}.processor-foot{padding-inline:18px}}@media(max-height:430px){.processor-foot{position:static;margin-top:18px}}.picker-row{display:grid;grid-template-columns:1fr minmax(0,330px) 1fr;align-items:center;width:100%;gap:8px}.picker-row>:first-child{grid-column:2}.picker-shortcuts{grid-column:3;display:grid;justify-items:start;gap:5px}.picker-shortcuts .picker-shortcut{display:grid;place-items:center;width:37px;height:37px;padding:0;border-radius:50%;background:var(--accent);color:#fff;box-shadow:0 2px 4px #24243720}.picker-shortcut:hover{background:var(--accent-hover)}.picker-shortcut:focus-visible{outline-color:#21212d}.shortcut-sample{width:17px;height:17px;background:#fff;clip-path:polygon(23% 7%,93% 50%,23% 93%)}.shortcut-info{display:grid;place-items:center;width:18px;height:18px;border:1.6px solid white;border-radius:50%;font:700 14px/1 Georgia,serif}.picker-info{position:fixed;inset:20% auto auto 50%;transform:translate(-50%);margin:0;border:0;border-radius:12px;width:min(340px,calc(100% - 32px));padding:20px;text-align:start;color:var(--ink);background:#fff;box-shadow:0 5px 28px #25253833}.picker-info p{margin:.45rem 0 .95rem}.picker-info button{min-height:40px}@media(max-width:720px){.picker-row{display:flex;flex-direction:column;align-items:stretch;width:min(100%,400px);gap:10px;margin-inline:auto}.picker-row>:first-child{width:100%;min-height:80px}.picker-shortcuts{display:flex;justify-content:flex-end;gap:8px}}.theme-img .tool-heading p{max-width:44rem}@media(max-width:720px)and (pointer:coarse){.pdf-drop-hint,.image-drop-hint{display:none}}.pdf-tool{--pdf-accent: var(--accent, #d43832);color:var(--ink, #34343d)}.pdf-tool [hidden]{display:none!important}.pdf-entry{text-align:center;padding:0 16px 30px}.pdf-pick-button,.pdf-add{position:relative;cursor:pointer}.pdf-pick-button,.pdf-tool .pdf-primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:10px;background:var(--pdf-accent);color:#fff;text-decoration:none;font-weight:650;line-height:1.25}.pdf-pick-button{width:min(330px,100%);min-height:80px;padding:16px 24px;font-size:clamp(1.2rem,4vw,1.5rem);box-shadow:0 3px 7px #0002}.pdf-tool input[type=file]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.pdf-pick-button:hover,.pdf-tool .pdf-primary:hover,.pdf-add:hover{background:#b72c29}.pdf-pick-button:focus-within,.pdf-add:focus-within,.pdf-tool .pdf-primary:focus-visible{outline:3px solid #24242c;outline-offset:-3px}.pdf-drop-hint{margin:12px 0 0;font-size:.92rem;color:var(--muted, #575760)}.pdf-dragging .pdf-entry:after,.pdf-dragging .pdf-board:after{content:"";position:fixed;inset:8px;pointer-events:none;background:#d4383212;border-radius:12px}.pdf-workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,300px);min-height:100svh;background:var(--canvas, #f5f5fa)}.pdf-board{position:relative;min-width:0;padding:70px 65px 26px}.pdf-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(165px,100%),198px));justify-content:center;align-content:start;gap:8px;padding:0;margin:0 auto;list-style:none}.pdf-tile{position:relative;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:14px 10px 10px;background:#fff;border-radius:8px;box-shadow:0 2px 6px #24242c1a;cursor:grab;text-align:center}.pdf-tile:active{cursor:grabbing}.pdf-tile.is-moving{opacity:.45}.pdf-tile.is-target{background:#fee7e5}.pdf-position{position:absolute;left:8px;top:8px;min-width:22px;padding:2px 5px;border-radius:5px;background:#32323a;color:#fff;font:650 .71rem/1.5 system-ui,sans-serif;font-variant-numeric:tabular-nums}.pdf-preview{min-width:0;height:181px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.pdf-preview img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 1px 5px #0003}.pdf-document{width:56px;height:70px;border-radius:4px;background:#f7d9d7;clip-path:polygon(0 0,70% 0,100% 24%,100% 100%,0 100%);display:grid;place-items:center;color:#92312d;font:750 .9rem/1 system-ui,sans-serif}.pdf-preview small{padding:0 4px;color:var(--muted, #575760);font-size:.7rem}.pdf-details{display:grid;gap:3px;margin-top:auto;overflow:hidden}.pdf-details strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.84rem;font-weight:540}.pdf-details small{font-size:.73rem;color:var(--muted, #575760)}.pdf-order-controls{display:flex;align-items:center;justify-content:center;gap:5px}.pdf-order-controls button{display:inline-grid;place-items:center;min-width:32px;min-height:30px;padding:3px 8px;border:0;border-radius:5px;color:#42424b;background:#f0f0f4;font:650 1.03rem/1 system-ui,sans-serif}.pdf-order-controls button:disabled{opacity:.33}.pdf-tools{position:absolute;right:24px;top:60px;display:grid;gap:8px}.pdf-round{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;padding:0;font:500 1.8rem/1 system-ui,sans-serif;box-shadow:0 2px 5px #0002}.pdf-add{background:var(--pdf-accent);color:#fff}.pdf-settings-toggle{display:none}.pdf-panel{position:sticky;top:0;display:flex;flex-direction:column;align-self:start;justify-content:space-between;height:100svh;min-height:390px;background:#fff;padding:25px 20px 16px;box-shadow:-3px 0 18px #24242c08}.pdf-options h2{font-size:1.55rem;line-height:1.3;margin:0 0 23px;text-align:center}.pdf-instructions{padding:13px 15px;border-radius:7px;background:#eaf1fc;color:#37475e;font-size:.9rem}.pdf-stats{display:grid;gap:9px;margin:24px 0 17px}.pdf-stats>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.pdf-stats dt,.pdf-limit{color:var(--muted, #575760);font-size:.86rem}.pdf-stats dd{margin:0;font-weight:650}.pdf-options button,.pdf-result-actions button,[data-action=cancel]{border:0;border-radius:6px;color:#3e3e49;background:#efeff3;padding:9px 13px}.pdf-options [data-action=sort]{width:100%;text-align:left}.pdf-options [data-action=sort] span{margin-right:5px;font-weight:690}.pdf-limit{margin:14px 0 12px}.pdf-reset-slot>button{padding:5px 0;background:transparent;font-size:.83rem;text-decoration:underline;text-underline-offset:.17em}.pdf-panel-actions{display:grid;gap:8px;margin-top:20px}.pdf-panel-actions .pdf-primary{width:100%;min-height:64px;font-size:1.24rem}.pdf-primary:disabled{opacity:.5}.pdf-needs-two{font-size:.85rem;color:var(--muted, #575760)}.pdf-status{margin:6px 0;font-size:.9rem;overflow-wrap:anywhere;color:var(--muted, #575760)}.pdf-entry .pdf-status{margin:0 auto 12px;max-width:36rem}.pdf-status:empty{display:none}.pdf-status[data-error]{color:#a52722}.pdf-result{padding:clamp(44px,10vh,82px) 16px 42px;text-align:center}.pdf-success-icon{display:grid;place-items:center;margin:0 auto 16px;width:54px;height:54px;border-radius:50%;background:#e1efe7;color:#24684b;font-size:1.65rem;font-weight:700}.pdf-result h2{margin:0;font-size:clamp(1.65rem,4vw,2.25rem);line-height:1.25}.pdf-result-meta{margin:12px 0 22px;color:var(--muted, #575760)}.pdf-tool .pdf-save{min-height:70px;padding:14px 32px;font-size:clamp(1.05rem,4vw,1.45rem)}.pdf-result-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:20px}@media(min-width:721px)and (hover:hover){.pdf-tile{min-height:244px}.pdf-order-controls{position:absolute;right:6px;top:6px;opacity:0}.pdf-tile:hover .pdf-order-controls,.pdf-tile:focus-within .pdf-order-controls{opacity:1}}@media(max-width:720px){.pdf-entry{padding-inline:24px}.pdf-pick-button{min-height:80px;width:min(360px,100%)}.pdf-workbench{display:block}.pdf-board{min-height:100svh;padding:66px 54px 108px}.pdf-list{grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),190px));gap:10px}.pdf-tile{padding:10px 7px 8px}.pdf-preview{height:157px}.pdf-tools{position:fixed;top:60px;right:12px;z-index:2}.pdf-round{width:38px;height:38px}.pdf-settings-toggle{grid-row:1;display:grid;background:#fff;color:#41414c;font-size:1.15rem}.pdf-panel{position:static;display:block;min-height:0;height:auto;padding:0;box-shadow:none}.pdf-options{display:none}.show-options .pdf-options{position:fixed;z-index:3;inset:48px 58px auto auto;display:block;width:min(290px,calc(100% - 70px));max-height:calc(100svh - 110px);padding:18px;overflow:auto;border-radius:9px;background:#fff;box-shadow:0 5px 24px #20202b35}.pdf-options h2{font-size:1.2rem;margin-bottom:10px}.pdf-stats{margin:12px 0}.pdf-panel-actions{position:fixed;z-index:2;inset:auto 0 0;margin:0;gap:4px;padding:8px 12px max(8px,env(safe-area-inset-bottom));background:#fff;box-shadow:0 -3px 14px #24242c0d}.pdf-panel-actions .pdf-primary{min-height:48px;font-size:1.09rem}.pdf-panel-actions .pdf-status,.pdf-needs-two{text-align:center;font-size:.8rem}.pdf-order-controls button{min-width:32px;min-height:32px}}@media(max-width:500px){.pdf-list{grid-template-columns:minmax(0,195px)}.pdf-order-controls :is([data-action=up],[data-action=down]) span{transform:rotate(90deg)}}
