/* Rooms for words: quiet, local, and always easy to leave. */
.studio-dialog{color:var(--paper);background:#10141d;border:1px solid #55545a;width:min(620px,calc(100% - 36px));max-width:none;max-height:calc(100svh - 40px);padding:0;overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 100px #0009;color-scheme:dark}
.studio-dialog::backdrop{background:#030509bd;backdrop-filter:blur(6px)}
.studio-dialog [hidden]{display:none!important}.studio-dialog *{box-sizing:border-box}.studio-dialog :is(input,textarea,select,button,summary):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.studio-heading{padding:24px 32px 20px;background:#10141df5;position:sticky;top:0;z-index:2;border-bottom:1px solid var(--line);backdrop-filter:blur(8px)}
.studio-topline{display:flex;align-items:center;justify-content:space-between;gap:18px}.studio-topline .eyebrow{font-size:10px;letter-spacing:.16em;color:var(--accent)}
.studio-close{display:grid;place-items:center;width:44px;height:44px;background:none;border:0;color:#b8b4af;font-size:27px;font-weight:300;padding:0;margin:-10px -10px -7px 0;flex-shrink:0}.studio-close:hover{color:#fff}
.studio-heading h2{font:400 34px/1.1 var(--display);letter-spacing:-.045em;margin:22px 0 0;overflow-wrap:anywhere}
.studio-content{padding:24px 32px 30px}.studio-intro{color:#bdb9b3;font-size:14px;line-height:1.7;margin:0 0 24px}.studio-hint,.studio-storage{font-size:12px;line-height:1.6;color:#aaa7a2;margin:8px 0 0}.studio-storage:empty{display:none}.studio-storage{border-left:2px solid var(--accent);padding-left:12px;margin:12px 0 18px;color:#d6b89f}
.studio-form{display:grid;gap:18px}.studio-field{display:grid;gap:7px;min-width:0}.studio-field>label{font-size:13px;color:#d5cec3}.studio-field input,.studio-field textarea,.studio-field select,.studio-library-tools input,.studio-reading-edit textarea{font:400 15px/1.5 var(--sans);color:#f1e9dc;background:#0a0e15;border:1px solid #505159;border-radius:2px;padding:11px 12px;min-width:0;max-width:100%;width:100%;min-height:46px;box-shadow:none}.studio-field textarea,.studio-reading-edit textarea{resize:vertical;min-height:95px}.studio-field-pair{display:grid;grid-template-columns:1fr 1.3fr;gap:16px}.studio-field .studio-hint{margin:0}.studio-field select{padding-right:25px}
.studio-checkbox{display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.5;min-height:40px;cursor:pointer}.studio-checkbox input{width:18px;height:18px;accent-color:var(--accent);flex-shrink:0}
.studio-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:6px}.studio-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;font:400 13px/1.35 var(--sans);background:transparent;border:1px solid #55545a;border-radius:2px;color:#e7dfd3;text-align:center;transition:background .2s,border-color .2s}.studio-button:hover{background:#ffffff08;border-color:#a39383}.studio-primary{background:#d6a98a;color:#171210;border-color:#d6a98a}.studio-primary:hover{background:#e2b99d;border-color:#e2b99d}.studio-text{border-color:transparent;color:#bdb6ac;padding-left:7px;padding-right:7px}.studio-text:hover{border-color:transparent;background:#ffffff08;color:#f2e8da}.studio-button:disabled{opacity:.5}.studio-status{font-size:13px;line-height:1.6;color:#e3bd9d;margin:10px 0 0;overflow-wrap:anywhere}.studio-status:empty{display:none}
.studio-library-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin-bottom:18px}.studio-count{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#a8a4a0;margin:14px 0}.studio-entries{display:grid}.studio-empty{color:#b6b1aa;line-height:1.7;font-size:14px;padding:24px 0}.studio-entry{padding:24px 0;border-top:1px solid var(--line);min-width:0}.studio-entry-heading h3{font:400 27px/1.2 var(--display);letter-spacing:-.035em;margin:0;overflow-wrap:anywhere}.studio-entry-meta{font-size:10px;letter-spacing:.035em;color:#9d9d9e;margin:8px 0 0}.studio-entry-meaning{font-size:14px;line-height:1.7;color:#c5beb4;margin:16px 0;overflow-wrap:anywhere}.studio-entry-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px}.studio-entry-actions .studio-button{font-size:12px;padding:9px 10px}.studio-history{margin:14px 0;color:#aaa39b;font-size:12px;line-height:1.6}.studio-history summary,.studio-original summary{cursor:pointer;padding:6px 0;min-height:32px}.studio-history ol{padding-left:22px}.studio-history li{margin:10px 0;overflow-wrap:anywhere}.studio-history p{margin:2px 0 0}.studio-history strong{font-weight:500;color:#c6bcae}
.studio-consent{font-size:12px;line-height:1.65;padding:14px 16px;margin:0 0 20px;background:#ffffff04;border-left:1px solid #8f7965;color:#b6afa5}.studio-stale{font-size:12px;color:#c8b392;border-top:1px solid var(--line);padding-top:16px;margin:22px 0 0;line-height:1.6}.studio-reading{margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}.studio-reading>.eyebrow{font-size:10px;color:var(--accent);margin:0 0 15px}.studio-reading-text{font:400 25px/1.5 var(--display);letter-spacing:-.025em;margin:0 0 20px;overflow-wrap:anywhere}.studio-reading-text:focus{outline:none}.studio-original{font-size:13px;color:#aaa39b;line-height:1.7;margin:0 0 12px}.studio-original>p{margin:12px 0;overflow-wrap:anywhere}.studio-reading-edit{margin:12px 0 20px}.studio-reading-edit .studio-button{justify-self:start}.studio-suggestion{margin:24px 0;padding:22px;background:#ffffff03;border:1px solid var(--line)}.studio-suggestion .eyebrow{font-size:10px;color:#aaa39b;margin:0 0 10px}.studio-suggestion h3{font:400 28px/1.2 var(--display);letter-spacing:-.04em;margin:0 0 12px;overflow-wrap:anywhere}.studio-suggestion>p:not(.eyebrow){font-size:14px;line-height:1.7;color:#c7bfb4;overflow-wrap:anywhere}.studio-suggestion .studio-button{margin-top:4px}
@media(max-width:600px){.studio-dialog{width:calc(100% - 28px);max-height:calc(100svh - 28px)}.studio-heading{padding:20px 22px 17px}.studio-heading h2{font-size:29px;margin-top:18px}.studio-content{padding:22px}.studio-field input,.studio-field textarea,.studio-field select,.studio-library-tools input,.studio-reading-edit textarea{font-size:16px}.studio-field-pair{grid-template-columns:1fr;gap:18px}.studio-library-tools{grid-template-columns:1fr}.studio-library-tools .studio-button{justify-self:start}.studio-actions>.studio-button{flex:1 1 auto}.studio-actions>.studio-text{flex-basis:100%}.studio-entry-actions{display:grid;grid-template-columns:1fr 1fr}.studio-entry-actions>.studio-button:first-child{grid-column:1/-1}.studio-reading-text{font-size:22px}.studio-suggestion{padding:18px}.studio-consent{padding:12px}.studio-entry-heading h3{font-size:25px}}
@media(prefers-reduced-motion:reduce){.studio-dialog *, .studio-dialog::backdrop{transition:none!important;scroll-behavior:auto!important}}
/* The studio belongs to the artwork; the word editor opens like a field notebook. */
.studio-dialog{border-color:#6b62614d;border-radius:14px;background:radial-gradient(ellipse at 0 0,#29263188,transparent 65%),#10141d;box-shadow:0 35px 140px #000a}
.studio-dialog[open]{animation:studio-arrive .32s cubic-bezier(.2,.8,.2,1) both}
.studio-dialog::backdrop{background:#05070db8;backdrop-filter:blur(10px) saturate(.65)}
.studio-heading{padding:24px 34px 22px;border-bottom-color:#a99a8724;background:#13151df2}
.studio-close{border:1px solid #a4998a38;border-radius:50%;width:36px;height:36px;font-size:24px;margin:-4px -4px 0 0;transition:background .2s,transform .2s}
.studio-close:hover{background:#ffffff0d;transform:rotate(90deg)}
.studio-button{border-radius:6px}.studio-primary{border-radius:100px;padding:12px 20px}
.word-notebook{--paper:#302a25;--accent:#936b4b;--line:#a38d722e;color:#302a25;color-scheme:light;width:min(800px,calc(100% - 48px));max-height:calc(100svh - 48px);background:#f0ebdf;border:1px solid #fff8;border-radius:10px;box-shadow:0 40px 140px #0009,0 1px 0 #fff inset}
.word-notebook .studio-heading{padding:24px 38px 0;background:#f0ebdff5;border:0;position:relative;backdrop-filter:none}
.word-notebook .studio-topline .eyebrow{font-size:9px;letter-spacing:.19em;color:#827462}
.word-notebook .studio-topline:after{content:'∿';position:absolute;right:91px;top:24px;font:25px Georgia,serif;color:#ac9679;line-height:1}
.word-notebook .studio-close{color:#6e6255;border-color:#b2a38d66;min-width:36px}
.word-notebook .studio-close:hover{background:#d7c9b847;color:#302a25}
.word-notebook .studio-heading h2{font:400 20px/1.3 var(--display);letter-spacing:-.04em;margin:22px 0 0;color:#544a40}
.word-notebook .studio-content{padding:0 38px 30px}
.notebook-perspective{font:italic 15px/1.5 Georgia,serif;color:#97836b;margin:6px 0 29px}
.notebook-form{grid-template-columns:minmax(0,1fr) 210px;gap:22px 35px;align-items:start}
.notebook-word{grid-column:1;grid-row:1}.notebook-meaning{grid-column:1;grid-row:2}
.word-notebook .studio-field>label,.notebook-map h3{font:400 9px/1.5 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:#8c7a65;margin:0}
.word-notebook .notebook-word input{font:400 clamp(30px,5.2vw,61px)/1.2 var(--display);letter-spacing:-.06em;border:0;border-bottom:1px solid #a28c7066;border-radius:0;padding:5px 0 13px;background:transparent;color:#332b24;min-height:80px;text-overflow:ellipsis;box-shadow:none;transition:border-color .2s}
.word-notebook .notebook-word input:focus{outline:0;border-bottom-color:#80613f}
.word-notebook .notebook-word:focus-within>label{color:#6f4f30}
.word-notebook .notebook-meaning textarea{font:400 15px/29px var(--sans);color:#5a4d3e;background:repeating-linear-gradient(transparent 0px,transparent 28px,#ab967532 28px,#ab967532 29px);border:0;border-radius:0;padding:0;min-height:87px;resize:vertical;box-shadow:none}
.word-notebook .notebook-meaning textarea:focus{outline:1px solid #a28c7040;outline-offset:5px}
.word-notebook .studio-hint{color:#9a8a77;font-size:10px;line-height:1.5}
.notebook-map{grid-column:2;grid-row:1/3;border-left:1px solid #b5a58d42;padding:0 0 0 24px;align-self:stretch;min-width:0}
.notebook-map h3{text-align:center;margin:0 0 14px}
.word-constellation{position:relative;width:100%;aspect-ratio:1;isolation:isolate}
.word-constellation>svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#b7a78f;stroke-width:.6;opacity:.55;pointer-events:none}
.word-constellation>svg path+path{stroke-dasharray:2 4;opacity:.55}
.constellation-number{position:absolute;inset:0;display:grid;place-items:center;font:400 48px/1 var(--display);letter-spacing:-.07em;color:#b9a78b50;pointer-events:none;user-select:none}
.constellation-point{position:absolute;left:var(--point-x);top:var(--point-y);transform:translate(-50%,-50%);display:grid;place-items:center;width:44px;height:44px;padding:0;background:transparent;border:0;color:#94816a;font:400 9px var(--sans);isolation:isolate}
.constellation-point:before{content:'';position:absolute;inset:8px;border:1px solid #bead9499;background:#f0ebdf;border-radius:50%;z-index:-1;transition:inset .2s,background .2s,border-color .2s}
.constellation-point:hover:before{inset:5px;border-color:#8c6c4a}.constellation-point[aria-pressed=true]{color:#f8f0e2}
.constellation-point[aria-pressed=true]:before{inset:4px;background:#87674c;border-color:#87674c;box-shadow:0 0 0 5px #b7a0831c}
.constellation-caption{text-align:center;font:italic 14px/1.4 Georgia,serif;color:#8c765b;overflow-wrap:anywhere;margin:12px 0 0;min-height:20px}
.notebook-options{grid-column:1/-1;display:flex;align-items:end;justify-content:space-between;gap:24px;border-top:1px solid #ad987d38;padding-top:18px}
.notebook-options .studio-field{width:160px;gap:4px}.word-notebook .notebook-options select{background:none;border:0;border-bottom:1px solid #ad987d66;border-radius:0;padding:6px 20px 6px 0;color:#5a4d3e;font-size:12px;min-height:36px}
.word-notebook .studio-checkbox{font-size:11px;color:#7c6a55;min-height:36px}.word-notebook .studio-checkbox input{accent-color:#87674c;width:15px;height:15px}
.notebook-notes{grid-column:1/-1}.notebook-notes:has(>p:empty):not(:has(>p:not(:empty))){display:none}
.word-notebook .studio-storage,.word-notebook .studio-status{color:#86623e;font-size:12px}
.notebook-actions{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;gap:10px 14px;border-top:1px solid #ad987d38;padding-top:20px;margin-top:0}
.word-notebook .studio-button{color:#715c44;border-color:transparent;font-size:11px;min-height:42px;padding:10px 12px;background:transparent;border-radius:0;line-height:1.45}
.word-notebook .studio-button:hover{background:#d9cdbb40;color:#302a25}
.word-notebook .studio-primary{background:#3c352e;color:#f3eadd;border-color:#3c352e;border-radius:100px;padding:12px 22px;font-size:12px;gap:20px}
.word-notebook .studio-primary:after{content:'↗';font-size:17px;font-weight:300}.word-notebook .studio-primary:hover{background:#61503d;color:#fff7ea}
.word-notebook .notebook-actions>.studio-button:nth-child(2){justify-self:start;text-decoration:underline;text-decoration-color:#b7a58b66;text-underline-offset:5px}
.word-notebook .notebook-actions>.studio-text{padding:2px 0;min-height:28px;font-size:10px;justify-self:start;color:#9a8670}
.word-notebook .notebook-actions>.studio-text:hover{color:#715c44;background:none}
.word-notebook{scrollbar-width:thin;scrollbar-color:#bcae98 transparent}
.word-notebook::-webkit-scrollbar{width:5px}.word-notebook::-webkit-scrollbar-track{background:transparent}.word-notebook::-webkit-scrollbar-thumb{background:#bcae98;border-radius:8px}
.word-notebook .studio-field>label,.notebook-map h3{font-size:10px;color:#75634e}
.word-notebook .studio-hint{font-size:11px;color:#786955}
.notebook-perspective{color:#78634d}.constellation-caption{color:#7c6349}
.constellation-point{font-size:10px;color:#78634c}
.word-notebook .studio-checkbox{font-size:12px;color:#75634e}
.word-notebook .notebook-actions>.studio-text{font-size:11px;color:#79644d}
@keyframes studio-arrive{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:600px){
  .studio-dialog{border-radius:12px}.word-notebook{width:calc(100% - 28px);max-height:calc(100svh - 28px)}
  .word-notebook .studio-heading{padding:22px 24px 0}.word-notebook .studio-heading h2{font-size:19px;margin-top:18px}.word-notebook .studio-topline:after{right:74px;top:22px}
  .word-notebook .studio-content{padding:0 24px 24px}.notebook-perspective{font-size:14px;margin:6px 0 24px}
  .notebook-form{grid-template-columns:minmax(0,1fr);gap:22px}.notebook-word,.notebook-meaning,.notebook-map{grid-column:1;grid-row:auto}
  .word-notebook .notebook-word input{font-size:42px;min-height:68px;padding-bottom:10px}.word-notebook .notebook-meaning textarea{font-size:16px;min-height:87px}
  .notebook-map{border:0;padding:0}.notebook-map h3{text-align:left;margin-bottom:6px}
  .word-constellation{aspect-ratio:auto;height:54px;display:flex;align-items:center;justify-content:space-between;gap:0;margin:0 -4px;width:calc(100% + 8px)}
  .word-constellation>svg,.constellation-number{display:none}.word-constellation:before{content:'';position:absolute;left:22px;right:22px;top:50%;border-top:1px solid #b7a78f66;z-index:-1}
  .constellation-point{position:relative;left:auto;top:auto;transform:none;flex:1 1 0;min-width:36px;max-width:44px;height:44px}
  .constellation-caption{margin:4px 0 0;text-align:left;font-size:13px}
  .notebook-options{gap:16px;align-items:center}.notebook-options .studio-field{width:95px;flex-shrink:0}.word-notebook .notebook-options select{font-size:16px}.word-notebook .studio-checkbox{font-size:11px;line-height:1.5;gap:8px}
  .notebook-actions{grid-template-columns:1fr;gap:8px}.word-notebook .studio-primary{width:100%;justify-content:space-between;padding:13px 20px;min-height:47px}
  .word-notebook .notebook-actions>.studio-button:nth-child(2){justify-self:center}.word-notebook .notebook-actions>.studio-text{justify-self:center}
}
@media(prefers-reduced-motion:reduce){.studio-dialog[open]{animation:none}.studio-dialog *{transition:none!important;animation:none!important}}
@media print{.studio-dialog{display:none}}
