@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('./plus-jakarta-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --primary: #2758ff;
  --primary-dark: #1e45d8;
  --primary-light: #eef3ff;
  --text: #2a3547;
  --text2: #4a5a72;
  --text3: #627085;
  --bg: #f2f6fa;
  --surface: #fff;
  --border: #e5eaef;
  --success: #087a66;
  --success-light: #ecfdf5;
  --warning: #8a6100;
  --warning-light: #fff8ec;
  --error: #b24c34;
  --error-light: #fef2f0;
  --r: 7px;
  --r-xl: 12px;
  --shadow: 0 1px 3px rgb(0 0 0 / 6%), 0 1px 2px -1px rgb(0 0 0 / 4%);
  --sidebar: 248px;
  --header: 64px;
  --content-max: 1280px;
  --app-page-gutter: 24px;
  --app-section-gap: 14px;
  --app-control-h: 36px;
  --font: 'Plus Jakarta Sans', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 400 15px/1.6 var(--font); color: var(--text); background: var(--bg); }
button, input, select, textarea { font-family: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { border-radius: 10px; background: #c8d0da; }
::-webkit-scrollbar-track { background: transparent; }
.platform-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.shell-header { position: relative; z-index: 60; flex: 0 0 var(--header); display: flex; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.94); }
.shell-brand-space { width: var(--sidebar); flex: none; display: grid; place-items: center; }
.shell-brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; white-space: nowrap; }
#shell-brand-name { font-size: 18px; font-weight: 800; line-height: 1; }
#shell-brand-name strong { color: var(--primary); }
.shell-brand-tagline { border-left: 1px solid var(--border); margin-left: 2px; padding-left: 10px; color: var(--text3); font-size: 13px; font-weight: 600; line-height: 1; }
.shell-header-main { min-width: 0; flex: 1; display: flex; padding: 0 calc(var(--app-page-gutter) + 5px) 0 var(--app-page-gutter); }
.shell-header-line { display: flex; align-items: center; gap: 14px; margin: 0 auto; width: 100%; max-width: var(--content-max); }
.shell-title { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--text3); font-size: 12px; line-height: 1.15; white-space: nowrap; }
.shell-icon { flex-shrink: 0; width: 1em; height: 1em; display: inline-block; vertical-align: middle; }
.shell-page-icon { display: grid; place-items: center; width: 28px; height: 28px; background: var(--primary-light); border-radius: var(--r); color: var(--primary); font-size: 16px; }
.shell-utilities { position: relative; display: flex; align-items: center; gap: 10px; margin-left: auto; }
.shell-utility, .shell-feedback, .shell-button, .shell-tab, .shell-x, .shell-mobile-menu { display: inline-flex; align-items: center; justify-content: center; color: var(--text2); background: white; border: 1px solid var(--border); border-radius: var(--r); font-weight: 600; }
.shell-utility { gap: 6px; height: 36px; min-width: 36px; padding: 0 13px; font-size: 13px; white-space: nowrap; }
.shell-utility--icon { padding: 0; font-size: 15px; }
.shell-utility--user { gap: 8px; padding: 0 10px 0 4px; color: var(--text); }
.shell-avatar { display: grid; place-items: center; width: 28px; height: 28px; color: #4265b8; background: #e5efff; border-radius: 50%; font-size: 18px; }
.shell-caret { font-size: 10px; }
.shell-utility:hover, .shell-feedback:hover, .shell-button:hover, .shell-utility[aria-expanded=true] { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.shell-body { display: flex; flex: 1; min-height: 0; overflow: hidden; }
.shell-sidebar { position: relative; z-index: 40; flex: 0 0 var(--sidebar); border-right: 1px solid var(--border); background: white; overflow-y: auto; }
#console-navigation { padding: 14px 8px 16px; }
.shell-nav-group { display: flex; flex-direction: column; gap: 2px; }
.shell-nav-group + .shell-nav-group { margin-top: 10px; }
.shell-nav-label { padding: 8px 10px 5px; color: var(--text3); font-size: 12px; font-weight: 700; letter-spacing: .4px; }
.shell-nav-link { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: var(--r); color: var(--text2); font-size: 14px; font-weight: 500; text-decoration: none; }
.shell-nav-link .shell-icon { width: 16px; height: 13px; }
.shell-nav-link:hover { background: var(--primary-light); }
.shell-nav-link[aria-current=page] { color: white; background: var(--primary); }
.main-scroll { flex: 1; min-width: 0; overflow: auto; scrollbar-gutter: stable; padding: 0 var(--app-page-gutter) var(--app-page-gutter); }
#page-content { width: 100%; max-width: var(--content-max); margin-inline: auto; }
.shell-feedback { position: fixed; z-index: 42; right: 16px; bottom: 48px; width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 5px 16px rgb(33 48 72 / 8%); font-size: 20px; }
.shell-mobile-menu, .shell-menu-shade { display: none; }
.shell-button { min-height: 36px; padding: 0 14px; font-size: 13px; text-decoration: none; }
.shell-button--primary { background: var(--primary); color: white; border-color: var(--primary); }
.shell-button--primary:hover { background: var(--primary-dark); color: white; }
.shell-button:disabled { cursor: default; opacity: .44; }
.shell-dialog { width: min(520px, calc(100vw - 30px)); max-height: calc(100dvh - 48px); padding: 0; color: var(--text); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 50px rgb(20 30 50 / 16%); }
.shell-dialog::backdrop { background: rgb(20 30 50 / 45%); }
.shell-sheet-header, .shell-sheet-footer { display: flex; align-items: center; gap: 8px; padding: 16px 22px; }
.shell-sheet-header { justify-content: space-between; border-bottom: 1px solid var(--border); }
.shell-sheet-header h2 { margin: 0; font-size: 17px; }
.shell-x { width: 28px; height: 28px; border: 0; background: transparent; font-size: 18px; }
.shell-x:hover { background: var(--bg); }
.shell-sheet-body { padding: 20px 22px; }
.shell-sheet-body p { margin: 0 0 14px; color: var(--text2); font-size: 14px; }
.shell-sheet-footer { justify-content: flex-end; border-top: 1px solid var(--border); }
.shell-field { display: grid; gap: 6px; margin: 0 0 14px; font-size: 13px; font-weight: 600; }
.shell-field > :is(input,select,textarea), .shell-invite-url { width: 100%; min-height: 38px; border: 1px solid var(--border); border-radius: var(--r); padding: 7px 10px; background: white; color: var(--text); font: 13px/1.5 var(--font); }
.shell-field textarea { min-height: 90px; resize: vertical; }
.shell-field small,.shell-note { color: var(--text3); font-size: 12px; font-weight: 400; }
.shell-choice-group { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 16px; padding: 0; border: 0; }
.shell-choice-group legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.shell-choice-group label { position: relative; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; color: var(--text2); cursor: pointer; font-size: 12px; }
.shell-choice-group input { position: absolute; opacity: 0; }
.shell-choice-group label:has(:checked), .shell-tab[aria-selected=true] { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.shell-choice-group label:focus-within { outline: 2px solid var(--primary); }
.shell-upload { display: flex; flex-wrap: wrap; gap: 6px; }
.shell-upload img { width: 52px; height: 52px; border-radius: var(--r); object-fit: cover; }
.shell-inline-error { color: var(--error); font-size: 12px; }
.shell-dialog[data-kind=notifications] { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: 100dvh; width: min(430px, 100vw); border-radius: 0; }
.shell-tabs { display: flex; gap: 6px; }
.shell-tab { padding: 7px 14px; }
.shell-empty { padding: 54px 0; text-align: center; color: var(--text3); }
.shell-popover { position: absolute; top: 44px; right: 0; min-width: 208px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: white; box-shadow: 0 7px 24px rgb(26 41 61 / 13%); }
.shell-popover strong { display: block; margin: 0 0 8px; font-size: 14px; }
.shell-popover a, .shell-popover button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 4px 8px; border: 0; border-radius: 6px; text-decoration: none; color: var(--text2); background: none; font-size: 13px; }
.shell-popover a:hover,.shell-popover button:hover { background: var(--bg); }
.shell-status { position: fixed; z-index: 1250; bottom: 26px; left: 50%; transform: translateX(-50%); border-radius: 8px; background: #2a3547; color: white; font-size: 13px; }
.shell-status:not(:empty) { padding: 8px 15px; }
.shell-auth .main-scroll { padding: 0; }
.shell-auth-view { min-height: 100dvh; display: grid; place-items: center; padding: 32px 18px; background: var(--bg); }
.shell-auth-card { width: min(420px, 100%); padding: 34px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 50px rgb(20 30 50 / 9%); }
.shell-auth-mark { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 11px; color: white; background: var(--primary); font-weight: 800; letter-spacing: .04em; }
.shell-auth-kicker { margin: 0 0 10px; color: var(--primary); font-size: 13px; font-weight: 700; }
.shell-auth-card h1 { margin: 0; color: var(--text); font-size: 28px; letter-spacing: -.02em; }
.shell-auth-subtitle { margin: 8px 0 24px; color: var(--text3); font-size: 13px; }
.shell-auth-card form { display: grid; gap: 14px; }
.shell-auth-card label { display: grid; gap: 6px; color: var(--text2); font-size: 13px; font-weight: 600; }
.shell-auth-card input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: white; font: inherit; }
.shell-auth-card input:focus { outline: 2px solid var(--primary-light); border-color: var(--primary); }
.shell-auth-error { min-height: 18px; margin: 0; color: #c2412d; font-size: 12px; }
.shell-auth-switch { width: 100%; margin-top: 18px; padding: 8px; color: var(--primary); background: transparent; border: 0; font: inherit; cursor: pointer; }
@media(max-width: 600px) { .shell-auth-card { padding: 26px 20px; } }
@media (max-width: 1200px) {
  .shell-invite-label { display: none; }
  .shell-utility--invite { padding: 0; }
}
@media (max-width: 680px) {
  :root { --app-page-gutter: 14px; }
  .shell-brand-space { width: 52px; }
  #shell-brand-name, .shell-brand-tagline, .shell-title, .shell-user-label, .shell-utility--user .shell-caret { display: none; }
  .shell-header-main { padding: 0 10px 0 6px; }
  .shell-utilities { gap: 6px; }
  .shell-utility--user { padding: 0 3px; }
  .shell-mobile-menu { display: inline-flex; gap: 4px; border: 0; padding: 0; background: none; font-size: 12px; }
  .shell-sidebar { display: none; }
  body.shell-menu-open .shell-sidebar { position: fixed; inset: var(--header) auto 0 0; display: block; width: min(248px, 84vw); }
  body.shell-menu-open .shell-menu-shade { display: block; position: fixed; z-index: 39; inset: var(--header) 0 0; border: 0; background: rgb(20 30 50 / 35%); }
  .shell-feedback { width: 42px; height: 42px; right: 12px; bottom: 20px; }
}
.shell-invite-code { margin: -4px 0 16px; font: 700 26px/1.5 ui-monospace, monospace; letter-spacing: 2px; }
.shell-copy-row { display: flex; gap: 8px; margin-bottom: 12px; }

.shell-demo-marker {background:#fff5e7;color:#85530d;padding:2px 8px;border-radius:5px;font-size:11px;white-space:nowrap;}
.shell-auth-view .shell-demo-marker {font-size:12px;margin:12px 0 0;display:block;text-align:center;}
.shell-auth .shell-header,.shell-auth .shell-sidebar,.shell-auth .shell-feedback {display:none;}
.shell-auth-card h1 {margin-bottom:20px;}
.shell-auth-card>img {margin-bottom:10px;}
.shell-auth-demo {margin-top:8px;width:100%;}
.shell-auth-docs {display:block;text-align:center;color:var(--text2);font-size:13px;}

.shell-auth-methods { display: flex; padding: 3px; margin: 0 0 20px; border-radius: 9px; background: var(--bg); }
.shell-auth-methods button { flex: 1; padding: 8px; border: 0; border-radius: 7px; color: var(--text2); background: transparent; font: inherit; font-size: 13px; }
.shell-auth-methods [aria-pressed=true] { color: var(--primary); background: white; font-weight: 700; box-shadow: 0 1px 4px rgb(20 30 50 / 12%); }
.shell-auth-fields { display: grid; gap: 6px; min-width: 0; padding: 0; margin: 0; border: 0; }
.shell-auth-fields[hidden] { display: none; }
.shell-auth-fields label:not(:first-child) { margin-top: 8px; }
.shell-auth-phone { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; background: white; }
.shell-auth-phone span { padding: 0 10px; border-right: 1px solid var(--border); font-size: 13px; color: var(--text2); }
.shell-auth-phone input { min-width: 0; height: 40px; border: 0; }
.shell-auth-phone:focus-within { border-color: var(--primary); outline: 2px solid var(--primary-light); }
.shell-auth-phone input:focus { outline: none; }
.shell-auth-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.shell-auth-code button { min-width: 100px; color: var(--primary); }
.shell-auth-code-status { margin: 1px 0 0; font-size: 12px; color: var(--text2); }
.shell-auth-code-status:empty, .shell-auth-error:empty { display: none; }
