:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --ink: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --brand: #10b981;
  --brand-dark: #059669;
  --brand-soft: #ecfdf5;
  --info: #3b82f6;
  --warning: #f59e0b;
  --danger: #ef4444;
  --violet: #8b5cf6;
  --shadow: 0 14px 36px rgba(31, 41, 55, .08);
}
* { box-sizing: border-box; }
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; }
.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; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.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; }
.result-detail { margin: 10px 0 0; color: #4b5563; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.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; 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; }
.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; }
.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); padding: 11px 13px; }
.faq-list summary { cursor: pointer; color: var(--ink); font-weight: 780; }
.faq-list details p { margin: 8px 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; }
@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; }
}
@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; }
  .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; }
}
@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; }
}
