.stroke-smoothing-control{min-width:0}.stroke-smoothing-control .range-ends{align-items:center;gap:6px}.smoothing-default{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 8px;margin:-7px 0;border:0;border-radius:6px;color:var(--muted-foreground);background:transparent;font:inherit;cursor:pointer}.smoothing-default:hover:not(:disabled){color:var(--foreground);background:var(--secondary)}.smoothing-default:disabled{opacity:.55;cursor:default}.practice-prompt-row{display:flex;align-items:center;justify-content:space-between;gap:16px 32px;margin-bottom:24px}.practice-prompt-row .writing-prompt{min-width:0;margin:0}.practice-prompt-row .stroke-smoothing-control{flex:0 0 230px;margin:0}.personal-preview-footer .stroke-smoothing-control{flex:0 1 260px;margin:0}@media(max-width:1100px),(any-pointer:coarse){.stylus-workspace .practice-prompt-row{max-width:480px;margin:0 auto 16px;gap:20px}.stylus-workspace .practice-prompt-row .writing-prompt{margin:0}.stylus-workspace .practice-prompt-row .stroke-smoothing-control{flex-basis:210px}}@media(max-width:600px){.practice-prompt-row{flex-wrap:wrap;gap:14px;margin-bottom:18px}.stylus-workspace .practice-prompt-row .stroke-smoothing-control{flex-basis:100%}.personal-preview-footer .stroke-smoothing-control{flex:1 1 100%}}.account-gate{max-width:420px;margin:clamp(24px,8vh,96px) auto;padding:12px}.account-gate>.ui-icon{margin-bottom:22px;color:var(--muted-foreground)}.account-gate h1{font-size:30px;letter-spacing:-.8px;line-height:1.18;font-weight:550;margin:0 0 16px;outline:none}.account-gate p,.save-style-dialog p,.account-menu p{font-size:12px;line-height:1.7;color:var(--muted-foreground)}.account-gate form{margin:28px 0 16px}.account-gate label,.save-style-dialog label{display:grid;gap:10px;font-size:12px}.account-gate input,.save-style-dialog input{width:100%;padding:13px 15px;border:1px solid var(--input);border-radius:13px;color:var(--foreground);background:var(--card);font:inherit;font-size:16px}.account-gate form>button{width:100%;margin-top:16px}.account-gate small{display:block;font-size:11px;line-height:1.6;color:var(--muted-foreground);margin:0 0 22px}.account-gate-links,.save-style-actions{display:flex;gap:12px;align-items:center;justify-content:space-between}.account-gate-links{margin-bottom:16px}.account-gate .account-error,.save-style-dialog .account-error{color:#8a4c39}.account-unavailable{background:var(--muted);border-radius:12px;padding:12px}.account-menu{position:fixed;inset:76px 24px auto auto;width:min(320px,calc(100vw - 32px));margin:0;padding:20px;border:1px solid var(--border);border-radius:18px;background:var(--card);color:var(--foreground);box-shadow:var(--shadow-sm)}.account-menu strong{font-size:12px;overflow-wrap:anywhere}.account-save-status{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:11px}.account-import{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:var(--muted);border:1px solid var(--border);border-radius:16px;padding:16px;margin-bottom:20px;font-size:12px}.account-import>div{flex:1 1 280px}.account-import p{font-size:11px;color:var(--muted-foreground);line-height:1.6;margin:6px 0 0}.save-style-dialog{width:min(440px,calc(100vw - 32px));padding:26px;border:1px solid var(--border);border-radius:24px;background:var(--card);color:var(--foreground)}.save-style-dialog::backdrop{background:#29282638;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.save-style-dialog h2{font-weight:550;font-size:24px;margin:0 0 12px}.save-style-dialog form,.save-style-actions{margin-top:24px}.my-styles-empty{font-size:11px;color:var(--muted-foreground)}@media(max-width:620px){.account-gate{margin:24px auto}.save-style-dialog{padding:20px}.save-style-actions{flex-wrap:wrap}}.personal-workspace[hidden]{display:none}.personal-workspace .personal-content{max-width:980px}.handwriting-creator{width:100%}.creator-intro{max-width:580px;margin:0 auto}.creator-intro>img{display:block;margin:-15px 0 22px;object-fit:contain}.creator-eyebrow{display:block;color:var(--muted-foreground);font-size:11px;margin-bottom:10px}.creator-intro h1,.creator-header h1{font-size:28px;font-weight:550;letter-spacing:-.8px;margin:0 0 14px}.creator-intro>p{font-size:13px;color:var(--muted-foreground);line-height:1.7;margin:0}.capture-methods{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:28px 0 22px}.capture-methods>button{position:relative;text-align:left;padding:22px 18px;border:1px solid var(--border);border-radius:20px;background:var(--card)}.capture-methods>button:hover{background:var(--muted)}.capture-methods>button[aria-pressed=true]{border-color:var(--selected-border);background:var(--muted);box-shadow:0 0 0 1px var(--selected-border)}.capture-methods strong{display:block;font-weight:550;font-size:13px;margin-top:15px}.capture-methods small{display:block;font-size:11px;color:var(--muted-foreground);margin-top:7px;line-height:1.5}.method-check{position:absolute;top:20px;right:17px;display:grid;place-items:center;width:18px;height:18px;border:1px solid var(--input);border-radius:50%}[aria-pressed=true]>.method-check{color:#fff;border-color:var(--foreground);background:var(--foreground)}.creator-language{display:flex;align-items:center;gap:12px;color:var(--muted-foreground);font-size:12px}.creator-language select{border:1px solid var(--input);border-radius:12px;padding:8px 28px 8px 12px;background:var(--card);color:var(--foreground)}.creator-time{display:flex;gap:12px;padding:21px 0;margin-top:14px;border-top:1px solid var(--border);align-items:flex-start}.creator-time strong{font-size:12px;font-weight:500;display:block;margin-bottom:6px}.creator-time span{display:block;font-size:11px;line-height:1.6;color:var(--muted-foreground)}.creator-intro>.creator-save-note{display:flex;align-items:center;gap:7px;margin:16px 0 24px;font-size:11px}.creator-intro>.creator-stage-note{font-size:10px;line-height:1.6;max-width:420px}.creator-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.creator-header h1{font-size:25px;margin:0}.creator-header{margin-bottom:20px}.creator-completion{flex-shrink:0;height:var(--button-height);font-size:var(--button-font-size);background:var(--muted);padding:0 var(--button-padding-inline);border:1px solid var(--border);border-radius:var(--button-radius);display:flex;align-items:center;gap:7px;white-space:nowrap}.creator-completion b{font-size:12px;font-weight:550;font-variant-numeric:tabular-nums}.creator-progress{width:100%;display:block;appearance:none;height:6px;border:0;border-radius:10px;background:var(--secondary);overflow:hidden}.creator-progress::-webkit-progress-bar{background:var(--secondary);border-radius:10px}.creator-progress::-webkit-progress-value{background:var(--foreground);border-radius:10px;transition:width .4s ease}.creator-progress::-moz-progress-bar{background:var(--foreground);border-radius:10px}.creator-notice{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;padding:12px 16px;margin-bottom:22px;border:1px solid var(--border);border-radius:16px;background:var(--muted)}.creator-notice[hidden]{display:none}.creator-notice-message{display:flex;align-items:center;gap:12px;min-width:0;font-size:14px;line-height:1.5}.creator-notice-message>.ui-icon{flex-shrink:0}.creator-notice-message small{display:block;font-size:12px;color:var(--muted-foreground);overflow-wrap:anywhere}.creator-notice>button{flex-shrink:0}.creator-workspace{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:26px;align-items:start}.creator-task{min-width:0;border:1px solid var(--border);border-radius:24px;padding:24px}.creator-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;margin:22px 0;padding-bottom:16px;border-bottom:1px solid var(--border)}.creator-toolbar>.creator-views{margin:0}.practice-navigation{width:360px;max-width:100%;margin-left:auto}.practice-navigation-select{display:grid;grid-template-columns:var(--button-height) minmax(0,1fr) var(--button-height);gap:8px}.practice-arrow{border:1px solid var(--input);background:var(--card)}.practice-arrow:hover:not(:disabled){background:var(--muted)}.practice-exercise-picker{position:relative;min-width:0;border:1px solid var(--input);border-radius:12px;background:var(--card)}.practice-exercise-picker:hover:not([data-disabled]){background:var(--muted)}.practice-exercise-picker[data-disabled]{opacity:.45}.practice-exercise-picker:has(select:focus-visible){outline:2px solid var(--ring);outline-offset:3px}.practice-exercise-picker select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font:inherit;font-size:12px;color:var(--foreground);background:var(--card)}.practice-picker-label{display:flex;flex-direction:column;justify-content:center;height:calc(var(--button-height) - 2px);padding:3px 32px 3px var(--button-padding-inline);pointer-events:none}.practice-picker-label strong{font-size:var(--button-font-size);line-height:14px;font-weight:500}.practice-picker-label>span{font-size:9px;line-height:12px;color:var(--muted-foreground);font-variant-numeric:tabular-nums}.practice-exercise-picker>.ui-icon{position:absolute;right:11px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--muted-foreground)}.practice-exercise-picker[data-completed] .practice-picker-label{padding-right:59px}.practice-completed-mark{position:absolute;right:32px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:18px;height:18px;border-radius:50%;color:#fff;background:#47755b;pointer-events:none}.task-instruction{display:flex;align-items:center;gap:6px;margin:22px 0 6px;font-size:11px;color:var(--muted-foreground)}.writing-prompt{font-family:Geist,sans-serif;font-size:clamp(24px,3vw,37px);line-height:1.4;font-weight:450;letter-spacing:-.8px;margin:0 0 22px;white-space:pre-wrap;overflow-wrap:anywhere;outline:none}.task-hint{font-size:11px;color:var(--muted-foreground);line-height:1.65;margin:0 0 24px;max-width:460px}.capture-switch{display:flex;padding:4px;gap:4px;width:fit-content;border-radius:13px;background:var(--muted);margin-bottom:14px}.capture-switch button{padding:7px 9px;border-radius:10px;display:flex;align-items:center;gap:7px;color:var(--muted-foreground);font-size:10px}.capture-switch strong{font-weight:450}.capture-switch button[aria-pressed=true]{color:var(--foreground);background:var(--card);box-shadow:var(--shadow-sm)}.photo-capture{min-height:245px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:var(--muted);border:1px dashed var(--input);border-radius:18px;padding:20px 12px;text-align:center}.photo-capture>.ui-icon{margin-bottom:3px;color:var(--muted-foreground)}.photo-capture>strong{font-size:12px;font-weight:500}.photo-capture p{margin:0;font-size:11px;line-height:1.7;color:var(--muted-foreground)}.photo-actions{display:flex;gap:8px;margin-top:5px;justify-content:center;flex-wrap:wrap}.creator-secondary{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--input);background:var(--card);box-shadow:var(--shadow-sm)}.creator-secondary:hover{background:var(--muted)}.photo-capture.has-photo{padding:10px}.photo-capture>img{display:block;width:100%;max-height:260px;object-fit:contain;border-radius:10px;background:#fff}.capture-device{font-size:10px;color:var(--muted-foreground);line-height:1.5;margin:10px 0 0}.writing-pad-wrap{position:relative;border:1px solid var(--input);border-radius:18px;background:var(--paper);overflow:hidden;touch-action:none;overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.writing-pad{display:block;width:100%;aspect-ratio:900 / 320;touch-action:none;cursor:crosshair;-webkit-user-select:none;user-select:none;color:#393735}.pad-body-band{fill:var(--muted)}.pad-guides path{fill:none;stroke:var(--border);stroke-width:1px;vector-effect:non-scaling-stroke}.pad-guides .pad-outer-guides{stroke-dasharray:2 6}.pad-guides .pad-body-guide{stroke-dasharray:5 5}.pad-guides .pad-baseline{stroke:var(--selected-border)}.pad-letter-example{color:var(--foreground);opacity:.16}.pad-letter-example path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.writing-pad-wrap[data-edge-reached]{border-color:#a77b57}.pad-edge-notice{color:#8a6041;font-size:11px;line-height:1.5;margin:10px 0 0}.pad-placeholder{position:absolute;pointer-events:none;top:50%;left:0;width:100%;text-align:center;transform:translateY(-50%);color:#aaa69f;font-size:12px}.handwriting-creator .writing-pad-wrap.with-actions{padding-bottom:48px}.writing-pad-wrap.with-actions .pad-placeholder{top:calc(50% - 24px)}.pad-actions{position:absolute;inset:auto 10px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}.pad-actions>button{pointer-events:auto}.letter-practice-pad{position:relative;padding:14px 14px 58px;border:1px solid var(--border);border-radius:22px;background:var(--muted)}.letter-size-help{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-height:34px;margin:-4px 2px 10px;color:var(--muted-foreground);font-size:11px;line-height:1.5}.letter-size-help p{margin:0 auto 0 0}.letter-size-help label{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;min-height:34px;cursor:pointer}.letter-size-help input{width:14px;height:14px;margin:0;accent-color:var(--foreground)}.letter-practice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;touch-action:none}.letter-practice-cell{position:relative;min-width:0}.letter-version{display:block;position:absolute;z-index:1;left:16px;top:10px;font-size:14px;color:var(--muted-foreground);pointer-events:none}.stylus-workspace .letter-practice-pad .writing-pad-wrap{padding:0}@media(max-width:600px){.letter-size-help{flex-wrap:wrap-reverse;gap:4px}.letter-practice-grid{grid-template-columns:1fr}.letter-practice-pad{padding:10px 10px 58px}}.task-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px}.task-confirm-note{font-size:9px;color:var(--muted-foreground);line-height:1.5;margin:13px 0 0}.collection-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:22px;font-size:10px;color:var(--muted-foreground)}.collection-footer>span,.collection-footer>button{display:flex;gap:6px;align-items:center}.creator-pause{text-align:center;border:1px solid var(--border);border-radius:24px;padding:38px 24px;max-width:630px;margin:8px auto}.pause-symbol{display:inline-grid;place-items:center;padding:18px;border-radius:24px;background:var(--muted)}.creator-pause h2{font-size:19px;font-weight:500;margin:20px 0 12px}.creator-pause p{color:var(--muted-foreground);font-size:12px;line-height:1.8;margin:0 0 24px}.creator-pause .export-button{margin:0 auto 18px}.creator-pause .text-button{display:block;margin:0 auto}.creator-review-top{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:10px 0 22px}.creator-review h2{font-size:17px;font-weight:500;margin:0 0 8px}.creator-review-top p{font-size:11px;line-height:1.6;color:var(--muted-foreground);margin:0}.creator-review-top p strong{font-weight:500;color:var(--foreground)}.sample-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:24px}.sample-tile{padding:12px;border:1px solid var(--border);border-radius:19px;text-align:left;background:var(--paper)}.sample-tile:hover{border-color:var(--selected-border)}.sample-tile>svg,.sample-tile>img{width:100%;height:110px;display:block;object-fit:contain}.sample-tile>span{display:flex;gap:8px;justify-content:space-between;align-items:center;margin-top:10px}.sample-tile strong{font-size:11px;font-weight:450;overflow-wrap:anywhere}.sample-tile small{font-size:9px;color:var(--muted-foreground);white-space:nowrap}.samples-empty{padding:45px;text-align:center;border:1px dashed var(--border);border-radius:20px;margin-bottom:24px;color:var(--muted-foreground)}.creator-error{padding:12px 16px;background:#faf1ee;border:1px solid #e9d1c9;color:#754638;font-size:12px;line-height:1.5;border-radius:14px;margin-bottom:20px;display:flex;align-items:center;gap:16px}.creator-error button{text-decoration:underline;flex-shrink:0}.creator-loading{max-width:580px;margin:auto}.feedback-trigger{display:flex;align-items:center;border:1px solid var(--input);background:var(--card);white-space:nowrap}.feedback-trigger:hover{background:var(--muted)}.feedback-popover{position:fixed;margin:0;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:18px;background:var(--card);color:var(--foreground);border:1px solid var(--border);border-radius:24px;box-shadow:0 12px 40px #29282616,0 2px 4px #29282612}.feedback-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.feedback-heading strong{font-size:13px;font-weight:500}.feedback-popover textarea{width:100%;min-height:150px;padding:14px;resize:vertical;max-height:45dvh;background:var(--card);border:1px solid var(--input);border-radius:15px;color:var(--foreground);font-size:13px;line-height:1.6}.feedback-popover textarea::placeholder{color:#97948e}.feedback-footer{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-top:14px}.feedback-footer p{font-size:10px;color:var(--muted-foreground);line-height:1.6;margin:0}.feedback-notice,.feedback-error{font-size:11px;line-height:1.6}.feedback-notice{display:flex;gap:7px;align-items:center}.feedback-error{color:#8b4940}.topbar .document-status[hidden]{display:none}@media(max-width:900px){.creator-workspace{grid-template-columns:minmax(0,1fr)}.creator-journey{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}.creator-intro{max-width:540px}}@media(max-width:620px){.creator-intro>img{width:170px;height:112px;margin-bottom:16px}.creator-intro h1{font-size:25px}.capture-methods{gap:9px}.capture-methods>button{padding:17px 12px}.capture-methods small{font-size:10px}.capture-methods strong{font-size:12px}.creator-header{align-items:flex-start}.creator-header h1{font-size:21px}.creator-task{padding:17px;border-radius:20px}.task-footer{flex-wrap:wrap}.photo-capture{min-height:240px;padding:16px 10px}.capture-switch{width:100%}.capture-switch button{flex:1;padding:7px;justify-content:center}.capture-switch .ui-icon{flex-shrink:0}.capture-switch strong{font-size:9px}.pad-placeholder{font-size:10px}.collection-footer{align-items:flex-start;flex-direction:column;line-height:1.6}.collection-footer .ui-icon{flex-shrink:0}.sample-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sample-tile>span{display:block}.sample-tile small{display:block;margin-top:4px}.creator-review-top{align-items:flex-start}.creator-review-top .creator-secondary{flex-shrink:0}}@media(prefers-reduced-motion:reduce){.creator-progress::-webkit-progress-value{transition:none}}.creator-views{display:flex;gap:4px;padding:4px;max-width:100%;border:1px solid var(--border);border-radius:16px;background:var(--muted)}.creator-views button{display:flex;align-items:center;justify-content:center;min-width:0;border:1px solid transparent;color:var(--secondary-foreground)}.creator-views button[aria-current=page]{color:var(--foreground);background:var(--card);border-color:var(--input);box-shadow:var(--shadow-sm)}.creator-views button>.ui-icon{flex-shrink:0}.handwriting-preview-tab{display:inline-flex;min-width:0}.handwriting-preview-tab>button{width:100%}.handwriting-editor-action{flex-shrink:0}.handwriting-editor-action>button[aria-disabled=true]{color:var(--muted-foreground);background:var(--muted);box-shadow:none;cursor:default}.creator-views button[aria-disabled=true]{color:var(--muted-foreground);opacity:.65;cursor:default}@media(hover:hover)and (pointer:fine){.creator-views button:hover:not(:disabled):not([aria-disabled=true]):not([aria-current=page]){background:var(--card);border-color:var(--border)}}.preview-tab-tooltip{position:fixed;z-index:100;width:min(280px,calc(100vw - 24px));padding:12px 15px;border:1px solid var(--border);border-radius:13px;background:var(--card);color:var(--foreground);box-shadow:0 4px 18px #3e302014;font-size:12px;line-height:1.6}.handwriting-lab{max-width:760px;margin:0 auto}.lab-title{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.lab-title h2{font-size:22px;letter-spacing:-.5px;font-weight:500;margin:0 0 10px}.lab-title p,.lab-review-heading p{font-size:12px;color:var(--muted-foreground);line-height:1.6;margin:0}.lab-version{flex-shrink:0;padding:6px 9px;border:1px solid var(--border);border-radius:9px;font-size:9px;color:var(--muted-foreground)}.lab-coverage{display:flex;flex-wrap:wrap;gap:20px;margin:21px 0 25px;color:var(--muted-foreground);font-size:11px}.lab-coverage b{font-weight:550;color:var(--foreground);margin-right:4px}.lab-input{display:block;font-size:11px}.lab-input textarea{display:block;width:100%;min-height:82px;max-height:220px;resize:vertical;padding:15px 17px;border:1px solid var(--input);border-radius:17px;background:var(--card);color:var(--foreground);font:inherit;font-size:14px;line-height:1.6;margin-top:10px}.lab-suggestions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:12px 0;font-size:10px;color:var(--muted-foreground)}.lab-suggestions button{padding:5px 9px;background:var(--muted);border-radius:9px;color:var(--foreground)}.personal-ink-preview{margin-top:17px;border:1px solid var(--border);border-radius:22px;overflow:auto;max-height:430px;background:var(--paper);color:#393735}.personal-ink-preview>svg{display:block;width:100%;min-height:150px}.lab-empty{min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;color:var(--muted-foreground);font-size:12px}.lab-empty p{margin:0}.missing-glyph rect{fill:#eeece8;stroke:#cecac3;stroke-dasharray:3 3}.missing-glyph text{fill:#8d8780;font-family:Geist,sans-serif}.personal-ink-sheet{position:relative;width:100%;outline:none}.personal-ink-sheet>svg{display:block;width:100%}.missing-letter-action{position:absolute;transform:translate(-50%,-50%);min-width:34px;min-height:44px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;cursor:pointer}.missing-letter-action:hover{border-color:var(--selected-border);background:#9b94851a}.missing-letter-action:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.missing-letter-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:24px;border:1px solid var(--border);border-radius:24px;background:var(--card);color:var(--foreground);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 22px 80px #29282624}.missing-letter-dialog::backdrop{background:#29282638;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.missing-letter-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.missing-letter-dialog h2{margin:0 0 8px;font-size:24px;font-weight:550}.missing-letter-dialog header p{margin:0;font-size:12px;color:var(--muted-foreground)}.missing-letter-dialog header>button{flex-shrink:0}.missing-letter-prompt{margin:0 0 14px;white-space:pre-wrap;font-size:28px}.missing-letter-dialog .letter-practice-pad{max-width:480px;margin-inline:auto}.missing-letter-dialog .letter-practice-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.missing-letter-dialog .writing-pad-wrap.with-actions{padding-bottom:48px}.missing-letter-dialog>footer,.missing-letter-dialog .reading-actions{position:sticky;bottom:-24px;display:flex;justify-content:space-between;gap:10px;margin:18px -24px -24px;padding:16px 24px calc(16px + env(safe-area-inset-bottom));border:0;background:var(--card);z-index:1}.missing-letter-dialog [role=alert]{font-size:12px;color:#8a6041}.missing-letter-dialog [role=alert]>button{margin:8px}@media(max-width:620px){.missing-letter-dialog .letter-size-help>p{display:none}.missing-letter-dialog .letter-practice-pad{padding-inline:8px}.missing-letter-dialog .letter-practice-grid{gap:6px}.missing-letter-dialog .letter-version{left:8px;top:5px;font-size:11px}}.lab-missing{color:var(--muted-foreground);font-size:11px;line-height:1.6}.lab-missing strong{color:var(--foreground);font-weight:500;letter-spacing:2px}.lab-preview-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:13px}.lab-explanation{font-size:10px;line-height:1.7;color:var(--muted-foreground);margin:15px 0 0;max-width:620px}.lab-inventory{margin-top:14px;color:var(--muted-foreground);font-size:11px;line-height:1.7}.lab-inventory p{letter-spacing:1px;overflow-wrap:anywhere}.lab-review-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;border-top:1px solid var(--border);padding-top:28px;margin-top:30px}.lab-review-heading h3,.lab-start h3{font-size:15px;font-weight:500;margin:0 0 7px}.lab-review-heading .creator-secondary{flex-shrink:0}.reading-sample-select{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--muted-foreground);margin:22px 0 13px}.reading-sample-select select{min-width:0;max-width:100%;flex:1;border:1px solid var(--input);border-radius:13px;padding:10px 12px;color:var(--foreground);background:var(--card)}.reading-help,.reading-caution{font-size:11px;color:var(--muted-foreground);line-height:1.65;margin:12px 0 16px}.reading-caution{color:#80614a}.reading-sheet{border:1px solid var(--border);border-radius:19px;overflow:hidden;color:#393735;background:var(--paper)}.reading-sheet>svg{display:block;width:100%}.reading-divider{cursor:col-resize;touch-action:none;stroke:#aaa49b;fill:#fbfaf8;outline:none}.reading-divider path{stroke-dasharray:3 4}.reading-divider:focus,.reading-divider.active{stroke:#49443d;fill:#e7e3db}.reading-divider:focus rect:last-child{stroke-width:3}.reading-glyphs{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}.reading-glyphs>div{flex:0 0 65px;border:1px solid var(--border);border-radius:13px;text-align:center;padding:9px 6px 7px}.reading-glyphs svg{display:block;width:100%;height:54px}.reading-glyphs span{display:block;margin-top:6px;font-size:11px;color:var(--muted-foreground)}.reading-glyphs small{color:#59544c}.reading-glyphs .reading-empty{border-style:dashed}.reading-alignment{margin:18px 0;font-size:10px;color:var(--muted-foreground)}.reading-alignment p{line-height:1.7}.reading-alignment label{display:flex;gap:20px;align-items:center;justify-content:space-between;max-width:400px;margin:14px 0}.reading-alignment input{width:65%}.reading-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:20px;flex-wrap:wrap}.reading-actions>:first-child{margin-right:auto}.reading-success{font-size:11px;line-height:1.7}.lab-start{border:1px dashed var(--border);border-radius:22px;margin:20px 0;text-align:center;padding:30px 22px}.lab-start>.ui-icon{color:var(--muted-foreground);margin-bottom:17px}.lab-start p{font-size:12px;color:var(--muted-foreground);line-height:1.7;max-width:380px;margin:0 auto 18px}.lab-photo-note{color:var(--muted-foreground);font-size:11px;line-height:1.7;margin:23px 0 0}@media(max-width:620px){.creator-views{display:grid;grid-template-columns:auto minmax(0,1fr) auto;width:100%;gap:2px;padding:3px}.creator-notice{padding:12px;gap:12px}.lab-title{flex-wrap:wrap;gap:9px}.lab-title h2{font-size:21px}.lab-coverage{gap:10px 14px}.lab-review-heading{align-items:flex-start}.lab-review-heading p{font-size:11px}.reading-glyphs{gap:6px}.reading-glyphs>div{flex-basis:50px}.reading-actions{gap:10px}.reading-help{font-size:10px}}.reading-boundary-control{display:flex;align-items:center;gap:16px;margin-top:10px}.reading-boundary-control select{background:var(--card);border:1px solid var(--border);border-radius:10px;color:var(--muted-foreground);padding:7px;font-size:10px;max-width:48%}.reading-boundary-control input{flex:1;min-width:0}.reading-boundary-control input[type=range],.reading-alignment input[type=range]{height:32px;background:linear-gradient(var(--input),var(--input)) center / 100% 4px no-repeat}.lab-photo-section{margin-top:26px;border:1px solid var(--border);border-radius:20px;padding:18px 20px;background:var(--card)}.lab-photo-section>summary{cursor:pointer;font-size:13px;font-weight:500}.lab-photo-section>summary span{font-size:10px;font-weight:400;color:var(--muted-foreground);margin-left:10px}.photo-preparation>p{font-size:11px;line-height:1.7;color:var(--muted-foreground)}.photo-preparation fieldset{margin:0;padding:0;border:0;min-width:0}.photo-crop-frame{position:relative;overflow:hidden;background:var(--muted);border:1px solid var(--border);border-radius:16px;min-height:100px}.photo-crop-frame svg{display:block;width:100%;max-height:340px}.photo-crop-handle{cursor:nwse-resize;touch-action:none}.photo-loading{position:absolute;inset:0;display:grid;place-content:center;background:#ffffffe6;font-size:12px}.photo-rotate-actions,.photo-reading-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:14px}.photo-rotate-actions>:last-child{margin-left:auto}.photo-adjustments{display:grid;grid-template-columns:1fr 1fr;gap:10px 25px;margin-top:18px}.photo-adjustments label{display:block;font-size:11px;text-transform:capitalize}.photo-adjustments label span{float:right;color:var(--muted-foreground);font-variant-numeric:tabular-nums}.photo-preparation input[type=range]{display:block;width:100%;height:32px;margin-top:5px;background:linear-gradient(var(--input),var(--input)) center / 100% 4px no-repeat}.photo-crop-adjustments{font-size:11px;color:var(--muted-foreground);margin-top:12px}.photo-adjust-hint,.photo-clean-preview p{font-size:10px;line-height:1.65;color:var(--muted-foreground);margin:12px 0}.photo-clean-preview{border-top:1px solid var(--border);margin-top:20px;padding-top:18px}.photo-clean-preview>span{font-size:11px}.photo-clean-preview svg{width:100%;display:block;background:var(--paper);border:1px solid var(--border);border-radius:15px;margin-top:12px}@media(max-width:620px){.lab-photo-section{padding:14px}.lab-photo-section>summary span{display:block;margin:5px 0 0 16px}.photo-adjustments{gap:10px 16px}}.sample-count{font-size:10px;padding:2px 6px;border-radius:8px;background:var(--muted)}.creator-views .sample-count{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:20px;height:20px;padding:0 5px;border:1px solid var(--border);border-radius:7px;background:var(--card);font-size:11px}.sample-library-tools{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.sample-library-tools input,.sample-library-tools select{border:1px solid var(--border);border-radius:13px;background:var(--paper);padding:10px 13px;font:inherit;color:inherit;min-width:0}.sample-library-tools input{flex:1;min-width:150px}.sample-open{border:0;padding:0;display:block;background:none;width:100%;cursor:pointer;border-radius:12px}.sample-open>svg,.sample-open>img{width:100%;height:110px;display:block;object-fit:contain}.sample-meta{font-size:10px;color:var(--muted-foreground);margin:8px 0 12px}.sample-card-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.earlier-photos{margin:22px 0;border-top:1px solid var(--border);padding-top:16px}.earlier-photos summary{cursor:pointer;font-size:12px}.earlier-photos summary span,.earlier-photos>p{color:var(--muted-foreground)}.earlier-photos>p{font-size:11px;line-height:1.6;margin:12px 0 16px}.letter-version-index{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0}.letter-version-index button{border:1px solid var(--border);border-radius:12px;padding:6px 10px;font:inherit;color:var(--foreground);background:var(--paper);cursor:pointer}.letter-version-index button[aria-pressed=true]{background:var(--selected);border-color:var(--selected-border)}.letter-version-index small{margin-left:8px;color:var(--muted-foreground)}.letter-version-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}.letter-version-cards article{padding:12px;border:1px solid var(--border);border-radius:17px;background:var(--paper);display:flex;flex-direction:column;gap:10px}.letter-version-cards svg{width:100%;height:90px;color:var(--foreground)}.letter-version-cards label,.glyph-use{display:flex;align-items:center;gap:5px}.letter-version-cards input,.glyph-use input{accent-color:var(--foreground)}.version-disabled svg,.reading-excluded svg{opacity:.25}.reading-glyphs .glyph-use{justify-content:center;font-size:10px;color:var(--muted-foreground);margin:5px 0 0}.lab-inventory p{letter-spacing:normal}@media(max-width:600px){.sample-gallery{grid-template-columns:1fr}}.photo-sheet-title{display:flex;justify-content:space-between;gap:12px;color:var(--muted-foreground);font-size:11px;margin-top:28px}.photo-sheet-capture h2{font-size:24px;letter-spacing:-.5px;font-weight:500;margin:20px 0 10px}.photo-sheet-capture>p{font-size:13px;line-height:1.7;color:var(--muted-foreground);max-width:540px}.photo-prompt-card{border:1px solid var(--border);border-radius:22px;padding:12px 24px 12px 48px;background:var(--paper);margin:22px 0}.photo-prompt-card li{padding:13px 0 13px 10px;color:var(--muted-foreground);font-size:11px}.photo-prompt-card li+li{border-top:1px dashed var(--border)}.photo-prompt-card li span{color:var(--foreground);white-space:pre-wrap;font-size:20px;line-height:1.4}.photo-sheet-capture .photo-actions{margin:20px 0;flex-wrap:wrap}.photo-sheet-capture .photo-preparation{margin-top:24px}.photo-clean-preview>div>svg{width:100%;height:110px;display:block}.photo-clean-preview>div+div{margin-top:10px;border-top:1px solid var(--border);padding-top:14px}.photo-clean-preview strong{font-size:12px;font-weight:500}.personal-workspace .personal-content{max-width:1220px}.stylus-workspace{grid-template-columns:minmax(0,1fr)}.stylus-workspace .creator-task{background:var(--card)}.creator-pane-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;margin-bottom:26px}.creator-pane-heading h2{display:flex;align-items:center;gap:9px;margin:0;font-size:17px;font-weight:550;letter-spacing:-.3px}.creator-pane-heading>span{color:var(--muted-foreground);font-size:10px}.starter-resume{margin-top:20px}.compact-preview .personal-ink-preview{display:grid;align-items:center;min-height:270px;margin-top:0;margin-bottom:22px;border-color:transparent;border-radius:16px;background:var(--card)}.compact-preview .lab-empty{padding:35px 22px;gap:16px;text-align:center}.compact-preview .lab-empty>.ui-icon{color:var(--foreground)}.compact-preview .lab-empty strong{font-size:14px;font-weight:500;color:var(--foreground)}.compact-preview .lab-empty p{font-size:11px;line-height:1.7;max-width:240px}.compact-preview .lab-coverage{gap:8px 12px;font-size:10px;margin:18px 0 0}.compact-preview .lab-input textarea{font-size:12px;min-height:70px;padding:12px;border-radius:12px}.compact-preview .lab-suggestions{gap:6px}.compact-preview .lab-suggestions button{text-align:left;line-height:1.5;background:var(--card)}.compact-preview .lab-preview-actions{margin-top:20px}.compact-preview .lab-preview-actions>.creator-secondary{margin-left:auto}.preview-options{border-top:1px solid var(--border);margin-top:22px;padding-top:16px}.preview-options>summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-size:11px;color:var(--muted-foreground);list-style:none}.preview-options>summary::-webkit-details-marker{display:none}.preview-options[open]>summary .ui-icon{transform:rotate(180deg)}.lab-suggestions button[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--selected-border)}.personal-flow-controls{display:flex;gap:9px 18px;flex-wrap:wrap;margin-top:16px;align-items:center}.personal-flow-controls label{display:flex;gap:7px;align-items:center;font-size:11px}.personal-flow-controls input{accent-color:var(--foreground);width:15px;height:15px}.personal-flow-controls>span{font-size:10px;color:var(--muted-foreground)}.lab-preview-actions{flex-wrap:wrap}.lab-preview-actions>.text-button{display:flex;align-items:center}.lab-missing>button{display:block;margin-top:10px;text-decoration:underline}.preview-details-link{display:flex;align-items:center;gap:7px;margin:18px 0 0}.standalone-preview{max-width:850px;margin:32px auto 0}.standalone-preview>h1{margin:0 0 26px;font-size:25px;font-weight:550;letter-spacing:-.6px}.standalone-preview .personal-ink-preview{display:grid;align-items:center;min-height:280px;padding:22px}.compact-preview .personal-ink-preview{margin-top:18px;margin-bottom:0}.lab-preview-actions .creator-secondary{margin-left:auto}.preview-locked{min-height:290px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px 12px}.preview-locked h2{font-size:17px;font-weight:550;margin:18px 0 10px}.preview-locked p{font-size:12px;line-height:1.7;color:var(--muted-foreground);max-width:280px;margin:0 0 14px}.preview-locked>span{font-size:11px;color:var(--muted-foreground)}.preview-locked>button{margin-top:22px}.saved-practice-review{max-width:850px;margin:0 auto}.back-to-practice{display:inline-flex;align-items:center;margin-bottom:20px}.saved-practice-review .handwriting-lab{max-width:none}.saved-practice-review .lab-review-heading{margin-top:20px;padding-top:20px}.quick-reading-heading{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}.quick-reading-heading h3{font-size:15px;letter-spacing:-.2px;font-weight:550;margin:0}.quick-reading .reading-glyphs{gap:7px}.quick-reading .reading-glyphs>div{flex-basis:56px}.quick-reading .reading-glyphs svg{height:44px}.quick-adjust{flex-shrink:0}.quick-adjust[aria-expanded=true] .ui-icon{transform:rotate(180deg)}.quick-reading .reading-actions{border-top:1px solid var(--border);padding-top:18px}.handwriting-creator .creator-action{display:inline-flex;align-items:center;justify-content:center}.creator-action.ghost-button{border:1px solid transparent}.creator-action>.ui-icon{flex-shrink:0}.capture-unreadable{font-size:12px;line-height:1.7;color:var(--muted-foreground)}.capture-unreadable button{margin:8px 12px 0 0}.photo-page-recovery{display:flex;align-items:flex-start;gap:22px;padding:22px;margin-bottom:28px;border:1px solid var(--border);border-radius:20px;background:var(--muted)}.photo-page-recovery>img{width:130px;height:180px;object-fit:contain;border-radius:8px;background:var(--card)}.photo-page-recovery h3{font-size:16px;font-weight:550;margin:0 0 12px}.photo-page-recovery p{font-size:12px;line-height:1.7;color:var(--muted-foreground);margin:0 0 12px}.photo-recovery-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:18px}@media(max-width:620px){.photo-page-recovery{flex-direction:column;padding:18px}.photo-page-recovery>img{width:100%;height:150px}}@media(max-width:1000px){.compact-preview .personal-ink-preview{max-height:350px}}@media(max-width:620px){.creator-pane-heading{margin-bottom:20px}.creator-pane-heading>span{font-size:9px}.compact-preview .personal-ink-preview{min-height:220px}.quick-reading .reading-glyphs>div{flex-basis:48px}.quick-reading .reading-actions .export-button{width:100%}}.personal-preview-footer{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-top:16px}.personal-preview-footer .personal-connections{margin:0;padding:10px 12px;gap:16px}.personal-preview-footer .lab-preview-actions{flex:1;justify-content:flex-end;margin:0;gap:8px}.personal-preview-footer .lab-preview-actions .creator-secondary{margin-left:0}.personal-preview-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 20px;margin-bottom:24px}.personal-preview-heading>h1,.personal-preview-heading>h2{margin:0}.personal-preview-heading>button{flex-shrink:0}.personal-style-pending{font-size:11px;color:var(--muted-foreground)}@media(max-width:600px){.personal-preview-footer .personal-connections{flex:1 1 100%}.personal-preview-footer .lab-preview-actions{justify-content:space-between;flex-wrap:wrap}}@font-face{font-family:Geist;src:url(/fonts/geist/Geist-Variable.woff2) format("woff2");font-style:normal;font-weight:100 900;font-display:swap}:root{font-family:Geist,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;font-weight:400;font-size:13px;color-scheme:light;-webkit-font-smoothing:antialiased;--background: #f5f4f2;--foreground: #292826;--card: #fefefd;--card-foreground: var(--foreground);--primary: #292826;--primary-hover: #43413d;--primary-foreground: #fefefd;--secondary: #eeece8;--secondary-foreground: #57544e;--muted: #f7f6f4;--muted-foreground: #78746e;--border: #e8e5e0;--input: #ddd9d3;--ring: #aaa297;--selected: #f0ede8;--selected-border: #c4bdb2;--canvas: #f0eeea;--canvas-dot: #dcd7d0;--paper: #fffefb;--shadow-sm: 0 1px 2px #3e30200a;--radius: 14px;--button-height: 34px;--button-font-size: 11px;--button-line-height: 16px;--button-padding-inline: 11px;--button-radius: 12px;--button-icon-size: 16px;--line: var(--border);--accent: var(--secondary-foreground);--soft: var(--muted);--ease-out: cubic-bezier(.23, 1, .32, 1);--motion-press: .12s;--motion-popover: .18s;--motion-dialog: .22s;color:var(--foreground);background:var(--background)}::selection{background:#e4dfd7;color:var(--foreground)}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,summary{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button{background:none;border:0}button:disabled{cursor:default;opacity:.35}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--ring);outline-offset:4px}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--ring);outline-offset:2px}a{color:inherit;text-decoration:none}button{transition:background .15s,border-color .15s,opacity .15s}svg{vertical-align:middle}.studio{height:calc(100dvh - 20px);margin:10px;border:1px solid var(--border);border-radius:24px;box-shadow:0 2px 8px #3e302006;display:flex;flex-direction:column;overflow:hidden}.topbar{height:56px;flex-shrink:0;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 20px;gap:20px;background:var(--card)}.studio .workspace[hidden],.top-actions>[hidden]{display:none}.workspace-nav{display:flex;flex:none;gap:3px;padding:3px;background:var(--muted);border-radius:12px}.workspace-nav button{color:var(--muted-foreground)}.workspace-nav button[aria-pressed=true]{background:var(--card);color:var(--foreground);box-shadow:var(--shadow-sm)}.personal-workspace{flex:1;overflow-y:auto;scrollbar-gutter:stable;background:var(--card);padding:48px 24px}.personal-content{width:100%;max-width:500px;margin:auto}.personal-heading{margin-bottom:24px}.personal-heading h1{margin:0 0 7px;font-size:22px;font-weight:550;letter-spacing:-.5px}.personal-heading p,.paper-capture-card p{color:var(--muted-foreground);font-size:12px;line-height:1.6;margin:0}.paper-capture-card{border:1px solid var(--border);border-radius:22px;padding:24px}.paper-capture-card img{display:block;object-fit:contain;margin:0 0 18px}.paper-capture-card h2{margin:0 0 9px;font-size:15px;font-weight:550}.paper-capture-card .export-button{margin-top:18px;width:fit-content}.paper-capture-card .capture-status{font-size:10px;margin-top:14px}@media(max-width:620px){.topbar{flex-wrap:wrap;height:auto!important;min-height:54px;padding-top:9px!important;padding-bottom:9px!important}.workspace-nav{order:3;width:100%}.workspace-nav button{flex:1}.personal-workspace{padding:28px 18px}}.wordmark{display:flex;align-items:center;flex:none}.wordmark img{display:block;width:120px;height:auto}@media(max-width:620px){.wordmark img{width:112px}}.about-dialog{width:min(360px,calc(100vw - 32px));padding:20px;border:1px solid var(--border);border-radius:22px;background:var(--card);color:var(--foreground);box-shadow:0 16px 60px #2928261f}.about-dialog::backdrop{background:#29282633}.about-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.about-heading h2{font-size:16px;font-weight:550;margin:0}.about-licenses{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid var(--border);border-radius:12px;color:var(--secondary-foreground);font-size:12px}.about-licenses:hover{background:var(--muted)}.top-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.section-actions{display:flex;align-items:center;gap:6px}.ui-icon{display:block;flex:none}.panel-toggle{flex:none}h1{font-family:inherit;font-size:37px;font-weight:400;letter-spacing:-1.5px;margin:0}h2{font-size:12px;font-weight:600;margin:0}p{margin:0}.workspace{position:relative;display:grid;grid-template-columns:var(--visible-left-width, var(--left-panel-width)) minmax(0,1fr) var(--visible-right-width, var(--right-panel-width));grid-template-areas:"text canvas properties";flex:1;min-height:0;width:100%;background:var(--card)}.left-panel,.right-panel{min-width:0;padding:10px 18px 20px;overflow-y:auto;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--input) transparent}.left-panel{grid-area:text;border-right:1px solid var(--line);display:flex;flex-direction:column;overflow-y:auto}.right-panel{grid-area:properties;border-left:1px solid var(--line)}.text-section>.section-heading,.instrument-section>.section-heading{min-height:28px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.heading-with-help,.slider-name{display:inline-flex;align-items:center;gap:5px}.help-tip{display:inline-flex;align-items:center}.help-trigger,.help-close{display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:9px;color:var(--muted-foreground);padding:2px}.help-trigger{opacity:.6;width:20px;height:20px}.help-trigger:hover,.help-trigger[aria-expanded=true],.help-trigger:focus-visible,.help-close:hover{background:var(--secondary);color:var(--foreground);opacity:1}.help-card{font-weight:400;position:fixed;inset:auto;margin:0;width:min(292px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px;overflow:visible;border:1px solid #dedbd6;border-radius:20px;background:linear-gradient(155deg,#f7f6f4,#fff 80%);color:var(--foreground);box-shadow:inset 0 1px #fff,0 10px 32px #25221d12,0 2px 4px #25221d0a}.help-card:before{content:"";position:absolute;top:-5px;left:calc(var(--arrow) - 5px);width:9px;height:9px;background:#f7f6f4;border-top:1px solid #dedbd6;border-left:1px solid #dedbd6;transform:rotate(45deg)}.help-card.above:before{top:auto;bottom:-5px;background:#fff;transform:rotate(225deg)}.help-card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:7px}.help-card h3{margin:0;font-size:13px;font-weight:550;letter-spacing:-.15px}.help-close{width:22px;height:22px;margin:-3px -4px -3px 0}.help-card p{font-size:12px;color:var(--muted-foreground);line-height:1.6}.help-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.help-comparison figure{margin:0;padding:8px 8px 10px;border:1px solid var(--border);border-radius:12px;background:var(--card);text-align:center}.help-comparison svg{display:block;width:100%;height:68px}.help-comparison figcaption{font-size:10px;font-weight:500;color:var(--muted-foreground)}.help-illustration{height:112px;display:flex;align-items:center;justify-content:center;background:#eeece8;border-radius:12px;margin-bottom:15px}.help-illustration img{display:block;object-fit:contain}.tiny-label{font-size:10px;color:var(--muted-foreground);white-space:nowrap}.text-section{display:flex;flex-direction:column;flex:1;min-height:180px}.text-section textarea{display:block;width:100%;flex:1;height:0;margin-top:12px;padding:16px;border:1px solid var(--border);background:var(--card);border-radius:var(--radius);resize:none;line-height:1.8;font-size:14px;color:var(--foreground);min-height:90px;max-height:none;box-shadow:var(--shadow-sm)}.text-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:9px;font-size:10px;color:var(--muted-foreground)}.text-button{color:var(--secondary-foreground)}.ghost-button{text-decoration:none}@media(hover:hover)and (pointer:fine){.text-button:not(.ghost-button):hover:not(:disabled){text-decoration:underline}.ghost-button:hover:not(:disabled){background:var(--muted);text-decoration:none}}.style-section{flex:none;margin-top:20px}.style-section .section-heading{margin-bottom:10px}.style-trigger{width:100%;display:flex;align-items:center;gap:12px;padding:12px 14px 8px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow-sm);text-align:left}.style-trigger:hover{background:var(--muted)}.style-trigger>svg{flex:none;color:var(--muted-foreground)}.style-trigger-content{flex:1;min-width:0;font-size:12px;font-weight:500}.style-trigger-content>svg{display:block;width:100%;height:36px}.handwriting-style-menu{position:fixed;inset:auto;margin:0;width:560px;max-width:calc(100vw - 24px);max-height:min(620px,calc(100dvh - 24px));overflow:auto;padding:14px;background:var(--card);color:var(--foreground);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow-md)}.style-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-14px;padding:8px 0;background:var(--card);z-index:1}.style-menu-heading h2{margin:0;font-size:13px;font-weight:500}.style-group-heading{margin:12px 6px 6px;font-size:11px;font-weight:500;color:var(--muted)}.handwriting-style-menu .style-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.handwriting-style-menu .style-group-heading{grid-column:1 / -1}@media(max-width:480px){.handwriting-style-menu{width:340px}.handwriting-style-menu .style-list{grid-template-columns:1fr}}.panel-resizer{position:absolute;top:0;bottom:0;width:12px;z-index:5;cursor:col-resize;touch-action:none;display:flex;justify-content:center;align-items:center;outline:none}.panel-resizer[data-side=left]{transform:translate(-50%)}.panel-resizer[data-side=right]{transform:translate(50%)}.panel-resizer[hidden]{display:none}.panel-resizer:before{content:"";position:absolute;inset:0 4px;border-radius:6px;background:transparent;transition:background .12s}.panel-resizer>span{width:3px;height:32px;background:var(--border);border-radius:4px;z-index:1}.panel-resizer:hover:before,.panel-resizer:focus-visible:before{background:var(--selected)}.panel-resizer:hover>span,.panel-resizer:focus-visible>span,.workspace[data-resizing=left] .panel-resizer[data-side=left]>span,.workspace[data-resizing=right] .panel-resizer[data-side=right]>span{background:var(--foreground)}.panel-resizer:focus-visible{outline:2px solid var(--ring);outline-offset:-3px}.workspace[data-resizing],.workspace[data-resizing] *{cursor:col-resize!important;-webkit-user-select:none;user-select:none}.style-list{display:flex;flex-direction:column;gap:4px;margin-top:12px}.style-choice{text-align:left;border:1px solid transparent;border-radius:var(--radius);padding:8px 10px 6px;width:100%;background:transparent}.style-choice:hover{background:var(--muted)}.style-choice.selected{border-color:var(--border);background:var(--selected)}.style-meta{display:flex;align-items:center;font-size:12px;font-weight:550;gap:9px}.style-check{margin-left:auto;border:1px solid transparent;border-radius:50%;width:14px;height:14px;display:flex;align-items:center;justify-content:center}.selected .style-check{color:#fff;background:var(--primary);border-color:var(--primary)}.style-choice>svg{display:block;width:100%;height:29px;overflow:hidden}.panel-footer{padding-top:20px;font-size:10px;color:var(--muted-foreground)}.canvas-panel{grid-area:canvas;min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--canvas)}.canvas-toolbar{height:48px;flex-shrink:0;padding:0 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);background:var(--muted)}.canvas-tools,.canvas-toolbar-start{display:flex;align-items:center;gap:4px}.canvas-toolbar-start{gap:8px;min-width:0}.canvas-title{font-size:12px;color:var(--muted-foreground)}.icon-button,.canvas-tools button{display:inline-flex;align-items:center;justify-content:center;color:var(--muted-foreground)}.icon-button:hover,.canvas-tools button:hover{background:var(--secondary)}.icon-button[aria-pressed=true],.canvas-tools button[aria-pressed=true]{background:var(--card);color:var(--foreground);box-shadow:0 0 0 1px var(--border),var(--shadow-sm)}.canvas-tools .zoom-value{min-width:45px;font-variant-numeric:tabular-nums}.toolbar-divider{width:1px;height:16px;background:var(--border);margin:0 5px}.paper-viewport{position:relative;overflow:hidden;flex:1;min-height:0;background:var(--paper);overscroll-behavior:contain;isolation:isolate}.paper-viewport:focus-visible{outline:2px solid var(--ring);outline-offset:-3px}.paper-viewport>.ink-preview{position:absolute;inset:0;display:block;width:100%;height:100%}.canvas-background-trigger{display:flex;align-items:center;gap:5px;font-size:11px;border-radius:10px;padding:4px 6px;color:var(--secondary-foreground)}.canvas-background-trigger:hover{background:var(--secondary)}.canvas-background-trigger>svg:first-child{width:23px;height:21px}.canvas-background-menu{position:fixed;inset:auto;margin:0;width:270px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;padding:14px;border:1px solid var(--border);border-radius:18px;background:var(--card);color:var(--foreground);box-shadow:var(--shadow-md)}.canvas-background-menu h2{font-size:12px;font-weight:500;margin:0}.ruling-options{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:12px 0}.ruling-options button{padding:5px;border:1px solid transparent;border-radius:12px;font-size:10px;color:var(--muted-foreground)}.ruling-options button:hover{background:var(--muted)}.ruling-options button[aria-pressed=true]{border-color:var(--selected-border);background:var(--selected);color:var(--foreground)}.ruling-options svg{display:block;width:100%;height:38px;background:var(--paper);border:1px solid var(--border);border-radius:7px;margin-bottom:5px}.canvas-background-menu>.paper-texture-control{margin-bottom:0;padding-top:12px;border-top:1px solid var(--border)}.ink-word{cursor:pointer;outline:none}.word-target{fill:transparent;transition:fill .15s}.ink-word:hover .word-target,.ink-word:focus .word-target{fill:#ab94721a;stroke:#ab94724d;stroke-width:1}.paper-viewport{touch-action:none}.paper-viewport.pan-mode{cursor:grab}.paper-viewport.is-panning{cursor:grabbing;-webkit-user-select:none;user-select:none}.paper-viewport.pan-mode .ink-word,.paper-viewport.is-panning .ink-word{cursor:inherit}.paper-viewport.pan-mode .word-target,.paper-viewport.is-panning .word-target{fill:transparent;stroke:none}.canvas-bottom{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:8px;padding:10px 16px;border-top:1px solid var(--border);background:var(--muted)}.canvas-status{height:29px;flex-shrink:0;padding:0 17px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted-foreground);border-top:1px solid var(--border);background:var(--muted)}.check-label{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted-foreground);line-height:1.5;cursor:pointer}.check-label input{width:13px;height:13px;margin:0;accent-color:var(--primary)}.variation-nav{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted-foreground)}.variation-nav button{display:flex;align-items:center}.regenerate-button{background:var(--card);border:1px solid var(--border);color:var(--secondary-foreground);display:flex;align-items:center;font-weight:550;box-shadow:var(--shadow-sm)}.regenerate-button:hover{background:var(--secondary)}.instrument-section .section-heading{margin-bottom:10px}.smooth-connections-control{display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:center;gap:4px 8px;margin:18px 0;padding:12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--muted)}.smooth-connections-heading{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:550;line-height:1.4}.smooth-connections-heading label{cursor:pointer}.smooth-connections-control[data-locked] .smooth-connections-heading{color:var(--muted-foreground)}.smooth-connections-control[data-locked] .connection-switch{opacity:.5}.smooth-connections-control[data-locked] .connection-switch,.smooth-connections-control[data-locked] input,.smooth-connections-control[data-locked] label{cursor:not-allowed}.smooth-connections-control>p{grid-column:1 / -1;margin:0;color:var(--muted-foreground);font-size:11px;line-height:1.5}.connection-switch{position:relative;display:grid;place-items:center;width:32px;height:24px;cursor:pointer}.connection-switch input{position:absolute;top:50%;left:50%;width:44px;height:44px;transform:translate(-50%,-50%);margin:0;opacity:0;cursor:pointer}.connection-switch-track{width:32px;height:18px;padding:2px;border-radius:999px;background:var(--input);pointer-events:none}.connection-switch-track:before{content:"";display:block;width:14px;height:14px;border-radius:50%;background:var(--card);box-shadow:var(--shadow-sm)}.connection-switch input:checked+.connection-switch-track{background:var(--primary)}.connection-switch input:checked+.connection-switch-track:before{transform:translate(14px)}.connection-switch input:focus-visible+.connection-switch-track{outline:2px solid var(--ring);outline-offset:3px}.slider-control:has(input:disabled){opacity:.45}.instrument-trigger{display:flex;align-items:center;gap:8px;width:100%;min-height:46px;padding:5px 10px;border:1px solid var(--input);border-radius:var(--radius);background:var(--card);color:var(--foreground);text-align:left;box-shadow:var(--shadow-sm)}.instrument-trigger:hover{background:var(--muted)}.tool-drawing{display:block;flex:none;width:24px;height:32px;color:var(--secondary-foreground)}.instrument-trigger-content{display:flex;flex:1;min-width:0;flex-direction:column;font-size:12px;font-weight:500}.tool-stroke{display:block;width:64px;height:28px;flex:none}.instrument-trigger .tool-stroke{width:42px;height:16px}.instrument-trigger>.icon{flex:none;color:var(--muted-foreground)}.instrument-menu{position:fixed;inset:auto;margin:0;width:min(304px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;padding:10px;border:1px solid var(--border);border-radius:20px;background:var(--card);color:var(--foreground);box-shadow:0 8px 28px #29282614,0 2px 5px #29282608}.instrument-menu-heading{display:flex;align-items:center;justify-content:space-between;padding:0 4px 6px 8px}.instrument-menu-heading h3{margin:0;font-size:12px;font-weight:550}.instrument-options{display:grid;gap:3px}.instrument-option{position:relative;display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 24px 4px 8px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--foreground);text-align:left}.instrument-option:hover{background:var(--muted)}.instrument-option[aria-pressed=true]{background:var(--selected);border-color:var(--selected-border)}.instrument-option-content{display:flex;flex:1;align-items:center;justify-content:space-between;gap:8px;min-width:0;font-size:12px;font-weight:450}.instrument-option-check{position:absolute;right:7px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;color:var(--foreground)}.seed-label input,.resolution-label select{width:100%;padding:8px;border:1px solid var(--input);border-radius:var(--radius);background:var(--card);color:var(--foreground);box-shadow:var(--shadow-sm);min-height:36px}.ink-section{padding:19px 0;margin-bottom:18px;border-bottom:1px solid var(--line)}.ink-colors{display:grid;grid-template-columns:repeat(6,minmax(0,38px));align-items:center;gap:4px;margin-top:10px}.ink-swatch{border-radius:11px;width:100%;height:40px;background:transparent;border:1px solid transparent;color:var(--ink);display:flex;align-items:center;justify-content:center;padding:0;position:relative}.ink-swatch:hover{background:var(--muted)}.ink-swatch.active{border-color:var(--selected-border);background:var(--muted)}.ink-swatch-art{display:block;width:36px;max-width:100%;height:36px;overflow:visible}.ink-swatch-check{position:absolute;right:-2px;bottom:-2px;width:14px;height:14px;border:1px solid var(--card);border-radius:50%;background:var(--foreground);display:flex;align-items:center;justify-content:center;color:#fff;pointer-events:none}.ink-swatch-check svg{width:9px;height:9px;stroke-width:2.2px}.controls{margin-top:18px}.slider-control{margin-bottom:18px}.slider-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;font-size:12px;color:var(--secondary-foreground)}.slider-title output{font-size:10px;color:var(--muted-foreground);background:var(--card);padding:2px 6px;border:1px solid var(--border);border-radius:8px;min-width:29px;text-align:center;font-variant-numeric:tabular-nums}input[type=range]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:4px;background:linear-gradient(to right,var(--primary) var(--fill),var(--secondary) var(--fill));border-radius:8px;margin:10px 0;cursor:pointer}input[type=range]::-webkit-slider-thumb{appearance:none;background:var(--primary);width:13px;height:18px;border-radius:999px;border:2px solid var(--card);box-shadow:0 0 0 1px var(--primary)}input[type=range]::-moz-range-thumb{background:var(--primary);width:9px;height:14px;border-radius:999px;border:2px solid var(--card);box-shadow:0 0 0 1px var(--primary)}.range-ends{display:flex;justify-content:space-between;font-size:10px;color:var(--muted-foreground);padding-top:2px}.advanced,.letter-editor{border-top:1px solid var(--line);padding:15px 0;color:var(--secondary-foreground)}.advanced summary,.letter-editor summary{list-style:none;font-size:12px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;color:var(--foreground)}.advanced[open]>summary>svg,.letter-editor[open]>summary>svg{transform:rotate(45deg)}.advanced .controls{margin-top:20px}.advanced summary::-webkit-details-marker,.letter-editor summary::-webkit-details-marker{display:none}.advanced[open] summary,.letter-editor[open] summary{margin-bottom:15px}.advanced .check-label{margin-bottom:14px}.seed-label{display:flex;flex-direction:column;gap:6px;font-size:10px;color:var(--muted-foreground);margin:14px 0}.export-section{border-top:1px solid var(--line);padding-top:18px;margin-top:3px}.format-picker{display:flex;border:1px solid var(--border);border-radius:var(--radius);padding:3px;margin:12px 0;gap:4px;background:var(--muted)}.format-picker button{flex:1;color:var(--muted-foreground)}.format-picker button span{font-size:10px;margin-left:3px;color:var(--muted-foreground)}.format-picker button.active{background:var(--card);box-shadow:0 1px 3px #3e302014;color:var(--secondary-foreground)}.export-option{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.export-option .help-tip{flex-shrink:0}.export-button{display:flex;align-items:center;justify-content:center;background:var(--primary);border:1px solid var(--primary);color:var(--primary-foreground);font-weight:500;box-shadow:var(--shadow-sm)}.export-button:hover{background:var(--primary-hover)}.resolution-label{display:flex;flex-direction:column;gap:7px;font-size:10px;color:var(--secondary-foreground);margin-top:12px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%);background:var(--primary);color:var(--primary-foreground);box-shadow:0 5px 20px #3e302024;border:1px solid var(--ring);border-radius:14px;padding:11px 17px;font-size:12px;display:flex;align-items:center;gap:9px;z-index:100}.empty-paper{position:absolute;inset:0;pointer-events:none;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:20px;text-align:center;color:var(--muted-foreground)}.empty-paper p{font-size:12px;color:var(--muted-foreground)}.empty-paper img{display:block;width:min(230px,80%);max-height:190px;object-fit:contain}.unsupported{padding:9px 16px;background:#fff0d3;font-size:12px;color:#765620}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.compare-tray{flex-shrink:0;min-width:0;padding:12px 16px 15px;background:var(--muted);border-top:1px solid var(--border)}.compare-heading{display:flex;align-items:center;gap:10px;margin-bottom:7px}.compare-heading>span{color:var(--muted-foreground);font-size:10px}.compare-heading>button{margin-left:auto}.compare-cards{display:flex;gap:9px;overflow-x:auto;scrollbar-width:thin;padding:2px 1px 6px}.compare-card{flex:0 0 220px;background:var(--paper);border:1px solid var(--border);border-radius:var(--radius);padding:10px;text-align:left}.compare-card.selected{border-color:var(--selected-border);box-shadow:inset 0 0 0 1px #baaa9330}.compare-card:hover{border-color:var(--selected-border)}.compare-card>span{display:flex;justify-content:space-between;font-size:10px;color:var(--secondary-foreground)}.compare-card .ink-preview{width:100%;height:67px;display:block;margin-top:6px}.compare-empty{color:var(--muted-foreground);padding:15px 0;font-size:12px}.letter-controls{display:flex;align-items:center;gap:8px;margin-bottom:14px}.letter-picker{flex:1;min-width:0}.letter-picker-trigger{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:5px 10px;border:1px solid var(--input);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow-sm);text-align:left;font-size:12px}.glyph-preview{display:block;width:32px;height:32px;flex:none;color:var(--foreground)}.letter-picker-trigger>span{flex:1}.letter-picker-trigger strong{font-weight:550;margin-left:3px}.letter-stepper{display:flex;gap:2px}.letter-menu{position:fixed;inset:auto;margin:0;width:min(364px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;padding:12px;border:1px solid var(--border);border-radius:20px;background:var(--card);color:var(--foreground);box-shadow:0 8px 28px #29282614,0 2px 5px #29282608}.letter-menu-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.letter-menu-heading h3{margin:0;font-size:13px;font-weight:550}.letter-search{width:100%;height:36px;padding:8px 10px;font-size:12px;border:1px solid var(--input);border-radius:10px;background:var(--card);color:var(--foreground)}.letter-groups{display:flex;gap:3px;padding:3px;margin:10px 0;background:var(--muted);border-radius:11px}.letter-groups button{flex:1;height:30px;border-radius:8px;font-size:11px;color:var(--muted-foreground)}.letter-groups button[aria-pressed=true]{background:var(--card);color:var(--foreground);box-shadow:var(--shadow-sm)}.letter-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.letter-choice{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;height:56px;padding:3px;border:1px solid transparent;border-radius:11px}.letter-choice>span{color:var(--muted-foreground);font-size:9px;line-height:12px}.letter-choice:hover,.letter-picker-trigger:hover,.letter-form:hover{background:var(--muted)}.letter-choice[aria-pressed=true],.letter-form[aria-pressed=true]{border-color:var(--selected-border);background:var(--selected)}.letter-edited-dot{position:absolute;right:5px;top:5px;width:4px;height:4px;border-radius:50%;background:var(--foreground)}.letter-search-empty{padding:14px 4px;font-size:12px;color:var(--muted-foreground)}.letter-forms-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:10px;color:var(--muted-foreground)}.letter-forms{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.letter-form{position:relative;display:flex;align-items:center;justify-content:center;flex:1 0 54px;max-width:96px;height:64px;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:var(--card)}.letter-form .glyph-preview{width:40px;height:44px}.letter-form>span{position:absolute;left:6px;bottom:5px;font-size:9px;color:var(--muted-foreground)}.letter-form>svg:last-child:not(.glyph-preview){position:absolute;right:6px;top:6px}.letter-forms-heading>button{margin-left:auto}.letter-canvas{width:100%;height:220px;background:var(--paper);border:1px solid var(--border);border-radius:var(--radius);touch-action:none}.letter-canvas circle{cursor:grab}.letter-canvas circle:hover{stroke-width:.3}.letter-editor p{font-size:10px;line-height:1.5;margin-top:9px;color:var(--muted-foreground)}.letter-saved{display:block;font-size:10px;margin-top:8px;color:var(--secondary-foreground)}@media(min-width:1700px){.left-panel,.right-panel{padding:10px 22px 22px}}@media(max-width:1150px)and (min-width:901px){.left-panel,.right-panel{padding:10px 14px 17px}.canvas-status span:first-child{display:none}.canvas-bottom{flex-wrap:wrap}}@media(max-width:900px){.studio{height:auto;min-height:calc(100dvh - 20px);overflow:visible}.topbar{position:sticky;top:0;z-index:10}.workspace{grid-template-columns:var(--visible-left-width, var(--left-panel-width)) minmax(0,1fr);grid-template-areas:"text canvas" "properties properties"}.left-panel{max-height:680px}.panel-resizer[data-side=left]{bottom:auto;height:680px}.canvas-panel{min-height:600px;height:680px}.right-panel{grid-column:1 / -1;border-top:1px solid var(--line);border-left:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:20px}.right-panel>section:has(.controls){grid-column:1;grid-row:2 / 4}.right-panel .ink-section{padding-top:0;margin:0}.controls{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.letter-editor,.advanced{grid-column:1 / -1}.canvas-bottom{flex-wrap:wrap}.canvas-status span:first-child{display:none}}@media(max-width:620px){.studio{margin:0;border:0;border-radius:0;min-height:100dvh}.topbar{height:54px;padding:0 14px;gap:8px}.workspace{display:flex;flex-direction:column}.left-panel{border-right:0;max-height:none;padding:10px 16px 18px;overflow:visible}.text-section textarea{flex:none;height:clamp(220px,35dvh,360px);font-size:16px}.style-list{display:grid;grid-auto-flow:column;grid-auto-columns:185px;overflow-x:auto;padding-bottom:6px}.style-section{margin-top:18px}.panel-footer{display:none}.canvas-panel{border-top:1px solid var(--line);min-height:510px;height:610px}.canvas-toolbar{padding:0 12px}.canvas-bottom{padding:10px 12px}.canvas-status{padding:0 12px}.right-panel{display:block;padding:10px 18px 22px;overflow:visible}.right-panel .ink-section{padding:20px 0;margin-bottom:20px}.right-panel .controls{column-gap:24px}.compare-card{flex-basis:210px}.toast{max-width:92vw;font-size:12px;white-space:nowrap}}.workspace>aside[hidden]{display:none}.workspace[data-left-panel=hidden]{--visible-left-width: 0px}.workspace[data-right-panel=hidden]{--visible-right-width: 0px}.canvas-expanded .workspace{grid-template-columns:minmax(0,1fr);grid-template-areas:"canvas"}.canvas-expanded .canvas-panel{flex:1;min-width:0}@media(max-width:900px){.canvas-expanded{height:calc(100dvh - 20px);min-height:0;overflow:hidden}.canvas-expanded .canvas-panel{height:auto;min-height:0}}@media(max-width:620px){.canvas-expanded{height:100dvh}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}.compare-filter{display:flex;gap:2px;padding:2px;border-radius:10px;background:var(--secondary)}.compare-filter button{border:0;border-radius:8px;padding:5px 8px;background:transparent;color:var(--muted-foreground);font-size:10px}.compare-filter button[aria-pressed=true]{color:var(--foreground);background:var(--card);box-shadow:var(--shadow-sm)}.compare-tray[data-mode=flow] .compare-card{flex:1 0 220px}.compare-tray[data-mode=flow]{max-height:55%;overflow-y:auto}.compare-tray[data-mode=flow] .ink-preview{height:auto}@media(max-width:700px){.compare-heading{flex-wrap:wrap}.compare-tray[data-mode=flow] .compare-card{flex-basis:260px}}.soon-badge{display:inline-flex;align-items:center;padding:2px 5px;border:1px solid #dedbd5;border-radius:5px;background:#f4f3f0;color:#7b7770;font-size:8px;font-weight:600;letter-spacing:.07em;line-height:1.2}.workspace-nav button[aria-disabled=true]{color:#8b8781;cursor:default}.workspace-nav .soon-badge{margin-left:7px}.creator-coming-soon{max-width:470px;margin:80px auto;text-align:center}.device-dialog{width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:none;padding:28px;border:1px solid var(--border);border-radius:26px;background:var(--card);color:var(--foreground);box-shadow:0 22px 80px #29282624}.device-dialog::backdrop{background:#29282638;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.device-dialog-close{position:absolute;top:20px;right:20px}.device-dialog h2{font-size:27px;font-weight:550;letter-spacing:-.8px;line-height:1.2;margin:0 0 12px;padding-right:44px;outline:none}.device-lead{color:var(--muted-foreground);font-size:13px;line-height:1.7;margin:0 0 24px}.device-choices{display:grid;gap:12px}.device-choices>button{display:flex;align-items:center;gap:16px;padding:21px 18px;text-align:left;border:1px solid var(--input);border-radius:18px;background:var(--card)}.device-choices>button:hover{background:var(--muted);border-color:var(--selected-border)}.device-choices>button>span{flex:1}.device-choices strong{display:block;font-size:14px;font-weight:550;margin-bottom:6px}.device-choices small{display:block;color:var(--muted-foreground);font-size:11px;line-height:1.5}.device-choices .ui-icon{flex-shrink:0}.device-first-preview{display:flex;gap:10px;font-size:11px;line-height:1.7;color:var(--muted-foreground);padding:24px 0}.device-first-preview>span{flex:1;min-width:0}.device-first-preview .ui-icon{flex-shrink:0;margin-top:3px}.device-footer{display:flex;gap:16px;align-items:center;justify-content:space-between;border-top:1px solid var(--border);padding-top:20px}.device-footer .text-button{display:inline-flex;align-items:center;justify-content:center}.device-qr{min-height:232px;display:grid;place-items:center;margin:8px auto 16px;background:#fff;border-radius:18px;width:248px;max-width:100%}.device-qr img{display:block;width:232px;height:232px;max-width:100%}.device-qr p{font-size:12px;line-height:1.7;padding:20px}.device-link{display:flex;gap:8px}.device-link input{flex:1;width:0;min-width:0;padding:11px 12px;border:1px solid var(--input);border-radius:11px;font:inherit;font-size:11px;color:var(--foreground);background:var(--muted)}.device-link button{flex-shrink:0}.device-copy-status{display:block;min-height:18px;margin-top:8px;font-size:10px;color:var(--muted-foreground)}.device-local-note{font-size:11px;color:var(--muted-foreground);line-height:1.8;margin:0 0 22px}.device-dialog-trial{width:min(840px,calc(100vw - 32px))}.device-dialog-trial .writing-pad{width:100%;aspect-ratio:900 / 320}.device-trial-status{display:flex;align-items:center;gap:9px;min-height:48px;font-size:12px}.device-trial-status .ui-icon{flex-shrink:0}.device-mouse-help{margin:4px 0 20px;color:var(--muted-foreground);font-size:11px;line-height:1.7}.device-mouse-help summary{cursor:pointer}.device-mouse-help label{display:flex;align-items:center;gap:8px;color:var(--foreground)}.device-mouse-help input{width:16px;height:16px;accent-color:var(--primary)}.device-dialog-trial .device-footer>.export-button{margin-left:auto}.device-trial-note{font-size:10px;color:var(--muted-foreground);text-align:right;margin:14px 0 0}.creator-header-actions{display:flex;gap:12px;align-items:center}@media(max-width:1100px),(any-pointer:coarse){.personal-workspace{padding:16px 24px}.creator-progress-summary{display:flex;align-items:center;gap:12px}.creator-progress-summary>.creator-header{order:1;flex-shrink:0;margin:0}.creator-header>div:first-child,.creator-header .device-reopen>span{display:none}.creator-header .device-reopen{width:var(--button-height);padding:0}.creator-header h1{font-size:21px}.creator-header-actions{gap:8px}.creator-toolbar{margin:8px 0 16px;gap:12px;padding-bottom:12px}.stylus-workspace{grid-template-columns:minmax(0,1fr);gap:0}.stylus-workspace>.creator-task{padding:16px 22px}.stylus-workspace .creator-pane-heading{display:none}.stylus-workspace .task-instruction{max-width:480px;margin:0 auto 6px}.stylus-workspace .writing-prompt{max-width:480px;font-size:28px;margin:0 auto 12px}.stylus-workspace .letter-practice-pad{max-width:480px;margin-inline:auto}.stylus-workspace .creator-task>.writing-pad-wrap{max-width:420px;margin-inline:auto}.stylus-workspace .writing-pad-wrap{padding:0}.stylus-workspace .writing-pad{scroll-margin-block:88px}.stylus-workspace .capture-device,.stylus-workspace .pad-edge-notice{max-width:480px;margin-inline:auto}.stylus-workspace .capture-device{font-size:10px;margin-top:8px}.stylus-workspace .capture-device:not([data-input=mouse]):not([data-input=touch]){display:none}.handwriting-creator:has(.stylus-workspace){padding-bottom:calc(80px + env(safe-area-inset-bottom))}.stylus-workspace .task-footer,.stylus-workspace .reading-actions{position:fixed;z-index:25;inset:auto 0 0;margin:0;padding:12px max(24px,calc((100vw - 1220px)/2)) calc(12px + env(safe-area-inset-bottom));background:var(--card);box-shadow:0 -4px 18px #29282608;border:0;min-height:58px}.device-dialog-trial{width:calc(100vw - 32px)}}@media(max-width:620px){.creator-progress-summary{flex-direction:column;align-items:stretch}.creator-progress-summary>.creator-header{order:0}.creator-header-actions{width:100%}.creator-header-actions .handwriting-editor-action{margin-right:auto}.device-dialog{padding:20px;border-radius:22px}.device-dialog h2{font-size:25px}.device-dialog-close{top:12px;right:12px}.device-choices>button{padding:18px 14px;gap:12px}.device-choices strong{font-size:13px}.device-trial-status{font-size:11px;line-height:1.6;padding:10px 0}.device-dialog-trial .writing-pad-wrap{padding:36px 0}.device-footer{gap:10px}.device-trial-note{text-align:left;line-height:1.7}.personal-workspace{padding:18px 12px}.creator-header h1{font-size:18px}.stylus-workspace>.creator-task{padding:16px}.stylus-workspace .writing-pad-wrap{padding:28px 0}.stylus-workspace .letter-practice-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stylus-workspace .letter-size-help>p{display:none}.stylus-workspace .letter-version{left:10px;top:5px;font-size:11px}.stylus-workspace .task-footer,.stylus-workspace .reading-actions{padding-inline:16px}}.feedback-trigger,.creator-secondary,.creator-action,.text-button,.ghost-button,.export-button,.regenerate-button,.workspace-nav button,.creator-views button,.format-picker button,.icon-button,.canvas-tools button,.variation-nav button,.practice-arrow{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:var(--button-height);min-height:var(--button-height);padding:0 var(--button-padding-inline);border-radius:var(--button-radius);font-size:var(--button-font-size);line-height:var(--button-line-height)}:is(.feedback-trigger,.creator-secondary,.creator-action,.text-button,.ghost-button,.export-button,.regenerate-button,.workspace-nav button,.creator-views button,.format-picker button,.icon-button,.canvas-tools button,.variation-nav button,.practice-arrow)>.ui-icon{width:var(--button-icon-size);height:var(--button-icon-size);flex-shrink:0}.icon-button,.canvas-tools button:not(.zoom-value):not(.fit-view-button),.variation-nav button,.practice-arrow{width:var(--button-height);min-width:var(--button-height);padding:0}:is(.feedback-popover,.instrument-menu,.handwriting-style-menu,.canvas-background-menu){opacity:0;transition:opacity .14s var(--ease-out),display .14s allow-discrete,overlay .14s allow-discrete}:is(.feedback-popover,.instrument-menu){transform-origin:top right}.handwriting-style-menu{transform-origin:top left}.canvas-background-menu{transform-origin:bottom left}:is(.feedback-popover,.instrument-menu,.handwriting-style-menu,.canvas-background-menu):popover-open{opacity:1}:is(.about-dialog,.device-dialog){opacity:0;transform-origin:center;transition:opacity .14s var(--ease-out),display .14s allow-discrete,overlay .14s allow-discrete}:is(.about-dialog,.device-dialog)[open]{opacity:1}:is(.about-dialog,.device-dialog)::backdrop{opacity:0;transition:opacity .14s var(--ease-out),display .14s allow-discrete,overlay .14s allow-discrete}:is(.about-dialog,.device-dialog)[open]::backdrop{opacity:1}:is(.feedback-popover,.instrument-menu,.handwriting-style-menu,.canvas-background-menu):not(:popover-open),:is(.about-dialog,.device-dialog):not([open]){pointer-events:none}@starting-style{:is(.feedback-popover,.instrument-menu,.handwriting-style-menu,.canvas-background-menu):popover-open,:is(.about-dialog,.device-dialog)[open],:is(.about-dialog,.device-dialog)[open]::backdrop{opacity:0}}@media(prefers-reduced-motion:no-preference){:is(.export-button,.creator-secondary,.feedback-trigger,.regenerate-button,.icon-button,.ghost-button,.device-choices>button){transition:transform var(--motion-press) var(--ease-out),background-color .12s ease,border-color .12s ease,opacity .12s ease}:root:not([data-input-modality=keyboard]) :is(.export-button,.creator-secondary,.feedback-trigger,.regenerate-button,.icon-button,.ghost-button,.device-choices>button):active:not(:disabled){transform:scale(.98)}:is(.feedback-popover,.instrument-menu,.handwriting-style-menu,.canvas-background-menu){transform:scale(.97);transition:opacity var(--motion-popover) var(--ease-out),transform var(--motion-popover) var(--ease-out),display var(--motion-popover) allow-discrete,overlay var(--motion-popover) allow-discrete}:is(.about-dialog,.device-dialog){transform:scale(.97);transition:opacity var(--motion-dialog) var(--ease-out),transform var(--motion-dialog) var(--ease-out),display var(--motion-dialog) allow-discrete,overlay var(--motion-dialog) allow-discrete}:is(.about-dialog,.device-dialog)::backdrop{transition-duration:var(--motion-dialog)}:is(.feedback-popover,.instrument-menu,.handwriting-style-menu,.canvas-background-menu):popover-open,:is(.about-dialog,.device-dialog)[open]{transform:scale(1)}@starting-style{:is(.feedback-popover,.instrument-menu,.handwriting-style-menu,.canvas-background-menu):popover-open,:is(.about-dialog,.device-dialog)[open]{opacity:0;transform:scale(.97)}}}:root[data-input-modality=keyboard] :is(button,[popover],dialog),:root[data-input-modality=keyboard] dialog::backdrop{transition:none}
