.t-shell{width:min(calc(100% - 3.5rem),1220px);margin-inline:auto}
.workshop-header .t-shell{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:4.15rem}
.workshop-header nav a[aria-current]{color:#517249;text-decoration:underline;text-underline-offset:.3em}
.t-hero{margin-top:1.6rem;display:grid;grid-template-columns:1.04fr 1fr;gap:2rem;align-items:stretch;border-radius:.7rem;background:var(--forest);color:var(--white);overflow:hidden}
.t-hero>div{padding:2.6rem 0 2.6rem 2.8rem;align-self:center}
.t-kicker{color:var(--lime);text-transform:uppercase;letter-spacing:.14em;font-size:.86rem;font-weight:700}
.t-hero h1{font:400 clamp(3.4rem,6.5vw,6.3rem)/.91 var(--serif);letter-spacing:-.035em;margin:.66rem 0 1rem}
.t-hero h1 em{color:var(--lime);font-weight:400}
.t-hero p:last-child{font-size:1.06rem;color:#ebeddf;max-width:32ch}
.t-hero-art{margin:0;position:relative;min-height:303px;background:#e8e4d8}
.t-hero-art img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center 53%}
.t-hero-art figcaption{position:absolute;bottom:.75rem;right:1rem;padding:.25rem .65rem;background:var(--white);color:var(--muted);font-size:.82rem;border-radius:.25rem}
.tool-nav{display:flex;flex-wrap:wrap;gap:.4rem;margin:1.65rem 0 1.3rem;border-bottom:1px solid var(--line)}
.tool-nav a{display:inline-flex;padding:.6rem .9rem;font-size:.92rem;font-weight:700;border-radius:.4rem .4rem 0 0;border-bottom:2px solid transparent;color:var(--muted)}
.tool-nav a:hover{background:var(--soft);color:var(--ink)}
.tool-nav a[aria-current]{color:var(--ink);background:#e8ead9;border-color:#517249}
[data-tool]{scroll-margin-top:1rem}
.tool-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin:.6rem 0 1.15rem}
.tool-heading h2{font:400 clamp(2.7rem,5vw,4.1rem)/1 var(--serif);letter-spacing:-.025em}
.tool-heading p{color:var(--muted);margin-top:.35rem;max-width:65ch}
.t-columns{display:grid;gap:1rem;align-items:start}
.program-layout{grid-template-columns:minmax(0,2.2fr) minmax(255px,1fr)}
.visual-layout{grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr)}
.t-card{border:1px solid var(--line);background:var(--white);border-radius:.6rem;min-width:0}
.card-bar,.card-bottom,.drawing-title{padding:.8rem 1rem;display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap}
.card-bar{border-bottom:1px solid var(--line)}
.card-bottom{border-top:1px solid var(--line)}
.t-button{display:inline-flex;align-items:center;justify-content:center;min-height:2.5rem;padding:.42rem .8rem;color:var(--white);background:var(--forest);border:1px solid var(--forest);border-radius:.35rem;font:700 .86rem/1.3 var(--sans);white-space:nowrap;cursor:pointer}
.t-button:hover{background:#344a37}
.t-button.outline{color:var(--forest);background:transparent;border-color:#aeb6a7}
.t-button.outline:hover,.t-button.subtle:hover{background:var(--soft)}
.t-button.subtle{border-color:transparent;background:transparent;color:var(--muted)}
.t-button:disabled{opacity:.45;cursor:default}
.segments{display:flex;flex-wrap:wrap;gap:.15rem;background:#e9ecdf;padding:.18rem;border-radius:.44rem}
.segments button{background:transparent;border:0;border-radius:.3rem;padding:.35rem .65rem;font-size:.86rem;font-weight:700;color:var(--muted)}
.segments button[aria-pressed=true]{background:var(--white);box-shadow:0 1px 3px #293a2920;color:var(--ink)}
.field{display:grid;gap:.33rem;font-size:.86rem;font-weight:700;color:var(--muted);margin-top:.7rem}
.field input,.field select,.field textarea,.program-table input,.program-table select{width:100%;min-width:0;font-size:.94rem;color:var(--ink);background:var(--white);border:1px solid #cbd1c5;border-radius:.3rem;padding:.38rem .5rem;font-family:var(--sans)}
.field textarea{resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus,.program-table input:focus,.program-table select:focus{outline:2px solid #668460;outline-offset:1px}
.project-name{margin:.7rem 1rem .9rem}
.table-scroll{overflow:auto}
.program-table{width:100%;min-width:570px;border-collapse:collapse;text-align:left;font-size:.9rem;font-variant-numeric:tabular-nums}
.program-table th{font-size:.81rem;background:#f0f1e8;color:var(--muted);white-space:nowrap}
.program-table td,.program-table th{padding:.38rem .25rem}
.program-table td:first-child,.program-table th:first-child{padding-left:1rem}
.program-table th:last-child,.program-table td:last-child{padding-right:.55rem}
.program-table td:nth-child(1){width:26%}
.program-table td:nth-child(2){width:23%}
.program-table td:nth-child(3),.program-table td:nth-child(4){width:14%}
.program-table tr:not(:last-child) td{border-bottom:1px solid #edf0e6}
.room-total{font-weight:700;white-space:nowrap}
.icon-action{border:none;background:transparent;color:#4e6450;min-width:2rem;min-height:2rem;border-radius:.3rem;font-size:1.2rem;line-height:1}
.icon-action:hover{background:#eef0e5;color:#703b33}
.text-link{font-weight:700;color:#405f43;text-decoration:underline;text-underline-offset:.24em;font-size:.86rem}
.t-summary,.side-card{padding:1rem}
.t-summary h3,.side-card h3,.drawing-title h3,.brief h3{font-size:1.05rem}
.t-summary h4{font-size:.88rem;margin:1.1rem 0 .52rem}
.metrics{display:grid;grid-template-columns:1fr 1fr;gap:.45rem;margin-top:.65rem}
.metrics div{background:#e9ecdd;border-radius:.35rem;padding:.5rem .55rem;overflow-wrap:anywhere}
.metrics strong{display:block;font:400 clamp(1.65rem,3vw,2.65rem)/1.05 var(--serif)}
.metrics span,.metric-caption,.drawing-title span,.small-note{font-size:.82rem;color:var(--muted)}
.metric-caption{margin-top:.55rem}
.area-bars{display:grid;gap:.6rem}
.area-bar{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.17rem .45rem;font-size:.83rem}
.area-track{grid-column:1/-1;display:block;height:.43rem;border-radius:2rem;background:#edf0e6;overflow:hidden}
.area-fill{height:100%;display:block;border-radius:2rem}
.drawing-title{padding:.8rem 0 .65rem}
.drawing-card{padding:0 .85rem .85rem}
.t-canvas{display:block;width:100%;height:auto;background:#f3f3e9;border:1px solid #e0e5d5;border-radius:.35rem}
.relation-canvas{touch-action:none;cursor:grab}
.relation-canvas:active{cursor:grabbing}
.diagram-key{display:flex;flex-wrap:wrap;gap:.25rem .9rem;font-size:.83rem;margin-top:.55rem}
.diagram-key span::before{content:"";display:inline-block;width:1.2rem;margin-right:.35rem;border-top:2px solid #4f754f;vertical-align:middle}
.diagram-key .independent::before{border-top:2px dashed #80622f}
.diagram-key .separate::before{border-top:2px dotted #9d4d47}
.side-card form .t-button{margin-top:.75rem}
.compact-list{list-style:none;margin:1rem 0 0;padding:0}
.compact-list li{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.35rem 0;border-top:1px solid var(--line);font-size:.88rem}
.compact-list li span,.layer-list small,.review-list small{overflow-wrap:anywhere}
.compact-list small,.layer-list small,.review-list small{display:block;color:var(--muted)}
.layer-list{margin-top:.5rem;display:grid;gap:.32rem}
.layer-list label{display:flex;align-items:flex-start;gap:.55rem;padding:.55rem 0;border-bottom:1px solid var(--line);cursor:pointer}
.layer-list input{accent-color:#527449;margin-top:.35rem}
.layer-list strong{display:block;font-size:.93rem}
.upload-field{margin-top:.1rem}
.upload-field input{max-width:100%;padding:.55rem}
.file-preview{margin-top:.75rem;min-height:12rem;display:grid;place-items:center;background:#eeefe4;border:1px dashed #bac4ad;border-radius:.35rem;overflow:hidden}
.file-preview p{padding:1rem;text-align:center;color:var(--muted)}
.file-preview img{max-height:440px;object-fit:contain;max-width:100%}
.file-preview iframe{width:100%;height:410px;border:0}
.review-list{margin-top:.45rem}
.review-item{padding:.54rem 0;border-bottom:1px solid var(--line)}
.review-item summary{font-weight:700;cursor:pointer}
.review-item select{border:1px solid #cbd1c5;border-radius:.3rem;padding:.3rem;width:100%;margin:.4rem 0;font-size:.85rem}
.review-item input{width:100%;padding:.35rem .45rem;border:1px solid #cbd1c5;border-radius:.3rem;font-size:.86rem}
.brief{padding:.8rem 1rem;margin-bottom:.8rem}
.brief p{color:var(--muted);margin-top:.22rem}
.challenge-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:.55rem;margin-bottom:.8rem}
.challenge-cards button{display:grid;text-align:left;align-content:start;gap:.12rem;background:var(--white);border:1px solid var(--line);border-radius:.4rem;padding:.55rem .7rem}
.challenge-cards button[aria-pressed=true]{border-color:#587754;background:#e9eedc}
.challenge-cards button small{color:var(--muted);font-size:.81rem}
.challenge-actions{display:flex;flex-wrap:wrap;gap:.4rem;margin:.85rem 0}
#draft-layout{margin-top:.65rem}
#layout-controls{margin-top:.5rem;padding:.55rem .65rem;background:#edf1e3;border-radius:.3rem}
#layout-controls .small-note{margin-top:.35rem}
#layout-controls input[type=range]{padding:0;accent-color:#517249;border:0}
.t-canvas.is-editing{cursor:crosshair;touch-action:manipulation}
.file-button{position:relative;overflow:hidden}
.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.file-button:focus-within{outline:2px solid #668460;outline-offset:2px}
.t-status{position:fixed;z-index:8;bottom:1rem;right:1rem;max-width:min(400px,calc(100% - 2rem));background:var(--forest);color:var(--white);padding:.65rem .9rem;border-radius:.4rem;box-shadow:0 4px 20px #172a2630}
.t-footer{margin-top:2.1rem;padding:.9rem 0 1.6rem;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:.6rem;font-size:.86rem;color:var(--muted)}
.t-footer a{white-space:nowrap;font-weight:700}
@media(max-width:850px){
  .program-layout,.visual-layout{grid-template-columns:1fr}
}
@media(max-width:620px){
  .t-shell{width:calc(100% - 1.5rem)}
  .workshop-header .t-shell{flex-wrap:wrap;justify-content:flex-start;gap:.2rem .8rem;padding-block:.55rem}
  .workshop-header nav{gap:.68rem;flex-wrap:wrap;font-size:.82rem}
  .workshop-header nav a{padding:.23rem 0}
  .t-hero{grid-template-columns:1fr;gap:0;margin-top:.7rem}
  .t-hero>div{padding:1.5rem 1.1rem}
  .t-hero-art{min-height:165px}
  .tool-nav{margin:.8rem 0 .65rem;gap:.14rem}
  .tool-nav a{font-size:.78rem;padding:.4rem .38rem}
  .tool-heading{align-items:flex-start;flex-direction:column;gap:.6rem}
  .challenge-cards{grid-template-columns:1fr}
  .t-footer{flex-direction:column}
}
