:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --ink: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --brand: #047857;
  --brand-dark: #065f46;
  --brand-soft: #ecfdf5;
  --info: #3b82f6;
  --warning: #f59e0b;
  --danger: #ef4444;
  --violet: #8b5cf6;
  --shadow: 0 14px 36px rgba(31, 41, 55, .08);
}
* { box-sizing: border-box; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: #047857; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.site-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { padding: 24px 0 14px; }
.site-name { color: var(--ink); font-size: 1.05rem; font-weight: 850; letter-spacing: .08em; text-decoration: none; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; color: var(--muted); font-size: .9rem; }
.breadcrumb a { color: inherit; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding: 30px 0 24px; }
.eyebrow { margin: 0 0 8px; color: var(--brand-dark); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; max-width: 850px; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.06; letter-spacing: -.04em; }
.hero-copy { max-width: 760px; margin: 14px 0 0; color: #4b5563; font-size: 1.05rem; }
.archetype-pill { align-self: start; padding: 8px 12px; border: 1px solid #a7f3d0; border-radius: 999px; background: var(--brand-soft); color: #047857; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.workspace { display: grid; grid-template-columns: minmax(300px, .86fr) minmax(0, 1.34fr); gap: 22px; align-items: start; }
.workspace.planner, .workspace.calendar { grid-template-columns: minmax(310px, .72fr) minmax(0, 1.5fr); }
.workspace.console { grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); }
.panel { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.input-panel { padding: 22px; position: sticky; top: 16px; }
.panel-title { margin: 0 0 4px; font-size: 1.18rem; }
.panel-note { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.inline-warning { margin: -4px 0 16px; border: 1px solid #fcd34d; border-left: 4px solid #d97706; border-radius: 10px; background: #fffbeb; color: #78350f; padding: 10px 12px; font-size: .8rem; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tap-controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.tap-controls span { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; color: #374151; font-size: .88rem; font-weight: 750; }
.field-help { min-height: 1.15em; margin: 5px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.4; }
input, select, textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; color: var(--ink); padding: 10px 11px; outline: none; transition: border .15s, box-shadow .15s; }
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(16, 185, 129, .14); }
.actions { display: flex; gap: 10px; margin-top: 18px; }
.input-tools { display: flex; gap: 8px; margin-top: 9px; }
.input-tools button { border: 0; background: transparent; color: #047857; padding: 4px 0; font-size: .76rem; font-weight: 750; }
.input-tools button + button { border-left: 1px solid var(--border); padding-left: 9px; }
.primary, .secondary { min-height: 44px; border-radius: 10px; padding: 10px 15px; font-weight: 800; }
.primary { flex: 1; border: 1px solid var(--brand); background: var(--brand); color: white; }
.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.secondary { border: 1px solid #d1d5db; background: white; color: #374151; }
.secondary:hover { background: var(--surface-soft); }
.error { margin-top: 12px; border: 1px solid #fecaca; border-radius: 10px; background: #fef2f2; color: #991b1b; padding: 10px 12px; font-size: .88rem; }
.result-panel { min-height: 440px; overflow: hidden; }
body[data-archetype="calendar"] .result-panel { border-top: 5px solid var(--violet); }
body[data-archetype="timeline"] .result-panel { border-top: 5px solid var(--info); }
body[data-archetype="planner"] .result-panel { border-top: 5px solid var(--brand); }
body[data-archetype="dashboard"] .result-panel { border-top: 5px solid var(--warning); }
body[data-archetype="lanes"] .result-panel { border-top: 5px solid #6366f1; }
body[data-archetype="console"] .result-panel { border-top: 5px solid #374151; background: #f8fafc; }
.result-empty { display: grid; min-height: 440px; place-items: center; padding: 40px; text-align: center; color: var(--muted); }
.result-empty-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 18px; background: var(--brand-soft); color: var(--brand-dark); font-size: 1.8rem; }
.result-content { padding: 24px; }
.result-kicker { margin: 0 0 5px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-primary { margin: 0; color: var(--ink); font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -.04em; overflow-wrap: anywhere; }
.result-detail { margin: 10px 0 0; color: #4b5563; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.metrics-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metrics-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); padding: 12px; }
.metric span { display: block; color: var(--muted); font-size: .75rem; font-weight: 700; }
.metric strong { display: block; margin-top: 3px; font-size: 1.05rem; overflow-wrap: anywhere; }
.visual { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 20px; }
.timeline { position: relative; display: grid; gap: 12px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: #d1fae5; }
.timeline-item { position: relative; padding-left: 30px; }
.timeline-item::before { content: ""; position: absolute; left: 3px; top: 7px; width: 14px; height: 14px; border: 3px solid white; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px #a7f3d0; }
.timeline-item strong, .timeline-item span { display: block; }
.timeline-item span { color: var(--muted); font-size: .84rem; }
.lanes { display: grid; gap: 10px; }
.lane { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; align-items: center; }
.lane-label { font-size: .83rem; font-weight: 750; }
.lane-track { min-height: 38px; border: 1px solid #ddd6fe; border-radius: 9px; background: linear-gradient(90deg, #eef2ff, #faf5ff); overflow: hidden; }
.lane-block { min-height: 36px; display: flex; align-items: center; padding: 7px 10px; background: rgba(139, 92, 246, .16); color: #5b21b6; font-size: .8rem; font-weight: 750; }
.schedule { display: grid; gap: 8px; }
.schedule-row { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.schedule-time { padding-top: 10px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.schedule-block { border-left: 4px solid var(--brand); border-radius: 8px; background: var(--brand-soft); padding: 9px 11px; }
.schedule-block strong, .schedule-block span { display: block; }
.schedule-block span { color: #4b5563; font-size: .8rem; }
.console-output { border-radius: 12px; background: #111827; color: #d1fae5; padding: 17px; font: .86rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.bars { display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 125px minmax(0, 1fr) 70px; gap: 10px; align-items: center; font-size: .8rem; }
.bar-track { height: 13px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--info)); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-cell { min-height: 65px; border: 1px solid var(--border); border-radius: 8px; background: white; padding: 6px; font-size: .72rem; }
.calendar-cell strong { display: block; font-size: .77rem; }
.calendar-cell.active { border-color: #a7f3d0; background: var(--brand-soft); }
.calendar-cell.alt { border-color: #ddd6fe; background: #f5f3ff; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.result-audit { margin-top: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); padding: 10px 12px; }
.result-audit summary { cursor: pointer; font-size: .82rem; font-weight: 780; }
.result-audit dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.result-audit dl div { min-width: 0; border-top: 1px solid var(--border); padding-top: 7px; }
.result-audit dt { color: var(--muted); font-size: .7rem; font-weight: 750; }
.result-audit dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: .82rem; }
.recent-results { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.recent-results h3 { margin: 0 0 8px; font-size: .82rem; }
.recent-results ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .76rem; }
.copy-button { border: 1px solid #d1d5db; border-radius: 9px; background: white; color: #374151; padding: 8px 12px; font-size: .8rem; font-weight: 750; }
.content-grid { display: block; width: min(940px, 100%); margin: 28px auto; }
.article { display: grid; gap: 16px; }
.section-purpose { order: 1; }.section-instructions { order: 2; }.section-method { order: 3; }.section-example { order: 4; }.section-interpretation { order: 5; }.section-visual { order: 6; }.section-limits { order: 7; }.section-workflow { order: 8; }.section-audit { order: 9; }.section-source { order: 10; }.section-faq { order: 11; }
body[data-archetype="calendar"] .section-example { order: 3; } body[data-archetype="calendar"] .section-visual { order: 4; } body[data-archetype="calendar"] .section-method { order: 5; }
body[data-archetype="planner"] .section-example { order: 3; } body[data-archetype="planner"] .section-visual { order: 4; } body[data-archetype="planner"] .section-method { order: 5; }
body[data-archetype="dashboard"] .section-interpretation { order: 3; } body[data-archetype="dashboard"] .section-method { order: 4; } body[data-archetype="dashboard"] .section-example { order: 5; }
body[data-archetype="lanes"] .section-example { order: 3; } body[data-archetype="lanes"] .section-interpretation { order: 4; } body[data-archetype="lanes"] .section-visual { order: 5; } body[data-archetype="lanes"] .section-method { order: 6; }
body[data-archetype="console"] .section-visual { order: 4; } body[data-archetype="console"] .section-example { order: 5; } body[data-archetype="console"] .section-interpretation { order: 6; }
.content-card { border: 1px solid var(--border); border-radius: 15px; background: white; padding: 22px; }
.content-card h2 { margin: 0 0 10px; font-size: 1.25rem; }
.content-card h3 { margin: 20px 0 8px; font-size: 1rem; }
.content-card p, .content-card li { color: #4b5563; }
.content-card p:last-child, .content-card ul:last-child { margin-bottom: 0; }
.editorial-section { width: 100%; box-sizing: border-box; }
.editorial-section h2 { margin: 0 0 10px; font-size: 1.32rem; line-height: 1.25; }
.editorial-section h3 { margin: 18px 0 7px; font-size: 1rem; }
.editorial-section p, .editorial-section li { color: #4b5563; }
.editorial-plain { padding: 7px 4px; }
.editorial-rule { padding: 20px 4px 7px; border-top: 1px solid var(--border); }
.editorial-accent { padding: 20px 22px; border-left: 3px solid var(--brand); background: #f0fdf4; border-radius: 0 13px 13px 0; }
.editorial-soft { padding: 20px 22px; background: #f8fafc; border-radius: 14px; }
.editorial-section .field-notes, .editorial-section .review-points { margin: 12px 0 0; padding-left: 21px; }
.editorial-section .field-notes li, .editorial-section .review-points li { margin: 7px 0; }
.editorial-section .formula-box { margin-top: 12px; }
.editorial-section .contextual-link { margin-top: 12px; }
.contextual-link { margin-top: 14px; }
.contextual-link a { color: var(--brand-dark); font-weight: 780; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.quick-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.quick-fact { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); padding: 10px 11px; }
.quick-fact span { display: block; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.quick-fact strong { display: block; margin-top: 3px; font-size: .87rem; }
.section-kicker { margin: 0 0 5px; color: var(--brand-dark) !important; font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.steps { padding-left: 21px; }
.steps li + li { margin-top: 8px; }
.formula-box { margin: 14px 0; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; padding: 12px 14px; color: #1e3a8a; font-weight: 750; }
.reviewed-date { color: var(--muted) !important; font-size: .76rem; }
.example-box { border: 1px solid #a7f3d0; border-radius: 12px; background: var(--brand-soft); padding: 15px; }
.example-box strong { color: #047857; }
.check-list { padding-left: 0; list-style: none; }
.check-list li { position: relative; padding-left: 25px; }
.check-list li + li { margin-top: 8px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-dark); font-weight: 900; }
.faq-list { display: grid; gap: 9px; }
.faq-list details { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); overflow: hidden; transition: border-color .15s, background .15s; }
.faq-list details[open] { border-color: #a7f3d0; background: #fff; }
.faq-list summary { display: grid; grid-template-columns: minmax(0, 1fr) 1.5rem; gap: 12px; align-items: start; cursor: pointer; color: var(--ink); padding: 12px 14px; font-weight: 780; line-height: 1.45; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--brand-dark); font-size: 1.25rem; font-weight: 700; line-height: 1; text-align: center; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list .faq-answer { border-top: 1px solid var(--border); padding: 0 14px 13px; }
.faq-list details p { margin: 11px 0 0; }
.context-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.context-links a { border-radius: 999px; background: var(--brand-soft); padding: 6px 10px; font-size: .78rem; font-weight: 750; text-decoration: none; }
.method-box { border-left: 4px solid var(--info); background: #eff6ff; }
.warning-box { border-left: 4px solid var(--warning); background: #fffbeb; }
.related { position: sticky; top: 16px; }
.related h2 { margin: 0 0 12px; font-size: 1.08rem; }
.related-list { display: grid; gap: 9px; }
.related-link { display: block; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); padding: 10px 11px; color: var(--ink); font-size: .86rem; font-weight: 750; text-decoration: none; }
.related-link:hover { border-color: #a7f3d0; background: var(--brand-soft); }
.site-footer { margin-top: 38px; border-top: 1px solid var(--border); background: white; }
.footer-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 25px 0; color: var(--muted); font-size: .84rem; text-align: center; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 13px; margin-bottom: 8px; }
.category-tools { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(220px, .45fr) auto; gap: 14px; align-items: end; margin: 0 0 22px; border: 1px solid var(--border); border-radius: 15px; background: white; padding: 16px; box-shadow: var(--shadow); }
.category-tools label { display: block; margin-bottom: 5px; font-size: .78rem; font-weight: 800; }
.category-tools p { margin: 0; padding: 10px 0; color: var(--muted); font-size: .85rem; font-weight: 750; white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .archetype-pill { justify-self: start; }
  .workspace, .workspace.planner, .workspace.calendar, .workspace.console, .content-grid { grid-template-columns: 1fr; }
  .input-panel, .related { position: static; }
  .result-panel, .result-empty { min-height: 360px; }
  .category-tools { grid-template-columns: 1fr 1fr; }
  .category-tools p { grid-column: 1 / -1; padding: 0; }
}
@media (max-width: 560px) {
  .site-shell { width: min(100% - 20px, 1180px); }
  .site-header { padding-top: 16px; }
  .hero { padding-top: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .tap-controls { align-items: flex-start; flex-direction: column; }
  .field.full { grid-column: auto; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .quick-facts { grid-template-columns: 1fr; }
  .result-audit dl { grid-template-columns: 1fr; }
  .lane { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 92px minmax(0, 1fr) 55px; }
  .calendar-grid { gap: 3px; }
  .calendar-cell { min-height: 52px; padding: 4px; }
  .category-tools { grid-template-columns: 1fr; }
  .category-tools p { grid-column: auto; }
}
@media print {
  .site-header, .site-footer, .input-panel, .content-grid, .result-actions { display: none !important; }
  body { background: white; }
  .site-shell, .workspace, .result-panel { width: 100%; display: block; border: 0; box-shadow: none; }
  .result-content { padding: 0; }
}

:root{--brand:#6d28d9;--brand-dark:#4c1d95;--brand-soft:#f3e8ff;--accent:#8b5cf6}.primary{background:#6d28d9}.archetype-pill{color:#6d28d9;background:#f3e8ff}.result-panel{border-top-color:#8b5cf6}.formula-box{border-left-color:#8b5cf6;background:#faf5ff}.editorial-accent{border-left-color:#8b5cf6;background:#faf5ff}
