:root {
  --ink: #172034;
  --muted: #65708a;
  --paper: #ffffff;
  --canvas: #f5f7fb;
  --line: #e5e9f2;
  --navy: #101828;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --green: #07856b;
  --red: #c94b5c;
  --shadow: 0 18px 45px rgba(19, 35, 66, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.login-shell { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 24px 24px 64px; background: radial-gradient(circle at 12% 7%, #dbeafe 0, transparent 34%), radial-gradient(circle at 95% 95%, #d1fae5 0, transparent 29%), #f8fafc; }
.login-card { width: min(100%, 430px); padding: 42px; border: 1px solid rgba(229, 233, 242, .9); border-radius: 26px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); }
.brand-mark { width: 56px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--blue); color: white; font-weight: 850; font-size: 15px; letter-spacing: -.06em; box-shadow: 0 10px 24px rgba(37, 99, 235, .28); }
.brand-mark.small { width: 43px; height: 34px; border-radius: 10px; font-size: 14px; letter-spacing: -.04em; box-shadow: none; }
.eyebrow { margin: 25px 0 8px; color: var(--blue); letter-spacing: .15em; font-size: 11px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 29px; letter-spacing: -.04em; margin-bottom: 11px; }
h2 { margin-bottom: 6px; letter-spacing: -.03em; font-size: 26px; }
h3 { font-size: 15px; margin-bottom: 4px; }
.muted, .subtle { color: var(--muted); line-height: 1.6; }
.stack { display: grid; gap: 16px; margin-top: 29px; }
label { display: grid; gap: 7px; color: #3d4962; font-size: 13px; font-weight: 700; }
input, select { width: 100%; min-height: 42px; border: 1px solid #d9dfeb; border-radius: 10px; background: #fff; color: var(--ink); padding: 0 12px; outline: none; transition: .18s border, .18s box-shadow; }
textarea { width: 100%; min-height: 120px; border: 1px solid #d9dfeb; border-radius: 10px; background: #fff; color: var(--ink); padding: 10px 12px; outline: none; resize: vertical; line-height: 1.55; transition: .18s border, .18s box-shadow; }
input:focus, select:focus, textarea:focus { border-color: #7aa4f7; box-shadow: 0 0 0 3px #dbeafe; }
input[type="file"] { padding: 8px; }
.button { min-height: 42px; border: 1px solid transparent; border-radius: 10px; padding: 0 15px; font-weight: 750; transition: .18s transform, .18s background, .18s border; }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--blue); color: white; }
.button.primary:hover { background: #1d4ed8; }
.button.secondary { border-color: #d9dfeb; background: white; color: #334155; }
.button.danger { background: #fff1f2; color: #b4233a; border-color: #fecdd3; }
.button.small { min-height: 34px; padding: 0 11px; font-size: 12px; }
.form-error { min-height: 18px; margin: -5px 0 0; color: var(--red); font-size: 13px; }
.hint { margin: 24px 0 0; color: var(--muted); font-size: 12px; }
code { border-radius: 5px; background: #f0f3f9; padding: 2px 5px; color: #32405d; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 238px; display: flex; flex-direction: column; padding: 22px 14px; background: var(--navy); color: #d9e1f2; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 31px; color: white; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.sidebar-brand > span:last-child { font-size: 17px; white-space: nowrap; }
.nav { display: grid; gap: 5px; }
.nav button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: #aebbd1; border: 0; border-radius: 9px; background: transparent; font-weight: 650; text-align: left; }
.nav button:hover { background: #1c2a43; color: #f4f8ff; }
.nav button.active { color: white; background: #263752; box-shadow: inset 3px 0 0 #74a1ff; }
.nav-group-button { justify-content: space-between; margin-top: 7px; color: #eef4ff !important; font-weight: 820 !important; }
.nav-group-button:first-child { margin-top: 0; }
.nav-group-button i { margin-left: auto; color: #a8b8d5; font-style: normal; }
.nav-group-button.active { background: transparent !important; box-shadow: none !important; color: #ffffff !important; }
.nav-children { display: grid; gap: 4px; margin: 2px 0 7px; }
.nav-child { padding-left: 26px !important; color: #aebbd1 !important; }
.nav-child.active { color: white !important; background: #263752 !important; box-shadow: inset 3px 0 0 #74a1ff !important; }
.nav-icon { width: 17px; color: #91b3ff; text-align: center; font-size: 16px; }
.sidebar-foot { display: grid; gap: 8px; margin-top: auto; padding: 14px 12px; color: #95a4bf; font-size: 12px; }
.filing-link { width: fit-content; color: inherit; text-decoration: none; }
.filing-link:hover { color: #dbeafe; text-decoration: underline; }
.login-filing { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #65708a; font-size: 12px; white-space: nowrap; }
.login-filing:hover { color: var(--blue); }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #4ade80; }
.workspace { width: calc(100% - 238px); margin-left: 238px; }
.topbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.86); backdrop-filter: blur(10px); }
.topbar-title { color: #64708a; font-size: 13px; font-weight: 700; }
.account-menu { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.account-menu strong { display: block; line-height: 1.2; }
.account-menu span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.avatar { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: #e0ecff; color: #2457a6; font-size: 12px; font-weight: 850; }
.avatar.mini { width: 30px; height: 30px; font-size: 11px; flex: 0 0 auto; }
.quiet-button { border: 0; background: transparent; color: #51607b; font-size: 12px; font-weight: 700; }
.quiet-button:hover { color: var(--blue); }
.view { max-width: 1480px; margin: auto; padding: 34px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.page-head p { margin: 0; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 17px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.filters label { min-width: 155px; flex: 1 1 160px; }
.filters .button { flex: 0 0 auto; }
.date-switch { display: inline-flex; min-height: 42px; overflow: hidden; border: 1px solid #d9dfeb; border-radius: 10px; background: #f8fafc; }
.date-switch button { min-width: 62px; border: 0; background: transparent; color: #64708a; font-size: 13px; font-weight: 750; }
.date-switch button.active { background: var(--blue); color: white; }
.calendar-filter { align-items: stretch; }
.calendar-filter > label { align-self: center; min-width: 220px; }
.calendar-wrap { flex: 1 1 560px; max-width: 620px; padding: 4px 8px 8px; }
.calendar-summary { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.calendar-summary strong { font-size: 17px; letter-spacing: -.02em; }
.calendar-summary span, .range-hint { color: var(--muted); font-size: 12px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calendar-nav { width: 32px; height: 29px; border: 1px solid #d9dfeb; border-radius: 7px; background: #fff; color: #53627c; font-size: 20px; line-height: 1; }
.calendar-week, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(28px, 1fr)); gap: 4px; text-align: center; }
.calendar-week { margin-bottom: 3px; color: #8893a8; font-size: 11px; font-weight: 750; }
.calendar-day { height: 31px; border: 0; border-radius: 7px; background: transparent; color: #3c4b66; font-size: 12px; font-weight: 650; }
.calendar-day:hover:not(.blank) { background: #e7efff; color: var(--blue); }
.calendar-day.selected { background: var(--blue); color: white; }
.calendar-day.between { border-radius: 4px; background: #dbeafe; color: #1d4ed8; }
.calendar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.date-filter { position: relative; align-items: end; }
.date-filter > label { flex: 1 1 280px; min-width: 280px; }
.date-picker { position: relative; z-index: 2; display: grid; gap: 7px; flex: 0 0 255px; }
.filter-label { color: #3d4962; font-size: 13px; font-weight: 700; }
.date-picker-trigger { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #d9dfeb; border-radius: 10px; background: white; color: #34415a; text-align: left; }
.date-picker-trigger strong { flex: 1; color: var(--ink); font-size: 13px; }
.date-picker-trigger i { color: #71809a; font-size: 15px; font-style: normal; }
.date-picker-popover { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; width: min(720px, calc(100vw - 50px)); display: grid; grid-template-columns: 132px 1fr; overflow: hidden; border: 1px solid #dce3ee; border-radius: 13px; background: white; box-shadow: 0 18px 50px rgba(19, 35, 66, .18); }
.quick-ranges { display: grid; align-content: start; gap: 3px; padding: 10px; border-right: 1px solid var(--line); background: #fafbfe; }
.quick-ranges button { padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: #44526b; font-size: 12px; font-weight: 700; text-align: left; }
.quick-ranges button:hover { background: #e9f1ff; color: var(--blue); }
.picker-main { padding: 15px 17px 13px; }
.picker-selected { display: flex; align-items: center; gap: 10px; min-height: 35px; }
.picker-selected span { min-width: 128px; padding: 8px 9px; border: 1px solid #d9dfeb; border-radius: 7px; color: #34415a; font-size: 12px; }
.picker-selected b { color: #8490a4; }
.picker-selected small { margin-left: auto; color: #8793a8; font-size: 11px; white-space: nowrap; }
.picker-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 9px; color: #6b7891; font-size: 11px; }
.picker-calendars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.picker-month + .picker-month { padding-left: 20px; border-left: 1px solid var(--line); }
.picker-month-title { margin-bottom: 9px; color: #40506b; font-size: 12px; font-weight: 800; text-align: center; }
.picker-actions { display: flex; justify-content: end; gap: 8px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { min-height: 134px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 2px 7px rgba(24, 39, 75, .025); }
.stat-card .label { color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-card .value { margin: 13px 0 7px; color: #16213a; font-size: clamp(21px, 2vw, 29px); font-weight: 820; letter-spacing: -.04em; }
.stat-card .caption { color: #8b96aa; font-size: 11px; }
.stat-card.accent { background: linear-gradient(135deg, #eef5ff, #fff); border-color: #cee0ff; }
.original-currency-card { display: flex; flex-direction: column; }
.currency-detail-button { align-self: flex-start; margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 750; }
.currency-detail-button:hover { color: #1d4ed8; text-decoration: underline; }
.currency-breakdown { display: grid; gap: 8px; margin-top: 17px; }
.currency-breakdown div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfe; }
.currency-breakdown strong { color: #172b50; font-size: 15px; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 20px; border-bottom: 1px solid var(--line); }
.panel-head p { margin: 4px 0 0; font-size: 12px; }
.store-data-head { align-items: flex-start; }
.store-data-actions { align-items: flex-start; flex-wrap: wrap; }
.store-data-mode-switch { display: inline-flex; gap: 6px; padding: 3px; border: 1px solid #dbe4f3; border-radius: 12px; background: #f7faff; }
.store-data-mode-switch .button { min-height: 30px; border-radius: 8px; }
.store-data-total { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.store-data-total span { min-width: 165px; padding: 12px 15px; border: 1px solid #c7dcff; border-radius: 12px; background: linear-gradient(135deg, #eff6ff, #ffffff); box-shadow: 0 8px 22px rgba(37, 99, 235, .08); }
.store-data-total small { display: block; margin-bottom: 5px; color: #5d6e8d; font-size: 12px; font-weight: 800; }
.store-data-total strong { display: block; color: #174bc4; font-size: 24px; line-height: 1.1; letter-spacing: -.04em; }
.source-code-list { display: flex; flex-wrap: wrap; gap: 4px; }
.currency-stack { display: grid; gap: 3px; }
.currency-stack span { white-space: nowrap; }
.meta-total span { min-width: 135px; }
.meta-summary-head { align-items: center; padding: 12px 20px 7px; border-bottom: 0; }
.meta-summary-head h3 { font-size: 15px; }
.meta-summary-head p { margin-top: 2px; }
.meta-summary-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 0; padding: 5px 20px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.meta-summary-strip span { min-width: 0; padding: 5px 12px; border-left: 2px solid #e4ecfb; }
.meta-summary-strip small { display: block; overflow: hidden; color: #74819a; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.meta-summary-strip strong { display: block; overflow: hidden; margin-top: 2px; color: #174bc4; font-size: 16px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.meta-env-note { margin-top: 14px; }
.meta-config-grid { display: grid; gap: 12px; }
.meta-drill-head { display: flex; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid #e6ebf4; background: #fbfdff; }
.meta-drill-head h3 { margin: 0; font-size: 17px; }
.meta-drill-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.meta-drill-actions { display: grid; justify-items: end; gap: 4px; margin-left: auto; }
.meta-drill-actions p { margin: 0; text-align: right; }
.meta-account-toolbar { display: flex; gap: 12px; align-items: center; padding: 14px 20px; border-top: 1px solid #e6ebf4; }
.meta-account-toolbar input { max-width: 420px; }
.meta-account-table td { vertical-align: middle; }
.meta-campaign-name { display: flex; align-items: center; gap: 7px; }
.campaign-status { padding: 2px 7px; border-radius: 999px; color: #68758d; background: #eef1f6; font-size: 10px; font-weight: 750; }
.campaign-status.active { color: #087443; background: #e7f8ef; }
.meta-account-table th, .meta-account-table td, .meta-metrics-table th, .meta-metrics-table td { padding-right: 12px; padding-left: 12px; }
.meta-account-table .metric-account { min-width: 215px; }
.meta-metrics-table .metric-campaign { min-width: 235px; }
.meta-account-table .metric-campaignCount { width: 64px; min-width: 64px; }
.meta-account-table .metric-budget,
.meta-metrics-table .metric-budget { width: 122px; min-width: 122px; }
.meta-account-table .metric-spend,
.meta-metrics-table .metric-spend { width: 112px; min-width: 112px; }
.meta-account-table .metric-frequency,
.meta-metrics-table .metric-frequency { width: 62px; min-width: 62px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 11px 18px; color: #768197; background: #fafbfe; font-size: 11px; font-weight: 800; letter-spacing: .025em; text-align: left; white-space: nowrap; }
td { padding: 15px 18px; border-top: 1px solid #eff1f6; white-space: nowrap; }
td.number, th.number { text-align: right; }
.sort-header { width: 100%; display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.sort-header.number { justify-content: flex-end; }
.sort-header i { color: #9aa6ba; font-style: normal; font-size: 11px; }
.sort-header.active { color: #2457c5; }
.sort-header.active i { color: #2457c5; }
.cell-main { font-weight: 750; }
.cell-sub { margin-top: 3px; color: #8390a7; font-size: 11px; }
.empty { display: grid; min-height: 215px; place-items: center; padding: 36px; color: var(--muted); text-align: center; }
.empty strong { display: block; margin-bottom: 6px; color: #42516d; }
.upload-grid { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(300px, 1.1fr); gap: 22px; align-items: start; }
.form-panel { padding: 23px; }
.form-panel form { display: grid; gap: 16px; margin-top: 20px; }
.upload-file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.file-picker-field { display: grid; gap: 7px; }
.hidden-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fake-file-input { min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 5px 9px; border: 1px solid #d9dfeb; border-radius: 10px; background: #fff; }
.fake-file-input span { min-width: 0; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.manual-date-note { margin: -6px 0 0; }
.manual-import-entry { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 18px; padding: 14px; border: 1px dashed #bdd0f0; border-radius: 12px; background: #f8fbff; }
.manual-import-entry p { margin: 4px 0 0; }
.manual-upload-form { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.notice { padding: 15px; border: 1px solid #bfd5fe; border-radius: 10px; background: var(--blue-soft); color: #29519c; font-size: 13px; line-height: 1.65; }
.notice strong { display: block; margin-bottom: 3px; }
.warning-line { color: #b45309; font-weight: 700; }
.upload-result { padding: 22px; border: 1px dashed #a9c5fb; border-radius: 14px; background: #f8fbff; }
.upload-result h3 { color: #27529d; }
.result-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 17px 0; }
.result-metrics div { padding: 12px; border-radius: 9px; background: white; }
.result-metrics span { display: block; color: #7a879d; font-size: 11px; }
.result-metrics b { display: block; margin-top: 5px; font-size: 18px; }
.admin-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr); gap: 22px; align-items: start; }
.store-settings-layout { grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); }
.store-settings-table { table-layout: fixed; }
.store-settings-table th:nth-child(1) { width: 38%; }
.store-settings-table th:nth-child(2) { width: 18%; }
.store-settings-table th:nth-child(3) { width: 19%; }
.store-settings-table th:nth-child(4) { width: 25%; }
.store-settings-table td { vertical-align: middle; }
.store-settings-table .store-name-cell { white-space: normal; }
.store-settings-table .cell-main { overflow-wrap: anywhere; }
.store-row-actions { justify-content: flex-end; flex-wrap: wrap; }
.member-count-button { min-height: 30px; padding: 0 10px; border: 1px solid #c7dcff; border-radius: 999px; background: #eff6ff; color: #2352a8; font-size: 12px; font-weight: 800; white-space: nowrap; }
.member-count-button:hover { border-color: #8fb9ff; background: #dbeafe; color: #174bc4; }
.checkbox-list { max-height: 185px; overflow: auto; display: grid; gap: 7px; padding: 9px; border: 1px solid #d9dfeb; border-radius: 10px; }
.checkbox-line { display: flex; align-items: center; gap: 8px; color: #3d4962; font-size: 13px; font-weight: 600; }
.checkbox-line input { width: auto; min-height: 0; }
.store-data-filters { align-items: end; }
.store-choice-control { display: grid; gap: 7px; flex: 1 1 300px; min-width: 260px; }
.store-choice-menu { position: relative; }
.store-choice-trigger { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #d9dfeb; border-radius: 10px; background: white; color: #34415a; text-align: left; }
.store-choice-trigger strong { flex: 1; color: var(--ink); font-size: 13px; }
.store-choice-trigger i { color: #71809a; font-size: 15px; font-style: normal; }
.store-choice-popover { position: absolute; top: calc(100% + 8px); left: 0; z-index: 21; width: min(520px, calc(100vw - 50px)); padding: 9px; border: 1px solid #dce3ee; border-radius: 12px; background: white; box-shadow: 0 18px 50px rgba(19, 35, 66, .18); }
.store-choice-list { max-height: 190px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border: 0; padding: 0; }
.store-choice-list .checkbox-line { min-width: 0; flex: 0 0 auto; display: flex; }
.store-choice-list .checkbox-line:first-child { grid-column: 1 / -1; padding-bottom: 6px; border-bottom: 1px solid #edf0f6; color: #243555; }
.pill { display: inline-block; padding: 4px 7px; border-radius: 99px; background: #edf2fa; color: #60718f; font-size: 11px; font-weight: 750; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.table-actions { display: flex; justify-content: end; gap: 7px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fcfdff; color: #63718a; font-size: 12px; }
.pagination-summary { margin-right: auto; color: #6e7c94; }
.pagination label { display: flex; align-items: center; gap: 6px; color: #63718a; font-size: 12px; font-weight: 650; }
.pagination select { width: auto; min-height: 32px; padding: 0 26px 0 9px; border-radius: 8px; font-size: 12px; }
.pagination .button { min-height: 32px; }
.pagination-current { min-width: 68px; color: #40506b; font-weight: 750; text-align: center; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: min(420px, calc(100vw - 44px)); padding: 13px 17px; border-radius: 10px; color: white; background: #172033; box-shadow: 0 12px 30px rgba(10, 21, 42, .25); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; font-size: 13px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #b4233a; }
.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 22px; background: rgba(16,24,40,.48); }
.modal { width: min(100%, 410px); padding: 25px; border-radius: 15px; background: white; box-shadow: var(--shadow); }
.modal h3 { font-size: 19px; }
.modal form { display: grid; gap: 14px; margin-top: 19px; }
.modal-actions { display: flex; justify-content: end; gap: 10px; margin-top: 8px; }
.member-list-modal { max-height: min(420px, 60vh); overflow: auto; display: grid; gap: 8px; margin: 16px 0 18px; padding-right: 3px; }
.member-list-row { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfe; }
.member-list-row strong { display: block; color: #23314d; font-size: 13px; }
.member-list-row small { display: block; margin-top: 2px; color: #7a879d; font-size: 11px; }
.compact-empty { min-height: 120px; padding: 22px; }
.mobile-only { display: none; }
@media (max-width: 1000px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .upload-grid, .admin-grid, .upload-file-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .sidebar { width: 225px; transform: translateX(-100%); transition: .2s transform; }
  .sidebar.open { transform: translateX(0); box-shadow: 12px 0 32px rgba(16,24,40,.2); }
  .workspace { width: 100%; margin-left: 0; }
  .topbar { min-height: 64px; padding: 0 16px; }
  .topbar-title, #password-button { display: none; }
  .mobile-only { display: block; }
  .icon-button { padding: 5px; border: 0; background: transparent; color: #52607a; font-size: 20px; }
  .view { padding: 23px 16px; }
  .page-head { display: block; }
  .page-head .button { margin-top: 15px; }
  .pagination { justify-content: center; padding: 12px; }
  .pagination-summary { width: 100%; margin-right: 0; text-align: center; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 116px; padding: 15px; }
  .account-menu { gap: 7px; }
  .account-menu div:last-of-type { display: none; }
  .login-card { padding: 30px 25px; }
  .date-picker, .date-picker-trigger { width: 100%; }
  .date-picker-popover { grid-template-columns: 1fr; width: min(100vw - 32px, 520px); }
  .quick-ranges { grid-template-columns: repeat(2, 1fr); border-right: 0; border-bottom: 1px solid var(--line); }
  .picker-calendars { grid-template-columns: 1fr; }
  .picker-month + .picker-month { display: none; }
  .picker-selected { flex-wrap: wrap; }
  .picker-selected small { width: 100%; margin-left: 0; }
  .meta-drill-head { flex-wrap: wrap; align-items: flex-start; }
  .meta-drill-actions { width: 100%; margin-left: 0; justify-items: start; }
  .meta-drill-actions p { text-align: left; }
}
