
:root {
  --platform-canvas: #f6f5f2;
  --platform-surface: #ffffff;
  --platform-ink: #292826;
  --platform-muted: #76736e;
  --platform-subtle: #a29f99;
  --platform-line: #e6e3de;
  --platform-line-strong: #d7d3cc;
  --platform-sidebar: #22211f;
  --platform-sidebar-soft: #2e2d2a;
  --platform-sidebar-muted: #aaa69e;
  --platform-accent: #bb5b46;
  --platform-accent-strong: #9f4938;
  --platform-accent-soft: #faece7;
  --platform-focus: rgba(187, 91, 70, 0.22);
  color: var(--platform-ink);
  background: var(--platform-canvas);
  font-family: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--platform-canvas); color: var(--platform-ink); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

.platform-app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100dvh; }
.app-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; width: 252px; height: 100dvh; padding: 22px 14px 16px; background: var(--platform-sidebar); color: #f8f6f1; }
.app-brand { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 9px; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); gap: 3px; width: 19px; height: 19px; }
.brand-mark i { display: block; background: #f7f4ed; border-radius: 2px; }
.brand-mark i:nth-child(2) { background: var(--platform-accent); }
.brand-mark i:nth-child(3) { grid-column: 1 / span 2; width: 8px; }
.app-brand__copy { display: grid; gap: 3px; min-width: 0; }
.app-brand__copy strong { overflow: hidden; color: #fbf9f4; font-size: 15px; font-weight: 650; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.app-sidebar__label { margin: 42px 10px 9px; color: #89857e; font-size: 11px; font-weight: 600; line-height: 1.4; }
.app-nav { display: grid; gap: 3px; }
.app-nav__item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; color: #c5c1b9; font-size: 14px; font-weight: 500; line-height: 1; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.app-nav__item:hover { background: #2b2a27; color: #fffdf7; }
.app-nav__item.is-active { border-color: #3a3833; background: var(--platform-sidebar-soft); color: #fffdf7; }
.app-nav__glyph { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border: 1px solid #555149; border-radius: 5px; color: #a7a298; font-size: 11px; font-weight: 650; line-height: 1; }
.app-nav__item.is-active .app-nav__glyph { border-color: var(--platform-accent); color: #f7d7cf; }
.app-sidebar__footer { display: grid; gap: 14px; margin-top: auto; padding: 16px 9px 0; border-top: 1px solid #34322e; }
.sidebar-account { display: flex; align-items: center; gap: 9px; min-width: 0; }
.sidebar-account__avatar, .app-header__avatar, .profile-avatar { display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e9d4ce; color: #874133; font-size: 12px; font-weight: 700; }
.sidebar-account__avatar { width: 31px; height: 31px; }
.sidebar-account__copy { display: grid; min-width: 0; gap: 3px; }
.sidebar-account__copy strong { overflow: hidden; color: #f9f7f2; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account__copy small { overflow: hidden; color: var(--platform-sidebar-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.inline-form { display: block; }
.sidebar-logout { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid #3c3934; border-radius: 6px; background: transparent; color: #beb9b1; font-size: 13px; text-align: left; transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease; }
.sidebar-logout:hover { border-color: #5a554e; background: #2d2b28; color: #fffdf8; }

.app-frame { min-width: 0; }
.app-header { display: flex; align-items: center; justify-content: space-between; min-height: 67px; padding: 0 36px; border-bottom: 1px solid var(--platform-line); background: rgba(255, 255, 255, 0.72); }
.app-header__context { display: flex; align-items: baseline; gap: 10px; }
.app-header__context span { color: var(--platform-subtle); font-size: 12px; }
.app-header__context strong { color: #4a4844; font-size: 13px; font-weight: 600; }
.app-header__account { display: flex; align-items: center; gap: 8px; color: #595650; font-size: 13px; font-weight: 550; }
.app-header__avatar { width: 27px; height: 27px; font-size: 11px; }
.page { width: min(100%, 1420px); margin: 0 auto; padding: 38px 36px 56px; }

.notice { margin-bottom: 22px; padding: 11px 13px; border: 1px solid #e5ddd8; border-radius: 7px; background: #fffbf9; color: #6d514a; font-size: 13px; line-height: 1.6; }
.notice.error { border-color: #ecc9c0; background: #fff8f6; color: #9a4b3b; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading__eyebrow { margin: 0 0 8px; color: var(--platform-accent); font-size: 12px; font-weight: 650; line-height: 1.2; }
.page-heading h1 { margin: 0; color: #282724; font-size: 27px; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.page-heading > div > p:last-child { max-width: 660px; margin: 9px 0 0; color: var(--platform-muted); font-size: 14px; line-height: 1.7; }
.ui-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease; }
.ui-button:hover { transform: translateY(-1px); }
.ui-button:focus-visible, .ui-link:focus-visible, .app-nav__item:focus-visible, .sidebar-logout:focus-visible { outline: 2px solid var(--platform-focus); outline-offset: 3px; }
.ui-button--primary { border-color: var(--platform-accent); background: var(--platform-accent); color: #fffaf8; }
.ui-button--primary:hover { border-color: var(--platform-accent-strong); background: var(--platform-accent-strong); }
.ui-button--outline { border-color: var(--platform-line-strong); background: #fff; color: #3d3b37; }
.ui-button--outline:hover { border-color: #bbb5ad; background: #fbfaf8; }
.ui-button--danger { color: #9d4939; }
.ui-button--danger:hover { border-color: #d9aca1; background: #fff9f7; }
.ui-link { color: #835143; font-size: 13px; font-weight: 600; line-height: 1.4; }
.ui-link:hover { color: var(--platform-accent-strong); }

.ui-card { min-width: 0; border: 1px solid var(--platform-line); border-radius: 8px; background: var(--platform-surface); }
.ui-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 21px 23px 17px; }
.ui-card__header h2 { margin: 0; color: #33312e; font-size: 15px; font-weight: 650; line-height: 1.4; }
.ui-card__header p { margin: 5px 0 0; color: var(--platform-muted); font-size: 12px; line-height: 1.55; }

.metric-grid, .settlement-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.metric-grid { margin-bottom: 18px; }
.metric-card { position: relative; display: flex; min-height: 146px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 20px; border: 1px solid var(--platform-line); border-radius: 8px; background: var(--platform-surface); }
.metric-card::after { position: absolute; top: 17px; right: 17px; width: 8px; height: 8px; border: 1px solid #d9d5ce; border-radius: 50%; content: ""; }
.metric-card--accent { border-color: #ead8d3; background: #fffdfc; }
.metric-card--accent::after { border-color: var(--platform-accent); background: var(--platform-accent); }
.metric-card__label { color: #6b6862; font-size: 13px; font-weight: 550; line-height: 1.4; }
.metric-card__value { display: block; margin: 11px 0; color: #2c2b28; font-size: 31px; font-weight: 700; line-height: 1; letter-spacing: 0; }
.metric-card__hint { color: var(--platform-subtle); font-size: 12px; line-height: 1.45; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, 0.72fr); gap: 18px; align-items: stretch; }
.data-card { overflow: hidden; }
.data-card .ui-card__header { border-bottom: 1px solid #efedea; }
.overview-side { min-width: 0; }
.overview-note { display: flex; min-height: 100%; flex-direction: column; padding: 25px; border-radius: 8px; background: #2a2926; color: #f8f5ef; }
.overview-note__eyebrow { margin: 0 0 12px; color: #d9a091; font-size: 12px; font-weight: 650; line-height: 1.2; }
.overview-note h2 { margin: 0; color: #fffdf8; font-size: 19px; font-weight: 650; line-height: 1.45; }
.overview-note > p:not(.overview-note__eyebrow) { margin: 10px 0 0; color: #bbb6ae; font-size: 13px; line-height: 1.7; }
.overview-note__rows { display: grid; gap: 10px; margin: auto 0 20px; padding-top: 28px; }
.overview-note__rows span { color: #aaa49b; font-size: 12px; }
.overview-note__rows b { display: block; margin-bottom: 3px; color: #fffdf8; font-size: 20px; font-weight: 650; line-height: 1.2; }
.overview-note .ui-link { color: #f0b4a4; }

.trend-card { margin-top: 18px; overflow: hidden; }
.trend-card__header { padding-bottom: 17px; border-bottom: 1px solid #efedea; }
.trend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trend-panel { min-width: 0; padding: 22px 23px 17px; }
.trend-panel + .trend-panel { border-left: 1px solid #efedea; }
.trend-panel__meta { display: flex; align-items: baseline; gap: 7px; min-height: 31px; }
.trend-panel__meta > span { margin-right: auto; color: #69655f; font-size: 13px; font-weight: 600; line-height: 1.4; }
.trend-panel__meta strong { color: #2d2b28; font-size: 24px; font-weight: 700; line-height: 1; }
.trend-panel__meta small { color: #938e85; font-size: 11px; line-height: 1; }
.trend-chart { display: block; width: 100%; height: 132px; margin-top: 14px; overflow: visible; }
.trend-chart__grid { stroke: #ece9e4; stroke-dasharray: 2 4; stroke-width: 1; }
.trend-chart__line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.trend-chart__dot { stroke: #fff; stroke-width: 1.4; }
.trend-chart--orders .trend-chart__line { stroke: #bf624d; }
.trend-chart--orders .trend-chart__dot { fill: #bf624d; }
.trend-chart--income .trend-chart__line { stroke: #557789; }
.trend-chart--income .trend-chart__dot { fill: #557789; }
.trend-labels { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: -2px; color: #9b968e; font-size: 10px; line-height: 1.4; text-align: center; }
.trend-data { margin: 0 23px 22px; overflow: hidden; border: 1px solid #ebe7e1; border-radius: 7px; }
.trend-data table { width: 100%; border-collapse: collapse; color: #625e57; font-size: 12px; }
.trend-data th, .trend-data td { padding: 9px 12px; border-bottom: 1px solid #efede9; text-align: left; }
.trend-data th { color: #8d877f; font-size: 11px; font-weight: 600; }
.trend-data tr:last-child td { border-bottom: 0; }

.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-color: #c9c3ba transparent; scrollbar-width: thin; }
.table-wrap:focus-visible { outline: 2px solid var(--platform-focus); outline-offset: -2px; }
.data-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 13px 23px; border-bottom: 1px solid #efedea; text-align: left; vertical-align: middle; }
.data-table th { color: #89857e; font-size: 12px; font-weight: 600; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fcfbf9; }
.data-table td { color: #4b4945; }
.table-time, .order-number { color: #85817a !important; font-size: 12px; white-space: nowrap; }
.table-action { width: 128px; text-align: right !important; }
.table-action__form { display: inline; margin-left: 10px; }
.table-action__button { padding: 0; border: 0; background: transparent; color: #9d4939; cursor: pointer; font-family: inherit; }
.table-action__button:hover { color: #7e372b; }
.table-title { color: #3b3935; font-size: 13px; font-weight: 600; }
.collection-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; color: #3b3935; font-weight: 600; }
.collection-cell__cover, .collection-cell__placeholder, .table-cover { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 6px; object-fit: cover; }
.collection-cell__placeholder, .table-cover--empty { border: 1px solid #e4dfd8; background: #f5f3ee; color: #9c968d; font-size: 12px; }
.table-cover { width: 40px; height: 40px; border: 1px solid #ece8e3; background: #f4f1ec; }
.status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid #e6e2dc; border-radius: 999px; background: #f5f3f0; color: #716d66; font-size: 12px; font-weight: 550; line-height: 1; white-space: nowrap; }
.status--approved, .status--published, .status--settled { border-color: #d7e0eb; background: #f1f5f9; color: #486378; }
.status--pending, .status--frozen, .status--refund_pending, .status--refund_approving, .status--settling, .status--payment_pending { border-color: #ecd9ba; background: #fdf7ed; color: #95662b; }
.status--rejected, .status--refunded, .status--payment_failed, .status--withdrawn, .status--suspended { border-color: #edcfc8; background: #fff5f2; color: #a75543; }

.empty-state { display: grid; justify-items: center; padding: 48px 24px 44px; text-align: center; }
.empty-state--compact { padding: 36px 24px; }
.empty-state__mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #e5ddd8; border-radius: 8px; background: #fbf5f2; color: #a65a48; font-size: 14px; font-weight: 700; }
.empty-state h3 { margin: 15px 0 0; color: #3a3834; font-size: 15px; font-weight: 650; }
.empty-state p { max-width: 330px; margin: 8px 0 18px; color: var(--platform-muted); font-size: 13px; line-height: 1.7; }

.review-banner { display: flex; align-items: flex-start; gap: 8px; margin: -8px 0 17px; padding: 10px 13px; border: 1px solid #ead9c8; border-radius: 7px; background: #fdf8f0; color: #835b2e; font-size: 13px; line-height: 1.5; }
.review-banner__dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #b87935; }
.review-banner__content { display: grid; gap: 3px; min-width: 0; }
.review-banner__meta { color: #9c7d58; font-size: 12px; }
.review-banner__reason { color: #765035; font-weight: 600; overflow-wrap: anywhere; }
.collection-workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(286px, 0.72fr); gap: 18px; align-items: start; }
.collection-editor { overflow: hidden; }
.editor-state, .collection-list-count, .orders-rule { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid #e5e1db; border-radius: 999px; color: #858078; font-size: 11px; line-height: 1; white-space: nowrap; }
.editor-request-message { min-height: 0; margin: 0; padding: 0 23px; color: #756a60; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.editor-request-message:not(:empty) { padding-top: 10px; }
.editor-request-message.is-error { color: #a75543; }
.editor-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 23px 18px; border-bottom: 1px solid #efedea; }
.editor-step { display: flex; min-width: 0; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; border: 1px solid #e4e0d9; border-radius: 6px; background: #fbfaf8; color: #77736c; font-size: 12px; line-height: 1; transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease; }
.editor-step:hover { border-color: #cfc8bf; background: #fff; color: #4e4a44; }
.editor-step.is-active { border-color: #d99a8a; background: #fff8f5; color: #964837; }
.editor-step span { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border-radius: 50%; background: #ebe7e0; color: #7d786f; font-size: 10px; font-weight: 700; }
.editor-step.is-active span { background: var(--platform-accent); color: #fffaf8; }
.editor-step b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.editor-panel[hidden], .collection-side [hidden] { display: none !important; }
.editor-fields { padding: 3px 23px 23px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 14px; }
.field { display: block; margin: 0 0 15px; }
.field > span { display: flex; align-items: baseline; gap: 6px; margin-bottom: 7px; color: #514f4a; font-size: 13px; font-weight: 600; line-height: 1.4; }
.field > span small { color: var(--platform-subtle); font-size: 11px; font-weight: 500; }
.field input, .field textarea, .input-with-suffix input { width: 100%; border: 1px solid #dcd8d1; border-radius: 6px; outline: none; background: #fff; color: #373530; font-size: 13px; line-height: 1.5; transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.field input, .input-with-suffix input { min-height: 39px; padding: 8px 11px; }
.field textarea { display: block; min-height: 104px; padding: 10px 11px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #aaa69e; }
.field input:focus, .field textarea:focus, .input-with-suffix input:focus { border-color: var(--platform-accent); box-shadow: 0 0 0 3px var(--platform-focus); }
.input-with-suffix { position: relative; }
.input-with-suffix input { padding-right: 66px; }
.input-with-suffix span { position: absolute; top: 50%; right: 11px; color: #938e85; font-size: 11px; line-height: 1; pointer-events: none; transform: translateY(-50%); }
.review-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e5e1db; border-radius: 7px; background: #fcfbf9; }
.review-summary div { display: grid; gap: 6px; min-width: 0; padding: 15px; }
.review-summary div + div { border-left: 1px solid #e5e1db; }
.review-summary span { color: #918b82; font-size: 11px; line-height: 1.35; }
.review-summary strong { overflow: hidden; color: #403d38; font-size: 13px; font-weight: 650; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 23px; border-top: 1px solid #efedea; background: #fcfbf9; }
.editor-actions > span { color: #938e85; font-size: 12px; line-height: 1.55; }
.editor-actions > div { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.collection-side { display: grid; gap: 18px; }
.cover-preview-card, .asset-list-card { overflow: hidden; }
.cover-preview { position: relative; display: grid; min-height: 212px; place-items: center; overflow: hidden; margin: 0 23px 23px; border: 1px solid #e8e4df; border-radius: 7px; background: #f8f6f2; color: #9c968d; font-size: 12px; }
.cover-preview img { width: 100%; height: 100%; min-height: 212px; object-fit: cover; }
.cover-preview [hidden] { display: none; }
.cover-uploader { display: grid; gap: 8px; padding: 0 23px 23px; }
.asset-uploader { display: grid; gap: 12px; padding: 15px; border: 1px solid #e5e1db; border-radius: 7px; background: #fcfbf9; }
.asset-uploader__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.asset-uploader__heading > div { display: grid; gap: 3px; }
.asset-uploader__heading strong { color: #45423d; font-size: 13px; font-weight: 650; line-height: 1.35; }
.asset-uploader__heading span, .asset-uploader__heading small { color: #938e85; font-size: 11px; line-height: 1.45; }
.asset-uploader__heading small { flex: 0 0 auto; padding-top: 1px; white-space: nowrap; }
.asset-file-picker { position: relative; display: grid; gap: 4px; min-height: 76px; padding: 15px; border: 1px dashed #cfc8bf; border-radius: 7px; background: #fff; color: #4c4944; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.asset-file-picker:hover, .asset-file-picker.is-dragging { border-color: #b9715e; background: #fffaf8; box-shadow: 0 0 0 3px rgba(191, 98, 77, 0.1); }
.asset-file-picker--assets { min-height: 116px; place-content: center; text-align: center; }
.asset-file-picker--cover { min-height: 70px; }
.asset-file-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.asset-file-picker span { font-size: 13px; font-weight: 600; }
.asset-file-picker small { overflow: hidden; color: #908b83; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.upload-result { display: block; min-height: 17px; color: #826456; font-size: 12px; line-height: 1.45; word-break: break-all; }
.upload-result.is-error { color: #a75543; }
.upload-retry { min-height: 36px; width: fit-content; padding: 0 10px; border: 1px solid #d9c3bc; border-radius: 5px; background: #fffaf8; color: #8b4d3e; font: inherit; font-size: 12px; font-weight: 600; }
.upload-retry:hover { border-color: #bf7969; background: #fff5f2; }
.upload-retry:focus-visible { outline: 2px solid var(--platform-focus); outline-offset: 2px; }
.asset-list-card .ui-card__header { padding-bottom: 13px; }
.asset-preview-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; min-height: 75px; padding: 0 23px 23px; }
.asset-list-card .asset-preview-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.asset-tile { position: relative; display: block; width: 100%; aspect-ratio: 1; margin: 0; padding: 0; overflow: hidden; border: 1px solid #e7e3de; border-radius: 6px; background: #f5f2ed; }
.asset-tile.is-cover { border-color: #bf624d; box-shadow: inset 0 0 0 1px #bf624d; }
.asset-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.asset-tile__actions { position: absolute; z-index: 1; right: 4px; bottom: 4px; left: 4px; display: grid; grid-template-columns: minmax(0, 1fr) 22px; gap: 3px; align-items: center; }
.asset-tile__cover, .asset-tile__cover-state, .asset-tile__remove { min-width: 0; min-height: 22px; border: 0; border-radius: 4px; background: rgba(42, 39, 35, 0.78); color: #fff; font-family: inherit; font-size: 10px; font-weight: 600; line-height: 1; }
.asset-tile__cover { padding: 0 4px; cursor: pointer; white-space: nowrap; }
.asset-tile__cover:hover, .asset-tile__remove:hover { background: rgba(127, 64, 50, 0.9); }
.asset-tile__cover:focus-visible, .asset-tile__remove:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.asset-tile__cover-state { display: grid; place-items: center; padding: 0 4px; background: rgba(166, 90, 72, 0.92); }
.asset-tile__remove { display: grid; width: 22px; height: 22px; padding: 0; place-items: center; cursor: pointer; font-size: 16px; font-weight: 400; }
.asset-empty { grid-column: 1 / -1; margin: 9px 0; color: #98938b; font-size: 12px; line-height: 1.6; }
.review-preview { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; padding: 0 23px 23px; }
.review-preview__cover { position: relative; display: grid; min-height: 116px; place-items: center; overflow: hidden; border: 1px solid #e8e4df; border-radius: 7px; background: #f8f6f2; color: #9c968d; font-size: 11px; text-align: center; }
.review-preview__cover img { display: block; width: 100%; height: 100%; min-height: 116px; object-fit: cover; }
.review-preview .asset-preview-list { min-height: 116px; padding: 0; }
.settlement-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.orders-card { min-height: 300px; }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.profile-identity { display: flex; align-items: center; gap: 16px; min-height: 190px; padding: 25px; }
.profile-avatar { width: 54px; height: 54px; background: #e8d1ca; color: #8e4637; font-size: 18px; }
.profile-identity p { margin: 0; color: #8e8981; font-size: 12px; }
.profile-identity h2 { margin: 6px 0; color: #35332f; font-size: 19px; font-weight: 650; }
.profile-identity span:last-child { color: #918b82; font-size: 12px; }
.profile-detail-card { min-height: 190px; padding-bottom: 22px; }
.profile-detail-list { display: grid; gap: 14px; margin: 0; padding: 0 23px; }
.profile-detail-list div { display: grid; gap: 4px; }
.profile-detail-list dt { color: #918c84; font-size: 12px; }
.profile-detail-list dd { margin: 0; color: #494641; font-size: 13px; font-weight: 550; }
.profile-detail-card form { padding: 0 23px; }

.creator-login { display: grid; min-height: 100dvh; padding: 44px 28px; place-items: center; background: var(--platform-canvas); color: var(--platform-ink); }
.creator-login-layout { display: grid; grid-template-columns: minmax(0, 1fr) 408px; width: min(100%, 1080px); min-height: 584px; overflow: hidden; border: 1px solid var(--platform-line); border-radius: 8px; background: var(--platform-surface); }
.creator-login-intro { display: flex; flex-direction: column; padding: 50px 66px; background: #fbfaf8; }
.creator-login-brand { display: flex; align-items: center; gap: 10px; color: #4c4943; font-size: 13px; font-weight: 650; }
.creator-login-intro-copy { margin: auto 0; }
.creator-login-eyebrow { margin: 0 0 13px; color: var(--platform-accent); font-size: 12px; font-weight: 650; line-height: 1.3; }
.creator-login-title { margin: 0; color: #292724; font-size: 35px; font-weight: 700; line-height: 1.36; letter-spacing: 0; }
.creator-login-panel { display: flex; flex-direction: column; padding: 40px 43px 34px; border-left: 1px solid var(--platform-line); background: #fff; }
.creator-login-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; margin: 0 0 24px; }
.creator-login-panel-heading > div { display: grid; gap: 5px; }
.creator-login-panel-heading h2 { margin: 0; color: #302e2a; font-size: 20px; font-weight: 650; line-height: 1.3; }
.creator-login .notice { margin: -8px 0 15px; padding: 9px 11px; border: 1px solid #e7ded8; border-radius: 6px; background: #fffbf9; color: #74594f; font-size: 12px; line-height: 1.6; }
.creator-login .notice.error { border-color: #eccdc5; background: #fff7f4; color: #a14d3c; }
.creator-login-qr-frame { display: grid; width: 100%; height: auto; aspect-ratio: 1; padding: 12px; place-items: center; overflow: hidden; border: 1px solid #dfdbd5; border-radius: 8px; background: #fff; }
.creator-login-qr-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.creator-login-qr-unavailable { inset: 0; padding: 28px; background: #fbfaf8; color: var(--platform-muted); font-size: 13px; line-height: 1.75; text-align: center; }
.creator-login-state { gap: 8px; min-height: 22px; margin-top: 17px; }
.creator-login-state-dot { width: 7px; height: 7px; flex-basis: 7px; background: var(--platform-accent); box-shadow: 0 0 0 3px var(--platform-accent-soft); }
.creator-login-status { color: #57544f; font-size: 13px; line-height: 1.6; }
.creator-login-help { margin: 4px 0 0 15px; color: var(--platform-subtle); font-size: 12px; line-height: 1.65; }
.creator-login-agreement { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 13px 0 0; color: #817b73; font-size: 12px; line-height: 1.5; }
.creator-login-agreement input { width: 14px; height: 14px; margin: 0 2px 0 0; accent-color: var(--platform-accent); }
.creator-login-agreement-link { padding: 0; border: 0; background: transparent; color: #855144; font: inherit; cursor: pointer; }
.creator-login-agreement-link:hover { color: var(--platform-accent-strong); text-decoration: underline; }
.creator-login-progress { height: 2px; margin-top: 19px; overflow: hidden; border-radius: 999px; background: #eeeae5; }
.creator-login-progress span { display: block; width: 100%; height: 100%; background: var(--platform-accent); transition: width 900ms linear; }
.creator-login-actions { margin-top: 15px; padding: 0; border: 0; color: #99948b; font-size: 12px; }
.creator-login-refresh { min-height: 34px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; color: #855144; font-size: 12px; font-weight: 600; }
.creator-login-refresh:hover { border-color: #e4d5cf; background: #fff8f6; color: var(--platform-accent-strong); }
.creator-login-needs-refresh .creator-login-state-dot { background: #b85d4a; box-shadow: 0 0 0 3px #f8e8e3; }
.creator-login-needs-refresh .creator-login-refresh { min-height: 38px; border-color: var(--platform-accent); background: var(--platform-accent); color: #fffaf8; }
.creator-login-needs-refresh .creator-login-refresh:hover { border-color: var(--platform-accent-strong); background: var(--platform-accent-strong); color: #fffaf8; }
.creator-agreement-dialog[hidden] { display: none; }
.creator-agreement-dialog { position: fixed; inset: 0; z-index: 100; display: grid; padding: 24px; place-items: center; }
.creator-agreement-dialog__backdrop { position: absolute; inset: 0; background: rgba(37, 34, 30, .4); }
.creator-agreement-dialog__panel { position: relative; width: min(100%, 620px); max-height: min(720px, calc(100dvh - 48px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--platform-line); border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgba(37, 34, 30, .18); }
.creator-agreement-dialog__header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 15px; border-bottom: 1px solid #eee9e4; }
.creator-agreement-dialog__header h2 { margin: 0; color: #302e2a; font-size: 18px; font-weight: 650; }
.creator-agreement-dialog__close { width: 30px; height: 30px; border: 0; border-radius: 5px; background: transparent; color: #787169; font-size: 25px; line-height: 1; cursor: pointer; }
.creator-agreement-dialog__close:hover { background: #f4f0ec; color: #403c37; }
.creator-agreement-dialog__content { overflow-y: auto; padding: 18px 22px; color: #615b54; font-size: 13px; line-height: 1.8; }
.creator-agreement-dialog__content p { margin: 0 0 14px; }
.creator-agreement-dialog__content h3 { margin: 18px 0 7px; color: #3c3935; font-size: 14px; font-weight: 650; }
.creator-agreement-dialog__footer { display: flex; justify-content: flex-end; padding: 14px 22px 20px; border-top: 1px solid #eee9e4; }
.creator-agreement-dialog__confirm { min-height: 36px; padding: 0 17px; border: 1px solid var(--platform-accent); border-radius: 6px; background: var(--platform-accent); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.creator-agreement-dialog__confirm:hover { background: var(--platform-accent-strong); border-color: var(--platform-accent-strong); }

@media (max-width: 1120px) {
  .platform-app { grid-template-columns: 224px minmax(0, 1fr); }
  .app-sidebar { width: 224px; }
  .page { padding-right: 28px; padding-left: 28px; }
  .app-header { padding-right: 28px; padding-left: 28px; }
  .collection-workspace { grid-template-columns: minmax(0, 1.25fr) minmax(272px, 0.75fr); }
  .creator-login-layout { width: min(100%, 980px); }
  .creator-login-intro { padding: 48px; }
}

@media (max-width: 880px) {
  .platform-app { display: block; }
  .app-sidebar { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; width: 100%; height: auto; min-height: 64px; padding: 11px 17px; }
  .app-brand { padding: 0; }
  .app-sidebar__label { display: none; }
  .app-nav { display: flex; min-width: 0; gap: 3px; margin-left: 18px; overflow-x: auto; }
  .app-nav__item { flex: 0 0 auto; min-height: 44px; padding: 0 9px; font-size: 13px; }
  .app-nav__glyph { display: none; }
  .app-sidebar__footer { display: block; margin: 0; padding: 0; border: 0; }
  .sidebar-account { display: none; }
  .sidebar-logout { width: auto; min-height: 44px; padding: 0 9px; font-size: 12px; }
  .app-header { min-height: 56px; padding: 0 20px; }
  .page { padding: 27px 20px 42px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .collection-workspace { grid-template-columns: 1fr; }
  .overview-note { min-height: 210px; }
  .collection-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .asset-list-card { grid-column: 1 / -1; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-identity, .profile-detail-card { min-height: auto; }
  .creator-login { padding: 28px; }
  .creator-login-layout { grid-template-columns: minmax(0, 1fr) 360px; min-height: 520px; }
  .creator-login-intro { padding: 42px; }
  .creator-login-title { font-size: 30px; }
  .creator-login-panel { padding: 34px; }
}

@media (max-width: 620px) {
  .app-sidebar { grid-template-columns: 1fr auto; gap: 9px; }
  .app-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; margin-left: 0; padding-top: 2px; }
  .app-nav__item { min-height: 44px; padding: 0 8px; }
  .app-header__account { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 21px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading > div > p:last-child { font-size: 13px; }
  .page-heading .ui-button { width: 100%; }
  .metric-grid, .settlement-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-card { min-height: 126px; padding: 16px; }
  .metric-card__value { font-size: 26px; }
  .metric-card__hint { font-size: 11px; }
  .ui-card__header { padding: 18px; }
  .trend-grid { grid-template-columns: 1fr; }
  .trend-panel { padding: 18px; }
  .trend-panel + .trend-panel { border-top: 1px solid #efedea; border-left: 0; }
  .trend-chart { height: 118px; }
  .trend-data { margin: 0 18px 18px; overflow: visible; border: 0; background: transparent; }
  .trend-data__table { min-width: 0 !important; }
  .trend-data__table thead, .data-table--stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .trend-data__table tbody { display: grid; gap: 9px; }
  .trend-data__table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; padding: 12px 13px; border: 1px solid #e5e1db; border-radius: 7px; background: #fcfbf9; }
  .trend-data__table td { display: grid; gap: 4px; padding: 0; border: 0; color: #403d38; font-size: 13px; font-weight: 600; }
  .trend-data__table td:first-child { grid-column: 1 / -1; display: flex; align-items: center; padding-bottom: 9px; border-bottom: 1px solid #ece8e2; color: #766f66; font-size: 12px; font-weight: 600; }
  .trend-data__table td:not(:first-child)::before { content: attr(data-label); color: #968f86; font-size: 11px; font-weight: 500; line-height: 1.35; }
  .table-wrap { overflow: visible; }
  .data-table--stacked { display: block; min-width: 0; font-size: 13px; }
  .data-table--stacked tbody { display: grid; gap: 10px; }
  .data-table--stacked tr { display: block; overflow: hidden; padding: 0 14px; border: 1px solid #e5e1db; border-radius: 7px; background: #fff; }
  .data-table--stacked td { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid #efedea; color: #3f3c37; text-align: right; }
  .data-table--stacked td::before { flex: 0 0 78px; color: #928b82; content: attr(data-label); font-size: 11px; font-weight: 500; line-height: 1.4; text-align: left; }
  .data-table--stacked td:first-child { align-items: flex-start; }
  .data-table--stacked td:last-child { border-bottom: 0; }
  .data-table--stacked .collection-cell { min-width: 0; flex: 1; justify-content: flex-end; text-align: right; }
  .data-table--stacked .collection-cell > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .data-table--stacked .table-cover { margin-left: auto; }
  .data-table--stacked .table-action { width: auto; text-align: right !important; }
  .data-table--stacked .table-action .ui-link { min-height: 36px; display: inline-flex; align-items: center; }
  .form-grid { grid-template-columns: 1fr; }
  .editor-steps { padding: 0 18px 15px; }
  .editor-step { min-height: 40px; padding: 0 7px; font-size: 11px; }
  .editor-fields { padding: 2px 18px 18px; }
  .review-summary { grid-template-columns: 1fr; }
  .review-summary div + div { border-top: 1px solid #e5e1db; border-left: 0; }
  .editor-actions { align-items: flex-start; flex-direction: column; padding: 15px 18px; }
  .editor-actions > div { width: 100%; }
  .editor-actions .ui-button { flex: 1; }
  .collection-side { grid-template-columns: 1fr; }
  .asset-list-card { grid-column: auto; }
  .cover-preview { min-height: 192px; margin: 0 18px 18px; }
  .cover-preview img { min-height: 192px; }
  .cover-uploader { padding: 0 18px 18px; }
  .asset-uploader__heading { align-items: flex-start; }
  .asset-preview-list { padding: 0 18px 18px; }
  .review-preview { padding: 0 18px 18px; }
  .profile-identity { padding: 21px; }
  .creator-login { padding: 0 20px 30px; align-items: start; }
  .creator-login-layout { display: block; min-height: 0; margin-top: 0; border-top: 0; border-right: 0; border-left: 0; border-radius: 0; background: transparent; }
  .creator-login-intro { padding: 36px 0 29px; background: transparent; }
  .creator-login-intro-copy { margin: 32px 0; }
  .creator-login-title { font-size: 28px; }
  .creator-login-panel { max-width: 420px; padding: 27px 0 0; border-top: 1px solid var(--platform-line); border-left: 0; background: transparent; }
  .creator-login-qr-frame { width: min(100%, 290px); }
  .creator-login-actions { width: min(100%, 290px); }
  .creator-login-progress { width: min(100%, 290px); }
}

@media (max-width: 420px) {
  .editor-step { min-height: 54px; flex-direction: column; gap: 3px; padding: 5px 4px; }
  .editor-step span { width: 17px; height: 17px; flex-basis: 17px; font-size: 9px; }
  .review-preview { grid-template-columns: 94px minmax(0, 1fr); gap: 9px; }
  .review-preview__cover, .review-preview__cover img { min-height: 94px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-nav__item, .sidebar-logout, .ui-button, .creator-login-refresh, .creator-login-progress span { transition: none; }
  .ui-button:hover { transform: none; }
}
