:root {
  color: #ececf5;
  background: #0c0c1c;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  --bg: #0c0c1c;
  --sidebar: #111225;
  --panel: #17182f;
  --panel-soft: #1d1e39;
  --line: rgba(255, 255, 255, .075);
  --muted: #8788a3;
  --accent: #ff4b68;
  --accent-soft: rgba(255, 75, 104, .14);
  --green: #38df8b;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 1100px; min-height: 100vh; background: radial-gradient(circle at 75% -20%, #25204c 0, transparent 36%), var(--bg); }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* 滚动条美化：细圆角、透明轨道，深色区域用浅滑块，浅色面板用深滑块 */
* { scrollbar-width: thin; scrollbar-color: rgba(135, 136, 163, .45) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border-radius: 8px; background: rgba(135, 136, 163, .4); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(135, 136, 163, .65); }
::-webkit-scrollbar-corner { background: transparent; }
.panel, .table-wrap, .custom-select-menu { scrollbar-color: rgba(52, 54, 82, .28) transparent; }
.panel::-webkit-scrollbar-thumb, .panel ::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb, .table-wrap ::-webkit-scrollbar-thumb,
.custom-select-menu::-webkit-scrollbar-thumb { background: rgba(52, 54, 82, .22); }
.panel::-webkit-scrollbar-thumb:hover, .panel ::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:hover, .table-wrap ::-webkit-scrollbar-thumb:hover,
.custom-select-menu::-webkit-scrollbar-thumb:hover { background: rgba(52, 54, 82, .38); }

.login-view { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; }
.login-visual { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 80px; background: radial-gradient(circle at 60% 40%, rgba(255,75,104,.2), transparent 28%), linear-gradient(140deg, #100d2d, #1f1436 54%, #391428); }
.login-visual .brand-mark { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 30px; background: linear-gradient(145deg, #ff6d85, #ea3457); box-shadow: 0 24px 70px rgba(255,75,104,.3); font-size: 48px; font-weight: 800; }
.login-visual h1 { margin: 0 0 8px; font-size: 42px; }
.login-visual p { margin: 0; color: #aaa8bc; font-size: 17px; }
.login-card { width: 390px; align-self: center; justify-self: center; padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: rgba(23,24,47,.88); box-shadow: 0 35px 90px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.login-card h2 { margin: 10px 0 6px; font-size: 30px; }
.login-card > p { margin: 0 0 30px; color: var(--muted); }
.login-card label { display: block; margin: 17px 0; }
.login-card label span { display: block; margin-bottom: 8px; color: #b8b8cb; font-size: 13px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #111226; color: #f4f4fa; transition: border-color .2s, box-shadow .2s; }
input, select { height: 43px; padding: 0 13px; }
textarea { min-height: 95px; padding: 12px 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(255,75,104,.7); box-shadow: 0 0 0 3px rgba(255,75,104,.1); }
.primary-button, .ghost-button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px; }
.primary-button { background: linear-gradient(135deg, #ff5974, #ed3557); box-shadow: 0 9px 24px rgba(255,75,104,.2); color: white; font-weight: 700; }
.login-card .primary-button { width: 100%; height: 46px; margin-top: 12px; }
.ghost-button { border: 1px solid var(--line); background: #1a1b35; color: #b6b6ca; }
.form-error { min-height: 18px; color: #ff758c; font-size: 13px; }

.admin-shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { position: fixed; z-index: 5; inset: 0 auto 0 0; width: 236px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(17,18,37,.96); }
.sidebar-brand { height: 82px; display: flex; align-items: center; gap: 12px; padding: 0 23px; border-bottom: 1px solid var(--line); }
.sidebar-brand > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg,#ff667e,#e93357); font-size: 22px; font-weight: 800; }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand strong { font-size: 16px; }
.sidebar-brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.sidebar nav { flex: 1; padding: 17px 12px; overflow: auto; }
.sidebar nav button { width: 100%; height: 43px; display: flex; align-items: center; gap: 12px; margin: 3px 0; padding: 0 13px; border: 0; border-radius: 10px; background: transparent; color: #9091a9; text-align: left; }
.sidebar nav button i { width: 20px; color: #777991; font-style: normal; font-size: 17px; text-align: center; }
.sidebar nav button:hover { background: rgba(255,255,255,.04); color: white; }
.sidebar nav button.active { background: var(--accent-soft); color: #ff7189; font-weight: 700; }
.sidebar nav button.active i { color: #ff7189; }
.nav-caption { padding: 18px 13px 6px; color: #5f6079; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.sidebar-footer { height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-top: 1px solid var(--line); color: #a8a8ba; font-size: 13px; }
.sidebar-footer button { border: 0; background: transparent; color: #686980; font-size: 12px; }

.main-area { grid-column: 2; min-width: 0; }
.topbar { height: 96px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(12,12,28,.78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.breadcrumb { margin-bottom: 7px; color: #5f6077; font-size: 11px; }
.breadcrumb span { color: #9293a9; }
.topbar h1 { margin: 0; font-size: 22px; }
.top-actions { display: flex; align-items: center; gap: 15px; }
.server-state { color: #9697ad; font-size: 12px; }
.server-state i { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.content { padding: 28px 34px 50px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat-card { position: relative; min-height: 130px; padding: 23px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, #191a34, #15162b); }
.stat-card::after { position: absolute; right: -25px; bottom: -40px; width: 110px; height: 110px; border-radius: 50%; background: var(--card-glow, rgba(255,75,104,.12)); content: ''; filter: blur(3px); }
.stat-card span { color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; margin-top: 15px; font-size: 30px; }
.stat-card small { position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.045); color: #bbbcd0; font-size: 17px; }
.panel { margin-top: 22px; border: 1px solid var(--line); border-radius: 17px; background: #15162d; }
.panel-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; font-size: 16px; }
.panel-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.panel-actions { display: flex; align-items: center; gap: 10px; }
.search-input { width: 220px; height: 38px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 13px 16px; background: rgba(255,255,255,.018); color: #66677f; font-size: 11px; font-weight: 700; text-align: left; white-space: nowrap; }
td { max-width: 270px; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.05); color: #b5b6ca; vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,.015); }
.cell-main { color: #f0f0f7; font-weight: 650; white-space: nowrap; }
.cell-sub { margin-top: 4px; color: #696a82; font-size: 11px; }
.cell-image { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #252641; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 12px; background: rgba(56,223,139,.1); color: #52df98; font-size: 11px; white-space: nowrap; }
.status-pill.off { background: rgba(139,140,164,.1); color: #8889a1; }
.status-pill.warn { background: rgba(255,182,72,.11); color: #ffb648; }
.row-actions { display: flex; gap: 6px; }
.row-actions button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: #1b1c36; color: #9fa0b8; font-size: 11px; }
.row-actions .danger { color: #f17489; }
.empty-state { padding: 70px 20px; color: #62637c; text-align: center; }

.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 30px; background: rgba(4,4,14,.76); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.modal-card { width: min(760px, 92vw); max-height: 90vh; overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: #17182f; box-shadow: 0 35px 100px rgba(0,0,0,.5); }
.modal-card > header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px 25px; border-bottom: 1px solid var(--line); background: #17182f; }
.modal-card h2 { margin: 6px 0 0; font-size: 21px; }
.modal-card header button { border: 0; background: transparent; color: #77788f; font-size: 27px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; padding: 25px; }
.form-field { min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field > span { display: block; margin-bottom: 8px; color: #9293aa; font-size: 12px; }
.checkbox-field { height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #111226; }
.checkbox-field input { width: 16px; height: 16px; accent-color: var(--accent); }
.image-uploader { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.image-uploader label { height: 43px; display: flex; align-items: center; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: #242541; color: #afb0c4; cursor: pointer; font-size: 12px; }
.image-uploader input[type=file] { display: none; }
.image-preview { width: 100%; height: 140px; margin-top: 9px; border: 1px dashed var(--line); border-radius: 11px; object-fit: contain; background: #111226; }
.modal-card form footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 16px 25px; border-top: 1px solid var(--line); background: #17182f; }
.toast { position: fixed; z-index: 60; right: 25px; bottom: 25px; max-width: 360px; padding: 13px 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: #272843; box-shadow: 0 15px 50px rgba(0,0,0,.35); color: #f4f4f8; font-size: 13px; }

@media (max-width: 1250px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 2026 console theme: a compact component system shared by forms, tables and dialogs. */
:root {
  color: #172033;
  background: #f5f7fb;
  --bg: #f5f7fb;
  --sidebar: #111827;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --line: #e7eaf0;
  --muted: #7b8498;
  --accent: #6d5dfc;
  --accent-soft: rgba(109, 93, 252, .10);
  --green: #16b364;
}

body {
  min-width: 0;
  background: #f5f7fb;
  color: #172033;
}

.login-view {
  grid-template-columns: minmax(420px, 1.15fr) minmax(420px, .85fr);
  background: #f7f8fc;
}

.login-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #111a35 0%, #22204e 55%, #493776 100%);
}

.login-visual::before,
.login-visual::after {
  position: absolute;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  content: '';
}

.login-visual::before { width: 520px; height: 520px; right: -130px; top: -190px; }
.login-visual::after { width: 330px; height: 330px; left: -80px; bottom: -130px; }
.login-visual > * { position: relative; z-index: 1; }
.login-visual .brand-mark { background: linear-gradient(145deg, #8376ff, #6855f5); box-shadow: 0 24px 70px rgba(73,55,214,.45); }
.login-visual h1 { color: #fff; }
.login-visual p { color: rgba(255,255,255,.62); }

.login-card {
  border-color: #e5e8ef;
  background: #fff;
  box-shadow: 0 24px 70px rgba(35, 43, 70, .12);
  color: #172033;
}

.eyebrow { color: var(--accent); }
.login-card > p, .login-card label span { color: var(--muted); }
input, select, textarea { border-color: #dfe3eb; background: #fff; color: #172033; }
input::placeholder, textarea::placeholder { color: #aab0bf; }
input:focus, select:focus, textarea:focus { border-color: #8b7fff; box-shadow: 0 0 0 3px rgba(109,93,252,.1); }
select {
  appearance: none;
  padding-right: 42px;
  background-color: #fff;
  cursor: pointer;
}
select:hover { border-color: #c3bdfd; background-color: #fdfdff; }
select:disabled { background-color: #f2f3f6; color: #9ca3b2; cursor: not-allowed; }
select option { background: #fff; color: #172033; }
input[type="date"], input[type="time"], input[type="datetime-local"] {
  color-scheme: light;
  padding-right: 8px;
  background: linear-gradient(90deg, #fff, #fcfbff);
  font-variant-numeric: tabular-nums;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  margin-left: 8px;
  padding: 7px;
  border-radius: 8px;
  background-color: #f0efff;
  cursor: pointer;
  opacity: .9;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover { background-color: #e7e4ff; opacity: 1; }
.primary-button { background: linear-gradient(135deg, #7768ff, #6252eb); box-shadow: 0 8px 22px rgba(109,93,252,.22); }
.primary-button:hover { filter: brightness(1.04); transform: translateY(-1px); }
.ghost-button { border-color: var(--line); background: #fff; color: #586174; }

.admin-shell { grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { width: 248px; border: 0; background: #111827; box-shadow: 8px 0 26px rgba(22,28,45,.08); }
.sidebar-brand { height: 76px; border-color: rgba(255,255,255,.08); }
.sidebar-brand > span { background: linear-gradient(145deg, #8276ff, #6655ef); box-shadow: 0 8px 22px rgba(74,57,223,.35); color: #fff; }
.sidebar-brand strong { color: #fff; }
.sidebar-brand small { color: #778096; }
.sidebar nav button { height: 44px; color: #8d96aa; transition: .18s ease; }
.sidebar nav button i { color: #6f788c; }
.sidebar nav button:hover { background: rgba(255,255,255,.055); color: #eef0f5; }
.sidebar nav button.active { background: linear-gradient(90deg, rgba(125,109,255,.2), rgba(125,109,255,.07)); color: #c3bcff; }
.sidebar nav button.active::before { width: 3px; height: 22px; margin-left: -13px; border-radius: 0 3px 3px 0; background: #8d80ff; content: ''; }
.sidebar nav button.active i { color: #a89fff; }
.nav-caption { color: #596277; }
.sidebar-footer { border-color: rgba(255,255,255,.08); color: #c0c5d0; }
.sidebar-footer button { color: #7c8495; }
.sidebar-footer button:hover { color: #fff; }

.main-area { grid-column: 2; }
.topbar { height: 88px; padding: 0 32px; border-color: var(--line); background: rgba(255,255,255,.88); box-shadow: 0 1px 0 rgba(21,29,48,.02); }
.breadcrumb { color: #a0a6b4; }
.breadcrumb span { color: #70798d; }
.topbar h1 { color: #1c2538; font-size: 23px; }
.server-state { color: #737c8f; }
.server-state i { box-shadow: none; }
.content { padding: 28px 32px 48px; }

.stat-grid { gap: 20px; }
.stat-card { min-height: 138px; border-color: var(--line); background: #fff; box-shadow: 0 7px 24px rgba(31,40,66,.055); }
.stat-card::after { opacity: .8; }
.stat-card span { color: #7d8698; }
.stat-card strong { position: relative; z-index: 1; color: #172033; }
.stat-card small { background: #f2f1ff; color: var(--accent); }

.panel { overflow: hidden; border-color: var(--line); background: #fff; box-shadow: 0 8px 30px rgba(31,40,66,.05); }
.entity-panel { height: calc(100vh - 164px); min-height: 520px; display: flex; flex-direction: column; }
.entity-panel .table-wrap { min-height: 0; flex: 1 1 0; overflow: auto; }
.entity-panel #pagination-container { flex: 0 0 auto; }
.panel-header { min-height: 82px; padding: 14px 20px; border-color: var(--line); gap: 18px; }
.panel-header h2 { color: #20293b; font-size: 17px; }
.panel-header p { color: #8a92a3; font-size: 12px; }
.panel-title-row { display: flex; align-items: center; gap: 10px; }
.count-chip { padding: 3px 8px; border-radius: 99px; background: #f0efff; color: #6d5dfc; font-size: 11px; }
.panel-actions { flex-wrap: wrap; }
.search-control { position: relative; }
.search-control > span { position: absolute; z-index: 1; top: 8px; left: 12px; color: #9da4b3; font-size: 17px; }
.search-input { width: 230px; height: 40px; padding-left: 36px; background: #f9fafc; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #778095; font-size: 19px; }
.icon-button:hover { border-color: #cac4ff; color: var(--accent); }
.panel-actions .primary-button { height: 40px; }

th { padding: 13px 17px; background: #fafbfc; color: #838b9b; font-size: 11px; }
td { padding: 15px 17px; border-color: #eef0f4; color: #606a7e; }
tr:hover td { background: #fbfbfe; }
.col-index { width: 56px; max-width: 56px; color: #a3a8ba; text-align: center; font-variant-numeric: tabular-nums; }
.cell-main { color: #273044; }
.cell-image { width: 48px; height: 48px; border: 1px solid #eceef3; background: #f3f4f7; }
.cell-avatar, .avatar-fallback { width: 38px; height: 38px; border-radius: 50%; }
.cell-avatar { object-fit: cover; }
.avatar-fallback { display: inline-grid; place-items: center; background: #eeecff; color: #6d5dfc; font-weight: 700; }
.status-pill { background: #eafaf2; color: #15945a; }
.status-pill.off { background: #f1f2f5; color: #8991a0; }
.status-pill.warn { background: #fff6e8; color: #d98218; }
.row-actions button { border-color: #e1e4ea; background: #fff; color: #606b80; }
.row-actions button:hover { border-color: #bdb6ff; color: #6656ec; }
.row-actions .danger { color: #e25b6e; }
.row-actions .danger:hover { border-color: #f0b6bf; background: #fff8f9; color: #d74359; }
.media-link { color: #6656ec; font-weight: 600; text-decoration: none; }
.media-link:hover { text-decoration: underline; }
.empty-state { color: #9aa1af; }
.table-wrap { transition: opacity .18s ease; }
.table-wrap.is-loading { opacity: .42; pointer-events: none; }

.pagination-bar {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: #7b8498;
  font-size: 12px;
}
.pagination-summary strong { color: #465065; font-weight: 700; }
.pagination-pages { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pagination-pages button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #e1e4eb;
  border-radius: 9px;
  background: #fff;
  color: #687286;
  font-size: 13px;
  transition: .16s ease;
}
.pagination-pages button:hover:not(:disabled):not(.active) { border-color: #bdb6ff; background: #f8f7ff; color: #6656ec; }
.pagination-pages button.active { border-color: #6d5dfc; background: #6d5dfc; box-shadow: 0 5px 14px rgba(109,93,252,.2); color: #fff; font-weight: 700; }
.pagination-pages button:disabled { background: #f7f8fa; color: #c0c5cf; cursor: not-allowed; }
.pagination-pages > span { min-width: 22px; color: #a1a8b5; text-align: center; }
.page-size-control { display: flex; align-items: center; justify-content: flex-end; gap: 9px; white-space: nowrap; }
.page-size-control > span { color: #8b93a3; }
.page-size-control select { width: 88px; height: 36px; padding: 0 31px 0 11px; background-position: right 9px center; background-size: 14px; font-size: 12px; }

/* Form controls share the same sizing, including the custom option list. */
.form-field, .form-field > input, .form-field > textarea, .image-uploader { min-width: 0; }
.form-field > textarea { display: block; }
.image-uploader { grid-template-columns: minmax(0, 1fr) auto; }
.image-uploader > input { min-width: 0; }
.readonly-input { display: flex; align-items: center; min-height: 43px; padding: 0 13px; border: 1px solid #e4e7ed; border-radius: 10px; background: #f7f8fc; color: #687286; font-size: 13px; }
.login-method { display: inline-block; padding: 5px 9px; border-radius: 8px; background: #eef0f5; color: #697386; font-size: 11px; white-space: nowrap; }
.login-method.wechat { background: #e8f8ee; color: #168f4c; }
.review-tasks { display: flex; gap: 14px; margin-top: 18px; }
.review-tasks button { flex: 1; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border: 1px solid #e5e3ff; border-radius: 13px; background: #fff; color: #505a70; font-weight: 650; text-align: left; }
.review-tasks button:hover { border-color: #a79cff; background: #faf9ff; }
.review-tasks strong { color: #6655ec; font-size: 22px; }
.review-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px; border-bottom: 1px solid #e7eaf0; }
.review-filters button { min-height: 32px; padding: 0 13px; border: 1px solid #e2e5ec; border-radius: 9px; background: #fff; color: #687286; font-size: 12px; }
.review-filters button.active { border-color: #6d5dfc; background: #f0edff; color: #5d4ce4; font-weight: 700; }
.review-settings-panel { max-width: 900px; margin-top: 0; }
.review-provider { margin: 20px 22px 0; padding: 14px 17px; border: 1px solid #f0dba5; border-radius: 10px; background: #fff9e9; color: #94651c; font-size: 13px; line-height: 1.5; }
.review-provider.ready { border-color: #bce7ca; background: #effaf2; color: #167a42; }
.review-setting-list { padding: 10px 22px; }
.review-setting { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 0; border-bottom: 1px solid #edf0f4; cursor: pointer; }
.review-setting > span { min-width: 0; }
.review-setting strong, .review-setting small { display: block; }
.review-setting strong { color: #263044; font-size: 14px; }
.review-setting small { margin-top: 5px; color: #8992a3; font-size: 12px; line-height: 1.5; }
.review-setting input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.review-setting i { position: relative; flex: none; width: 42px; height: 24px; border-radius: 15px; background: #cbd1dc; transition: background .2s; }
.review-setting i::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; content: ''; transition: transform .2s; }
.review-setting input:checked + i { background: #6d5dfc; }
.review-setting input:checked + i::after { transform: translateX(18px); }
.review-setting input:focus-visible + i { outline: 3px solid rgba(109,93,252,.25); }
.review-setting-note { margin: 0; padding: 0 22px 24px; color: #9299a8; font-size: 12px; line-height: 1.6; }
.review-preview.full, .review-instruction.full { grid-column: 1 / -1; }
.review-preview { display: grid; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid #e7eaf0; }
.review-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.review-meta span { padding: 6px 10px; border-radius: 7px; background: #f2f2ff; color: #5e5a8a; font-size: 12px; }
.auto-review-summary { display: flex; flex-direction: column; gap: 4px; padding: 11px 13px; border-radius: 9px; background: #f5f6f9; color: #6b7280; font-size: 12px; }
.auto-review-summary.safe { background: #ecf9f0; color: #167a42; }
.auto-review-summary.risk { background: #fff0f0; color: #b43042; }
.auto-review-summary.unknown { background: #fff8e9; color: #98681b; }
.media-review-signals { display: flex; flex-wrap: wrap; gap: 7px; }
.media-review-signals span { padding: 6px 9px; border-radius: 7px; background: #f0f1f5; color: #687286; font-size: 11px; }
.media-review-signals .safe { background: #e9f8ee; color: #167a42; }
.media-review-signals .risk { background: #ffecef; color: #b43042; }
.media-review-signals .unknown { background: #fff6e4; color: #98681b; }
.auto-list-pill { display: inline-block; padding: 5px 9px; border-radius: 7px; background: #eef0f4; color: #687286; font-size: 11px; white-space: nowrap; }
.auto-list-pill.safe { background: #e9f8ee; color: #167a42; }
.auto-list-pill.risk { background: #ffecef; color: #b43042; }
.auto-list-pill.unknown { background: #fff6e4; color: #98681b; }
.review-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.review-details > div { min-width: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; }
.review-details .wide { grid-column: 1 / -1; }
.review-details b, .review-media > b, .review-history > b { display: block; margin-bottom: 5px; color: #727b8d; font-size: 12px; }
.review-media { display: grid; gap: 9px; }
.review-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.review-photos a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 9px; background: #f2f3f8; }
.review-photos img { width: 100%; height: 100%; object-fit: cover; }
.license-link { display: block; width: min(100%, 360px); padding: 8px; border: 1px solid #e7eaf0; border-radius: 10px; background: #f8f9fc; }
.license-link img { display: block; width: 100%; max-height: 300px; object-fit: contain; }
.review-media video { width: min(100%, 420px); max-height: 320px; border-radius: 10px; background: #111827; }
.review-last { margin: 0; color: #667085; font-size: 12px; }
.review-history { color: #778093; font-size: 12px; }
.review-history > div { padding: 9px 0; border-top: 1px solid #eceef3; }
.review-history p { margin: 5px 0 0; color: #414a5d; }
.review-instruction { padding: 10px 13px; border-radius: 9px; background: #f8f7ff; color: #6655a8; font-size: 12px; }
.custom-select { position: relative; width: 100%; min-width: 0; }
.custom-select > select { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.custom-select-trigger { width: 100%; min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 13px; border: 1px solid #dfe3eb; border-radius: 10px; background: #fff; color: #172033; text-align: left; font-size: 13px; }
.custom-select-trigger:hover { border-color: #bcb4ff; background: #fcfbff; }
.custom-select-trigger:focus-visible, .custom-select.open .custom-select-trigger { outline: none; border-color: #8b7fff; box-shadow: 0 0 0 3px rgba(109,93,252,.12); }
.custom-select-trigger.placeholder { color: #9ca3b2; }
.custom-select-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; max-height: 220px; display: none; overflow-y: auto; padding: 5px; border: 1px solid #e5e4f1; border-radius: 12px; background: #fff; box-shadow: 0 16px 36px rgba(27, 31, 65, .17); }
.custom-select.open .custom-select-menu { display: block; }
.custom-select.drop-up .custom-select-menu { top: auto; bottom: calc(100% + 6px); }
.custom-select-option { width: 100%; min-height: 36px; display: block; padding: 8px 11px; border: 0; border-radius: 7px; background: transparent; color: #333b50; text-align: left; font-size: 13px; }
.custom-select-option:hover, .custom-select-option:focus-visible { background: #f3f1ff; color: #6655ec; outline: none; }
.custom-select-option.selected { background: #f0edff; color: #5d4ce4; font-weight: 700; }
.page-size-control .custom-select { width: 94px; }
.page-size-control .custom-select-trigger { min-height: 36px; padding: 0 10px; font-size: 12px; }
.page-size-control .custom-select-menu { top: auto; bottom: calc(100% + 6px); }
.modal-card { overflow-x: visible; }

.modal-backdrop { background: rgba(22,28,45,.48); }
.modal-card { border-color: #e4e7ed; background: #fff; box-shadow: 0 30px 90px rgba(25,32,52,.24); color: #172033; }
.compact-modal { width: min(480px, 92vw); }
.one-column { grid-template-columns: 1fr; }
.modal-card > header, .modal-card form footer { border-color: var(--line); background: rgba(255,255,255,.96); }
.modal-card header button { color: #8a92a3; }
.form-field > span { color: #646d80; font-weight: 600; }
.checkbox-field { border-color: #dfe3eb; background: #f9fafc; color: #596377; }
.image-uploader label { border-color: #dcd9ff; background: #f1efff; color: #6555e7; }
.image-preview { border-color: #dfe3eb; background: #f8f9fb; }
.toast { border-color: rgba(255,255,255,.14); background: #1e293b; box-shadow: 0 14px 40px rgba(16,24,40,.24); color: #fff; }
.confirm-card { width: min(400px, 92vw); padding: 30px; border-radius: 18px; background: #fff; box-shadow: 0 30px 90px rgba(25,32,52,.24); text-align: center; }
.confirm-icon { width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 50%; background: #fff0f2; color: #e45066; font-size: 24px; font-weight: 800; }
.confirm-card h3 { margin: 16px 0 8px; color: #20293b; }
.confirm-card p { margin: 0 0 24px; color: #7c8597; font-size: 13px; line-height: 1.6; }
.confirm-card > div { display: flex; justify-content: center; gap: 10px; }
.danger-button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: #e54d63; color: #fff; font-weight: 700; }

@media (max-width: 900px) {
  .login-view { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-card { width: min(390px, calc(100vw - 32px)); }
  .admin-shell { grid-template-columns: 76px minmax(0,1fr); }
  .sidebar { width: 76px; }
  .sidebar-brand { justify-content: center; padding: 0; }
  .sidebar-brand > div { display: none; }
  .sidebar nav button:not(.active)::after, .sidebar nav button { font-size: 0; }
  .sidebar nav button { justify-content: center; padding: 0; }
  .sidebar nav button i { font-size: 18px; }
  .nav-caption, .sidebar-footer span, .sidebar-footer button { display: none; }
  .main-area { grid-column: 2; }
  .topbar { padding: 0 20px; }
  .content { padding: 20px; }
  .entity-panel { height: calc(100vh - 128px); min-height: 480px; }
  .server-state { display: none; }
  .panel-header { align-items: flex-start; flex-direction: column; }
  .panel-actions { width: 100%; }
  .search-control { flex: 1; }
  .search-input { width: 100%; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .table-wrap table { min-width: 860px; }
  .pagination-bar { grid-template-columns: 1fr auto; }
  .pagination-pages { grid-column: 1 / -1; grid-row: 1; }
  .pagination-summary { grid-column: 1; grid-row: 2; }
  .page-size-control { grid-column: 2; grid-row: 2; }
}

@media (max-width: 620px) {
  .admin-shell { display: block; padding-bottom: 70px; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .sidebar { position: fixed; top: auto; right: 0; bottom: 0; width: 100%; height: 68px; height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .sidebar-brand, .nav-caption, .sidebar-footer { display: none; }
  .sidebar nav { display: flex; padding: 7px; overflow-x: auto; }
  .sidebar nav button { min-width: 58px; height: 52px; margin: 0; }
  .sidebar nav button.active::before { display: none; }
  .main-area { width: 100%; }
  .topbar { height: 74px; }
  .top-actions .ghost-button { display: none; }
  .content { padding: 14px; }
  .entity-panel { height: calc(100vh - 172px); min-height: 420px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 112px; padding: 17px; }
  .stat-card strong { font-size: 23px; }
  .form-grid { grid-template-columns: 1fr; padding: 18px; }
  .modal-card { width: min(100%, 480px); max-height: calc(100dvh - 24px); }
  .form-grid { gap: 15px; }
  .image-uploader { grid-template-columns: minmax(0, 1fr) auto; }
  .review-tasks { flex-direction: column; }
  .review-details { grid-template-columns: 1fr; }
  .review-details .wide { grid-column: 1; }
  .form-field.full { grid-column: auto; }
  .modal-backdrop { padding: 12px; }
  .pagination-bar { grid-template-columns: 1fr; gap: 11px; padding: 14px; }
  .pagination-pages, .pagination-summary, .page-size-control { grid-column: 1; grid-row: auto; }
  .pagination-pages { overflow-x: auto; justify-content: flex-start; padding-bottom: 2px; }
  .pagination-summary { text-align: center; }
  .page-size-control { justify-content: center; }
}

/* Pink form controls shared with the mini program. */
:root { --form-pink: #f45678; --form-pink-soft: #fff0f4; }
.form-field input:not([type="checkbox"]):not([type="file"]),
.form-field textarea,
.custom-select-trigger,
.datetime-trigger { min-width: 0; border-color: #eadde3; background-color: #fffafb; }
.form-field input:focus, .form-field textarea:focus,
.custom-select-trigger:focus-visible, .custom-select.open .custom-select-trigger,
.datetime-control.open .datetime-trigger, .datetime-trigger:focus-visible { border-color: var(--form-pink); box-shadow: 0 0 0 3px rgba(244,86,120,.13); outline: none; }
.custom-select-trigger:hover, .datetime-trigger:hover { border-color: #f5a5b8; background: #fff5f7; }
.custom-select-menu { border-color: #f1d8df; box-shadow: 0 16px 36px rgba(93,31,54,.14); }
.custom-select-option:hover, .custom-select-option:focus-visible { background: #fff0f4; color: #d63d63; }
.custom-select-option.selected { background: #ffe4eb; color: #ca355b; }
.page-size-control .custom-select-trigger { background: #fffafb; }
input[type="date"], input[type="time"], input[type="datetime-local"] { accent-color: var(--form-pink); background: #fffafb; }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator { background-color: #ffe8ee; }
.datetime-field { grid-column: 1 / -1; }
.datetime-control { width: min(100%, 340px); min-width: 0; }
.datetime-trigger { width: 100%; min-height: 43px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border: 1px solid #eadde3; border-radius: 10px; color: #172033; text-align: left; font-size: 13px; font-variant-numeric: tabular-nums; }
.datetime-trigger.placeholder { color: #9ca3b2; }
.datetime-popover { display: none; margin-top: 8px; padding: 14px; border: 1px solid #f1d8df; border-radius: 13px; background: #fff; box-shadow: 0 15px 35px rgba(93,31,54,.12); }
.datetime-control.open .datetime-popover { display: block; }
.datetime-month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; color: #3d3440; font-size: 13px; }
.datetime-month button { width: 29px; height: 29px; border: 0; border-radius: 7px; background: var(--form-pink-soft); color: #d63d63; font-size: 20px; }
.datetime-week, .datetime-days { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 3px; text-align: center; }
.datetime-week span { padding: 5px 0; color: #aa929b; font-size: 11px; }
.datetime-days button { height: 29px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #51434b; font-size: 12px; }
.datetime-days button:hover { background: var(--form-pink-soft); color: #ca355b; }
.datetime-days button.selected { background: var(--form-pink); color: #fff; font-weight: 700; }
.datetime-time { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin-top: 13px; color: #7d6570; }
.datetime-time label { width: 75px; color: #8f7882; font-size: 11px; text-align: center; }
.datetime-time input { height: 34px; margin-top: 5px; text-align: center; }
.datetime-time input::-webkit-inner-spin-button, .datetime-time input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.datetime-time input[type="number"] { appearance: textfield; }
.datetime-time > span { padding-bottom: 8px; }
.datetime-apply { width: 100%; height: 34px; margin-top: 13px; border: 0; border-radius: 8px; background: linear-gradient(135deg, #ff718e, #ea4168); color: #fff; font-weight: 700; }
@media (max-width: 620px) { .datetime-field { grid-column: 1; } }
.contact-settings-panel { max-width: 940px; }
.contact-settings-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 24px; }
.contact-settings-form > label, .contact-settings-form > .contact-field { min-width: 0; display: block; }
.contact-settings-form > label > span, .contact-settings-form > .contact-field > span { display: block; margin-bottom: 8px; color: #646d80; font-size: 12px; font-weight: 650; }
.contact-settings-form .full { grid-column: 1 / -1; }
.contact-settings-form input, .contact-settings-form textarea { border-color: #eadde3; background: #fffafb; }
.contact-settings-form input:focus, .contact-settings-form textarea:focus { border-color: var(--form-pink); box-shadow: 0 0 0 3px rgba(244,86,120,.13); }
.contact-settings-form textarea { min-height: 96px; }
.contact-settings-hint { margin: 0; color: #8b7480; font-size: 12px; line-height: 1.6; }
.contact-settings-hint.warning { padding: 11px 13px; border: 1px solid #f3cf98; border-radius: 9px; background: #fff8e9; color: #9a6618; }
.contact-settings-form > .primary-button { justify-self: start; background: linear-gradient(135deg, #ff718e, #ea4168); }
.contact-qr-control { display: flex; align-items: center; gap: 9px; }
.contact-qr-control > input { min-width: 0; flex: 1; }
.contact-qr-control > label { flex: none; min-height: 42px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid #f1bcc9; border-radius: 10px; background: #fff0f4; color: #c93e60; cursor: pointer; font-size: 12px; }
.contact-qr-control input[type="file"] { display: none; }
.contact-qr-preview { width: 160px; height: 160px; display: block; margin-top: 12px; border: 1px solid #eadde3; border-radius: 12px; object-fit: contain; background: #fff; }
@media (max-width: 620px) { .contact-settings-form { grid-template-columns: 1fr; padding: 18px; } .contact-settings-form .full { grid-column: 1; } .contact-qr-control { flex-wrap: wrap; } .contact-qr-control > input { flex-basis: 100%; } }

/* Icons are rendered by Lucide so navigation and controls share one visual system. */
.lucide {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
}

.primary-button,
.ghost-button,
.danger-button,
.sidebar-footer button,
.row-actions button,
.contact-qr-control > label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.primary-button > .lucide,
.ghost-button > .lucide,
.danger-button > .lucide,
.contact-qr-control .lucide { width: 15px; height: 15px; }

.sidebar nav button > .lucide {
  width: 19px;
  height: 19px;
  color: #6f788c;
}
.sidebar nav button:hover > .lucide { color: #aab2c2; }
.sidebar nav button.active > .lucide { color: #a89fff; }
.sidebar-footer button .lucide { width: 14px; height: 14px; }

.stat-card small .lucide { width: 18px; height: 18px; }
.review-tasks button > span { display: inline-flex; align-items: center; gap: 9px; }
.review-tasks button > span .lucide { width: 18px; height: 18px; color: #7768ff; }

.search-control > .lucide {
  position: absolute;
  z-index: 1;
  top: 11px;
  left: 12px;
  width: 17px;
  height: 17px;
  color: #9da4b3;
  pointer-events: none;
}
.icon-button { display: inline-grid; place-items: center; padding: 0; }
.icon-button .lucide { width: 18px; height: 18px; }
.icon-button:hover .lucide { transform: rotate(20deg); transition: transform .18s ease; }

.row-actions button .lucide { width: 13px; height: 13px; }
.status-pill .lucide { width: 7px; height: 7px; fill: currentColor; stroke-width: 0; }
.pagination-pages button .lucide { width: 16px; height: 16px; }

.modal-close {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 10px !important;
}
.modal-close:hover { background: #f3f4f7 !important; color: #4f596d !important; }
.modal-close .lucide { width: 20px; height: 20px; }
.confirm-icon .lucide { width: 23px; height: 23px; }

.datetime-trigger .lucide { width: 17px; height: 17px; color: var(--form-pink); }
.datetime-month button { display: inline-grid; place-items: center; padding: 0; }
.datetime-month button .lucide { width: 16px; height: 16px; }

.custom-select-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-trigger .select-chevron { width: 16px; height: 16px; color: var(--form-pink); transition: transform .18s ease; }
.custom-select.open .custom-select-trigger .select-chevron { transform: rotate(180deg); }

@media (max-width: 900px) {
  .sidebar-footer button { display: none; }
}
