:root {
  --canvas: #ebe8e2;
  --surface: #f3f0ea;
  --surface-strong: #f8f6f1;
  --ink: #323530;
  --ink-soft: #686b65;
  --line: #d4cec4;
  --green: #547864;
  --green-dark: #3f5f4d;
  --green-soft: #dce5df;
  --accent: #6c8174;
  --accent-dark: #4e6256;
  --accent-soft: #dfe6e1;
  --amber: #a85f10;
  --amber-soft: #fff0d7;
  --rose: #a24155;
  --rose-soft: #fae8ec;
  --blue: #315f94;
  --blue-soft: #e8f0fb;
  --shadow: 0 20px 60px rgba(50, 45, 35, .08);
  --shadow-small: 0 8px 30px rgba(50, 45, 35, .07);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 88% -10%, rgba(250,248,244,.62), transparent 34%), var(--canvas); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(113, 135, 121, .3); outline-offset: 2px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 18px 20px; border-right: 1px solid rgba(190, 183, 172, .74); display: flex; flex-direction: column; background: rgba(229, 225, 217, .94); backdrop-filter: blur(18px); z-index: 10; }
.brand-lockup { width: 100%; display: flex; gap: 12px; align-items: center; padding: 0 10px 24px; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.brand-lockup:hover strong, .brand-lockup:focus-visible strong { color: var(--accent); }
.brand-lockup strong { display: block; letter-spacing: -.02em; font-size: 16px; }
.brand-lockup small { display: block; color: var(--ink-soft); margin-top: 2px; font-size: 12px; }
.brand-mark { width: 40px; height: 40px; border-radius: 14px; background: var(--ink); display: grid; place-content: center; gap: 3px; transform: rotate(-3deg); box-shadow: 0 7px 18px rgba(36,39,46,.15); }
.brand-mark span { display: block; height: 4px; border-radius: 999px; background: white; }
.brand-mark span:nth-child(1) { width: 18px; }
.brand-mark span:nth-child(2) { width: 12px; margin-left: 6px; opacity: .78; }
.brand-mark span:nth-child(3) { width: 15px; margin-left: 2px; opacity: .48; }
.primary-nav { display: grid; gap: 4px; overflow: auto; padding-right: 3px; }
.primary-nav { scrollbar-width: thin; scrollbar-color: #899188 #dad6ce; }
.primary-nav::-webkit-scrollbar { width: 8px; height: 8px; }
.primary-nav::-webkit-scrollbar-track { background: #dad6ce; border-radius: 999px; }
.primary-nav::-webkit-scrollbar-thumb { background: #899188; border: 2px solid #dad6ce; border-radius: 999px; }
.primary-nav::-webkit-scrollbar-thumb:hover { background: #6f7d73; }
.primary-nav button { width: 100%; border: 0; background: transparent; color: var(--ink-soft); padding: 10px 12px; border-radius: 12px; display: flex; align-items: center; gap: 12px; text-align: left; transition: .18s ease; }
.primary-nav button span { width: 22px; text-align: center; font-size: 17px; font-weight: 500; }
.primary-nav button b { font-size: 13px; font-weight: 640; }
.primary-nav button:hover { color: var(--ink); background: rgba(244,241,235,.7); }
.primary-nav button.active { color: var(--accent-dark); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(113, 135, 121, .14); }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 13px 12px; border: 1px solid var(--line); background: rgba(239,235,228,.8); border-radius: 15px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot strong { font-size: 10px; letter-spacing: .08em; }
.sidebar-foot small { color: var(--ink-soft); font-size: 11px; margin-top: 2px; }
.workspace { min-width: 0; padding: 0 34px 50px; }
.topbar { height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1440px; margin: auto; }
.eyebrow { color: var(--ink-soft); font-size: 12px; font-weight: 650; letter-spacing: .04em; margin: 0 0 5px; }
.topbar h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.045em; line-height: 1; margin: 0; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.ghost-button, .profile-button, .primary-button, .secondary-button, .danger-button, .text-button { border: 0; border-radius: 13px; font-weight: 690; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.ghost-button { padding: 11px 14px; color: var(--ink); background: rgba(239,235,228,.76); border: 1px solid var(--line); }
.profile-button { display: flex; align-items: center; gap: 9px; padding: 7px 10px 7px 7px; background: var(--surface-strong); box-shadow: var(--shadow-small); text-align: left; }
.profile-button > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: white; background: linear-gradient(145deg, var(--accent), var(--accent-dark)); }
.profile-button b, .profile-button small { display: block; }
.profile-button b { font-size: 12px; }
.profile-button small { color: var(--ink-soft); font-size: 10px; margin-top: 1px; }
.environment-banner { max-width: 1440px; margin: 0 auto 22px; padding: 11px 15px; border: 1px solid #cfc2aa; background: rgba(224,214,194,.78); border-radius: 14px; display: flex; gap: 9px; align-items: center; color: #66563f; font-size: 12px; }
.environment-banner b { white-space: nowrap; }
#view { max-width: 1440px; margin: auto; min-height: 600px; }
#view:focus, #view:focus-visible { outline: none; }
.loading-card { padding: 80px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--radius-xl); }
.page-stack { display: grid; gap: 22px; animation: enter .26s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.hero-panel { position: relative; overflow: hidden; padding: clamp(26px, 5vw, 50px); min-height: 280px; border-radius: var(--radius-xl); background: linear-gradient(125deg, #1f2628 0%, #253b34 56%, #28684e 100%); color: white; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 36px; align-items: end; }
.hero-panel::before { content: ""; position: absolute; width: 410px; height: 410px; border-radius: 48%; right: -130px; top: -210px; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 44px rgba(255,255,255,.03), 0 0 0 88px rgba(255,255,255,.025); }
.hero-copy { position: relative; z-index: 1; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px 10px; border-radius: 999px; color: #d8f8e9; background: rgba(235,255,246,.1); border: 1px solid rgba(235,255,246,.16); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.hero-copy h2 { max-width: 720px; margin: 0; font-size: clamp(31px, 5vw, 57px); line-height: 1.02; letter-spacing: -.06em; font-weight: 740; }
.hero-copy p { max-width: 600px; margin: 18px 0 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.7; }
.command-box { position: relative; z-index: 1; padding: 18px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; backdrop-filter: blur(14px); }
.command-box label { display: block; color: rgba(255,255,255,.74); font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.command-box textarea { width: 100%; min-height: 92px; resize: vertical; border: 0; background: var(--surface-strong); color: var(--ink); border-radius: 14px; padding: 14px; line-height: 1.55; }
.command-box button { width: 100%; margin-top: 10px; }
.primary-button { padding: 12px 16px; color: white; background: var(--green); box-shadow: 0 8px 20px rgba(22,136,90,.2); }
.primary-button:hover, .secondary-button:hover, .danger-button:hover, .ghost-button:hover { transform: translateY(-1px); }
.primary-button:hover { background: var(--green-dark); }
.secondary-button { padding: 11px 14px; color: var(--ink); background: var(--surface-strong); border: 1px solid var(--line); }
.danger-button { padding: 11px 14px; color: var(--rose); background: var(--rose-soft); }
.text-button { padding: 8px 0; background: transparent; color: var(--green-dark); }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.section-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.section-heading p { margin: 5px 0 0; color: var(--ink-soft); font-size: 13px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.quick-card { position: relative; min-height: 145px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,253,249,.82); box-shadow: var(--shadow-small); text-align: left; overflow: hidden; }
.quick-card::after { content: attr(data-symbol); position: absolute; right: 14px; bottom: -18px; font-size: 78px; color: rgba(36,39,46,.045); font-weight: 800; }
.quick-card small { display: block; color: var(--ink-soft); font-size: 11px; }
.quick-card strong { display: block; margin-top: 8px; font-size: 17px; letter-spacing: -.025em; }
.quick-card p { color: var(--ink-soft); font-size: 12px; line-height: 1.5; margin: 7px 0 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.metric-card .metric-label { color: var(--ink-soft); font-size: 11px; font-weight: 650; }
.metric-card strong { display: block; margin-top: 7px; font-size: 27px; line-height: 1; letter-spacing: -.04em; }
.metric-card small { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 11px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 18px; align-items: start; }
.three-column { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: rgba(255,253,249,.88); box-shadow: var(--shadow-small); }
.panel.compact { padding: 17px; border-radius: var(--radius-lg); }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head h2, .panel-head h3 { margin: 0; letter-spacing: -.035em; }
.panel-head h2 { font-size: 20px; }
.panel-head h3 { font-size: 16px; }
.panel-head p { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.badge { display: inline-flex; align-items: center; white-space: nowrap; padding: 6px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-size: 10px; font-weight: 760; letter-spacing: .035em; }
.badge.warning { background: var(--amber-soft); color: var(--amber); }
.badge.unknown { background: #efedf2; color: #6a6470; }
.badge.danger { background: var(--rose-soft); color: var(--rose); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.empty-state { min-height: 210px; display: grid; place-items: center; text-align: center; border: 1px dashed #d8d0c5; border-radius: var(--radius-lg); padding: 28px; color: var(--ink-soft); }
.empty-state strong { display: block; color: var(--ink); margin-bottom: 6px; }
.phone-stage { display: grid; place-items: center; min-height: 540px; padding: 24px; border-radius: 22px; background: linear-gradient(145deg, #ded8cd, #f4f0e8); overflow: hidden; }
.phone { width: 286px; min-height: 540px; border: 9px solid #25272b; border-radius: 38px; background: #f9f7f2; box-shadow: 0 30px 70px rgba(32,31,28,.22); overflow: hidden; position: relative; }
.phone::before { content: ""; display: block; width: 90px; height: 21px; border-radius: 0 0 15px 15px; background: #25272b; position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 3; }
.phone-screen { min-height: 522px; padding: 38px 14px 16px; background: linear-gradient(#f2efe8, #fbfaf7 38%); }
.phone-header { display: flex; justify-content: space-between; align-items: center; padding: 5px 2px 14px; font-size: 11px; color: #70737a; }
.chat-bubble { max-width: 82%; margin: 12px 0 28px auto; padding: 11px 13px; border-radius: 15px 15px 4px 15px; background: #8adf72; font-size: 11px; line-height: 1.45; }
.rich-menu-preview { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 15px; overflow: hidden; border: 1px solid rgba(32,31,28,.09); background: #f5e9da; box-shadow: 0 10px 30px rgba(32,31,28,.10); }
.rich-menu-cell { min-height: 76px; display: grid; place-items: center; padding: 7px; text-align: center; font-size: 10px; font-weight: 700; border-right: 1px solid rgba(32,31,28,.09); border-bottom: 1px solid rgba(32,31,28,.09); background: radial-gradient(circle at top, rgba(255,255,255,.65), transparent 60%); }
.rich-menu-cell:nth-child(3n) { border-right: 0; }
.rich-menu-cell:nth-child(n+4) { border-bottom: 0; }
.rich-menu-cell span { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 4px; border-radius: 9px; background: rgba(255,255,255,.72); font-size: 13px; }
.form-grid { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-strong); color: var(--ink); }
.field textarea { min-height: 90px; resize: vertical; }
.data-list { display: grid; gap: 9px; }
.data-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.data-row:last-child { border-bottom: 0; }
.data-row strong { display: block; font-size: 13px; }
.data-row p, .data-row small { display: block; margin: 3px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.code-line { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; word-break: break-all; color: #535761; background: #f2efe9; border-radius: 9px; padding: 8px; }
.flex-preview { border: 1px solid var(--line); border-radius: 20px; background: var(--surface-strong); overflow: hidden; box-shadow: 0 16px 36px rgba(42,37,30,.10); }
.flex-hero { min-height: 145px; padding: 24px; background: linear-gradient(135deg, #172d26, #2c7c59); color: white; display: flex; align-items: end; }
.flex-hero strong { font-size: 20px; letter-spacing: -.04em; }
.flex-body { padding: 18px; }
.flex-body p { margin: 0 0 16px; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.flex-body button { width: 100%; }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 18px; }
.stepper span { height: 5px; border-radius: 999px; background: #ded9d1; }
.stepper span.active { background: var(--green); }
.timeline { position: relative; padding-left: 22px; display: grid; gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -20px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.timeline-item strong { font-size: 12px; }
.timeline-item p { color: var(--ink-soft); font-size: 11px; margin: 4px 0 0; line-height: 1.45; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; min-width: 740px; background: var(--surface-strong); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 11px; vertical-align: top; }
th { color: var(--ink-soft); background: #f8f6f1; font-weight: 760; position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; overflow-wrap: anywhere; word-break: break-word; }
.progress { height: 8px; border-radius: 999px; background: #ece8e1; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.notice { padding: 13px 15px; border-radius: 14px; color: var(--blue); background: var(--blue-soft); font-size: 11px; line-height: 1.55; }
.notice.warning { color: var(--amber); background: var(--amber-soft); }
.notice.danger { color: var(--rose); background: var(--rose-soft); }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: grid; gap: 10px; width: min(370px, calc(100vw - 34px)); }
.toast { padding: 14px 16px; border-radius: 15px; color: white; background: #24272e; box-shadow: 0 16px 46px rgba(15,15,15,.24); animation: toast-in .2s ease both; font-size: 12px; line-height: 1.5; }
.toast.error { background: #8e3245; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.skeleton { border-radius: 10px; min-height: 14px; background: linear-gradient(90deg,#eee9e1,#f8f5ef,#eee9e1); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 88px minmax(0,1fr); }
  .sidebar { padding-inline: 12px; }
  .brand-lockup { justify-content: center; padding-inline: 0; }
  .brand-lockup > div:last-child, .primary-nav button b, .sidebar-foot div { display: none; }
  .primary-nav button { justify-content: center; padding: 11px; }
  .sidebar-foot { justify-content: center; }
  .hero-panel { grid-template-columns: 1fr; }
  .quick-grid, .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .workspace { padding-inline: 22px; }
  .two-column { grid-template-columns: minmax(0, 1fr); }
  .three-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: flex-start; flex-wrap: wrap; }
  .section-heading > .button-row { width: 100%; justify-content: flex-start; }
  .panel, .phone-stage, .data-row { min-width: 0; }
  .code-line, .data-row p, .data-row strong { overflow-wrap: anywhere; word-break: break-word; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .app-shell { display: block; }
  .sidebar { position: fixed; height: auto; inset: auto 0 0 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); background: rgba(235,232,226,.97); z-index: 50; }
  .brand-lockup, .sidebar-foot { display: none; }
  .primary-nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; padding: 0 2px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-nav button, .primary-nav .nav-link { flex: 0 0 70px; min-width: 70px; width: 70px; min-height: 54px; display: grid; gap: 3px; padding: 7px 5px; place-items: center; align-content: center; border-radius: 13px; color: var(--ink-soft); text-decoration: none; scroll-snap-align: start; }
  .primary-nav button span, .primary-nav .nav-link span { font-size: 17px; line-height: 1; }
  .primary-nav button b, .primary-nav .nav-link b { display: block; max-width: 100%; font-size: 9px; line-height: 1.2; white-space: nowrap; writing-mode: horizontal-tb; word-break: keep-all; overflow: hidden; text-overflow: ellipsis; }
  .primary-nav button.active, .primary-nav .nav-link:focus-visible { color: var(--accent-dark); background: var(--accent-soft); }
  .workspace { padding: 0 15px 30px; }
  .topbar { height: 78px; }
  .top-actions .ghost-button, .profile-button div { display: none; }
  .profile-button { padding: 5px; }
  .environment-banner { align-items: flex-start; font-size: 10px; line-height: 1.45; }
  .environment-banner b { display: none; }
  .hero-panel { min-height: 0; padding: 25px 21px; gap: 25px; }
  .hero-copy h2 { font-size: 36px; }
  .quick-grid, .metrics-grid, .three-column, .two-column { grid-template-columns: 1fr; }
  .quick-card { min-height: 118px; }
  .section-heading { align-items: flex-start; }
  .panel { padding: 17px; border-radius: 21px; }
  .phone-stage { min-height: 500px; padding: 14px; }
  .phone { width: min(286px, 100%); }
  .button-row > button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* WEB-LINE-UX-001 creator-guided Preview layer */
:root {
  --violet: #718579;
  --violet-dark: #52655a;
  --violet-soft: #dfe6e1;
  --coral: #9a8177;
  --coral-soft: #e9dfda;
  --mint: #dce5df;
  --focus: #60776a;
}
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 14px; top: 10px; z-index: 999; transform: translateY(-160%); padding: 10px 14px; border-radius: 12px; background: var(--ink); color: white; text-decoration: none; font-weight: 760; }
.skip-link:focus { transform: none; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline-color: rgba(96, 119, 106, .48); }
button[aria-busy="true"] { cursor: progress; opacity: .72; }
.creator-page-shell { display: grid; gap: 22px; }
.environment-banner { justify-content: space-between; }
.environment-banner > div:first-child { display: flex; gap: 9px; align-items: center; min-width: 0; }
.safety-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.safety-pills span { padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.76); border: 1px solid rgba(128,88,22,.16); font-size: 9px; font-weight: 820; letter-spacing: .055em; white-space: nowrap; }
.guide-reopen-button { color: var(--violet-dark); border-color: rgba(96,119,106,.24); background: rgba(223,230,225,.82); }

.creator-guide-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: 24px; padding: clamp(22px, 3.3vw, 34px); border: 1px solid rgba(96,119,106,.24); border-radius: 28px; background: radial-gradient(circle at 94% 2%, rgba(154,129,119,.10), transparent 28%), linear-gradient(135deg, #f5f2ec 0%, #eeece6 56%, #f1ebe6 100%); box-shadow: 0 20px 60px rgba(66,73,66,.10); }
.creator-guide-card::after { content: ""; position: absolute; width: 190px; height: 190px; right: -85px; bottom: -118px; border: 1px solid rgba(96,119,106,.2); border-radius: 45%; box-shadow: 0 0 0 28px rgba(96,119,106,.04), 0 0 0 55px rgba(154,129,119,.03); pointer-events: none; }
.creator-guide-copy, .creator-guide-result { position: relative; z-index: 1; min-width: 0; }
.guide-title-row { display: flex; align-items: flex-start; gap: 14px; }
.guide-orbit { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 15px; color: #f4f1eb; background: linear-gradient(145deg, var(--violet), var(--coral)); box-shadow: 0 10px 24px rgba(76,91,81,.2); font-size: 18px; }
.guide-kicker, .error-kicker { display: inline-flex; margin: 0 0 7px; color: var(--violet-dark); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.creator-guide-card h2 { margin: 0; max-width: 760px; font-size: clamp(21px, 2.7vw, 31px); line-height: 1.18; letter-spacing: -.045em; }
.guide-scenario { max-width: 780px; margin: 16px 0 0 56px; color: #5d5968; font-size: 13px; line-height: 1.72; }
.guide-scenario b { color: var(--ink); }
.guide-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 19px 0 0 56px; }
.creator-primary-action { background: linear-gradient(135deg, var(--violet), var(--violet-dark)); box-shadow: 0 10px 24px rgba(76,91,81,.2); }
.creator-primary-action:hover { background: var(--violet-dark); }
.text-button.subtle { color: var(--ink-soft); font-weight: 600; }
.creator-guide-result { display: grid; align-content: start; padding: 17px; border: 1px solid rgba(96,119,106,.2); border-radius: 20px; background: rgba(239,235,228,.82); }
.guide-result-empty { min-height: 126px; display: grid; align-content: center; gap: 7px; text-align: center; color: var(--ink-soft); }
.guide-result-empty span { color: var(--ink); font-size: 14px; font-weight: 760; }
.guide-result-empty small { line-height: 1.5; }
.guided-run { display: grid; gap: 12px; }
.guided-run-summary { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; }
.guided-run-summary strong { font-size: 12px; line-height: 1.45; }
.guided-run-summary small { grid-column: 2; color: var(--ink-soft); font-size: 10px; }
.guide-check-list { display: grid; gap: 7px; }
.guide-check { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 9px; align-items: start; padding: 9px; border-radius: 12px; background: #e8e6df; }
.guide-check > span:first-child { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 8px; color: var(--green-dark); background: var(--green-soft); font-weight: 800; }
.guide-check strong { font-size: 11px; }
.guide-check p { margin: 3px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.42; }

.truth-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 20px; background: rgba(239,235,228,.82); box-shadow: var(--shadow-small); overflow: hidden; }
.truth-strip > div { min-width: 0; padding: 17px 19px; border-right: 1px solid var(--line); }
.truth-strip > div:last-child { border-right: 0; }
.truth-strip .badge { margin-left: 8px; vertical-align: middle; }
.truth-label { color: var(--ink-soft); font-size: 10px; font-weight: 810; letter-spacing: .06em; }
.truth-strip strong { display: block; margin-top: 7px; font-size: 13px; line-height: 1.45; }
.truth-strip p { margin: 6px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.truth-strip button { margin-top: 6px; }

.blocker-card, .inline-error-card { display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 20px 22px; border: 1px solid rgba(154,129,119,.3); border-radius: 20px; background: linear-gradient(125deg, #ece7e1, var(--coral-soft)); }
.blocker-card h2, .inline-error-card h2 { margin: 0 0 7px; font-size: 18px; letter-spacing: -.035em; }
.blocker-card p, .inline-error-card p { margin: 4px 0; color: #70564f; font-size: 12px; line-height: 1.55; }
.inline-error-region { max-width: 1440px; margin: 0 auto 18px; }
.inline-error-region:empty { display: none; }
.inline-error-card { box-shadow: 0 14px 38px rgba(150,68,54,.11); }
.icon-button { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 12px; background: rgba(239,235,228,.86); color: var(--ink); font-size: 22px; }

.advanced-disclosure { border: 1px solid var(--line); border-radius: 18px; background: rgba(239,235,228,.75); overflow: hidden; }
.advanced-disclosure summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; font-weight: 740; }
.advanced-disclosure summary small { color: var(--ink-soft); font-weight: 500; }
.advanced-disclosure[open] summary { border-bottom: 1px solid var(--line); }
.advanced-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.advanced-grid > div { padding: 17px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.advanced-grid > div:nth-child(2n) { border-right: 0; }
.advanced-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.advanced-grid strong { font-size: 12px; }
.advanced-grid p { margin: 6px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.next-step-card { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 22px 24px; border-radius: 22px; color: #f2eee7; background: linear-gradient(125deg, #3f4942, #596b60 65%, #776960); box-shadow: 0 18px 50px rgba(52,61,55,.17); }
.next-step-card span { color: #d8d2ff; font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.next-step-card h2 { margin: 6px 0 0; font-size: 18px; letter-spacing: -.035em; }
.next-step-card p { margin: 6px 0 0; color: rgba(255,255,255,.68); font-size: 11px; }
.next-step-card .secondary-button { flex: 0 0 auto; }

.guide-dialog, .self-help-dialog { width: min(680px, calc(100vw - 28px)); max-height: min(790px, calc(100vh - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 26px; color: var(--ink); background: var(--surface-strong); box-shadow: 0 34px 110px rgba(28,24,44,.28); overflow: auto; }
.guide-dialog::backdrop, .self-help-dialog::backdrop { background: rgba(30,27,40,.56); backdrop-filter: blur(5px); }
.guide-dialog-shell, .self-help-shell { padding: clamp(22px, 4vw, 34px); }
.guide-dialog-topline { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.guide-stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 18px 0 26px; }
.guide-stepper span { height: 5px; border-radius: 999px; background: #e9e6ef; }
.guide-stepper span.active { background: linear-gradient(90deg, var(--violet), var(--coral)); }
.guide-dialog-body { min-height: 245px; display: grid; align-content: start; }
.guide-dialog-body h2, .self-help-shell h2 { margin: 0; font-size: clamp(25px, 4vw, 36px); line-height: 1.12; letter-spacing: -.05em; }
.guide-dialog-body > p:not(.eyebrow), .self-help-boundary { color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.guide-dialog-actions { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); }
.guide-dialog[open] { position: fixed; z-index: 1002; margin: 0; }
.guide-focus-ring { position: fixed; display: none; z-index: 1001; pointer-events: none; border: 4px solid var(--accent); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(25,22,35,.58), 0 0 0 8px rgba(255,255,255,.9), 0 18px 50px rgba(26,18,68,.28); transition: left .22s ease, top .22s ease, width .22s ease, height .22s ease; }
.guide-focus-ring.active { display: block; }
.guide-focus-ring span { position: absolute; left: 12px; bottom: calc(100% + 11px); padding: 7px 11px; border-radius: 999px; color: white; background: var(--accent); box-shadow: 0 8px 24px rgba(33,22,81,.25); font-size: 12px; font-weight: 800; white-space: nowrap; }
.full-width { width: 100%; margin-top: 14px; }
.micro-boundary { margin: 10px 0 0 !important; color: var(--ink-soft); font-size: 10px !important; line-height: 1.55 !important; }
.self-help-shell { display: grid; gap: 16px; }
.self-help-boundary { margin: 0; padding: 13px 15px; border-radius: 14px; color: var(--violet-dark); background: var(--violet-soft); }
.self-help-shell .field span { color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.self-help-answer { min-height: 130px; padding: 16px; border: 1px dashed #d6d0e6; border-radius: 16px; background: #faf9fd; }
.self-help-answer > p, .self-help-response > p { margin: 0 0 12px; color: #555160; font-size: 12px; line-height: 1.65; }
.counter-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.counter-proof > span { padding: 10px; border-radius: 12px; color: var(--ink-soft); background: var(--surface-strong); border: 1px solid var(--line); font-size: 10px; text-align: center; }
.counter-proof b { display: block; margin-top: 4px; color: var(--green-dark); font-size: 21px; }
.counter-proof small { display: block; margin-top: 3px; }

.safety-ledger { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.safety-ledger > div { padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-strong); }
.safety-ledger span { display: block; color: var(--ink-soft); font-size: 10px; }
.safety-ledger strong { display: block; margin-top: 5px; font-size: 15px; }
.reliability-job { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.reliability-job:last-child { border-bottom: 0; }
.reliability-job strong { font-size: 13px; }
.reliability-job p { margin: 5px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.job-counters { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.job-counters span { padding: 7px 9px; border-radius: 10px; background: #f3f0f7; color: var(--ink-soft); font-size: 9px; }
.job-counters b { color: var(--ink); }

@media (max-width: 1120px) {
  .creator-guide-card { grid-template-columns: 1fr; }
  .creator-guide-result { min-height: 0; }
}
@media (max-width: 900px) {
  .truth-strip { grid-template-columns: 1fr; }
  .truth-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .truth-strip > div:last-child { border-bottom: 0; }
  .advanced-grid { grid-template-columns: 1fr; }
  .advanced-grid > div { border-right: 0; }
  .advanced-grid > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .advanced-grid > div:last-child { border-bottom: 0; }
  .reliability-job { grid-template-columns: 1fr; }
  .job-counters { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .desktop-only { display: none; }
  .top-actions { gap: 6px; }
  .guide-reopen-button { max-width: 110px; padding: 9px 10px; font-size: 10px; line-height: 1.2; }
  .environment-banner { display: grid; }
  .environment-banner > div:first-child { display: block; }
  .safety-pills { justify-content: flex-start; margin-top: 7px; }
  .creator-guide-card { padding: 21px 17px; border-radius: 22px; }
  .guide-title-row { gap: 10px; }
  .guide-orbit { width: 36px; height: 36px; border-radius: 12px; }
  .guide-scenario, .guide-actions { margin-left: 0; }
  .guide-actions > button { width: 100%; }
  .creator-guide-result { padding: 13px; }
  .blocker-card, .inline-error-card, .next-step-card { display: grid; align-items: start; }
  .blocker-card .button-row, .inline-error-card .button-row { width: 100%; }
  .next-step-card .secondary-button { width: 100%; }
  .advanced-disclosure summary { align-items: flex-start; }
  .advanced-disclosure summary small { display: none; }
  .guide-dialog, .self-help-dialog { width: calc(100vw - 18px); max-height: calc(100vh - 18px); border-radius: 21px; }
  .guide-dialog-body { min-height: 220px; }
  .guide-dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .guide-dialog-actions > .text-button { align-self: center; }
  .guide-dialog-actions .button-row { width: 100%; }
  .guide-dialog-actions .button-row button { flex: 1; }
  .guide-dialog[open] { width: calc(100vw - 24px); max-height: min(48vh, 440px); border-radius: 20px; }
  .guide-dialog-shell { padding: 18px; }
  .guide-dialog-body { min-height: 132px; }
  .guide-focus-ring span { max-width: calc(100vw - 48px); overflow: hidden; text-overflow: ellipsis; }
  .counter-proof { grid-template-columns: 1fr; }
  .counter-proof > span { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px; text-align: left; }
  .counter-proof b { margin: 0; font-size: 17px; }
  .safety-ledger { grid-template-columns: 1fr; }
}


/* Creator UX readability pass: preserve professional density without tiny interface text. */
.panel-head p,
.quick-card p,
.metric-card small,
.data-row p,
.data-row small,
.timeline-item p,
.flex-body p,
.notice,
th, td,
.field label,
.self-help-answer > p,
.self-help-response > p,
.reliability-job p { font-size: 12.5px; line-height: 1.6; }

.data-row strong, .timeline-item strong, .reliability-job strong { font-size: 13.5px; }
.badge { font-size: 10.5px; }
.code-line, .mono { font-size: 11.5px; line-height: 1.55; }
.toast { font-size: 13.5px; }

@media (max-width: 760px) {
  .primary-nav button { min-width: 72px; padding: 8px 9px; }
  .primary-nav button b { font-size: 10.5px; line-height: 1.25; }
  .environment-banner { font-size: 11.5px; }
  .panel-head p, .data-row p, .data-row small, .notice, th, td { font-size: 13px; }
}

.primary-nav .nav-link{display:flex;align-items:center;gap:10px;width:100%;border:0;border-radius:14px;background:transparent;color:inherit;text-decoration:none;padding:12px 14px;font:inherit;font-weight:700;cursor:pointer}.primary-nav .nav-link:hover,.primary-nav .nav-link:focus{background:rgba(13,111,77,.08);outline:0}.primary-nav .nav-link span{width:22px;text-align:center;color:var(--accent,#0d6f4d)}
