@charset "UTF-8";

/* BlackAdmin · a quiet, precise workspace built on Layui. */
:root {
  --bg: #f3f6f7;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --ink: #1c3139;
  --ink-deep: #102a32;
  --muted: #8a9a9f;
  --text-secondary: #73858c;
  --line: #e8eef0;
  --line-strong: #dce7e8;
  --primary: #0a9c83;
  --primary-dark: #087f6d;
  --primary-light: #e8f7f2;
  --cyan: #44bed0;
  --danger: #df646b;
  --sidebar: #122d31;
  --sidebar-width: 236px;
  --topbar-height: 76px;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(34, 65, 77, .025);
  --shadow-raised: 0 10px 26px rgba(24, 79, 72, .09);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 13px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; opacity: .48; }
button:disabled:hover { transform: none !important; box-shadow: none !important; }
::selection { color: #075f54; background: #cfefe5; }
:focus-visible { outline: 3px solid rgba(10, 156, 131, .28); outline-offset: 3px; }
svg { width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; stroke-width: 1.8; }
svg[aria-hidden="true"] { pointer-events: none; }
button svg, a svg { pointer-events: none; }
[hidden], .hidden { display: none !important; }
.muted { color: var(--text-secondary); }
.mono { font-family: "Cascadia Code", Consolas, monospace; }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.app-shell { min-height: 100vh; }

/* Navigation */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 30px 18px 18px; color: #b4c4c7; background: linear-gradient(160deg, #17383c 0%, #102a2e 65%, #10282d 100%); }
.sidebar::after { position: absolute; inset: auto 0 0; height: 35%; content: ""; background: radial-gradient(ellipse at 0 100%, rgba(19, 164, 137, .07), transparent 70%); pointer-events: none; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 13px 32px; color: white; }
.brand-mark { position: relative; display: grid; place-items: center; width: 36px; height: 38px; flex-shrink: 0; border: 1px solid rgba(153, 255, 228, .18); border-radius: 10px; color: #a0f0d7; background: linear-gradient(135deg, #1aa88c, #126f68); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .2), 0 5px 15px rgba(1, 13, 17, .13); }
.brand-mark svg { width: 23px; height: 23px; stroke-width: 2; }
.brand-copy { display: flex; flex-direction: column; font-size: 18px; font-weight: 650; letter-spacing: -.4px; line-height: 1.3; }
.brand-copy small { margin-top: 5px; color: #6c9397; font-size: 8px; font-weight: 500; letter-spacing: 2.6px; text-transform: uppercase; }
.nav-caption { margin: 18px 15px 10px; color: #5b8085; font-size: 10px; font-weight: 600; letter-spacing: 1.2px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; margin: 4px 0; padding: 11px 15px; border: 1px solid transparent; border-radius: 8px; color: #8eaaae; background: transparent; font-size: 12px; text-align: left; transition: color .18s, background .18s, border-color .18s; }
.nav-item:hover { color: #e5f9f3; background: rgba(152, 214, 204, .055); }
.nav-item.active { color: #c3f5e6; border-color: rgba(117, 234, 207, .07); background: linear-gradient(100deg, rgba(22, 157, 131, .24), rgba(24, 120, 111, .16)); }
.nav-item.active::before { position: absolute; top: 13px; bottom: 13px; left: -18px; width: 3px; border-radius: 0 3px 3px 0; background: #5ee0b7; box-shadow: 0 0 15px rgba(94, 224, 183, .23); content: ""; }
.nav-icon { display: inline-flex; color: #72999d; }
.nav-icon svg { width: 18px; height: 18px; }
.active .nav-icon { color: #6bdbb7; }
.nav-label { flex: 1; }
.nav-count { min-width: 21px; padding: 1px 6px; border-radius: 5px; color: #72979a; background: rgba(163, 205, 205, .06); font-size: 10px; text-align: center; }
.nav-item.active .nav-count { color: #92d5c3; background: rgba(99, 215, 177, .08); }
.nav-item .chevron { width: 13px; height: 13px; opacity: .6; }
.sidebar-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 18px 9px 2px; border-top: 1px solid rgba(156, 194, 198, .1); }
.sidebar-footer .avatar { color: #bceede; background: #2a5753; }
.sidebar-footer strong { display: block; color: #c2d4d5; font-size: 11px; font-weight: 500; }
.sidebar-footer small { color: #668a8e; font-size: 10px; }
.sidebar-footer .icon-btn { margin-left: auto; color: #75979b; }
.sidebar-footer .icon-btn:hover { color: #c5f2e5; background: rgba(255, 255, 255, .05); }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; color: #19816f; background: #e5f4ec; font-size: 12px; font-weight: 600; }

/* Application frame */
.main-shell { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--topbar-height); padding: 0 36px; border-bottom: 1px solid #e7edef; background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px); }
.breadcrumb { display: flex; align-items: center; gap: 12px; color: #93a1a7; font-size: 11px; }
.breadcrumb svg { width: 15px; height: 15px; }
.breadcrumb strong, .breadcrumb [aria-current] { color: #50666e; font-weight: 500; }
.breadcrumb .separator { color: #c4cfd3; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; padding: 0; border: 0; border-radius: 9px; color: #80969e; background: transparent; transition: color .18s, background .18s, transform .18s; }
.icon-btn:hover { color: var(--primary); background: #edf7f4; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .notification-dot { position: absolute; top: 6px; right: 7px; width: 5px; height: 5px; border: 1px solid white; border-radius: 50%; background: #0fa58b; }
.search-trigger { display: flex; align-items: center; gap: 8px; min-width: 175px; padding: 7px 10px; border: 1px solid #edf1f3; border-radius: 7px; color: #97a5ab; background: #f9fbfb; font-size: 10px; text-align: left; }
.search-trigger svg { width: 14px; height: 14px; }
.search-trigger kbd { margin-left: auto; padding: 0 4px; border: 1px solid #e7edef; border-radius: 3px; color: #a4afb4; background: white; font-family: inherit; font-size: 9px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; color: #536970; background: transparent; font-size: 11px; }
.user-chip .avatar { width: 31px; height: 31px; border-radius: 50%; font-size: 10px; }
.user-chip > svg { width: 12px; height: 12px; color: #9aabb1; }
.workspace { max-width: 1820px; margin: auto; padding: 30px 36px 34px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { margin: 0; color: #213840; font-size: 24px; font-weight: 620; letter-spacing: -.7px; line-height: 1.5; }
.page-heading p { margin: 5px 0 0; color: #8e9da4; font-size: 11px; }
.eyebrow { margin-bottom: 5px; color: #88a098; font-size: 9px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.page-enter { animation: page-enter .28s var(--ease) both; }
@keyframes page-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

/* One visual accent; the rest of the workspace stays calm. */
.hero-banner { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 238px; margin-bottom: 23px; border: 1px solid #dcebe7; border-radius: var(--radius); background: linear-gradient(112deg, #edf7f2 3%, #eff8f4 40%, #e1f1ed 100%); }
.hero-banner::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(120, 171, 154, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 171, 154, .07) 1px, transparent 1px); background-size: 34px 34px; content: ""; mask-image: linear-gradient(90deg, transparent 10%, #000 85%); pointer-events: none; }
.hero-banner::after { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85); content: ""; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: 59%; padding: 32px 34px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; color: #2c9480; font-size: 9px; font-weight: 600; letter-spacing: 1.25px; }
.hero-kicker::before { width: 5px; height: 5px; border-radius: 50%; background: #22b591; box-shadow: 0 0 0 3px rgba(34, 181, 145, .1); content: ""; }
.hero-copy h2 { margin: 0 0 9px; color: #214941; font-size: 25px; font-weight: 600; letter-spacing: -.7px; }
.hero-copy p { max-width: 410px; margin: 0; color: #789a8e; font-size: 11px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 23px; }
.hero-actions .btn { height: 34px; padding: 0 14px; font-size: 10px; }
.hero-actions .text-link { display: inline-flex; align-items: center; gap: 6px; color: #689a88; font-size: 10px; }
.hero-actions .text-link:hover { color: #077b64; }
.hero-actions .text-link svg { width: 13px; height: 13px; }
.hero-art { position: absolute; inset: 0 0 0 auto; width: 60%; overflow: hidden; pointer-events: none; }
#fluid-canvas { position: absolute; inset: 0 0 0 auto; width: 60%; height: 100%; pointer-events: none; }
.hero-art #fluid-canvas { width: 100%; }
.hero-status { position: absolute; right: 24px; bottom: 18px; z-index: 3; display: flex; align-items: center; gap: 7px; color: #78a393; font-family: "Cascadia Code", Consolas, monospace; font-size: 8px; letter-spacing: .8px; }
.hero-status::before { width: 4px; height: 4px; border-radius: 50%; background: #45b291; content: ""; }
.motion-toggle { position: absolute; top: 16px; right: 18px; z-index: 4; display: flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid rgba(118, 165, 149, .16); border-radius: 6px; color: #78a393; background: rgba(255, 255, 255, .5); font-size: 9px; }
.motion-toggle svg { width: 12px; height: 12px; }
.motion-toggle:hover { color: #148c72; background: rgba(255, 255, 255, .8); }

/* Buttons: a translucent edge, a deliberate colour, and a physical response. */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 14px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; font-weight: 500; line-height: 1.3; white-space: nowrap; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s, color .18s; }
.btn svg { width: 14px; height: 14px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { border-color: #0c977f; color: #fff; background: linear-gradient(125deg, #16aa8b, #07927e); box-shadow: inset 0 1px 0 rgba(224, 255, 243, .25), 0 3px 7px rgba(9, 143, 117, .1); }
.btn-primary:hover { color: white; border-color: #07816e; background: linear-gradient(125deg, #10a987, #078974); box-shadow: inset 0 1px 0 rgba(231, 255, 246, .35), 0 5px 13px rgba(9, 143, 117, .19); }
.btn-secondary { border-color: #e0e8eb; color: #6e828b; background: #fff; box-shadow: 0 1px 2px rgba(49, 75, 87, .02); }
.btn-secondary:hover { color: #198e7a; border-color: #bcdbd2; background: #fcfefd; box-shadow: 0 4px 12px rgba(30, 93, 80, .04); }
.btn-ghost { color: #70888a; background: transparent; }
.btn-ghost:hover { color: #148970; background: #e7f4ee; }
.btn-danger { border-color: #f1dadd; color: #d5626b; background: #fff8f8; }
.btn-danger:hover { border-color: #e7b5bc; color: #c84956; background: #fff0f1; box-shadow: 0 3px 10px rgba(201, 66, 86, .06); }
.btn-sm { min-height: 29px; padding: 5px 10px; border-radius: 6px; font-size: 10px; }
.btn-sm svg { width: 12px; height: 12px; }
.btn-icon { width: 34px; min-height: 34px; padding: 0; }
.btn-shimmer { overflow: hidden; }
.btn-shimmer::after { position: absolute; inset: -1px; z-index: -1; background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .22) 50%, transparent 75%); content: ""; transform: translateX(-130%); transition: transform .55s var(--ease); pointer-events: none; }
.btn-shimmer:hover::after { transform: translateX(130%); }
.btn.is-loading { pointer-events: none; }
.btn.is-loading svg { animation: spinner 1s linear infinite; }
@keyframes spinner { to { transform: rotate(360deg); } }

/* Dashboard */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 23px; }
.stat-card { position: relative; overflow: hidden; min-height: 138px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.stat-card::after { position: absolute; inset: 0; border-radius: inherit; border: 1px solid transparent; content: ""; pointer-events: none; transition: border-color .2s; }
.stat-card:hover::after { border-color: #cce6de; }
.stat-icon { position: absolute; top: 19px; right: 19px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #27a18b; background: #eaf7f2; }
.stat-icon svg { width: 16px; height: 16px; }
.stat-card:nth-child(2) .stat-icon { color: #599bb3; background: #edf5f9; }
.stat-card:nth-child(3) .stat-icon { color: #9280c0; background: #f4f0fb; }
.stat-card:nth-child(4) .stat-icon { color: #c5a05e; background: #fcf7eb; }
.stat-label { margin-bottom: 6px; color: #8c9ba1; font-size: 11px; }
.stat-value { color: #2a4049; font-size: 27px; font-weight: 620; letter-spacing: -.9px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.stat-value small { margin-left: 5px; color: #91a1a7; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.stat-change { display: flex; align-items: center; gap: 5px; margin-top: 8px; color: #a3afb3; font-size: 9px; }
.stat-change strong { color: #31a68b; font-size: 9px; font-weight: 500; }
.stat-change svg { width: 11px; height: 11px; }
.stat-change.negative strong { color: #d58985; }
.sparkline { position: absolute; right: 14px; bottom: 21px; width: 76px; height: 31px; color: #72c9b4; }
.sparkline svg { width: 100%; height: 100%; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(270px, 1fr); align-items: start; gap: 23px; }
.panel, .surface { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 21px 22px 0; }
.panel-title { margin: 0; color: #3c535b; font-size: 13px; font-weight: 600; }
.panel-title svg { width: 15px; height: 15px; margin-right: 7px; color: #61a595; }
.panel-subtitle { margin-top: 4px; color: #a0acb0; font-size: 9px; }
.panel-heading .link, .panel-heading .text-link { color: #91a3aa; font-size: 9px; }
.panel-heading .link:hover, .panel-heading .text-link:hover { color: var(--primary); }
.panel-heading select { min-height: 27px; padding: 3px 25px 3px 9px; font-size: 9px; }
.panel-body { padding: 20px 22px; }
.chart-container { position: relative; min-height: 230px; margin: 17px 18px 4px; }
.chart-container svg { width: 100%; height: 230px; overflow: visible; }
.chart-container canvas { width: 100%; }
.chart-legend { display: flex; align-items: center; gap: 17px; margin: 16px 23px 2px; color: #a2afb4; font-size: 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 6px; height: 6px; border-radius: 50%; background: #12a98b; }
.chart-legend span:nth-child(2) i { background: #bddcd3; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px 13px; padding: 23px 18px 25px; }
.quick-item { display: flex; align-items: center; flex-direction: column; gap: 9px; padding: 0; border: 0; color: #87989e; background: transparent; font-size: 10px; }
.quick-item > span:first-child, .quick-item > .quick-icon { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid #e8f0ed; border-radius: 12px; color: #629d8d; background: #f3f8f5; transition: transform .18s, background .18s, border-color .18s; }
.quick-item:nth-child(3n + 2) > span:first-child { color: #759baa; background: #f2f7f9; border-color: #e8eff3; }
.quick-item:nth-child(3n) > span:first-child { color: #a195bc; background: #f6f4fa; border-color: #efebf6; }
.quick-item svg { width: 18px; height: 18px; }
.quick-item:hover { color: #318b75; }
.quick-item:hover > span:first-child, .quick-item:hover > .quick-icon { transform: translateY(-3px); border-color: #c1e1d5; background: #e9f5ee; }
.system-panel { margin-top: 23px; }
.system-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f1f4f5; color: #98a7ad; font-size: 10px; }
.system-row:last-child { border: 0; }
.system-row > :last-child { color: #627b82; font-size: 10px; }
.system-row .status-pill { padding: 1px 6px; font-size: 9px; }
.dashboard-bottom { margin-top: 23px; }
.activity-list { margin: 0; padding: 16px 22px; list-style: none; }
.activity-item { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid #f1f4f5; color: #758b93; font-size: 10px; }
.activity-item:last-child { border: 0; }
.activity-item time { margin-left: auto; color: #a3b0b5; font-size: 9px; }
.activity-item .avatar { width: 28px; height: 28px; border-radius: 8px; font-size: 9px; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 27px; color: #a8b4b9; font-size: 9px; }
.workspace-footer span:last-child { font-size: 8px; letter-spacing: 1px; }

/* Data surfaces and polished Layui tables */
.page-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 19px 21px; border-bottom: 1px solid #edf1f3; }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.filter-field { position: relative; display: flex; align-items: center; gap: 8px; }
.filter-field label { color: #92a0a7; font-size: 10px; }
.filter-field > svg { position: absolute; left: 11px; z-index: 1; width: 14px; height: 14px; color: #a4b2b7; pointer-events: none; }
.filter-field > svg + input { padding-left: 32px; }
.filter-field input { width: 195px; }
.filter-field select { min-width: 106px; }
.toolbar-actions { display: flex; align-items: center; gap: 9px; }
.toolbar-actions .divider { width: 1px; height: 17px; margin: 0 3px; background: var(--line); }
.table-caption { display: flex; align-items: center; justify-content: space-between; padding: 16px 21px 0; color: #91a1a7; font-size: 10px; }
.table-caption strong { margin: 0 3px; color: #508a7b; font-weight: 600; }
.table-wrap { padding: 0 20px 6px; }
.table-wrap .layui-table-view { margin: 14px 0 0; }
.layui-table-view { overflow: hidden; margin: 0; border: 0; border-radius: 0 0 10px 10px; color: #667d86; font-size: 11px; }
.layui-table-box { border: 0; }
.layui-table { color: #6c828b; background: white; font-size: 11px; }
.layui-table thead tr, .layui-table-header { border: 0; background: #f6f9fa; }
.layui-table-header { border-bottom: 1px solid #eaf0f2; }
.layui-table th { color: #91a2aa; font-size: 10px; font-weight: 500; }
.layui-table-view .layui-table th, .layui-table-view .layui-table td { border-right: 0; border-bottom-color: #eef3f4; padding: 12px 0; }
.layui-table-view .layui-table th { padding: 8px 0; }
.layui-table-view .layui-table td { position: relative; background: transparent; transition: background .16s; }
.layui-table-view .layui-table tr:last-child td { border-bottom: 0; }
.layui-table-cell { height: auto; min-height: 24px; padding: 0 14px; line-height: 24px; font-size: 11px; }
.layui-table-view .layui-table td[data-field="id"] { color: #a3b0b6; font-family: "Cascadia Code", Consolas, monospace; font-size: 10px; }
.layui-table-body .layui-table-hover, .layui-table tbody tr:hover, .layui-table-click { background: #f5fbf9 !important; }
.layui-table-body tr:hover td:first-child::before, .layui-table-body .layui-table-hover td:first-child::before { position: absolute; top: 11px; bottom: 11px; left: 0; width: 2px; border-radius: 2px; background: #6dcab0; content: ""; }
.layui-table-body .layui-table-checked { background: #eef8f4 !important; }
.layui-table-body .layui-table-checked td:first-child::before { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #23ae8c; content: ""; }
.layui-table-header .layui-table-cell { display: flex; align-items: center; }
.layui-table-header .laytable-cell-checkbox, .layui-table-header .laytable-cell-radio { justify-content: center; }
.layui-table-cell .layui-form-checkbox[lay-skin="primary"] > i { width: 14px; height: 14px; border: 1px solid #d9e4e7; border-radius: 4px; font-size: 10px; line-height: 13px; }
.layui-form-checked[lay-skin="primary"] > i { border-color: #159f84 !important; background: #159f84 !important; }
.layui-table-sort .layui-table-sort-asc { border-bottom-color: #c7d4d9; }
.layui-table-sort .layui-table-sort-desc { border-top-color: #c7d4d9; }
.layui-table-sort[lay-sort="asc"] .layui-table-sort-asc { border-bottom-color: #159f84; }
.layui-table-sort[lay-sort="desc"] .layui-table-sort-desc { border-top-color: #159f84; }
.layui-table-page { height: auto; min-height: 61px; padding: 17px 16px 13px; border: 0; border-top: 1px solid #edf2f3; background: white; }
.layui-laypage { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin: 0; color: #8c9ca4; }
.layui-laypage a, .layui-laypage span { height: 27px; margin: 0; padding: 0 9px; border-color: #e9eff1; border-radius: 5px; color: #92a3aa; font-size: 10px; line-height: 26px; }
.layui-laypage a:hover { color: #078b72; border-color: #bdddd2; }
.layui-laypage .layui-laypage-curr .layui-laypage-em { border-radius: 5px; background-color: #e8f6ef; }
.layui-laypage .layui-laypage-curr em { color: #149777; font-weight: 600; }
.layui-laypage .layui-laypage-count { margin-right: auto; padding-left: 0; border: 0; color: #a0adb3; }
.layui-laypage .layui-laypage-limits { border: 0; }
.layui-laypage select { height: 27px; min-height: 27px; padding: 0 24px 0 8px; border: 1px solid #e9eff1; border-radius: 5px; color: #93a3ab; background-color: #fff; }
.layui-table-tool { min-height: 49px; padding: 10px 15px; border: 0; border-bottom: 1px solid #edf2f3; background: white; }
.layui-table-tool-self { top: 10px; right: 14px; }
.layui-table-tool .layui-inline[lay-event] { border-color: #e7eff0; border-radius: 5px; color: #8ca3aa; }
.layui-table-tool .layui-inline[lay-event]:hover { border-color: #bedfd3; color: #189777; }
.layui-table-body .layui-none { padding: 50px 16px; color: #a3b0b5; font-size: 11px; }
.layui-table-fixed-r { border-color: #eaf0f1; box-shadow: -3px 0 9px rgba(57, 83, 87, .04); }
.layui-table-fixed-l { box-shadow: 3px 0 9px rgba(57, 83, 87, .04); }
.cell-user { display: inline-flex; align-items: center; gap: 10px; min-width: 0; vertical-align: middle; line-height: 1.4; }
.cell-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border: 1px solid rgba(52, 143, 114, .04); border-radius: 9px; color: #6b9e89; background: #edf6ee; font-size: 11px; font-weight: 600; }
.cell-avatar.blue { color: #6791a8; background: #edf4f8; }
.cell-avatar.purple { color: #9b86b8; background: #f3eff8; }
.cell-avatar.amber { color: #b59b68; background: #faf5e9; }
.cell-meta { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.cell-meta strong { overflow: hidden; color: #556d77; font-size: 11px; font-weight: 500; text-overflow: ellipsis; }
.cell-meta small { color: #a2afb7; font-size: 9px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border: 1px solid transparent; border-radius: 5px; font-size: 9px; line-height: 17px; white-space: nowrap; }
.status-pill::before { width: 4px; height: 4px; border-radius: 50%; background: currentColor; content: ""; }
.status-pill.enabled { border-color: #e0f1e8; color: #4ba589; background: #f0f9f4; }
.status-pill.disabled { border-color: #edf0f2; color: #9aa8af; background: #f6f8f9; }
.status-pill.pending { border-color: #f2ead6; color: #bf9c57; background: #fcf8ed; }
.role-tag { display: inline-flex; align-items: center; margin-right: 4px; padding: 1px 7px; border: 1px solid #e5eef1; border-radius: 5px; color: #839ca8; background: #f6f9fb; font-size: 9px; line-height: 19px; }
.role-tag.admin { border-color: #e5edf7; color: #7d9aba; background: #f1f6fc; }
.role-tag.owner { border-color: #e9e2f2; color: #9b87b3; background: #f7f3fb; }
.role-tag.green { border-color: #e0eee5; color: #75a28c; background: #f4f9f5; }
.table-action { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 26px; margin: 0 3px; padding: 3px 7px; border: 1px solid transparent; border-radius: 5px; color: #829aa4; background: transparent; font-size: 10px; line-height: 18px; transition: background .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s; }
.table-action svg { width: 12px; height: 12px; }
.table-action.edit { color: #49a58e; background: linear-gradient(120deg, #f0f9f5, #f6fbf8); border-color: #e0f1e9; box-shadow: inset 0 1px 0 #fff; }
.table-action.edit:hover { transform: translateY(-1px); color: #147e65; border-color: #bddfce; background: #e7f7ed; box-shadow: 0 3px 7px rgba(56, 129, 94, .06); }
.table-action.danger { color: #bd8c91; }
.table-action.danger:hover { color: #c25b6b; border-color: #f4dee2; background: #fff4f5; }
.table-action:not(.edit):not(.danger):hover { color: #5c8e9c; border-color: #e1edf1; background: #f1f7fa; }
.table-action:disabled { color: #b9c4c8; background: #f7f9fa; border-color: transparent; }
.permission-code { color: #8aa0a7; font-family: "Cascadia Code", Consolas, monospace; font-size: 10px; }
.table-note { padding: 12px 21px; color: #a1afb5; background: #fcfdfd; font-size: 10px; }
.table-note svg { width: 12px; height: 12px; margin-right: 5px; }

/* Native forms also power the framework examples. */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea { min-height: 35px; padding: 8px 11px; border: 1px solid #e2eaee; border-radius: 6px; color: #657d86; background-color: #fff; font-size: 11px; line-height: 1.4; transition: border-color .18s, box-shadow .18s; }
input::placeholder, textarea::placeholder { color: #aebbc0; }
input:hover, select:hover, textarea:hover { border-color: #cbdcd9; }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus { outline: none; border-color: #75bdaa; box-shadow: 0 0 0 3px rgba(31, 161, 126, .07); }
input[readonly] { background: #f8fafb !important; }
input:disabled, select:disabled, textarea:disabled { color: #a3b0b5; background: #f6f8f9 !important; cursor: not-allowed; }
input[type="checkbox"], input[type="radio"] { width: 14px; height: 14px; margin: 0; accent-color: var(--primary); cursor: pointer; }
input[type="range"] { accent-color: var(--primary); }
select { appearance: none; padding-right: 31px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2399aab1' stroke-width='1.4' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 17px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full, .form-field.wide { grid-column: 1 / -1; }
.form-field > label { color: #6f858e; font-size: 11px; font-weight: 500; }
.form-field > label .required { margin-right: 3px; color: #d28586; }
.form-field > input, .form-field > select, .form-field > textarea { width: 100%; min-height: 39px !important; }
.form-hint { color: #a2b1b6; font-size: 10px; font-weight: 400; line-height: 1.7; }
.field-error { color: #d16875; font-size: 10px; }
.form-field [aria-invalid="true"] { border-color: #db9da7 !important; }
.form-section-title { margin: 27px 0 15px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: #53746f; font-size: 11px; font-weight: 600; }
.form-section-title:first-child { margin-top: 0; }
.inline-options { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; min-height: 39px; }
.inline-options label { display: flex; align-items: center; gap: 6px; color: #82949b; font-size: 11px; }
.layui-input, .layui-textarea, .layui-select { border-color: #e2eaee; border-radius: 6px; }
.layui-input:focus, .layui-textarea:focus { border-color: #79c0ac !important; }
.layui-form-select dl { border-color: #e2eeeb; border-radius: 8px; box-shadow: 0 7px 22px rgba(31, 82, 69, .08); }
.layui-form-select dl dd.layui-this { color: #168b70; background: #edf8f2; }
.layui-form-select dl dd:hover { background: #f4f9f6; }
.layui-form-switch { border-color: #dde7e8; background: #e7eeed; }
.layui-form-onswitch { border-color: #20a184; background: #20a184; }
.layui-form-radio:hover *, .layui-form-radioed, .layui-form-radioed > i { color: #159e81; }

/* Drawers and permission editing */
.drawer-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(19, 43, 49, .22); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s; }
.drawer-backdrop.open, .drawer-backdrop.active { opacity: 1; visibility: visible; }
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 110; display: flex; flex-direction: column; width: min(580px, 100vw); background: #fff; box-shadow: -15px 0 65px rgba(19, 46, 50, .12); transform: translateX(102%); transition: transform .26s var(--ease); }
.drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 90px; padding: 22px 27px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 0; color: #38534f; font-size: 17px; font-weight: 600; }
.drawer-header p { margin: 3px 0 0; color: #9aabb0; font-size: 10px; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 25px 27px; }
.drawer-footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 18px 27px; border-top: 1px solid var(--line); background: #fcfdfd; }
.drawer-footer .form-hint { margin-right: auto; }
.permission-group { overflow: hidden; margin-bottom: 13px; border: 1px solid #e5eeeb; border-radius: 9px; }
.permission-group > h3, .permission-group > .permission-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 12px 14px; border-bottom: 1px solid #e9f0ed; color: #638178; background: #f7faf8; font-size: 11px; font-weight: 500; }
.permission-group > h3 label, .permission-heading label { display: inline-flex; align-items: center; gap: 8px; }
.permission-group small { color: #a0b4ad; font-size: 9px; font-weight: 400; }
.permission-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 10px; padding: 15px; }
.permission-item { display: flex; align-items: flex-start; gap: 8px; color: #7e928d; font-size: 10px; cursor: pointer; }
.permission-item input { flex-shrink: 0; margin-top: 2px; }
.permission-item code { display: block; margin-top: 2px; color: #aab9b4; font-family: "Cascadia Code", Consolas, monospace; font-size: 8px; }
.scope-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.scope-options label { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid #e5eeeb; border-radius: 7px; color: #81968e; background: #fcfdfc; font-size: 10px; cursor: pointer; }
.scope-options label:has(input:checked) { border-color: #b6dccc; color: #3c977b; background: #f0f8f3; }

/* The developer workbench is part of the product. */
.component-layout { display: grid; grid-template-columns: 195px minmax(0, 1fr); gap: 22px; align-items: start; }
.component-nav { position: sticky; top: calc(var(--topbar-height) + 24px); padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.component-nav h3 { margin: 10px 10px 12px; color: #a0b0b3; font-size: 9px; font-weight: 500; letter-spacing: 1px; }
.component-nav-item { display: flex; align-items: center; gap: 9px; width: 100%; margin: 3px 0; padding: 11px 12px; border: 1px solid transparent; border-radius: 7px; color: #849b9c; background: transparent; font-size: 11px; text-align: left; transition: background .18s, color .18s; }
.component-nav-item svg { width: 15px; height: 15px; color: #9ab3ad; }
.component-nav-item:hover { color: #479579; background: #f6faf7; }
.component-nav-item.active { border-color: #e5f0e9; color: #3d987c; background: #edf7f0; }
.component-nav-item.active svg { color: #5fa58c; }
.component-nav-item .badge { margin-left: auto; padding: 0 4px; border-radius: 3px; color: #72a68e; background: #e1f0e6; font-size: 8px; }
.component-main { min-width: 0; }
.component-main > .panel { margin-bottom: 20px; }
.component-intro { margin: 0 0 18px; }
.component-intro h2 { margin: 0 0 6px; color: #35504b; font-size: 17px; font-weight: 600; }
.component-intro p { margin: 0; color: #97a9a6; font-size: 11px; }
.example-tabs { display: flex; align-items: center; gap: 22px; min-height: 48px; padding: 0 22px; border-bottom: 1px solid #eaf0ef; background: #fcfdfc; }
.example-tab { position: relative; align-self: stretch; padding: 0; border: 0; color: #a0b0ad; background: transparent; font-size: 10px; }
.example-tab.active { color: #4a987b; }
.example-tab.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px 2px 0 0; background: #55af8e; content: ""; }
.example-tab:hover { color: #448c75; }
.demo-stage { padding: 27px; }
.demo-stage .demo-row { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-bottom: 18px; }
.demo-stage .demo-row:last-child { margin-bottom: 0; }
.demo-stage h3 { margin: 0 0 13px; color: #6c8980; font-size: 11px; font-weight: 500; }
.demo-stage p { color: #9aaea7; font-size: 10px; }
.demo-stage .form-grid { max-width: 580px; }
.code-panel { position: relative; overflow: auto; padding: 23px; border-top: 1px solid #e9f0ed; background: #f7faf8; }
.code-panel pre { margin: 0; color: #729887; font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; line-height: 1.9; tab-size: 2; white-space: pre; }
.code-panel .code-key { color: #847aac; }
.code-panel .code-string { color: #6aab8c; }
.code-panel .code-comment { color: #aebfb7; }
.code-panel .copy-btn { position: absolute; top: 14px; right: 16px; display: flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #dfe9e3; border-radius: 5px; color: #83a292; background: #fff; font-size: 9px; }
.code-panel .copy-btn:hover { border-color: #bcdbcb; color: #438e72; }
.code-panel .copy-btn svg { width: 12px; height: 12px; }
.component-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.component-card { display: block; padding: 19px; border: 1px solid #e5eeeb; border-radius: 10px; background: #fff; transition: transform .18s, border-color .18s, box-shadow .18s; }
.component-card:hover { transform: translateY(-2px); border-color: #c0dfd0; box-shadow: 0 6px 14px rgba(49, 107, 76, .035); }
.component-card > svg { width: 22px; height: 22px; margin-bottom: 12px; color: #7db99f; }
.component-card h3 { margin: 0 0 5px; color: #638779; font-size: 12px; font-weight: 500; }
.component-card p { margin: 0; color: #a1b3ab; font-size: 9px; line-height: 1.8; }
.alert { display: flex; align-items: flex-start; gap: 9px; padding: 12px 15px; border: 1px solid #dcefe4; border-radius: 7px; color: #699b82; background: #f2faf4; font-size: 10px; line-height: 1.8; }
.alert > svg { width: 15px; height: 15px; margin-top: 1px; }
.alert.info { border-color: #dfecf2; color: #779aaa; background: #f4f9fc; }
.alert.warning { border-color: #f0e7d3; color: #b39965; background: #fcf9f0; }
.alert.error { border-color: #f1dfe2; color: #be8993; background: #fcf5f6; }
.empty-state, .error-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; padding: 32px; color: #a1b3ac; text-align: center; }
.empty-state > svg, .error-state > svg { width: 42px; height: 42px; margin-bottom: 13px; color: #b9d7c7; stroke-width: 1.2; }
.empty-state h3, .error-state h3 { margin: 0 0 6px; color: #84a193; font-size: 13px; font-weight: 500; }
.empty-state p, .error-state p { max-width: 330px; margin: 0 0 15px; color: #a4b5ac; font-size: 10px; }
.error-state > svg { color: #dbb9bc; }
.prop-table { width: 100%; border-collapse: collapse; }
.prop-table th, .prop-table td { padding: 11px 13px; border-bottom: 1px solid #e9f0eb; color: #8aa096; font-size: 10px; text-align: left; }
.prop-table th { color: #75998b; background: #f8fbf9; font-weight: 500; }
.prop-table code { color: #62987e; font-size: 10px; }
.upload-zone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px; border: 1px dashed #c7ddce; border-radius: 9px; color: #91ae9c; background: #fbfdfb; font-size: 10px; cursor: pointer; transition: border-color .18s, background .18s; }
.upload-zone:hover, .upload-zone.is-dragging { border-color: #6bb590; background: #f1f9f2; }
.upload-zone svg { width: 28px; height: 28px; color: #96bba4; }
.upload-zone strong { color: #689e7e; font-size: 11px; font-weight: 500; }
.skeleton { overflow: hidden; min-height: 13px; border-radius: 4px; background: #edf3ef; }
.skeleton::after { display: block; width: 100%; height: 100%; min-height: inherit; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); content: ""; animation: skeleton-slide 1.8s ease-in-out infinite; }
@keyframes skeleton-slide { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Authentication */
.login-screen { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(400px, 1fr); min-height: 100vh; background: #f7faf8; }
.login-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 70px 12%; color: #c9e9d9; background: radial-gradient(ellipse at 70% 30%, #234f4a, #132f31 70%); }
.login-art::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(94, 167, 136, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(94, 167, 136, .05) 1px, transparent 1px); background-size: 50px 50px; content: ""; pointer-events: none; }
.login-art h1 { position: relative; z-index: 1; margin: 0 0 17px; color: #e5f7ec; font-size: 43px; font-weight: 500; letter-spacing: -1.5px; line-height: 1.4; }
.login-art p { position: relative; z-index: 1; max-width: 330px; color: #749e90; font-size: 13px; line-height: 2; }
.login-art .hero-kicker { color: #88bca3; }
.login-art #fluid-canvas { width: 100%; opacity: .5; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 45px; }
.login-card { width: 100%; max-width: 360px; margin: auto; padding: 36px 0; }
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; color: #335947; font-size: 21px; font-weight: 650; letter-spacing: -.5px; }
.login-logo .brand-mark { width: 37px; height: 39px; }
.login-card h2 { margin: 0 0 5px; color: #365d4c; font-size: 24px; font-weight: 600; letter-spacing: -.8px; }
.login-subtitle { margin: 0 0 29px; color: #91a99b; font-size: 11px; }
.login-card .form-field { margin-bottom: 19px; }
.login-card .form-field > input { min-height: 43px !important; background: #fff; }
.login-card .btn-primary { width: 100%; min-height: 43px; margin-top: 5px; }
.login-extra { display: flex; align-items: center; justify-content: space-between; margin: 15px 0; color: #92a99c; font-size: 10px; }
.login-extra label { display: flex; align-items: center; gap: 6px; }
.login-extra a { color: #65a082; }
.login-note { margin-top: 32px; padding-top: 17px; border-top: 1px solid #e3ede6; color: #a2b5a9; font-size: 9px; text-align: center; }
.login-error { margin: 12px 0; padding: 10px 13px; border: 1px solid #ecdce0; border-radius: 6px; color: #b6858f; background: #fff8f8; font-size: 10px; }

/* Feedback, overlays, and responsive behaviour */
.toast-stack { position: fixed; top: 23px; right: 27px; z-index: 10000; display: flex; flex-direction: column; gap: 9px; max-width: min(380px, calc(100vw - 40px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 230px; padding: 12px 17px; border: 1px solid #deede5; border-radius: 9px; color: #688b7a; background: rgba(255, 255, 255, .97); box-shadow: 0 6px 25px rgba(36, 91, 66, .11); font-size: 11px; backdrop-filter: blur(14px); animation: toast-enter .23s var(--ease) both; pointer-events: auto; }
.toast > svg { width: 17px; height: 17px; color: #48a980; }
.toast.error { border-color: #eddce1; color: #b17f8a; }
.toast.error > svg { color: #cb8a98; }
.toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s; }
@keyframes toast-enter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-overlay { position: fixed; inset: 0; z-index: 55; display: none; background: rgba(16, 36, 39, .35); backdrop-filter: blur(2px); }
.mobile-menu-btn { display: none; }
.layui-layer { overflow: hidden; border: 1px solid #dfe9e5; border-radius: 11px !important; box-shadow: 0 15px 50px rgba(26, 63, 50, .13) !important; }
.layui-layer-title { height: 51px; border-bottom-color: #e7eee9; color: #688577; background: #f8faf9; font-size: 12px; line-height: 51px; }
.layui-layer-content { color: #80998a; font-size: 11px !important; }
.layui-layer-btn a { border-radius: 5px; border-color: #e1eae4; color: #87a190; background: #fff; font-size: 10px; }
.layui-layer-btn .layui-layer-btn0 { border-color: #25936d; color: #fff; background: #25936d; }
.layui-layer-msg { border-radius: 8px !important; }
.layui-layer-hui { border-color: transparent; }
.layui-layer-hui .layui-layer-content { color: #fff; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border-radius: 5px; background: #d3dfdc; }
::-webkit-scrollbar-thumb:hover { background: #b9ccc4; }

/* 深色侧栏使用同色滚动轨道，保留可拖动的滚动位置提示。 */
.sidebar #main-nav { scrollbar-color: var(--theme-sidebar-muted, #4f8e84) var(--theme-sidebar-top, #17383c); }
.sidebar #main-nav::-webkit-scrollbar { width: 6px; }
.sidebar #main-nav::-webkit-scrollbar-track { background: var(--theme-sidebar-top, #17383c); }
.sidebar #main-nav::-webkit-scrollbar-thumb { border-radius: 6px; background: var(--theme-sidebar-muted, #4f8e84); }
.sidebar #main-nav::-webkit-scrollbar-thumb:hover { background: var(--theme-sidebar-active, #7bc5b4); }

@media (min-width: 1650px) {
  .workspace { padding: 36px 44px 40px; }
  .topbar { padding: 0 44px; }
  .hero-banner { min-height: 260px; }
  .hero-copy { padding: 36px 40px; }
  .hero-copy h2 { font-size: 29px; }
  .stats-grid { gap: 23px; }
  .stat-card { min-height: 151px; padding: 23px; }
}
@media (max-width: 1230px) {
  :root { --sidebar-width: 212px; }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .brand { padding-left: 10px; gap: 10px; }
  .brand-copy { font-size: 17px; }
  .nav-item.active::before { left: -14px; }
  .workspace { padding: 25px; }
  .topbar { padding: 0 25px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: 18px; }
  .stats-grid { gap: 13px; }
  .stat-card { padding: 16px; }
  .stat-icon { top: 17px; right: 15px; width: 27px; height: 27px; }
  .stat-value { font-size: 25px; }
  .sparkline { width: 52px; right: 12px; bottom: 25px; }
  .stat-change { font-size: 8px; gap: 3px; }
  .component-layout { grid-template-columns: 167px minmax(0, 1fr); gap: 18px; }
  .component-nav { padding: 9px; }
  .component-nav-item { padding-left: 9px; font-size: 10px; }
  .component-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { padding-left: 27px; max-width: 65%; }
  .hero-copy h2 { font-size: 23px; }
  .hero-copy p { max-width: 350px; font-size: 10px; }
}
@media (max-width: 1024px) {
  :root { --sidebar-width: 190px; --topbar-height: 68px; }
  .sidebar { padding-left: 10px; padding-right: 10px; }
  .brand { gap: 8px; padding-left: 8px; }
  .brand-mark { width: 31px; height: 33px; }
  .brand-copy { font-size: 15px; }
  .brand-copy small { font-size: 6px; letter-spacing: 2.2px; }
  .nav-item { padding-left: 12px; gap: 10px; font-size: 11px; }
  .nav-item.active::before { left: -10px; }
  .workspace { padding: 23px; }
  .topbar { padding: 0 23px; }
  .topbar-actions { gap: 11px; }
  .search-trigger { min-width: 135px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid > .dashboard-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 18px; }
  .dashboard-side .system-panel { margin-top: 0; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { min-height: 127px; }
  .sparkline { width: 84px; }
  .hero-copy { max-width: 72%; }
  .hero-copy h2 { font-size: 21px; }
  .hero-status { font-size: 7px; }
  .page-heading h1 { font-size: 22px; }
  .component-layout { grid-template-columns: 1fr; }
  .component-nav { position: static; display: flex; gap: 5px; overflow-x: auto; padding: 9px; }
  .component-nav h3 { display: none; }
  .component-nav-item { flex: 0 0 auto; width: auto; margin: 0; padding: 9px 11px; white-space: nowrap; }
  .component-nav-item .badge { display: none; }
  .login-art { padding: 55px 10%; }
  .login-art h1 { font-size: 34px; }
}
@media (max-width: 800px) {
  :root { --sidebar-width: 236px; --topbar-height: 64px; }
  .sidebar { padding: 26px 18px 18px; transform: translateX(-100%); transition: transform .23s var(--ease); }
  .sidebar.open, .sidebar.is-open { transform: translateX(0); }
  .sidebar.open ~ .mobile-overlay, .mobile-overlay.open, .mobile-overlay.active { display: block; }
  .brand { gap: 12px; padding-left: 12px; }
  .brand-mark { width: 36px; height: 38px; }
  .brand-copy { font-size: 18px; }
  .brand-copy small { font-size: 8px; letter-spacing: 2.6px; }
  .nav-item { padding-left: 15px; gap: 12px; font-size: 12px; }
  .nav-item.active::before { left: -18px; }
  .main-shell { margin-left: 0; }
  .mobile-menu-btn { display: inline-grid; }
  .topbar { gap: 9px; padding: 0 20px; }
  .breadcrumb { margin-right: auto; gap: 9px; }
  .topbar-actions { gap: 8px; }
  .topbar-actions .search-trigger { display: none; }
  .workspace { padding: 23px 20px; }
  .page-toolbar { padding: 16px; }
  .filter-row { flex: 1; }
  .filter-field input { width: 180px; }
  .login-screen { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-form-wrap { min-height: 100vh; padding: 35px; }
  .hero-copy { max-width: 65%; }
}
@media (max-width: 560px) {
  .topbar { padding: 0 14px; }
  .topbar-actions { gap: 3px; }
  .topbar-actions > .icon-btn { display: none; }
  .user-chip > span:not(.avatar), .user-chip > svg { display: none; }
  .breadcrumb { gap: 7px; font-size: 10px; }
  .workspace { padding: 21px 14px; }
  .page-heading { align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 21px; }
  .page-heading p { max-width: 235px; font-size: 10px; line-height: 1.8; }
  .eyebrow { font-size: 8px; }
  .heading-actions { gap: 6px; }
  .heading-actions .btn { min-height: 32px; padding: 6px 9px; font-size: 10px; }
  .heading-actions .btn-secondary { display: none; }
  .hero-banner { min-height: 251px; margin-bottom: 17px; border-radius: 12px; }
  .hero-copy { max-width: 88%; padding: 26px 20px; }
  .hero-copy h2 { font-size: 22px; }
  .hero-copy p { max-width: 260px; font-size: 10px; }
  .hero-kicker { margin-bottom: 12px; font-size: 8px; }
  .hero-actions { margin-top: 20px; gap: 11px; }
  .hero-art, #fluid-canvas { width: 90%; opacity: .35; }
  .hero-art #fluid-canvas { opacity: 1; }
  .hero-status { right: 14px; bottom: 10px; font-size: 6px; }
  .motion-toggle { top: 11px; right: 11px; padding: 4px 6px; font-size: 8px; }
  .motion-toggle span { display: none; }
  .stats-grid { gap: 11px; margin-bottom: 17px; }
  .stat-card { min-height: 127px; padding: 16px 14px; border-radius: 10px; }
  .stat-icon { top: 14px; right: 13px; width: 24px; height: 24px; border-radius: 7px; }
  .stat-icon svg { width: 13px; height: 13px; }
  .stat-label { font-size: 10px; }
  .stat-value { font-size: 24px; }
  .stat-change { font-size: 8px; white-space: nowrap; }
  .stat-change strong { font-size: 8px; }
  .sparkline { display: none; }
  .dashboard-grid { gap: 17px; }
  .dashboard-grid > .dashboard-side { display: block; }
  .dashboard-side .system-panel { margin-top: 17px; }
  .panel-heading { padding: 18px 17px 0; }
  .panel-body { padding: 17px; }
  .panel-title { font-size: 12px; }
  .chart-container { margin-right: 12px; margin-left: 8px; }
  .quick-grid { gap: 22px 12px; padding: 23px; }
  .quick-item { font-size: 10px; }
  .dashboard-bottom { margin-top: 17px; }
  .workspace-footer { justify-content: center; margin-top: 24px; font-size: 8px; }
  .workspace-footer span:last-child { display: none; }
  .page-toolbar { align-items: stretch; gap: 12px; padding: 14px; }
  .filter-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: 100%; }
  .filter-field { min-width: 0; }
  .filter-field input { width: 100%; }
  .filter-field select { min-width: 96px; }
  .filter-field label { display: none; }
  .toolbar-actions { justify-content: flex-end; width: 100%; }
  .table-wrap { padding: 0 10px 6px; }
  .table-caption { padding: 14px 14px 0; }
  .layui-table-view { overflow: visible; }
  .layui-table-cell { padding: 0 10px; }
  .layui-table-page { padding: 15px 8px; }
  .layui-laypage { flex-wrap: wrap; gap: 3px; }
  .layui-laypage .layui-laypage-limits { display: none; }
  .layui-laypage a, .layui-laypage span { padding: 0 8px; }
  .drawer-header { min-height: 79px; padding: 18px 20px; }
  .drawer-body { padding: 20px; }
  .drawer-footer { padding: 16px 20px; }
  .drawer-footer .form-hint { display: none; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .permission-list { gap: 13px 8px; padding: 13px; }
  .scope-options { grid-template-columns: 1fr; }
  .component-layout { gap: 15px; }
  .component-nav { border-radius: 9px; }
  .component-nav-item { padding: 8px; font-size: 10px; }
  .component-nav-item svg { display: none; }
  .component-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .component-card { padding: 15px; }
  .component-card h3 { font-size: 11px; }
  .demo-stage { padding: 19px 15px; }
  .example-tabs { gap: 19px; padding: 0 16px; }
  .code-panel { padding: 21px 16px; }
  .code-panel pre { padding-top: 20px; font-size: 10px; }
  .toast-stack { top: 13px; right: 14px; left: 14px; max-width: none; }
  .toast { min-width: 0; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn:hover, .quick-item:hover > span:first-child, .component-card:hover { transform: none; }
  .btn-shimmer::after { display: none; }
  .skeleton::after { display: none; }
}
.menu-icon-picker { display:grid; grid-template-columns:repeat(auto-fill,minmax(42px,1fr)); gap:8px; max-height:190px; overflow:auto; padding:12px; border:1px solid var(--line); border-radius:14px; background:linear-gradient(135deg,rgba(15,157,126,.025),transparent 50%); }
.icon-choice { width:40px; height:40px; display:grid; place-items:center; border:1px solid transparent; border-radius:11px; color:var(--muted); background:var(--surface); cursor:pointer; transition:transform .18s,box-shadow .18s,color .18s,border-color .18s; }
.icon-choice svg { width:18px; height:18px; }
.icon-choice:hover { transform:translateY(-2px); color:var(--accent); border-color:var(--accent-soft); box-shadow:0 7px 16px rgba(22,145,119,.1); }
.icon-choice.selected { color:var(--accent); border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 0 3px rgba(16,185,129,.1); }
.compact-stats { margin:0 0 18px; }
.table-toolbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:14px 18px; border-bottom:1px solid var(--line); }
.filter-chips { display:flex; gap:6px; flex:1; flex-wrap:wrap; }
.filter-chip { border:1px solid transparent; border-radius:999px; padding:7px 11px; background:transparent; color:var(--muted); cursor:pointer; font-size:12px; }
.filter-chip:hover,.filter-chip.active { color:var(--accent); border-color:var(--accent-soft); background:var(--accent-soft); }
.search-input { width:min(240px,100%); }
.settings-hero,.plugin-hero { display:flex; align-items:center; gap:18px; padding:22px 26px; margin-bottom:18px; border:1px solid rgba(13,160,130,.15); border-radius:18px; background:radial-gradient(ellipse at 5% 0%,rgba(43,190,157,.12),transparent 48%),linear-gradient(120deg,var(--surface),var(--surface-raised)); box-shadow:0 12px 32px rgba(35,100,83,.05); }
.settings-hero-icon,.plugin-orbit { display:grid; place-items:center; width:54px; height:54px; flex:none; border-radius:16px; color:var(--accent); background:var(--accent-soft); }
.settings-hero-icon svg,.plugin-orbit svg { width:25px; height:25px; }
.settings-hero b { font-size:15px; }
.settings-hero p,.plugin-hero p { margin:5px 0 0; color:var(--muted); font-size:12px; }
.settings-hero .status-pill,.plugin-hero .status-pill { margin-left:auto; }
.settings-form { padding:0 22px 20px; }
.settings-form > .panel-heading { margin:0 -22px 20px; padding:18px 22px; border-bottom:1px solid var(--line); }
.settings-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:20px; }
.inline-test { display:flex; gap:8px; align-items:center; }
.inline-test input { width:230px; }
.secure-chip { display:inline-flex; align-items:center; gap:6px; padding:7px 10px; border-radius:999px; color:var(--accent); background:var(--accent-soft); font-size:11px; }
.secure-chip svg { width:14px; height:14px; }
.settings-note { margin:13px 4px 22px; color:var(--muted); font-size:11px; line-height:1.8; }
.settings-note code,.plugin-code { color:var(--accent); }
.storage-provider-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 18px; }
.storage-provider { position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:7px; min-height:130px; padding:17px; border:1px solid var(--line); border-radius:15px; text-align:left; color:var(--text); background:var(--surface); cursor:pointer; transition:transform .2s,border-color .2s,box-shadow .2s; }
.storage-provider:hover { transform:translateY(-3px); border-color:var(--accent); box-shadow:0 12px 24px rgba(29,110,88,.09); }
.storage-provider.selected { border-color:var(--accent); background:linear-gradient(135deg,var(--accent-soft),var(--surface) 72%); box-shadow:0 0 0 3px rgba(16,185,129,.08); }
.storage-provider > span { display:grid; place-items:center; width:32px; height:32px; border-radius:10px; color:var(--accent); background:var(--accent-soft); }
.storage-provider svg { width:18px; height:18px; }
.storage-provider b { font-size:13px; }
.storage-provider small { color:var(--muted); font-size:10px; }
.storage-provider i { position:absolute; top:12px; right:12px; color:var(--accent); font-size:9px; font-style:normal; }
.storage-upload-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:19px; padding:14px; border:1px dashed var(--line); border-radius:12px; font-size:12px; }
.storage-upload-row label { font-weight:600; }
.storage-upload-row input { max-width:260px; font-size:11px; }
.storage-upload-row a { color:var(--accent); }
.plugin-hero { min-height:155px; }
.plugin-orbit { width:74px; height:74px; border-radius:50%; box-shadow:0 0 0 9px rgba(16,185,129,.06),0 0 36px rgba(16,185,129,.12); animation:plugin-orbit 5s ease-in-out infinite; }
.plugin-hero h2 { margin:5px 0 0; font-size:23px; }
.plugin-code { padding:14px; border-radius:10px; background:var(--surface-soft); font-size:12px; line-height:1.8; }
.plugin-list { display:grid; gap:13px; font-size:12px; color:var(--muted); }
.plugin-list div::before { content:'✦'; padding-right:8px; color:var(--accent); }
.system-dialog { width:min(620px,calc(100vw - 32px)); max-height:88vh; padding:0; border:1px solid var(--line); border-radius:18px; color:var(--text); background:var(--surface); box-shadow:0 28px 90px rgba(9,36,31,.3); }
.system-dialog::backdrop { background:rgba(7,23,26,.42); backdrop-filter:blur(5px); }
.system-dialog-form { display:flex; flex-direction:column; max-height:88vh; }
.system-dialog .drawer-header,.system-dialog .drawer-footer { flex:none; }
.system-dialog .drawer-body { overflow:auto; padding:20px; }
@keyframes plugin-orbit { 0%,100% { transform:translateY(0) rotate(0); } 50% { transform:translateY(-5px) rotate(8deg); } }
@media (max-width:800px) { .storage-provider-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .settings-hero,.plugin-hero { align-items:flex-start; flex-wrap:wrap; padding:18px; } .settings-hero .status-pill,.plugin-hero .status-pill { margin-left:0; } .settings-form { padding:0 14px 16px; } .settings-form > .panel-heading { margin:0 -14px 16px; padding:15px 14px; } .inline-test { flex-wrap:wrap; } }
@media (prefers-reduced-motion: reduce) { .plugin-orbit { animation:none; } }
@media print {
  .sidebar, .topbar, .heading-actions, .hero-art, #fluid-canvas, .motion-toggle, .page-toolbar, .drawer, .drawer-backdrop, .toast-stack, .workspace-footer { display: none !important; }
  .main-shell { margin: 0; }
  .workspace { max-width: none; padding: 15px; }
  body { background: #fff; }
  .panel, .surface, .stat-card { break-inside: avoid; box-shadow: none; }
  .table-action { display: none; }
}

/* Dashboard refresh: crisp blue-violet surfaces with restrained motion. */
.dashboard-intro { min-height: 202px; margin-bottom: 18px; border-color: #e0e9f8; background: linear-gradient(108deg,#f4f8ff 0%,#f7f8ff 58%,#f1f1ff 100%); }
.dashboard-intro::before { background-image: linear-gradient(rgba(89,124,190,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(89,124,190,.055) 1px,transparent 1px); }
.dashboard-intro .hero-copy { padding: 28px 34px; }
.dashboard-intro .hero-kicker { color: #6482ca; }
.dashboard-intro .hero-copy h2 { margin: 9px 0; font-size: clamp(21px,2.2vw,29px); letter-spacing: -.8px; }
.dashboard-intro .hero-copy p { color: #73829b; }
.dashboard-intro .hero-art { opacity: .38; }
.dashboard-intro .hero-status { display: none; }
.dashboard-live { position: absolute; z-index: 2; top: 20px; right: 22px; display: flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #e3eaf7; border-radius: 999px; background: #ffffffc9; color: #586c8c; font-size: 10px; backdrop-filter: blur(10px); }
.dashboard-live small { padding-left: 7px; border-left: 1px solid #e0e7f2; color: #8997ac; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #29b987; box-shadow: 0 0 0 4px #29b98719; }
.dashboard-intro .motion-toggle { right: 20px; bottom: 17px; border-color: #e3eaf5; background: #ffffffbf; color: #6e7f9a; }
.dashboard-metrics { gap: 14px; margin-bottom: 18px; }
.dashboard-metrics .stat-card { min-height: 123px; padding: 17px 19px; border-color: #e6ebf4; border-radius: 15px; box-shadow: 0 8px 26px #324e8010; transition: transform .22s,box-shadow .22s; }
.dashboard-metrics .stat-card:hover { transform: translateY(-3px); box-shadow: 0 15px 32px #324e8018; }
.dashboard-metrics .stat-icon { width: 35px; height: 35px; border-radius: 11px; }
.dashboard-metrics .stat-label { margin-top: 9px; color: #8290a6; }
.dashboard-metrics .stat-value { font-size: 25px; letter-spacing: -.7px; }
.dashboard-metrics .stat-change { color: #8e9bb0; }
.dashboard-metrics .metric-blue .stat-icon { color: #4e81e6; background: #edf3ff; }
.dashboard-metrics .metric-cyan .stat-icon { color: #20aab2; background: #e9f9fa; }
.dashboard-metrics .metric-violet .stat-icon { color: #8967db; background: #f2edff; }
.dashboard-metrics .metric-amber .stat-icon { color: #dc9a37; background: #fff7e8; }
.dashboard-grid { gap: 17px; }
.dashboard-grid .panel { border-color: #e7ecf4; border-radius: 15px; box-shadow: 0 8px 26px #324e800a; }
.dashboard-grid .panel-heading { padding: 17px 19px; }
.dashboard-grid .panel-title { color: #263753; }
.dashboard-grid .panel-subtitle { color: #93a0b4; }
.dashboard-grid .dashboard-chart-panel .chart-container { margin-top: 8px; }
.dashboard-grid .dashboard-side { display: grid; gap: 14px; }
.dashboard-side .panel-heading > svg { color: #8797b0; }
.dashboard-side .quick-grid { padding: 5px 13px 13px; }
.dashboard-side .quick-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 11px; color: #556783; transition: background .18s,color .18s,transform .18s; }
.dashboard-side .quick-item > span:first-child { color: #5d83d5; background: #eef3ff; }
.dashboard-side .quick-item > svg:last-child { width: 13px; height: 13px; margin-left: auto; color: #a3aec0; }
.dashboard-side .quick-item:hover { transform: translateX(2px); color: #376ed1; background: #f4f7ff; }
.dashboard-side .system-row { border-bottom-color: #f0f2f7; }
.dashboard-side .system-row > span:first-child { color: #8a97ab; }
.developer-card { background: radial-gradient(ellipse at 100% 0,#eeedff 0,transparent 52%),#fff !important; }
.developer-card h3 { margin: 8px 0 3px; color: #2d3d5a; font-size: 14px; }
.developer-card p { color: #8491a6; font-size: 11px; line-height: 1.8; }
.dashboard-bottom .mini-table th { color: #8a98ad; }
.dashboard-bottom .mini-table td { color: #4d5e78; }
.dashboard-bottom .cell-avatar { color: #547be0; background: #edf2ff; }
.dashboard-live,.dashboard-metrics .stat-card,.dashboard-grid .panel { animation: dashboard-rise .5s both; }
.dashboard-metrics .stat-card:nth-child(2) { animation-delay: .04s; }
.dashboard-metrics .stat-card:nth-child(3) { animation-delay: .08s; }
.dashboard-metrics .stat-card:nth-child(4) { animation-delay: .12s; }
@keyframes dashboard-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width:800px) { .dashboard-intro { min-height: 190px; } .dashboard-live { top: auto; right: 13px; bottom: 12px; } .dashboard-live small { display: none; } .dashboard-grid .dashboard-side { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion:reduce) { .dashboard-live,.dashboard-metrics .stat-card,.dashboard-grid .panel { animation:none; } .dashboard-metrics .stat-card:hover,.dashboard-side .quick-item:hover { transform:none; } }
