.ws-shell {
  width: 100%;
  margin: 0;
  padding: 24px 0 72px;
  color: var(--ink);
  font-family: var(--sans);
}
.ws-shell *, .ws-shell *::before, .ws-shell *::after { box-sizing: border-box; }
.ws-shell [hidden] { display: none !important; }
.ws-shell button, .ws-shell input, .ws-shell select { font: inherit; color: inherit; }
.ws-shell button { cursor: pointer; border-radius: 0; }
.ws-shell :focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.ws-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px !important; }
.ws-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.ws-heading { margin: 28px 0 36px; }
.ws-kicker, .ws-worklabel { font-size: 11px; font-weight: 500; line-height: 1.5; letter-spacing: .07em; }
.ws-kicker { display: flex; align-items: center; gap: 8px; }
.ws-kicker i { display: none; }
.ws-kicker span { color: var(--muted); font-weight: 400; letter-spacing: 0; }
.ws-heading h1 { font: 400 42px/1.15 var(--sans); letter-spacing: -.035em; margin: 14px 0 16px; }
.ws-heading h1 span { color: inherit; }
.ws-intro { max-width: 66ch; font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0; }
.ws-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.ws-artboard, .ws-tools { min-width: 0; }
.ws-stage-wrap { display: flex; justify-content: center; background: var(--surface); }
.ws-stage { width: min(100%, calc(76vh * var(--ws-aspect))); aspect-ratio: var(--ws-aspect); position: relative; overflow: hidden; isolation: isolate; }
.ws-room, .ws-room > img, .ws-marks { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ws-room > img { object-fit: fill; pointer-events: none; }
.ws-shell .ws-painting { display: block; position: absolute; transform: translate(-50%, -50%); padding: 0; min-width: 0; min-height: 0; border: 0; cursor: grab; overflow: visible; background: transparent; box-shadow: 1px 3px 6px #0005; touch-action: none; user-select: none; }
.ws-shell .ws-painting:active { cursor: grabbing; }
.ws-painting img { display: block; width: 100%; height: 100%; max-width: none; object-fit: fill; pointer-events: none; }
.ws-marking { cursor: crosshair; }
.ws-marking .ws-painting { pointer-events: none; opacity: .65; }
.ws-marks { pointer-events: none; }
.ws-marks line { stroke: #171717; }
.ws-marks circle[r="8"] { fill: #fff; stroke: #171717; }
.ws-marks circle[r="2"] { fill: #171717; }
.ws-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.55; color: var(--muted); }
.ws-caption b { color: var(--ink); font-weight: 500; }
.ws-caption i { display: none; }
.ws-caption > span:last-child { white-space: nowrap; }
.ws-hint { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 12px 0 0; }
.ws-tools { border-top: 1px solid var(--line); padding-top: 20px; }
.ws-worklabel { color: var(--muted); }
.ws-tools h2 { font: 400 25px/1.25 var(--sans); letter-spacing: -.025em; margin: 10px 0; overflow-wrap: anywhere; }
.ws-paper { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 24px; }
.ws-section { border-top: 1px solid var(--line); padding: 22px 0; }
.ws-sub { display: flex; gap: 12px; align-items: baseline; margin: 0 0 15px; }
.ws-sub span { color: var(--muted); font: 400 12px var(--sans); }
.ws-sub h3 { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 500; }
.ws-upload { min-height: 82px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 12px; border: 1px dashed #aaa; background: var(--paper); text-align: center; cursor: pointer; user-select: none; position: relative; }
.ws-upload:hover { background: var(--surface); border-color: var(--ink); }
.ws-upload:focus-within { outline: 2px solid var(--ink); outline-offset: 4px; }
.ws-upload strong { font-size: 14px; line-height: 1.5; font-weight: 500; }
.ws-upload strong span { margin-right: 4px; }
.ws-upload small { font-size: 11px; line-height: 1.5; color: var(--muted); }
.ws-upload input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.ws-wall-switch { display: flex; gap: 16px; flex-wrap: wrap; }
.ws-wall-switch button, .ws-text-button { padding: 10px 0; min-height: 44px; border: 0; background: none; font-size: 12px !important; text-align: left; }
.ws-wall-switch button[aria-pressed="true"], .ws-text-button { text-decoration: underline; text-underline-offset: 4px; }
.ws-note, .ws-cal-box p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0 0 15px; }
.ws-outlined, .ws-book { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; min-height: 46px; width: 100%; font-size: 13px !important; line-height: 1.45; font-weight: 500; text-align: left; border: 1px solid #d4d4d0; background: var(--paper); }
.ws-outlined:hover { border-color: var(--ink); }
.ws-shell .ws-book { border-color: var(--ink); background: var(--ink); color: #fff; }
.ws-shell .ws-book:hover { background: #333; border-color: #333; }
.ws-cal-box { background: var(--surface); padding: 16px; }
.ws-cal-input label { display: block; font-size: 13px; line-height: 1.6; }
.ws-measure-row { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; }
.ws-measure-row input, .ws-measure-row select { min-width: 0; width: 50%; min-height: 44px; padding: 10px 12px; background: var(--paper); border: 1px solid #d4d4d0; border-radius: 0; font-size: 15px; }
.ws-shell .ws-cal-input button { width: 100%; min-height: 44px; border: 1px solid var(--ink); padding: 11px 16px; background: var(--ink); color: #fff; font-size: 13px; }
.ws-cal-box .ws-text-button { display: block; }
.ws-adjust { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ws-adjust button { min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid #d4d4d0; background: var(--paper); font-size: 16px; }
.ws-adjust button:hover { border-color: var(--ink); }
.ws-adjust .ws-reset { border: 0; font-size: 12px; padding-inline: 0; margin-left: auto; color: var(--muted); }
.ws-actions { display: grid; gap: 10px; padding-top: 4px; }
.ws-actions button span { font-size: 17px; font-weight: 400; }
@media (max-width: 960px) {
  .ws-layout { grid-template-columns: minmax(0, 1fr) 285px; gap: 28px; }
}
@media (max-width: 760px) {
  .ws-layout { grid-template-columns: 1fr; gap: 32px; }
  .ws-stage { width: min(100%, calc(68vh * var(--ws-aspect))); }
}
@media (max-width: 700px) {
  .ws-shell { padding: 12px 0 48px; }
  .ws-heading { margin: 20px 0 28px; }
  .ws-heading h1 { font-size: 32px; }
  .ws-intro { font-size: 15px; }
  .ws-caption { font-size: 11px; gap: 8px; }
  .ws-tools h2 { font-size: 24px; }
  .ws-measure-row input, .ws-measure-row select { font-size: 16px; }
}
