:root {
  color-scheme: light;
  --ink: #242335;
  --muted: #615f72;
  --faint: #737083;
  --line: #e6e4ed;
  --paper: #f6f5fa;
  --white: #fff;
  --night: #1e1b32;
  --accent: #533bb5;
  --accent-dark: #3e2796;
  --focus: #8a73ea;
  --radius: 16px;
  font: 14px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(27px, 3vw, 36px); letter-spacing: -.04em; line-height: 1.2; }
h2 { font-size: 18px; line-height: 1.35; letter-spacing: -.02em; }
small { font-size: 12px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.skip { position: fixed; z-index: 10; top: 12px; left: 12px; background: var(--white); border-radius: 8px; padding: 10px 14px; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.shell { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100dvh; }
.rail { position: sticky; top: 0; height: 100dvh; overflow: auto; background: var(--night); color: #d3cde8; padding: 29px 17px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.rail .brand { margin: 0 8px 31px; }
.brand strong { display: block; font-size: 20px; font-weight: 750; line-height: 1.06; letter-spacing: .045em; }
.brand small { display: block; margin-top: 5px; color: #c7bddf; font-size: 11px; letter-spacing: .15em; }
.brand-mark { flex: 0 0 37px; height: 37px; position: relative; border-radius: 11px; background: #d8ccff; transform: rotate(-6deg); }
.brand-mark::before { content: ""; position: absolute; width: 20px; height: 10px; left: 8px; top: 18px; border-radius: 12px 12px 4px 4px; background: #5138a9; }
.brand-mark::after { content: ""; position: absolute; width: 7px; height: 7px; left: 19px; top: 9px; border-radius: 50%; background: #5138a9; }
.navigation { display: grid; gap: 5px; }
.navigation a { min-height: 43px; display: flex; align-items: center; gap: 11px; padding: 8px 11px; color: inherit; border-radius: 9px; font-weight: 560; }
.navigation a:hover { background: #302948; text-decoration: none; }
.navigation a[aria-current] { color: #fff; background: #40325f; box-shadow: inset 3px 0 #c3adff; }
.navigation a[aria-current] .nav-icon { color: #d2beff; }
.nav-caption { color: #ada4c5; margin: 14px 12px 3px; font-size: 11px; letter-spacing: .15em; }
.nav-icon { display: inline-block; flex: 0 0 17px; margin: 0; width: 17px; height: 17px; position: relative; color: inherit; }
.nav-icon::before, .nav-icon::after { content: ""; position: absolute; }
.icon-grid::before { inset: 2px auto auto 2px; width: 5px; height: 5px; background: currentColor; border-radius: 1px; box-shadow: 8px 0 currentColor, 0 8px currentColor, 8px 8px currentColor; }
.icon-book::before { inset: 2px 2px 2px 2px; border: 1.5px solid; border-radius: 2px; }
.icon-book::after { right: 5px; top: 3px; height: 10px; border-left: 1.5px solid; }
.icon-play::before { inset: 2px 1px; border: 1.5px solid; border-radius: 4px; }
.icon-play::after { left: 7px; top: 5px; border: solid transparent; border-width: 3.5px 0 3.5px 5px; border-left-color: currentColor; }
.icon-upload::before { inset: 8px 2px 2px; border: 1.5px solid; border-top: 0; border-radius: 2px; }
.icon-upload::after { left: 6px; top: 3px; width: 6px; height: 6px; border-top: 1.5px solid; border-left: 1.5px solid; transform: rotate(45deg); }
.icon-device::before { inset: 1px 4px; border: 1.5px solid; border-radius: 3px; }
.icon-device::after { left: 7px; right: 7px; bottom: 4px; border-bottom: 1.5px solid; }
.icon-person::before { left: 6px; top: 2px; width: 6px; height: 6px; border: 1.5px solid; border-radius: 50%; }
.icon-person::after { inset: 9px 2px 2px; border: 1.5px solid; border-radius: 9px 9px 3px 3px; }
.icon-log::before { inset: 2px 2px 2px 3px; border: 1.5px solid; border-radius: 2px; }
.icon-log::after { left: 6px; top: 6px; width: 6px; height: 1px; background: currentColor; box-shadow: 0 3px currentColor; }

.workspace { min-width: 0; }
.topbar { min-height: 64px; padding: 12px clamp(20px, 3.1vw, 48px); background: var(--white); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.workspace-name { font-size: 13px; color: var(--muted); white-space: nowrap; }
.account { display: flex; align-items: center; gap: 9px; min-width: 0; }
.account-mail { color: var(--ink); max-width: 34vw; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; font-size: 13px; }
.avatar { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; background: #ede7fc; color: #604ba0; }
.text-button { white-space: nowrap; border: 0; padding: 4px 6px; background: transparent; color: var(--muted); }
.text-button:hover { color: var(--accent); }
.main { width: min(100%, 1500px); margin-inline: auto; padding: 29px clamp(20px, 3.1vw, 48px) 48px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.page-head p, .section-head p, .table-title p { color: var(--muted); margin-top: 6px; }
.page-actions, .form-actions, .filter-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 14px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 680; white-space: nowrap; }
.button:hover { text-decoration: none; }
.primary { color: #fff; background: var(--accent); }
.primary:hover { background: var(--accent-dark); }
.secondary { background: var(--white); border-color: #dbd6e8; color: #4b387f; }
.secondary:hover { background: #f0ebfd; border-color: #c6b8ed; }
.small { min-height: 33px; padding: 5px 10px; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.back { display: inline-block; font-weight: 650; margin-bottom: 12px; }
.notice, .warning, .callout { padding: 11px 14px; border-radius: 9px; }
.notice { margin-bottom: 17px; background: #e4f4ec; color: #215840; font-weight: 650; }
.notice span { margin-right: 6px; }
.warning { background: #fff1ed; color: #8b3c2d; }
.callout { background: #f0ebfc; color: #443285; }
.callout[data-alert] { background: #fff1dc; color: #75480b; }

.hero { isolation: isolate; position: relative; overflow: hidden; display: grid; align-items: center; min-height: 208px; padding: 23px 30px; border-radius: 18px; background: linear-gradient(112deg, #2e244c, #3c2a63 70%, #4d3583); color: #fff; }
.hero-copy { z-index: 1; }
.hero-kicker { display: inline-flex; gap: 7px; align-items: center; color: #d9c8fc; font-weight: 690; font-size: 11px; letter-spacing: .13em; }
.hero h2 { margin-top: 7px; font-size: clamp(23px, 3vw, 36px); letter-spacing: -.04em; overflow-wrap: anywhere; }
.hero p { margin: 7px 0 17px; color: #e2d9f5; }
.hero p span { padding: 0 4px; }
.hero-button { min-height: 34px; padding: 6px 11px; color: #332251; background: #ece1ff; }
.hero-button:hover { background: #fff; }
.hero > .island-art { position: absolute; inset: 0 0 0 auto; width: min(40%, 400px); }
.island-art {
  --art-size: clamp(125px, 25vw, 302px);
  background-image: radial-gradient(#ba9cf356 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 33%);
}
.island-art b { position: absolute; display: block; }
.island-art b:nth-child(1) { border: 1px solid #d6bbfa5a; width: var(--art-size); height: var(--art-size); right: 12%; top: 13%; border-radius: 50%; }
.island-art b:nth-child(2) { width: calc(var(--art-size) * .77); height: calc(var(--art-size) * .41); right: 17%; top: 53%; border-radius: 100% 100% 15% 15% / 120% 120% 22% 22%; background: linear-gradient(115deg, #8160c9, #b99bea); transform: rotate(-13deg); }
.island-art b:nth-child(3) { width: calc(var(--art-size) * .21); aspect-ratio: 1; right: 23%; top: 20%; border-radius: 50%; background: #facf88; box-shadow: 0 0 33px #eaaf513b; }
.island-art b:nth-child(4) { width: calc(var(--art-size) * .35); height: 1px; right: 5%; top: 77%; background: #e0c9ff7a; transform: rotate(-13deg); }
.metrics { margin-block: 16px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.metric, .panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.metric { display: grid; grid-template-columns: 34px minmax(0,1fr); align-content: start; align-items: center; gap: 2px 9px; padding: 15px 15px 13px; }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.tone-violet { background: #f1eaff; color: #6443b3; }
.tone-mint { background: #e6f6eb; color: #287052; }
.tone-amber { background: #fff0d5; color: #945d0d; }
.tone-blue { background: #e7efff; color: #355ea8; }
.metric-label { font-size: 13px; color: var(--muted); font-weight: 680; }
.metric strong { grid-column: 1 / -1; margin-top: 5px; font-size: clamp(23px, 3vw, 33px); line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric small { grid-column: 1 / -1; color: var(--faint); }
.overview-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 14px; }
.panel + .panel { margin-top: 15px; }
.overview-grid .panel, .policy-summary .panel { margin-top: 0; }
.panel-pad { padding: 19px; }
.section-head, .table-title { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 9px; margin-bottom: 15px; }
.section-head a { flex-shrink: 0; font-size: 13px; font-weight: 650; }
.section-head p, .table-title p { font-size: 13px; }
.table-title { padding: 17px 19px; margin: 0; align-items: center; }
.timeline, .bars { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 9px; position: relative; padding-block: 6px; }
.timeline li + li { border-top: 1px solid var(--line); }
.timeline strong, .timeline span { display: block; overflow-wrap: anywhere; }
.timeline span, .timeline time { color: var(--muted); font-size: 12px; }
.timeline time { white-space: nowrap; }
.bars li { display: grid; grid-template-columns: auto minmax(0,1fr) 28px; align-items: center; gap: 10px; }
.bars strong { text-align: right; font-variant-numeric: tabular-nums; }
meter { width: 100%; height: 9px; appearance: none; border: 0; border-radius: 8px; background: #f2edfa; }
meter::-webkit-meter-bar { border: 0; border-radius: 8px; background: #f2edfa; }
meter::-webkit-meter-optimum-value { border-radius: 8px; background: #8868d8; }
meter::-moz-meter-bar { border-radius: 8px; background: #8868d8; }
.badge { display: inline-block; padding: 3px 8px; font-size: 12px; line-height: 1.35; font-weight: 650; border-radius: 6px; white-space: nowrap; }
.success { background: #e6f5ec; color: #256344; }
.neutral { background: #ede8fa; color: #5d4395; }
.subtle { background: #efedf2; color: #555262; }
.attention { background: #fff1d7; color: #75480a; }

.filters { display: grid; grid-template-columns: minmax(150px,1.4fr) minmax(145px,1fr) minmax(128px,.8fr) auto; align-items: end; gap: 10px; padding: 15px 17px; }
.user-filters { grid-template-columns: minmax(200px, 330px) auto auto; justify-content: start; }
.table-scroll { overflow-x: auto; }
table { width: 100%; text-align: left; border-collapse: collapse; }
th, td { padding: 12px 17px; vertical-align: middle; border-block-start: 1px solid var(--line); overflow-wrap: anywhere; }
th { background: #f9f8fc; color: var(--muted); font-size: 12px; font-weight: 680; white-space: nowrap; }
tbody tr:hover { background: #fcfaff; }
td strong { font-weight: 690; }
.row-meta { display: block; margin-top: 4px; color: var(--faint); }
td .row-meta + .badge { margin-top: 5px; }
.release-notes { white-space: pre-line; max-width: 380px; }
.import-link { max-width: 320px; font-size: 12px; overflow-wrap: anywhere; color: var(--muted); }
.pagination { padding: 13px 17px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.empty { min-height: 174px; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 22px; text-align: center; color: var(--muted); }
.empty.compact { min-height: 128px; }
.empty strong { color: var(--ink); }
.empty .nav-icon { margin-bottom: 6px; transform: scale(1.3); color: var(--accent); }

label { display: grid; gap: 6px; min-width: 0; align-content: start; font-size: 13px; font-weight: 660; }
label small { color: var(--muted); font-weight: 400; }
input:not([type="checkbox"], [type="hidden"]), select, textarea { width: 100%; min-width: 0; min-height: 40px; border: 1px solid #d8d3e4; border-radius: 8px; padding: 8px 10px; background: var(--white); color: var(--ink); font-weight: 450; }
input::placeholder, textarea::placeholder { color: #777285; }
textarea { resize: vertical; }
[hidden] { display: none !important; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; }
.stack { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; gap: 15px; }
.span-all { grid-column: 1 / -1; }
.editor { max-width: 920px; }
.publish-box { border: 1px solid var(--line); border-radius: 10px; background: #faf9fd; padding: 12px; }
.check { display: flex; align-items: center; gap: 8px; }
.publish-box p { color: var(--muted); margin: 6px 0 0 25px; font-size: 13px; }
.policy-summary { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; margin-bottom: 15px; }
.policy-summary strong { display: block; margin: 4px 0; font-size: 23px; }
.disclosure summary { padding: 15px 19px; font-weight: 700; }
.disclosure form { padding: 4px 19px 19px; }
.markdown-input { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.steps { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 15px; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 7px; padding: 6px 10px; color: var(--muted); }
.steps li[aria-current] { color: var(--accent-dark); font-weight: 700; border-radius: 9px; background: #ece5fa; }
.steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid #cfc4e7; }
.error-wrap { padding: 40px 14px; }
.error-panel { max-width: 580px; margin: 0 auto; }
.error-panel p { margin: 12px 0 17px; }

.login-layout { min-height: 100dvh; display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); background: #fcfbfe; }
.login-art { position: relative; isolation: isolate; overflow: hidden; padding: clamp(25px,5vw,65px); display: flex; flex-direction: column; justify-content: space-between; min-height: 480px; background: radial-gradient(ellipse at 78% 65%, #594080, transparent 66%), #281f40; color: #fff; }
.login-intro { margin-block: 55px; }
.login-intro p { font-size: clamp(40px, 5.8vw, 88px); font-weight: 750; line-height: 1.06; letter-spacing: -.075em; }
.login-emblem { position: absolute; pointer-events: none; opacity: .7; z-index: -1; inset: 19% -9% 5% 20%; --art-size: clamp(105px,32vw,450px); }
.login-detail { color: #dccbf3; font-size: 13px; }
.login-side { display: grid; place-items: center; padding: 28px; }
.login-form { width: min(100%, 390px); }
.login-form h1 { margin-bottom: 8px; }
.login-form .warning { margin-top: 15px; }
.login-form form { margin-top: 24px; }
.login-form input:not([type="hidden"]) { min-height: 45px; }
.login-form button { min-height: 44px; justify-content: space-between; }
@media (max-width: 1010px) {
  .shell { grid-template-columns: 182px minmax(0,1fr); }
  .metric { padding-inline: 12px; gap: 2px 5px; }
  .filters:not(.user-filters) { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .filters .search-field { grid-column: 1 / -1; }
  .user-filters .search-field { grid-column: auto; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .rail { position: static; width: 100%; height: auto; padding: 15px 16px 9px; }
  .rail .brand { margin: 0 0 11px; }
  .navigation { display: flex; gap: 6px; flex-wrap: wrap; }
  .navigation a { flex-shrink: 0; min-height: 34px; padding: 4px 8px; font-size: 12px; }
  .navigation .nav-icon, .nav-caption { display: none; }
  .topbar { min-height: 48px; padding: 7px 16px; }
  .account .avatar { display: none; }
  .main { padding: 20px 15px 32px; }
  .overview-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .login-layout { display: block; }
  .login-art { min-height: 0; padding: 22px; }
  .login-intro { margin-block: 22px 10px; }
  .login-intro p { font-size: 33px; }
  .login-detail { display: none; }
  .login-side { padding-block: 36px; }
}
@media (max-width: 450px) {
  .hero { padding: 19px; }
  .hero > .island-art { opacity: .48; }
  .form-grid { grid-template-columns: 1fr; }
  .user-filters { grid-template-columns: minmax(0,1fr) auto auto; }
  .user-filters .search-field { grid-column: 1/-1; }
  .filters:not(.user-filters) { grid-template-columns: minmax(0,1fr); }
  .table-title, .panel-pad { padding-inline: 14px; }
  th, td { padding-inline: 13px; }
  .timeline li { grid-template-columns: minmax(0,1fr); gap: 1px; }
}
