:root {
  color-scheme: light;
  --blue: #087fd3;
  --blue-dark: #075f9f;
  --orange: #f47b20;
  --ink: #172431;
  --muted: #71808f;
  --line: #dce5ec;
  --soft: #f4f7fa;
  --page: #edf2f6;
  --sidebar: #182633;
  --white: #fff;
  --success: #178a5b;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--ink); background: var(--page); font-family: "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 27px; }
h2 { font-size: 23px; }
h3 { font-size: 16px; }
p { color: var(--muted); line-height: 1.65; }

.eyebrow { display: block; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; flex: none; border: 6px solid var(--orange); border-radius: 50%; color: var(--blue); background: var(--white); font-weight: 900; }
.brand-mark.small { width: 42px; height: 42px; border-width: 5px; }
.admin-login-logo { display: block; width: 190px; height: 92px; margin: 0 auto; object-fit: contain; object-position: center; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(145deg, #e9f2f8, #f4f7f9 56%, #e8edf1); }
.login-card { width: min(420px, 100%); padding: 38px; border: 1px solid rgba(8, 127, 211, .12); border-radius: 12px; background: var(--white); box-shadow: 0 22px 60px rgba(28, 55, 78, .14); }
.login-card .eyebrow { margin-top: 22px; }
.login-card h1 { margin-top: 6px; }
.login-card p { margin-top: 9px; }
.login-form { display: grid; gap: 16px; margin-top: 28px; }
.setup-link { display: inline-block; margin-top: 8px; color: var(--blue); font-size: 13px; text-decoration: none; }

label { min-width: 0; display: grid; gap: 7px; color: #4b5c6b; font-size: 13px; font-weight: 600; }
input, textarea, select { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--white); outline: none; font-weight: 400; }
textarea { resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 127, 211, .1); }
.primary, .quiet, .preview-link { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; padding: 9px 17px; text-decoration: none; }
.primary { border: 0; color: var(--white); background: var(--blue); font-weight: 700; box-shadow: 0 7px 14px rgba(8, 127, 211, .16); }
.primary:hover { background: var(--blue-dark); }
.quiet, .preview-link { border: 1px solid var(--line); color: #536575; background: var(--white); }
.error { min-height: 20px; margin-top: 12px; color: #bc3f31; font-size: 13px; }
.status { color: var(--success); font-size: 13px; font-weight: 700; }

.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 242px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px 18px; color: #dce6ee; background: var(--sidebar); border-right: 1px solid #243746; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 9px 25px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.sidebar-logo { width: 74px; height: 44px; flex: none; object-fit: contain; }
.sidebar-brand strong, .sidebar-brand span { display: block; }
.sidebar-brand strong { color: var(--white); font-size: 21px; }
.sidebar-brand span { margin-top: 3px; color: #7f96a8; font-size: 11px; }
.side-nav { flex: 1; overflow-y: auto; padding-top: 19px; }
.nav-group { display: block; padding: 15px 12px 7px; color: #6f8799; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.nav-tab { width: 100%; display: flex; align-items: center; gap: 11px; margin: 3px 0; padding: 10px 11px; border: 0; border-radius: 6px; color: #aebdca; background: transparent; text-align: left; }
.nav-tab:hover { color: var(--white); background: rgba(255, 255, 255, .05); }
.nav-tab.active { color: var(--white); background: #0879c8; box-shadow: inset 3px 0 0 var(--orange); }
.nav-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: none; border: 1px solid rgba(255, 255, 255, .15); border-radius: 5px; font-size: 12px; font-weight: 800; }
.sidebar-account { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 16px 6px 0; border-top: 1px solid rgba(255, 255, 255, .09); }
.account-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: #31495c; font-size: 12px; }
.sidebar-account strong, .sidebar-account span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account strong { color: var(--white); font-size: 12px; }
.sidebar-account span { margin-top: 3px; color: #7890a2; font-size: 10px; }
.icon-button { border: 0; padding: 7px; color: #9fb0bd; background: transparent; font-size: 11px; }

.workspace { min-width: 0; }
.workspace-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 32px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); }
.workspace-header h1 { margin-top: 4px; }
.preview-link { min-height: 38px; font-size: 13px; }
.workspace-content { width: min(1260px, 100%); margin: 0 auto; padding: 26px 30px 60px; }
.panel { animation: panel-in .22s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.panel-head h2 { margin-top: 5px; }
.panel-head p { margin-top: 7px; font-size: 13px; }
.panel-head-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.settings-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 92px; padding: 20px 24px; border: 1px solid #d8e2e9; border-radius: 8px; background: var(--white); box-shadow: 0 8px 24px rgba(30, 57, 77, .05); }
.summary-label { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.settings-summary strong { display: block; margin-top: 7px; color: var(--ink); font-size: 20px; }
.settings-summary small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.summary-mark { width: 54px; height: 54px; display: grid; place-items: center; border: 8px solid #d9edf9; border-radius: 50%; color: var(--blue); background: #f5fbff; font-size: 13px; font-weight: 900; }

.welcome-band { min-height: 190px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; padding: 34px 38px; border-radius: 9px; color: var(--white); background: linear-gradient(110deg, #075f9f, #0b8bd8 72%, #25a4dd); box-shadow: 0 12px 26px rgba(11, 93, 151, .18); }
.welcome-band .eyebrow { color: #96d5ff; }
.welcome-band h2 { margin-top: 7px; font-size: 28px; }
.welcome-band p { margin-top: 10px; color: #d9eefc; }
.welcome-badge { width: 112px; height: 112px; display: grid; place-items: center; flex: none; border: 14px solid var(--orange); border-radius: 50%; color: var(--white); background: rgba(255, 255, 255, .09); font-size: 36px; font-weight: 900; box-shadow: 0 0 0 16px rgba(255, 255, 255, .06); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 17px; }
.metric { min-height: 140px; display: flex; flex-direction: column; padding: 21px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 5px 16px rgba(35, 61, 82, .04); }
.metric span { color: var(--muted); font-size: 12px; }
.metric strong { margin: 11px 0 8px; font-size: 31px; }
.metric strong.online { color: var(--success); font-size: 24px; }
.metric small { margin-top: auto; color: #9aa6b1; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 17px; }
.quick-grid button { padding: 18px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--white); text-align: left; }
.quick-grid button:hover { border-color: var(--blue); box-shadow: 0 7px 18px rgba(26, 76, 113, .08); }
.quick-grid span, .quick-grid small { display: block; }
.quick-grid span { font-weight: 700; }
.quick-grid small { margin-top: 5px; color: var(--muted); }

.editor-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 18px; align-items: start; }
.editor-card, .preview-card { border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 5px 18px rgba(30, 57, 77, .05); }
.editor-card { padding: 24px; }
.preview-card { overflow: hidden; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.compact { gap: 14px; }
.wide { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 10px; padding-top: 5px; }

.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 22px 0 12px; }
.list-toolbar-first { margin-top: 26px; }
.list-toolbar h3 { margin: 0; }
.list-toolbar span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.user-list-toolbar { margin-top: 34px; }
.section-list-head { align-items: center; margin-top: 30px; }
.section-list-head > div { min-width: 0; }
.section-list-head h3 { margin: 0; }

.modal-dialog { width: min(920px, calc(100vw - 44px)); max-height: min(88vh, 900px); overflow: auto; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--white); box-shadow: 0 28px 90px rgba(22, 45, 63, .25); }
.modal-dialog::backdrop { background: rgba(12, 29, 42, .52); backdrop-filter: blur(2px); }
.compact-modal { width: min(620px, calc(100vw - 44px)); }
.site-settings-modal, .news-modal { width: min(1120px, calc(100vw - 44px)); }
.confirm-modal { width: min(520px, calc(100vw - 44px)); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.modal-head h3 { margin-top: 5px; font-size: 20px; }
.modal-head p { margin-top: 5px; font-size: 12px; }
.modal-close { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: #637482; background: var(--white); font-size: 23px; line-height: 1; }
.modal-form { padding: 22px 24px 24px; }
.modal-split { padding: 18px; }
.modal-split .editor-card { box-shadow: none; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 24px 24px; }
.danger-button { min-height: 40px; padding: 9px 17px; border: 0; border-radius: 6px; color: #fff; background: #c64e43; font-weight: 700; cursor: pointer; }
.danger-button:hover { background: #a93d34; }
.danger-button:disabled { cursor: wait; opacity: .6; }
.modal-previews { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 4px; padding: 0 9px 18px; }
.modal-previews .image-stage, .modal-previews .long-image-stage, .modal-previews .video-preview-stage { margin: 8px; }
.modal-previews .video-preview-stage { grid-column: 1 / -1; }
.check { display: flex; grid-template-columns: auto 1fr; align-items: center; grid-auto-flow: column; justify-content: start; gap: 8px; padding-top: 26px; }
.check input { width: 18px; height: 18px; }
.upload-field { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 8px; align-items: center; }
.file-input { padding: 6px; color: var(--muted); background: #f7f9fb; }
.file-input::file-selector-button { margin-right: 7px; border: 0; border-radius: 5px; padding: 7px 9px; color: var(--white); background: var(--blue); cursor: pointer; }
.sticky-preview { position: sticky; top: 18px; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line); background: #f9fbfc; }
.preview-head span { font-size: 13px; font-weight: 800; }
.preview-head small { color: var(--muted); }
.image-stage, .long-image-stage { position: relative; display: grid; place-items: center; margin: 15px; overflow: hidden; border: 1px dashed #c9d5df; border-radius: 6px; color: #8b9aa7; background: #f3f6f8; }
.image-stage.short { min-height: 150px; max-height: 240px; }
.image-stage.hero-preview { min-height: 150px; aspect-ratio: 750 / 346; }
.image-stage.hero-preview img { object-fit: cover; }
.image-stage.product-cover { min-height: 220px; max-height: 280px; }
.image-stage img { width: 100%; height: 100%; object-fit: contain; }
.long-image-stage { min-height: 280px; max-height: 650px; align-items: start; }
.long-image-stage.scrollable { overflow-y: auto; }
.long-image-stage img { width: 100%; height: auto; }
.image-stage img:not([src]), .long-image-stage img:not([src]) { display: none; }
.image-stage img[src] + span, .long-image-stage img[src] + span { display: none; }
.video-preview-stage { position: relative; display: grid; place-items: center; min-height: 180px; margin: 15px; overflow: hidden; border: 1px dashed #c9d5df; border-radius: 6px; color: #8b9aa7; background: #f3f6f8; }
.video-preview-stage video { width: 100%; max-height: 300px; background: #172431; }
.video-preview-stage video:not([src]) { display: none; }
.video-preview-stage video[src] + span { display: none; }
.profile-preview { display: flex; align-items: center; gap: 13px; margin: 17px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; }
.profile-preview strong, .profile-preview span { display: block; }
.profile-preview span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.avatar-preview { width: 66px; height: 66px; flex: none; border-radius: 50%; object-fit: cover; background: var(--soft); }

.list-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 28px 2px 12px; }
.list-head span { color: var(--muted); font-size: 12px; }
.record-list { display: grid; gap: 10px; }
.record { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.compact-record { grid-template-columns: 42px minmax(0, 1fr) auto; }
.compact-head { margin-top: 0; }
.account-avatar.small { width: 34px; height: 34px; font-size: 11px; }
.department-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #cfe5f3; border-radius: 9px; color: #0877bd; background: #edf8fe; font-size: 12px; font-weight: 800; }
.settings-card { max-width: 760px; }
.settings-toggle { min-height: 42px; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; }
.settings-note { display: flex; flex-direction: column; gap: 5px; padding: 13px 15px; border-left: 3px solid var(--blue); color: #536575; background: #f5f9fc; font-size: 12px; line-height: 1.6; }
.settings-note strong { color: var(--ink); font-size: 13px; }
.record-thumb { width: 72px; height: 62px; overflow: hidden; border-radius: 5px; background: var(--soft); }
.record-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb { display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #087fd3, #07558f); font-size: 24px; }
.record-main { min-width: 0; }
.record-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 750; }
.record-sub { overflow: hidden; margin-top: 6px; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.record-actions { display: flex; gap: 7px; }
.record-actions button { min-height: 34px; padding: 6px 12px; }
.record-actions .quiet { background: #f9fbfc; }
.record-actions .quiet:hover { border-color: #8fc6e7; color: var(--blue); background: #f2f9fd; }
.record-actions .danger:hover { border-color: #efb4ae; color: #a93d34; background: #fff6f5; }
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border-radius: 4px; color: var(--success); background: #eaf7f1; font-size: 10px; font-weight: 700; }
.badge.off { color: #87929c; background: #eef1f3; }
.danger { color: #b54034; }
.empty-state { padding: 30px; border: 1px dashed var(--line); border-radius: 7px; color: var(--muted); background: rgba(255, 255, 255, .6); text-align: center; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: none; max-width: 360px; padding: 12px 16px; border-radius: 6px; color: var(--white); background: #213341; box-shadow: 0 10px 28px rgba(0, 0, 0, .2); }
.toast.show { display: block; }

/* Content studio refinements: quiet surfaces, clear actions, and an obvious media lane. */
:root { --page: #f3f6f8; --sidebar: #17232d; --blue: #087fd3; --blue-dark: #0664a8; --orange: #f28a33; }
.sidebar { padding-top: 20px; background: #17232d; box-shadow: 9px 0 28px rgba(18, 34, 46, .08); }
.sidebar-brand { padding-bottom: 21px; }
.brand-mark.small { width: 40px; height: 40px; border-width: 4px; }
.nav-group { padding-top: 20px; letter-spacing: .14em; }
.nav-tab { min-height: 45px; }
.nav-tab.active { background: #0a76bf; box-shadow: inset 3px 0 0 var(--orange), 0 6px 14px rgba(4, 75, 124, .2); }
.workspace-header { min-height: 80px; padding-left: 36px; border-bottom-color: #d6e0e7; }
.workspace-content { padding-top: 30px; }
.welcome-band { min-height: 184px; padding: 32px 36px; border: 1px solid rgba(255, 255, 255, .12); background: #0a6da9; box-shadow: 0 15px 30px rgba(10, 74, 111, .16); }
.welcome-badge { border-color: var(--orange); box-shadow: 0 0 0 11px rgba(255, 255, 255, .08); }
.metric { min-height: 132px; border-top: 3px solid #d5eaf7; box-shadow: 0 8px 20px rgba(29, 55, 75, .05); }
.metric strong.online { color: var(--success); }
.quick-grid button { min-height: 92px; border-color: #d8e3ea; box-shadow: 0 5px 14px rgba(31, 61, 82, .03); }
.quick-grid button:hover { border-color: var(--blue); transform: translateY(-1px); }
.panel-head h2, .list-head h3 { letter-spacing: -.01em; }
.editor-card, .preview-card { border-color: #d8e2e9; box-shadow: 0 8px 24px rgba(30, 57, 77, .05); }
.section-actions { display: flex; align-items: center; gap: 9px; }
.video-action { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 15px; border: 1px solid #f0b276; border-radius: 6px; color: #9a4b0c; background: #fff8f0; font-weight: 700; }
.video-action:hover { border-color: var(--orange); background: #fff1e2; }
.record { transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.record:hover { border-color: #b8d9ed; box-shadow: 0 7px 16px rgba(29, 78, 111, .07); transform: translateY(-1px); }
.video-upload-panel { display: grid; gap: 11px; padding: 15px 16px 14px; border: 1px solid #b9dff4; border-left: 4px solid var(--blue); border-radius: 8px; background: #f1f9fe; }
.video-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.video-panel-heading strong, .video-panel-heading small { display: block; }
.video-panel-heading strong { color: #145277; font-size: 14px; }
.video-panel-heading small { margin-top: 4px; color: #6d8799; font-size: 11px; font-weight: 400; }
.video-panel-heading em { flex: none; padding: 4px 7px; border-radius: 4px; color: #1472a9; background: #dff2fd; font-size: 10px; font-style: normal; font-weight: 800; }
.video-upload-field { grid-template-columns: minmax(0, 1fr) 220px; }
.video-upload-field .file-input::file-selector-button { background: #0877bd; }
.video-upload-hint { color: #668192; font-size: 11px; line-height: 1.5; }

@media (max-width: 1040px) {
  .admin-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .editor-split { grid-template-columns: 1fr; }
  .sticky-preview { position: static; }
  .long-image-stage { max-height: 520px; }
}

@media (max-width: 760px) {
  .admin-layout { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 13px; }
  .sidebar-brand { padding: 0 4px 12px; }
  .side-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 0; }
  .nav-group { display: none; }
  .nav-tab { width: auto; min-width: 102px; flex: none; justify-content: center; margin: 0; }
  .nav-icon { display: none; }
  .sidebar-account { position: absolute; top: 14px; right: 14px; width: auto; display: flex; padding: 0; border: 0; }
  .sidebar-account > div:not(.account-avatar), .account-avatar { display: none; }
  .workspace-header { min-height: 74px; padding: 15px 18px; }
  .workspace-header h1 { font-size: 22px; }
  .preview-link { display: none; }
  .workspace-content { padding: 18px 12px 42px; }
  .welcome-band { min-height: 170px; padding: 25px; }
  .welcome-band h2 { font-size: 23px; }
  .welcome-badge { width: 74px; height: 74px; border-width: 9px; font-size: 24px; }
  .metric-grid, .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-grid button:last-child { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .upload-field { grid-template-columns: 1fr; }
  .editor-card { padding: 18px; }
  .modal-dialog { width: calc(100vw - 24px); max-height: 92vh; }
  .modal-head, .modal-form { padding-left: 18px; padding-right: 18px; }
  .modal-previews { grid-template-columns: 1fr; padding-left: 4px; padding-right: 4px; }
  .modal-previews .video-preview-stage { grid-column: auto; }
  .list-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .panel-head { display: block; }
  .panel-head-actions { justify-content: space-between; margin-top: 14px; }
  .settings-summary { padding: 16px 18px; }
  .record { grid-template-columns: 58px minmax(0, 1fr); }
  .record-thumb { width: 58px; height: 54px; }
  .record-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .list-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .section-actions { width: 100%; }
  .section-actions button { flex: 1; }
  .video-upload-field { grid-template-columns: 1fr; }
  .modal-split { padding: 8px; }
  .confirm-actions { padding: 15px 18px 20px; }
}

@media (max-width: 460px) {
  .login-page { padding: 12px; }
  .login-card { padding: 26px 22px; }
  .metric-grid, .quick-grid { grid-template-columns: 1fr; }
  .quick-grid button:last-child { grid-column: auto; }
  .welcome-badge { display: none; }
  .nav-tab { min-width: 94px; }
}

/* Quiet admin workspace: the login remains branded, while the signed-in area
   stays focused on lists, forms, and the next action. */
:root {
  --page: #f5f6f8;
  --sidebar: #ffffff;
  --ink: #1f2933;
  --muted: #7a8793;
  --line: #e4e8ec;
  --soft: #f7f8fa;
  --blue: #1877c9;
  --blue-dark: #125d9e;
}
.admin-layout { grid-template-columns: 224px minmax(0, 1fr); background: var(--page); }
.sidebar { padding: 22px 14px 16px; color: var(--ink); background: #fff; border-right: 1px solid var(--line); box-shadow: none; }
.sidebar-brand { padding: 0 8px 20px; border-bottom-color: var(--line); }
.sidebar-logo { width: 68px; height: 40px; }
.sidebar-brand strong { color: var(--ink); font-size: 18px; }
.sidebar-brand span { color: var(--muted); }
.side-nav { padding-top: 14px; }
.nav-group { padding: 18px 10px 7px; color: #a0a9b2; }
.nav-tab { min-height: 42px; margin: 2px 0; padding: 9px 10px; color: #66727d; }
.nav-tab:hover { color: var(--blue); background: #f5f8fb; }
.nav-tab.active { color: var(--blue); background: #edf5fc; box-shadow: inset 3px 0 0 var(--blue); }
.nav-icon { border-color: #e0e6eb; color: #788693; background: #fff; }
.nav-tab.active .nav-icon { border-color: #c7e0f4; color: var(--blue); background: #f7fbff; }
.sidebar-account { border-top-color: var(--line); }
.sidebar-account strong { color: var(--ink); }
.sidebar-account span, .icon-button { color: var(--muted); }
.account-avatar { color: var(--blue); background: #eaf3fb; }
.workspace-header { min-height: 78px; padding: 17px 32px; background: #fff; border-bottom-color: var(--line); }
.workspace-header h1 { font-size: 24px; font-weight: 700; }
.preview-link { min-height: 36px; color: #65727e; background: #fff; box-shadow: none; }
.workspace-content { padding: 26px 30px 56px; }
.welcome-band { min-height: 148px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; box-shadow: none; }
.welcome-band .eyebrow { color: var(--blue); }
.welcome-band h2 { font-size: 24px; }
.welcome-band p { color: var(--muted); }
.welcome-badge { display: none; }
.metric-grid, .quick-grid { gap: 12px; }
.metric { min-height: 118px; padding: 18px; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 8px; box-shadow: none; }
.metric strong { margin: 8px 0 5px; font-size: 28px; }
.quick-grid button { min-height: 82px; border-color: var(--line); border-radius: 8px; box-shadow: none; }
.editor-card, .preview-card, .settings-summary, .record { border-color: var(--line); box-shadow: none; }
.panel-head { margin-bottom: 18px; }
.panel-head h2 { font-size: 21px; }
.panel-head p { color: var(--muted); }
.primary { box-shadow: none; }
.primary:hover { background: var(--blue-dark); }
.quiet, .preview-link { background: #fff; }
.record { border-radius: 8px; }
.record:hover { border-color: #c9dceb; box-shadow: none; transform: none; }
.record-actions button { min-height: 32px; }
.modal-dialog { border-radius: 9px; box-shadow: 0 20px 60px rgba(24, 40, 55, .16); }
.modal-dialog::backdrop { background: rgba(22, 32, 42, .3); backdrop-filter: none; }
.modal-head { background: #fff; }
.toast { right: 20px; bottom: 20px; border: 1px solid #334554; box-shadow: 0 8px 20px rgba(23, 38, 51, .16); }

@media (max-width: 1040px) {
  .admin-layout { grid-template-columns: 204px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .sidebar { padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-brand { padding-bottom: 11px; }
  .nav-tab { min-height: 38px; color: #66727d; background: transparent; }
  .nav-tab.active { box-shadow: inset 0 -2px 0 var(--blue); }
  .workspace-header { padding: 14px 18px; }
  .workspace-content { padding: 18px 12px 42px; }
  .welcome-band { min-height: 128px; padding: 23px; }
}
