:root {
  color-scheme: dark;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-pale: rgba(59,130,246,.13);
  --accent: #10b981;
  --ink: #ffffff;
  --muted: #9ca3af;
  --dim: #6b7280;
  --border: #262833;
  --line: #343746;
  --surface: #0d0e12;
  --panel: #1a1b23;
  --panel-raised: #20222d;
  --code: #11131a;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-panel: 0 20px 55px rgba(0,0,0,.28);
  --glow-blue: 0 0 0 1px rgba(59,130,246,.18), 0 14px 34px rgba(37,99,235,.18);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; text-rendering: geometricPrecision; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }

.shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); }
.app-topbar { min-height: 72px; display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: center; gap: 22px; padding: 10px 20px; background: var(--panel); border-bottom: 1px solid var(--border); }
.app-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-logo { width: 36px; height: 36px; display: grid; place-items: center; padding: 4px; color: #fff; background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.22); border-radius: 13px; box-shadow: var(--glow-blue); }
.app-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.app-name { font-size: 15px; font-weight: 750; letter-spacing: .01em; }
.app-subtitle { color: var(--muted); font-size: 12px; }
.app-actions { display: flex; align-items: center; gap: 12px; }
.system-pill { padding: 8px 11px; color: var(--success); background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.18); border-radius: 999px; font-size: 12px; font-weight: 700; }
.design-pill { padding: 8px 11px; color: var(--primary); background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.2); border-radius: 999px; font-size: 12px; font-weight: 700; }
.workspace { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 280px minmax(0, 1fr); overflow: hidden; }
.icon-dock { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; background: var(--panel); border-right: 1px solid var(--border); }
.dock-avatar, .dock-nav button, .dock-settings { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; }
.dock-avatar { color: var(--ink); background: var(--panel-raised); border: 1px solid var(--border); font-weight: 800; }
.dock-nav { display: grid; gap: 8px; }
.dock-nav button, .dock-settings { border: 1px solid transparent; color: var(--muted); background: transparent; font-weight: 800; transition: .18s ease; }
.dock-nav button:hover, .dock-settings:hover { color: var(--ink); background: var(--panel-raised); border-color: var(--border); }
.dock-nav button.active { color: var(--primary); background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.55); box-shadow: var(--glow-blue); }
.sidebar { position: relative; width: auto; min-width: 0; display: flex; flex-direction: column; padding: 0; color: var(--ink); background: var(--panel); border-right: 1px solid var(--border); }
.brand { padding: 18px 16px 16px; border-bottom: 1px solid var(--border); }
.brand-mark { font-size: 11px; letter-spacing: 1.6px; color: var(--muted); }
.brand-name { margin-top: 7px; font-size: 16px; font-weight: 750; }
.nav { flex: 1; display: grid; align-content: start; gap: 14px; margin-top: 0; padding: 16px; overflow: auto; scrollbar-width: thin; scrollbar-color: #3a3d4e transparent; }
.nav::-webkit-scrollbar { width: 8px; }
.nav::-webkit-scrollbar-thumb { background: #3a3d4e; border-radius: 999px; }
.nav button { border: 0; color: var(--muted); background: transparent; text-align: left; }
.nav-group { border-radius: 14px; }
.nav-group.has-active { background: rgba(255,255,255,.025); }
.nav-group-title { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 2px 8px; border-radius: 12px; color: var(--ink); font-size: 13px; font-weight: 750; }
.nav-group-title span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.nav-group-title i { width: 23px; height: 23px; display: inline-grid; place-items: center; color: var(--primary); background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.18); border-radius: 8px; font-style: normal; font-size: 12px; }
.nav-group-title:hover, .nav-group.open .nav-group-title { color: #fff; }
.nav-arrow { color: var(--dim); font-size: 13px; }
.nav-subnav { display: none; gap: 4px; padding: 2px 0 4px 31px; }
.nav-group.open .nav-subnav { display: grid; }
.nav-child { width: 100%; min-height: 38px; display: flex; align-items: center; padding: 9px 12px 9px 18px; border: 1px solid transparent !important; border-radius: 10px; color: var(--muted); background: transparent !important; font-size: 13px; font-weight: 650; position: relative; transition: .18s ease; }
.nav-child::before { content: ""; position: absolute; left: 5px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--border); transform: translateY(-50%); }
.nav-child.active, .nav-child:hover { color: #fff; border-color: var(--border) !important; background: rgba(255,255,255,.045) !important; }
.nav-child.active { color: #fff; border-color: rgba(59,130,246,.34) !important; box-shadow: none; }
.nav-child.active::before { background: var(--primary); box-shadow: 0 0 0 4px rgba(59,130,246,.14); }
.sidebar-foot { margin: 0; padding: 14px 16px; border-top: 1px solid var(--border); color: var(--dim); font-size: 12px; }

.main { min-width: 0; padding: 24px 32px 46px; overflow: auto; background-color: var(--surface); background-image: radial-gradient(circle at 1px 1px, rgba(156,163,175,.11) 1px, transparent 0); background-size: 22px 22px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.expo-selector { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.expo-selector select { min-width: 150px; padding: 8px 10px; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 9px; outline: none; }
.page-title { font-size: 25px; font-weight: 700; }
.page-subtitle { margin-top: 4px; color: var(--muted); }
.admin-badge { padding: 8px 12px; color: var(--primary-dark); background: #fff; border: 1px solid var(--border); border-radius: 999px; }
.toolbar { display: flex; gap: 10px; margin-bottom: 18px; }
.toolbar-wrap { flex-wrap: wrap; }
.toolbar select, .toolbar input[type="date"] { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.search { width: min(360px, 60%); padding: 10px 13px; border: 1px solid var(--border); border-radius: 10px; outline: none; }
.search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36,90,154,.12); }
.button { padding: 10px 16px; border: 0; border-radius: 10px; font-weight: 600; }
.button.primary { color: #fff; background: var(--primary); }
.button.secondary { color: var(--primary); background: var(--primary-pale); }
.button.danger { color: #b33a2d; background: #fff0ed; }
.button.ghost { color: var(--muted); background: transparent; border: 1px solid var(--border); }
.button.small { padding: 6px 10px; font-size: 12px; }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.metric { padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 15px; }
.metric-label { color: var(--muted); }
.metric-value { margin-top: 8px; font-size: 30px; font-weight: 700; }
.metric-note { margin-top: 5px; color: var(--accent); font-size: 12px; }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 20px; }
.todo-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; color: var(--ink); background: #fff; text-align: left; }
.todo-card span { color: var(--muted); }
.todo-card strong { color: var(--accent); font-size: 24px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 20px; }
.dashboard-recent-panel { display: flex; flex-direction: column; min-height: 370px; }
.dashboard-recent-panel .panel-head { flex: 0 0 auto; }
.dashboard-recent-table {
  display: flex;
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  color: #f8fafc;
  background: linear-gradient(180deg, rgba(18,20,28,.88), rgba(15,17,24,.58));
  border: 1px solid rgba(52,55,70,.92);
  border-radius: 14px;
  box-shadow: var(--shadow-panel);
}
.dashboard-recent-head,
.dashboard-recent-row {
  display: grid;
  grid-template-columns: var(--recent-columns);
  min-width: 0;
}
.dashboard-recent-head {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  color: var(--muted);
  background: rgba(13,14,18,.82);
  border-bottom: 1px solid rgba(52,55,70,.92);
}
.dashboard-recent-th,
.dashboard-recent-cell {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dashboard-recent-th {
  padding: 11px 10px;
  font-size: 12px;
  font-weight: 700;
}
.dashboard-recent-th + .dashboard-recent-th,
.dashboard-recent-cell + .dashboard-recent-cell {
  border-left: 1px solid rgba(52,55,70,.72);
}
.dashboard-recent-body {
  position: relative;
  flex: 0 0 auto;
  height: calc(var(--recent-visible-rows) * 42px);
  max-height: 252px;
  overflow: hidden;
}
.dashboard-recent-track {
  animation: dashboardRecentScroll var(--recent-duration) linear infinite;
}
.dashboard-recent-body:hover .dashboard-recent-track {
  animation-play-state: paused;
}
.dashboard-recent-body:focus-within .dashboard-recent-track {
  animation-play-state: paused;
}
.dashboard-recent-row {
  min-height: 42px;
  border-bottom: 1px solid rgba(52,55,70,.72);
}
.dashboard-recent-cell {
  display: flex;
  align-items: center;
  padding: 10px 10px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 650;
}
.dashboard-recent-status-cell .status {
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dashboard-recent-empty {
  flex: 1;
  min-height: 260px;
}
@keyframes dashboardRecentScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.bar-list { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(88px, 1.2fr) 2fr 42px; align-items: center; gap: 10px; }
.bar-label { overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.bar-track { height: 10px; overflow: hidden; background: #edf2f7; border-radius: 999px; }
.bar-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px; }
.bar-value { text-align: right; font-weight: 700; }
.compact-empty { padding: 24px; }
.insight-board { margin-top: 20px; padding: 20px; background: rgba(26,27,35,.96); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-panel); }
.insight-board-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.insight-board-badge { padding: 7px 10px; color: var(--accent); background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.2); border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.dashboard-range { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 0 0 16px; padding: 12px; background: rgba(13,14,18,.6); border: 1px solid rgba(52,55,70,.78); border-radius: 14px; }
.dashboard-range label { display: grid; gap: 6px; min-width: 150px; color: var(--muted); font-size: 12px; }
.dashboard-range input { width: 100%; height: 34px; padding: 0 10px; color: #fff; color-scheme: dark; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 9px; }
.dashboard-range em { margin-left: auto; padding: 7px 10px; color: var(--accent); background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.18); border-radius: 999px; font-size: 12px; font-style: normal; font-weight: 720; white-space: nowrap; }
.insight-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.insight-kpi { min-width: 0; padding: 14px; background: linear-gradient(145deg, rgba(32,34,45,.96), rgba(17,19,26,.96)); border: 1px solid var(--border); border-radius: 14px; }
.insight-kpi span, .insight-kpi em { display: block; overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.insight-kpi strong { display: block; margin: 5px 0 2px; color: #fff; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.insight-kpi em { color: var(--accent); font-style: normal; font-size: 12px; }
.mini-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.mini-kpi { min-width: 0; padding: 12px; background: rgba(13,14,18,.72); border: 1px solid rgba(52,55,70,.78); border-radius: 12px; }
.mini-kpi span, .mini-kpi em { display: block; overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.mini-kpi strong { display: block; margin: 3px 0 1px; color: #fff; font-size: 22px; line-height: 1.1; }
.mini-kpi em { color: var(--accent); font-style: normal; font-size: 11px; }
.analytics-overview-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .95fr) minmax(260px, .95fr); gap: 14px; margin-bottom: 14px; }
.analytics-report { display: grid; gap: 8px; color: var(--muted); line-height: 1.65; }
.analytics-report p { margin: 0; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.comparison-card { min-width: 0; padding: 10px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); border-radius: 11px; }
.comparison-card span, .comparison-card em, .comparison-card small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.comparison-card span { color: var(--muted); font-size: 12px; }
.comparison-card strong { display: block; margin: 5px 0 2px; color: #fff; font-size: 22px; line-height: 1; }
.comparison-card em { color: var(--muted); font-style: normal; font-weight: 760; }
.comparison-card.up em { color: var(--accent); }
.comparison-card.down em { color: #fca5a5; }
.comparison-card small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.comparison-empty { padding: 18px; color: var(--muted); background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); border-radius: 11px; line-height: 1.6; }
.alert-list { display: grid; gap: 9px; }
.alert-item { display: grid; gap: 4px; width: 100%; padding: 10px 11px; color: var(--muted); background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); border-radius: 11px; text-align: left; }
.alert-item strong, .alert-item span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.alert-item strong { color: #fff; font-size: 13px; }
.alert-item span { font-size: 12px; }
.alert-item.danger { border-color: rgba(239,68,68,.32); background: rgba(239,68,68,.08); }
.alert-item.warning { border-color: rgba(245,158,11,.32); background: rgba(245,158,11,.08); }
.alert-item.ok { border-color: rgba(16,185,129,.28); background: rgba(16,185,129,.07); }
.insight-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .95fr) minmax(260px, .95fr); gap: 14px; align-items: stretch; }
.insight-panel { min-width: 0; padding: 17px; background: rgba(13,14,18,.74); border: 1px solid rgba(52,55,70,.78); border-radius: 16px; }
.insight-panel-large { grid-row: span 2; }
.insight-panel-wide { grid-column: span 2; }
.insight-panel-title { margin-bottom: 14px; color: #fff; font-size: 15px; font-weight: 780; letter-spacing: -.01em; }
.funnel-list { display: grid; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 46px; align-items: center; gap: 12px; padding: 10px 11px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); border-radius: 11px; }
.funnel-row strong, .funnel-row span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.funnel-row strong { color: #fff; font-size: 13px; }
.funnel-row span { color: var(--muted); font-size: 11px; }
.funnel-row em { color: #fff; font-style: normal; font-weight: 800; }
.funnel-row i { color: var(--accent); font-style: normal; text-align: right; font-weight: 760; }
.insight-subchart { margin-top: 12px; }
.insight-panel-title,
.panel-title,
.form-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.insight-panel-title::before,
.panel-title::before,
.form-section-title::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(59,130,246,.13), 0 0 18px rgba(59,130,246,.35);
}
.insight-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.insight-split > div { min-width: 0; }
.insight-split-title { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 750; }
.insight-split .compact-empty { padding: 18px 8px; text-align: center; white-space: nowrap; }
.export-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.panel { margin-top: 20px; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 15px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel-title { font-size: 17px; font-weight: 700; }
.expo-card { padding: 24px; color: #fff; background: var(--primary-dark); border-radius: 16px; }
.expo-card-top { margin-bottom: 12px; }
.expo-name { font-size: 22px; font-weight: 700; }
.expo-meta { margin-top: 9px; color: rgba(255,255,255,.7); }

.table-wrap { overflow: auto; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 850px; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
th { color: var(--muted); background: #fafbfd; font-size: 12px; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 12px; }
.status.approved, .status.published { color: var(--success); background: #e9f7f0; }
.status.pending { color: #a85a20; background: #fff3e8; }
.status.rejected { color: #a83b32; background: #fff0ed; }
.status.draft { color: var(--muted); background: #eef1f5; }
.status.active { color: #176044; background: #dff5e9; }
.status.preparing { color: #8b551b; background: #fff0d9; }
.status.archived { color: #536174; background: #e9edf2; }
.expo-card .status.active, .expo-card .status.preparing, .expo-card .status.archived { background: rgba(255,255,255,.14); color: #fff; }
.notice { margin-bottom: 18px; padding: 12px 15px; color: #6e4a18; background: #fff5e5; border: 1px solid #f0d7ad; border-radius: 10px; }
.actions { display: flex; gap: 6px; }
.empty { padding: 60px; text-align: center; color: var(--muted); }
.checkin-metrics { max-width: 760px; }
.checkin-form { display: flex; gap: 10px; }
.checkin-form .search { flex: 1; width: auto; text-transform: uppercase; }
.credential-result { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; padding: 18px; border: 1px solid var(--border); border-left: 5px solid var(--muted); border-radius: 12px; background: #fafbfd; }
.credential-result.valid { border-left-color: var(--success); background: #f2fbf7; }
.credential-result.used { border-left-color: var(--primary); background: var(--primary-pale); }
.credential-result.invalid { border-left-color: #b33a2d; background: #fff6f4; }
.credential-name { font-size: 20px; font-weight: 700; }
.credential-meta { margin-top: 4px; color: var(--muted); }
.credential-code { margin-top: 10px; color: var(--primary-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: 1px; }
.service-content-panel { width: 100%; max-width: none; }
.content-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.content-tabs button { padding: 9px 13px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: #fff; }
.content-tabs button.active { color: #fff; border-color: var(--primary); background: var(--primary); }
.content-editor-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 10px 0 12px; }
.content-form { display: grid; gap: 16px; }
.content-form-section { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fbfdff; }
.form-section-title { font-weight: 700; }
.content-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.content-field { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.content-field input, .content-field textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--border); border-radius: 9px; outline: none; color: var(--ink); background: #fff; }
.content-field textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.content-field input:focus, .content-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36,90,154,.12); }
.content-field textarea[data-path$=".desc"], .content-field textarea[data-path$=".a"], .content-field textarea[data-path$=".value"] { grid-column: 1 / -1; }
.repeat-head, .repeat-item-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.repeat-list { display: grid; gap: 12px; margin-top: 12px; }
.repeat-item { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.repeat-item-head { color: var(--primary-dark); font-weight: 700; }
.small-empty { padding: 24px; border: 1px dashed var(--border); border-radius: 12px; background: #fff; }
.editor-tip { margin-top: 10px; color: var(--muted); font-size: 12px; }
.product-image-field { grid-column: 2; }
.product-image-editor { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: start; }
.product-image-preview {
  width: 92px;
  height: 92px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.product-image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-image-preview.is-empty { border-style: dashed; }
.product-image-controls { display: grid; gap: 8px; min-width: 0; }
.product-upload-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.product-upload-row input { flex: 1 1 170px; min-width: 0; }
.exhibitor-products-editor {
  margin-top: 18px;
  background: linear-gradient(180deg, #fbfdff, #f7faff);
}
.exhibitor-products-editor .repeat-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.product-editor-item {
  padding: 16px;
  border-radius: 14px;
}
.product-editor-item .content-form-grid {
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: 14px 16px;
}
.product-editor-item .content-field.full { grid-column: 1; }
.product-editor-item .product-image-field { grid-column: 2; grid-row: 1 / span 2; }
.product-editor-item .product-image-editor { grid-template-columns: 132px minmax(0, 1fr); gap: 12px; }
.product-editor-item .product-image-preview { width: 132px; height: 132px; }
.product-editor-item .product-upload-row {
  padding: 10px;
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(15,30,50,.38); }
.modal { position: relative; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 24px; background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(15,30,50,.25); }
.modal:has(.article-rich-editor) { width: min(920px, 100%); }
.modal:has(.exhibitor-products-editor) { width: min(1040px, 100%); padding: 28px; }
.modal:has(.exhibitor-products-editor) .modal-title { padding-right: 36px; }
.modal:has(.exhibitor-products-editor) .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.modal:has(.exhibitor-products-editor) .field.full { grid-column: 1 / -1; }
.modal:has(.exhibitor-products-editor) .field textarea { min-height: 118px; }
.modal.admin-edit-modal:has(.exhibitor-products-editor) {
  width: min(980px, 100%);
  padding: 0;
}
.admin-edit-modal,
.exhibitor-edit-modal {
  width: min(980px, 100%);
  max-height: 92vh;
  padding: 0;
  background: #f6f9fd;
  scrollbar-width: none;
}
.exhibitor-edit-modal { width: min(980px, 100%); }
.admin-edit-modal::-webkit-scrollbar,
.exhibitor-edit-modal::-webkit-scrollbar { width: 0; height: 0; display: none; }
.admin-edit-modal .modal-close,
.exhibitor-edit-modal .modal-close { right: 18px; top: 18px; }
.admin-edit-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 32px 22px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.modal-kicker {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}
.admin-edit-header .modal-title { margin: 0; padding-right: 42px; font-size: 24px; }
.admin-edit-body {
  display: grid;
  gap: 18px;
  padding: 22px 32px 0;
}
.admin-edit-body.single-column { grid-template-columns: 1fr; }
.admin-edit-section,
.exhibitor-edit-section {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(21,62,112,.04);
}
.admin-edit-modal .content-form-section {
  margin-top: 0;
  padding: 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(21,62,112,.04);
}
.admin-edit-modal .article-rich-editor,
.admin-edit-modal .activity-experience-editor { margin-top: 0; }
.admin-section-head,
.exhibitor-section-head {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-title-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.section-title-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7b4f12;
  background: linear-gradient(180deg, #fff5db, #f8df9d);
  border: 1px solid #ecc56e;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(218,169,78,.18);
  font-size: 15px;
  font-weight: 800;
}
.section-title-line .form-section-title,
.admin-section-head .form-section-title,
.exhibitor-section-head .form-section-title { line-height: 1.25; }
.exhibitor-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.exhibitor-section-grid .span-2 { grid-column: 1 / -1; }
.exhibitor-section-grid .tall textarea { min-height: 150px; }
.exhibitor-edit-section.content-heavy textarea { min-height: 110px; }
.exhibitor-edit-modal .exhibitor-products-editor {
  margin: 0;
  padding: 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(21,62,112,.04);
}
.admin-edit-actions,
.exhibitor-edit-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 22px;
  padding: 16px 32px;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.admin-edit-actions .button,
.exhibitor-edit-actions .button { min-width: 118px; }
.modal-title { margin-bottom: 18px; font-size: 19px; font-weight: 700; }
.modal-close { position: absolute; right: 16px; top: 14px; width: 32px; height: 32px; border: 0; border-radius: 10px; color: var(--muted); background: #f3f6fa; font-size: 22px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--primary-dark); background: #e8eef7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--border); border-radius: 9px; outline: none; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.inline-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); gap: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.confirm-backdrop { z-index: 35; }
.confirm-modal {
  position: relative;
  width: min(460px, 100%);
  padding: 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(15,30,50,.28);
}
.confirm-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #b33a2d;
  background: #fff0ed;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 800;
}
.confirm-mark.primary {
  color: var(--primary-dark);
  background: var(--primary-pale);
}
.confirm-modal .modal-title { margin-bottom: 8px; }
.confirm-actions { margin-top: 26px; }
.confirm-actions .button { min-width: 96px; }
.permission-block { margin-top: 18px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fbfdff; }
.permission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 12px; }
.check-row { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.option-editor { padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.option-editor-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; color: #fff; font-weight: 750; }
.option-editor-head em { color: var(--dim); font-style: normal; font-size: 12px; font-weight: 600; }
.option-tags { min-height: 42px; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; padding: 10px; background: rgba(255,255,255,.025); border: 1px dashed var(--border); border-radius: 12px; }
.option-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 9px 7px 12px; color: #dbeafe; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.32); border-radius: 999px; font-size: 13px; font-weight: 650; }
.option-tag button { width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0; color: #93c5fd; background: rgba(59,130,246,.18); border: 0; border-radius: 50%; line-height: 1; }
.option-tag button:hover { color: #fff; background: rgba(239,68,68,.72); }
.option-empty { color: var(--dim); font-size: 13px; }
.option-add-row { display: flex; gap: 8px; margin-top: 10px; }
.option-add-row input { flex: 1; min-width: 0; padding: 9px 11px; color: var(--ink); background: var(--panel); border: 1px solid var(--border); border-radius: 10px; outline: none; }
.option-add-row input:focus { border-color: rgba(59,130,246,.75); box-shadow: 0 0 0 3px rgba(59,130,246,.14); }
.upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border: 1px dashed var(--border); border-radius: 12px; background: #fbfdff; }
.upload-row input { flex: 1 1 220px; max-width: 100%; }
.upload-row .button { flex: 0 0 auto; }
.content-feed-helper { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); gap: 14px; }
.content-feed-tips, .content-feed-preview { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fbfdff; }
.tip-title, .preview-label { margin-bottom: 10px; font-weight: 700; color: var(--ink); }
.tip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; color: var(--muted); font-size: 13px; }
.tip-grid div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tip-grid strong { color: var(--ink); }
.content-feed-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preview-frame { height: 150px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 10px; background: #0f172a; }
.preview-frame img, .preview-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-frame.is-empty { background: #f8fafc; }
.content-cover-button { width: 100%; margin-top: 10px; }
.article-rich-editor { margin-top: 16px; }
.article-rich-editor .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.article-block-item, .article-attachment-item { margin-top: 12px; }
.article-block-text textarea { min-height: 96px; }
.compact-upload { margin-top: 12px; padding: 10px; background: #f8fafc; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 40; padding: 12px 16px; color: #fff; background: var(--ink); border-radius: 10px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--primary-dark); }
.login-card { width: min(410px, 100%); padding: 34px; background: #fff; border-radius: 18px; box-shadow: 0 28px 80px rgba(0,0,0,.22); }
.login-card .brand-mark { color: var(--primary); }
.login-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.login-brand .app-logo { width: 34px; height: 34px; }
.login-title { margin-top: 10px; font-size: 25px; font-weight: 700; }
.login-copy { margin: 6px 0 24px; color: var(--muted); }
.login-card .field { margin-top: 14px; }
.login-card .button { width: 100%; margin-top: 22px; }

/* ChronoFlow-style dark admin skin */
.topbar {
  position: static;
  z-index: auto;
  margin: 0;
  padding: 0;
  min-width: 0;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}
.page-title { color: var(--ink); font-size: 24px; font-weight: 780; letter-spacing: -.02em; }
.page-subtitle { color: var(--muted); }
.admin-badge, .expo-selector select, .toolbar select, .toolbar input[type="date"], .search,
.field input, .field select, .field textarea,
.content-field input, .content-field select, .content-field textarea {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border);
}
.expo-selector select,
.toolbar select,
.field select,
.content-field select {
  min-height: 42px;
  padding-right: 38px;
  color: var(--ink);
  color-scheme: dark;
  appearance: none;
  background-color: var(--surface);
  background-image:
    linear-gradient(45deg, transparent 50%, #dbeafe 50%),
    linear-gradient(135deg, #dbeafe 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
}
.expo-selector select:hover,
.toolbar select:hover,
.field select:hover,
.content-field select:hover,
.toolbar input[type="date"]:hover,
.field input:hover,
.field textarea:hover,
.content-field input:hover,
.content-field textarea:hover,
.search:hover {
  border-color: var(--line);
}
.expo-selector select option,
.toolbar select option,
.field select option,
.content-field select option {
  color: var(--ink);
  background: var(--panel);
}
.toolbar input[type="date"],
.field input[type="date"],
.field input[type="time"] {
  color-scheme: dark;
}
.toolbar input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: .75;
  filter: invert(1);
}
input[type="file"] {
  min-width: 0;
  color: var(--ink);
  color-scheme: dark;
}
input::placeholder,
textarea::placeholder {
  color: var(--dim);
  opacity: 1;
}
input[type="file"]::file-selector-button {
  min-height: 38px;
  margin-right: 10px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}
input[type="file"]::file-selector-button:hover {
  color: #fff;
  border-color: var(--line);
  background: rgba(59,130,246,.16);
}
input[type="file"]::-webkit-file-upload-button {
  min-height: 38px;
  margin-right: 10px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}
input[type="file"]::-webkit-file-upload-button:hover {
  color: #fff;
  border-color: var(--line);
  background: rgba(59,130,246,.16);
}
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
  color-scheme: dark;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: rgba(59,130,246,.78);
  box-shadow: 0 0 0 3px rgba(59,130,246,.16);
}
input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  color: var(--dim);
  background-color: rgba(255,255,255,.035);
  border-color: rgba(52,55,70,.7);
}
.admin-badge { color: var(--muted); background: var(--panel); transition: .18s ease; }
.admin-badge:hover { color: #fff; border-color: var(--line); }
.expo-selector { color: var(--muted); }
.button { border: 1px solid transparent; transition: .18s ease; }
.button.primary { color: #fff; background: var(--primary-dark); box-shadow: var(--glow-blue); }
.button.primary:hover { background: var(--primary); transform: translateY(-1px); }
.button.secondary { color: var(--muted); background: var(--panel); border-color: var(--border); }
.button.secondary:hover { color: #fff; border-color: var(--line); background: var(--panel-raised); }
.button.danger { color: #fca5a5; background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.18); }
.button.ghost:hover { color: #fff; border-color: var(--line); background: rgba(255,255,255,.04); }
.metric, .todo-card, .panel, .table-wrap, .content-form-section, .repeat-item,
.permission-block, .check-row, .upload-row, .credential-result,
.product-image-preview, .small-empty {
  color: var(--ink);
  background: rgba(26,27,35,.94);
  border-color: var(--border);
  box-shadow: var(--shadow-panel);
}
.metric { position: relative; overflow: hidden; }
.metric::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.16), transparent 70%);
}
.metric-value { color: #fff; letter-spacing: -.03em; }
.metric-note, .todo-card strong { color: var(--accent); }
.todo-card:hover { transform: translateY(-2px); border-color: var(--line); background: var(--panel-raised); }
.panel { backdrop-filter: blur(10px); }
.panel-title, .form-section-title, .bar-value, .credential-name { color: #fff; }
.section-title-icon {
  color: var(--primary);
  background: rgba(59,130,246,.13);
  border: 1px solid rgba(59,130,246,.25);
  box-shadow: var(--glow-blue);
}
.expo-card {
  background:
    radial-gradient(circle at 88% 12%, rgba(59,130,246,.26), transparent 210px),
    linear-gradient(145deg, #141826, #1f2937);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
}
.table-wrap { box-shadow: var(--shadow-panel); }
table { color: var(--ink); }
th, td { border-bottom-color: var(--border); }
th { color: var(--muted); background: #121318; }
tr:hover td { background: rgba(255,255,255,.018); }
.status { border: 1px solid currentColor; }
.status.approved, .status.published, .status.active { color: var(--success); background: rgba(16,185,129,.1); }
.status.pending, .status.preparing { color: var(--warning); background: rgba(245,158,11,.1); }
.status.rejected { color: #f87171; background: rgba(239,68,68,.1); }
.status.draft, .status.archived { color: var(--muted); background: rgba(156,163,175,.1); }
.notice { color: #fbbf24; background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.25); }
.bar-track { background: #111827; }
.bar-track span { background: linear-gradient(90deg, var(--primary-dark), var(--accent)); box-shadow: 0 0 22px rgba(59,130,246,.22); }
.empty, .compact-empty, .small-empty { color: var(--muted); }
.modal-backdrop { background: rgba(0,0,0,.58); backdrop-filter: blur(10px); }
.modal, .confirm-modal, .admin-edit-modal, .exhibitor-edit-modal {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 28px 90px rgba(0,0,0,.5);
}
.admin-edit-header, .admin-edit-actions, .exhibitor-edit-actions {
  background: rgba(26,27,35,.94);
  border-color: var(--border);
}
.admin-edit-section, .exhibitor-edit-section, .exhibitor-edit-modal .exhibitor-products-editor,
.article-block-item, .article-attachment-item, .compact-upload {
  background: var(--panel-raised);
  border-color: var(--border);
  box-shadow: none;
}
.admin-edit-modal .content-form-section,
.content-feed-tips,
.content-feed-preview,
.compact-upload,
.product-editor-item .product-upload-row {
  color: var(--ink);
  background: var(--panel-raised);
  border-color: var(--border);
  box-shadow: none;
}
.content-feed-tips,
.content-feed-preview {
  background: linear-gradient(180deg, rgba(32,34,45,.96), rgba(26,27,35,.96));
}
.tip-title,
.preview-label,
.tip-grid strong {
  color: #fff;
}
.preview-frame.is-empty,
.small-empty {
  color: var(--muted);
  background: var(--surface);
}
.preview-frame {
  border-color: var(--border);
}
.modal-close { color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.modal-close:hover { color: #fff; background: var(--panel-raised); }
.field label, .content-field, .content-field span { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus,
.content-field input:focus, .content-field select:focus, .content-field textarea:focus,
.toolbar select:focus, .toolbar input[type="date"]:focus,
.expo-selector select:focus, .search:focus {
  border-color: rgba(59,130,246,.75);
  box-shadow: 0 0 0 3px rgba(59,130,246,.14);
}
.product-upload-row, .repeat-item, .permission-grid .check-row { background: var(--surface); }
.product-image-preview { background: #111318; box-shadow: none; }
.confirm-mark.primary { color: var(--primary); background: rgba(59,130,246,.14); }
.confirm-mark { color: #f87171; background: rgba(239,68,68,.12); }
.toast { background: var(--panel-raised); border: 1px solid var(--border); box-shadow: var(--shadow-panel); }
.login-page {
  background:
    radial-gradient(circle at 50% 12%, rgba(59,130,246,.2), transparent 260px),
    var(--surface);
}
.login-card { color: var(--ink); background: var(--panel); border: 1px solid var(--border); box-shadow: 0 28px 90px rgba(0,0,0,.46); }
.login-card .brand-mark { color: var(--primary); }

@media (max-width: 1280px) {
  .analytics-overview-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr); }
  .analytics-overview-grid .insight-panel:first-child { grid-column: 1 / -1; }
  .insight-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, .92fr); }
  .insight-panel-wide { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .insight-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .app-topbar { grid-template-columns: 1fr; align-items: flex-start; padding: 14px 16px; }
  .workspace { display: block; min-height: auto; overflow: visible; }
  .icon-dock { display: none; }
  .sidebar { position: static; width: auto; display: block; border-right: 0; border-bottom: 1px solid var(--border); }
  .sidebar-foot { display: none; }
  .nav { display: flex; gap: 8px; overflow: auto; }
  .nav-group { flex: 0 0 auto; min-width: 190px; }
  .nav-subnav { padding-left: 0; }
  .main { padding: 20px 16px 40px; overflow: visible; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .insight-board { padding: 16px; }
  .insight-board-head { align-items: flex-start; flex-direction: column; }
  .dashboard-range { align-items: stretch; flex-direction: column; }
  .dashboard-range label { min-width: 0; }
  .dashboard-range em { margin-left: 0; text-align: center; }
  .insight-kpi-grid { grid-template-columns: 1fr 1fr; }
  .analytics-overview-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr 1fr; }
  .insight-layout { grid-template-columns: 1fr; }
  .insight-panel-large, .insight-panel-wide { grid-column: auto; grid-row: auto; }
  .insight-split { grid-template-columns: 1fr; }
  .topbar, .topbar-actions { align-items: flex-start; flex-direction: column; }
  .checkin-form, .credential-result, .content-editor-head, .repeat-head, .repeat-item-head { align-items: stretch; flex-direction: column; }
  .content-form-grid { grid-template-columns: 1fr; }
  .content-feed-helper, .content-feed-preview-grid, .tip-grid { grid-template-columns: 1fr; }
  .modal:has(.exhibitor-products-editor) { padding: 22px; }
  .modal:has(.exhibitor-products-editor) .form-grid { grid-template-columns: 1fr; }
  .modal.admin-edit-modal:has(.exhibitor-products-editor) { padding: 0; }
  .admin-edit-modal,
  .exhibitor-edit-modal { padding: 0; }
  .admin-edit-header,
  .admin-edit-body { padding-left: 18px; padding-right: 18px; }
  .admin-edit-header {
    display: grid;
    gap: 14px;
  }
  .exhibitor-section-grid { grid-template-columns: 1fr; }
  .exhibitor-edit-modal .exhibitor-products-editor { margin-left: 18px; margin-right: 18px; }
  .admin-edit-actions,
  .exhibitor-edit-actions { padding-left: 18px; padding-right: 18px; }
  .product-image-field { grid-column: auto; }
  .product-editor-item .content-form-grid { grid-template-columns: 1fr; }
  .product-editor-item .content-field.full,
  .product-editor-item .product-image-field { grid-column: auto; grid-row: auto; }
  .product-image-editor { grid-template-columns: 1fr; }
  .product-image-preview { width: 100%; height: 150px; }
  .product-editor-item .product-image-editor { grid-template-columns: 1fr; }
  .product-editor-item .product-image-preview { width: 100%; height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .dashboard-recent-track {
    animation: none !important;
  }
  .button.primary:hover,
  .todo-card:hover {
    transform: none;
  }
}
