:root {
  --ink: #102a25;
  --ink-soft: #36544d;
  --muted: #70837d;
  --paper: #f4f8f6;
  --white: #ffffff;
  --line: #dbe6e1;
  --line-strong: #bdcec7;
  --brand: #157c68;
  --brand-deep: #0d5548;
  --brand-bright: #36b394;
  --amber: #d7a44b;
  --danger: #b4493f;
  --shadow: 0 18px 60px rgba(16, 42, 37, .09);
  --shadow-soft: 0 8px 28px rgba(16, 42, 37, .06);
  --radius: 18px;
  --radius-small: 11px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", "Noto Sans Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::selection { background: #b8eadc; color: var(--ink); }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.18; }
h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); font-weight: 760; }
h2 { font-size: clamp(1.65rem, 3vw, 2.7rem); font-weight: 720; }
h3 { font-size: 1.1rem; font-weight: 700; }
small { line-height: 1.5; }
code { font-family: var(--mono); }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 999; left: 16px; top: -80px; padding: 10px 16px; color: #fff; background: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.muted { color: var(--muted); }
.small-copy { font-size: .88rem; }
.block-small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.required { color: var(--danger); }

.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(189, 206, 199, .7); background: rgba(244, 248, 246, .82); backdrop-filter: blur(18px); }
.header-inner { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #effff9; background: linear-gradient(145deg, var(--brand-deep), var(--brand-bright)); font-weight: 800; font-size: .96rem; letter-spacing: -.08em; box-shadow: 0 5px 16px rgba(21, 124, 104, .25); }
.brand-word { display: flex; flex-direction: column; line-height: 1.15; }
.brand-word strong { font-size: 1rem; letter-spacing: -.035em; }
.brand-word small { margin-top: 4px; font-size: .57rem; letter-spacing: .14em; color: var(--muted); }
.public-nav { display: flex; gap: 27px; margin-left: auto; margin-right: 14px; font-size: .9rem; color: var(--ink-soft); }
.public-nav a:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 19px; border: 1px solid transparent; border-radius: 999px; font-weight: 650; font-size: .92rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--brand); box-shadow: 0 7px 18px rgba(21, 124, 104, .18); }
.button-primary:hover { color: #fff; background: var(--brand-deep); box-shadow: 0 9px 24px rgba(21, 124, 104, .25); }
.button-ghost { color: var(--ink); border-color: var(--line-strong); background: rgba(255,255,255,.55); }
.button-ghost:hover { color: var(--brand-deep); border-color: var(--brand); }
.button-quiet { color: var(--ink-soft); border-color: transparent; background: transparent; }
.button-quiet:hover { color: var(--brand); background: rgba(21, 124, 104, .07); }
.button-small { min-height: 36px; padding-inline: 13px; font-size: .82rem; }
.button-block { width: 100%; }

.flush, .flash-stack { position: relative; z-index: 20; }
.flash-stack { width: min(1180px, calc(100% - 48px)); margin: 14px auto 0; display: grid; gap: 8px; }
.flash { border: 1px solid var(--line); border-radius: 11px; padding: 11px 15px; background: #fff; box-shadow: var(--shadow-soft); font-size: .9rem; }
.flash-success { border-color: #a9d9c8; background: #edfaf4; color: #11614f; }
.flash-error { border-color: #e6b4ad; background: #fff4f2; color: #8f3028; }
.flash-stack-admin { width: auto; margin: 18px 34px 0; }

.eyebrow { margin: 0 0 14px; color: var(--brand); font-size: .68rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow-light { color: #8de1c8; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--brand-bright); vertical-align: 1px; }

.landing-hero { overflow: hidden; position: relative; padding: 88px 0 98px; color: #edfaf5; background: var(--ink); isolation: isolate; }
.landing-hero::before { content: ""; position: absolute; inset: -20% -5% auto auto; width: 780px; height: 780px; border-radius: 50%; background: radial-gradient(circle, rgba(54, 179, 148, .22), transparent 68%); z-index: -2; }
.landing-hero::after { content: ""; position: absolute; inset: auto auto -40% -15%; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(215, 164, 75, .11), transparent 66%); z-index: -2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; }
.hero-copy .eyebrow { color: #8de1c8; }
.hero-copy h1 { max-width: 640px; margin-bottom: 24px; color: #f2fffa; font-size: clamp(2.8rem, 5.4vw, 5.3rem); }
.hero-lede { max-width: 560px; margin-bottom: 30px; color: #b4cbc4; font-size: 1.06rem; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.landing-hero .button-primary { color: var(--ink); background: #d6f6e8; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.landing-hero .button-primary:hover { background: #fff; }
.landing-hero .button-ghost { color: #d8eee8; border-color: rgba(214, 246, 232, .28); background: rgba(255,255,255,.04); }
.landing-hero .button-ghost:hover { color: #fff; border-color: rgba(214, 246, 232, .55); }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: #91aaa2; font-size: .78rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.mini-check { width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%; color: #12312a; background: #7bdfc2; font-style: normal; font-size: .7rem; font-weight: 900; }

.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.visual-orbit { position: absolute; border: 1px solid rgba(158, 224, 203, .16); border-radius: 50%; transform: rotate(-22deg); }
.orbit-one { width: 470px; height: 280px; }
.orbit-two { width: 420px; height: 640px; border-color: rgba(158, 224, 203, .1); transform: rotate(43deg); }
.phone-frame { position: relative; width: 286px; padding: 14px 14px 16px; border: 1px solid rgba(195, 244, 229, .24); border-radius: 30px; background: #f4fbf8; color: var(--ink); box-shadow: 0 35px 90px rgba(0,0,0,.36); transform: rotate(-4deg); }
.phone-top { display: flex; gap: 5px; padding: 2px 4px 12px; }
.phone-top span { width: 5px; height: 5px; border-radius: 50%; background: #bdd3ca; }
.phone-app-head { display: flex; align-items: center; gap: 10px; padding: 6px 4px 20px; }
.phone-app-head strong { display: block; font-size: .8rem; }
.phone-app-head small { display: block; color: #728c83; font-size: .6rem; }
.app-icon-demo { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #0f5f50, #4cc4a4); font-weight: 800; }
.phone-download-card { padding: 16px; border-radius: 16px; background: #eaf2ef; }
.download-kicker { display: block; margin-bottom: 8px; color: #6f8b82; font: 700 .53rem var(--mono); letter-spacing: .12em; }
.phone-download-card > strong { display: block; margin-bottom: 13px; font-size: .85rem; }
.demo-platform { display: flex; justify-content: space-between; align-items: center; padding: 9px 11px; margin-top: 7px; border: 1px solid #d1e2dc; border-radius: 9px; color: #416159; font-size: .66rem; background: #f9fdfb; }
.demo-platform b { color: #11624f; font-weight: 700; }
.demo-platform-ios { background: #153f36; color: #d3ece3; border-color: #153f36; }
.demo-platform-ios b { color: #9be8cf; }
.phone-qr-placeholder { display: flex; align-items: center; gap: 10px; margin: 15px 4px 0; color: #6b857b; font-size: .64rem; }
.qr-grid { width: 38px; height: 38px; display: block; background: conic-gradient(from 90deg, #173c34 25%, transparent 0 50%, #173c34 0 75%, transparent 0) 0 0/13px 13px, #d5e5df; border: 4px solid #fff; box-shadow: 0 0 0 1px #d2e1db; }
.phone-foot { margin-top: 17px; padding-top: 13px; border-top: 1px solid #d9e6e1; color: #80968e; font-size: .62rem; text-align: center; }
.floating-note { position: absolute; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(193, 242, 226, .2); border-radius: 12px; background: rgba(20, 54, 46, .74); box-shadow: 0 15px 40px rgba(0,0,0,.18); backdrop-filter: blur(10px); }
.floating-note strong, .floating-note small { display: block; }
.floating-note strong { color: #eefff9; font-size: .7rem; }
.floating-note small { color: #9bb9af; font-size: .6rem; }
.note-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: #9ce7ce; background: rgba(113, 219, 185, .14); }
.note-top { top: 50px; right: 12px; }
.note-bottom { bottom: 56px; left: 0; }

.section { padding: 96px 0; }
.section-muted { background: #eaf2ee; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 42px; }
.section-heading h2 { max-width: 680px; margin-bottom: 0; }
.section-heading > p { max-width: 390px; margin-bottom: 3px; color: var(--muted); line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.feature-card { position: relative; min-height: 270px; padding: 30px 22px 26px; border-right: 1px solid var(--line-strong); }
.feature-card:first-child { padding-left: 0; }
.feature-card:last-child { border-right: 0; padding-right: 0; }
.feature-index { float: right; color: #9caea7; font: 600 .65rem var(--mono); }
.feature-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 43px; border: 1px solid #a7c9bd; border-radius: 50%; color: var(--brand); font-size: 1.35rem; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin-bottom: 0; color: var(--muted); font-size: .88rem; line-height: 1.8; }

.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.flow-item { min-height: 205px; padding: 24px; background: var(--white); }
.flow-number { display: block; margin-bottom: 40px; color: #a1b2ab; font: 600 .75rem var(--mono); }
.flow-item h3 { margin-bottom: 8px; }
.flow-item p { margin-bottom: 0; color: var(--muted); font-size: .86rem; line-height: 1.75; }
.section-contact { color: #effbf6; background: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 390px; align-items: center; gap: 80px; }
.contact-grid h2 { max-width: 650px; margin-bottom: 20px; color: #f3fffa; }
.contact-grid > div > p:not(.eyebrow) { max-width: 560px; color: #aac0b9; line-height: 1.85; }
.contact-card { padding: 30px; border: 1px solid rgba(173, 238, 218, .22); border-radius: var(--radius); background: rgba(255,255,255,.055); }
.contact-label { display: block; margin-bottom: 9px; color: #8da99f; font-size: .72rem; letter-spacing: .08em; }
.contact-card > strong { display: block; margin-bottom: 14px; color: #f0fff9; font-size: 1.25rem; }
.contact-card a { color: #96e4cd; }
.contact-card p { margin: 18px 0 21px; color: #98b2a9; font-size: .8rem; }
.contact-card .button { width: 100%; margin-top: 4px; }

.site-footer { color: #8ba49a; background: #0b211c; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; padding: 45px 0 35px; }
.footer-brand-word { color: #eefcf6; }
.footer-brand-word small { color: #75948a; }
.footer-inner p { max-width: 440px; margin: 16px 0 0; font-size: .76rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: .78rem; }
.footer-links a { color: #a4c2b7; }
.footer-copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(163, 199, 187, .13); font-size: .7rem; }

/* Public app page */
.app-page { background: #f7faf8; }
.app-hero { padding: 62px 0 66px; color: #effbf6; background: var(--ink); }
.app-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.app-heading { display: flex; align-items: center; gap: 22px; }
.app-heading h1 { margin-bottom: 7px; color: #f4fffb; font-size: clamp(2.25rem, 4vw, 3.7rem); }
.app-subline { max-width: 560px; margin-bottom: 15px; color: #b3c9c1; }
.app-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.app-meta span { padding: 4px 9px; border: 1px solid rgba(166, 219, 204, .21); border-radius: 999px; color: #b5d4ca; font-size: .69rem; }
.app-icon { width: 76px; height: 76px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 21px; color: #fff; background: linear-gradient(145deg, var(--brand), #51c2a5); font-size: 1.8rem; font-weight: 800; box-shadow: 0 10px 25px rgba(0,0,0,.17); }
.app-icon-image { object-fit: cover; background: #fff; }
.app-icon-letter { background: linear-gradient(145deg, var(--brand-deep), var(--brand-bright)); }
.app-icon-small { width: 54px; height: 54px; border-radius: 15px; font-size: 1.3rem; }
.app-share-box { min-width: 310px; padding: 19px; border: 1px solid rgba(172, 232, 214, .21); border-radius: 16px; background: rgba(255,255,255,.055); }
.app-share-box > span { display: block; margin-bottom: 9px; color: #91b0a5; font-size: .68rem; }
.copy-line { display: flex; gap: 7px; }
.copy-line input { min-width: 0; width: 100%; padding: 9px 10px; border: 1px solid rgba(183, 230, 215, .2); border-radius: 8px; color: #cbe8de; background: rgba(0,0,0,.15); font: .66rem var(--mono); }
.icon-button { min-height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink-soft); background: #fff; font-size: .72rem; white-space: nowrap; }
.icon-button:hover { color: var(--brand-deep); border-color: var(--brand); }
.app-share-box .icon-button { color: #cdf4e8; border-color: rgba(178, 233, 217, .25); background: rgba(255,255,255,.07); }
.app-share-box .icon-button:hover { background: rgba(255,255,255,.13); }
.app-qr { width: 132px; margin: 15px auto 0; border-radius: 8px; background: #fff; }
.app-content { padding-top: 55px; }
.app-install-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 35px; }
.compact-heading { align-items: start; margin-bottom: 23px; }
.compact-heading h2 { font-size: 1.65rem; }
.compact-heading > p { max-width: 270px; font-size: .8rem; }
.download-list { display: grid; gap: 11px; }
.release-group { display: grid; gap: 11px; }
.release-group + .release-group { margin-top: 14px; }
.release-group-head { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: 8px 0 2px; }
.release-group-head h3 { margin: 6px 0 0; font-size: 1.05rem; }
.release-group-head p { margin: 0 0 2px; color: var(--muted); font-size: .7rem; }
.release-card-stack { display: grid; gap: 11px; }
.release-badge { display: inline-block; padding: 3px 7px; border-radius: 999px; font-size: .6rem; font-weight: 700; letter-spacing: .02em; }
.release-badge-formal { color: #11614f; background: #dff6ea; }
.release-badge-test { color: #935f18; background: #fff2d7; }
.download-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(16, 42, 37, .035); }
.download-card.featured { border-color: #b5d9ce; }
.download-card.ios-card { background: linear-gradient(110deg, #f3fbf8, #fff); }
.download-platform { display: flex; align-items: center; gap: 12px; min-width: 165px; }
.download-platform strong { display: block; font-size: .93rem; }
.download-platform small { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; }
.platform-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--brand); font-weight: 800; }
.platform-mark-ios { color: #d6f8eb; background: #173d34; }
.download-version { flex: 1; }
.download-version strong { display: block; font-size: .84rem; }
.download-version span { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; word-break: break-all; }
.download-card .button { min-height: 38px; padding-inline: 16px; font-size: .79rem; }
.install-note { margin: 17px 0 0; padding: 13px 15px; border-left: 3px solid var(--amber); color: #6b766f; background: #fffbf1; font-size: .78rem; line-height: 1.75; }
.release-section { margin-top: 51px; }
.version-table { border-top: 1px solid var(--line-strong); }
.version-row { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.version-row strong { font-size: .88rem; }
.version-row small { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; }
.version-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; color: var(--muted); font-size: .75rem; }
.version-notes { max-width: 430px; color: var(--ink-soft); }
.install-side { display: grid; gap: 14px; }
.side-card { padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.side-card h3 { margin-bottom: 12px; font-size: .96rem; }
.side-card p { margin-bottom: 10px; color: var(--muted); font-size: .8rem; }
.side-card ul { margin: 0; padding-left: 17px; color: var(--ink-soft); font-size: .78rem; line-height: 1.8; }
.side-card-dark { color: #eafff7; border-color: var(--ink); background: var(--ink); }
.side-card-dark p { color: #aac8bc; }
.side-card-dark a { color: #9ae9d0; font-size: .8rem; }
.side-card-hash code { display: block; margin-top: 10px; padding: 10px; overflow: hidden; border-radius: 8px; color: #5d766c; background: #f0f5f2; font-size: .64rem; line-height: 1.7; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { padding: 35px 24px; border: 1px dashed var(--line-strong); border-radius: 14px; text-align: center; color: var(--muted); background: rgba(255,255,255,.55); }
.empty-state strong { display: block; margin-bottom: 4px; color: var(--ink); }
.empty-state p { margin: 0; font-size: .82rem; }
.empty-inline { padding: 16px 0; color: var(--muted); font-size: .82rem; }
.compact-empty { padding: 25px; }
.compact-empty .button { margin-top: 14px; }

.auth-gate, .center-state { min-height: calc(100vh - 300px); display: grid; place-items: center; padding: 55px 0; }
.auth-gate-inner, .center-state { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.auth-gate-card, .center-state-card { width: min(440px, 100%); padding: 35px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.auth-gate-card .app-icon { margin-bottom: 21px; }
.auth-gate-card h1, .center-state-card h1 { margin-bottom: 10px; font-size: 2rem; }
.auth-gate-card > p:not(.eyebrow), .center-state-card > p:not(.eyebrow) { color: var(--muted); font-size: .88rem; line-height: 1.8; }
.center-state-card { text-align: center; }
.state-symbol { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; color: var(--brand); background: #e7f6f0; font: 700 1.05rem var(--mono); }
.center-state-card .button { margin-top: 7px; }

/* Forms */
.stack-form { display: grid; gap: 13px; }
.stack-form label, .form-grid label { display: grid; gap: 6px; color: var(--ink-soft); font-size: .78rem; font-weight: 650; }
input, textarea, select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; outline: none; color: var(--ink); background: #fbfdfc; transition: border-color .2s ease, box-shadow .2s ease; }
textarea { resize: vertical; min-height: 80px; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(21, 124, 104, .11); }
input[readonly] { color: var(--muted); background: #f3f7f5; }
.password-field { position: relative; }
.password-field input { padding-right: 60px; }
.field-toggle { position: absolute; right: 4px; top: 4px; height: 34px; padding: 0 9px; border: 0; border-radius: 6px; color: var(--brand-deep); background: transparent; font-size: .72rem; font-weight: 650; }
.field-help { color: var(--muted); font-size: .7rem; font-weight: 400; }
.checkbox-label { display: flex !important; align-items: center; gap: 8px; min-height: 42px; }
.checkbox-label input { width: 16px; min-height: 16px; accent-color: var(--brand); }
.back-link { display: inline-block; margin-top: 22px; color: var(--muted); font-size: .78rem; }

/* Admin login */
.admin-login-page { background: #e7f1ed; }
.login-shell { display: grid; grid-template-columns: .95fr 1.05fr; width: min(1040px, calc(100% - 48px)); min-height: 590px; margin: 70px auto; overflow: hidden; border-radius: 25px; background: #fff; box-shadow: var(--shadow); }
.login-panel { padding: 38px; }
.login-aside { position: relative; display: flex; flex-direction: column; color: #e9fff7; background: var(--ink); }
.login-aside::after { content: ""; position: absolute; right: -90px; bottom: -100px; width: 350px; height: 350px; border-radius: 50%; background: radial-gradient(circle, rgba(52, 178, 146, .3), transparent 65%); }
.login-aside .brand { position: relative; z-index: 1; color: #e9fff7; }
.login-aside .brand-word small { color: #88ada0; }
.login-aside-copy { position: relative; z-index: 1; margin: auto 0; padding: 50px 0; }
.login-aside-copy h1 { max-width: 370px; margin-bottom: 17px; color: #f1fff9; font-size: 2.65rem; }
.login-aside-copy p:not(.eyebrow) { max-width: 300px; color: #a7c3b8; font-size: .86rem; line-height: 1.85; }
.login-aside-foot { position: relative; z-index: 1; margin: auto 0 0; color: #6f9386; font: .63rem var(--mono); letter-spacing: .1em; }
.login-form-panel { display: grid; place-items: center; }
.login-form-wrap { width: min(340px, 100%); }
.login-form-wrap h2 { margin-bottom: 9px; font-size: 1.8rem; }
.login-form-wrap > p:not(.eyebrow) { margin-bottom: 23px; font-size: .82rem; }

/* Admin shell */
.admin-shell-page { background: #f3f7f5; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 238px; display: flex; flex-direction: column; padding: 25px 18px 18px; color: #d9eee8; background: #102a25; }
.admin-brand { padding: 0 9px 28px; color: #effff9; }
.admin-brand .brand-word small { color: #799d91; }
.admin-nav { display: grid; gap: 3px; }
.admin-nav a { display: flex; gap: 13px; align-items: center; min-height: 43px; padding: 0 11px; border-radius: 9px; color: #9dbbb0; font-size: .82rem; }
.admin-nav a span { color: #637f75; font: .63rem var(--mono); }
.admin-nav a:hover, .admin-nav a.active { color: #e9fff7; background: rgba(127, 222, 194, .1); }
.admin-nav a.active span { color: #74d2b9; }
.admin-sidebar-foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding: 18px 10px 3px; border-top: 1px solid rgba(172, 223, 207, .14); color: #6f9488; font-size: .7rem; }
.admin-sidebar-foot a { color: #a1c9bb; }
.admin-main { width: calc(100% - 238px); margin-left: 238px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 81px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.7); }
.admin-topbar p { margin: 0 0 3px; color: var(--muted); font-size: .67rem; }
.admin-topbar strong { font-size: .93rem; }
.admin-breadcrumb { letter-spacing: .02em; }
.admin-user { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .76rem; }
.admin-user form { margin: 0 0 0 8px; }
.user-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-deep); background: #d9f2e9; font-weight: 700; }
.text-button { padding: 0; border: 0; color: var(--brand); background: transparent; font-size: .76rem; }
.text-button:hover { color: var(--brand-deep); }
.danger-text { color: var(--danger); }
.admin-content { padding: 31px 34px 60px; }
.sidebar-toggle { display: none; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 27px; }
.page-heading h1 { margin-bottom: 7px; font-size: 2.25rem; }
.page-heading p { margin-bottom: 0; font-size: .82rem; }
.page-heading > .text-link { margin-bottom: 7px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 4px 18px rgba(16, 42, 37, .025); }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.panel-head h2, .panel-head h3 { margin-bottom: 0; }
.panel-head h2 { font-size: 1.25rem; }
.panel-head h3 { font-size: 1rem; }
.panel-head .eyebrow { margin-bottom: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 19px; }
.stat-grid-tight { margin-bottom: 18px; }
.stat-card { padding: 19px 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.stat-card-accent { color: #edfff8; border-color: var(--brand-deep); background: var(--brand-deep); }
.stat-label { display: block; margin-bottom: 9px; color: var(--muted); font-size: .72rem; }
.stat-card-accent .stat-label { color: #9bd7c5; }
.stat-card strong { display: block; font-size: 1.75rem; letter-spacing: -.045em; }
.stat-card small { display: block; margin-top: 5px; color: #91a49d; font-size: .68rem; }
.stat-card-accent small { color: #8bc2b0; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr); gap: 16px; }
.panel-wide { min-width: 0; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .78rem; }
.data-table th { padding: 0 10px 10px; border-bottom: 1px solid var(--line); color: #889a93; font-size: .65rem; font-weight: 650; letter-spacing: .05em; white-space: nowrap; }
.data-table td { padding: 12px 10px; border-bottom: 1px solid #edf3f0; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child, .data-table th:first-child { padding-left: 0; }
.data-table td:last-child, .data-table th:last-child { padding-right: 0; }
.table-app-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.table-app-link:hover { color: var(--brand); }
.table-app-link strong { display: block; font-size: .79rem; }
.table-app-link small { display: block; margin-top: 2px; color: var(--muted); font: .62rem var(--mono); }
.tiny-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: #fff; background: var(--brand-deep); font-size: .8rem; font-weight: 700; }
.pill { display: inline-block; padding: 3px 8px; border-radius: 999px; color: #52746a; background: #edf5f2; font-size: .66rem; white-space: nowrap; }
.status { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: .64rem; white-space: nowrap; }
.status-paid { color: #147259; background: #e4f8ef; }
.status-unpaid { color: #9a6a18; background: #fff5df; }
.status-refunded { color: #8c5651; background: #ffeded; }
.row-actions { display: flex; gap: 5px; white-space: nowrap; }
.event-list { display: grid; gap: 0; }
.event-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf3f0; }
.event-item:last-child { border-bottom: 0; }
.event-item strong, .event-item small { display: block; }
.event-item strong { font-size: .76rem; }
.event-item small { margin-top: 2px; color: var(--muted); font-size: .64rem; }
.event-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--brand-bright); box-shadow: 0 0 0 4px #e7f8f2; }

.form-layout { display: grid; gap: 16px; }
.form-panel { padding: 24px 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 17px; }
.form-grid .full-span { grid-column: 1 / -1; }
.form-grid-compact { margin-top: 17px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.form-actions-left { justify-content: flex-start; }
.two-column-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 16px; align-items: start; }
.settings-layout { grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr); }
.settings-note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; line-height: 1.75; }
.settings-note strong { color: var(--ink-soft); }
.settings-note p { margin: 7px 0 0; }

.app-detail-heading { align-items: center; }
.app-detail-title { display: flex; align-items: center; gap: 14px; }
.app-detail-title h1 { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-bottom: 6px; font-size: 2rem; }
.app-detail-title p { font-size: .77rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 16px; align-items: start; }
.detail-main { min-width: 0; }
.detail-side { display: grid; gap: 16px; }
.sidebar-panel { padding: 20px; }
.sidebar-panel .panel-head { margin-bottom: 15px; }
.share-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.share-copy { min-width: 0; flex: 1; }
.share-copy h2 { margin-bottom: 8px; font-size: 1.35rem; }
.share-copy > p { margin-bottom: 15px; font-size: .8rem; }
.share-url-box { display: flex; gap: 8px; max-width: 610px; }
.share-url-box input { min-width: 0; font: .68rem var(--mono); }
.share-actions { display: flex; align-items: center; gap: 15px; margin-top: 13px; }
.share-actions form { margin: 0; }
.detail-qr { width: 152px; flex: 0 0 auto; border-radius: 10px; background: #fff; }
.upload-form { min-width: 0; }
.drop-zone { display: grid; place-items: center; gap: 6px; min-height: 166px; padding: 22px; border: 1px dashed #a7c8bb; border-radius: 12px; color: var(--muted); background: #f7fbf9; text-align: center; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--brand); background: #effaf5; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone strong { color: var(--ink-soft); font-size: .83rem; }
.drop-zone small { font-size: .7rem; }
.drop-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 4px; border-radius: 50%; color: var(--brand); background: #e4f7f0; font-size: 1.25rem; }
.version-note-cell { max-width: 300px; color: var(--ink-soft); }
.file-name { display: block; max-width: 210px; overflow: hidden; color: var(--ink-soft); font: .66rem var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.hash-mini { display: block; margin-top: 4px; color: #91a49d; font-size: .61rem; }
.icon-preview { width: 78px; height: 78px; margin-bottom: 13px; border-radius: 18px; object-fit: cover; background: #e8f6f0; }
.icon-preview-empty { display: grid; place-items: center; color: #fff; background: var(--brand-deep); font-size: 1.65rem; font-weight: 800; }
.compact-form { gap: 9px; }
.compact-form .button { justify-self: start; }
.payment-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 17px; padding: 12px 13px; border-radius: 9px; background: #f1f8f5; }
.payment-total span { color: var(--muted); font-size: .7rem; }
.payment-total strong { color: var(--brand-deep); font-size: 1.3rem; }
.mini-order-list { display: grid; gap: 9px; }
.mini-order { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: center; }
.mini-order strong { font-size: .8rem; }
.mini-order small { grid-column: 2; color: var(--muted); font-size: .64rem; }
.meta-panel > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid #edf3f0; color: var(--muted); font-size: .7rem; }
.meta-panel > div strong { color: var(--ink-soft); font-weight: 600; text-align: right; }

.customer-list { display: grid; gap: 10px; }
.customer-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(120px, .75fr) minmax(100px, .75fr) auto; gap: 8px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 9px; }
.customer-main { min-width: 0; }
.customer-main small { display: block; margin-top: 4px; color: var(--muted); font-size: .65rem; }
.input-plain { min-height: 32px; padding: 4px 6px; border-color: transparent; background: transparent; font-size: .76rem; }
.input-plain:hover, .input-plain:focus { border-color: var(--line-strong); background: #fff; }
.customer-main .input-plain { padding-left: 0; font-weight: 650; }

@media (max-width: 1100px) {
  .hero-grid { gap: 30px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(2) { padding-right: 0; border-right: 0; }
  .feature-card:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line-strong); }
  .feature-card:nth-child(4) { border-top: 1px solid var(--line-strong); }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 255px; }
  .app-install-grid { grid-template-columns: minmax(0, 1fr) 275px; }
}

@media (max-width: 880px) {
  .container { width: min(100% - 36px, 700px); }
  .public-nav { display: none; }
  .hero-grid, .contact-grid, .app-install-grid, .two-column-layout, .settings-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-visual { min-height: 480px; }
  .section { padding: 72px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 14px; }
  .contact-grid { gap: 32px; }
  .contact-card { max-width: 480px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-copy { grid-column: auto; }
  .app-hero-inner { display: block; }
  .app-share-box { min-width: 0; max-width: 480px; margin-top: 28px; }
  .app-share-box .app-qr { margin-left: 0; }
  .login-shell { grid-template-columns: 1fr; width: min(540px, calc(100% - 36px)); margin: 35px auto; }
  .login-aside { min-height: 290px; }
  .login-aside-copy { padding: 35px 0 0; }
  .login-aside-copy h1 { font-size: 2.2rem; }
  .login-aside-foot { margin-top: 25px; }
  .admin-sidebar { transform: translateX(-102%); transition: transform .25s ease; box-shadow: 18px 0 45px rgba(0,0,0,.15); }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-main { width: 100%; margin-left: 0; }
  .sidebar-toggle { display: block; }
  .admin-topbar { justify-content: flex-start; padding-inline: 20px; }
  .admin-user { margin-left: auto; }
  .admin-content { padding: 23px 20px 50px; }
  .dashboard-grid, .detail-grid { grid-template-columns: 1fr; }
  .share-panel { align-items: flex-start; }
  .detail-qr { width: 125px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 14px; }
  .container { width: calc(100% - 30px); }
  .header-inner { height: 64px; }
  .brand-word small { display: none; }
  .header-actions .button { min-height: 34px; padding-inline: 11px; font-size: .73rem; }
  .landing-hero { padding: 62px 0 66px; }
  .hero-copy h1 { font-size: 2.85rem; }
  .hero-lede { font-size: .94rem; line-height: 1.8; }
  .hero-visual { min-height: 430px; transform: scale(.9); transform-origin: center top; }
  .note-top { right: -14px; }
  .note-bottom { left: -12px; }
  .section { padding: 58px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card:first-child, .feature-card:nth-child(2), .feature-card:nth-child(3), .feature-card:nth-child(4) { min-height: 0; padding: 23px 0 23px; border-right: 0; border-top: 1px solid var(--line-strong); }
  .feature-card:first-child { border-top: 0; }
  .feature-icon { float: left; margin: 0 14px 17px 0; }
  .feature-card h3 { padding-top: 7px; }
  .feature-card p { clear: both; }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .flow-item { min-height: 0; padding: 19px; }
  .flow-number { margin-bottom: 20px; }
  .contact-card { padding: 22px; }
  .footer-inner { padding-top: 34px; }
  .app-hero { padding: 42px 0 47px; }
  .app-heading { align-items: flex-start; gap: 14px; }
  .app-icon { width: 61px; height: 61px; border-radius: 17px; font-size: 1.45rem; }
  .app-heading h1 { font-size: 2rem; }
  .app-subline { font-size: .82rem; }
  .app-share-box { max-width: none; }
  .app-content { padding-top: 38px; }
  .download-card { align-items: flex-start; flex-wrap: wrap; gap: 11px; padding: 15px; }
  .download-platform { min-width: 0; width: 100%; }
  .download-version { flex: 1 1 150px; }
  .download-card .button { width: 100%; margin-top: 1px; }
  .release-group-head { display: block; }
  .release-group-head p { margin-top: 5px; }
  .version-row { grid-template-columns: 1fr; gap: 7px; }
  .compact-heading h2 { font-size: 1.45rem; }
  .auth-gate-card, .center-state-card { padding: 27px 22px; }
  .auth-gate-card h1, .center-state-card h1 { font-size: 1.75rem; }
  .login-shell { width: calc(100% - 24px); margin: 18px auto; }
  .login-panel { padding: 24px; }
  .login-aside { min-height: 240px; }
  .login-aside-copy { padding-top: 25px; }
  .login-aside-copy h1 { font-size: 1.9rem; }
  .login-aside-copy p:not(.eyebrow) { font-size: .78rem; }
  .admin-topbar { min-height: 68px; padding-inline: 14px; }
  .admin-user > span:not(.user-avatar) { display: none; }
  .admin-user form { margin-left: 0; }
  .admin-content { padding: 20px 14px 42px; }
  .page-heading { display: block; margin-bottom: 20px; }
  .page-heading .button { margin-top: 15px; }
  .page-heading h1 { font-size: 1.9rem; }
  .panel { padding: 18px; border-radius: 12px; }
  .panel-head { margin-bottom: 16px; }
  .stat-grid { gap: 8px; }
  .stat-card { padding: 15px; }
  .stat-card strong { font-size: 1.45rem; }
  .data-table { font-size: .73rem; }
  .data-table th, .data-table td { padding-inline: 7px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full-span { grid-column: auto; }
  .form-panel { padding: 18px; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .button { width: 100%; }
  .share-panel { display: block; }
  .detail-qr { width: 120px; margin-top: 20px; }
  .share-url-box { display: grid; gap: 7px; }
  .share-url-box .button { width: 100%; }
  .app-detail-heading { display: block; }
  .app-detail-heading > .text-link { display: inline-block; margin-top: 14px; }
  .app-detail-title h1 { font-size: 1.65rem; }
  .app-icon-small { width: 45px; height: 45px; font-size: 1.05rem; }
  .customer-row { grid-template-columns: 1fr; }
  .customer-row .icon-button { width: 100%; }
  .flash-stack { width: calc(100% - 30px); }
  .flash-stack-admin { margin-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
