:root { --ink:#152A32; --muted:#718087; --green:#176B5B; --soft:#E4F2ED; --paper:#F5F7F4; --line:#E0E7E2; --red:#A73D3D; }
* { box-sizing: border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.45 system-ui, -apple-system, Segoe UI, sans-serif; }
.narrow { max-width:420px; margin:48px auto; padding:0 20px; }
.wide { max-width:860px; margin:0 auto; padding:16px 20px 60px; }
h1 { font-size:30px; margin:6px 0; }
.eyebrow { color:var(--green); font-size:11px; font-weight:800; letter-spacing:1.5px; display:block; }
.muted { color:var(--muted); } .small { font-size:13px; }
.label { color:var(--muted); font-size:12px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; margin:14px 0 4px; }
.card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:20px; display:flex; flex-direction:column; gap:12px; }
label { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:600; }
input:not([type=file]) { padding:12px; border:1px solid var(--line); border-radius:10px; font-size:16px; }
button { font:inherit; cursor:pointer; border-radius:12px; padding:11px 16px; border:1px solid var(--green); }
button.primary { background:var(--green); color:#fff; }
button.secondary { background:#fff; color:var(--green); }
button:disabled { opacity:.5; cursor:default; }
button.icon { width:44px; height:44px; padding:0; border-radius:50%; background:#fff; border-color:var(--line); font-size:20px; }
button.link { border:0; background:none; color:var(--green); padding:2px 6px; }
button.danger { color:var(--red); }
.topbar { display:flex; align-items:center; justify-content:space-between; max-width:860px; margin:0 auto; padding:14px 20px; }
.brand { text-align:center; }
.banner { position:sticky; top:0; z-index:5; padding:10px 20px; text-align:center; background:var(--soft); color:var(--green); }
.banner.error { background:#F8E4E4; color:var(--red); }
.banner-test { background:#FFF4D9; padding:8px 12px; border-radius:10px; margin:0; }
.toolbar { display:flex; gap:10px; flex-wrap:wrap; margin:12px 0; }
.crumbs { margin:10px 0 0; }
.crumbs button { border:0; background:none; color:var(--green); padding:2px 4px; font-weight:600; }
.crumbs span { color:var(--muted); }
.list { list-style:none; margin:0; padding:0; background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.list li { display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid var(--line); }
.list li:last-child { border-bottom:0; }
.list .name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.list .name button { border:0; background:none; padding:0; text-align:left; font-weight:600; color:var(--ink); }
.list .meta { color:var(--muted); font-size:13px; white-space:nowrap; }
.viewbar { margin:10px 0; } .viewbar input { flex:1; min-width:140px; } .viewbar select { padding:11px; border:1px solid var(--line); border-radius:12px; font:inherit; background:#fff; }
.dropzone { border:2px dashed transparent; border-radius:16px; min-height:120px; }
.dropzone.over { border-color:var(--green); background:var(--soft); }
.list li { cursor:default; }
.list .ico { width:36px; height:36px; display:flex; align-items:center; justify-content:center; font-size:24px; flex:none; overflow:hidden; border-radius:6px; }
.list .ico img { width:100%; height:100%; object-fit:cover; }
.list .when { color:var(--muted); font-size:13px; white-space:nowrap; }
.list.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; padding:12px; background:none; border:0; }
.list.grid li { flex-direction:column; align-items:stretch; text-align:center; border:1px solid var(--line); border-radius:14px; background:#fff; padding:10px; gap:6px; }
.list.grid li:last-child { border-bottom:1px solid var(--line); }
.list.grid .ico { width:100%; height:110px; font-size:52px; border-radius:10px; background:var(--paper); }
.list.grid .name { white-space:normal; word-break:break-word; flex:none; }
.preview { position:fixed; inset:0; background:rgba(15,25,30,.92); z-index:20; display:flex; flex-direction:column; }
.preview-bar { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 16px; color:#fff; }
.preview-body { flex:1; min-height:0; display:flex; align-items:center; justify-content:center; padding:0 16px 16px; }
.preview-body img, .preview-body video, .preview-body iframe { max-width:100%; max-height:100%; border:0; background:#fff; }
.preview-body iframe { width:100%; height:100%; }
.preview-body pre { color:#fff; white-space:pre-wrap; word-break:break-word; overflow:auto; max-height:100%; width:100%; }
.preview-body .nopreview { color:#fff; }
.usage { height:8px; background:var(--line); border-radius:4px; overflow:hidden; margin-top:6px; }
#usage-bar { height:100%; width:0; background:var(--green); }
code { word-break:break-all; background:var(--paper); padding:10px; border-radius:10px; }
.plans { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.plan { border:1px solid var(--line); border-radius:14px; padding:16px; display:flex; flex-direction:column; gap:8px; }
.plan.current { border-color:var(--green); background:var(--soft); }
.err { color:var(--red); margin:0; min-height:0; font-size:14px; }
.err:empty { display:none; }
.stack { display:flex; flex-direction:column; gap:10px; }
.navrow { display:flex; align-items:center; gap:10px; margin-top:10px; }
.navrow .crumbs { margin:0; }
.radio { flex-direction:row; align-items:flex-start; gap:10px; font-weight:400; padding:8px; border:1px solid var(--line); border-radius:12px; cursor:pointer; }
.radio input { margin-top:4px; }
.badge { font-size:12px; padding:2px 8px; border-radius:999px; white-space:nowrap; background:var(--paper); color:var(--muted); border:1px solid var(--line); }
.badge.standard { background:var(--soft); color:var(--green); border-color:var(--green); }
.badge.\32 fe { background:#E8E4F8; color:#4B3A9A; border-color:#4B3A9A; }
.badge.mixed { background:#FFF4D9; color:#8A6200; border-color:#C9A13B; }
.list .where { display:block; font-weight:400; color:var(--muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; }
.preview-info { text-align:center; padding:40px 16px; color:var(--ink); } .preview-info .big { font-size:64px; }
.hint { color:var(--muted); font-size:13px; }
.list.grid .badge { align-self:center; }
.modal { position:fixed; inset:0; background:rgba(15,25,30,.55); z-index:30; display:flex; align-items:center; justify-content:center; padding:16px; }
.modal-card { background:#fff; border-radius:16px; padding:20px; width:100%; max-width:460px; max-height:90vh; overflow:auto; }
.modal-card h2 { margin:0 0 10px; font-size:20px; }
.modal-body { display:flex; flex-direction:column; gap:10px; }
.upload-panel { position:fixed; right:16px; bottom:16px; width:min(380px, calc(100vw - 32px)); background:#fff; border:1px solid var(--line); border-radius:16px; padding:14px 16px; box-shadow:0 8px 30px rgba(0,0,0,.18); z-index:15; }
.upload-panel .toolbar { margin:8px 0 0; }
.upload-panel p { margin:6px 0 0; }
.up-head { display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; }
#up-bar { height:100%; width:0; background:var(--green); transition:width .3s; }
.up-errors { margin:6px 0 0; padding-left:18px; color:var(--red); font-size:13px; max-height:120px; overflow:auto; }
.qr { width:200px; height:200px; align-self:center; }
.btn { display:inline-block; text-decoration:none; border-radius:12px; padding:11px 16px; border:1px solid var(--green); text-align:center; }
.btn.primary { background:var(--green); color:#fff; }
.dl-link { color:var(--green); display:block; padding:4px 0; }
.downloads { display:flex; flex-direction:column; gap:6px; }
