@font-face{font-family:Open;src:url(assets/OpenSans-Regular.ttf)}
@font-face{font-family:Open;src:url(assets/OpenSans-Semibold.ttf);font-weight:600}
@font-face{font-family:Open;src:url(assets/OpenSans-Bold.ttf);font-weight:700}
@font-face{font-family:Display;src:url(assets/NotoSerifDisplay-Regular.ttf)}
@font-face{font-family:Display;src:url(assets/NotoSerifDisplay-Italic.ttf);font-style:italic}

:root{font:16px Open,Arial,sans-serif;color:#202d38;background:#f5f7f9;--ink:#243442;--muted:#526170;--line:#cfd7dd}
*{box-sizing:border-box}
body{margin:0}
button,input{font:inherit}
button,a,input,label{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:default}
a{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,.drop:focus-within{outline:3px solid #617e97;outline-offset:3px}
[hidden]{display:none!important}
h1,h2,p{margin:0}
h1,h2{font-family:Open,Arial,sans-serif;font-weight:600;line-height:1.35}
h1{font-family:Display,Georgia,serif;font-weight:400;font-size:2.25rem;line-height:1.15;letter-spacing:-.035em}
h2{font-size:1.0625rem}

header{background:#243442;color:#f7f9fb}
.nav,main,footer{width:min(900px,calc(100% - 48px));margin:auto}
.nav{height:64px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.brand,.site-link{display:flex;align-items:center;text-decoration:none}
.brand{gap:10px;font:600 17px Open}
.brand-mark{display:block;flex:none}
.site-link{font-size:.82rem;color:#e2e9ef}
.intro{padding:28px 0 20px}
.intro p{font-size:.9rem;color:var(--muted);line-height:1.6;margin-top:6px}

.upload-card{padding:22px 24px 16px;background:#fff;border:1px solid var(--line);border-radius:10px}
.card-title,.collection-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.card-title>span{color:var(--muted);font-size:.86rem;font-variant-numeric:tabular-nums}
.drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border:1.5px dashed #8c9eac;border-radius:7px;background:#eef2f5;min-height:146px;margin:14px 0 15px;padding:10px;cursor:pointer}
.drop.over,.drop:hover{background:#e2eaf1;border-color:#4b6478}
.drop input{position:absolute;width:100%;height:100%;inset:0;opacity:0;cursor:pointer}
.photo-icon{width:34px;height:30px;color:#476176}
.photo-icon svg{height:100%;width:100%}
.drop strong{font-size:.95rem;font-weight:600;margin-top:3px}
.file-types{font-size:.8rem;color:var(--muted);margin-top:3px}
.choose{border:1px solid #8e9fac;background:white;font-size:.84rem;font-weight:600;padding:5px 14px;border-radius:5px;margin-top:8px}
.owner-label{display:block;font-weight:600;font-size:.86rem;margin-bottom:6px}
.owner-label span{font-weight:400;color:var(--muted)}
input[type=text]{background:white;border:1px solid #b9c5cf;border-radius:5px;color:var(--ink);padding:8px 10px}
#owner{width:100%;font-size:.9rem;height:38px}
.primary{background:var(--ink);color:white;border:0;border-radius:6px;padding:11px 18px;font-size:.9rem;font-weight:600}
.primary:hover:not(:disabled){background:#364c5e}
.primary:disabled{background:#e1e6eb;color:#606f7b}
.private{display:flex;justify-content:center;align-items:center;gap:6px;margin-top:9px;color:var(--muted);font-size:.77rem}
#status:not(:empty){padding:10px 13px;margin-top:14px;border-left:3px solid #607888;background:#e9eef2;color:#334a5c;font-size:.86rem;white-space:pre-line}
.report-status:not(:empty){margin-top:18px;color:var(--muted);font-size:.86rem;line-height:1.5}

.report-result{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0 18px;padding:18px 22px;background:#fff;border:1px solid var(--line);border-radius:10px}
.report-result>div{min-width:0}
.report-count,.report-owner{font-size:.86rem;line-height:1.5;color:var(--muted);margin-top:4px}
.report-owner{overflow-wrap:anywhere}
#save{display:inline-block;text-decoration:none;flex-shrink:0}
.back{display:block;background:none;border:0;color:var(--ink);padding:0;margin-bottom:8px;font-size:.86rem;text-decoration:underline;text-underline-offset:.15em}
.report-page{margin:0 0 24px}
.report-sheet{border:1px solid var(--line);background:#fafbfc;box-shadow:0 2px 9px #182b3e15}
.report-sheet img{display:block;width:100%;height:auto}
.report-page figcaption{margin-top:7px;font-size:.8rem;color:var(--muted)}
.above-order-footer{overflow:hidden}
.order-footer{padding:10px 4.44% 12px}
.order-footer p{font-size:.9rem;line-height:1.55;overflow-wrap:anywhere}
.order-footer a{text-underline-offset:.15em}
.sheet-number{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:.75rem;line-height:1.4;margin-top:12px;border-top:1px solid var(--line);padding-top:8px}
.rate-details{font-size:.86rem;color:var(--muted);margin-top:10px;overflow-x:auto}
.rate-details summary{cursor:pointer}
.rate-details table{border-collapse:collapse;width:100%;margin:.5rem 0}
.rate-details td,.rate-details th{border-bottom:1px solid var(--line);padding:5px;text-align:right}
.rate-details td:first-child,.rate-details th:first-child{text-align:left}

#collection{margin-top:22px}
.collection-head{padding-bottom:9px;border-bottom:1px solid var(--line)}
#list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));column-gap:20px}
.asset-row{min-width:0;padding:6px 0;display:grid;align-items:center;grid-template-columns:36px minmax(0,1fr) 32px;gap:7px;border-bottom:1px solid var(--line)}
.thumb{background:#e4e9ee;padding:3px;border-radius:4px;height:36px}
.thumb img{width:100%;height:100%;object-fit:contain;display:block}
.asset-row input[type=text]{min-width:0;width:100%;padding:5px 8px;font-size:.9rem}
.remove{color:var(--ink);background:none;border:0;height:36px;padding:0;font-size:1.3rem}
footer{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding:16px 0 25px;margin-top:30px;color:var(--muted);font-size:.78rem}

@media(max-width:600px){
  .nav,main,footer{width:calc(100% - 32px)}
  .nav{height:58px;gap:10px}
  .brand{font-size:.95rem;gap:8px}
  .brand-mark{width:30px;height:30px}
  .site-link{font-size:.72rem}
  .intro{padding:22px 0 16px}
  h1{font-size:2rem}
  .upload-card{padding:18px 16px 14px}
  .report-result{align-items:flex-start;flex-direction:column;padding:16px}
  .report-result .primary{width:100%;text-align:center}
  footer{font-size:.72rem;flex-wrap:wrap}
}
