/* Black Rose Foundation — hand-written CSS (no build step). */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #fafafa; --surface: #ffffff; --surface-2: #f4f4f5; --fg: #09090b; --muted: #52525b; --muted-2: #71717a;
  --border: #e4e4e7; --primary: #18181b; --primary-fg: #ffffff; --accent: #f59e0b; --accent-soft: #fffbeb; --accent-border: #fcd34d;
  --danger: #dc2626; --danger-soft: #fef2f2; --ok: #16a34a; --ok-soft: #f0fdf4; --brand: #b22222;
  --radius: 16px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 30px -14px rgba(0,0,0,.14);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
[data-theme="dark"] {
  --bg: #09090b; --surface: #18181b; --surface-2: #27272a; --fg: #f4f4f5; --muted: #a1a1aa; --muted-2: #71717a;
  --border: #27272a; --primary: #fafafa; --primary-fg: #09090b; --accent-soft: #2a1f05; --accent-border: #92600a;
  --danger-soft: #2a0f0f; --ok-soft: #0d2214; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.6);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--fg); line-height: 1.55; -webkit-font-smoothing: antialiased; transition: background .25s, color .25s; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 28px 0; }
.section + .section { border-top: 1px solid var(--border); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.xs { font-size: .72rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.bold { font-weight: 700; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-hero { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 36px; }
.grid-split { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-hero, .grid-split { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--muted-2); margin-bottom: 6px; display: block; }
.title-xl { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.title-lg { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.title-md { font-size: 1.25rem; font-weight: 800; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 42rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--primary); background: var(--primary); color: var(--primary-fg); font: 600 .82rem var(--font); cursor: pointer; text-decoration: none; transition: transform .15s, opacity .15s, background .15s; }
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-outline:hover { background: var(--surface-2); opacity: 1; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-gold { background: #bf9b30; border-color: #bf9b30; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: .74rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--fg); opacity: 1; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.link { color: var(--fg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-amber { color: #d97706; font-weight: 600; }

/* cards & bits */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-flat { box-shadow: none; }
.card-soft { background: var(--surface-2); box-shadow: none; }
.card-pad-lg { padding: 32px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .03em; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(22,163,74,.3); }
.badge-warn { background: var(--accent-soft); color: #b45309; border-color: var(--accent-border); }
.badge-bad { background: var(--danger-soft); color: var(--danger); border-color: rgba(220,38,38,.3); }
.iconbox { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1.15rem; }
.avatar { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; background: var(--surface-2); border: 2px solid var(--border); }
.avatar-lg { width: 96px; height: 96px; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #dc2626); border-radius: 999px; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }

/* forms */
label.lbl, .lbl { display: block; font-size: .74rem; font-weight: 700; color: var(--muted); margin: 0 0 5px; }
.field { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=url], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--fg); font: 500 .85rem var(--font); outline: none; transition: box-shadow .15s, border-color .15s;
}
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 2px var(--primary); border-color: transparent; }
textarea { resize: vertical; min-height: 96px; }
input[type=file] { font: 500 .8rem var(--font); color: var(--muted); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--primary); vertical-align: -3px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.help { font-size: .72rem; color: var(--muted-2); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); }

/* flash messages */
.flash-wrap { position: fixed; top: 78px; left: 50%; transform: translateX(-50%); z-index: 90; width: min(92vw, 460px); display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 14px; font-size: .84rem; font-weight: 600; box-shadow: var(--shadow); background: var(--surface); border: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.flash-success { background: var(--ok-soft); border-color: rgba(22,163,74,.35); color: var(--ok); }
.flash-error { background: var(--danger-soft); border-color: rgba(220,38,38,.35); color: var(--danger); }
.flash button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: .82rem; border: 1px solid var(--border); background: var(--surface-2); }
.alert-warn { background: var(--accent-soft); border-color: var(--accent-border); color: #92400e; }
[data-theme="dark"] .alert-warn { color: #fcd34d; }
.alert-ok { background: var(--ok-soft); border-color: rgba(22,163,74,.3); color: var(--ok); }
.alert-bad { background: var(--danger-soft); border-color: rgba(220,38,38,.3); color: var(--danger); }

/* nav */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-nav .inner { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.nav-links a:hover, .nav-links a.active { background: var(--surface-2); color: var(--fg); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: 66px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; display: none; }
  .site-nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-actions .hide-sm { display: none; }
}
main { padding-top: 66px; min-height: 60vh; }

/* hero */
.hero { padding: 40px 0 20px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 22px; margin-top: 28px; border-top: 1px solid var(--border); }
.stats b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.stats span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.slideshow { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.slideshow img.active { opacity: 1; }
.slideshow .dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; background: rgba(0,0,0,.4); padding: 5px 10px; border-radius: 999px; }
.slideshow .dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s; }
.slideshow .dots i.on { width: 20px; background: #fff; }
.only-desktop { display: block; } .only-mobile { display: none; }
@media (max-width: 767px) { .only-desktop { display: none; } .only-mobile { display: block; } }
.feature-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .92rem; }
.tick { width: 22px; height: 22px; border-radius: 99px; background: var(--primary); color: var(--primary-fg); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tick .icon { width: 13px; height: 13px; stroke-width: 3; }
.panel { background: color-mix(in srgb, var(--surface-2) 80%, transparent); border: 1px solid var(--border); border-radius: 22px; padding: clamp(20px, 4vw, 44px); }

/* cards used on lists */
.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.media-card:hover { transform: translateY(-3px); }
.media-card .thumb { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--surface-2); }
.media-card .body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.media-card h3 { font-size: 1.02rem; margin: 0; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .68rem; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); text-decoration: none; font-weight: 600; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.chip { padding: 7px 15px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font-size: .76rem; font-weight: 700; text-decoration: none; color: var(--muted); }
.chip.on, .chip:hover { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.team-card { text-align: center; }
.team-card img { width: 108px; height: 108px; border-radius: 999px; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--border); background: var(--surface-2); }
.team-card.lead img { border-color: var(--accent); }
.gallery-grid { columns: 4 220px; column-gap: 14px; }
.gallery-grid figure { margin: 0 0 14px; break-inside: avoid; border-radius: 14px; overflow: hidden; position: relative; border: 1px solid var(--border); cursor: zoom-in; background: var(--surface-2); }
.gallery-grid img { width: 100%; height: auto; transition: transform .4s; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-size: .76rem; font-weight: 600; opacity: 0; transition: opacity .25s; }
.gallery-grid figure:hover figcaption { opacity: 1; }

/* donation */
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.amount-grid button { padding: 11px 0; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); font: 700 .8rem var(--font); color: var(--fg); cursor: pointer; }
.amount-grid button.on { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.amount-banner { text-align: center; padding: 11px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; font-size: .82rem; margin: 6px 0 16px; }
.amount-banner b { font-size: 1rem; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .82rem; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); font-weight: 600; }
.kv span:last-child { font-family: ui-monospace, Menlo, monospace; font-weight: 700; text-align: right; word-break: break-all; }
.fundraiser-banner { border: 1px solid var(--accent-border); background: var(--accent-soft); border-radius: 16px; padding: 16px; display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.qr-box { background: #fff; padding: 12px; border-radius: 16px; border: 1px solid var(--border); display: inline-block; }
.qr-box svg, .qr-box img { display: block; width: 190px; height: 190px; }

/* modals */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--surface); border-radius: 22px; max-width: 520px; width: 100%; max-height: 92vh; overflow: auto; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,.35); position: relative; }
.modal .close { position: absolute; top: 12px; right: 12px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 120; display: none; align-items: center; justify-content: center; padding: 20px; flex-direction: column; gap: 10px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; max-width: 94vw; border-radius: 10px; }
.lightbox p { color: #fff; margin: 0; font-weight: 600; }
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab .btn { box-shadow: var(--shadow); }
.fab-menu { display: none; flex-direction: column; gap: 8px; align-items: flex-end; }
.fab.open .fab-menu { display: flex; }

/* footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 44px 0 24px; background: var(--surface); }
.site-footer h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .86rem; }
.site-footer a { text-decoration: none; color: var(--muted); } .site-footer a:hover { color: var(--fg); }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; }
.legal-line { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 16px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; font-size: .74rem; color: var(--muted-2); }

/* blog */
.blog-hero { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 20px; margin-bottom: 26px; background: var(--surface-2); }
.blog-content { font-size: 1.03rem; overflow-wrap: break-word; }
.blog-content h1 { font-size: 1.9rem; margin: 1.4em 0 .5em; } .blog-content h2 { font-size: 1.5rem; margin: 1.3em 0 .5em; } .blog-content h3 { font-size: 1.2rem; margin: 1.2em 0 .4em; }
.blog-content p { color: var(--muted); line-height: 1.8; }
.blog-content blockquote { border-left: 4px solid var(--accent); padding: 6px 16px; margin: 1.2em 0; background: var(--accent-soft); border-radius: 0 12px 12px 0; font-style: italic; color: var(--muted); }
.blog-content img { border-radius: 14px; max-width: 100%; height: auto; margin: 1em auto; }
.blog-content a { color: var(--brand); font-weight: 600; }
.blog-content pre { background: var(--surface-2); padding: 14px; border-radius: 12px; overflow: auto; font-size: .85rem; }
.blog-content ul, .blog-content ol { color: var(--muted); line-height: 1.8; padding-left: 1.4em; }
.blog-content .ql-align-center { text-align: center; } .blog-content .ql-align-right { text-align: right; } .blog-content .ql-align-justify { text-align: justify; }
.blog-content .ql-indent-1 { padding-left: 3em; } .blog-content .ql-indent-2 { padding-left: 6em; }
.blog-content .ql-size-small { font-size: .8em; } .blog-content .ql-size-large { font-size: 1.4em; } .blog-content .ql-size-huge { font-size: 2em; }
.blog-content figcaption { text-align: center; font-size: .8rem; font-style: italic; color: var(--muted-2); }

/* pager */
.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0 8px; flex-wrap: wrap; }
.pager a, .pager span { padding: 7px 13px; border-radius: 10px; border: 1px solid var(--border); font-size: .78rem; font-weight: 700; text-decoration: none; background: var(--surface); }
.pager .cur { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.pager .dis { opacity: .4; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.table th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); padding: 11px 14px; background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { white-space: nowrap; text-align: right; }
.table form { display: inline; }

/* admin */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 4px 10px 16px; }
.sidebar a.item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; text-decoration: none; font-size: .84rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.sidebar a.item:hover { background: var(--surface-2); color: var(--fg); }
.sidebar a.item.on { background: var(--primary); color: var(--primary-fg); }
.sidebar .count { margin-left: auto; background: var(--danger); color: #fff; border-radius: 99px; font-size: .64rem; padding: 1px 7px; }
.sidebar hr { border: 0; border-top: 1px solid var(--border); margin: 10px 0; }
.admin-main { padding: 26px clamp(16px, 3vw, 36px) 60px; min-width: 0; }
.admin-top { display: none; }
@media (max-width: 900px) {
  .admin-shell { display: block; }
  .sidebar { position: fixed; z-index: 70; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform .25s; }
  .admin-shell.menu-open .sidebar { transform: none; }
  .admin-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 40; }
}
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 1.6rem; font-weight: 800; }
.stat-card { padding: 18px; }
.stat-card .k { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); }
.stat-card .v { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font-size: .62rem; color: var(--muted-2); }
.bars .bar i { display: block; width: 100%; max-width: 34px; background: linear-gradient(180deg, #f59e0b, #dc2626); border-radius: 6px 6px 0 0; min-height: 2px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.form-card { margin-bottom: 24px; }
.thumb-sm { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.thumb-preview { max-height: 140px; border-radius: 12px; margin-top: 8px; border: 1px solid var(--border); }

/* auth */
.auth-wrap { min-height: calc(100vh - 66px); display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.auth-card { width: 100%; max-width: 430px; }

/* documents (certificate / invoice) */
.doc-stage { background: #e5e7eb; min-height: 100vh; padding: 90px 16px 40px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.doc-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.doc-scale { transform-origin: top center; }
.certificate { width: 1123px; height: 794px; background: #fff; border: 15px double #bf9b30; position: relative; overflow: hidden; color: #1e293b; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 60px; font-family: Georgia, 'Times New Roman', serif; }
.certificate .wm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: .05; pointer-events: none; }
.certificate .wm img { width: 40%; }
.invoice { width: 794px; min-height: 1123px; background: #fff; color: #1e293b; padding: 44px; border: 12px solid #f8fafc; display: flex; flex-direction: column; font-family: var(--font); }
.invoice table { width: 100%; border-collapse: collapse; }
@media print {
  @page { margin: 0; }
  body { background: #fff !important; }
  .no-print, .site-nav, .site-footer, .fab, .flash-wrap { display: none !important; }
  main { padding: 0 !important; }
  .doc-stage { background: #fff; padding: 0; display: block; }
  .doc-scale { transform: none !important; }
  .certificate, .invoice { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
