:root {
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #17202a;
  background: #f4f6f8;
  font-size: 16px;
  --canvas: #f4f6f8;
  --panel: #fff;
  --dark: #0b1017;
  --text: #17202a;
  --muted: #5d6975;
  --border: #d9e0e7;
  --cyan: #1596a8;
  --amber: #d89a24;
  --success: #23845b;
  --danger: #c13f3f;
  --info: #2d6fa3;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }

.site-header {
  height: 64px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111820;
  color: #eef3f6;
  border-bottom: 1px solid #28333d;
}
.brand, .auth-corner-brand { font-weight: 760; font-size: 20px; }
.brand span, .auth-corner-brand span { color: #57b7c3; }
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.site-header nav form { margin: 0; }
.text-command { padding: 0; border: 0; color: inherit; background: transparent; }
.page-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 40px 0 64px; }

/* Authentication scene */
.auth-page { overflow-x: hidden; background: var(--dark); color: #edf3f5; }
.workspace-icon { overflow:hidden; padding:0; background:transparent; border:0; }.workspace-icon img { display:block; width:48px; height:48px; border-radius:13px; box-shadow:0 8px 18px rgba(12,28,43,.16); }
.auth-main { min-height: 100vh; width: 100%; display: grid; place-items: center; padding: 88px 24px 44px; position: relative; isolation: isolate; }
.auth-corner-brand { position: fixed; z-index: 10; top: 24px; left: 28px; color: #f3f7f8; }
.identity-scene { position: fixed; z-index: 0; inset: 0; overflow: hidden; background: #0b1017; pointer-events: none; }
.identity-scene::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 38%, rgba(27, 117, 128, .16), transparent 34%), linear-gradient(125deg, rgba(5, 10, 15, .08), rgba(10, 26, 34, .55)); }
.scene-horizon { position: absolute; left: 4%; right: 4%; top: 62%; height: 1px; background: linear-gradient(90deg, transparent, rgba(91, 179, 188, .42), transparent); box-shadow: 0 0 30px rgba(52, 163, 174, .24); }
.market-pulse { position: absolute; left: 6%; right: 6%; bottom: 7%; height: 25%; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2.8vw; align-items: end; opacity: .2; }
.market-pulse i { height: var(--pulse-height, 42%); border-left: 1px solid #50a9b5; border-top: 1px solid rgba(80, 169, 181, .5); animation: pulse-bars 4s ease-in-out infinite alternate; }
.market-pulse i:nth-child(2) { height: 68%; animation-delay: -.8s; }.market-pulse i:nth-child(3) { height: 34%; animation-delay: -1.6s; }.market-pulse i:nth-child(4) { height: 82%; animation-delay: -2.2s; }.market-pulse i:nth-child(5) { height: 55%; animation-delay: -1.1s; }.market-pulse i:nth-child(6) { height: 92%; animation-delay: -2.8s; }.market-pulse i:nth-child(7) { height: 63%; animation-delay: -.4s; }.market-pulse i:nth-child(8) { height: 76%; animation-delay: -1.9s; }
@keyframes pulse-bars { to { transform: scaleY(.72); opacity: .48; } }
.scene-grid {
  position: absolute;
  left: -15%; right: -15%; top: 42%; height: 90%;
  background-image: linear-gradient(rgba(81, 133, 142, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(81, 133, 142, .12) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(760px) rotateX(62deg);
  transform-origin: top center;
  opacity: .72;
}
.identity-core { position: absolute; width: 112px; height: 112px; left: calc(31% - 56px); top: calc(40% - 56px); display: grid; place-items: center; }
.identity-core b { position: relative; z-index: 2; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #75c5cd; background: #101b22; color: #f5f8f8; font-size: 26px; font-weight: 680; box-shadow: 0 0 32px rgba(21, 150, 168, .28); }
.core-ring { position: absolute; inset: 0; border: 1px solid rgba(105, 190, 199, .36); transform: rotate(45deg); }
.ring-b { inset: 17px; border-color: rgba(216, 154, 36, .52); transform: rotate(45deg); }
.workspace-node { position: absolute; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid #52636c; background: #101820; color: #b9c5ca; }
.workspace-node span { font-size: 15px; font-weight: 720; }
.workspace-node i { position: absolute; width: 7px; height: 7px; right: -4px; top: -4px; border-radius: 50%; background: #23845b; box-shadow: 0 0 10px rgba(35, 132, 91, .8); }
.node-market { left: 20%; top: 24%; }
.node-novel { right: 18%; top: 28%; }
.node-system { right: 25%; bottom: 16%; }
.node-system i { background: #b58228; box-shadow: 0 0 10px rgba(181, 130, 40, .75); }
.signal { position: absolute; height: 1px; background: #249aac; transform-origin: left center; opacity: .62; }
.signal-market { width: 30%; left: 22%; top: 28%; transform: rotate(16deg); }
.signal-novel { width: 30%; left: 51%; top: 42%; transform: rotate(-22deg); }
.signal-system { width: 28%; left: 51%; top: 44%; transform: rotate(30deg); background: #b58228; }
.scene-brand { position: absolute; width: 360px; left: calc(31% - 180px); top: calc(40% + 80px); display: grid; text-align: center; gap: 6px; }
.scene-brand small { color: #d5a84f; font-size: 10px; font-weight: 700; }
.scene-brand strong { font-size: 32px; font-weight: 660; }
.scene-brand span { color: #8e9ca3; font-size: 12px; }
.intro-skip { position: fixed; z-index: 20; right: 24px; top: 20px; width: 40px; height: 40px; border: 1px solid rgba(215, 229, 232, .25); background: #111820; color: #e9f0f1; font-size: 26px; line-height: 1; }

.auth-card { width: min(420px, 100%); position: relative; z-index: 4; padding: 30px; border: 1px solid rgba(189, 215, 220, .28); border-radius: 6px; color: #edf4f5; background: rgba(8, 17, 24, .44); box-shadow: 0 28px 72px rgba(0, 0, 0, .38); backdrop-filter: blur(18px) saturate(120%); }
.auth-main:not(.register-main) { justify-items: end; padding-right: max(7vw, 48px); }
.auth-card-compact { width: min(390px, 100%); }
.auth-card-heading { display: grid; gap: 7px; margin-bottom: 24px; }
.auth-card-heading p { margin: 0; color: var(--cyan); font-size: 11px; font-weight: 760; }
.auth-card-heading h1 { margin: 0; font-size: 27px; line-height: 1.25; letter-spacing: 0; }
.auth-card-heading span { color: #aebdc2; font-size: 14px; line-height: 1.6; }
.auth-form { display: grid; gap: 9px; }
.auth-form label, .auth-form legend { color: #dce6e8; font-size: 13px; font-weight: 650; }
.auth-form input, .auth-form textarea { width: 100%; min-height: 46px; border: 1px solid rgba(184, 209, 214, .35); border-radius: 5px; padding: 10px 12px; color: #f5f8f8; background: rgba(3, 10, 15, .38); outline: none; caret-color: #72c8d1; }
.auth-form input:-webkit-autofill { -webkit-text-fill-color: #f5f8f8; transition: background-color 9999s ease-out; }
.auth-form textarea { min-height: 104px; resize: vertical; }
.auth-form input:focus, .auth-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(21, 150, 168, .13); }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-toggle { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border: 0; background: transparent; }
.password-toggle span { position: absolute; width: 18px; height: 12px; left: 10px; top: 13px; border: 1.5px solid #64737b; border-radius: 50%; }
.password-toggle span::after { content: ""; position: absolute; width: 4px; height: 4px; left: 5.5px; top: 2.5px; border-radius: 50%; background: #64737b; }
.password-toggle.showing span::before { content: ""; position: absolute; width: 22px; height: 1.5px; left: -3px; top: 5px; background: #64737b; transform: rotate(-35deg); }
.primary-command { min-height: 46px; margin-top: 10px; border: 1px solid #117f8e; border-radius: 6px; background: #117f8e; color: #fff; font-weight: 700; }
.primary-command:hover { background: #0e6f7c; }
.auth-links { margin-top: 18px; display: flex; justify-content: space-between; gap: 14px; color: #83cbd3; font-size: 13px; }
.form-message { min-height: 42px; margin: 0 0 16px; padding: 10px 12px; border: 1px solid; border-radius: 6px; font-size: 13px; line-height: 1.55; }
.form-message.error { color: #8d2e2e; border-color: #e5bcbc; background: #fff5f5; }
.form-message.success { color: #1d6b49; border-color: #b9ddcc; background: #f1faf6; }
.modal-open { overflow: hidden; }
.action-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 14px; }
.action-modal[hidden] { display: none; }
.action-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 13, 18, .62); backdrop-filter: blur(6px); }
.action-modal-panel { position: relative; z-index: 1; width: min(560px, calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow: auto; padding: 18px; border: 1px solid rgba(191, 202, 207, .9); border-radius: 12px; background: #fff; box-shadow: 0 24px 80px rgba(12, 18, 22, .28); }
.action-modal-header { display: flex; justify-content: space-between; gap: 14px; align-items: start; margin-bottom: 10px; }
.action-modal-header h2 { margin: 0; font-size: 18px; }
.action-modal-close { width: 36px; height: 36px; border: 0; border-radius: 18px; background: #eef3f5; color: #30404a; font-size: 22px; line-height: 1; }
.action-modal-message { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.action-modal-form { display: grid; gap: 12px; }
.action-modal-form label { display: grid; gap: 6px; color: var(--text); font-size: 13px; font-weight: 650; }
.action-modal-form textarea { width: 100%; min-height: 102px; resize: vertical; padding: 11px 12px; border: 1px solid #bac5cc; border-radius: 8px; background: #fff; }
.action-modal-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(21, 150, 168, .13); outline: none; }
.action-modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.action-modal-actions button { min-height: 40px; padding: 0 14px; border-radius: 8px; }
.action-modal-actions .primary-command { margin-top: 0; }
.auth-footnote { position: fixed; z-index: 4; bottom: 18px; left: 24px; right: 24px; margin: 0; display: flex; justify-content: center; gap: 16px; color: #849399; font-size: 11px; }
.auth-footnote a { color: #a8b5b9; }
.otp-input { text-align: center; font-size: 24px !important; font-variant-numeric: tabular-nums; }

/* Intro timing: 4 seconds, hard-stopped by JavaScript at 5 seconds. */
.intro-pending .auth-card, .intro-pending .auth-footnote { opacity: 0; transform: translateY(14px); }
.intro-pending .scene-grid { opacity: 0; }
.intro-pending .identity-core { opacity: 0; transform: scale(.72) rotate(-12deg); }
.intro-pending .workspace-node { opacity: 0; transform: scale(.7); }
.intro-pending .signal { transform: scaleX(0); }
.intro-pending .scene-brand { opacity: 0; transform: translateY(8px); }
.intro-running .scene-grid { animation: grid-in .5s ease-out forwards, grid-drift 10s .5s linear infinite; }
.intro-running .identity-core { animation: core-in .9s .4s ease-out forwards; }
.intro-running .ring-a { animation: ring-turn 8s 1.2s linear infinite; }
.intro-running .ring-b { animation: ring-turn-reverse 6s 1.2s linear infinite; }
.intro-running .signal-market { animation: signal-in .55s 1s ease-out forwards; }
.intro-running .signal-novel { animation: signal-in .55s 1.45s ease-out forwards; }
.intro-running .signal-system { animation: signal-in .55s 1.9s ease-out forwards; }
.intro-running .node-market { animation: node-in .35s 1.35s ease-out forwards; }
.intro-running .node-novel { animation: node-in .35s 1.8s ease-out forwards; }
.intro-running .node-system { animation: node-in .35s 2.25s ease-out forwards; }
.intro-running .scene-brand { animation: brand-in .7s 2.35s ease-out forwards; }
.intro-running .auth-card { animation: card-in .72s 3.15s ease-out forwards; }
.intro-running .auth-footnote { animation: brand-in .6s 3.4s ease-out forwards; }
.intro-complete .auth-card, .intro-complete .auth-footnote, .intro-complete .identity-core, .intro-complete .workspace-node, .intro-complete .scene-brand, .intro-complete .scene-grid { opacity: 1; transform: none; }
.intro-complete .signal { opacity: .62; }
.intro-complete .scene-grid { animation: grid-drift 16s linear infinite; }
.intro-complete .ring-a { animation: ring-turn 18s linear infinite; }
.intro-complete .ring-b { animation: ring-turn-reverse 14s linear infinite; }
@keyframes grid-in { to { opacity: .72; } }
@keyframes grid-drift { from { background-position: 0 0; } to { background-position: 0 54px; } }
@keyframes core-in { to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes signal-in { from { transform: scaleX(0); } }
@keyframes node-in { to { opacity: 1; transform: scale(1); } }
@keyframes brand-in { to { opacity: 1; transform: translateY(0); } }
@keyframes card-in { to { opacity: 1; transform: translateY(0); } }
@keyframes ring-turn { to { transform: rotate(405deg); } }
@keyframes ring-turn-reverse { to { transform: rotate(-315deg); } }
.auth-static .identity-scene { opacity: .55; }
.auth-static .identity-core { left: calc(50% - 56px); top: 14%; }
.auth-static .scene-grid { top: 24%; }
.auth-static .scene-grid { animation: grid-drift 12s linear infinite; }
.auth-static .ring-a { animation: ring-turn 12s linear infinite; }
.auth-static .ring-b { animation: ring-turn-reverse 9s linear infinite; }

/* Registration */
.register-main { padding-top: 96px; padding-bottom: 56px; }
.register-card { width: min(560px, 100%); }
.segment-control { height: 42px; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; margin-bottom: 20px; border: 1px solid rgba(189, 215, 220, .25); border-radius: 5px; background: rgba(3, 10, 15, .28); }
.segment-control button { border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; }
.segment-control button[aria-selected="true"] { color: #fff; background: rgba(34, 143, 158, .72); box-shadow: 0 1px 8px rgba(10, 22, 35, .3); }
.register-panel[hidden] { display: none; }
.register-panel fieldset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 2px 0; padding: 12px; border: 1px solid rgba(189, 215, 220, .25); border-radius: 5px; }
.register-panel legend { padding: 0 5px; }
.check-row { min-height: 36px; display: flex; align-items: center; gap: 7px; font-weight: 500 !important; }
.check-row input { width: 16px; min-height: 16px; margin: 0; }
.disclaimer-check { align-items: flex-start; color: #c8d5d8; font-size: 12px; line-height: 1.6; }
.disclaimer-check input { margin-top: 3px; flex: 0 0 16px; }
.disclaimer-check a { color: #84d2da; text-decoration: underline; text-underline-offset: 3px; }
.field-help { margin: -2px 0 2px; color: #91a2a8; font-size: 12px; }

/* Portal */
.portal-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.portal-heading p { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.portal-heading h1 { margin: 0; font-size: 28px; letter-spacing: 0; }
.security-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.security-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.mobile-nav { display: none; }
.workspace-list { margin-top: 26px; border-top: 1px solid var(--border); }
.workspace-row { min-height: 88px; display: grid; grid-template-columns: 48px minmax(180px, 1.1fr) minmax(180px, 1.4fr) 120px 100px; gap: 18px; align-items: center; border-bottom: 1px solid var(--border); }
.workspace-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #aebbc2; border-radius: 6px; background: #fff; color: #315b64; font-weight: 750; }
.workspace-name strong, .workspace-name span { display: block; }
.workspace-name span, .workspace-description { color: var(--muted); font-size: 13px; line-height: 1.5; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #88949a; }
.status.active::before { background: var(--success); }
.status.warning::before { background: var(--amber); }
.status.danger::before { background: #c33f3f; box-shadow: 0 0 0 3px rgba(195, 63, 63, .12); }
.workspace-states { display: grid; gap: 7px; align-content: center; }
.row-command { min-height: 38px; display: inline-grid; place-items: center; border: 1px solid #aebbc2; border-radius: 6px; background: #fff; font-size: 13px; }
.row-command.primary { border-color: #177d8b; background: #177d8b; color: #fff; }
.row-command.disabled { pointer-events: none; color: #8a9499; background: #eceff1; }
.admin-entry { margin-top: 30px; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.admin-entry strong, .admin-entry span { display: block; }
.admin-entry span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.signed-out { min-height: calc(100vh - 168px); display: grid; align-content: center; justify-items: start; gap: 10px; }
.signed-out p, .signed-out h1, .signed-out span { margin: 0; }
.signed-out p { color: var(--cyan); font-size: 12px; font-weight: 750; }
.signed-out h1 { font-size: 42px; }
.signed-out span { color: var(--muted); }
.signed-out .row-command { min-width: 112px; margin-top: 14px; }

/* Unified account center */
.account-message { margin-top: 20px; }
.account-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 44px; margin-top: 30px; align-items: start; }
.account-nav { position: sticky; top: 20px; display: grid; border-top: 1px solid var(--border); }
.account-nav a { padding: 12px 10px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.account-nav a.active { border-left: 3px solid var(--cyan); color: var(--text); font-weight: 700; }
.account-content { min-width: 0; }
.account-section { padding: 0 0 36px; margin: 0 0 34px; border-bottom: 1px solid var(--border); }
.account-section h2 { margin: 0 0 8px; font-size: 19px; }
.section-note { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.summary-list { display: grid; border-top: 1px solid var(--border); }
.summary-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.summary-title, .summary-foot { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.summary-title div strong, .summary-title div span { display: block; }
.summary-title div span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.task-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 16px; border: 1px solid var(--border); background: var(--border); }
.task-counts span { min-height: 72px; display: grid; place-items: center; align-content: center; gap: 3px; background: #fff; color: var(--muted); font-size: 11px; }
.task-counts b { color: var(--text); font-size: 20px; font-variant-numeric: tabular-nums; }
.settings-summary { margin: 15px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 24px; }
.settings-summary div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px dotted #ccd4d9; font-size: 12px; }
.settings-summary dt { color: var(--muted); }.settings-summary dd { margin: 0; font-weight: 650; }
.summary-foot { margin-top: 15px; color: var(--muted); font-size: 11px; }
.summary-foot a { color: #176b77; font-size: 12px; font-weight: 650; }
.empty-summary { color: var(--muted); font-size: 13px; }
.identity-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.identity-facts div { min-height: 76px; display: grid; align-content: center; gap: 4px; padding: 0 16px; border-right: 1px solid var(--border); }
.identity-facts div:last-child { border-right: 0; }
.identity-facts span { color: var(--muted); font-size: 11px; }.identity-facts strong { font-size: 14px; overflow-wrap: anywhere; }
.settings-form { max-width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.settings-form label { display: grid; gap: 6px; color: #34414a; font-size: 12px; font-weight: 650; }
.settings-form input { min-height: 42px; padding: 9px 10px; border: 1px solid #bac5cc; border-radius: 6px; }
.settings-form .row-command { grid-column: 1 / -1; width: 150px; }
.profile-form { grid-template-columns: minmax(220px, 1fr) 150px; align-items: end; }
.profile-form .row-command { grid-column: auto; width: 150px; }
.danger-command { min-height: 40px; padding: 0 15px; border: 1px solid #b53636; border-radius: 6px; background: #fff; color: #a72f2f; font-weight: 650; }

/* Global administration */
.admin-page { background: #f4f6f8; }
.admin-heading { min-height: 94px; display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid #cbd4da; }
.admin-heading p, .admin-heading h1, .admin-heading span { margin: 0; }
.admin-heading p { margin-bottom: 6px; color: var(--cyan); font-size: 11px; font-weight: 750; }
.admin-heading h1 { font-size: 27px; }.admin-heading > span, .user-heading div > span { color: var(--muted); font-size: 13px; }
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 38px; border: 1px solid var(--border); background: var(--border); gap: 1px; }
.metric-strip div { min-height: 92px; display: grid; align-content: center; gap: 6px; padding: 0 20px; background: #fff; }
.metric-strip span { color: var(--muted); font-size: 12px; }.metric-strip b { font-size: 25px; font-variant-numeric: tabular-nums; }
.admin-section { margin-top: 34px; }
.section-heading { min-height: 40px; display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 0; font-size: 18px; }.section-heading span, .section-heading a { color: var(--muted); font-size: 12px; }
.data-table { border-top: 1px solid #bfc9cf; }
.table-row { min-height: 58px; display: grid; grid-template-columns: 1.2fr 1.4fr .8fr .7fr 24px; gap: 16px; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--border); background: #fff; font-size: 13px; }
.table-row:hover { background: #f9fbfc; }.table-head { min-height: 38px; background: #e9eef1; color: var(--muted); font-size: 11px; font-weight: 650; }
.table-row > span { min-width: 0; overflow-wrap: anywhere; }.table-row b, .table-row small { display: block; }.table-row small { margin-top: 2px; color: var(--muted); }
.table-arrow { color: #68767e; font-size: 22px; }.app-table { grid-template-columns: 1.2fr 1.2fr .7fr .7fr .7fr; }
.audit-list { border-top: 1px solid #bfc9cf; }
.audit-list div { min-height: 52px; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 18px; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--border); background: #fff; font-size: 12px; }
.audit-list span, .audit-list time { color: var(--muted); }.audit-list time { text-align: right; }
.back-link { display: inline-block; margin-bottom: 18px; color: #376673; font-size: 13px; }
.user-heading { align-items: center; }.user-heading div { display: grid; gap: 4px; }.user-heading p { margin-bottom: 0; }
.command-band { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 16px; border: 1px solid var(--border); background: #fff; }
.command-band p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.delegation-list { border-top: 1px solid #bfc9cf; }
.delegation-list article { min-height: 82px; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(220px, 1fr) auto; gap: 18px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); background: #fff; }
.delegation-list article > div:first-child strong, .delegation-list article > div:first-child span { display: block; }.delegation-list article > div:first-child span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.delegation-state, .delegation-actions { display: flex; gap: 12px; align-items: center; }.delegation-actions { justify-content: end; }.delegation-actions .row-command { padding: 0 12px; }

/* Privileged access enrollment */
.security-heading { padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.security-heading p, .security-heading h1, .security-heading span { margin: 0; }.security-heading p { color: var(--cyan); font-size: 11px; font-weight: 750; }.security-heading h1 { margin: 7px 0; font-size: 28px; }.security-heading span { color: var(--muted); font-size: 13px; }
.security-panel { max-width: 680px; margin-top: 30px; padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.security-panel h2 { margin: 0 0 10px; font-size: 19px; }.security-panel p { color: var(--muted); line-height: 1.7; }.security-notice { padding: 12px 14px; border-left: 3px solid var(--amber); background: #fff8e9; color: #755315 !important; }
.mfa-secret, .mfa-uri { display: block; max-width: 100%; margin: 16px 0; padding: 12px; overflow-wrap: anywhere; border: 1px solid var(--border); background: #fff; font-size: 13px; }.mfa-form { grid-template-columns: 1fr; }.mfa-form .field-help { margin: 0; }.mfa-form .row-command { grid-column: 1; width: 180px; }

@media (max-width: 720px) {
  body { padding-bottom: 58px; }
  .auth-page { padding-bottom: 0; }
  .auth-main, .auth-main:not(.register-main) { min-height: 100dvh; padding: 70px 16px 76px; align-items: center; justify-items: stretch; }
  .register-main { display: block; padding-top: 74px; }
  .auth-card { width: 100%; padding: 22px 18px; background: rgba(7, 15, 21, .58); backdrop-filter: blur(14px); }
  .auth-card-heading { margin-bottom: 18px; }.auth-card-heading h1 { font-size: 24px; }
  .auth-corner-brand { top: 19px; left: 18px; }
  .intro-skip { top: 12px; right: 14px; }
  .identity-core { left: calc(50% - 44px); top: 15%; width: 88px; height: 88px; }.identity-core b { width: 44px; height: 44px; font-size: 21px; }
  .node-market { left: 8%; top: 14%; }.node-novel { right: 8%; top: 14%; }.node-system { right: 12%; bottom: 10%; }
  .workspace-node { width: 42px; height: 42px; }
  .signal-market { left: 14%; top: 18%; width: 38%; }.signal-novel { left: 51%; top: 18%; width: 38%; }.signal-system { display: none; }
  .scene-brand { left: calc(50% - 150px); top: 23%; width: 300px; }.scene-brand strong { font-size: 24px; }.scene-brand span { display: none; }
  .intro-complete .identity-core { width:72px; height:72px; left:calc(50% - 36px); top:11%; opacity:.72; animation:none !important; transition:opacity .35s ease; filter:drop-shadow(0 0 14px rgba(74,194,205,.32)); }
  .intro-complete .identity-core b { width:32px; height:32px; font-size:16px; }
  .intro-complete .identity-core .ring-a { animation:ring-turn 11s linear infinite !important; }
  .intro-complete .identity-core .ring-b { inset:11px; animation:ring-turn-reverse 8s linear infinite !important; }
  .intro-complete .scene-brand { opacity:0; animation:none !important; transition:opacity .35s ease; }
  .intro-complete .signal { opacity: 0; animation: none !important; transition: opacity .35s ease; }
  .auth-footnote { position: absolute; bottom: 14px; left: 16px; right: 16px; display: grid; gap: 4px; text-align: center; }
  .register-panel fieldset { grid-template-columns: 1fr; }
  .site-header { height: 56px; padding: 0 16px; position: sticky; top: 0; z-index: 30; }
  .site-header nav { display: none; }
  .mobile-nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; min-height: 58px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: stretch; border-top: 1px solid #26333c; background: #111820; color: #dfe8eb; }
  .mobile-nav a, .mobile-nav form, .mobile-nav button { min-width: 0; min-height: 58px; display: grid; place-items: center; margin: 0; border: 0; background: transparent; color: inherit; font-size: 12px; }
  .page-main { width: min(100% - 28px, 1180px); padding: 24px 0 34px; }
  .portal-heading { display: grid; align-items: start; }
  .portal-heading h1 { font-size: 22px; line-height: 1.35; }
  .workspace-list { margin-top: 18px; }.workspace-row { min-height: 0; padding: 15px 0; grid-template-columns: 42px minmax(0, 1fr) 74px; gap: 10px 12px; }
  .workspace-description { grid-column: 2 / 4; font-size: 12px; }.workspace-states { grid-column: 2 / 4; grid-template-columns: repeat(2, minmax(0, 1fr)); }.workspace-states .access { grid-column: 1 / -1; }.workspace-row .row-command { grid-column: 3; grid-row: 1; min-height: 36px; }
  .workspace-name { min-width: 0; }.workspace-name span { overflow-wrap: anywhere; }
  .admin-entry { align-items: start; flex-direction: column; }.admin-entry .row-command { width: 100%; }
  .account-layout { grid-template-columns: 1fr; gap: 24px; }
  .account-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--border); }
  .account-nav a { text-align: center; white-space: normal; padding: 11px 5px; }
  .account-nav a.active { border-left: 0; border-bottom: 3px solid var(--cyan); }
  .task-counts { grid-template-columns: repeat(2, 1fr); }
  .settings-summary, .identity-facts, .settings-form { grid-template-columns: 1fr; }
  .settings-form .row-command, .profile-form .row-command { grid-column: auto; width: 100%; }
  .identity-facts div { border-right: 0; border-bottom: 1px solid var(--border); }
  .identity-facts div:last-child { border-bottom: 0; }
  .admin-heading { display: grid; align-items: start; min-height: 0; }.admin-heading h1 { font-size: 24px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); margin-bottom: 28px; }.metric-strip div { min-height: 76px; padding: 0 14px; }
  .data-table { overflow: visible; border-top: 0; display: grid; gap: 10px; }.table-head { display: none; }
  .table-row, .app-table { min-width: 0; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; border: 1px solid var(--border); background: #fff; }
  .table-row > span { display: grid; gap: 3px; }.table-row > span::before { color: var(--muted); font-size: 10px; font-weight: 500; }
  .table-row > span:nth-child(1)::before { content: "用户"; }.table-row > span:nth-child(2)::before { content: "邮箱"; }.table-row > span:nth-child(3)::before { content: "全局角色"; }.table-row > span:nth-child(4)::before { content: "状态"; }.table-row .table-arrow { position: absolute; right: 24px; }
  .app-table > span:nth-child(1)::before { content: "系统"; }.app-table > span:nth-child(2)::before { content: "Client ID"; }.app-table > span:nth-child(3)::before { content: "授权用户"; }.app-table > span:nth-child(4)::before { content: "接入状态"; }.app-table > span:nth-child(5)::before { content: "服务状态"; }.app-table > span:nth-child(6)::before { content: "管理入口"; }
  .audit-list div { grid-template-columns: 1fr; gap: 4px; padding: 12px; }.audit-list time { text-align: left; }
  .delegation-list article { grid-template-columns: 1fr; }.delegation-state, .delegation-actions { justify-content: start; flex-wrap: wrap; }
  .command-band { align-items: start; flex-direction: column; }
  .mfa-form { grid-template-columns: 1fr; }.security-panel { padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .intro-pending .auth-card, .intro-pending .auth-footnote { transition: opacity .3s ease; transform: none; }
  .scene-grid, .signal, .workspace-node { animation: none !important; }
}

/* 2026-07-31 visual refinement */
body.platform-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(32, 122, 132, .08), transparent 25rem),
    linear-gradient(180deg, #f7f8f8 0, #f2f4f5 55%, #eef1f2 100%);
}
.site-header { position: sticky; z-index: 40; top: 0; height: 70px; background: rgba(12, 20, 27, .96); backdrop-filter: blur(16px); box-shadow: 0 8px 28px rgba(8, 17, 23, .12); }
.brand { letter-spacing: -.02em; }.site-header nav a { position: relative; color: #cbd5d9; transition: color .2s ease; }.site-header nav a:hover { color: #fff; }
.page-main { padding-top: 46px; }
.portal-heading { padding: 26px 30px; border: 1px solid rgba(185, 198, 204, .78); border-radius: 18px; background: rgba(255,255,255,.82); box-shadow: 0 18px 54px rgba(26, 45, 55, .07); backdrop-filter: blur(12px); }
.portal-heading p { color: #1d7f8c; font-weight: 760; letter-spacing: .12em; }.portal-heading h1 { font-size: clamp(25px, 3vw, 34px); }
.portal-heading div > span { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }
.workspace-list { display: grid; gap: 14px; margin-top: 24px; border: 0; }
.workspace-row { min-height: 106px; padding: 16px 20px; border: 1px solid #d9e1e4; border-radius: 14px; background: rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(29, 47, 56, .045); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.workspace-row:hover { transform: translateY(-2px); border-color: #bdcdd2; box-shadow: 0 16px 38px rgba(29, 47, 56, .08); }
.workspace-icon { width: 44px; height: 44px; border: 0; border-radius: 12px; background: linear-gradient(145deg, #13232b, #244650); color: #e9f5f6; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 8px 18px rgba(21, 54, 64, .16); }
.row-command { padding: 0 14px; border-radius: 9px; font-weight: 680; }.row-command.primary, .primary-action { background: linear-gradient(135deg, #176f7b, #1596a8); border-color: #176f7b; box-shadow: 0 8px 18px rgba(21, 126, 141, .17); }
.admin-entry, .account-section, .admin-section { padding: 24px; border: 1px solid #d9e1e4; border-radius: 14px; background: rgba(255,255,255,.88); box-shadow: 0 10px 32px rgba(29, 47, 56, .045); }
.account-section, .admin-section { margin-bottom: 20px; }.account-section { padding-bottom: 24px; }
.legal-document { display: grid; gap: 14px; line-height: 1.85; }.legal-document h2 { margin: 10px 0 0; }.legal-document p { margin: 0; color: #34414a; }
.metric-strip { gap: 12px; border: 0; background: transparent; }.metric-strip div { border: 1px solid #dbe2e5; border-radius: 12px; box-shadow: 0 8px 24px rgba(26,45,55,.04); }
.metric-strip-six { grid-template-columns: repeat(6, 1fr); }
.data-table, .audit-list, .delegation-list { border-top-color: #d0dade; border-radius: 10px; overflow: hidden; }
.table-row, .audit-list div, .delegation-list article { background: rgba(255,255,255,.8); }
.app-table-managed { grid-template-columns: 1.05fr .9fr .55fr .75fr 1.15fr .95fr; }
.review-list { display: grid; gap: 10px; }.review-list > article { display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px; background: #fbfcfc; }
.review-list strong, .review-list p, .review-list time { display: block; }.review-list p { margin: 5px 0; color: var(--muted); font-size: 13px; line-height: 1.55; }.review-list time { color: #89969c; font-size: 11px; }
.review-actions, .governance-actions { display: flex; flex-wrap: wrap; gap: 9px; }.review-actions button, .governance-actions button { padding: 0 12px; }
.bulk-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.user-table-row { grid-template-columns: 34px minmax(160px,1.2fr) minmax(170px,1fr) 110px 110px 36px; }
.user-table-row > a:not(.table-arrow) { display: grid; gap: 3px; }
.user-table-row input[type="checkbox"] { width: 16px; height: 16px; }
.destructive { color: #fff; background: #9d2929; border-color: #9d2929; }
.restriction-list { margin-top: 16px; border-top: 1px solid var(--border); }.restriction-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 4px; border-bottom: 1px solid var(--border); font-size: 12px; }.restriction-list span { color: var(--muted); }
.feedback-layout { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(0,1.2fr); gap: 24px; margin-top: 24px; align-items: start; }.feedback-compose { position: sticky; top: 94px; }
.feedback-form { display: grid; gap: 13px; }.feedback-form label { display: grid; gap: 7px; color: #34414a; font-size: 12px; font-weight: 680; }.feedback-form input, .feedback-form select, .feedback-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #bac7cc; border-radius: 8px; background: #fff; }.feedback-form textarea { resize: vertical; }.primary-action { min-height: 44px; border: 1px solid; border-radius: 9px; color: #fff; font-weight: 720; }
.thread-list { display: grid; gap: 14px; }.thread-card { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #fbfcfc; }.thread-card header { display: flex; justify-content: space-between; gap: 18px; padding: 15px 17px; border-bottom: 1px solid var(--border); background: #f3f6f7; }.thread-card header span { color: var(--cyan); font-size: 10px; font-weight: 760; }.thread-card h3 { margin: 4px 0 0; font-size: 15px; }.thread-message { margin: 12px 16px; padding: 12px 14px; border-radius: 9px; background: #fff; }.thread-message.admin { border-left: 3px solid var(--cyan); background: #f0f8f9; }.thread-message strong, .thread-message time { font-size: 11px; }.thread-message p { margin: 6px 0; line-height: 1.65; white-space: pre-wrap; }.thread-message time { color: var(--muted); }
.site-footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 22px 0 34px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid #d5dee1; color: #7c898f; font-size: 11px; }.site-footer a { color: #53666e; }.auth-page > .site-footer { display: none; }
.compliance-signature { letter-spacing: .03em; }.compliance-signature b { color: #c5a460; font-weight: 760; }
.brand-manifesto { position: fixed; z-index: 3; left: max(7vw, 52px); top: 50%; width: min(520px, 43vw); transform: translateY(-50%); display: grid; gap: 12px; }
.brand-manifesto p, .brand-manifesto h1, .brand-manifesto strong, .brand-manifesto span { margin: 0; }.brand-manifesto p { color: #d3ad62; font-size: 11px; font-weight: 780; letter-spacing: .19em; }.brand-manifesto h1 { max-width: 520px; color: #f5f7f7; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 5vw, 72px); font-weight: 500; line-height: .98; letter-spacing: -.045em; }.brand-manifesto > strong { color: #eef4f4; font-size: clamp(24px, 2.5vw, 34px); font-weight: 560; letter-spacing: .08em; }.brand-manifesto > span { max-width: 500px; color: #aab9bd; font-size: 15px; line-height: 1.85; }
.capability-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 12px; border: 1px solid rgba(180,203,207,.18); background: rgba(180,203,207,.15); }.capability-ribbon b { min-height: 72px; display: grid; align-content: center; gap: 5px; padding: 0 13px; background: rgba(8,17,24,.72); color: #e7eeee; font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 500; }.capability-ribbon small { color: #82959b; font-family: Inter, "Noto Sans SC", sans-serif; font-size: 10px; font-weight: 600; }.workspace-signature { color: #74878d; font-size: 11px; letter-spacing: .18em; }
.auth-page .scene-brand, .auth-page .identity-core, .auth-page .workspace-node, .auth-page .signal { display: revert; }
.auth-page .identity-core, .auth-page .workspace-node, .auth-page .scene-brand { display: grid; }
.auth-card { border-radius: 14px; background: rgba(8, 17, 24, .58); box-shadow: 0 34px 90px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.06); }.auth-card-heading p { color: #d2ad61; letter-spacing: .13em; }.auth-card-heading h1 { font-size: 30px; }.auth-form input { border-radius: 9px; }.primary-command { border-radius: 9px; background: linear-gradient(135deg, #176f7b, #1596a8); }.auth-footnote { align-items: center; }

@media (max-width: 900px) {
  .metric-strip-six { grid-template-columns: repeat(3, 1fr); }
  .feedback-layout { grid-template-columns: 1fr; }.feedback-compose { position: static; }
  .brand-manifesto { left: 28px; width: 44vw; }.brand-manifesto h1 { font-size: 42px; }.capability-ribbon { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .portal-heading, .account-section, .admin-section { padding: 18px; border-radius: 12px; }
  .workspace-row { padding: 15px; }.metric-strip-six { grid-template-columns: repeat(2, 1fr); }
  .review-list > article { align-items: stretch; flex-direction: column; }.review-actions button { flex: 1; }
  .action-modal { padding: 10px; }
  .action-modal-panel { width: 100%; padding: 16px; border-radius: 10px; }
  .action-modal-actions { flex-direction: column; }
  .action-modal-actions button { width: 100%; }
  .site-footer { width: calc(100% - 28px); padding-bottom: 80px; text-align: center; }
  .brand-manifesto { position: relative; left: auto; top: auto; width: 100%; transform: none; margin: 0 0 22px; gap: 8px; }.brand-manifesto h1 { font-size: 38px; }.brand-manifesto > strong { font-size: 22px; }.brand-manifesto > span { font-size: 13px; line-height: 1.65; }.capability-ribbon { display: none; }.workspace-signature { font-size: 10px; }.auth-main:not(.register-main) { display: flex; flex-direction: column; justify-content: center; }.auth-page .scene-brand { display: none; }
}
