/* Shared foundations for the workspace, client reports, and the downloadable guide. */
:root {
  --studio-font:"Pretendard Variable","Pretendard","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
  --studio-ink:#202624;
  --studio-secondary:#52605a;
  --studio-accent:#215e4d;
  --studio-accent-light:#e8f2ec;
  --studio-review:#88401f;
  --studio-review-light:#fcf0e6;
  --studio-line:#dce2dd;
  --studio-canvas:#f7f8f5;
  --studio-surface:#fff;
  --studio-rail:#1e2422;
  --studio-small:.8125rem;
  --studio-text:.9375rem;
  --studio-title:clamp(1.875rem,2.6vw,2.5rem);
  --studio-section:clamp(1.125rem,1.5vw,1.375rem);
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:20px; --s6:24px; --s8:32px; --s10:40px;
  --studio-gutter:clamp(16px,3vw,44px);
  --studio-radius:12px;
  --studio-width:1376px;
  font-family:var(--studio-font);
  font-size:100%;
}
body {
  --ink:var(--studio-ink); --muted:var(--studio-secondary); --line:var(--studio-line);
  --wash:var(--studio-canvas); --paper:var(--studio-surface); --accent:var(--studio-accent);
  font-family:var(--studio-font); color:var(--studio-ink);
  line-height:1.6; letter-spacing:-.018em; word-break:keep-all; overflow-wrap:anywhere;
}
:where(h1,h2,h3,h4,p,dd,li,button,summary,a) {overflow-wrap:anywhere}
:where(button,input,select,textarea) {max-inline-size:100%}
:where(a,button,input,select,textarea,summary):focus-visible {outline:3px solid #45846d;outline-offset:3px}
body:not(.console) .wrap{width:min(100%,var(--studio-width));padding-inline:var(--studio-gutter)}
body:not(.console) .bar{background:var(--studio-rail)}
body:not(.console) .mast{flex-wrap:wrap;gap:var(--s3) var(--s6);padding-block:var(--s3)}
.week-mast h1,.weekly-editor h1,.gate h1{font-size:var(--studio-title);line-height:1.22;letter-spacing:-.045em}
.week-spread{gap:var(--s6);align-items:start}
.week-spread>section{min-width:0;padding:clamp(16px,2vw,28px);border:1px solid var(--studio-line);border-radius:var(--studio-radius);background:var(--studio-surface)}
.week-spread h2{font-size:var(--studio-section);letter-spacing:-.035em}
.week-work li,.week-evidence a,.week-posts a{line-height:1.7;overflow-wrap:anywhere}
.week-period{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2) var(--s6)}
.week-period nav,.accountbar{flex-wrap:wrap;gap:var(--s3)}
#manual .cover{padding-block:clamp(32px,4vw,56px)}
#manual .chapters section{margin-bottom:var(--s10)}
#manual .chapters p,#manual .chapters dd{max-width:68ch;line-height:1.75}
.gate .gate-form{border-radius:var(--studio-radius);background:var(--studio-surface)}
@media(max-width:720px){
  body:not(.console) .mast{justify-content:space-between;min-height:auto}
  .week-spread{grid-template-columns:minmax(0,1fr);gap:var(--s4)}
  .week-period nav a,.accountbar a,.accountbar button{display:inline-flex;align-items:center;min-height:36px}
  .week-table th,.week-table td{overflow-wrap:anywhere}
}

/* Weekly report: read the results first, open individual observations for evidence. */
.wr-report{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(220px,.85fr);gap:clamp(24px,4vw,52px);margin:24px 0 32px;align-items:start}
.wr-report section,.wr-entry>div,.wr-articles li>div,.wr-feed li>div{min-width:0}
.wr-report h2,.wr-internal h2,.wr-entry h2{margin:0 0 12px;font-size:1.35rem;letter-spacing:-.035em}
.wr-report h3,.wr-internal h3{margin:24px 0 8px;font-size:1rem;letter-spacing:-.02em}
.wr-report .week-stat{margin:16px 0 4px;line-height:1.45}
.wr-report .week-stat b{font-size:2.1rem}
.wr-report .week-keyline,.wr-report .wr-hint{margin:5px 0}
.wr-hint,.wr-internal>small,.wr-entry small{font-size:.83rem;color:#59665f;line-height:1.6}
.wr-articles,.wr-feed{list-style:none;padding:0;margin:0}
.wr-articles li,.wr-feed li{display:flex;align-items:baseline;gap:16px;border-bottom:1px solid #dce4df;padding:13px 0}
.wr-articles li>div,.wr-feed li>div{flex:1}
.wr-articles a,.wr-feed li>div>a{font-weight:620;color:inherit;line-height:1.55;overflow-wrap:anywhere}
.wr-articles li p,.wr-outside p{margin:4px 0 0;color:#48574f;font-size:.92rem;line-height:1.65}
.wr-articles li strong{white-space:nowrap;color:#315c48;font-size:.85rem}
.wr-method{margin-top:22px;border-top:1px solid #dce4df;padding-top:14px}
.wr-method summary{cursor:pointer;font-weight:600}.wr-method p{font-size:.88rem}
.wr-method .week-table td:last-child{text-align:left;white-space:normal}.wr-method td small,.wr-feed small{display:block;color:#5e6962;line-height:1.55}
.wr-work{border-left:1px solid #dce4df;padding-left:clamp(16px,2.5vw,32px)}
.wr-entry,.wr-internal{margin:20px 0 28px;padding:clamp(17px,2.4vw,28px);border:1px solid #dce4df;border-radius:12px;background:#f6f9f7}
.wr-entry{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px 20px}
.wr-entry h2,.console #content .wr-entry h2{margin:6px 0 4px;font-size:1.22rem}.wr-entry p,.wr-next{margin:0;color:#48574f}
.wr-entry>a,.wr-next a,.wr-action{color:#205440;font-weight:650;text-underline-offset:3px;text-decoration:underline}
.wr-feed time,.wr-action{font-size:.84rem}.wr-internal h2{margin:5px 0 12px}.wr-next{margin-top:18px}
@media(max-width:860px){.wr-report{grid-template-columns:minmax(0,1fr)}.wr-work{padding:18px 0 0;border-left:0;border-top:1px solid #dce4df}}
@media(max-width:600px){.wr-feed li{display:grid;grid-template-columns:3em minmax(0,1fr);gap:4px 8px}.wr-feed .wr-action{grid-column:2}.wr-method .week-table{width:100%;table-layout:fixed}.wr-method .week-table :is(th,td){overflow-wrap:anywhere}.wr-method .week-table th:nth-child(2){width:20%}}
.wr-status{display:flex;justify-content:space-between;align-items:baseline;gap:8px 20px;flex-wrap:wrap}.wr-status a{color:#315c48;text-decoration:underline;text-underline-offset:3px}.wr-prior{padding-left:1.2em;line-height:1.65}.wr-internal{scroll-margin-top:75px}
.week-posts li small{flex:none;color:#55665d;line-height:1.55;font-size:.8rem}
.legacy-bar{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;margin:0 0 18px;padding:12px 16px;border-radius:12px;background:#111;color:#fff;font-size:14px}.legacy-bar a{color:#FF8A5C;font-weight:700;text-decoration:none}
