:root {
  color-scheme: light;
  --ink: #13213c;
  --ink-soft: #536179;
  --paper: #f4f6f9;
  --surface: #ffffff;
  --line: #dfe4ec;
  --accent: #ef8354;
  --accent-dark: #d65f2f;
  --navy: #14213d;
  --mint: #23a094;
  --danger: #b4233c;
  --warning-bg: #fff4dc;
  --warning-border: #e8b849;
  --shadow: 0 20px 60px rgba(20, 33, 61, .09);
  accent-color: var(--accent-dark);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 8% 0, #fff2ea 0, transparent 28rem), var(--paper); }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: white; background: var(--navy); font-size: 13px; font-weight: 900; letter-spacing: .08em; box-shadow: 0 10px 24px rgba(20,33,61,.2); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small { color: var(--ink-soft); margin-top: 2px; }
.top-actions, .button-row { display: flex; align-items: center; gap: 10px; }
.admin-name { color: var(--ink-soft); font-size: 14px; }
main { min-height: calc(100vh - 150px); padding: 34px 0 70px; }
footer { padding: 26px 0 34px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, summary { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
h1 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.035em; }
h2 { margin-bottom: 8px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
h3 { margin-bottom: 8px; }
p { color: var(--ink-soft); line-height: 1.65; }
.eyebrow { margin-bottom: 10px; color: var(--accent-dark); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--ink-soft); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; padding: 10px 16px; font-weight: 750; text-decoration: none; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(239,131,84,.28); outline-offset: 2px; }
.button-primary { color: white; background: var(--accent); box-shadow: 0 10px 25px rgba(239,131,84,.25); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { color: var(--navy); border-color: var(--line); background: white; }
.button-ghost { color: var(--ink-soft); border-color: var(--line); background: transparent; }
.button-danger { color: white; background: var(--danger); }
.button-danger-quiet { color: var(--danger); border-color: #efcbd2; background: #fff7f8; }
.button-wide { width: 100%; }

.hero { display: flex; min-height: 265px; align-items: end; justify-content: space-between; gap: 36px; padding: 46px; border-radius: 28px; color: white; background: linear-gradient(135deg, #14213d 0%, #24375f 100%); box-shadow: var(--shadow); }
.hero h1 { margin-bottom: 16px; }
.hero p { max-width: 670px; margin-bottom: 0; color: #cbd4e5; font-size: 17px; }
.hero .eyebrow { color: #ffae88; }
.hero .button { flex: 0 0 auto; }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 18px 0 38px; }
.stat-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.85); }
.stat-card span, .stat-card strong { display: block; }
.stat-card span { color: var(--ink-soft); font-size: 13px; }
.stat-card strong { margin-top: 8px; font-size: 23px; }
.stats-hero { min-height: 230px; }
.stats-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.stat-card-accent { color: white; border-color: transparent; background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.stat-card-accent span { color: #fff3ed; }
.stats-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-event-list { display: grid; gap: 10px; margin-top: 20px; }
.stats-event { display: grid; grid-template-columns: 175px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 15px 16px; border: 1px solid transparent; border-radius: 14px; background: var(--paper); }
.stats-event time { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.stats-event-main { display: grid; gap: 3px; }
.stats-event-main span, .stats-event-main small { color: var(--ink-soft); }
.stats-event-manifest { border-color: #f1b192; background: #fff6f1; }
.stats-event-manifest .stats-event-main span { color: #a6411d; font-weight: 800; }
.appstore-job-list { gap: 1rem; }
.appstore-job { align-items: flex-start; }
.appstore-job-summary { display: grid; gap: .35rem; min-width: 0; }
.appstore-job-active { border: 1px solid #d5dfed; background: #f7f9fc; }
.appstore-live-progress { display: grid; grid-template-columns: 18px minmax(120px, 260px) minmax(150px, 1fr); align-items: center; gap: 10px; margin-top: 5px; }
.appstore-live-progress small { margin: 0; }
.appstore-spinner { width: 16px; height: 16px; border: 2px solid #cbd5e3; border-top-color: var(--accent); border-radius: 50%; animation: appstore-spin .85s linear infinite; }
.appstore-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #dfe5ee; }
.appstore-progress-track span { display: block; width: 38%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ffb18e); animation: appstore-progress 1.4s ease-in-out infinite alternate; }
.button[disabled] { cursor: wait; opacity: .68; transform: none; }
@keyframes appstore-spin { to { transform: rotate(360deg); } }
@keyframes appstore-progress { from { transform: translateX(-60%); } to { transform: translateX(225%); } }
.appstore-results { display: grid; gap: .75rem; padding: .25rem 0 1rem 1rem; border-left: 3px solid #d9e2f0; }
.appstore-result-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.appstore-result-card > div:first-child { display: grid; gap: .35rem; min-width: 0; }
@media (max-width: 720px) {
  .appstore-result-card { align-items: stretch; flex-direction: column; }
  .appstore-results { padding-left: .65rem; }
  .appstore-live-progress { grid-template-columns: 18px 1fr; }
  .appstore-live-progress small { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .appstore-spinner, .appstore-progress-track span { animation-duration: 3s; }
}
.stats-source { border-radius: 999px; padding: 6px 10px; color: #43506a; background: white; font-size: 11px; font-weight: 750; white-space: nowrap; }
.stats-table { min-width: 820px; }
.stats-table td small { display: block; margin-top: 3px; color: var(--ink-soft); }

.panel { margin: 22px 0; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 10px 35px rgba(20,33,61,.04); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.section-heading p { margin-bottom: 0; }
.progress { width: 100%; height: 13px; margin-top: 24px; overflow: hidden; border: 0; border-radius: 999px; background: #e8ecf2; appearance: none; }
.progress::-webkit-progress-bar { border-radius: inherit; background: #e8ecf2; }
.progress::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg, var(--mint), #66cec3); }
.progress::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, var(--mint), #66cec3); }
.upload-meta { display: flex; justify-content: space-between; margin-top: 10px; color: var(--ink-soft); font-size: 13px; }
.resume-list { display: grid; gap: 10px; }
.resume-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px; border-radius: 14px; background: var(--paper); }
.resume-item strong, .resume-item small { display: block; }
.resume-item small { margin-top: 4px; color: var(--ink-soft); }

.library { margin-top: 50px; }
.library-heading { margin-bottom: 20px; }
.search { display: flex; gap: 8px; width: min(470px, 100%); }
.search input { flex: 1; }
input, textarea, select { width: 100%; border: 1px solid #cfd6e2; border-radius: 12px; padding: 11px 13px; color: var(--ink); background: white; font-weight: 500; }
input::placeholder, textarea::placeholder { color: #8a94a8; font-weight: 400; }
/* Only after the person has touched the field: never red on page load. */
input:not([type="checkbox"], [type="radio"], [type="range"]):user-invalid, textarea:user-invalid { border-color: var(--danger); }
.check-label { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 650; cursor: pointer; }
.check-label input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--accent); }
.panel-compact { padding: 16px 22px; }
textarea { resize: vertical; }
label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.stack-form { display: grid; gap: 18px; }
.compact-form { margin-top: 24px; }
.inline-form { display: flex; align-items: end; gap: 10px; margin: 20px 0; }
.inline-form label { flex: 1; }
.wrap { flex-wrap: wrap; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 14px; margin: 18px 0; }
.filter-grid .button-row { align-self: end; }
.limit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.limit-grid > div { padding: 14px; border-radius: 13px; background: var(--paper); }
.limit-grid span, .limit-grid strong { display: block; }
.limit-grid span { color: var(--ink-soft); font-size: 12px; }
.limit-grid strong { margin-top: 5px; font-size: 20px; }
.audit-list { display: grid; gap: 8px; margin-top: 18px; }
.audit-list > div { display: grid; grid-template-columns: 165px minmax(190px, .8fr) 1fr; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--paper); }
.audit-list time, .audit-list span { color: var(--ink-soft); font-size: 13px; }
.table-scroll { overflow-x: auto; margin-top: 18px; }
.audit-table { width: 100%; min-width: 1100px; border-collapse: collapse; font-size: 13px; }
.audit-table th, .audit-table td { padding: 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.audit-table th { color: var(--ink-soft); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.app-card { display: flex; gap: 16px; min-height: 154px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; background: var(--surface); transition: transform .17s ease, box-shadow .17s ease, border-color .17s ease; }
.app-card:hover { transform: translateY(-3px); border-color: #bdc7d6; box-shadow: var(--shadow); }
.app-icon, .detail-icon { flex: 0 0 auto; object-fit: cover; border-radius: 20%; background: #e8edf5; }
.app-icon { width: 66px; height: 66px; }
.detail-icon { width: 106px; height: 106px; }
.app-icon-placeholder { display: inline-grid; place-items: center; color: white; background: linear-gradient(145deg, var(--navy), #59709f); font-weight: 900; }
.app-card-body { min-width: 0; flex: 1; }
.app-card h3, .app-card p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-card p { margin-bottom: 18px; font-size: 13px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pill-row span, .tags { border-radius: 999px; padding: 5px 9px; color: #43506a; background: #eef1f6; font-size: 11px; }
.tags { display: inline-block; margin-top: 10px; color: #7b4a33; background: #fff0e8; }
.empty-state { display: grid; place-content: center; justify-items: center; gap: 6px; min-height: 150px; padding: 24px; border: 1px dashed #c8d0dc; border-radius: 22px; color: var(--ink-soft); text-align: center; }
.empty-state strong { color: var(--ink); font-size: 20px; }

.breadcrumbs { display: flex; gap: 9px; margin-bottom: 24px; color: var(--ink-soft); font-size: 14px; }
.partner-detail-page { width: min(100%, 1080px); margin-inline: auto; }
.partner-detail-page .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.partner-detail-page .panel { min-width: 0; }
.partner-schedule-panel { width: min(100%, 820px); margin-inline: auto; }
.detail-hero { display: flex; align-items: center; gap: 24px; padding: 26px 0 38px; }
.detail-title { flex: 1; min-width: 0; }
.detail-title h1 { margin-bottom: 7px; font-size: clamp(38px, 6vw, 64px); }
.detail-title p { margin-bottom: 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr); gap: 20px; }
.detail-grid .panel { margin: 0; }
.facts { display: grid; gap: 0; margin: 20px 0 28px; }
.facts div, .transfer-facts div { display: grid; grid-template-columns: minmax(150px, .45fr) 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt, .transfer-facts dt { color: var(--ink-soft); }
.facts dd, .transfer-facts dd { margin: 0; font-weight: 650; }
.clean-list { list-style: none; padding: 0; }
.clean-list li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.clean-list span { color: var(--ink-soft); }
.share-form { display: flex; align-items: end; gap: 10px; }
.share-form label { min-width: 130px; }
.active-links { display: grid; gap: 9px; margin-top: 20px; }
.active-links > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 14px; border-radius: 12px; background: var(--paper); }

.alert { margin: 16px 0; padding: 14px 16px; border: 1px solid; border-radius: 13px; line-height: 1.5; }
.alert-danger { color: #8b1830; border-color: #efc3cc; background: #fff2f4; }
.alert-warning { color: #735516; border-color: var(--warning-border); background: var(--warning-bg); }
.alert-success { color: #17635c; border-color: #8bd0c9; background: #edfbf9; }
.login-wrap, .transfer-body { display: grid; min-height: calc(100vh - 190px); place-items: center; }
.login-panel, .phone-card, .share-card, .confirm-card { width: min(520px, 100%); padding: 42px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.login-panel h1, .share-card h1, .confirm-card h1, .phone-card h1 { font-size: clamp(34px, 7vw, 52px); }
.confirm-card, .share-card, .phone-card { margin: 30px auto; text-align: center; }
.danger-symbol { display: grid; width: 60px; height: 60px; margin: 0 auto 20px; place-items: center; border-radius: 50%; color: white; background: var(--danger); font-size: 30px; font-weight: 900; }
.centered { justify-content: center; }
.qr { display: block; width: min(300px, 80vw); height: auto; margin: 24px auto; border: 10px solid white; border-radius: 15px; box-shadow: 0 10px 30px rgba(20,33,61,.12); }
.share-url { overflow-wrap: anywhere; margin: 15px 0; padding: 12px; border-radius: 12px; color: var(--ink-soft); background: var(--paper); font-family: ui-monospace, monospace; font-size: 12px; }
.transfer-body { min-height: 100vh; padding: 18px; }
.phone-card .brand-mark { margin: 0 auto 28px; }
.transfer-facts { margin: 25px 0; text-align: left; }
.transfer-actions { display: grid; gap: 10px; }
.robot-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: 28px; align-items: center; }
.robot-copy h2 { margin: 5px 0 8px; }
.robot-copy .button { margin-top: 14px; }
.robot-status { min-height: 24px; color: var(--ink-soft); font-weight: 650; }
.robot-result { display: grid; grid-template-columns: minmax(120px, 1fr); gap: 18px; align-items: center; padding: 14px; border-radius: 16px; background: var(--paper); }
.robot-result[hidden] { display: none; }
.robot-result img { display: block; width: 100%; max-height: 240px; object-fit: contain; border-radius: 12px; background: #101827; }
.robot-result small { display: block; color: var(--ink-soft); }
.robot-result strong { display: block; margin-top: 5px; font-size: clamp(32px, 5vw, 58px); letter-spacing: .08em; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .robot-panel { grid-template-columns: 1fr; }
  .partner-detail-page .detail-grid { grid-template-columns: 1fr; }
  .filter-grid, .limit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-event { grid-template-columns: 165px minmax(0, 1fr); }
  .stats-source { justify-self: start; grid-column: 2; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 20px, 1180px); }
  .topbar { min-height: 72px; flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .top-actions { flex-wrap: wrap; gap: 6px; width: 100%; }
  .top-actions .button { min-height: 36px; padding: 7px 11px; font-size: 14px; }
  .top-actions form { margin-left: auto; }
  .admin-name { display: none; }
  main { padding-top: 18px; }
  .hero { min-height: 0; align-items: stretch; flex-direction: column; padding: 28px 22px; }
  .hero h1 { font-size: 42px; }
  .stats-grid, .app-grid { grid-template-columns: 1fr; }
  .stats-summary-grid { grid-template-columns: 1fr; }
  .section-heading, .library-heading, .detail-hero { align-items: stretch; flex-direction: column; }
  .search, .share-form { width: 100%; align-items: stretch; flex-direction: column; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .filter-grid, .limit-grid { grid-template-columns: 1fr; }
  .stats-filter-grid { grid-template-columns: 1fr; }
  .stats-event { grid-template-columns: 1fr; gap: 7px; }
  .stats-source { grid-column: auto; }
  .audit-list > div { grid-template-columns: 1fr; gap: 4px; }
  .detail-hero .button { align-self: start; }
  .detail-icon { width: 88px; height: 88px; }
  .panel, .login-panel, .share-card, .confirm-card, .phone-card { padding: 22px; border-radius: 19px; }
  .facts div, .transfer-facts div { grid-template-columns: 1fr; gap: 4px; }
  .resume-item, .active-links > div { align-items: stretch; flex-direction: column; }
  .robot-result { grid-template-columns: 1fr; }
}

/* Compact page headers: the hero is a page title, not a landing banner. */
.hero { min-height: 0; align-items: center; padding: 26px 32px; border-radius: 22px; }
.hero h1 { margin-bottom: 8px; }
.hero p { font-size: 15px; line-height: 1.55; }
.hero .eyebrow { margin-bottom: 6px; }
.stats-hero { min-height: 0; }
.detail-hero { padding: 14px 0 26px; }
.detail-icon { width: 84px; height: 84px; }
.stats-grid { gap: 10px; margin: 16px 0 26px; }
.stat-card { padding: 14px 16px; border-radius: 14px; }
.stat-card strong { margin-top: 4px; font-size: 20px; }
.library { margin-top: 34px; }
.library-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 20px; }
.robot-panel h2 { font-size: clamp(22px, 2.4vw, 28px); }
.top-actions .button[aria-current="page"] { color: var(--navy); border-color: #b9c4d6; background: white; box-shadow: 0 4px 14px rgba(20,33,61,.08); }
.pill-row .pill-ok { color: #11665e; background: #dff5f1; font-weight: 750; }
.pill-row .pill-warn { color: #8a4b0f; background: #fff1d6; font-weight: 750; }
.pill-row .pill-muted { color: #5d6678; background: #eceff4; font-weight: 750; }
.app-card p { margin-bottom: 12px; }
.app-card-date { display: block; margin-top: 10px; color: var(--ink-soft); font-size: 11px; }
@media (max-width: 640px) {
  .hero { padding: 22px 20px; }
  .hero h1 { font-size: 30px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-tools { align-items: stretch; flex-direction: column; }
}
.share-expiry { margin: 4px 0 12px; }
.share-copy { margin: 10px 0 16px; }
.countdown-expired { color: var(--danger); }
.partner-create-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 14px; margin-top: 16px; }
@media (max-width: 900px) {
  .partner-create-form { grid-template-columns: 1fr; }
}
.robot-panel { padding: 20px 24px; }
.robot-panel h2 { margin-bottom: 4px; }
.robot-copy p { margin-bottom: 6px; font-size: 14px; line-height: 1.5; }
.robot-copy .button { margin-top: 8px; }
/* App detail page: long bundle IDs and hashes must wrap instead of widening the page. */
.facts dd, .clean-list span, .active-links span { min-width: 0; overflow-wrap: anywhere; }
.clean-list li { flex-wrap: wrap; }
@media (max-width: 900px) {
  .detail-grid, .partner-detail-page .detail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .detail-hero { gap: 14px; }
  .share-form label { min-width: 0; }
  .active-links > div .button { align-self: stretch; }
}
.tariff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
.tariff-card { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.tariff-price { color: var(--ink); font-size: 24px; font-weight: 800; }
.tariff-card small { color: var(--ink-soft); }
.payment-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 12px; }
.payment-text { margin-bottom: 14px; white-space: pre-line; color: var(--ink); font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.payment-qr { width: 200px; height: 200px; flex: 0 0 auto; }
.alert-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.payment-report { border-color: var(--warning-border); background: #fffaf0; }
.span-2 { grid-column: span 2; }
@media (max-width: 900px) { .span-2 { grid-column: auto; } }
@media (max-width: 640px) { .payment-box { flex-direction: column; align-items: stretch; } .payment-qr { align-self: center; } }
/* Partner installation guide */
.guide-rules ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; }
.guide-toc a { padding: 7px 12px; border-radius: 999px; background: var(--paper); color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none; }
.guide-stage { scroll-margin-top: 16px; }
.guide-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.guide-steps-wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.guide-steps-text { grid-template-columns: 1fr; gap: 10px; }
.guide-steps li { display: flex; flex-direction: column; gap: 10px; }
.guide-steps li p { margin: 0; color: var(--ink); line-height: 1.5; }
.guide-shot { display: block; max-width: 260px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.guide-shot-wide { max-width: 100%; border-radius: 12px; }
.guide-shot img { display: block; width: 100%; height: auto; }
.guide-branch { margin-top: 24px; padding: 18px; border: 1px dashed var(--warning-border); border-radius: 16px; background: #fffaf0; }
.guide-branch p { margin: 6px 0 14px; }
.guide-branch-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.guide-branch-shots figure { margin: 0; }
.guide-branch-shots figcaption { margin-top: 6px; color: var(--ink-soft); font-size: 13px; }
.guide-stage-final { border-color: var(--warning-border); }
@media (max-width: 640px) {
  .guide-steps, .guide-steps-wide { grid-template-columns: 1fr; }
  .guide-shot { max-width: min(300px, 100%); }
  .guide-shot-wide { max-width: 100%; }
}
.guide-num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-right: 8px; padding: 0 6px; border-radius: 999px; color: white; background: var(--accent); font-size: 13px; font-weight: 800; vertical-align: 1px; }
.top-actions { flex-wrap: wrap; justify-content: flex-end; }
.top-actions .button, .admin-name { white-space: nowrap; }
.top-actions .button { padding: 9px 13px; }
.brand { flex: 0 0 auto; }
@media (max-width: 1440px) { .admin-name { display: none; } }
@media (max-width: 640px) { .top-actions { justify-content: flex-start; } }
.tariff-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tariff-card { gap: 6px; padding: 20px; background: var(--surface); box-shadow: 0 8px 24px rgba(20,33,61,.05); }
.tariff-name { color: var(--accent-dark); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.tariff-installs { color: var(--ink); font-size: 15px; }
.tariff-installs b { font-size: 28px; }
.tariff-price { margin-top: 6px; }
.login-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.login-links span { width: 100%; color: var(--ink-soft); font-size: 14px; }
.login-links .button { flex: 1; }
.robot-presence { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 2px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.robot-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.robot-presence-online { color: #11665e; background: #dff5f1; }
.robot-presence-offline { color: var(--danger); background: #fdecef; }
.robot-presence-unknown { color: #5d6678; background: #eceff4; }
.robot-status:empty { display: none; }
.alert-info { border: 1px solid #c9d6ea; background: #f2f6fc; color: var(--navy); }
.recovery-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; margin: 14px 0; padding-left: 22px; }
.recovery-list code { font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.security-codes { border-color: var(--warning-border); background: #fffaf0; }
.security-key { font-size: 18px; font-weight: 700; letter-spacing: .08em; }
footer a { color: inherit; }
.security-open { margin-bottom: 14px; }
@media (min-width: 900px) { .security-open { display: none; } }
/* Hero action buttons wrap instead of widening the page on phones. */
.hero .button-row { flex-wrap: wrap; }
@media (max-width: 640px) {
  .hero .button-row { align-items: stretch; flex-direction: column; }
  .hero .button-row .button, .hero .button-row form { width: 100%; }
}
.service-account-data { display: grid; gap: 10px; margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--paper); }
.service-account-data[hidden] { display: none; }
.service-account-data > div { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.service-account-data span { color: var(--ink-soft); font-size: 13px; }
.service-account-data strong { overflow-wrap: anywhere; }
.service-account-data p { margin: 0; white-space: pre-line; }
@media (max-width: 640px) { .service-account-data > div { grid-template-columns: minmax(0, 1fr) auto; } .service-account-data > div span { grid-column: 1 / -1; } }
.button[hidden] { display: none; }
.transfer-account { margin: 18px 0 8px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; text-align: left; }
.transfer-account h2 { margin-bottom: 6px; font-size: 22px; }
.transfer-account .service-account-data { margin-top: 12px; }
.transfer-step { margin-top: 18px; }
.transfer-account .service-account-data > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.transfer-account .service-account-data > div span { grid-column: auto; }
.transfer-account .service-account-data .button { width: 100%; }
.service-account-data strong[aria-label] { white-space: nowrap; letter-spacing: .1em; }
.bundle-list { display: grid; gap: 12px; margin: 14px 0; padding: 0; list-style: none; text-align: left; }
.bundle-item { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.bundle-item-head strong, .bundle-item-head small { display: block; }
.bundle-item-head small { margin-top: 2px; color: var(--ink-soft); }
.bundle-created-list { margin: 10px auto 16px; padding: 0; list-style: none; color: var(--ink); font-weight: 650; }
.cart-form { margin-top: 18px; }
.app-card-wrap { position: relative; display: grid; }
.app-card-wrap .app-card { padding-bottom: 58px; }
.cart-toggle { position: absolute; right: 16px; bottom: 14px; min-height: 34px; padding: 6px 12px; font-size: 13px; }
.cart-toggle-active { color: #11665e; border-color: #9fd9cf; background: #e9f8f5; }
.cart-toggle-inline { margin-top: 10px; }
.cart-bar { position: fixed; left: 50%; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 12px; width: min(560px, calc(100% - 24px)); padding: 10px 12px 10px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 16px 40px rgba(20,33,61,.18); transform: translateX(-50%); }
.cart-bar[hidden] { display: none; }
.cart-bar span { flex: 1; color: var(--ink); font-weight: 750; }
.cart-bar .button { min-height: 38px; padding: 8px 14px; white-space: nowrap; }
.cart-bar span { white-space: nowrap; }
body.has-cart main { padding-bottom: 120px; }
@media (max-width: 640px) { .cart-bar { gap: 8px; padding: 8px 8px 8px 14px; } .cart-bar .button-ghost { padding: 8px 10px; } }
.cart-bar .button { flex: 0 0 auto; }
.cart-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .cart-bar span, .cart-bar .button { font-size: 14px; } .cart-bar .button { padding: 8px 10px; } }
.robot-off { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.robot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.robot-copy .robot-actions .button { margin-top: 0; }
.guide-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); gap: 20px; margin-top: 14px; }
.guide-video-grid figure { margin: 0; }
.guide-video-grid video { display: block; width: 100%; aspect-ratio: 384 / 848; border: 1px solid var(--line); border-radius: 18px; background: #101827; }
.guide-video-grid figcaption { margin-top: 8px; color: var(--ink-soft); font-size: 13px; text-align: center; }
@media (max-width: 640px) { .guide-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* Retail storefront, offer and contacts */
footer { display: grid; gap: 6px; }
.shop-card { cursor: default; }
.shop-card:hover { transform: none; }
.shop-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.shop-buy strong { font-size: 18px; }
.legal { max-width: 860px; margin-inline: auto; line-height: 1.6; }
.legal h1 { margin-top: 0; }
.legal h2 { margin: 26px 0 8px; font-size: 18px; }
.legal p { margin: 0 0 10px; }
.requisites { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 8px 18px; margin: 0 0 18px; }
.requisites dt { color: var(--ink-soft); }
.requisites dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .requisites { grid-template-columns: 1fr; gap: 2px; } .requisites dd { margin-bottom: 10px; } }
.retail-row { display: grid; grid-template-columns: 44px minmax(140px, 1fr) minmax(160px, 1.3fr) auto; align-items: center; gap: 10px 14px; }
.retail-actions { display: flex; gap: 8px; }
.retail-row.is-on-sale { box-shadow: inset 4px 0 0 var(--accent, #f0834f); }
.retail-icon { width: 44px; height: 44px; border-radius: 11px; font-size: 13px; }
.retail-name { display: grid; gap: 2px; min-width: 0; }
.retail-name small { color: var(--ink-soft); }
@media (max-width: 760px) { .retail-row { grid-template-columns: 44px 1fr; } .retail-description, .retail-actions { grid-column: 1 / -1; } .retail-actions .button { flex: 1; } }
.checkout { max-width: 760px; margin-inline: auto; }
.checkout-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checkout-list li { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface-soft, #f4f6fa); }
.checkout-total { font-size: 20px; margin: 6px 0; }
@media (max-width: 520px) { .checkout-list li { grid-template-columns: 44px 1fr auto; } .checkout-list li .button { grid-column: 1 / -1; } }
.table-wrap { overflow-x: auto; }
.earnings-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.earnings-table th, .earnings-table td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.earnings-table th:first-child, .earnings-table td:first-child { text-align: left; }
.earnings-table th { color: var(--ink-soft); font-weight: 600; }
.keep-link { display: grid; gap: 6px; justify-items: start; padding: 14px 16px; margin: 12px 0; border-radius: 16px; background: var(--surface-soft, #f4f6fa); text-align: left; }
.keep-link span { color: var(--ink-soft); font-size: 14px; }

/* ── 2026-10 navigation: one row on desktop, «Меню» on phones, grouped admin sections ── */
.topbar { justify-content: flex-start; }
.topbar .brand { margin-right: auto; }
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid rgba(239,131,84,.28); outline-offset: 2px; }
.header-cart { order: 3; gap: 6px; }
.header-cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; color: white; background: var(--accent); font-size: 12px; font-weight: 800; }
.header-cart-count[hidden] { display: none; }
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; }
.subnav a { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 14px; font-weight: 700; text-decoration: none; background: rgba(255,255,255,.7); }
.subnav a[aria-current="page"] { color: white; border-color: var(--navy); background: var(--navy); }
@media (max-width: 760px) {
  .topbar { min-height: 64px; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
  .brand small { display: none; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 12px; }
  .nav-burger { display: inline-flex; order: 4; min-height: 40px; padding: 8px 14px; }
  .header-cart { min-height: 40px; padding: 8px 12px; }
  .topbar .top-actions { display: none; order: 5; width: 100%; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 0 4px; }
  .nav-toggle:checked ~ .top-actions { display: flex; }
  .topbar .top-actions .button { justify-content: flex-start; width: 100%; min-height: 44px; font-size: 16px; }
  .topbar .top-actions form { margin-left: 0; }
  .subnav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .subnav a { white-space: nowrap; }
  main { padding-top: 18px; }
}

/* ── Storefront ── */
.shop-hero h1 { max-width: 760px; font-size: clamp(28px, 4vw, 42px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.button-on-dark { color: white; border-color: rgba(255,255,255,.35); background: transparent; }
.button-on-dark:hover { background: rgba(255,255,255,.08); }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; color: #cbd4e5; font-size: 14px; list-style: none; }
.trust-row li::before { content: "✓"; margin-right: 6px; color: #7fe0c9; font-weight: 800; }
#catalog { margin-top: 30px; scroll-margin-top: 12px; }
.shop-filter { width: min(320px, 100%); padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.app-card[hidden], .empty-state[hidden] { display: none; }
.app-grid + .empty-state { margin-top: 12px; }
.steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 14px 0 0; padding: 0; list-style: none; }
.steps-row li { display: flex; align-items: flex-start; gap: 4px; }
.steps-row strong, .steps-row span:not(.guide-num) { display: block; }
.steps-row strong { margin-bottom: 4px; }
.steps-row span:not(.guide-num) { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; cursor: pointer; font-weight: 750; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-dark); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--ink); }
#faq { scroll-margin-top: 12px; }
.shop-legal { margin-top: 6px; }
.empty-state .button { margin-top: 10px; }
@media (max-width: 760px) {
  .steps-row { grid-template-columns: 1fr; gap: 14px; }
  .hero-actions .button { flex: 1 1 100%; }
  .trust-row { flex-direction: column; gap: 6px; }
  .shop-hero h1 { font-size: 28px; }
}

/* ── Client install page: numbered steps instead of technical facts ── */
.transfer-meta { margin: -4px 0 6px; color: var(--ink-soft); font-size: 15px; }
.step-label { margin-bottom: 6px; color: var(--accent-dark); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.transfer-step { margin-top: 22px; text-align: left; }
.step-warning { margin: 8px 0 12px; padding: 10px 12px; border: 1px solid #f0b8a0; border-radius: 12px; color: #7a2e12; background: #fff1ea; font-size: 15px; line-height: 1.5; }
.step-list { display: grid; gap: 10px; margin: 0 0 14px; padding-left: 22px; color: var(--ink); font-size: 16px; line-height: 1.5; text-align: left; }
.step-list li::marker { color: var(--accent-dark); font-weight: 800; }
.step-hint { margin: 4px 0 10px; color: var(--ink); font-size: 16px; line-height: 1.5; text-align: left; }
.step-more { margin: 12px 0 0; color: var(--ink-soft); }
.transfer-finish { margin-top: 22px; }
.transfer-account .small, .phone-card .small { font-size: 14px; }

/* ── Guide on phones: text beside a small screenshot, stages menu stays on screen ── */
.guide-help { margin-top: 22px; }
@media (max-width: 640px) {
  .guide-steps li:has(> .guide-shot:not(.guide-shot-wide)) { display: grid; grid-template-columns: minmax(0, 1fr) 128px; align-items: start; gap: 12px; }
  .guide-steps li > .guide-shot:not(.guide-shot-wide) { max-width: 128px; border-radius: 12px; }
  .guide-toc { position: sticky; top: 0; z-index: 10; flex-wrap: nowrap; overflow-x: auto; padding: 10px 12px; }
  .guide-toc a { flex: 0 0 auto; white-space: nowrap; }
}

/* ── Dashboard: apps first, owner's «Сегодня», storage folded away ── */
.dashboard-hero { padding: 24px 32px; }
.dashboard-hero h1 { font-size: clamp(26px, 3.4vw, 36px); }
.today-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.today-strip > * { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; background: var(--surface); }
.today-strip a:hover { border-color: #bdc7d6; }
.today-strip span, .today-strip strong { display: block; }
.today-strip span { color: var(--ink-soft); font-size: 13px; }
.today-strip strong { margin-top: 4px; font-size: 20px; }
.today-disk strong { color: var(--ink-soft); font-size: 16px; }
.window-note { margin: 14px 0 0; color: #11665e; font-size: 14px; }
.window-note::before { content: "● "; }
.window-note-off { color: #8a4b0f; }
.library-first { margin-top: 22px; }
.storage-details { margin-top: 34px; }
.storage-details > summary { cursor: pointer; color: var(--ink-soft); font-weight: 750; }
.storage-details[open] > summary { margin-bottom: 14px; }
.storage-details .stats-grid { margin: 0 0 12px; }
.storage-details .limit-grid { margin-top: 0; }
.limit-grid small { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.hint { margin: 12px 0; }
.cart-inline { display: grid; gap: 4px; justify-items: stretch; }
.cart-inline small { text-align: center; }
.small { font-size: 13px; }
@media (max-width: 760px) {
  .dashboard-hero { padding: 20px; }
  .today-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Retail video: whole buyer path, vertical phone recording ── */
.shop-steps-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: start; }
.shop-steps-layout .steps-row { grid-template-columns: 1fr; }
.retail-video { margin: 0; }
.retail-video video { display: block; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 384 / 848; border: 1px solid var(--line); border-radius: 18px; background: #101827; }
.retail-video figcaption { margin-top: 8px; color: var(--ink-soft); font-size: 13px; text-align: center; }
.install-video { margin: 12px 0 0; text-align: left; }
.install-video summary { cursor: pointer; color: var(--accent-dark); font-weight: 750; }
.install-video .retail-video { margin-top: 10px; }
@media (max-width: 760px) {
  .shop-steps-layout { grid-template-columns: 1fr; }
  .retail-video video { max-width: 260px; }
}

/* ── Printed install codes ── */
.voucher-issue { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 14px 0; }
.voucher-issue label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.voucher-issue input { width: 120px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.voucher-sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.voucher-sheet { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.voucher-sheet small { color: var(--ink-soft); }
.voucher-sheet .button-row { flex-wrap: wrap; margin-top: 6px; }
.voucher-sheet-blocked { opacity: .6; }
.voucher-total { font-size: 18px; }
.voucher-pay { margin: 18px 0; padding: 18px; border: 2px solid var(--accent); border-radius: 18px; background: #fff7f2; }
.voucher-pay h2 { font-size: 22px; }
.voucher-held { display: grid; gap: 8px; margin: 10px 0; padding: 0; list-style: none; }
.voucher-held li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: white; }
.voucher-held .mono { font-size: 17px; font-weight: 800; letter-spacing: .05em; }
.voucher-held small { flex: 1; color: var(--ink-soft); }
.voucher-apply { display: flex; flex-wrap: wrap; gap: 8px; }
.voucher-apply input { flex: 1 1 200px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 17px; text-transform: uppercase; }
.voucher-done { margin: 8px 0 0; color: #11665e; font-weight: 750; }
.voucher-note { max-width: 320px; color: var(--ink); }
.voucher-scan { max-width: 520px; margin: 20px auto; text-align: center; }
.voucher-code { font-family: ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.row-warn td { background: #fff7e6; }
.codes-pay { margin-top: 22px; }
.codes-pay > summary { cursor: pointer; font-size: 19px; font-weight: 800; list-style-position: inside; }
.codes-pay > summary small { margin-left: 6px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.codes-pay[open] > summary { margin-bottom: 10px; }
.codes-progress { margin: 10px 0 4px; color: var(--ink); font-size: 17px; }
.codes-error { min-height: 1.4em; margin: 6px 0; color: var(--danger); font-weight: 700; }
.voucher-held .code-bad { border: 1px solid #efcbd2; background: #fff7f8; }
.voucher-held .code-bad small { color: var(--danger); }
#codes-pay-form { margin-top: 10px; }
.codes-paid-qr { display: block; width: 180px; margin: 10px auto 0; }
.voucher-apply[hidden] { display: none; }
#codes-scan { margin: 6px 0 4px; font-size: 17px; }
.code-scanner { margin: 10px 0; }
.code-scanner[hidden], #codes-scan[hidden] { display: none; }
.code-scanner video { display: block; width: 100%; max-height: 60vh; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; background: #101827; }
.code-scanner-status { margin: 8px 0; color: var(--ink); font-size: 16px; font-weight: 750; text-align: center; }
.voucher-cabinet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.voucher-cabinet p { flex: 1 1 360px; margin: 0; color: var(--ink); }

/* ── Illustrations: storefront hero picture, partner feature grid, codes film ── */
.shop-hero { position: relative; overflow: hidden; }
.hero-art { display: none; }
@media (min-width: 1100px) {
  .shop-hero > div { max-width: 640px; }
  .hero-art { display: block; position: absolute; right: 28px; bottom: 0; width: 420px; height: 340px; }
  .hero-art img { display: block; width: 100%; height: 100%; }
}
.bento { margin: 34px 0; }
.bento > h2 { margin-bottom: 16px; }
.bento-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 24px 0 0 24px; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.tile-hero { grid-column: span 2; }
.tile-copy { margin: 0; padding-right: 24px; color: var(--ink-soft); font-size: 19px; line-height: 1.4; }
.tile-copy b { color: var(--ink); }
.tile-art { display: block; margin-top: auto; }
.tile-art img { display: block; width: 100%; height: auto; }
.tile-stat { justify-content: center; gap: 4px; padding-bottom: 24px; }
.tile-lead { margin: 0; color: var(--ink-soft); font-size: 19px; }
.tile-number { margin: 0; font-size: 96px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--accent-dark); }
.tile-dark { background: #14213d; border-color: #14213d; }
.tile-dark .tile-copy { color: #c9d2e3; }
.tile-dark .tile-copy b { color: #fff; }
.tile-statement { justify-content: space-between; padding-bottom: 24px; background: #fff3ec; border-color: #f3d2c2; }
.tile-big { margin: 0; padding-right: 24px; color: var(--ink); font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.tile-statement a { color: var(--accent-dark); font-weight: 750; }
@media (max-width: 760px) {
  .bento-grid { grid-template-columns: 1fr; }
  .tile-hero { grid-column: auto; }
  .tile-number { font-size: 80px; }
}
.guide-codes-video { display: block; width: 100%; max-width: 960px; margin-top: 14px; aspect-ratio: 16 / 9; border-radius: 16px; background: #101827; }

/* ── Page changes: a short cross-fade between pages (Safari 18.2+, Chrome); the header stays put ── */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .topbar { view-transition-name: topbar; }
  ::view-transition-group(root) { animation-duration: .18s; }
}
