:root {
  font-family: Inter, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #1e1b3a;
  background: #f4f5fb;
  color-scheme: light;
  --accent: #6d3df2;
  --accent-hover: #5829dc;
  --mint: #16b89f;
  --danger: #d63d5a;
  --warn: #d97706;
  --line: #e5e7f2;
  --muted: #6e738f;
  --soft: #efeaff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 92% 6%, #ebe2ff88 0, transparent 36%),
    radial-gradient(circle at 8% 92%, #dcfaf377 0, transparent 38%),
    #f4f5fb;
}
button, input, select, textarea { font: inherit; }
button {
  border: 1px solid #dcdff0;
  border-radius: 11px;
  background: #fff;
  color: #3f4464;
  padding: 9px 14px;
  cursor: pointer;
  line-height: 1.4;
  font-weight: 550;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
}
button:hover:not(:disabled) {
  background: #f7f4ff;
  border-color: #bcaaf6;
}
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible { outline: 3px solid #cbb9ff; outline-offset: 2px; }
.primary {
  background: linear-gradient(135deg, #8b63ff, var(--accent));
  border-color: var(--accent);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 4px 12px #6d3df22e;
}
.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #7c51fc, var(--accent-hover));
  border-color: var(--accent-hover);
  color: #fff;
}
.danger {
  background: #fff1f4;
  border-color: #f6c6d0;
  color: var(--danger);
  font-weight: 650;
}
.danger:hover:not(:disabled) { background: #ffe4ea; border-color: #eb9aab; }
.accent-ghost {
  background: var(--soft);
  border-color: #d3c3ff;
  color: var(--accent);
  font-weight: 650;
}
#auto-refresh[aria-pressed="true"] {
  background: #e6fbf6;
  border-color: #9de8d9;
  color: #0e7c6b;
  font-weight: 650;
}
input, select, textarea {
  width: 100%;
  display: block;
  min-height: 41px;
  margin-top: 7px;
  padding: 9px 12px;
  border: 1px solid #dcdff0;
  border-radius: 10px;
  background: #fff;
  color: #1e1b3a;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #c5b1ff;
  border-color: var(--accent);
  outline-offset: 1px;
}
textarea { resize: vertical; }
label { display: block; font-size: 13px; font-weight: 550; line-height: 1.6; margin: 16px 0 8px; }
[hidden] { display: none !important; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin: 6px 0; }
h2 { font-size: 16.5px; font-weight: 750; margin: 0 0 12px; line-height: 1.5; }
h3.sub-heading { font-size: 13px; font-weight: 700; color: #464b6b; margin: 18px 0 10px; }
p { line-height: 1.68; }
.muted { color: var(--muted); line-height: 1.68; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; color: #8c80b8; margin: 0; }

.shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
  border-right: 1px solid var(--line);
  padding: 26px 16px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px;
  font-size: 18px;
  font-weight: 800;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #9d78ff, #6d3df2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 22px;
  box-shadow: 0 6px 16px #6d3df238;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: .5px;
}
.nav-caption { font-size: 11px; font-weight: 650; color: #9499b3; margin: 28px 12px 10px; letter-spacing: .5px; }
nav { display: grid; gap: 5px; }
nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: left;
  background: transparent;
  padding: 11px 13px;
  color: #555b7a;
}
nav button svg { width: 18px; height: 18px; flex-shrink: 0; }
nav button span { flex: 1; }
nav button.active {
  color: var(--accent);
  background: linear-gradient(135deg, #f3eeff, #eae2ff);
  border-color: #dfd3ff;
  font-weight: 700;
  box-shadow: 0 3px 10px #6d3df212;
}
nav button:hover:not(.active) { background: #f6f4fd; }
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 750;
  background: var(--accent);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.nav-badge.danger { background: var(--danger); }
.nav-badge.warning { background: #e87a24; }

.aside-bottom { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 6px 0; }
.identity-card {
  background: #f7f5ff;
  border: 1px solid #e7e0fc;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.identity-card p { font-size: 12px; margin: 6px 0 0; font-weight: 600; color: #393d5c; }
.aside-bottom > button { width: 100%; font-size: 12px; }

main { width: 100%; max-width: 1920px; min-width: 0; margin: 0 auto; padding: 28px clamp(18px, 2.6vw, 42px); }
header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
header .muted { font-size: 12.5px; margin: 4px 0 0; }
.header-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.header-actions > p { margin: 0; font-size: 11.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar-actions button { font-size: 12.5px; padding: 8px 13px; white-space: nowrap; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 6px 20px #231e4d08;
}
.panel > p { font-size: 12.5px; color: var(--muted); margin-top: 0; }
#content > .panel + .panel, #content > .metrics + .panel, #content > .sla-banner + .metrics { margin-top: 18px; }
footer { font-size: 11.5px; color: #8c92ab; line-height: 1.75; margin: 26px 0 8px; max-width: 980px; }

#notice:empty, #decision-notice:empty { display: none; }
#notice, #decision-notice {
  font-size: 13px;
  line-height: 1.65;
  padding: 12px 16px;
  border: 1px solid #dfd3ff;
  border-radius: 12px;
  color: #503795;
  background: #f5f0ff;
  margin-bottom: 18px;
  font-weight: 550;
}
#notice[data-tone=error], #decision-notice[data-tone=error] { background: #fff1f3; border-color: #f6cdd5; color: #b4233c; }
#notice[data-tone=success], #decision-notice[data-tone=success] { background: #ecfdf5; border-color: #bbf0d5; color: #136f46; }

.login {
  max-width: 440px;
  margin: 44px auto;
  padding: 32px;
  border-radius: 22px;
  box-shadow: 0 18px 46px #3a238214;
}
.login h2 { font-size: 24px; margin: 16px 0 6px; }
.login .primary { width: 100%; margin-top: 18px; min-height: 44px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--soft); color: var(--accent); }

.sla-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #ffffff 0%, #f6f1ff 55%, #ebfbf7 100%);
  border-color: #d8cbff;
}
.sla-banner h2 { margin-bottom: 6px; color: #2c1c6b; }
.sla-banner p { margin: 0; font-size: 12.5px; color: #545979; }
.sla-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.metric {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: 136px;
  padding: 18px 20px;
  overflow: hidden;
}
.metric p { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0; }
.metric strong { display: block; font-size: 31px; font-weight: 800; letter-spacing: -1px; margin: 8px 0; font-variant-numeric: tabular-nums; color: #1e1b3a; }
.metric small { display: block; font-size: 11.5px; color: var(--muted); margin-top: auto; line-height: 1.5; }
.metric.clickable:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #4527a014; border-color: #cabaff; }
.metric.clickable small:last-child { color: var(--accent); font-weight: 600; }
.metric.priority { border-top: 3px solid #8f6bff; }
.metric.priority strong { color: var(--accent); }
.metric.attention { border-top-color: var(--danger); background: linear-gradient(180deg, #fff8f9, #fff); }
.metric.attention strong { color: var(--danger); }

.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.overview-grid p { font-size: 12.5px; color: var(--muted); }
.todo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  margin: 8px 0;
  padding: 12px 15px;
  border-radius: 12px;
}
.todo-row strong { font-size: 15.5px; color: var(--accent); font-weight: 750; }
.top-gap { margin-top: 14px; }

.trend { display: flex; align-items: flex-end; justify-content: space-around; gap: 10px; min-height: 176px; padding-top: 14px; }
.trend-column { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: center; gap: 8px; }
.trend-column strong { font-size: 11px; color: #474d6b; font-variant-numeric: tabular-nums; }
.trend-column small { font-size: 10.5px; color: var(--muted); }
.trend-svg { width: 34px; height: 102px; display: block; overflow: visible; }
.bar-post { fill: #7c51fc; }
.bar-reg { fill: #18b89f; }

.seg-svg { display: block; width: 100%; height: 12px; border-radius: 99px; overflow: hidden; background: #eef0f7; margin: 14px 0 12px; }
.seg-male { fill: #3b82f6; }
.seg-female { fill: #ec4899; }
.seg-other { fill: #8b5cf6; }
.stat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.stat-pill { font-size: 12px; padding: 6px 12px; border-radius: 99px; background: #f8f7fd; border: 1px solid #e4e0f5; color: #3c4062; }
.stat-pill.static { display: inline-flex; align-items: center; }
.mbti-rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.mbti-rank-item { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: #faf9fe; border: 1px solid #eae6f8; text-align: left; }
.mbti-rank-head { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.mbti-rank-head strong { font-size: 12.5px; color: #2b2f4c; }
.mini-bar-svg { display: block; width: 100%; height: 6px; border-radius: 99px; overflow: hidden; }
.mini-bar-bg { fill: #ece9f8; }
.mini-bar-fg { fill: #7c51fc; }

.viral-funnel-list, .viral-top-list { display: grid; gap: 11px; margin-top: 10px; }
.viral-stage { padding: 10px 12px; border-radius: 12px; background: #faf9fe; border: 1px solid #ece8f8; }
.viral-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; width: 100%; }
.viral-stage-head > span { font-size: 12.5px; font-weight: 650; color: #2f3454; }
.viral-stage-head strong { font-size: 14px; font-weight: 800; color: #1e1b3a; font-variant-numeric: tabular-nums; }
.viral-bar-svg { display: block; width: 100%; height: 7px; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.viral-bar-bg { fill: #ece9f8; }
.viral-bar-uv { fill: #7c51fc; }
.viral-bar-play { fill: #ec4899; }
.viral-bar-click { fill: #f59e0b; }
.viral-bar-claim { fill: #16b89f; }
.top-share-item { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; width: 100%; padding: 11px 13px; border-radius: 12px; background: #faf9fe; border: 1px solid #eae6f8; text-align: left; }
.top-share-item small { font-size: 11.5px; color: var(--muted); }

.mbti-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 750; letter-spacing: .3px; }
.mbti-pill.nf { background: #e3fbf5; color: #0e7c6b; }
.mbti-pill.nt { background: #efe7ff; color: #602ee6; }
.mbti-pill.sj { background: #e5f3ff; color: #1b64c9; }
.mbti-pill.sp { background: #ffedf3; color: #c73b6f; }
.mbti-pill.neutral { background: #eef0f6; color: #5b627d; }

.list-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.list-shortcuts:empty { display: none; }
.list-shortcuts button { border-radius: 99px; font-size: 12px; padding: 7px 14px; }
.list-shortcuts button[aria-pressed=true] {
  background: var(--soft);
  border-color: #c6b2ff;
  color: var(--accent);
  font-weight: 700;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: flex-end;
  padding: 15px 16px;
  margin: 14px 0;
  background: #f8f9fd;
  border-radius: 13px;
  border: 1px solid #eceef7;
}
.filters input, .filters select { width: auto; min-width: 0; margin: 0; height: 38px; min-height: 38px; font-size: 12px; }
.filters > input { flex: 1; min-width: 200px; }
.filters select { max-width: 210px; flex: 0 1 auto; }
.filters button { height: 38px; font-size: 12px; flex-shrink: 0; }
.filters > .primary { width: auto; margin: 0; }
.date-filter { margin: 0; font-size: 11px; color: var(--muted); }
.filters .date-filter input { width: 142px; margin-top: 4px; }

.batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #f5f0ff, #ebfbf7);
  border: 1px solid #d7c9ff;
}
.batch-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 260px; flex-wrap: wrap; }
.batch-left strong { font-size: 12.5px; color: #392480; white-space: nowrap; }
.batch-left input { flex: 1; min-width: 200px; margin: 0; height: 36px; min-height: 36px; font-size: 12px; }
.batch-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.batch-actions button { font-size: 12px; padding: 7px 12px; }
.row-check { width: 17px; height: 17px; min-height: 0; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }

.table-wrap { width: 100%; max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 13px; margin-top: 12px; max-height: 68vh; }
table { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; white-space: normal; }
th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #666c88;
  padding: 12px 14px;
  background: #f8f9fd;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 14px;
  border-bottom: 1px solid #eff1f7;
  font-size: 12px;
  line-height: 1.75;
  max-width: 390px;
  overflow-wrap: anywhere;
  vertical-align: top;
}
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #faf9ff; }
td:last-child { white-space: nowrap; }
td button { padding: 6px 11px; font-size: 12px; color: var(--accent); }

.identity-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.account-identity strong { font-size: 13px; color: #242746; }
.account-identity small { display: block; font-family: monospace; font-size: 10.5px; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
.account-meta-cell strong { display: block; font-size: 12.5px; }
.account-meta-cell small, .account-activity small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.account-activity span { display: block; font-weight: 600; color: #2e3352; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.account-status .status { display: table; margin-bottom: 5px; }
.account-count { display: inline-block; font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 12px; }
.account-list table { min-width: 1120px; }
.account-list td:last-child, .account-list th:last-child {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -4px 0 8px #252a4208;
  z-index: 1;
}
.account-list th:last-child { z-index: 2; background: #f8f9fd; }
.account-list td:nth-child(4), .account-list td:nth-child(5) { font-variant-numeric: tabular-nums; min-width: 155px; }
.registration-cell small { display: block; color: var(--muted); font-size: 11px; min-width: 145px; }

.storage-inventory table { min-width: 1100px; }
.row-content { min-width: 160px; }
.row-content strong { font-size: 13px; }
.row-content p {
  margin: 6px 0;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-width: 400px;
}
.row-content small { display: block; font-size: 10.5px; color: #8c92ab; margin-bottom: 5px; }
.row-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.row-actions button:first-child { background: var(--soft); border-color: #dfd4ff; font-weight: 650; }
.row-actions button + button { color: #565c7a; font-size: 11.5px; }

.status {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 8px;
  border-radius: 6px;
  background: #eef0f7;
  color: #5d647d;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.55;
  margin: 2px 5px 2px 0;
  white-space: nowrap;
}
.status.approved { background: #e8f8ef; color: #1f7a49; }
.status.pending { background: #fff4df; color: #a86b14; }
.status.error, .status.rejected { background: #ffeef1; color: #be2e49; }

.waiting { display: block; color: #a77631; font-size: 11px; margin-top: 4px; font-weight: 600; }
.waiting.overdue { color: var(--danger); font-weight: 700; }

.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pager span { margin-right: auto; font-size: 12px; color: var(--muted); }
.pager button { font-size: 12px; padding: 7px 12px; }
.pager select { width: auto; margin: 0; min-height: 35px; font-size: 12px; }
.page-jump { display: flex; gap: 6px; align-items: center; }
.page-jump input { width: 68px; min-height: 35px; margin: 0; padding: 6px; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 52px 20px;
  background: #fafbfe;
  border: 1px dashed #dce0ee;
  border-radius: 13px;
  line-height: 1.8;
}
.empty strong { display: block; font-size: 15px; color: #4e5470; margin-bottom: 6px; }
.empty > button { display: block; margin: 14px auto 0; }

.settings { display: grid; gap: 18px; }
.configuration-status { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.settings-layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); align-items: start; gap: 18px; }
.settings-shortcuts { display: grid; gap: 6px; position: sticky; top: 20px; }
.settings-shortcuts button { text-align: left; border: 0; background: transparent; padding: 12px 14px; font-size: 13px; }
.settings-shortcuts button.active { color: var(--accent); background: var(--soft); font-weight: 700; }
.settings-panels { min-width: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; align-items: start; }
.settings-grid label { margin: 0; min-width: 0; }
.field-title { display: block; min-height: 40px; }
.settings-grid .checkbox { align-self: center; background: #f8f9fc; padding: 14px; border-radius: 10px; }
.settings .config-help { font-size: 12px; line-height: 1.85; padding: 14px 16px; background: #f6f3ff; color: #6d5e8a; border-radius: 11px; margin-top: 22px; }
.settings-save {
  position: sticky;
  bottom: 14px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 20px;
  align-items: end;
  box-shadow: 0 8px 30px #241f4b18;
}
.settings-save label { margin: 0; }
.settings-save > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 11.5px; }
.settings-save button { height: 42px; }
.settings-change-count { display: block; color: var(--accent); font-size: 11.5px; margin-top: 6px; font-weight: 600; }

.checkbox { display: flex; align-items: center; gap: 9px; font-weight: 500; cursor: pointer; }
.checkbox input { display: inline-block; width: 16px; height: 16px; min-height: 0; margin: 0; flex-shrink: 0; accent-color: var(--accent); }
.highlight-box { background: #f5f1ff; border: 1px solid #ddd0ff; padding: 11px 14px; border-radius: 11px; }
.danger-box { background: #fff2f4; border: 1px solid #f7cad3; color: #a6263f; padding: 11px 14px; border-radius: 11px; font-weight: 650; }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }
.quick-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.quick-reasons button { font-size: 11.5px; background: var(--soft); color: var(--accent); border-color: #dfd3ff; padding: 6px 11px; }

dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  width: min(740px, 94vw);
  max-height: 90vh;
  box-shadow: 0 28px 90px #1e153b38;
}
dialog::backdrop { background: #1e20386e; }
#decision-form, .account-dialog { display: flex; flex-direction: column; max-height: 88vh; color: #1e1b3a; }
.dialog-heading { padding: 22px 26px 14px; border-bottom: 1px solid var(--line); }
.dialog-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { font-size: 20px; margin: 6px 0 0; }
.dialog-body { padding: 20px 26px; overflow: auto; min-height: 0; }
.dialog-actions { margin: 0; padding: 15px 26px; border-top: 1px solid var(--line); background: #fff; flex-shrink: 0; }

#evidence {
  white-space: pre-wrap;
  line-height: 1.8;
  background: #f8f9fd;
  border: 1px solid #eceef7;
  padding: 16px 18px;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
#evidence p:first-child { font-size: 15.5px; font-weight: 600; margin-top: 0; color: #242846; }
#evidence small { font-size: 11px; color: var(--muted); }
#evidence img, #evidence video { display: block; width: 100%; max-height: 360px; object-fit: contain; margin: 12px 0; border-radius: 10px; }
#evidence p { font-size: 12.5px; }

.author-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px 14px;
  background: #faf9ff;
  border: 1px solid #e7e1fa;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 600;
}
.author-context button { font-size: 11.5px; padding: 5px 10px; }

.account-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.account-hero h3 { margin: 0; font-size: 20px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.mini-stat { background: #f8f9fd; border: 1px solid #ebedf6; border-radius: 12px; padding: 12px 14px; }
.mini-stat span { display: block; font-size: 11.5px; color: var(--muted); }
.mini-stat strong { display: block; font-size: 22px; font-weight: 800; margin-top: 4px; color: #242846; }
.mini-stat.danger { background: #fff2f4; border-color: #f6cbd4; }
.mini-stat.danger strong { color: var(--danger); }

.account-details {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 11px 20px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
  font-size: 13px;
}
.account-details dt { color: var(--muted); font-weight: 550; }
.account-details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-weight: 600; }
#account-id { font-family: monospace; font-size: 13px; }

#content[aria-busy=true] { opacity: .72; }
.loading { padding: 60px 20px; text-align: center; color: var(--muted); }
.stale-snapshot { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; opacity: .7; }
.stale-snapshot legend { font-size: 12px; color: #ac6634; margin-bottom: 10px; }
.stale-snapshot .filters, .stale-snapshot .pager, .stale-snapshot .list-shortcuts, .stale-snapshot .batch-bar { display: none; }

@media (max-width: 1150px) {
  .shell { grid-template-columns: 210px minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 165px minmax(0, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
  .field-title { min-height: 0; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  aside { position: static; height: auto; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-caption { display: none; }
  nav { display: flex; overflow: auto; gap: 4px; margin-top: 14px; }
  nav button { flex-shrink: 0; white-space: nowrap; padding: 9px 12px; }
  .aside-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 12px 0 0; }
  .identity-card { margin: 0; padding: 6px 10px; }
  .aside-bottom > button { width: auto; }
  main { padding: 20px 16px; }
  .header-actions { align-items: flex-start; width: 100%; }
  .settings-layout, .mbti-rank-grid, .mini-stats { grid-template-columns: minmax(0, 1fr); }
  .settings-shortcuts { position: static; display: flex; overflow: auto; }
  .settings-shortcuts button { flex-shrink: 0; white-space: nowrap; }
  .settings-save { position: static; grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .account-details { grid-template-columns: 1fr; gap: 5px; }
  .account-details dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
