@font-face{font-family:Inter;src:url('./assets/inter-regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url('./assets/inter-bold.woff2') format('woff2');font-weight:700;font-display:swap}
:root{color-scheme:light;--paper:#fbfaf7;--ink:#172536;--mute:#536274;--blue:#154db7;--line:#d4d9de;--tint:#e4ecf8;--pale:#f0f4fa;font:100%/1.55 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
body{margin:0}
.wrap{width:min(1120px,calc(100% - 6.5rem));margin-inline:auto}
.defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.icon{width:1.2em;height:1.2em;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}
[hidden]{display:none!important}
button,a{font:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button,summary,.download{cursor:pointer}
button,.download{border:0;line-height:1.22;min-height:44px;padding:.68rem .95rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:.6rem;text-align:center;border-radius:9px;text-decoration:none;transition:background .16s,color .16s}
:focus-visible{outline:3px solid #155abe;outline-offset:4px}
::selection{color:#101d35;background:#b4cffc}
.top{border-bottom:1px solid var(--line)}
.top-inner{min-height:76px;display:flex;justify-content:space-between;align-items:center}
.brand{display:flex;gap:.64rem;align-items:center;font-size:1.27rem;font-weight:700;letter-spacing:-.04em}
.brand img{width:36px;height:30px}
.quiet{background:transparent;color:#31485f;font-size:.88rem}
.quiet:hover{background:#e9edf2}
.primary{background:var(--blue);color:white}
.primary:hover{background:#0b398e}
.secondary,.download{background:#e5edfc;color:#143e8f}
.secondary:hover,.download:hover{background:#d2e1fc}
button:disabled{opacity:.55;cursor:wait}
.import{margin-top:2rem;position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1.04fr 1fr;align-items:center;background:var(--tint);border-radius:15px;min-height:350px}
.hero-text{padding:2.5rem 0 2.5rem clamp(2rem,4.2vw,4rem);z-index:1}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(3.5rem,6.1vw,5.6rem);letter-spacing:-.04em;line-height:.94;color:#152941}
h1 em{font-family:Georgia,"Times New Roman",serif;color:#204c96;letter-spacing:-.04em;font-weight:400}
.hero-text>p{max-width:35ch;margin:1rem 0 1.25rem;color:#3b4f68}
.hero-text>.primary{padding:.85rem 1.2rem}
.privacy{display:flex;align-items:center;gap:.35rem;margin-top:.75rem;color:#435b76;font-size:.82rem}
.privacy .icon{width:14px;height:14px}
.art{height:100%;position:relative;display:grid;place-items:center;pointer-events:none;background:radial-gradient(ellipse at 65% 75%,#cbdaf0,transparent 68%)}
.folio{position:relative;width:clamp(235px,31vw,385px);aspect-ratio:1.3;transform:rotate(2deg);filter:drop-shadow(1px 15px 10px #354d6b26)}
.folder-back{position:absolute;inset:30% 2% 2%;background:#284c99;border-radius:9px;transform:rotate(-4deg)}
.folder-back:before{content:"";position:absolute;background:inherit;bottom:95%;left:0;width:41%;height:15%;border-radius:6px 10px 0 0}
.print{position:absolute;background:#fffdf7;padding:2% 2% 5%;box-shadow:0 3px 8px #24355240}
.print img{width:100%;height:100%;object-fit:cover;display:block}
.print-back{left:6%;top:3%;width:63%;height:61%;transform:rotate(-14deg)}
.print-front{right:3%;top:13%;width:64%;height:61%;transform:rotate(10deg)}
.folder-front{position:absolute;inset:52% -1% 0 1%;display:flex;align-items:flex-end;padding:0 0 6% 8%;border-radius:4px 6px 10px 10px;background:linear-gradient(120deg,#6c9cf1,#527fd8 75%,#5684dc);transform:skew(-5deg) rotate(-4deg);box-shadow:inset 0 2px 0 #a9c6fa}
.folder-label{display:flex;align-items:center;gap:.42em;padding:.27em .7em;background:#eef4ff;color:#214779;border-radius:3px;font-size:.84rem;letter-spacing:.01em}
.status:empty{display:none}
.status,.export-box{border-radius:12px;background:var(--pale);padding:1rem 1.25rem;margin-top:1rem}
.library{margin:2.4rem 0 1.25rem}
.section-head,.group-head,.actions,.file-row,.batch-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
h2{font-size:clamp(1.45rem,2.6vw,2rem);letter-spacing:-.04em;line-height:1.15}
.section-head p,.empty p,.guide-body p,.export-box p,.file-info small{color:var(--mute)}
.section-head p{margin-top:.32rem;font-size:.93rem}
.empty{margin-top:1.05rem;border:1px dashed #a9b6c4;border-radius:12px;min-height:100px;display:flex;align-items:center;gap:1.1rem;padding:1.35rem 1.65rem}
.empty-icon,.group-icon{display:grid;place-items:center;width:46px;height:46px;background:#e7edf4;border-radius:12px;color:#58708d;flex:none}
.empty-icon>.icon,.group-icon>.icon{width:25px;height:25px}
h3{font-size:1rem;line-height:1.4}
.empty p,.group-meta,.file-info small{font-size:.86rem}
.guide{margin-top:1.65rem;border-block:1px solid var(--line)}
summary{list-style:none}
summary::-webkit-details-marker{display:none}
.guide>summary,summary>span{display:flex;align-items:center;gap:.65rem}
.guide>summary{justify-content:space-between;font-weight:700;font-size:.94rem;padding:1.05rem .15rem;min-height:52px}
.caret{transition:transform .15s}
details[open]>summary .caret{transform:rotate(180deg)}
.guide-body{max-width:70ch;padding:0 0 1.35rem 2rem}
.guide-body p,.export-box p{margin:.3rem 0 .8rem}
.guide-body h3:not(:first-child){margin-top:1rem}
footer{display:flex;justify-content:space-between;gap:.65rem;padding-block:1.35rem max(1.35rem,env(safe-area-inset-bottom));color:var(--mute);font-size:.8rem}
.dot{padding:0 .3rem;color:#778394}
.actions{justify-content:flex-start;flex-wrap:wrap}
#groups:not(:empty){margin-top:1rem;border-top:1px solid var(--line)}
.group{border-bottom:1px solid var(--line);padding:.4rem 0}
.group-head>button:first-child{background:transparent;text-align:left;justify-content:flex-start;padding:.35rem .2rem;flex:1;min-width:0}
.group-head>button:first-child:hover{color:var(--blue)}
.group-icon{background:#e0eafb;color:var(--blue);width:42px;height:42px}
.group-meta{display:block;color:var(--mute);font-weight:400;margin-top:.25rem}
.group-details{margin:0 0 .5rem 2.8rem}
.file-row{border-top:1px solid #dfe3e8;padding:.45rem .3rem .45rem .5rem;flex-wrap:wrap}
.file-info{flex:1;min-width:10rem;overflow-wrap:anywhere}
.file-info small{display:block}
.file-row input{min-height:44px;padding:.3rem .45rem;border:1px solid #aab7c7;background:white;color:var(--ink);border-radius:5px;font:inherit;max-width:100%}
.export-box{border:1px solid #c7d6eb;scroll-margin-top:1rem}
.export-box h2{font-size:1.4rem}
.export-box progress{display:block;width:min(100%,25rem);accent-color:var(--blue)}
.batch-row{border-top:1px solid var(--line);padding:.5rem 0}
.batch-row>span{overflow-wrap:anywhere}
.export-box p.note{font-size:.88rem;margin:.8rem 0 0}
.guide summary:hover,.group-head>button:first-child:focus-visible{color:var(--blue)}
@media(max-width:800px){.wrap{width:calc(100% - 3.5rem)}.hero-text{padding:2rem 0 2rem 2rem}.import{min-height:320px}.group-details{margin-left:0}}
@media(max-width:600px){.wrap{width:calc(100% - 2rem)}.top-inner{min-height:60px}.brand img{width:29px;height:25px}.import{margin-top:1rem;grid-template-columns:1fr;min-height:0}.hero-text{padding:1.7rem 1.35rem 1.5rem}.hero-text>p{max-width:26ch;margin-top:.9rem}.art{position:absolute;width:30%;height:90px;right:6%;top:2rem;background:none}.folio{width:100%;min-width:80px}.folder-label{display:none}h1{font-size:clamp(3rem,11vw,4rem)}.library{margin-top:1.7rem}.section-head{flex-wrap:wrap}.empty{padding:1rem;gap:.75rem}.group-head{gap:.28rem}.group-head .secondary{font-size:.82rem;padding:.5rem}.guide{margin-top:1.2rem}.guide-body{padding-left:0}.batch-row{flex-wrap:wrap}footer{flex-wrap:wrap}}
@media(max-width:340px){.art{display:none}.group-icon{display:none}}
@media(min-width:341px) and (max-width:440px){.art{width:24%;right:5%;top:2.35rem}}
#counts:empty{display:none}
.import-actions button{padding:.82rem 1rem}
.library-link{display:inline-flex;align-items:center;min-height:44px;color:#153e81;font-weight:700;text-underline-offset:3px}
.hero-text .privacy{margin-top:.1rem}
#period-filter{border:0;padding:0;margin:0 0 1.15rem;min-width:0}
#period-filter legend{padding:0;font-size:.93rem;font-weight:700;margin-bottom:.45rem}
.period-fields{display:flex;flex-wrap:wrap;gap:.5rem}
.period-fields label{display:grid;gap:.15rem;font-size:.83rem;font-weight:700;color:#374d68}
.period-fields select{max-width:100%;min-height:44px;font:inherit;font-size:1rem;color:var(--ink);background:var(--paper);border:1px solid #889cb2;border-radius:7px;padding:.4rem .35rem}
.period-fields select:disabled{color:#536274;background:#ecf0f5;border-color:#bdc8d5}
.guide-body li{margin-bottom:.6rem}
.guide-body a{color:#13438d;text-underline-offset:3px}
.period{padding:.3rem 0 .3rem .15rem}
.period>.period{padding-left:.8rem}
.period>summary{display:flex;align-items:center;gap:.55rem;min-height:44px;font-size:1.02rem;font-weight:700;text-transform:capitalize}
.period>summary::before{content:"";width:.46rem;height:.46rem;margin-left:.3rem;border:solid var(--blue);border-width:0 2px 2px 0;transform:rotate(-45deg)}
.period[open]>summary::before{transform:rotate(45deg)}
.photo-strip{display:flex;gap:.45rem;flex-wrap:wrap;align-items:center;padding:.3rem 0 .8rem .2rem}
.thumbnail{display:grid;place-items:center;padding:0;overflow:hidden;width:66px;height:66px;flex:none;background:#e8edf2;border:1px solid #b9c6d1;border-radius:7px;color:#52677c}
.thumbnail:hover{border-color:var(--blue)}
.thumbnail img{display:block;width:100%;height:100%;object-fit:cover}
#viewer{width:min(92vw,980px);max-height:90vh;padding:1rem 1.2rem;border:0;border-radius:14px;background:var(--paper);color:var(--ink)}
#viewer::backdrop{background:rgba(12,22,34,.84)}
.viewer-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem}
#viewer-title{overflow-wrap:anywhere}
#viewer-image{display:grid;place-items:center;background:#142031;min-height:8rem;border-radius:8px;margin:.6rem 0;color:white}
#viewer-image img{display:block;max-width:100%;max-height:66vh;object-fit:contain}
#viewer-note{color:var(--mute);overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}
