:root {
  color-scheme: dark;
  --bg: #050706;
  --surface: #0b0f0d;
  --surface-2: #101713;
  --surface-3: #16211b;
  --line: #223229;
  --line-soft: #17221c;
  --text: #f5f8f4;
  --muted: #98a69d;
  --accent: #3bf03b;
  --accent-2: #43d9d2;
  --warning: #ffcc66;
  --danger: #ff7185;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(67, 217, 210, 0.75); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; transform: translateY(-150%); padding: 10px 14px; border-radius: 10px; background: var(--accent); color: #051006; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 850; letter-spacing: -0.03em; white-space: nowrap; }
.brand b { color: var(--accent-2); font-size: 11px; text-transform: uppercase; letter-spacing: .13em; margin-left: 2px; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(67, 217, 210, .35); border-radius: 11px; color: var(--accent-2); background: rgba(67, 217, 210, .08); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 17px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent); color: #061106; font-weight: 800; cursor: pointer; }
.button:hover { filter: brightness(1.08); }
.button:disabled { cursor: not-allowed; opacity: .48; filter: none; }
.button--secondary { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.03); }
.button--small { min-height: 36px; padding: 7px 13px; border-radius: 10px; }
.eyebrow { color: var(--accent-2); font-size: 11px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.notice { margin-bottom: 18px; padding: 14px 16px; border: 1px solid; border-radius: 14px; }
.notice a { text-decoration: underline; font-weight: 750; }
.notice--info { border-color: #275c58; background: rgba(67,217,210,.08); color: #c9f6f3; }
.notice--warning { border-color: #64532d; background: rgba(255,204,102,.08); color: #ffe1a6; }
.notice--success { border-color: #286632; background: rgba(59,240,59,.08); color: #c9ffc9; }
.notice--error { border-color: #6b3440; background: rgba(255,113,133,.08); color: #ffd0d7; }

/* Public site */
.public-body { background: radial-gradient(circle at 72% -10%, rgba(24, 89, 67, .34), transparent 36%), var(--bg); }
.public-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.public-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(5,7,6,.86); backdrop-filter: blur(18px); }
.public-nav { width: min(1280px, calc(100% - 40px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.public-links { display: flex; align-items: center; gap: 24px; color: var(--muted); }
.public-links a:hover { color: var(--text); }
.public-main { min-height: 66vh; padding: 70px 0 90px; }
.hero { min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .72fr); align-items: center; gap: clamp(40px, 7vw, 100px); }
.hero h1 { max-width: 760px; margin: 14px 0 22px; font-size: clamp(48px, 6.2vw, 86px); line-height: .98; letter-spacing: -.065em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero > div > p { max-width: 650px; color: #b2beb6; font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; color: var(--muted); font-size: 13px; }
.trust-row span::first-letter { color: var(--accent); }
.hero-preview { overflow: hidden; padding: 22px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(145deg, rgba(18,31,24,.95), rgba(7,11,9,.98)); box-shadow: var(--shadow); transform: rotate(1.5deg); }
.preview-top { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.preview-top span { color: var(--muted); }
.preview-top b { color: var(--accent); font-size: 12px; }
.preview-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.preview-metrics article { padding: 17px; border: 1px solid var(--line-soft); border-radius: 16px; background: rgba(255,255,255,.025); }
.preview-metrics small, .preview-metrics span { display: block; color: var(--muted); }
.preview-metrics strong { display: block; margin: 6px 0; font-size: 34px; }
.preview-list { display: flex; gap: 12px; align-items: center; padding: 15px 2px; border-top: 1px solid var(--line-soft); }
.preview-list > span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 5px rgba(67,217,210,.08); }
.preview-list small { display: block; color: var(--muted); }
.feature-section { padding: 90px 0 20px; }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading h2 { margin: 10px 0 8px; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.05em; }
.section-heading p { color: var(--muted); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.feature-grid article, .faq-grid article, .legal-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.025); }
.feature-grid article > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(59,240,59,.08); color: var(--accent); font-weight: 850; }
.feature-grid h3 { margin: 30px 0 8px; }
.feature-grid p, .faq-grid p, .legal-card p { color: var(--muted); }
.page-intro { max-width: 760px; margin-bottom: 34px; }
.page-intro h1 { margin: 8px 0 10px; font-size: clamp(38px, 6vw, 62px); line-height: 1.04; letter-spacing: -.055em; }
.page-intro p { color: var(--muted); font-size: 18px; }
.application-layout, .auth-layout { display: grid; grid-template-columns: minmax(250px,.45fr) minmax(0,1fr); gap: 34px; align-items: start; }
.application-guide { position: sticky; top: 100px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.application-guide ol { margin: 0; padding: 0; list-style: none; }
.application-guide li { display: flex; gap: 13px; padding: 13px 0; }
.application-guide li > span { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent-2); font-weight: 800; }
.application-guide small { display: block; color: var(--muted); }
.application-guide > p { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.application-guide a, .form-links a { color: var(--accent-2); }
.form-card, .auth-card { width: 100%; padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(16,23,19,.96), rgba(8,12,10,.98)); box-shadow: var(--shadow); }
.auth-card { max-width: 560px; }
.auth-layout { grid-template-columns: minmax(0,1fr) minmax(360px,.7fr); align-items: center; min-height: 560px; }
.auth-points { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; color: #c7d1ca; }
.auth-points li { display: flex; align-items: center; gap: 12px; }
.auth-points span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(67,217,210,.08); color: var(--accent-2); }
.stack-form { display: grid; gap: 18px; }
.stack-form fieldset { display: grid; gap: 18px; margin: 0; padding: 0 0 28px; border: 0; border-bottom: 1px solid var(--line); }
.stack-form legend { margin-bottom: 18px; font-size: 19px; font-weight: 800; }
.stack-form legend span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 8px; border-radius: 9px; background: var(--accent); color: #061106; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 7px; color: #dce3de; font-weight: 680; }
label small, .form-actions p { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #2a3a31; border-radius: 11px; outline: 0; background: #080d0a; color: var(--text); }
textarea { min-height: 108px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(67,217,210,.12); }
input:disabled, select:disabled { opacity: .6; cursor: not-allowed; }
.honeypot { position: absolute; left: -9999px; }
.consents { display: grid; gap: 12px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 450; }
.check input { width: 18px; min-height: 18px; margin-top: 3px; }
.check a { color: var(--accent-2); text-decoration: underline; }
.form-actions { display: flex; align-items: center; gap: 18px; }
.form-actions p { margin: 0; }
.form-links { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-grid article > span { color: var(--accent-2); font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.legal-card { max-width: 820px; }
.public-footer { padding: 44px 0 22px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 13px; }

/* Seller center */
.panel-body { min-height: 100vh; background: #070a08; }
.panel-shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px; border-right: 1px solid var(--line-soft); background: #090d0b; }
.sidebar > .brand { margin: 0 10px 27px; }
.sidebar nav { overflow-y: auto; padding-right: 2px; }
.nav-group { margin-bottom: 20px; }
.nav-group p { margin: 0 10px 7px; color: #647168; font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.nav-group a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 9px 11px; border-radius: 10px; color: #aeb9b1; }
.nav-group a span { display: grid; place-items: center; width: 24px; color: #728078; font-weight: 800; }
.nav-group a:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-group a.is-active { color: var(--text); background: rgba(59,240,59,.08); }
.nav-group a.is-active span { color: var(--accent); }
.sidebar-foot { display: grid; gap: 10px; margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid var(--line-soft); }
.sidebar-status { display: flex; gap: 10px; align-items: center; }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot small { color: var(--muted); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(59,240,59,.08); }
.panel-stage { min-width: 0; }
.panel-topbar { position: sticky; top: 0; z-index: 40; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 30px; border-bottom: 1px solid var(--line-soft); background: rgba(7,10,8,.9); backdrop-filter: blur(16px); }
.top-account { display: flex; align-items: center; gap: 14px; min-width: 0; }
.top-account__copy { min-width: 0; }
.top-account__copy strong, .top-account__copy > span { display: block; }
.top-account__copy > span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; gap: 18px; color: var(--muted); }
.top-actions a:hover { color: var(--text); }
.mobile-menu { display: none; }
.panel-main { width: min(1460px, 100%); margin: auto; padding: 32px clamp(20px, 3vw, 44px) 70px; }
.panel-heading { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-bottom: 26px; }
.panel-heading h1 { margin: 6px 0 4px; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.045em; }
.panel-heading p { max-width: 730px; margin: 0; color: var(--muted); }
.account-status, .connection-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border: 1px solid #315544; border-radius: 999px; color: #baf0ca; background: rgba(59,240,59,.05); font-size: 12px; white-space: nowrap; }
.status-stack { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.document-status { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 10px; border: 1px solid #5f5634; border-radius: 999px; color: #f2d98c; background: rgba(242,217,140,.06); font-size: 12px; font-weight: 750; line-height: 1.2; text-decoration: none; }
.document-status > span { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.document-status--approved { border-color: #315544; color: #baf0ca; background: rgba(59,240,59,.05); }
.document-status--submitted { border-color: #315b66; color: #9de9f1; background: rgba(64,217,220,.06); }
.document-status--missing, .document-status--unapproved { border-color: #6a5428; color: #ffd786; background: rgba(255,190,70,.08); }
.document-status--rejected { border-color: #6b3f42; color: #ffb2b7; background: rgba(255,90,104,.08); }
.document-status--unknown { border-color: #4e5651; color: #c4ccc7; background: rgba(196,204,199,.05); }
.document-status--compact { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-compliance-notice a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { min-height: 142px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--surface); }
.metric-card span, .metric-card small { color: var(--muted); }
.metric-card strong { display: block; margin-top: 5px; font-size: 31px; }
.metric-card--accent { border-color: rgba(59,240,59,.24); background: linear-gradient(145deg, rgba(59,240,59,.08), var(--surface)); }
.panel-card { padding: 22px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--surface); }
.panel-card h2 { margin: 6px 0 5px; font-size: 21px; }
.panel-card p { color: var(--muted); }
.content-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 18px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.card-head > strong { color: var(--accent-2); font-size: 13px; }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.checklist li:last-child { border-bottom: 0; }
.checklist li > span { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; border: 1px solid #34443a; color: var(--muted); font-size: 12px; }
.checklist li.is-done > span { border-color: rgba(59,240,59,.3); background: rgba(59,240,59,.09); color: var(--accent); }
.checklist small, .quick-actions small { display: block; color: var(--muted); }
.checklist a { margin-left: auto; color: var(--accent-2); font-weight: 750; }
.quick-actions { display: grid; gap: 9px; }
.quick-actions a { display: flex; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line-soft); border-radius: 12px; }
.quick-actions a:hover { border-color: var(--line); background: rgba(255,255,255,.025); }
.quick-actions a > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(67,217,210,.08); color: var(--accent-2); }
.tab-strip, .segmented { overflow-x: auto; display: flex; gap: 6px; margin-bottom: 16px; padding-bottom: 2px; }
.tab-strip span, .segmented span, .segmented a { flex: 0 0 auto; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 10px; color: var(--muted); background: var(--surface); }
.tab-strip span.is-active, .segmented span.is-active, .segmented a.is-active { color: var(--text); border-color: rgba(59,240,59,.28); background: rgba(59,240,59,.07); }
.segmented a:hover { color: var(--text); border-color: var(--line); }
.segmented a b { margin-left: 6px; color: var(--accent-2); }
.tab-strip b { margin-left: 8px; color: var(--text); }
.filter-card { margin-bottom: 18px; }
.empty-state { min-height: 310px; display: grid; justify-items: center; align-content: center; padding: 36px 20px; border: 1px dashed #2d3d33; border-radius: 18px; text-align: center; background: rgba(255,255,255,.012); }
.empty-state__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 8px; border: 1px solid #2c5549; border-radius: 16px; color: var(--accent-2); background: rgba(67,217,210,.07); }
.empty-state h2 { margin: 10px 0 6px; }
.empty-state p { max-width: 620px; margin: 0; color: var(--muted); }
.empty-state__action { margin-top: 18px !important; }
.panel-toolbar { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.info-grid, .report-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
.report-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.report-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(59,240,59,.07); color: var(--accent); font-weight: 850; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--accent-2); font-weight: 750; }
.text-button:disabled { color: #5c6961; }
.ledger-preview { overflow-x: auto; margin-top: 8px; border: 1px solid var(--line-soft); border-radius: 12px; }
.ledger-preview [role=row] { min-width: 640px; display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; }
.ledger-preview p { padding: 30px 14px; text-align: center; }
.card-note { margin-bottom: 0; font-size: 13px; }
.detail-list { margin: 15px 0 0; }
.detail-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 580px; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; }
th { color: var(--muted); font-size: 12px; }
.table-status { display: inline-flex; padding: 4px 8px; border: 1px solid #315544; border-radius: 999px; color: #baf0ca; font-size: 11px; }
.table-empty { padding: 32px 10px; color: var(--muted); text-align: center; }
.product-form-card { margin-top: 18px; }
.product-table td { vertical-align: middle; }
.product-table td strong, .product-table td small { display: block; }
.product-table td small { margin-top: 4px; color: var(--muted); }
.product-thumb { display: block; width: 58px; height: 58px; object-fit: cover; border: 1px solid var(--line-soft); border-radius: 12px; background: #0a120e; }
.product-thumb--empty { display: grid; place-items: center; color: var(--accent-2); }
.review-note { max-width: 230px; color: #e7b18b !important; white-space: normal; }
.status-pending_review { border-color: #5f5634; color: #f2d98c; }
.status-approved { border-color: #315544; color: #baf0ca; }
.status-rejected { border-color: #6b3f42; color: #ffb2b7; }
.category-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.category-list li { display: flex; justify-content: space-between; gap: 16px; padding: 13px; border: 1px solid var(--line-soft); border-radius: 12px; }
.category-list code { color: var(--muted); }
.ticket-list { margin: 0; padding: 0; list-style: none; }
.ticket-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.ticket-list small { display: block; color: var(--muted); }
.ticket-list .empty-list { color: var(--muted); }
.mobile-dock { display: none; }

@media (max-width: 1120px) {
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .panel-shell { display: block; }
  .sidebar { display: none; }
  .panel-topbar { padding: 11px 18px; }
  .top-account { flex: 1 1 auto; }
  .top-account__copy { max-width: min(42vw,220px); }
  .document-status--compact { max-width: min(38vw,250px); }
  .top-actions { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { min-width: 72px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; list-style: none; text-align: center; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu[open] nav { position: absolute; z-index: 80; right: 0; top: 47px; width: min(330px, calc(100vw - 28px)); max-height: calc(100vh - 130px); overflow-y: auto; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #0a0f0c; box-shadow: var(--shadow); }
  .mobile-menu .nav-group { margin-bottom: 12px; }
  .mobile-dock { position: fixed; z-index: 60; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; display: grid; grid-template-columns: repeat(4,1fr); padding: 7px; border: 1px solid var(--line); border-radius: 16px; background: rgba(9,13,11,.94); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
  .mobile-dock a { display: grid; place-items: center; gap: 2px; padding: 4px; color: var(--muted); font-size: 10px; }
  .mobile-dock a span { font-size: 17px; }
  .mobile-dock a[aria-current=page] { color: var(--accent); }
  .panel-main { padding-bottom: 110px; }
}

@media (max-width: 780px) {
  .public-wrap, .public-nav { width: min(100% - 28px, 1180px); }
  .public-header { position: sticky; }
  .public-nav { min-height: 64px; }
  .public-links a:not(.button) { display: none; }
  .public-main { padding: 46px 0 70px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 38px; padding: 30px 0 60px; }
  .hero h1 { font-size: clamp(45px, 14vw, 68px); }
  .hero-preview { transform: none; }
  .feature-section { padding-top: 60px; }
  .application-layout, .auth-layout { grid-template-columns: 1fr; min-height: auto; }
  .application-guide { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .faq-grid, .content-grid, .info-grid, .report-grid { grid-template-columns: 1fr; }
  .footer-grid { display: grid; }
  .panel-heading { align-items: flex-start; }
  .panel-heading .status-stack { display: none; }
  .panel-toolbar { display: block; }
  .panel-toolbar .button { width: 100%; margin: 4px 0 16px; }
  .product-form-card { padding: 18px; }
  .product-table { min-width: 760px; }
}

@media (max-width: 540px) {
  .brand b { display: none; }
  .public-links { gap: 8px; }
  .public-main { padding-top: 34px; }
  .hero-actions, .form-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button, .form-actions .button { width: 100%; }
  .trust-row { display: grid; gap: 8px; }
  .preview-metrics, .feature-grid, .metric-grid { grid-template-columns: 1fr; }
  .form-card, .auth-card { padding: 20px; border-radius: 17px; }
  .top-account { gap: 8px; }
  .top-account__copy { max-width: 36vw; }
  .document-status--compact { max-width: 40vw; padding-inline: 8px; font-size: 10px; }
  .panel-main { padding: 24px 14px 110px; }
  .panel-heading h1 { font-size: 31px; }
  .detail-list > div { grid-template-columns: 1fr; gap: 3px; }
  .category-list li { align-items: flex-start; flex-direction: column; }
}

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

/* phase2-partner-ui */
.pagination-row { display: flex; justify-content: flex-end; margin-top: 16px; }
.variant-grid { display: grid; gap: 10px; }
.variant-row { display: grid; grid-template-columns: minmax(140px,1.2fr) minmax(120px,1fr) minmax(90px,.55fr) minmax(130px,.8fr); gap: 10px; }
.variant-row input { min-width: 0; }
.form-help { margin: -8px 0 4px; color: var(--muted); font-size: 13px; }
.existing-media { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 12px; }
.existing-media figure { margin: 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 13px; background: var(--surface); }
.existing-media img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.existing-media figcaption { overflow: hidden; padding: 8px 10px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.inline-operation { display: grid; min-width: 190px; gap: 7px; }
.inline-operation input,
.inline-operation select { min-height: 36px; padding: 7px 9px; }
.status-draft { border-color: #46515b; color: #cbd3dc; }
.status-withdrawn { border-color: #4d4a52; color: #bdb7c4; }
.muted { color: var(--muted); }
.panel-card code,
.notice code { overflow-wrap: anywhere; color: var(--accent-2); }

@media (max-width: 980px) {
  .variant-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .pagination-row .button { width: 100%; }
  .existing-media { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 540px) {
  .variant-row { grid-template-columns: 1fr; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; }
  .existing-media { grid-template-columns: 1fr 1fr; }
  .inline-operation { min-width: 160px; }
}
