:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  color: #1d1d1f;
  background: #fff;
  --text: #1d1d1f;
  --muted: #64646b;
  --accent: #7143c3;
  --line: #e8e8ed;
  --surface: #f5f5f7;
  --success: #167348;
  --warning: #915d0d;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #fff; }
button, input, textarea, select { font: inherit; }
button, a, .file-button, summary { -webkit-tap-highlight-color: transparent; }
button, a, .file-button { cursor: pointer; }
button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 46px; padding: 10px 19px; border: 1px solid #dedee4; border-radius: 12px; background: #fff; color: var(--text); font-size: 16px; line-height: 1.45; font-weight: 500; transition: background .16s, border-color .16s; }
button:hover { background: #f5f5f7; border-color: #c5c5cc; }
button:disabled { opacity: .45; cursor: not-allowed; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.primary:hover { background: #6034ad; border-color: #6034ad; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.link, .text-button { border: 0; background: transparent; color: var(--muted); }
.link:hover, .text-button:hover { background: transparent; color: var(--accent); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .file-button:focus-within { outline: 3px solid #b99ae9; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 46px; line-height: 1.2; font-weight: 650; letter-spacing: -1.3px; }
h2 { font-size: 26px; line-height: 1.4; font-weight: 600; letter-spacing: -.4px; }
h3 { font-size: 21px; line-height: 1.45; font-weight: 600; }
p, small { color: var(--muted); line-height: 1.75; }
label { display: block; font-size: 17px; font-weight: 500; line-height: 1.55; }
input, textarea, select { display: block; width: 100%; min-width: 0; margin-top: 10px; padding: 12px 15px; min-height: 50px; border: 1px solid #dcdce2; border-radius: 12px; background: #fff; color: var(--text); font-size: 17px; line-height: 1.65; }
input::placeholder, textarea::placeholder { color: #71717a; font-weight: 400; }
input:hover, textarea:hover, select:hover { border-color: #b6a1d8; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; }
.app-header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 76px; padding: 16px max(32px, calc((100vw - 1360px) / 2)); background: #ffffffef; border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand strong { font-size: 21px; font-weight: 600; letter-spacing: -.3px; }
.brand-mark { display: block; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }

.header-actions { display: flex; align-items: center; gap: 24px; font-size: 16px; }
.header-actions .text-button { min-height: 40px; padding: 8px 0; }
.guide-link { color: var(--muted); }
.download { display: flex; gap: 8px; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: 24px; background: var(--text); color: #fff; font-size: 15px; }
.download:hover { background: #3c3c42; text-decoration: none; }
.download svg { width: 18px; height: 18px; }
.auth { max-width: 1180px; min-height: calc(100dvh - 76px); display: flex; justify-content: center; align-items: center; margin: auto; padding: 80px 40px; }
.eyebrow { font-size: 18px; font-weight: 600; color: var(--accent); margin-bottom: 22px; }
.auth-intro h1 { font-size: clamp(48px, 4.8vw, 68px); line-height: 1.18; letter-spacing: -2px; }
.auth-intro h1 span { color: #727279; }
.auth-lead { font-size: 20px; margin-top: 28px; max-width: 390px; }
.platform-list { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; font-size: 16px; color: #505057; }
.platform-list span { display: flex; align-items: center; gap: 8px; }
.platform-dot { width: 8px; height: 8px; background: #73717a; border-radius: 50%; }
.platform-dot.pdd { background: #c6533d; }.platform-dot.weixin { background: #358464; }
.auth-capabilities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; font-size: 15px; }
.auth-capabilities span { padding: 10px 14px; border-radius: 10px; background: var(--surface); color: #505057; }
.auth-card { width: 100%; max-width: 440px; margin-inline: auto; padding: 40px; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 20px 65px #1d1d1f07; }
.auth-card h2 { font-size: 30px; margin-bottom: 30px; }
.auth-card label { margin-top: 22px; }
.auth-card input { min-height: 54px; }
.auth-card .primary { width: 100%; min-height: 52px; margin-top: 32px; font-size: 18px; }
.auth-card .link { display: block; margin: 14px auto 0; font-size: 16px; }
.auth-card .feedback { margin-top: 20px; }
.workspace-nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 32px; max-width: 1424px; padding: 20px 32px; margin: auto; }
.workspace-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-item { gap: 10px; font-size: 17px; min-height: 50px; padding: 12px 19px; border: 0; border-radius: 12px; color: #66666f; }
.nav-item:hover { background: var(--surface); }
.nav-item.active { color: var(--accent); background: #f0eafa; font-weight: 600; }
.workspace-profile { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--muted); font-size: 15px; }
.workspace-profile strong { max-width: 140px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-weight: 500; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--surface); color: #55555e; font-size: 15px; }
.workspace-main { max-width: 1424px; margin: auto; padding: 0 32px 64px; }
.context-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0 22px; border-bottom: 1px solid var(--line); }
.context-workspace, .context-selection { display: flex; align-items: center; gap: 12px; min-width: 0; }
.context-bar label { color: var(--muted); font-size: 15px; flex-shrink: 0; }
.context-bar select { width: 230px; margin: 0; min-height: 46px; padding: 9px 14px; font-size: 16px; background: #fafafa; border-color: var(--line); }
.context-id { max-width: 170px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; color: var(--muted); font-size: 14px; }
.add-store { min-height: 42px; width: 42px; padding: 8px; border: 0; color: var(--muted); }
.workspace-scroll { padding-top: 40px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.page-heading p { font-size: 18px; margin-top: 12px; }
.refresh-control { display: flex; align-items: center; gap: 18px; }
.sync-status { color: var(--muted); font-size: 14px; white-space: nowrap; }
.sync-status.stale { color: var(--warning); }
.icon-text { border-color: var(--line); color: #505057; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 46px; }
.stats > div { padding: 26px 28px; background: var(--surface); border-radius: 20px; }
.stats span { font-size: 16px; color: var(--muted); }
.stats strong { display: block; margin-top: 15px; font-size: 44px; line-height: 1.15; font-weight: 600; letter-spacing: -1px; }
.stats .text-stat { font-size: 29px; line-height: 51px; color: var(--accent); letter-spacing: -.5px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading > button, .section-heading .file-button { flex-shrink: 0; }
.shops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.shop { padding: 28px; border: 1px solid var(--line); border-radius: 24px; min-width: 0; background: #fff; }
.shop-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.platform-icon { width: 54px; height: 54px; flex-shrink: 0; display: grid; place-items: center; border-radius: 16px; font-size: 25px; font-weight: 600; }
.platform-icon img { display: block; width: 40px; height: 40px; object-fit: contain; }
.platform-icon.pdd { background: #e02e24; overflow: hidden; }.platform-icon.pdd img { width: 54px; height: 54px; }
.platform-icon.douyin { background: #eef6ff; }.platform-icon.weixin { background: #eaf9f6; }
.shop-heading > div { min-width: 0; }.shop-heading strong { display: block; font-size: 21px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; letter-spacing: -.3px; }.shop-heading small { display: block; margin-top: 3px; font-size: 15px; }
.status-badge { display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 15px; line-height: 1.5; }
.status-badge::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; background: currentColor; border-radius: 50%; }.status-badge.live { color: var(--success); background: #eaf7f0; }.status-badge.warning { color: var(--warning); background: #fff6e5; }
.shop dl { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 15px 10px; margin: 26px 0; font-size: 16px; line-height: 1.6; }.shop dt { color: var(--muted); }.shop dd { margin: 0; overflow-wrap: anywhere; }
.shop-actions { display: flex; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }.shop-actions button { min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 16px; }.shop-actions button:hover { color: #512594; text-decoration: underline; }.shop-actions svg { width: 16px; height: 16px; }
.panel { padding: 32px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; min-width: 0; }
.scope-banner { margin-bottom: 22px; }.scope-badge { display: inline-block; padding: 7px 12px; border-radius: 8px; background: #f5f1fb; color: #6737b4; font-size: 15px; line-height: 1.5; }
.inline-help { margin-top: 26px; color: var(--muted); font-size: 16px; }.inline-help summary { cursor: pointer; width: fit-content; color: var(--muted); padding: 8px 0; }.inline-help p { font-size: 16px; margin-top: 8px; }.quick-guide { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 18px; }.quick-guide h2 { font-size: 22px; letter-spacing: -.3px; }.quick-guide > a { display: inline-block; font-size: 17px; }.quick-steps { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 20px 0 22px; color: #505057; line-height: 1.7; }.quick-steps b { color: var(--accent); font-size: 20px; margin-right: 8px; font-weight: 500; }
.file-button { position: relative; display: inline-flex; align-items: center; gap: 8px; overflow: hidden; margin: 0; padding: 10px 17px; min-height: 46px; border: 1px solid #dedee4; border-radius: 12px; font-size: 16px; font-weight: 500; cursor: pointer; }.file-button:hover { background: var(--surface); }.file-input { position: absolute; inset: 0; opacity: 0; height: 100%; width: 100%; margin: 0; cursor: pointer; }
.library-toolbar { display: flex; align-items: flex-end; gap: 16px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }.library-toolbar label { width: 100%; max-width: 530px; }.library-toolbar button { margin-bottom: 3px; white-space: nowrap; }
.editor-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }.editor-grid textarea { min-height: 350px; font-size: 18px; line-height: 1.85; padding: 18px; }.editor-grid #prompt { min-height: 280px; }
.editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }.hint { font-size: 15px; line-height: 1.7; }.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 24px; align-items: start; }.two-column label { margin-bottom: 22px; }.two-column #trial { margin-top: 2px; }.result { margin-top: 28px; padding: 24px; min-height: 144px; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 16px; background: var(--surface); font-size: 18px; line-height: 1.8; color: #505057; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }.form-grid label { margin: 0; }.two-column #configure { margin-top: 24px; }
.model-card { background: var(--surface); border: 0; padding: 32px; }.model-emblem { width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 18px; background: #eae0f7; color: var(--accent); }.model-emblem svg { width: 32px; height: 32px; }.provider { margin-top: 26px; padding: 20px 0; border-bottom: 1px solid #e0e0e7; font-size: 20px; }.model-card label { margin: 24px 0; }.model-card .hint { margin-top: 16px; }.model-status { margin-top: 28px; padding-top: 22px; border-top: 1px solid #dedee5; font-size: 17px; color: var(--muted); line-height: 1.8; }
.conversation-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }.conversation { padding: 24px; margin-top: 20px; border: 1px solid var(--line); border-radius: 18px; }.conversation h3 { overflow-wrap: anywhere; }.conversation-meta { display: block; margin: 10px 0 24px; color: var(--muted); font-size: 15px; line-height: 1.8; }.message { display: flex; align-items: flex-start; gap: 14px; margin-top: 18px; font-size: 18px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }.message b { flex-shrink: 0; padding: 4px 8px; background: var(--surface); border-radius: 6px; font-size: 14px; color: var(--muted); font-weight: 500; }.message.assistant b { color: var(--accent); background: #f0eafa; }.message > span { min-width: 0; }.pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 24px; margin-top: 28px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }.records-panel > p { font-size: 16px; margin-top: 10px; }.record { padding: 24px 0; border-bottom: 1px solid var(--line); }.record p { color: var(--text); font-size: 17px; margin-top: 12px; overflow-wrap: anywhere; }.record small { font-size: 15px; }.record-empty { font-size: 17px; color: var(--muted); padding: 40px 0; line-height: 1.8; }
.empty { grid-column: 1 / -1; padding: 64px 24px; background: var(--surface); border-radius: 20px; text-align: center; }.empty > span { font-size: 36px; color: #98989f; display: block; margin-bottom: 18px; }.empty p { font-size: 17px; margin-top: 12px; }
.feedback { font-size: 17px; padding: 16px 20px; line-height: 1.8; border: 1px solid #eed8ad; border-radius: 12px; background: #fff9ed; color: #895b11; }.persistent-feedback { margin-bottom: 26px; }.persistent-feedback.success { color: #167348; background: #eff9f3; border-color: #bee5cc; }
#notice { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 40; max-width: min(700px, calc(100vw - 40px)); padding: 18px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 12px 40px #1d1d1f18; color: var(--text); font-size: 17px; line-height: 1.6; }
dialog { width: min(540px, calc(100vw - 40px)); max-height: 90dvh; overflow: auto; padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: #fff; color: var(--text); box-shadow: 0 24px 80px #1d1d1f22; }.dialog-icon { display: none; }dialog::backdrop { background: #1d1d1f55; backdrop-filter: blur(5px); }dialog p { margin-top: 18px; font-size: 17px; }dialog label { margin-top: 24px; }dialog .actions { justify-content: flex-end; margin-top: 32px; }
.guide-page { max-width: 960px; padding: 64px 32px; margin: auto; }.guide-page .overline { font-size: 17px; color: var(--accent); display: block; margin-bottom: 18px; }.guide-page > p { font-size: 19px; margin: 24px 0 32px; }.guide-page .primary { display: inline-block; padding: 13px 24px; border-radius: 24px; color: #fff; font-size: 17px; }.guide-page section { background: var(--surface); padding: 32px; margin-top: 32px; border-radius: 24px; }.guide-page li { font-size: 18px; color: #505057; line-height: 1.9; margin: 14px 0; }.guide-page section p { font-size: 18px; margin-top: 20px; }.guide-page code { font-size: .9em; overflow-wrap: anywhere; }
@media (max-width: 1120px) { .auth { gap: 60px; }.workspace-profile { display: none; }.context-id { display: none; }.shop { padding: 24px; }.shop-heading { gap: 12px; }.shop-heading strong { font-size: 19px; }.shop-actions { gap: 14px; }.shop-actions button { font-size: 15px; }.conversation-layout { grid-template-columns: minmax(0,1fr) 290px; } }
@media (max-width: 900px) { .auth { gap: 40px; padding: 60px 28px; }.auth-card { padding: 30px; }.auth-intro h1 { font-size: 49px; }.auth-capabilities { gap: 8px; }.platform-list { gap: 16px; }.header-actions { gap: 18px; }.shops { grid-template-columns: 1fr; }.shop-heading strong { font-size: 22px; }.shop-actions button { font-size: 16px; }.shop dl { grid-template-columns: 100px minmax(0,1fr); }.stats { gap: 12px; }.stats > div { padding: 22px 20px; }.stats .text-stat { font-size: 26px; }.refresh-control { flex-direction: column-reverse; align-items: flex-end; gap: 8px; }.editor-grid { grid-template-columns: 1fr; }.editor-footer { flex-wrap: wrap; }.two-column, .conversation-layout { grid-template-columns: 1fr; }.workspace-nav-bar { padding-bottom: 12px; }.nav-item { font-size: 16px; padding: 12px 16px; }.context-bar { flex-wrap: wrap; }.context-workspace, .context-selection { flex: 1; }.context-bar select { flex: 1; width: 100%; }.context-selection { min-width: 280px; } }
@media (max-width: 640px) { :root { font-size: 17px; }.app-header { padding: 14px 20px; min-height: 70px; flex-wrap: wrap; gap: 14px; }.brand strong { font-size: 19px; }.brand-mark { width: 32px; height: 32px; }.header-actions { gap: 16px; flex-wrap: wrap; font-size: 15px; }.download { font-size: 15px; padding: 8px 12px; }.header-actions .text-button { font-size: 15px; }.guide-link { display: none; }.auth { display: block; min-height: 0; padding: 44px 22px 60px; }.auth-intro { margin-bottom: 36px; }.eyebrow { font-size: 17px; margin-bottom: 14px; }.auth-intro h1 { font-size: 44px; letter-spacing: -1.3px; }.auth-lead { font-size: 18px; margin-top: 20px; }.platform-list { font-size: 16px; margin-top: 24px; gap: 16px; }.auth-capabilities { display: none; }.auth-card { padding: 28px 24px; border-radius: 24px; }.auth-card h2 { font-size: 27px; }.workspace-nav-bar { padding: 16px 20px 0; }.workspace-nav { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }.nav-item { justify-content: flex-start; padding: 13px 12px; font-size: 16px; gap: 8px; }.nav-item svg { width: 20px; height: 20px; }.workspace-main { padding: 0 20px 40px; }.context-bar { padding: 24px 0; gap: 16px; }.context-workspace, .context-selection { flex-basis: 100%; min-width: 0; }.context-bar label { width: 64px; font-size: 15px; }.workspace-scroll { padding-top: 32px; }.page-heading { align-items: flex-start; gap: 16px; margin-bottom: 28px; }h1 { font-size: 34px; letter-spacing: -.8px; }.page-heading p { font-size: 17px; line-height: 1.65; margin-top: 10px; }.sync-status { display: none; }.icon-text { padding: 10px 12px; min-height: 42px; font-size: 15px; }.icon-text svg { width: 18px; height: 18px; }.stats { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 36px; }.stats > div { padding: 22px; border-radius: 18px; }.stats span { font-size: 15px; }.stats strong { font-size: 38px; margin-top: 14px; }.stats .text-stat { font-size: 26px; line-height: 44px; }h2 { font-size: 24px; }.section-heading { align-items: flex-start; gap: 12px; margin-bottom: 22px; }.section-heading > button, .section-heading .file-button { padding: 10px 12px; font-size: 15px; }.section-heading button svg { width: 18px; height: 18px; }.shop { padding: 26px; }.shop-heading strong { font-size: 22px; }.panel { padding: 24px; border-radius: 20px; }.scope-badge { font-size: 15px; }.library-toolbar { flex-wrap: wrap; gap: 16px; }.library-toolbar button { margin: 0; }.editor-grid { gap: 24px; }.editor-grid textarea { min-height: 280px; font-size: 17px; }.editor-grid #prompt { min-height: 230px; }.editor-footer { padding-top: 24px; margin-top: 24px; }.editor-footer .actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.editor-footer #apply { grid-column: 1 / -1; }.form-grid { grid-template-columns: 1fr; gap: 22px; }.result { padding: 20px; font-size: 17px; }.message { font-size: 17px; gap: 10px; }.pagination { flex-wrap: wrap; }.pagination button { font-size: 15px; }.guide-page { padding: 40px 22px; }.guide-page section { padding: 24px; }.guide-page ol { padding-left: 22px; }.guide-page li, .guide-page section p { font-size: 17px; }dialog { padding: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { button, .panel, .shop, .stats > div, input, select, textarea, .nav-item.active, .scope-badge { border: 1px solid CanvasText; }.primary, .nav-item.active { background: Highlight; color: HighlightText; } }

#trial-result:empty{display:none}

#plain-editor{grid-template-columns:1fr}#structured-editor{padding:8px 0 20px}#structured-editor p{margin-bottom:20px}#unsaved-dialog .actions{flex-wrap:wrap}

#structured-link{display:inline-flex;width:max-content;max-width:100%;padding:12px 20px}
.quick-entry{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 30px;margin:0 0 24px;background:linear-gradient(110deg,#f0f6fa,#fff);border:1px solid #dce7ee;border-radius:16px}.quick-entry>div>span{font-size:12px;letter-spacing:2px;color:#608096}.quick-entry h2{font-size:24px;margin:9px 0}.quick-entry p{font-size:14px;color:#697d8f;margin:0;line-height:1.8}.quick-entry>a{display:flex;align-items:center;gap:20px;padding:13px 20px;border-radius:10px;background:#203f58;color:white;text-decoration:none;white-space:nowrap}@media(max-width:720px){.quick-entry{align-items:stretch;flex-direction:column;padding:22px;gap:18px}.quick-entry h2{font-size:21px}.quick-entry>a{justify-content:center}}
.portal-opening #auth,.portal-opening .workspace-main{display:none!important}
#portal-opening{margin:48px auto;padding:24px;text-align:center;color:var(--muted)}
body:not(.portal-opening) #portal-opening{display:none}

.guide-release{display:grid;gap:12px;margin:20px 0}.guide-release[hidden]{display:none}.guide-release>div{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px}.guide-release dt{font-weight:600}.guide-release dd{margin:0;overflow-wrap:anywhere}@media(max-width:600px){.guide-release>div{grid-template-columns:1fr;gap:4px}}
/* Small, consistent motion with an accessible reduced-motion alternative. */
button, .download, .nav-item, .shop, .file-button { transition: background .2s, color .2s, border-color .2s, box-shadow .25s, transform .25s cubic-bezier(.2,.7,.2,1); }
button:not(:disabled):active, .download:active, .file-button:active { transform: scale(.98); }
.shop:hover { transform: translateY(-3px); border-color: #dcd7e5; box-shadow: 0 14px 36px #1d1d1f08; }
.download:hover { box-shadow: 0 5px 16px #1d1d1f12; }
.file-button:hover { border-color: #c3b5da; }
.auth-intro, .auth-card { animation: arrive .55s cubic-bezier(.2,.7,.2,1) both; }
.auth-card { animation-delay: .07s; }
[data-panel]:not([hidden]) { animation: pane-arrive .3s cubic-bezier(.2,.7,.2,1) both; }
dialog[open] { animation: dialog-arrive .26s cubic-bezier(.2,.7,.2,1) both; }
dialog[open]::backdrop { animation: backdrop-arrive .22s ease-out both; }
dialog.is-closing { animation: dialog-leave .16s ease-in both; pointer-events: none; }
dialog.is-closing::backdrop { animation: backdrop-leave .16s ease-in both; }
.guide-page { max-width: 1060px; }
.guide-page > h1 { font-size: 54px; letter-spacing: -1.6px; }
.guide-page > p { max-width: 760px; }
.guide-contents { display: flex; flex-wrap: wrap; gap: 12px; margin: 38px 0 40px; }
.guide-contents a { display: inline-flex; gap: 9px; align-items: center; padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px; color: #505057; font-size: 17px; transition: background .2s, border-color .2s; }
.guide-contents a:hover { background: #f5f1fb; border-color: #e1d4f3; color: var(--accent); text-decoration: none; }
.guide-contents span { color: var(--accent); font-size: 16px; font-weight: 500; }
.guide-page section { scroll-margin-top: 110px; }
.guide-page section:focus { outline: none; }
.guide-page section:focus-visible { outline: 3px solid #b99ae9; outline-offset: 5px; }
.guide-page section h2 { display: flex; align-items: center; gap: 16px; }
.guide-page .guide-step { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; background: #fff; border-radius: 12px; font-size: 19px; color: var(--accent); }
.guide-page > .primary { transition: background .2s, transform .2s; }
.guide-page > .primary:hover { text-decoration: none; transform: translateY(-1px); }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pane-arrive { from { opacity: .3; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dialog-leave { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes backdrop-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-leave { from { opacity: 1; } to { opacity: 0; } }
@media(max-width:640px) { .guide-page > h1 { font-size: 38px; letter-spacing: -.8px; }.guide-contents { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 30px 0; }.guide-contents a { padding: 12px; font-size: 16px; }.guide-page section h2 { gap: 12px; font-size: 22px; }.guide-page .guide-step { width: 36px; height: 36px; font-size: 17px; } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }.shop:hover, .guide-page > .primary:hover { transform: none; } }

/* Keep long knowledge lists and modal scrolling inside their own surface. */
.kb-entry-list, .kb-detail-pane, dialog { overscroll-behavior-y: contain; }
.workspace-setup-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:720px;margin-top:22px}.workspace-setup-form label{display:grid;gap:8px}.workspace-setup-form input{width:100%;box-sizing:border-box}.workspace-setup-form [role=alert]{grid-column:1/-1;color:#b42318}.workspace-setup-form button{justify-self:start}.workspace-setup-form [hidden]{display:none!important}@media(max-width:700px){.workspace-setup-form{grid-template-columns:1fr}}
@media (max-width: 700px) { .header-actions { flex-wrap: wrap; justify-content: flex-end; } }
