/* Theme tokens keep project structure readable in every supported appearance. */
body.warm-modern #nav details[data-space-nav]{margin:5px 0;padding:4px 0;border:0;border-top:1px solid color-mix(in srgb,var(--ap-side-ink,#fff) 20%,transparent);border-radius:0;background:transparent;color:var(--ap-side-ink,#fff)}
body.warm-modern #nav details[data-space-nav]>summary{padding:12px 16px;cursor:pointer;font-size:13px;font-weight:600;color:inherit;list-style-position:inside}
body.warm-modern #nav details[data-space-nav]>button{width:100%;margin:2px 0}
body.warm-modern #nav details[data-space-nav][hidden]{display:none!important}
body.warm-modern #view .space-directions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0;max-width:1100px}
html body.warm-modern[data-theme] #view button.space-direction{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px;padding:24px;min-height:160px;white-space:normal;background:var(--ap-card)!important;color:var(--ap-ink)!important;border:1px solid var(--ap-line)!important;border-radius:var(--ap-radius)!important}
body.warm-modern #view .space-direction strong{font-size:19px}
body.warm-modern #view .space-direction span{font-weight:400;line-height:1.5}
body.warm-modern #view .space-direction small{font-weight:400}
body.warm-modern #view .space-direction:hover{outline:2px solid var(--ap-accent);outline-offset:1px}
body.warm-modern .space-intro{line-height:1.6;max-width:920px;color:var(--ap-muted)}
body.warm-modern .space-primary-tabs{margin:18px 0 8px;padding-bottom:12px}
body.warm-modern .space-secondary-tabs{margin:0 0 18px}
body.warm-modern .space-project-controls{margin:12px 0;padding:10px 0;border:0}
body.warm-modern .space-project-controls>summary{cursor:pointer;padding:8px 0;font-weight:600}
body.warm-modern .space-project-controls>button{margin:8px 8px 8px 0}
body.warm-modern .space-primary-tabs button[aria-current=page],body.warm-modern .space-secondary-tabs button[aria-current=page]{outline:2px solid var(--ap-accent);outline-offset:1px}
@media(max-width:700px){body.warm-modern #view .space-directions{grid-template-columns:1fr;gap:10px}html body.warm-modern[data-theme] #view button.space-direction{min-height:120px;padding:18px}body.warm-modern .space-primary-tabs{display:flex;flex-wrap:wrap;gap:8px}}

/* Engineers start with the calculator. Add future engineering tools explicitly. */
body.warm-modern #nav[data-space-role=engineer] [data-space-nav=tools]>button[data-warm-route]:not([data-warm-route=calculator]):not([data-warm-route=fireSafety]){display:none!important}
