/* YunGe distribution — original interface */
:root {
  --bg: #f4f6f1;
  --surface: #ffffff;
  --surface-soft: #edf1e9;
  --ink: #17221c;
  --muted: #66736b;
  --line: #dbe2d8;
  --line-strong: #c7d1c5;
  --green: #1b6b51;
  --green-dark: #103e31;
  --green-deep: #0b2f26;
  --lime: #dfff75;
  --lime-soft: #f1ffc4;
  --orange: #a85420;
  --red: #b53a3a;
  --red-soft: #fff0ed;
  --shadow-sm: 0 1px 2px rgb(20 43 31 / 5%), 0 8px 24px rgb(20 43 31 / 4%);
  --shadow-lg: 0 24px 70px rgb(8 36 26 / 16%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --container: 1180px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
p, h1, h2, h3, h4 { margin-top: 0; }
p:last-child { margin-bottom: 0; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.final-cta :focus-visible, .code-window :focus-visible { outline-color: var(--lime); }
::selection { background: var(--lime); color: var(--green-deep); }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.package-file { margin: -10px 0 20px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.package-file strong { display: block; margin-bottom: 8px; overflow-wrap: anywhere; font-size: 13px; }
.package-file span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .08em; }
.package-file code { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgb(203 214 201 / 75%); background: rgb(244 246 241 / 90%); backdrop-filter: blur(16px); }
.header-inner { width: min(calc(100% - 40px), var(--container)); min-height: 74px; margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--green-dark); font-size: 20px; font-weight: 760; letter-spacing: -.6px; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; }
.brand-light { font-weight: 480; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { position: relative; padding-block: 24px; color: #46534b; font-size: 14px; }
.main-nav a:hover, .main-nav a.active { color: var(--green-dark); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; border-radius: 2px; background: var(--green); }
.header-cta { margin-left: 4px; }
.nav-toggle { display: none !important; }

.button { min-height: 44px; padding: 10px 19px; border: 1px solid transparent; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; font-size: 14px; line-height: 1.4; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { background: var(--green-dark); color: #fff; box-shadow: 0 4px 12px rgb(16 62 49 / 12%); }
.button-primary:hover { background: #185440; transform: translateY(-1px); box-shadow: 0 7px 20px rgb(16 62 49 / 18%); }
.button-lime { background: var(--lime); color: var(--green-deep); }
.button-lime:hover { background: #e7ff9d; transform: translateY(-1px); }
.button-secondary { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.button-secondary:hover { border-color: #95a792; background: #fafbf8; }
.button-ghost { background: transparent; color: var(--green); }
.button-ghost:hover { background: var(--surface-soft); }
.button-danger { border-color: #e7c1bb; background: var(--red-soft); color: var(--red); }
.button-danger:hover { background: #ffe4df; }
.button-sm { min-height: 36px; padding: 7px 12px; border-radius: 8px; font-size: 13px; }
.button-lg { min-height: 52px; padding: 14px 24px; border-radius: 12px; font-size: 15px; }
.button-block { width: 100%; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-button { width: 40px; height: 40px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; }
.icon-button:hover { background: var(--surface-soft); }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 650; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.hero { position: relative; overflow: hidden; padding: 82px 0 68px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(#a8b5a7 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to right, black, transparent 46%); opacity: .25; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .93fr); gap: 68px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--green); font-size: 12px; font-weight: 750; letter-spacing: 1.4px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.hero h1 { max-width: 650px; margin-bottom: 24px; font-size: clamp(44px, 5.2vw, 72px); line-height: 1.1; letter-spacing: -3.2px; font-weight: 760; }
.hero h1 .accent { position: relative; display: inline-block; color: var(--green); z-index: 0; }
.hero h1 .accent::after { content: ""; position: absolute; left: -3px; right: -3px; bottom: 3px; height: 12px; background: var(--lime); z-index: -1; transform: rotate(-1deg); }
.hero-copy > p { max-width: 560px; margin-bottom: 30px; color: #58675e; font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-assurance { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; color: var(--muted); font-size: 12px; }
.hero-assurance span { display: flex; align-items: center; gap: 6px; }
.hero-assurance svg { width: 15px; height: 15px; fill: none; stroke: var(--green); stroke-width: 2; }

.product-stage { position: relative; min-height: 500px; padding: 54px 26px 30px; border-radius: 28px; background: var(--green-deep); box-shadow: var(--shadow-lg); isolation: isolate; }
.product-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: linear-gradient(rgb(223 255 117 / 5%) 1px, transparent 1px), linear-gradient(90deg, rgb(223 255 117 / 5%) 1px, transparent 1px); background-size: 36px 36px; }
.stage-label { position: absolute; top: 20px; left: 26px; display: flex; align-items: center; gap: 8px; color: #d4e4db; font-size: 11px; letter-spacing: 1px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #61c795; box-shadow: 0 0 0 4px rgb(97 199 149 / 12%); }
.stage-window { overflow: hidden; border: 1px solid rgb(255 255 255 / 18%); border-radius: 14px; background: #f8faf6; box-shadow: 0 16px 50px rgb(0 0 0 / 25%); }
.window-bar { height: 35px; padding: 0 13px; display: flex; align-items: center; gap: 5px; border-bottom: 1px solid #e1e6df; background: white; }
.window-bar i { width: 6px; height: 6px; border-radius: 50%; background: #d2d9d0; }
.window-url { width: 45%; height: 10px; margin-left: 10px; border-radius: 4px; background: #eef1eb; }
.window-body { min-height: 304px; display: grid; grid-template-columns: 78px 1fr; }
.window-side { padding: 19px 11px; background: var(--green-dark); }
.window-side b { display: block; width: 38px; height: 9px; margin-bottom: 28px; border-radius: 3px; background: var(--lime); }
.window-side span { display: block; height: 7px; margin-bottom: 18px; border-radius: 3px; background: rgb(255 255 255 / 18%); }
.window-side span:nth-child(3) { background: rgb(223 255 117 / 70%); }
.window-main { padding: 22px 18px; }
.window-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.window-heading b { font-size: 12px; }
.window-heading span { padding: 5px 10px; border-radius: 5px; background: var(--green-dark); color: white; font-size: 8px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.mini-stats div { padding: 10px; border: 1px solid #e2e7df; border-radius: 7px; background: white; }
.mini-stats small { display: block; color: #7c867e; font-size: 7px; }
.mini-stats strong { font-size: 14px; }
.mini-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 9px; align-items: center; padding: 10px 2px; border-top: 1px solid #e7ebe4; }
.mini-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: #e9dbc0; color: #654715; font-size: 10px; font-weight: 800; }
.mini-row:nth-child(3) .mini-icon { background: #dce9e4; color: #235c47; }
.mini-row b { display: block; font-size: 9px; }
.mini-row small { display: block; color: #849087; font-size: 7px; }
.mini-pill { padding: 2px 6px; border-radius: 8px; background: #e4f3e9; color: #397052; font-size: 7px; }
.stage-phone { position: absolute; right: -20px; bottom: -26px; width: 172px; padding: 9px; border: 1px solid rgb(255 255 255 / 28%); border-radius: 23px; background: #15241e; box-shadow: 0 20px 45px rgb(0 0 0 / 35%); transform: rotate(3deg); }
.phone-screen { min-height: 255px; padding: 26px 13px 14px; border-radius: 16px; background: white; text-align: center; }
.phone-notch { width: 46px; height: 5px; margin: -17px auto 22px; border-radius: 5px; background: #d9ded7; }
.phone-app-icon { width: 47px; height: 47px; margin: 0 auto 11px; display: grid; place-items: center; border-radius: 13px; background: #f0bd5d; color: #553b13; font-weight: 800; }
.phone-screen strong { display: block; font-size: 12px; }
.phone-screen small { color: var(--muted); font-size: 8px; }
.phone-meta { margin: 18px 0; padding: 10px 0; border-block: 1px solid #e7ebe4; display: flex; justify-content: space-around; color: var(--muted); font-size: 7px; }
.phone-button { padding: 7px; border-radius: 6px; background: var(--green-dark); color: white; font-size: 8px; }

.capability-strip { border-block: 1px solid var(--line); background: rgb(255 255 255 / 48%); }
.capability-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.capability-inner > span { color: var(--muted); font-size: 12px; }
.capability-list { display: flex; flex-wrap: wrap; gap: 32px; }
.capability-list b { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 620; }
.capability-list svg { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 1.7; }

.section { padding: 94px 0; }
.section-white { background: var(--surface); }
.section-heading { max-width: 650px; margin-bottom: 44px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin-bottom: 15px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.2; letter-spacing: -1.7px; }
.section-heading p { color: var(--muted); font-size: 16px; }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-block: 1px solid var(--line); }
.workflow-step { position: relative; padding: 30px 34px 30px 0; }
.workflow-step + .workflow-step { padding-left: 34px; border-left: 1px solid var(--line); }
.step-number { display: block; margin-bottom: 36px; color: var(--green); font: 500 13px/1 var(--font); }
.workflow-step h3 { margin-bottom: 10px; font-size: 20px; letter-spacing: -.4px; }
.workflow-step p { color: var(--muted); font-size: 14px; }
.step-tag { display: inline-block; margin-top: 22px; padding: 3px 9px; border-radius: 20px; background: var(--surface-soft); color: var(--green); font-size: 11px; }

.feature-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.feature-card { position: relative; min-height: 270px; overflow: hidden; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.feature-card.large { grid-row: span 2; min-height: 560px; display: flex; flex-direction: column; }
.feature-card.dark { border-color: var(--green-dark); background: var(--green-dark); color: white; }
.feature-card h3 { margin-bottom: 10px; font-size: 22px; letter-spacing: -.6px; }
.feature-card > p { max-width: 480px; color: var(--muted); }
.feature-card.dark > p { color: #b9ccc2; }
.feature-number { position: absolute; top: 26px; right: 28px; color: #a5b0a7; font: 12px var(--font); }
.version-visual { flex: 1; min-height: 280px; margin-top: 32px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow-sm); }
.version-line { display: grid; grid-template-columns: 9px 1fr auto; gap: 14px; align-items: center; min-height: 66px; border-bottom: 1px solid #e7ebe4; }
.version-line:last-child { border-bottom: 0; }
.version-line i { width: 8px; height: 8px; border: 2px solid #a8b5aa; border-radius: 50%; }
.version-line.current i { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px #e1efe5; }
.version-line b { display: block; font-size: 13px; }
.version-line small { color: var(--muted); font-size: 11px; }
.version-line em { color: var(--muted); font-size: 11px; font-style: normal; }
.qr-visual { display: flex; align-items: flex-end; gap: 20px; margin-top: 25px; }
.fake-qr { width: 112px; height: 112px; padding: 9px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; border-radius: 8px; background: white; }
.fake-qr i { background: var(--green-deep); }
.fake-qr i:nth-child(3n), .fake-qr i:nth-child(5n+1) { background: transparent; }
.qr-visual span { max-width: 120px; color: #c2d4ca; font-size: 12px; }
.api-mini { margin-top: 27px; padding: 16px; border-radius: 9px; background: var(--green-deep); color: #cde0d5; font: 11px/1.8 "SFMono-Regular", Consolas, monospace; }
.api-mini b { color: var(--lime); font-weight: 500; }

.api-section { padding: 92px 0; background: #e9ede5; }
.api-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.api-copy h2 { margin-bottom: 18px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.2; letter-spacing: -1.5px; }
.api-copy > p { margin-bottom: 25px; color: var(--muted); font-size: 16px; }
.check-list { padding: 0; margin: 0 0 28px; list-style: none; }
.check-list li { display: flex; gap: 9px; margin: 10px 0; }
.check-list svg { width: 18px; height: 18px; margin-top: 4px; fill: none; stroke: var(--green); stroke-width: 2; }
.code-window { overflow: hidden; border: 1px solid #294d40; border-radius: 16px; background: #10281f; box-shadow: 0 22px 50px rgb(20 47 35 / 15%); }
.code-top { padding: 14px 18px; display: flex; justify-content: space-between; border-bottom: 1px solid rgb(255 255 255 / 9%); color: #91a99b; font-size: 11px; }
.code-top span:last-child { color: var(--lime); }
.code-window pre { overflow-x: auto; margin: 0; padding: 25px; color: #d4e2d9; font: 12px/2 "SFMono-Regular", Consolas, monospace; }
.code-comment { color: #789486; }
.code-key { color: #dfff75; }
.code-value { color: #e5c78d; }
.code-note { padding: 13px 20px; border-top: 1px solid rgb(255 255 255 / 9%); color: #8ca296; font-size: 11px; }

.faq-list { max-width: 800px; margin: auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 22px 45px 22px 0; font-weight: 650; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 19px; color: var(--green); font-size: 22px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 40px 23px 0; color: var(--muted); }
.final-cta { padding: 0 0 90px; background: white; }
.final-cta-inner { position: relative; overflow: hidden; padding: 52px 56px; border-radius: 22px; display: flex; justify-content: space-between; align-items: center; gap: 30px; background: var(--green-dark); color: white; }
.final-cta-inner::after { content: ""; position: absolute; width: 300px; height: 300px; right: 12%; top: -190px; border: 55px solid rgb(223 255 117 / 7%); border-radius: 50%; pointer-events: none; }
.final-cta h2 { margin-bottom: 8px; font-size: 32px; letter-spacing: -1px; }
.final-cta p { color: #bcd0c4; }
.final-cta .button { position: relative; z-index: 1; flex-shrink: 0; }

.site-footer { padding: 56px 0 22px; border-top: 1px solid var(--line); background: #eef1eb; }
.footer-inner, .footer-bottom { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 50px; align-items: start; }
.brand-footer { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.footer-links div { display: flex; flex-direction: column; gap: 8px; }
.footer-links strong { margin-bottom: 5px; font-size: 12px; }
.footer-links a { color: var(--muted); font-size: 12px; }
.footer-links a:hover { color: var(--green); }
.footer-note { display: flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.footer-bottom { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #59675e; font-size: 11px; }

/* Workspace */
.workspace-page { min-height: 72vh; padding: 45px 0 80px; }
.workspace-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 32px; }
.workspace-top .eyebrow { margin-bottom: 10px; }
.workspace-top h1 { margin-bottom: 7px; font-size: 34px; line-height: 1.2; letter-spacing: -1.2px; }
.workspace-top p { color: var(--muted); }
.workspace-actions { display: flex; gap: 10px; flex-shrink: 0; }
.demo-notice { margin-bottom: 25px; padding: 13px 16px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid #d9e3bd; border-radius: 10px; background: #f7fce9; color: #526037; font-size: 13px; }
.demo-notice svg { width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat-card { padding: 21px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.stat-card span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.stat-card strong { margin-right: 6px; font-size: 28px; line-height: 1; letter-spacing: -1px; }
.stat-card small { color: var(--muted); font-size: 11px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-header { padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; font-size: 16px; }
.toolbar { display: flex; gap: 10px; }
.search-field { position: relative; }
.search-field svg { position: absolute; top: 50%; left: 12px; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; pointer-events: none; }
.search-field input { width: 230px; min-height: 38px; padding: 8px 12px 8px 38px; border: 1px solid var(--line); border-radius: 8px; background: #fafbf9; color: var(--ink); }
.select-control { min-height: 38px; padding: 7px 32px 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fafbf9; color: var(--ink); }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 22px; }
.app-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fcfdfb; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.app-card:hover { border-color: #b5c6b5; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.app-card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.app-icon { width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; border-radius: 13px; background: var(--app-color, #d8e7dc); color: var(--app-ink, #254d3b); font-size: 20px; font-weight: 780; letter-spacing: -.5px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 4%); }
.app-icon-lg { width: 70px; height: 70px; flex-basis: 70px; border-radius: 19px; font-size: 27px; }
.app-card-title { min-width: 0; flex: 1; }
.app-card-title h3 { overflow: hidden; margin-bottom: 2px; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.app-card-title span { color: var(--muted); font-size: 11px; }
.platform-badge, .soft-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 20px; background: #edf2eb; color: #53645a; font-size: 10px; font-weight: 650; white-space: nowrap; }
.platform-badge.ios { background: #e9edfa; color: #4e5c83; }
.platform-badge.android { background: #eaf4e6; color: #416b3a; }
.soft-badge.current { background: #e3f2e8; color: var(--green); }
.soft-badge.local { background: #f4eedb; color: #7e652f; }
.app-desc { min-height: 44px; margin-bottom: 17px; color: var(--muted); font-size: 13px; }
.app-version { padding: 12px 0; display: flex; justify-content: space-between; border-block: 1px solid #e6eae3; font-size: 12px; }
.app-version strong { font-weight: 650; }
.app-version span { color: var(--muted); }
.app-meta { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 18px; color: var(--muted); font-size: 11px; }
.app-card-actions { display: flex; gap: 7px; }
.delete-icon { color: var(--red); }
.delete-icon:hover { border-color: #e8b8af; background: #fff3f0; }
.app-card-actions .button:first-child { flex: 1; }
.empty-state { padding: 65px 25px; text-align: center; }
.empty-icon { width: 54px; height: 54px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 15px; background: var(--surface-soft); color: var(--green); }
.empty-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.empty-state h3 { margin-bottom: 6px; font-size: 17px; }
.empty-state p { margin-bottom: 20px; color: var(--muted); }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs svg { width: 13px; height: 13px; fill: none; stroke: currentColor; }
.detail-hero { padding: 25px; display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.detail-title { min-width: 0; flex: 1; }
.detail-title h1 { margin-bottom: 5px; font-size: 26px; letter-spacing: -.8px; }
.detail-title p { color: var(--muted); font-size: 13px; }
.detail-actions { display: flex; gap: 9px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
.version-table { width: 100%; border-collapse: collapse; }
.version-table th, .version-table td { padding: 15px 20px; border-bottom: 1px solid #e7ebe4; text-align: left; }
.version-table th { background: #fafbf9; color: var(--muted); font-size: 11px; font-weight: 550; }
.version-table td { font-size: 13px; }
.version-table tr:last-child td { border-bottom: 0; }
.version-table tbody tr:hover { background: #fbfcfa; }
.version-name { display: flex; align-items: center; gap: 8px; }
.version-name strong { display: block; }
.version-name small { display: block; color: var(--muted); }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.info-list { padding: 8px 22px; margin: 0; }
.info-list div { padding: 13px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e7ebe4; }
.info-list div:last-child { border: 0; }
.info-list dt { color: var(--muted); font-size: 12px; }
.info-list dd { overflow-wrap: anywhere; margin: 0; text-align: right; font-size: 12px; }
.share-panel { margin-top: 20px; padding: 22px; text-align: center; }
.share-panel h3 { margin-bottom: 5px; font-size: 15px; }
.share-panel > p { color: var(--muted); font-size: 11px; }
.qr-box { width: 164px; min-height: 164px; margin: 18px auto; padding: 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; }
.qr-box img, .qr-box svg { width: 142px; height: 142px; }
.short-link { display: flex; gap: 7px; }
.short-link input { min-width: 0; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: #fafbf9; color: var(--muted); font-size: 10px; }

/* Upload */
.upload-page { padding: 45px 0 85px; }
.upload-container { width: min(calc(100% - 40px), 860px); margin-inline: auto; }
.upload-heading { margin-bottom: 27px; text-align: center; }
.upload-heading h1 { margin-bottom: 9px; font-size: 34px; letter-spacing: -1.2px; }
.upload-heading p { color: var(--muted); }
.stepper { max-width: 580px; margin: 0 auto 32px; display: grid; grid-template-columns: repeat(3, 1fr); }
.stepper-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; color: #5d6b61; font-size: 11px; }
.stepper-item::before { content: ""; position: absolute; left: -50%; right: 50%; top: 13px; height: 1px; background: var(--line-strong); }
.stepper-item:first-child::before { display: none; }
.stepper-item i { position: relative; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg); font-style: normal; font-size: 11px; }
.stepper-item.active, .stepper-item.done { color: var(--green); }
.stepper-item.active i { border-color: var(--green-dark); background: var(--green-dark); color: white; box-shadow: 0 0 0 4px #dfe9df; }
.stepper-item.done i { border-color: var(--green); background: var(--green); color: white; }
.stepper-item.done::before, .stepper-item.active::before { background: var(--green); }
.upload-panel { padding: 30px; }
.dropzone { min-height: 320px; padding: 45px 25px; border: 1.5px dashed #aebdac; border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fafbf8; text-align: center; transition: background .18s ease, border-color .18s ease; }
.dropzone.dragging { border-color: var(--green); background: #f0f7eb; }
.dropzone-icon { width: 64px; height: 64px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 18px; background: #e8efe4; color: var(--green); }
.dropzone-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.dropzone h2 { margin-bottom: 7px; font-size: 20px; }
.dropzone p { margin-bottom: 20px; color: var(--muted); }
.dropzone small { margin-top: 17px; color: #7d887f; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-card { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf8; }
.file-info { display: flex; align-items: center; gap: 15px; }
.file-type-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: var(--green-dark); color: var(--lime); font-size: 11px; font-weight: 750; }
.file-info-text { min-width: 0; flex: 1; }
.file-info-text strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-info-text span { color: var(--muted); font-size: 12px; }
.upload-explain { margin: 24px 0; padding: 16px; border-radius: 9px; background: var(--surface-soft); color: var(--muted); font-size: 12px; }
.upload-actions { display: flex; justify-content: flex-end; gap: 10px; }
.progress-wrap { padding: 40px 10px; text-align: center; }
.progress-animation { width: 66px; height: 66px; margin: 0 auto 20px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green); }
.progress-animation svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.6; animation: breathe 1.6s ease-in-out infinite; }
.progress-wrap h2 { margin-bottom: 6px; font-size: 20px; }
.progress-wrap > p { color: var(--muted); }
.progress-track { height: 8px; overflow: hidden; margin: 28px 0 9px; border-radius: 10px; background: #e4e9e1; }
.progress-bar { height: 100%; border-radius: inherit; background: var(--green); transition: width .22s ease; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.form-section + .form-section { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.form-section h2 { margin-bottom: 5px; font-size: 17px; }
.form-section > p { margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 650; }
.required { color: var(--red); }
.field input, .field textarea, .field select { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: white; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgb(27 107 81 / 9%); outline: none; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.field-error { display: block; margin-top: 5px; color: var(--red); font-size: 11px; }
.form-footer { margin-top: 28px; display: flex; justify-content: flex-end; gap: 10px; }
.success-state { padding: 30px 10px 10px; text-align: center; }
.success-icon { width: 70px; height: 70px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: #e2f2e6; color: var(--green); }
.success-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.success-state h2 { margin-bottom: 8px; font-size: 25px; }
.success-state > p { max-width: 520px; margin: 0 auto 24px; color: var(--muted); }
.success-app { max-width: 480px; margin: 0 auto 24px; padding: 17px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf8; text-align: left; }
.success-app strong, .success-app span { display: block; }
.success-app span { color: var(--muted); font-size: 12px; }
.success-actions { display: flex; justify-content: center; gap: 10px; }

/* Install landing */
.install-page { min-height: 75vh; padding: 42px 0 75px; }
.install-container { width: min(calc(100% - 40px), 940px); margin-inline: auto; }
.install-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.install-banner { height: 7px; background: var(--green-dark); }
.install-head { padding: 35px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.install-head-text { min-width: 0; flex: 1; }
.install-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.install-head h1 { margin-bottom: 5px; font-size: 28px; letter-spacing: -.9px; }
.install-head p { color: var(--muted); }
.install-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; }
.install-main { padding: 30px 35px; }
.install-side { padding: 30px; border-left: 1px solid var(--line); background: #fafbf8; text-align: center; }
.current-version-box { margin-bottom: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.current-version-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.current-version-top strong { font-size: 18px; }
.install-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.install-meta div { min-width: 0; }
.install-meta span { display: block; color: var(--muted); font-size: 10px; }
.install-meta strong { display: block; overflow: hidden; font-size: 12px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.release-notes { margin-bottom: 24px; }
.release-notes h2, .history-box h2 { margin-bottom: 9px; font-size: 14px; }
.release-notes p { white-space: pre-line; color: var(--muted); font-size: 13px; }
.install-alert { margin-top: 16px; padding: 13px; display: flex; gap: 9px; border-radius: 9px; background: var(--surface-soft); color: var(--muted); font-size: 11px; }
.install-alert svg { width: 17px; height: 17px; margin-top: 1px; fill: none; stroke: var(--green); stroke-width: 1.8; }
.install-side h2 { margin-bottom: 4px; font-size: 14px; }
.install-side > p { color: var(--muted); font-size: 11px; }
.install-side .qr-box { width: 172px; min-height: 172px; }
.install-side .qr-box img, .install-side .qr-box svg { width: 150px; height: 150px; }
.install-side .short-link { margin-bottom: 10px; }
.history-box { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.history-list { display: grid; gap: 8px; }
.history-item { padding: 12px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 9px; }
.history-item.current { border-color: #b7d0bd; background: #f4f9f2; }
.history-item > div { min-width: 0; flex: 1; }
.history-item strong { display: block; font-size: 12px; }
.history-item small { color: var(--muted); font-size: 10px; }
.invalid-card { max-width: 540px; margin: 80px auto; padding: 45px; text-align: center; }
.invalid-card h1 { font-size: 25px; }
.invalid-card p { color: var(--muted); }

/* Dialog & feedback */
.dialog { width: min(calc(100% - 32px), 500px); max-height: min(85vh, 720px); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: white; color: var(--ink); box-shadow: 0 25px 100px rgb(0 0 0 / 24%); }
.dialog::backdrop { background: rgb(9 27 19 / 55%); backdrop-filter: blur(3px); }
.dialog-head { padding: 22px 24px 15px; display: flex; justify-content: space-between; gap: 20px; }
.dialog-head h2 { margin: 0; font-size: 20px; }
.dialog-body { padding: 0 24px 22px; color: var(--muted); }
.dialog-body p { font-size: 13px; }
.dialog-actions { padding: 16px 24px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); background: #fafbf8; }
.dialog .qr-box { width: 200px; min-height: 200px; }
.dialog .qr-box img, .dialog .qr-box svg { width: 178px; height: 178px; }
.dialog .form-grid { grid-template-columns: 1fr; }
.toast-region { position: fixed; right: 22px; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 100; display: grid; gap: 8px; pointer-events: none; }
.toast { max-width: 360px; padding: 12px 16px; display: flex; align-items: center; gap: 9px; border: 1px solid #335b4a; border-radius: 10px; background: var(--green-deep); color: white; box-shadow: 0 12px 35px rgb(0 0 0 / 20%); font-size: 13px; animation: toast-in .22s ease-out; }
.toast.error { border-color: #a9443c; background: #722f29; }
.toast svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.noscript { position: fixed; inset: auto 0 0; z-index: 100; padding: 14px; background: #722f29; color: white; text-align: center; }

@keyframes breathe { 50% { transform: translateY(-4px); opacity: .55; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Authentication & session */
.header-account { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-login { color: var(--green-dark); font-size: 13px; font-weight: 650; }
.header-login:hover { text-decoration: underline; text-underline-offset: 4px; }
.user-menu { position: relative; }
.user-menu summary { min-height: 40px; padding: 4px 9px 4px 5px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); cursor: pointer; list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--green-dark); color: var(--lime); font-size: 12px; font-weight: 750; }
.user-name { max-width: 100px; overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-popover { position: absolute; top: calc(100% + 10px); right: 0; width: 220px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow-lg); }
.user-menu-popover strong, .user-menu-popover span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-popover span { margin: 2px 0 12px; color: var(--muted); font-size: 11px; }
.user-menu-popover .button { width: 100%; }
.auth-page { min-height: 72vh; padding: 60px 0 85px; }
.auth-layout { width: min(calc(100% - 40px), 900px); margin: auto; display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow-lg); }
.auth-intro { padding: 46px 36px; background: var(--green-deep); color: white; }
.auth-intro .eyebrow { color: var(--lime); }
.auth-intro h1 { margin-bottom: 18px; font-size: 34px; line-height: 1.2; letter-spacing: -1.2px; }
.auth-intro p { color: #bed0c5; }
.auth-benefits { margin: 30px 0 0; padding: 0; display: grid; gap: 14px; list-style: none; color: #d9e6dd; font-size: 13px; }
.auth-benefits li { display: flex; gap: 9px; }
.auth-benefits svg { width: 17px; height: 17px; margin-top: 4px; fill: none; stroke: var(--lime); stroke-width: 2; }
.auth-card { padding: 42px 40px; }
.auth-card h2 { margin-bottom: 6px; font-size: 25px; letter-spacing: -.7px; }
.auth-card > p { margin-bottom: 25px; color: var(--muted); font-size: 13px; }
.auth-form { display: grid; gap: 17px; }
.auth-form .button { width: 100%; margin-top: 4px; }
.auth-error { min-height: 20px; margin: 0; color: var(--red); font-size: 12px; }
.auth-switch { margin: 20px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.auth-switch a { color: var(--green); font-weight: 650; }
.route-loading { min-height: 62vh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); }
.loading-spinner { width: 34px; height: 34px; border: 3px solid var(--line-strong); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1024px) {
  .reveal { animation: reveal-up .55s both; }
  .reveal-delay { animation-delay: .1s; }
  @keyframes reveal-up { from { opacity: 0; transform: translateY(12px); } }
}

@media (max-width: 1023px) {
  .header-inner { gap: 18px; }
  .main-nav { gap: 18px; }
  .hero-grid { grid-template-columns: 1fr 400px; gap: 35px; }
  .hero h1 { font-size: 52px; }
  .product-stage { min-height: 460px; padding-inline: 20px; }
  .stage-phone { right: -8px; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; justify-self: start; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 270px; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 75px; }
  .container, .header-inner, .footer-inner, .footer-bottom { width: min(calc(100% - 30px), var(--container)); }
  .header-inner { min-height: 64px; gap: 9px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 31px; height: 31px; }
  .nav-toggle { display: inline-flex !important; margin-left: 0; order: 3; }
  .header-account { margin-left: auto; }
  .register-link, .header-cta { display: none; }
  .user-name { max-width: 68px; }
  .main-nav { position: absolute; top: 64px; left: 0; right: 0; padding: 10px 15px 16px; display: none; flex-direction: column; align-items: stretch; gap: 2px; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow-sm); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 13px; border-radius: 8px; }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { background: var(--surface-soft); }
  .header-cta { min-height: 38px; margin-left: 0; padding: 8px 12px; font-size: 12px; }
  .auth-page { padding: 30px 0 60px; }
  .auth-layout { width: min(calc(100% - 30px), 900px); grid-template-columns: 1fr; }
  .auth-intro { padding: 30px 25px; }
  .auth-intro h1 { font-size: 28px; }
  .auth-benefits { margin-top: 20px; }
  .auth-card { padding: 30px 25px; }
  .hero { padding: 50px 0 45px; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero h1 { font-size: clamp(39px, 11.5vw, 55px); letter-spacing: -2.3px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions .button { flex: 1; }
  .product-stage { width: calc(100% - 12px); min-height: 420px; padding: 50px 14px 25px; border-radius: 20px; }
  .window-body { grid-template-columns: 55px 1fr; min-height: 270px; }
  .window-side { padding-inline: 9px; }
  .window-main { padding: 17px 12px; }
  .stage-phone { width: 135px; right: -10px; bottom: -25px; }
  .phone-screen { min-height: 205px; padding-inline: 9px; }
  .phone-meta { margin-block: 12px; }
  .capability-inner { padding-block: 20px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .capability-list { gap: 16px 22px; }
  .section { padding: 64px 0; }
  .section-heading { margin-bottom: 30px; }
  .workflow { grid-template-columns: 1fr; }
  .workflow-step, .workflow-step + .workflow-step { padding: 24px 0; border-left: 0; }
  .workflow-step + .workflow-step { border-top: 1px solid var(--line); }
  .step-number { margin-bottom: 18px; }
  .feature-layout { grid-template-columns: 1fr; }
  .feature-card, .feature-card.large { min-height: auto; padding: 25px; }
  .feature-card.large { grid-row: auto; }
  .version-visual { min-height: 250px; }
  .api-section { padding: 64px 0; }
  .api-grid { grid-template-columns: 1fr; gap: 35px; }
  .code-window pre { padding: 18px; font-size: 10px; }
  .final-cta { padding-bottom: 64px; }
  .final-cta-inner { padding: 35px 25px; align-items: flex-start; flex-direction: column; }
  .final-cta h2 { font-size: 27px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-links { max-width: 300px; }
  .footer-note { grid-column: auto; }
  .footer-bottom { gap: 10px; flex-direction: column; }
  .workspace-page, .upload-page { padding-top: 30px; }
  .workspace-top { align-items: flex-start; flex-direction: column; }
  .workspace-top h1, .upload-heading h1 { font-size: 29px; }
  .workspace-actions { width: 100%; }
  .workspace-actions .button { flex: 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 17px; }
  .stat-card strong { font-size: 24px; }
  .panel-header { align-items: flex-start; flex-direction: column; }
  .toolbar { width: 100%; }
  .search-field { flex: 1; }
  .search-field input { width: 100%; }
  .app-grid { grid-template-columns: 1fr; padding: 15px; }
  .detail-hero { align-items: flex-start; flex-wrap: wrap; padding: 20px; }
  .detail-actions { width: 100%; }
  .detail-actions .button { flex: 1; }
  .detail-grid { grid-template-columns: 1fr; }
  .version-table, .version-table tbody, .version-table tr, .version-table td { display: block; }
  .version-table thead { display: none; }
  .version-table tr { padding: 15px 18px; border-bottom: 1px solid var(--line); }
  .version-table tr:last-child { border-bottom: 0; }
  .version-table td { padding: 5px 0; border: 0; }
  .version-table td[data-label]::before { content: attr(data-label); display: inline-block; width: 80px; color: var(--muted); font-size: 11px; }
  .version-table td:first-child::before { display: none; }
  .row-actions { justify-content: flex-start; }
  .share-panel { display: none; }
  .upload-container { width: min(calc(100% - 30px), 860px); }
  .upload-panel { padding: 20px; }
  .dropzone { min-height: 280px; padding-inline: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-footer, .success-actions { flex-direction: column-reverse; }
  .form-footer .button, .success-actions .button { width: 100%; }
  .install-page { padding-top: 25px; }
  .install-container { width: min(calc(100% - 24px), 940px); }
  .install-head { padding: 25px 20px; align-items: flex-start; }
  .install-head h1 { font-size: 24px; }
  .install-head .app-icon-lg { width: 58px; height: 58px; flex-basis: 58px; border-radius: 15px; }
  .install-grid { grid-template-columns: 1fr; }
  .install-main { padding: 23px 20px; }
  .install-side { padding: 25px 20px; border-top: 1px solid var(--line); border-left: 0; }
  .install-meta { grid-template-columns: 1fr 1fr; }
  .toast-region { left: 15px; right: 15px; bottom: max(15px, env(safe-area-inset-bottom)); }
  .toast { max-width: none; }
}

@media (pointer: coarse) {
  .icon-button { min-width: 42px; min-height: 42px; }
  .app-card-actions .button-sm, .row-actions .button-sm { min-height: 40px; }
}

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