.badge { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.hero h1 { font-size: 1.7rem; letter-spacing: -.02em; margin: 10px 0 6px; }
.hero p { color: var(--muted); max-width: 640px; }
.topbar .wrap { height: auto; min-height: 58px; gap: 16px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.topbar .brand small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); line-height: 1.1; }
.topbar nav { margin-right: auto; margin-left: 24px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-right form { display: inline; }
.link-btn { background: none; border: 0; font: inherit; font-size: .92rem; color: var(--muted); cursor: pointer; text-decoration: none; }
.link-btn:hover { color: var(--ink); }
a.btn { text-decoration: none; display: inline-block; text-align: center; }
.btn-sm { padding: 6px 12px; font-size: .88rem; }
.danger { color: var(--danger) !important; }
.lock { display: inline; } .is-auth .lock { display: none; }
#auth-modal { z-index: 1100; }
.modal-box.small { max-width: 390px; display: flex; flex-direction: column; gap: 14px; }
.modal-box.small .modal-buttons { margin-top: 12px; }
.flash { padding: 10px 14px; border-radius: 8px; font-size: .9rem; }
.flash.ok { background: #ecfdf3; color: #067647; } .flash.err { background: #fef3f2; color: var(--danger); }
.auth-card { width: 100%; max-width: 410px; margin: 24px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { font-size: 1.35rem; }
.form, .size-form { display: flex; flex-direction: column; gap: 14px; }
.form label, .size-form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
label.check { flex-direction: row !important; align-items: center; gap: 8px !important; }
input[type=text], input[type=email], input[type=password], input[type=number] { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; width: 100%; }
.size-form { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.size-form .check, .size-form .btns { grid-column: 1 / -1; }
.btns { display: flex; gap: 8px; }
.dash { display: grid !important; grid-template-columns: 210px 1fr; gap: 28px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.side a { padding: 9px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .92rem; white-space: nowrap; }
.side a:hover { background: var(--bg); } .side a.on { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.stats, .videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.stat strong { font-size: 1.4rem; } .stat a { font-size: .88rem; }
.vcard { display: flex; flex-direction: column; gap: 6px; } .vcard h3 { font-size: .95rem; }
.video { aspect-ratio: 16 / 9; background: #0f1218; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #9aa3b2; font-size: .85rem; }
.video iframe { width: 100%; height: 100%; border: 0; }
.steps { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }
.table-scroll { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: .9rem; }
.list th, .list td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; } .row-actions form { display: inline; }
body { min-height: 100vh; display: flex; flex-direction: column; } main.wrap { flex: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding-bottom: 16px; }
@media (max-width: 760px) {
    .dash, .footer-grid, .size-form { grid-template-columns: 1fr; }
    .side { flex-direction: row; overflow-x: auto; }
    .topbar nav { margin-left: 0; }
}

/* ---- HyperPrint refresh ---- */
:root { --green: #22c55e; --navy: #0b1530; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.brand img { display: block; height: 34px; width: auto; }
.hero { text-align: center; padding: 28px 0 4px; display: flex; flex-direction: column; align-items: center; background: radial-gradient(60% 80% at 50% 0, #e8f1ff 0, transparent 70%); }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; max-width: 780px; }
.hero p { margin: 4px auto 0; font-size: 1.02rem; }
.grad { background: linear-gradient(90deg, var(--accent), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 14px; color: var(--muted); font-size: .85rem; }
.trust li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.sec { font-size: 1.4rem; font-weight: 700; text-align: center; letter-spacing: -.02em; margin-bottom: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feat, .steps3 li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; list-style: none; }
.feat b, .steps3 b { display: block; margin-bottom: 4px; }
.feat p, .steps3 p { color: var(--muted); font-size: .9rem; }
.steps3 { counter-reset: s; padding: 0; } .steps3 li { counter-increment: s; } .steps3 b::before { content: counter(s); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; }
.center { text-align: center; margin-top: 18px; }
.footer { background: var(--surface); margin-top: 24px; padding: 32px 0 20px; }
.footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; }
.flinks { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; } .flinks a { color: var(--muted); text-decoration: none; font-size: .88rem; } .flinks a:hover { color: var(--accent); }
.copy { border-top: 1px solid var(--line); padding-top: 14px; }
.legal h2 { font-size: 1.1rem; margin-top: 8px; } .legal { max-width: 720px; }
.auth-card.wide { max-width: 520px; }
textarea { font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; width: 100%; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.btn-primary { box-shadow: 0 1px 2px rgba(10,108,240,.3); }
@media (max-width: 760px) { .topbar nav { order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 16px; } .footer-grid { grid-template-columns: 1fr 1fr; } }
@media print { .topbar, .footer { display: none !important; } }
