/* HEXU admin: palette, typography and base controls */
:root {
  --ink: #172d3b;
  --text: #5d7180;
  --muted: #99a7b2;
  --brand: #147d70;
  --brand-hover: #10695e;
  --line: #e8edf0;
  --canvas: #f6f7f9;
  --danger: #b96459;
  --sidebar-width: 244px;
}
* { box-sizing: border-box; }
html { min-width: 320px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 0; background: var(--canvas); color: var(--ink); font: 13px/1.65 -apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif; -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
input[type='hidden'] { display: none !important; }
.console { min-height: 100vh; }
::selection { background: #d9eee3; color: #185344; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; }
a,button,input,select,textarea,summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline: 3px solid #c2dfd2; outline-offset: 3px; }
button:disabled { opacity: .5; cursor: not-allowed; }
svg { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3,strong,b { font-weight: 600; }
img { max-width: 100%; }
form { margin: 0; }
.muted { color: var(--muted); }
.mono { font-family: 'Cascadia Code','SFMono-Regular',Consolas,monospace; font-size: 11px; letter-spacing: .2px; }
.align-right { text-align: right; }
.text-ellipsis { display: block; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.light-text { color: #86b9aa !important; }
.danger { color: var(--danger) !important; }

/* White workspace sidebar */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); padding: 30px 18px 20px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #e1e8e4 transparent; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 11px; color: var(--ink); font-size: 25px; letter-spacing: 2px; line-height: 1.2; }
.brand:hover { color: var(--ink); }
.brand > span:not(.brand-symbol) { min-width: 0; }
.brand small { display: block; margin-top: 7px; color: #9eaaa9; font-size: 8px; letter-spacing: 1px; font-weight: 400; }
.brand > b { margin-left: auto; align-self: flex-start; margin-top: 3px; padding: 3px 5px; border-radius: 4px; background: #eaf4ed; color: #719d83; font-size: 8px; letter-spacing: .6px; font-weight: 500; }
.brand-symbol { display: inline-block; position: relative; width: 33px; height: 35px; flex: 0 0 33px; }
.brand-symbol i { position: absolute; width: 17px; height: 27px; border: 3px solid var(--brand); border-radius: 5px; transform: rotate(-13deg); }
.brand-symbol i:first-child { left: 1px; top: 2px; }
.brand-symbol i:last-child { left: 13px; top: 8px; border-color: #9fceae; background: rgba(255,255,255,.65); }
.workspace-switch { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: 33px; padding: 12px 11px; border: 1px solid #e9eeea; border-radius: 9px; background: #fafcf9; }
.workspace-avatar { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 32px; border-radius: 8px; background: #e6eee4; color: #628b6e; font: 19px/1 Georgia,serif; }
.workspace-switch > span:nth-child(2) { min-width: 0; max-width: 137px; color: #5b7066; font-size: 11px; overflow-wrap: anywhere; }
.workspace-switch small { display: block; margin-top: 2px; color: #a1aea4; font-size: 9px; }
.live-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #79b99a; box-shadow: 0 0 0 3px #eef7ef; }
.workspace-switch > .live-dot { margin-left: auto; }
.nav-label { margin: 28px 12px 10px; font-size: 10px; color: #adb6bf; letter-spacing: 1px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 43px; padding: 10px 13px; border-radius: 8px; color: #7d8c98; font-size: 12px; transition: background .16s,color .16s; }
.sidebar nav a svg { width: 17px; height: 17px; color: #99a6af; }
.sidebar nav a:hover { background: #f5f8f5; color: #42695b; }
.sidebar nav a.active { background: #edf6f1; color: #27846e; font-weight: 500; }
.sidebar nav a.active svg { color: #27846e; }
.nav-current { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: #71b294; }
.sidebar-bottom { margin-top: auto; padding: 28px 10px 0; }
.service-status { display: flex; align-items: center; gap: 9px; font-size: 10px; color: #9ca9ad; border-top: 1px solid #edf1ef; padding-top: 17px; }
.service-status small { margin-left: auto; color: #bcc5ca; font-size: 9px; }
.logout-button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 15px 0 0; border: 0; background: transparent; color: #8e9da5; font-size: 11px; text-align: left; }
.logout-button svg { width: 15px; height: 15px; }
.logout-button:hover { color: var(--brand); }
.workspace { margin-left: var(--sidebar-width); min-width: 0; }
.topbar { min-width: 0; height: 72px; padding: 0 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 14px; align-items: center; color: #9da8b1; font-size: 11px; white-space: nowrap; }
.breadcrumb span { color: #ced5da; }
.breadcrumb b { font-weight: 500; color: #667b88; }
.topbar-right { display: flex; align-items: center; gap: 21px; min-width: 0; }
.topbar-date { font-size: 10px; color: #a4adb6; white-space: nowrap; }
.topbar-divider { height: 25px; width: 1px; background: #e8edf0; }
.account { display: flex; align-items: center; gap: 10px; color: #59707c; font-size: 11px; min-width: 0; }
.account > span:last-child { max-width: 155px; overflow: hidden; text-overflow: ellipsis; }
.account small { display: block; color: #aab4b9; font-size: 9px; line-height: 1.4; }
.avatar { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; background: #ebf1e8; color: #6f9776; font-size: 12px; }
.content { width: 100%; min-width: 0; max-width: 1560px; margin: 0 auto; padding: 31px 36px 22px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading > div:first-child { min-width: 0; }
.eyebrow { margin-bottom: 7px; color: #97a5ac; font-size: 8px; letter-spacing: 1.9px; font-weight: 500; }
h1 { margin: 0; font-size: 27px; line-height: 1.45; letter-spacing: -.7px; color: var(--ink); }
.page-heading .muted { margin: 8px 0 0; font-size: 11px; }
.heading-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #84bca2; margin-left: 11px; vertical-align: middle; }
.title-count { display: inline-flex; align-items: center; min-height: 23px; margin-left: 9px; padding: 2px 9px; vertical-align: middle; color: #849b8e; background: #eaf0e9; border-radius: 6px; font-size: 11px; letter-spacing: 0; font-weight: 500; }
.heading-actions { display: flex; gap: 10px; flex-shrink: 0; }
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 30px 0 1px; color: #b5bfc6; font-size: 9px; letter-spacing: .4px; }

/* Reusable actions and feedback */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 37px; padding: 9px 15px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; font-weight: 500; line-height: 1.5; text-align: center; white-space: nowrap; transition: background .16s,border-color .16s,box-shadow .16s,transform .16s; }
.button svg { width: 15px; height: 15px; }
.button.primary { background: var(--brand); color: #fff; box-shadow: 0 3px 7px rgba(20,125,112,.07); }
.button.primary:hover:not(:disabled) { background: var(--brand-hover); box-shadow: 0 4px 12px rgba(20,125,112,.13); }
.button.secondary { background: #fff; border-color: #dfe6eb; color: #6c7e8b; }
.button.secondary:hover:not(:disabled) { border-color: #bcd7ca; background: #fafdfb; color: var(--brand); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button.small { min-height: 31px; padding: 6px 10px; font-size: 10px; gap: 7px; }
.button.small svg { width: 12px; height: 12px; }
.button.large { min-height: 46px; font-size: 12px; }
.button.wide { width: 100%; justify-content: space-between; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--brand); font-size: 11px; line-height: 1.7; white-space: nowrap; }
.text-button:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }
.text-button.neutral { color: #a0aab1; }
.text-button.danger:hover { color: #a4433b !important; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #e4eaed; border-radius: 7px; background: #fff; color: #98a7b0; transition: background .16s,color .16s; }
.icon-button:hover { color: var(--brand); background: #f2f8f4; }
.icon-button.small { width: 27px; height: 27px; }
.icon-button.small svg { width: 13px; height: 13px; }
.card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 5px rgba(38,59,72,.015); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-width: 0; padding: 21px 23px; border-bottom: 1px solid #edf1f3; }
.card-heading h2 { margin: 0; font-size: 13px; font-weight: 600; }
.card-heading p { margin: 5px 0 0; color: #a2aeb5; font-size: 10px; }
.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; padding: 3px 8px; border-radius: 5px; background: #f0f3f5; color: #93a1ac; font-size: 10px; line-height: 1.5; font-weight: 400; white-space: nowrap; }
.badge i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .65; }
.badge svg { width: 12px; height: 12px; }
.badge.green { background: #edf7f0; color: #519277; }
.badge.gray { background: #f0f2f4; color: #98a3aa; }
.notice { display: flex; align-items: center; gap: 10px; padding: 13px 16px; margin-bottom: 20px; background: #eff5f8; border: 1px solid #dce8ef; color: #667f8d; border-radius: 9px; font-size: 12px; overflow-wrap: anywhere; }
.notice > svg { width: 16px; height: 16px; }
.notice > span { flex: 1; min-width: 0; }
.notice > button { display: grid; place-items: center; border: 0; padding: 0; background: transparent; color: inherit; opacity: .55; }
.notice.success { background: #edf8f1; border-color: #d8eede; color: #5d9170; }
.notice.error { background: #fff3ef; border-color: #f3ded5; color: #b77865; }
.notice.warning { background: #fffaeb; border-color: #efe6c6; color: #a68f50; }
.batch-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 17px; margin-bottom: 19px; border: 1px solid #d8eade; background: #f0f8f1; border-radius: 8px; font-size: 11px; color: #669375; }
.batch-notice > span { display: flex; align-items: center; gap: 9px; min-width: 0; overflow-wrap: anywhere; }
.batch-notice svg { width: 15px; height: 15px; }
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 1000; max-width: calc(100vw - 32px); transform: translateX(-50%); border-radius: 9px; padding: 12px 22px; background: #173f46; color: #eaf5ef; box-shadow: 0 10px 35px rgba(16,43,43,.18); font-size: 12px; text-align: center; }
.copy-helper { position: fixed; left: -9999px; }

/* Operational overview */
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-bottom: 22px; }
.stat-card { padding: 20px 22px 17px; border: 1px solid var(--line); border-radius: 11px; background: #fff; min-width: 0; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #8a99a4; font-size: 11px; }
.stat-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: #85ab98; background: #f1f7f2; }
.stat-icon svg { width: 15px; height: 15px; }
.stat-card:nth-child(2) .stat-icon { color: #9aa58a; background: #f4f5ed; }
.stat-card:nth-child(3) .stat-icon { color: #8ca5b5; background: #f0f5f8; }
.stat-card:nth-child(4) .stat-icon { color: #6aab8a; background: #edf7ef; }
.stat-value { margin: 11px 0 7px; font-size: 36px; font-weight: 600; letter-spacing: -1.3px; line-height: 1.2; color: #254151; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-value small { margin-left: 9px; font-size: 10px; color: #b0b9c1; font-weight: 400; letter-spacing: 0; }
.stat-card p { margin: 0; padding-top: 12px; border-top: 1px solid #f0f3f4; font-size: 9px; color: #aeb8bf; }
.stat-card:last-child p { color: #84a995; }
.overview-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(270px,1fr); gap: 22px; margin-bottom: 31px; }
.trend-card { padding-bottom: 10px; }
.trend-card .card-heading { border-bottom: 0; padding-bottom: 7px; }
.chart-summary { display: flex; align-items: baseline; gap: 9px; margin: 4px 23px 1px; }
.chart-summary strong { color: #274e48; font-size: 26px; letter-spacing: -.7px; font-weight: 500; }
.chart-summary span { color: #a9b6b0; font-size: 9px; }
.trend-chart { padding: 4px 14px 1px; }
.trend-chart svg { display: block; width: 100%; height: auto; max-height: 205px; overflow: visible; }
.chart-grid { stroke: #edf1f0; stroke-width: 1; stroke-dasharray: 4 4; fill: none; }
.chart-area { fill: #edf7f1; opacity: .9; }
.chart-line { stroke: #63a889; stroke-width: 2.5; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart-point { fill: #fff; stroke: #63a889; stroke-width: 2; }
.chart-point:hover { r: 6; }
.chart-label { fill: #acb8b3; font-size: 9px; font-family: inherit; }
.launch-card { position: relative; min-width: 0; overflow: hidden; padding: 27px 28px; border-radius: 12px; background: #173d49; color: #f0f7f1; }
.launch-card > :not(.orbit) { position: relative; z-index: 1; }
.launch-card .eyebrow { font-size: 7px; letter-spacing: 1.7px; }
.launch-card h2 { margin: 17px 0 12px; color: #f3f7ed; font-size: 25px; font-weight: 500; line-height: 1.55; letter-spacing: -.7px; }
.launch-card p { margin: 0 0 20px; color: #8eacae; font-size: 10px; line-height: 1.9; }
.light-button { border-color: #678b8b; background: transparent; color: #c8e3d5; padding: 8px 12px; font-size: 10px; }
.light-button:hover { background: #254c53; color: #fff; border-color: #91b6aa; }
.orbit { position: absolute; width: 280px; height: 280px; right: -133px; top: 24px; border: 1px solid rgba(171,208,189,.12); border-radius: 50%; pointer-events: none; }
.orbit.orbit-two { width: 365px; height: 365px; right: -174px; top: -18px; }
.orbit.orbit-one { z-index: 0; }
.launch-note { display: block; margin-top: 24px; color: #6d999b; font-size: 6px; letter-spacing: 2px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 1px 14px; }
.section-heading h2 { display: flex; align-items: baseline; gap: 13px; margin: 0; font-size: 14px; }
.subheading { color: #a6b0b8; font-weight: 400; font-size: 10px; }
.section-heading > a { display: inline-flex; align-items: center; gap: 6px; color: #8d9ea9; font-size: 10px; }
.section-heading > a:hover { color: var(--brand); }
.section-heading svg { width: 13px; height: 13px; }

/* Tables, filters, pagination and empty states */
.toolbar { display: flex; align-items: center; gap: 10px; padding: 18px 21px; min-width: 0; }
.toolbar.wrap { flex-wrap: wrap; }
.search-input { display: flex; align-items: center; gap: 9px; min-width: 160px; flex: 1 1 230px; max-width: 380px; padding: 0 11px; min-height: 35px; border: 1px solid #e0e7eb; border-radius: 6px; background: #fff; transition: border-color .15s,box-shadow .15s; }
.search-input:focus-within { border-color: #a5cbb9; box-shadow: 0 0 0 3px #eef6f1; }
.search-input svg { width: 14px; height: 14px; color: #b1bdc5; }
.search-input input { margin: 0; padding: 8px 0; border: 0; border-radius: 0; min-height: 33px; background: transparent; box-shadow: none !important; outline: 0 !important; font-size: 11px; }
.toolbar > select { width: auto; min-width: 104px; max-width: 175px; margin: 0; min-height: 35px; padding: 7px 27px 7px 10px; font-size: 11px; }
.toolbar .button { min-height: 35px; padding: 7px 14px; }
.toolbar-reset { font-size: 10px; color: #9aaab3; white-space: nowrap; }
.toolbar-note { margin-left: auto; color: #aeb9c0; font-size: 10px; white-space: nowrap; }
.date-filter { display: flex; align-items: center; gap: 7px; margin: 0; color: #9eabb5; font-size: 10px; font-weight: 400; }
.date-filter input { width: 133px; margin: 0; padding: 7px 8px; min-height: 35px; font-size: 10px; }
.table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; border-radius: 0 0 11px 11px; scrollbar-width: thin; scrollbar-color: #dce5e8 transparent; }
table { width: 100%; min-width: 740px; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 13px 21px; background: #fafbfc; border-top: 1px solid #f1f4f6; border-bottom: 1px solid #edf1f3; color: #9ca9b3; font-size: 10px; font-weight: 400; }
td { padding: 18px 21px; border-bottom: 1px solid #f0f3f5; color: #697f8d; font-size: 11px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fdfefd; }
td strong { color: #4b6473; font-size: 11px; font-weight: 500; }
td > a { font-size: 11px; color: #5d9c83; }
.table-product { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.table-product > div { min-width: 0; max-width: 260px; }
.table-product strong { display: block; max-width: 260px; white-space: normal; overflow-wrap: anywhere; }
.table-product small { display: block; max-width: 260px; margin-top: 4px; color: #a4b1b9; font-size: 9px; white-space: normal; overflow-wrap: anywhere; }
.mini-product-icon,.merchant-avatar { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 8px; background: #f0f5ed; color: #a0b595; }
.mini-product-icon svg { width: 17px; height: 17px; }
.merchant-avatar { background: #edf4ef; color: #92ac98; font-size: 13px; }
.table-thumb { width: 37px; height: 37px; flex: 0 0 37px; border-radius: 7px; object-fit: cover; }
.cell-sub { display: block; max-width: 250px; margin-top: 5px; color: #b1bcc3; font-size: 9px; white-space: normal; overflow-wrap: anywhere; line-height: 1.7; }
.code-text { display: inline-block; color: #648778; font-size: 10px; user-select: all; }
.usage { color: #b0bcc2; font-size: 10px; }
.usage b { color: #6b937b; font-size: 13px; }
.usage small { display: block; margin-top: 4px; color: #a7b8ad; font-size: 9px; }
.request-id { max-width: 205px; color: #bdc5cb; }
.receipt-no { color: #98aab5; font-family: Consolas,monospace; font-size: 10px; }
.inline-actions { display: flex; align-items: center; gap: 16px; }
.inline-actions.right { justify-content: flex-end; }
.inline-actions > a { font-size: 10px; }
.inline-actions form { display: inline-flex; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 21px; color: #a7b3bc; font-size: 10px; }
.card > .pagination { border-top: 1px solid #edf1f3; }
.pagination > div { display: flex; align-items: center; gap: 7px; }
.pagination > div > span:first-child { margin-right: 8px; font-size: 10px; }
.pagination b { color: #8599a5; font-weight: 500; }
.page-button { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid #dfe7ec; border-radius: 6px; color: #7a9489; background: #fff; font-size: 12px; }
.page-button:hover { border-color: #b7d7c6; background: #f5faf6; }
.page-button.disabled { color: #d3dbe0; border-color: #edf1f3; background: #fafbfc; cursor: default; }
.empty-state { padding: 55px 24px; text-align: center; color: #abb6be; white-space: normal; }
.empty-symbol { width: 55px; height: 55px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 15px; color: #a1b89e; background: #f1f6ed; }
.empty-symbol svg { width: 27px; height: 27px; }
.empty-state h3 { margin: 0 0 7px; color: #799080; font-size: 14px; font-weight: 500; }
.empty-state p { margin: 0 0 21px; color: #adb9ad; font-size: 11px; }
.page-note { display: flex; align-items: flex-start; gap: 8px; padding: 16px 3px 0; color: #acb8b0; font-size: 10px; }
.page-note svg { width: 13px; height: 13px; margin-top: 2px; }
.user-pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 5px; background: #f0f5ee; color: #94a689; font-size: 10px; }
.audit-details { min-width: 32px; }
.audit-details summary { color: #84a18f; cursor: pointer; font-size: 10px; }
.audit-details[open] summary { margin-bottom: 10px; }
.audit-details pre { max-width: 300px; max-height: 270px; margin: 0; padding: 13px; border: 1px solid #e4ebe3; border-radius: 7px; background: #f8fbf6; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; color: #7e927d; font: 10px/1.8 Consolas,monospace; }

/* Three-column commerce catalog */
.catalog-toolbar { margin-bottom: 22px; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 21px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid #e3e9e8; border-radius: 12px; background: #fff; box-shadow: 0 3px 6px rgba(30,64,44,.015); transition: border-color .18s,box-shadow .18s,transform .18s; }
.product-card:hover { border-color: #cddfd3; box-shadow: 0 7px 22px rgba(45,74,46,.05); transform: translateY(-2px); }
.product-cover { position: relative; width: 100%; aspect-ratio: 1.77; min-height: 150px; overflow: hidden; background: #e8efdf; }
.product-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .4s; }
.product-card:hover .product-cover > img { transform: scale(1.025); }
.product-art { position: absolute; inset: 0; display: grid; place-items: center; background: #214850; overflow: hidden; }
.art-orbit { position: absolute; width: 240px; height: 240px; right: -41px; top: -56px; border: 1px solid rgba(180,211,187,.16); border-radius: 50%; }
.art-orbit::after { content: ''; position: absolute; inset: -24px; border: 1px solid rgba(180,211,187,.12); border-radius: 50%; }
.art-ticket { position: relative; width: 75px; height: 97px; margin-top: -12px; display: grid; place-items: center; border-radius: 7px; background: #d8e6c9; box-shadow: 9px 10px 0 rgba(16,34,31,.12); transform: rotate(12deg); color: #729674; }
.art-ticket::before { content: ''; position: absolute; left: 14px; right: 14px; top: 16px; border-top: 1px solid #bbcfad; }
.art-ticket::after { content: ''; position: absolute; left: 14px; width: 28px; bottom: 16px; border-top: 1px solid #bbcfad; }
.art-ticket svg { width: 28px; height: 28px; }
.art-label { position: absolute; left: 19px; bottom: 15px; color: #8aafa0; font-size: 7px; letter-spacing: 2px; }
.product-card:nth-child(3n+2) .product-art { background: #e1e8d9; }
.product-card:nth-child(3n+2) .art-orbit,.product-card:nth-child(3n+2) .art-orbit::after { border-color: rgba(113,143,99,.16); }
.product-card:nth-child(3n+2) .art-ticket { background: #739a7d; color: #dce7ce; box-shadow: 9px 10px 0 rgba(93,121,79,.1); }
.product-card:nth-child(3n+2) .art-ticket::before,.product-card:nth-child(3n+2) .art-ticket::after { border-color: #a9c0a4; }
.product-card:nth-child(3n+2) .art-label { color: #94ab89; }
.product-card:nth-child(3n+3) .product-art { background: #eae6db; }
.product-card:nth-child(3n+3) .art-orbit,.product-card:nth-child(3n+3) .art-orbit::after { border-color: rgba(162,143,111,.16); }
.product-card:nth-child(3n+3) .art-ticket { background: #c7b68f; color: #f0e9d3; box-shadow: 9px 10px 0 rgba(152,132,94,.1); }
.product-card:nth-child(3n+3) .art-ticket::before,.product-card:nth-child(3n+3) .art-ticket::after { border-color: #e0d6bb; }
.product-card:nth-child(3n+3) .art-label { color: #ad9f82; }
.cover-category { position: absolute; top: 14px; left: 15px; max-width: calc(100% - 103px); padding: 4px 8px; border-radius: 4px; background: rgba(250,254,244,.88); color: #6e8b71; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover-status { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 4px; background: rgba(255,255,252,.87); color: #639772; font-size: 9px; }
.cover-status i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cover-status.off { color: #a5a69c; background: rgba(249,249,245,.86); }
.product-body { padding: 17px 18px 15px; }
.product-merchant { display: flex; align-items: center; gap: 5px; color: #a1aea3; font-size: 9px; min-height: 16px; }
.product-merchant svg { width: 11px; height: 11px; }
.product-body h3 { margin: 9px 0 6px; color: #38594c; font-size: 15px; line-height: 1.6; font-weight: 500; overflow-wrap: anywhere; }
.product-subtitle { margin: 0; color: #a7b2a4; font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-height: 17px; }
.product-value { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 16px; }
.product-value strong { color: #527a59; font: 25px/1.2 Georgia,'Times New Roman',serif; letter-spacing: -.6px; }
.product-value strong small { margin-right: 3px; font-size: 13px; }
.product-value > span { max-width: 52%; color: #9dac93; font-size: 9px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 15px; padding-top: 12px; border-top: 1px dashed #e5ece1; color: #b2bdaa; font-size: 9px; }
.product-meta > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.product-meta > span:last-child { white-space: nowrap; }
.product-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.product-actions .text-button { font-size: 9px; }
.product-actions > .button { margin-left: auto; font-size: 9px; padding: 6px 9px; }
.product-grid + .pagination { padding-left: 2px; padding-right: 2px; margin-top: 8px; }

/* Consistent forms and input affordances */
label { display: block; margin-bottom: 19px; color: #657c88; font-size: 11px; font-weight: 500; }
label em { color: #b68574; font-style: normal; margin-left: 2px; }
input,select,textarea { display: block; width: 100%; min-width: 0; min-height: 39px; margin-top: 8px; padding: 10px 11px; border: 1px solid #dfe6e9; border-radius: 6px; background: #fff; color: #466474; font-size: 11px; line-height: 1.5; outline: 0; transition: border-color .16s,box-shadow .16s,background .16s; }
textarea { resize: vertical; min-height: 85px; line-height: 1.85; }
select { padding-right: 28px; cursor: pointer; text-overflow: ellipsis; }
input::placeholder,textarea::placeholder { color: #b3bdc4; font-size: 11px; }
input:hover:not(:disabled),select:hover:not(:disabled),textarea:hover:not(:disabled) { border-color: #c9d8d8; }
input:focus,select:focus,textarea:focus { border-color: #99c5b4; box-shadow: 0 0 0 3px #eff7f1; }
input:disabled,select:disabled,textarea:disabled { background: #f7f9fa; color: #a1b0bb; border-color: #e8edf0; cursor: not-allowed; }
input[aria-invalid='true'],textarea[aria-invalid='true'],select[aria-invalid='true'] { border-color: #d6afa0; box-shadow: 0 0 0 3px #fcf4ef; }
label small { display: block; margin-top: 6px; color: #a9b5bc; font-size: 9px; line-height: 1.8; font-weight: 400; }
.form-pad { padding: 24px; min-width: 0; }
.form-pad > label:last-child { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 19px; }
.form-grid label { margin-bottom: 0; min-width: 0; }
.form-section-label { display: flex; align-items: center; gap: 9px; margin: 2px 0 19px; padding-top: 5px; color: #658273; font-size: 11px; font-weight: 500; }
.form-section-label:not(:first-child) { margin-top: 25px; padding-top: 21px; border-top: 1px solid #edf1ed; }
.form-section-label b { font-size: 9px; color: #a2b7a6; font-weight: 400; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 21px; margin-top: 25px; border-top: 1px solid #edf1f1; }
.hint { font-size: 10px; line-height: 1.85; color: #a6b3ba; font-weight: 400; }
p.hint { margin-top: 19px; margin-bottom: 0; }
.checkbox { display: flex; align-items: center; gap: 8px; color: #9cae9a; font-size: 10px; font-weight: 400; }
.checkbox input { width: 14px; height: 14px; min-height: 14px; margin: 0; accent-color: var(--brand); padding: 0; }
.toggle-row { position: relative; display: flex; align-items: center; gap: 17px; margin-top: 24px; padding: 17px; border: 1px solid #e7eee6; border-radius: 8px; background: #fafcf8; cursor: pointer; }
.toggle-row > span { flex: 1; }
.toggle-row b { display: block; font-size: 11px; color: #758f73; font-weight: 500; }
.toggle-row small { margin-top: 4px; color: #afbcaa; font-size: 9px; }
.toggle-row input { position: absolute; right: 18px; width: 34px; height: 20px; min-height: 0; margin: 0; opacity: 0; }
.switch { position: relative; display: block; width: 34px; height: 20px; flex: 0 0 34px; border-radius: 20px; background: #d8e1d5; transition: background .18s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(30,60,30,.1); transition: transform .18s; }
.toggle-row input:checked + .switch { background: #5ca185; }
.toggle-row input:checked + .switch::after { transform: translateX(14px); }
.toggle-row input:focus-visible + .switch { outline: 3px solid #bddcca; outline-offset: 3px; }
.form-tip { display: flex; align-items: flex-start; gap: 9px; margin-top: 23px; padding: 13px 14px; border: 1px solid #e5eee5; border-radius: 7px; background: #f5faf3; color: #9aaf94; font-size: 10px; line-height: 1.8; }
.form-tip svg { width: 14px; height: 14px; margin-top: 2px; }
.upload-area { position: relative; display: flex; align-items: center; gap: 18px; padding: 18px; margin-bottom: 18px; border: 1px dashed #cdddc9; border-radius: 9px; background: #fafcf7; cursor: pointer; transition: border-color .15s,background .15s; }
.upload-area:hover { border-color: #92b69b; background: #f5faf1; }
.upload-area > input[type='file'] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; padding: 0; cursor: pointer; z-index: 1; }
.upload-area:focus-within { outline: 3px solid #e0efdc; outline-offset: 2px; }
.upload-area > span:last-child { min-width: 0; }
.upload-area b { color: #839c79; font-size: 11px; font-weight: 500; }
.upload-area small { color: #b1bca8; font-size: 9px; }
.upload-preview { display: grid; place-items: center; flex: 0 0 73px; width: 73px; height: 73px; overflow: hidden; border: 1px solid #e2eadb; border-radius: 7px; background: #eef4e8; color: #b4c8a6; }
.upload-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.upload-preview svg { width: 24px; height: 24px; }
.issue-product-summary { display: flex; align-items: center; gap: 12px; padding: 15px; margin-bottom: 22px; border: 1px solid #dbeada; border-radius: 8px; background: #f2f8ed; color: #9ab88a; }
.issue-product-summary > svg { width: 25px; height: 25px; }
.issue-product-summary > div { flex: 1; min-width: 0; }
.issue-product-summary strong { display: block; font-size: 12px; color: #6e935d; overflow-wrap: anywhere; }
.issue-product-summary small { display: block; margin-top: 5px; color: #a5ba95; font-size: 10px; }
.issue-product-summary > b { color: #7a9d68; font-size: 13px; white-space: nowrap; }

/* Native dialog drawers: stable header/footer and scrollable form body */
dialog { color: var(--ink); font: inherit; }
dialog::backdrop { background: rgba(19,40,47,.31); backdrop-filter: blur(2px); }
.drawer { position: fixed; inset: 0 0 0 auto; width: 530px; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; padding: 0; margin: 0; border: 0; border-left: 1px solid #e6ece7; border-radius: 0; background: #fff; overflow: hidden; box-shadow: -20px 0 80px rgba(24,50,41,.09); }
.drawer.wide-drawer { width: 630px; }
.drawer:not([open]),.confirm-dialog:not([open]) { display: none; }
.drawer[open] { display: flex; flex-direction: column; animation: drawer-in .2s ease-out; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex: 0 0 auto; padding: 25px 28px 21px; border-bottom: 1px solid #e8eee8; background: #fff; }
.drawer-head .eyebrow { font-size: 8px; color: #a4b6a7; }
.drawer-head h2 { margin: 0; color: #3b654d; font-size: 19px; font-weight: 500; letter-spacing: -.3px; }
.drawer-head .icon-button { border: 0; background: #f5f8f2; color: #a9b7a1; }
.drawer > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.drawer-body { flex: 1 1 auto; min-height: 0; padding: 25px 28px 30px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #dce7d7 transparent; }
.drawer > .drawer-body.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.drawer-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex: 0 0 auto; padding: 18px 28px max(18px,env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); border-top: 1px solid #e8eee7; box-shadow: 0 -5px 14px rgba(38,62,35,.015); }
.drawer-footer .button { min-width: 77px; }
.confirm-dialog { width: 380px; max-width: calc(100vw - 36px); padding: 29px; border: 1px solid #e4eade; border-radius: 15px; box-shadow: 0 20px 70px rgba(24,49,30,.12); }
.confirm-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; color: #8fa982; background: #f1f6e9; }
.confirm-icon svg { width: 22px; height: 22px; }
.confirm-dialog h2 { margin: 0 0 10px; color: #416747; font-size: 18px; font-weight: 500; }
.confirm-dialog p { color: #9aab90; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
@keyframes drawer-in { from { transform: translateX(25px); opacity: .8; } to { transform: translateX(0); opacity: 1; } }

/* Settings: main form plus a 310px guidance rail */
.settings-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 24px; align-items: start; }
.settings-form,.settings-aside { min-width: 0; }
.settings-card { margin-bottom: 20px; }
.settings-card .card-heading { padding-top: 22px; padding-bottom: 20px; }
.section-number { color: #c8d4c5; font: 26px/1 Georgia,serif; }
.settings-aside { display: grid; gap: 20px; }
.settings-aside .card-heading { padding: 19px 20px; }
.settings-aside .card-heading h2 { font-size: 12px; }
.settings-aside .form-pad { padding: 20px; }
.status-list { display: flex; align-items: baseline; justify-content: space-between; gap: 13px; padding: 13px 0; border-bottom: 1px solid #eef2ed; color: #a3b19d; font-size: 10px; }
.status-list:first-child { padding-top: 0; }
.status-list:last-child { border-bottom: 0; padding-bottom: 0; }
.status-list b { min-width: 0; max-width: 62%; color: #879d7f; font-size: 10px; font-weight: 400; text-align: right; overflow-wrap: anywhere; }
.setup-guide { padding: 25px 23px; border: 1px solid #e0ead9; border-radius: 11px; background: #edf4e7; }
.guide-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #d5e1cd; border-radius: 8px; color: #8ba27d; margin-bottom: 18px; }
.guide-icon svg { width: 16px; height: 16px; }
.setup-guide h3 { color: #739065; font-size: 12px; font-weight: 500; margin: 0 0 10px; }
.setup-guide p { margin: 0 0 14px; color: #96aa86; font-size: 10px; line-height: 1.95; }
.setup-guide p:last-child { margin-bottom: 0; }
.setup-guide ol { padding-left: 15px; margin: 0; color: #98ab89; font-size: 10px; line-height: 2; }
.setup-guide li { padding-left: 3px; margin-top: 4px; }
.guide-divider { height: 1px; margin: 22px 0; background: #dce7d3; }
.connection-flow { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 14px 12px; margin-top: 19px; border: 1px solid #e4ede0; background: #f6faf3; border-radius: 7px; font-size: 9px; color: #9db293; }
.connection-flow span { display: inline-flex; align-items: center; gap: 6px; }
.connection-flow b { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #e7f0df; color: #9bb08b; font-size: 8px; font-weight: 400; }
.connection-flow i { font-style: normal; color: #cad7c1; }
.settings-savebar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 3px 0; }
.settings-savebar > span { display: inline-flex; align-items: center; gap: 7px; color: #a6b3a1; font-size: 9px; }
.settings-savebar svg { width: 12px; height: 12px; }

/* Full-height, two-column login */
.auth-body { background: #f8faf6; }
.public-page { min-height: 100vh; }
.public-page > .notice { margin: 16px; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(390px,.92fr) minmax(450px,1.08fr); }
.login-story { position: relative; min-height: 100vh; padding: 47px 55px 29px; overflow: hidden; display: flex; flex-direction: column; background: #173e48; color: #edf5e9; }
.login-story::before,.login-story::after { content: ''; position: absolute; border: 1px solid rgba(171,210,185,.1); border-radius: 50%; width: 590px; height: 590px; right: -374px; top: 148px; pointer-events: none; }
.login-story::after { width: 780px; height: 780px; right: -469px; top: 53px; }
.login-story .brand { position: relative; z-index: 1; padding: 0; gap: 16px; color: #edf6e7; font-size: 28px; }
.brand.light small { color: #729b93; font-size: 7px; letter-spacing: 1.7px; }
.brand.light .brand-symbol i:first-child { border-color: #81b89f; }
.brand.light .brand-symbol i:last-child { border-color: #cbddae; background: #173e48; }
.login-story-body { position: relative; z-index: 1; width: 100%; max-width: 435px; margin: auto 0; padding: 62px 0 56px; }
.login-story-body .eyebrow { font-size: 8px; letter-spacing: 2px; }
.login-story h1 { margin: 18px 0 22px; color: #f3f7ea; font-size: clamp(29px,3.1vw,43px); font-weight: 500; letter-spacing: -1.2px; line-height: 1.6; }
.login-story-body > p:not(.eyebrow) { color: #88aaa6; font-size: 12px; line-height: 2.05; margin: 0; }
.story-ticket { position: relative; margin-top: 43px; max-width: 330px; padding: 22px 23px 20px; border: 1px solid #547870; border-radius: 10px; background: rgba(205,228,199,.035); }
.story-ticket::before,.story-ticket::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1px solid #547870; border-radius: 50%; background: #173e48; top: 82px; }
.story-ticket::before { left: -8px; border-left-color: transparent; border-top-color: transparent; transform: rotate(-45deg); }
.story-ticket::after { right: -8px; border-right-color: transparent; border-bottom-color: transparent; transform: rotate(-45deg); }
.story-ticket > span { color: #739a8e; font-size: 7px; letter-spacing: 2px; }
.story-ticket > strong { display: block; margin: 13px 0 20px; color: #c8d9bc; font-size: 15px; font-weight: 400; letter-spacing: .6px; }
.story-ticket > div { position: relative; display: flex; align-items: center; justify-content: space-between; padding-top: 17px; border-top: 1px dashed #52766a; color: #8cac92; }
.story-ticket > div i { width: 5px; height: 5px; border-radius: 50%; background: #93b691; }
.story-ticket b { font-size: 9px; font-weight: 400; }
.login-story-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 15px; padding-top: 20px; border-top: 1px solid rgba(141,180,156,.13); color: #71958b; font-size: 9px; }
.login-story-footer span { font-size: 7px; letter-spacing: 1.3px; }
.login-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 55px 45px 28px; min-width: 0; background: #fafcf9; }
.login-form { width: 100%; max-width: 350px; margin: auto 0; padding: 45px 0; }
.overline { display: block; margin-bottom: 9px; color: #99b295; font-size: 11px; letter-spacing: 1px; }
.login-form h2 { font-size: 25px; margin: 0 0 10px; color: #294938; letter-spacing: -.7px; font-weight: 500; }
.login-form > .muted { color: #a5b4a0; font-size: 11px; margin-bottom: 31px; line-height: 1.9; }
.stack { display: grid; gap: 20px; }
.stack label { margin: 0; color: #859e7b; font-size: 11px; }
.stack input { min-height: 44px; padding: 12px 13px; margin-top: 9px; border-color: #dfe8d9; border-radius: 7px; background: #fff; color: #5d7c50; font-size: 11px; }
.stack input::placeholder { color: #b7c4ae; }
.stack .button { margin-top: 7px; }
.password-field { position: relative; }
.password-field input { padding-right: 55px; }
.password-field > button { position: absolute; top: 0; right: 12px; height: 44px; padding: 0 2px; background: transparent; border: 0; color: #9daf93; font-size: 10px; }
.password-field > button:hover { color: var(--brand); }
.login-help { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 24px; color: #b7c5ad; font-size: 9px; }
.login-help svg { width: 12px; height: 12px; }
.login-bottom { margin: 25px 0 0; text-align: center; color: #b9c5b1; font-size: 9px; }
.error-card { width: min(610px,calc(100% - 40px)); margin: 70px auto; padding: 44px; text-align: center; }
.error-card h1 { font-size: 24px; margin: 10px 0 12px; }
.error-card .muted { overflow-wrap: anywhere; line-height: 1.9; font-size: 12px; margin-bottom: 26px; }

/* Breakpoints maintain local table scrolling, never an oversized page. */
@media (min-width: 1700px) {
  .content { padding-top: 38px; }
  .product-cover { aspect-ratio: 1.85; }
  .launch-card { padding: 31px; }
}
@media (max-width: 1250px) {
  .content { padding: 28px 25px 20px; }
  .topbar { padding: 0 25px; }
  .stats-grid { gap: 13px; }
  .stat-card { padding: 18px 17px 15px; }
  .stat-value { font-size: 31px; }
  .product-grid { gap: 16px; }
  .product-body { padding: 15px; }
  .product-actions { gap: 9px; flex-wrap: wrap; }
  .product-actions > .button { padding-left: 8px; padding-right: 8px; }
  .settings-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 19px; }
  .connection-flow { align-items: flex-start; flex-direction: column; gap: 8px; }
  .connection-flow i { display: none; }
}
@media (max-width: 1080px) {
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-grid { grid-template-columns: minmax(0,1fr); }
  .launch-card { min-height: 260px; }
  .launch-card .orbit { right: -37px; top: 7px; }
  .launch-card .orbit-two { right: -78px; top: -35px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .settings-layout { grid-template-columns: minmax(0,1fr); }
  .settings-aside { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .toolbar { flex-wrap: wrap; }
  .toolbar-note { margin-left: 0; }
  .catalog-toolbar .search-input { max-width: none; flex-basis: 100%; }
  .page-heading { align-items: flex-start; }
  .heading-actions { flex-wrap: wrap; justify-content: flex-end; }
  .login-story { padding-left: 36px; padding-right: 36px; }
  .login-panel { padding-left: 35px; padding-right: 35px; }
}
@media (max-width: 850px) and (min-width: 751px) {
  .login-shell { grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); }
  .login-story { padding-left: 27px; padding-right: 27px; }
  .login-panel { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 750px) {
  .sidebar { position: relative; inset: auto; width: 100%; padding: 18px 16px 13px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding-left: 3px; font-size: 22px; gap: 10px; }
  .brand-symbol { transform: scale(.82); transform-origin: left center; width: 30px; flex-basis: 30px; }
  .brand small { margin-top: 5px; font-size: 7px; }
  .brand > b { margin-left: 7px; margin-top: 2px; }
  .workspace-switch,.nav-label { display: none; }
  .sidebar-bottom { position: absolute; right: 18px; top: 26px; margin: 0; padding: 0; }
  .sidebar-bottom .service-status { display: none; }
  .sidebar-bottom .logout-button { padding: 0; font-size: 10px; gap: 6px; }
  .sidebar-bottom .logout-button svg { width: 13px; height: 13px; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; }
  .sidebar nav a { justify-content: center; flex: 1 1 auto; min-height: 33px; gap: 5px; padding: 8px 9px; font-size: 10px; white-space: nowrap; }
  .sidebar nav a svg { width: 13px; height: 13px; }
  .nav-current { display: none; }
  .workspace { margin-left: 0; }
  .topbar { height: 54px; padding: 0 18px; gap: 12px; }
  .breadcrumb { font-size: 10px; gap: 9px; }
  .topbar-right { gap: 10px; }
  .topbar-date,.topbar-divider { display: none; }
  .account { font-size: 10px; gap: 7px; }
  .account > span:last-child { max-width: 100px; }
  .account small { font-size: 8px; }
  .avatar { width: 28px; height: 28px; flex-basis: 28px; }
  .content { padding: 23px 17px 19px; }
  .page-heading { margin-bottom: 21px; flex-wrap: wrap; gap: 16px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading .muted { font-size: 10px; line-height: 1.8; }
  .page-heading > .badge { margin-top: -4px; }
  .page-heading .button { min-height: 35px; font-size: 10px; padding: 8px 12px; }
  .heading-actions { justify-content: flex-start; gap: 8px; }
  .eyebrow { font-size: 7px; }
  .stats-grid { gap: 11px; margin-bottom: 18px; }
  .stat-card { padding: 16px 15px 13px; }
  .stat-top { font-size: 10px; gap: 5px; }
  .stat-icon { width: 25px; height: 25px; border-radius: 7px; }
  .stat-icon svg { width: 13px; height: 13px; }
  .stat-value { font-size: 31px; margin-top: 13px; }
  .stat-value small { font-size: 9px; margin-left: 6px; }
  .stat-card p { font-size: 8px; padding-top: 10px; }
  .overview-grid { gap: 18px; margin-bottom: 25px; }
  .card-heading { padding: 18px; }
  .card-heading h2 { font-size: 12px; }
  .card-heading p { font-size: 9px; }
  .chart-summary { margin-left: 18px; }
  .trend-card .card-heading { padding: 18px 18px 7px; }
  .trend-chart { padding: 8px 6px 8px; }
  .launch-card { padding: 24px; }
  .launch-card h2 { font-size: 25px; }
  .section-heading h2 { font-size: 13px; gap: 8px; }
  .subheading { font-size: 9px; }
  .section-heading > a { font-size: 9px; }
  .toolbar { padding: 15px; gap: 8px; }
  .search-input { max-width: none; flex-basis: 100%; }
  .toolbar > select { flex: 1 1 105px; min-width: 0; max-width: 100%; }
  .toolbar-note { width: 100%; padding-top: 4px; font-size: 9px; }
  .date-filter { flex: 1 1 135px; }
  .date-filter input { flex: 1; width: 115px; }
  td,th { padding-left: 16px; padding-right: 16px; }
  .pagination { padding: 14px 16px; gap: 10px; font-size: 9px; }
  .pagination > div { gap: 5px; }
  .pagination > div > span:first-child { font-size: 9px; margin-right: 3px; }
  .page-button { width: 25px; height: 25px; }
  .batch-notice { padding: 12px 14px; flex-wrap: wrap; font-size: 10px; }
  .batch-notice > span { flex-wrap: wrap; }
  .batch-notice .mono { font-size: 9px; }
  .product-grid { gap: 14px; }
  .product-cover { min-height: 130px; }
  .product-body h3 { font-size: 14px; }
  .product-actions > .button { font-size: 9px; }
  .empty-state { padding: 43px 18px; }
  .empty-state h3 { font-size: 13px; }
  .empty-state p { font-size: 10px; }
  .settings-layout,.settings-aside { grid-template-columns: minmax(0,1fr); }
  .form-pad { padding: 20px; }
  .form-grid { gap: 14px; }
  .settings-savebar { gap: 12px; flex-wrap: wrap; }
  .settings-savebar > span { font-size: 9px; }
  .settings-savebar > .button { margin-left: auto; }
  .connection-flow { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .form-actions { flex-wrap: wrap; gap: 14px; }
  .form-actions .button { margin-left: auto; }
  .drawer,.drawer.wide-drawer { width: min(100vw,630px); }
  .drawer-head { padding: 21px 20px 18px; }
  .drawer-head h2 { font-size: 18px; }
  .drawer-body { padding: 21px 20px 25px; }
  .drawer-footer { padding: 16px 20px max(16px,env(safe-area-inset-bottom)); }
  .drawer .form-grid { grid-template-columns: minmax(0,1fr); }
  .upload-area { padding: 15px; gap: 13px; }
  .upload-preview { flex-basis: 62px; width: 62px; height: 62px; }
  .footer { padding-top: 25px; flex-wrap: wrap; font-size: 8px; gap: 8px; }
  .login-shell { display: block; min-height: 100vh; }
  .login-story { min-height: 0; padding: 25px 27px 28px; }
  .login-story::before,.login-story::after { top: -110px; }
  .login-story .brand { font-size: 23px; gap: 10px; }
  .login-story-body { max-width: none; padding: 34px 0 3px; }
  .login-story h1 { font-size: 29px; line-height: 1.45; margin: 13px 0 14px; }
  .login-story-body > p:not(.eyebrow) { font-size: 10px; }
  .story-ticket,.login-story-footer { display: none; }
  .login-panel { min-height: 450px; padding: 28px 27px 23px; }
  .login-form { max-width: 390px; padding: 16px 0; }
  .login-form h2 { font-size: 24px; }
  .login-bottom { font-size: 8px; margin-top: 20px; }
  .error-card { padding: 30px 24px; margin-top: 40px; }
  .error-card h1 { font-size: 22px; }
}
@media (max-width: 440px) {
  .product-grid { grid-template-columns: minmax(0,1fr); }
  .product-cover { aspect-ratio: 1.8; min-height: 160px; }
  .product-body { padding: 18px; }
  .product-body h3 { font-size: 16px; }
  .product-actions { flex-wrap: nowrap; }
  .product-actions .text-button { font-size: 10px; }
  .product-actions > .button { font-size: 10px; }
  .form-pad .form-grid { grid-template-columns: minmax(0,1fr); }
  .section-heading .subheading { display: none; }
  .page-heading > .heading-actions { width: 100%; }
  .title-count { font-size: 10px; padding: 1px 7px; }
  .sidebar nav a { padding-left: 7px; padding-right: 7px; }
  .sidebar nav a svg { width: 12px; height: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
