/* Product presentation. Sign poses, skinning and animation timing are untouched. */
@font-face { font-family: Manrope; src: url("/fonts/manrope.woff") format("woff"); font-style: normal; font-weight: 200 800; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --surface: #fff;
  --ink: #303143;
  --muted: #716d7c;
  --line: #e5e3e9;
  --pine: #474260;
  --soft: #eeebf6;
  --accent: #dd875b;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
button { transition: background .15s, color .15s, border-color .15s; }
button:disabled { opacity: .45; cursor: not-allowed; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea, select { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #aca0cb; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 12px 18px; background: var(--pine); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { max-width: 1296px; margin: auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.studio-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 26px; font-weight: 800; letter-spacing: -1.3px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; background: #39374e; color: #f4e6d8; width: 38px; height: 38px; border-radius: 12px; }
.brand-mark svg { width: 27px; height: 27px; }
.brand-light { font-weight: 450; }
.brand-period { color: var(--accent); }
.studio-nav { display: flex; align-items: center; gap: 30px; }
.studio-nav a { text-decoration: none; font-size: 13px; color: var(--muted); padding: 10px 0; position: relative; }
.studio-nav a[aria-current] { color: var(--ink); font-weight: 750; }
.studio-nav a[aria-current]::after { content: ''; position: absolute; bottom: 1px; left: 0; right: 0; margin: auto; width: 4px; height: 4px; background: var(--pine); border-radius: 50%; }
.studio-nav a:hover { color: var(--pine); }
.text-button { border: 0; background: transparent; font-weight: 600; display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 13px; color: var(--pine); }
.text-button:hover { color: var(--accent); }
.page-shell { max-width: 1296px; margin: auto; padding: 0 28px; }
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 33px 0 32px; }
.preview-label { color: #8a7a69; font-size: 9px; font-weight: 650; letter-spacing: 1.6px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.status-dot, .view-dot { width: 6px; height: 6px; background: #9b8eb6; display: inline-block; flex-shrink: 0; border-radius: 50%; }
h1 { font-size: clamp(38px, 3.9vw, 54px); line-height: 1.12; letter-spacing: -2.7px; font-weight: 650; }
h1 span { color: #73668e; }
.welcome-copy { max-width: 370px; padding: 12px 0 0; }
.welcome-copy p { color: var(--muted); line-height: 1.85; font-size: 13px; margin-top: 10px; }
.welcome-link { display: inline-flex; align-items: center; gap: 20px; font-size: 12px; text-decoration: none; color: white; background: #45415a; font-weight: 600; border-radius: 8px; padding: 12px 16px; white-space: nowrap; }
.welcome-link:hover { background: #363147; }
.sign-explorer { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 22px; align-items: start; scroll-margin-top: 22px; }
.library-panel { min-width: 0; padding: 8px 18px 16px; border: 1px solid var(--line); background: #fff; border-radius: 16px; }
.library-panel > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 15px 0 18px; }
.library-title { font-size: 13px; font-weight: 700; letter-spacing: -.2px; }
.library-total { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.chevron { width: 16px; height: 16px; margin-left: 3px; transform: rotate(180deg); }
details:not([open]) .chevron { transform: none; }
.library-content { padding-bottom: 12px; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 0 12px; min-height: 46px; border: 1px solid #e0dce7; background: white; border-radius: 8px; color: var(--muted); }
.search-box:focus-within { border-color: var(--pine); outline: 2px solid #c7bedc; outline-offset: 2px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; padding: 12px 0; font-size: 13px; }
.search-box input:focus-visible { outline: none; }
.search-box svg { width: 17px; height: 17px; }
.search-box kbd { font: inherit; font-size: 11px; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.catalog-switch { display: flex; background: #f4f2f6; padding: 4px; border-radius: 7px; margin: 16px 0 13px; gap: 3px; }
.catalog-switch button { flex: 1; background: transparent; color: var(--muted); border: 0; border-radius: 5px; padding: 7px; font-size: 11px; }
.catalog-switch button.active { background: white; color: var(--pine); font-weight: 750; box-shadow: 0 1px 4px #2622350d; }
.collection-select { display: block; }
.collection-select select { width: 100%; border: 1px solid var(--line); background: transparent; border-radius: 6px; padding: 9px 10px; font-size: 12px; color: var(--muted); }
.vocabulary-heading { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin: 22px 0 9px; font-size: 10px; color: var(--muted); }
.vocabulary-heading h2 { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; }
.word-list { display: grid; gap: 4px; max-height: 520px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d9d3e4 transparent; padding: 3px; margin: 0 -3px; }
.word-chip { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid transparent; border-radius: 8px; min-height: 47px; padding: 10px 12px; background: transparent; color: #666273; font-size: 13px; }
.word-chip:hover { background: #f2eff6; }
.word-chip.active { background: #eee8f7; color: #5e467e; font-weight: 750; border-color: #e9e0f2; }
.sign-name { flex: 1; overflow-wrap: anywhere; }
.chip-arrow { opacity: 0; }
.chip-arrow svg { width: 15px; height: 15px; }
.word-chip.active .chip-arrow, .word-chip:hover .chip-arrow { opacity: 1; }
.load-more { margin-top: 12px; width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: transparent; font-size: 12px; display: flex; justify-content: center; gap: 16px; }
.load-more:hover { background: white; color: var(--pine); }
.empty-library { font-size: 13px; color: var(--muted); padding: 20px 12px; line-height: 1.8; }
.viewer-column { min-width: 0; }
.player-card { border: 1px solid #e3dfe8; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 6px 24px #39314904; }
.player-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 27px 21px; }
.player-heading > div { min-width: 0; }
.eyebrow { color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: 1.3px; margin-bottom: 7px; }
.player-heading h2 { font-size: 29px; letter-spacing: -1.2px; line-height: 1.25; font-weight: 650; overflow-wrap: anywhere; }
#current-word:focus, #review-heading:focus { outline: none; }
#current-meaning { font-size: 12px; color: var(--muted); line-height: 1.65; margin-top: 5px; max-width: 620px; }
.share-button { display: flex; align-items: center; gap: 8px; padding: 9px 12px; min-height: 40px; border: 1px solid var(--line); background: white; border-radius: 7px; color: var(--muted); font-size: 12px; }
.share-button svg { width: 16px; height: 16px; }
.share-button:hover { background: var(--paper); color: var(--pine); }
.stage { position: relative; height: 480px; background: radial-gradient(ellipse at 50% 35%, #f7f2ed 2%, #eee6ea 45%, #ded8e8 100%); overflow: hidden; isolation: isolate; }
#avatar-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; margin: auto; touch-action: pan-y; }
#avatar-canvas:focus-visible { outline: 3px solid #aca0cb; outline-offset: -4px; }
.stage-topline { position: absolute; top: 20px; left: 24px; right: 24px; display: flex; align-items: start; justify-content: space-between; gap: 14px; pointer-events: none; z-index: 2; color: #70657d; font-size: 10px; }
.view-label { display: flex; align-items: center; gap: 7px; min-width: 0; max-width: 70%; }
#stage-status { overflow-wrap: anywhere; }
.stage-character { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 650; color: #5e536d; }
.loading-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; background: #eeebf4f5; z-index: 3; padding: 30px; text-align: center; }
.loading-overlay strong { font-size: 22px; font-weight: 500; letter-spacing: -.5px; }
.loading-overlay > span:last-child { max-width: 300px; color: var(--muted); line-height: 1.8; font-size: 13px; }
.spinner { width: 25px; height: 25px; border: 2px solid #d5cce3; border-top-color: var(--pine); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.transport { padding: 15px 25px 20px; }
.phrase-segments { display: flex; flex-wrap: wrap; gap: 5px; max-height: 110px; overflow: auto; padding: 4px 0 10px; }
.phrase-segments button { border: 1px solid transparent; background: var(--paper); color: var(--muted); padding: 5px 9px; border-radius: 5px; font-size: 12px; }
.phrase-segments button.active { background: var(--soft); color: var(--pine); border-color: #dcd4e7; }
.phrase-segments button.spelled { border-style: dashed; border-color: #dcd4e7; }
.phrase-segments small { font-size: 9px; margin-left: 5px; }
.timeline-row { display: flex; align-items: center; gap: 12px; font-size: 10px; font-variant-numeric: tabular-nums; color: var(--muted); margin-bottom: 10px; }
.timeline-row > span { min-width: 26px; }
.timeline-row > span:last-child { text-align: right; }
#timeline { width: 100%; min-width: 0; height: 20px; accent-color: var(--pine); cursor: pointer; margin: 0; }
.transport-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.play-controls { display: flex; align-items: center; gap: 6px; }
.play-button { border: 0; background: #444057; color: white; border-radius: 8px; min-height: 42px; min-width: 96px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; font-size: 12px; font-weight: 650; box-shadow: 0 3px 5px #33304513; }
.play-button:hover { background: #333045; }
.play-button svg { width: 15px; height: 15px; }
.icon-button { border: 0; background: transparent; display: grid; place-items: center; width: 40px; height: 40px; color: var(--muted); border-radius: 7px; }
.icon-button:hover, .loop-button:hover { background: var(--soft); }
.icon-button svg { width: 18px; height: 18px; }
.speed-control { display: flex; gap: 3px; align-items: center; font-size: 11px; color: var(--muted); }
.speed-control > span { margin-right: 8px; }
.speed-control button { padding: 8px; border: 0; border-radius: 5px; background: transparent; min-height: 36px; font-size: 12px; color: var(--muted); }
.speed-control button.active { background: var(--soft); color: var(--pine); font-weight: 600; }
.loop-button { background: transparent; border: 0; border-radius: 5px; padding: 8px 4px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; min-height: 36px; }
.loop-button svg { width: 17px; height: 17px; }
.loop-button[aria-pressed=true] { background: var(--soft); color: var(--pine); }
.player-options { padding: 12px 24px; border-bottom: 1px solid var(--line); background: #faf9fc; }
.view-options { border: 1px solid #c9bddb; border-radius: 9px; background: #eee8f7; }
.view-options > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 12px 16px; font-size: 13px; font-weight: 750; color: #514269; border-radius: 8px; }
.view-action-label { display: flex; align-items: center; gap: 10px; }
.view-action-label svg { width: 19px; height: 19px; }
.detail-hint { display: flex; align-items: center; gap: 10px; color: #6a5c7f; font-size: 11px; font-weight: 500; }
.view-chevron { width: 18px; height: 18px; }
.view-options[open] .view-chevron { transform: rotate(180deg); }
.view-options > summary:hover { background: #e4daf1; }
.view-options[open] > summary { margin-bottom: 10px; border-bottom: 1px solid #ded4eb; border-radius: 8px 8px 0 0; }
.camera-controls { border: 0; margin: 0; padding: 0 16px 18px; min-width: 0; }
.camera-control-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; }
.camera-control-row label { min-width: 36px; }
.camera-control-row button { min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: 5px; background: white; padding: 6px 9px; font-size: 11px; }
.camera-control-row button[aria-pressed=true] { background: var(--soft); color: var(--pine); border-color: #c4b8d8; }
.camera-control-row input { flex: 1; min-width: 70px; width: 110px; height: 32px; accent-color: var(--pine); }
.camera-control-row output { min-width: 45px; font-size: 11px; }
.angle-control-row { margin-top: 8px; }
.camera-controls p { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.sentence-card { padding: 23px 25px 0; margin-bottom: 18px; border: 1px solid #dcd3e8; border-radius: 16px; background: linear-gradient(115deg, #f3eff9, #fdfcfe); }
.sentence-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.sentence-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e7def2; color: #6b5386; }
.sentence-heading h2 { font-size: 18px; font-weight: 750; letter-spacing: -.4px; }
.sentence-heading p { font-size: 11px; color: var(--muted); margin-top: 2px; }
#word-form { padding: 0 0 17px; }
.sentence-modes { display: flex; align-items: stretch; gap: 4px; border: 1px solid #e0d7e9; background: #eae4f1; padding: 4px; border-radius: 9px; width: fit-content; max-width: 100%; margin-bottom: 17px; }
.sentence-modes button { border: 0; background: transparent; color: #776982; border-radius: 6px; padding: 9px 13px; min-height: 42px; font-size: 12px; font-weight: 650; }
.sentence-modes button[aria-pressed=true] { background: #fff; color: #544068; box-shadow: 0 2px 5px #4435510c; }
.beta-label { font-size: 8px; text-transform: uppercase; letter-spacing: .7px; background: #eaddf6; color: #79529a; border-radius: 4px; padding: 3px 5px; margin-left: 5px; }
.sentence-input-label { display: block; font-size: 11px; font-weight: 650; color: #786a88; margin-bottom: 8px; }
.translation-retry { border: 0; background: transparent; color: var(--pine); text-decoration: underline; text-underline-offset: 4px; padding: 9px 0; font-size: 11px; }
.translation-preview { border: 1px solid #d9cce5; border-radius: 12px; background: white; padding: 18px; margin: 0 0 18px; }
.translation-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.translation-preview h3 { font-size: 14px; letter-spacing: -.2px; }
.draft-label { font-size: 9px; color: #7e6547; background: #f3eadc; padding: 4px 7px; border-radius: 5px; white-space: nowrap; }
.translation-caveat { margin: 8px 0 15px; font-size: 11px; line-height: 1.7; color: var(--muted); }
.translation-preview label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
#translation-sequence { width: 100%; min-height: 70px; resize: vertical; padding: 12px; border: 1px solid #ccbdda; border-radius: 8px; color: #59436f; background: #faf8fd; font-size: 14px; line-height: 1.7; }
.translation-parts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.translation-part { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; max-width: 100%; overflow-wrap: anywhere; padding: 5px 9px; border: 1px solid #e1d7ea; background: #f4eff8; border-radius: 6px; font-size: 11px; color: #6b507f; }
.translation-part.spelled { border-style: dashed; border-color: #d5b992; background: #fbf6ed; color: #8b6b40; }
.translation-part small { font-size: 8px; }
.translation-notes { margin-top: 12px; padding-left: 10px; border-left: 2px solid #dccce9; color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
#translation-coverage { overflow-wrap: anywhere; }
#play-translation { margin-top: 16px; min-height: 44px; }
.compose-row { display: flex; gap: 8px; }
.input-wrap { position: relative; flex: 1; min-width: 0; }
#word-input { min-height: 50px; width: 100%; border: 1px solid #cfc4df; border-radius: 8px; background: white; padding: 12px 40px 12px 14px; font-size: 14px; box-shadow: 0 2px 5px #44355105; }
#clear-input { position: absolute; right: 4px; top: 4px; background: transparent; border: 0; font-size: 22px; color: var(--muted); height: 42px; width: 34px; }
.primary-button { display: flex; gap: 14px; align-items: center; justify-content: center; min-height: 42px; border: 0; border-radius: 7px; padding: 9px 14px; background: var(--pine); color: white; font-size: 12px; font-weight: 550; }
.primary-button:hover { background: #363147; }
#sign-button { gap: 7px; padding: 12px 17px; font-weight: 650; }
#sign-button svg { width: 15px; height: 15px; }
.sentence-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 12px; font-size: 10px; color: var(--muted); }
.sentence-examples button { background: white; border: 1px solid #e0d7eb; color: #6f5c83; border-radius: 6px; min-height: 32px; padding: 5px 9px; font-size: 10px; }
.sentence-examples button:hover { border-color: #a992c4; background: #ebe3f4; }
.sentence-footer { border-top: 1px solid #e5ddee; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3px 12px; font-size: 11px; color: var(--muted); }
.suggest-word-button { display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 7px 0; min-height: 36px; background: transparent; font-size: 12px; font-weight: 750; color: #6b4f8b; text-align: left; }
.suggest-word-button:hover { color: #41245e; text-decoration: underline; text-underline-offset: 4px; }
.suggest-word-button > span { font-size: 19px; font-weight: 450; }
.library-suggestion { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.library-suggestion > span { display: block; font-size: 11px; color: var(--muted); }
.suggestion-dialog { color: var(--ink); background: var(--paper); border: 1px solid #ded5e9; border-radius: 20px; padding: 26px; width: min(500px, calc(100% - 32px)); max-height: calc(100% - 32px); box-shadow: 0 24px 100px #23162c45; }
.suggestion-dialog::backdrop { background: #241c35a6; backdrop-filter: blur(4px); }
body:has(.suggestion-dialog[open]) { overflow: hidden; }
.suggestion-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.suggestion-kicker { font-size: 9px; letter-spacing: 1.3px; font-weight: 750; color: #8a749d; }
.dialog-close { border: 1px solid var(--line); background: white; border-radius: 50%; min-width: 40px; height: 40px; font-size: 23px; color: var(--muted); }
.dialog-close:hover { background: var(--soft); }
.suggestion-dialog h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.7px; }
#suggestion-description { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 12px 0 22px; }
#suggestion-fields { padding: 0; margin: 0; border: 0; min-width: 0; }
#suggestion-fields label { display: block; font-size: 12px; font-weight: 650; margin: 17px 0 7px; }
#suggestion-fields input, #suggestion-fields textarea { width: 100%; font-size: 14px; padding: 12px; border: 1px solid #d7cce3; border-radius: 8px; background: white; }
#suggestion-fields textarea { resize: vertical; min-height: 90px; }
.suggestion-note { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 12px 0 20px; }
#send-suggestion { width: 100%; min-height: 48px; }
#suggestion-status { overflow-wrap: anywhere; }
.arrow-icon { width: 14px; height: 14px; }
.composer-hint, .input-message { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.error { color: #a63f32 !important; }
.inline-status { font-size: 12px; color: var(--pine); padding: 12px 24px; overflow-wrap: anywhere; }
.inline-status:empty, .input-message:empty { display: none; }
.review-panel { padding: 25px 27px 20px; margin-top: 18px; border: 1px solid #e5deeb; border-radius: 16px; background: linear-gradient(115deg, #f1edf7, #f7f4f9); scroll-margin-top: 24px; }
.review-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.review-heading .eyebrow { font-size: 8px; letter-spacing: 1.1px; }
.review-heading h2 { font-size: 21px; line-height: 1.3; font-weight: 550; letter-spacing: -.5px; }
.feedback-mark { width: 32px; height: 32px; color: #9380b0; }
.feedback-fields { padding: 0; margin: 0; border: 0; min-width: 0; }
.rating-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.rating-choice { display: flex; align-items: center; gap: 5px; border: 0; padding: 0; margin: 0; }
.rating-choice label { display: grid; place-items: center; position: relative; width: 40px; height: 40px; cursor: pointer; border-radius: 6px; }
.rating-choice input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rating-choice svg { width: 31px; height: 31px; fill: transparent; stroke: #978da7; stroke-width: 1.2; pointer-events: none; }
.rating-choice label:has(input:checked) svg, .rating-choice label:has(~ label input:checked) svg { fill: #d49b55; stroke: #b6803e; }
.rating-choice label:has(input:focus-visible) { outline: 3px solid #aca0cb; outline-offset: 2px; }
.rating-choice label:hover { background: #e9e2f4; }
.rating-choice input:disabled { cursor: not-allowed; }
.rating-caption { color: var(--muted); font-size: 11px; margin: 4px 0 0 5px; }
.submit-feedback { display: flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid #c9bfd8; border-radius: 7px; padding: 10px 15px; font-size: 12px; font-weight: 600; background: transparent; color: var(--pine); min-height: 42px; }
.submit-feedback:hover { background: #e7e0f1; }
#feedback-target { margin-bottom: 16px; }
.review-panel label:not(.rating-choice label) { display: block; font-size: 12px; margin-bottom: 7px; color: #686076; }
.review-panel select, .review-panel textarea, .review-panel input:not([type=radio]) { width: 100%; padding: 10px 12px; border: 1px solid #d9d3e3; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; }
.review-panel textarea { resize: vertical; min-height: 94px; line-height: 1.7; }
.review-panel input::placeholder, .review-panel textarea::placeholder { color: #8a8196; }
.feedback-details { margin-top: 18px; border-top: 1px solid #e2dce9; }
.feedback-details summary { display: flex; align-items: center; gap: 8px; padding: 12px 0 0; font-size: 12px; color: #655d78; }
.optional-label { font-size: 10px; color: var(--muted); font-weight: 400; }
.details-plus { margin-left: auto; font-size: 16px; }
.feedback-details[open] .details-plus { transform: rotate(45deg); }
.feedback-detail-content { padding-top: 17px; }
.feedback-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 15px; }
.feedback-privacy { color: var(--muted); font-size: 11px; margin-top: 13px; line-height: 1.7; }
.feedback-status { color: #706183; font-size: 12px; line-height: 1.7; margin-top: 12px; }
.feedback-status:empty { display: none; }
.community-notes { font-size: 11px; color: var(--muted); margin-top: 14px; }
#feedback-list { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 9px; }
.rating-summary { font-size: 12px; color: #7d659c; font-weight: 600; }
.empty-notes { line-height: 1.6; }
.community-invitation { display: flex; align-items: center; gap: 28px; padding: 38px 44px; margin-top: 38px; border: 1px solid #e9dece; border-radius: 18px; background: #f3eee5; position: relative; overflow: hidden; }
.invitation-icon { width: 76px; height: 76px; border: 1px solid #dbccb7; background: #eee5d7; border-radius: 22px; display: grid; place-items: center; flex-shrink: 0; color: #a78960; transform: rotate(-8deg); }
.invitation-icon svg { width: 43px; height: 43px; transform: rotate(8deg); }
.community-invitation h2 { font-size: 26px; line-height: 1.25; letter-spacing: -1px; font-weight: 650; margin-bottom: 10px; color: #665441; }
.community-invitation p { color: #8d7d6d; font-size: 12px; line-height: 1.8; max-width: 475px; }
.community-invitation .text-button { margin-left: auto; white-space: nowrap; color: #766044; border-bottom: 1px solid #cabcaa; }
.studio-footer { color: var(--muted); font-size: 11px; padding: 25px 0 35px; }
.footer-line { display: flex; justify-content: space-between; gap: 16px; padding-top: 4px; }
.footer-line > span:first-child { color: #514b65; font-weight: 600; }
.footer-tagline { color: var(--muted); font-weight: 400; margin-left: 18px; }
.studio-footer details { margin-top: 14px; max-width: 660px; }
.studio-footer summary { display: inline-flex; gap: 12px; font-size: 10px; }
.studio-footer details p { margin-top: 12px; line-height: 1.8; }
.unavailable-page { max-width: 580px; margin: 12vh auto; padding: 30px; }
.unavailable-page h1 { margin-top: 30px; font-size: 38px; }
.unavailable-page p { margin-top: 20px; line-height: 1.8; color: var(--muted); }
.unavailable-page .primary-button { display: inline-flex; margin-top: 28px; text-decoration: none; }

/* Collections are real entry points into the same signing library. */
.contribute-link { border: 1px solid #dcd7e3; padding: 10px 14px; border-radius: 8px; }
.connection-word { position: relative; display: inline-block; }
.connection-word > svg { position: absolute; left: -3%; bottom: -12px; width: 105%; height: 20px; stroke: #e7b998; stroke-width: 2; z-index: -1; }
.welcome-title { isolation: isolate; }
.welcome-kicker { font-size: 8px; letter-spacing: 1.3px; font-weight: 700; color: #95899e; }
.welcome-actions { display: flex; align-items: center; gap: 18px; margin-top: 19px; }
.welcome-link svg { width: 15px; height: 15px; }
.welcome-count { color: #8d8695; font-size: 9px; max-width: 83px; line-height: 1.7; }
.welcome-count strong { color: #5a5169; display: block; font-size: 17px; font-weight: 650; letter-spacing: -.5px; }
.collection-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 5px 0 27px; }
.collection-card { min-height: 103px; display: flex; align-items: center; position: relative; gap: 10px; border-radius: 12px; border: 1px solid; padding: 18px 20px; text-align: left; transition: box-shadow .2s, transform .2s, border-color .2s; }
.collection-everyday { background: #f0eaf7; border-color: #e8e0f0; color: #806995; }
.collection-food { background: #f7eee4; border-color: #ede3d7; color: #8c6546; }
.collection-people { background: #eaf0e9; border-color: #e0e8df; color: #617957; }
.collection-card:hover, .collection-card[aria-pressed=true] { box-shadow: 0 4px 14px #4238430b; transform: translateY(-2px); border-color: currentColor; }
.collection-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.collection-kicker { font-size: 7px; letter-spacing: 1.1px; font-weight: 750; opacity: .85; }
.collection-copy strong { font-size: 14px; font-weight: 750; letter-spacing: -.4px; color: #514658; }
.collection-food .collection-copy strong { color: #7b614b; }
.collection-people .collection-copy strong { color: #566d53; }
.collection-copy > span:last-child { font-size: 10px; opacity: 1; }
.collection-art { width: 66px; height: 66px; flex-shrink: 0; margin-right: 12px; }
.collection-arrow { position: absolute; top: 16px; right: 14px; width: 12px; height: 12px; opacity: .7; }
.explorer-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 17px; }
.explorer-heading > div { display: flex; align-items: baseline; gap: 13px; }
.section-number { font-size: 10px; color: #9d95a9; letter-spacing: 1px; }
.explorer-heading h2 { font-size: 18px; font-weight: 650; letter-spacing: -.6px; }
.section-description { font-size: 11px; color: #777180; padding-left: 5px; }
.surprise-button { gap: 8px; font-size: 11px; color: #7e758e; padding: 0; }
.surprise-button svg { width: 15px; height: 15px; }
.sign-indicator { display: inline-block; width: 5px; height: 5px; background: #b4a7c6; margin-right: 5px; border-radius: 50%; vertical-align: 1px; }
.stage-halo { position: absolute; width: 61%; height: 150%; top: 10%; left: 19.5%; border-radius: 48% 48% 0 0; border: 1px solid #fff5; background: linear-gradient(165deg,#fff5,#fff0 65%); pointer-events: none; }
.stage-halo::after { content: ''; position: absolute; inset: 18px; border-radius: inherit; border: 1px solid #fff4; }
.stage-grid { position: absolute; inset: 0; opacity: .23; background-image: radial-gradient(#a99bad .65px, transparent .65px); background-size: 17px 17px; mask-image: linear-gradient(90deg,#000,transparent 25%,transparent 75%,#000); pointer-events: none; }
#avatar-canvas { z-index: 1; }
.stage-character-dot { height: 5px; width: 5px; border-radius: 50%; background: #978aab; margin-right: 2px; }
.character-kind { font-weight: 400; color: #92859f; }
.invitation-kicker { font-size: 8px !important; font-weight: 750; letter-spacing: 1.5px; margin-bottom: 9px; }

@media (min-width: 1600px) { .stage { height: 520px; } }
@media (max-width: 1000px) {
  .sign-explorer { grid-template-columns: 220px minmax(0, 1fr); gap: 23px; }
  .site-header, .page-shell { padding-left: 24px; padding-right: 24px; }
  .welcome-copy p { font-size: 12px; }
  .welcome { gap: 20px; }
  .stage { height: 460px; }
  .collection-art { width: 49px; height: 49px; margin-right: 0; }
  .collection-copy > span:last-child { display: none; }
  .collection-card { padding: 15px; min-height: 92px; }
  .collection-kicker { font-size: 6px; }
  .collection-copy strong { font-size: 12px; }
  .section-description { display: none; }
  .speed-control > span { display: none; }
  .speed-control button { padding: 8px 6px; }
  .loop-button > span { display: none; }
  .player-heading { padding: 21px; }
  .transport { padding: 14px 18px 18px; }
  .community-invitation .text-button { font-size: 12px; }
}
@media (max-width: 760px) {
  .site-header { min-height: 74px; padding: 17px 20px; gap: 16px; flex-wrap: wrap; }
  .studio-brand { font-size: 23px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 9px; }
  .contribute-link { margin-left: auto; font-size: 12px; }
  .studio-nav { order: 3; width: 100%; justify-content: flex-start; gap: 26px; padding-top: 0; }
  .studio-nav a { padding: 6px 0; font-size: 12px; }
  .studio-nav a[aria-current]::after { width: 100%; height: 2px; border-radius: 0; bottom: -3px; }
  .page-shell { padding: 0 20px; }
  .welcome { display: block; padding: 26px 0; }
  h1 { font-size: 38px; letter-spacing: -1.8px; }
  h1 span { letter-spacing: -1.5px; }
  .connection-word > svg { bottom: -9px; height: 15px; }
  .preview-label { display: none; }
  .welcome-copy { margin-top: 14px; padding-top: 0; }
  .welcome-copy p { font-size: 12px; }
  .welcome-kicker, .welcome-actions { display: none; }
  .welcome-copy p br { display: none; }
  .welcome-link { display: none; }
  .collection-strip { display: flex; gap: 9px; overflow-x: auto; margin: 0 -20px 24px; padding: 2px 20px 7px; scrollbar-width: none; }
  .collection-card { flex: 0 0 195px; min-height: 72px; padding: 12px 14px; gap: 5px; }
  .collection-copy strong { font-size: 12px; }
  .collection-art { width: 44px; height: 44px; }
  .collection-kicker { display: none; }
  .collection-arrow { top: 9px; right: 9px; width: 9px; height: 9px; }
  .explorer-heading { gap: 8px; padding-bottom: 13px; }
  .explorer-heading > div { gap: 8px; }
  .explorer-heading h2 { font-size: 16px; }
  .section-number { font-size: 8px; }
  .surprise-button { font-size: 10px; }
  .sign-explorer { display: flex; flex-direction: column; gap: 14px; }
  .library-panel { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 0; background: white; }
  .library-panel > summary { padding: 15px 17px; }
  .library-title { font-size: 14px; }
  .library-total { font-size: 11px; }
  .library-content { padding: 0 16px 16px; }
  .word-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 248px; }
  .word-chip { padding: 10px; font-size: 13px; }
  .word-chip .chip-arrow { display: none; }
  .search-box input, .collection-select select { font-size: 16px; }
  .search-box kbd { display: none; }
  .vocabulary-heading { margin-top: 17px; }
  .viewer-column { width: 100%; }
  .player-card { border-radius: 12px; }
  .player-heading { padding: 19px; gap: 12px; }
  .player-heading h2 { font-size: 26px; }
  .eyebrow { font-size: 8px; letter-spacing: 1px; }
  #current-meaning { font-size: 12px; }
  .share-button { padding: 9px; }
  .share-button > span { display: none; }
  .stage { height: auto; aspect-ratio: 1; }
  .stage-topline { top: 15px; left: 16px; right: 16px; font-size: 10px; }
  .stage-character { font-size: 9px; }
  .character-kind { display: none; }
  .stage-halo { width: 94%; left: 3%; top: 10%; }
  .transport { padding: 12px 16px 16px; }
  .transport-row { gap: 6px; flex-wrap: wrap; }
  .play-controls { gap: 3px; }
  .play-button { min-width: 76px; min-height: 38px; padding: 8px 10px; }
  .icon-button { width: 32px; height: 38px; }
  .speed-control { gap: 1px; }
  .speed-control button { padding: 8px 5px; min-height: 38px; font-size: 11px; }
  .loop-button { padding: 6px 3px; }
  .player-options { padding: 10px 12px; }
  .view-options > summary { padding: 12px; font-size: 12px; }
  .view-action-label { gap: 7px; }
  .detail-hint { font-size: 10px; gap: 4px; }
  .camera-controls { padding: 0 12px 14px; }
  .camera-control-row input { min-width: 65px; width: 70px; }
  .camera-control-row { gap: 6px; }
  .sentence-card { padding: 18px 17px 0; margin-bottom: 14px; border-radius: 12px; }
  #word-form { padding: 0 0 14px; }
  #word-input { font-size: 16px; }
  .sentence-modes { width: 100%; }
  .sentence-modes button { flex: 1; font-size: 11px; padding: 8px; }
  .beta-label { font-size: 7px; margin-left: 3px; }
  .translation-preview { padding: 14px; }
  .translation-preview h3 { font-size: 13px; }
  #translation-sequence { font-size: 16px; }
  .compose-row { flex-direction: column; }
  .primary-button { width: 100%; }
  .sentence-examples { gap: 6px; }
  .sentence-footer > span { font-size: 10px; }
  .suggestion-dialog { padding: 21px; }
  .suggestion-dialog h2 { font-size: 24px; }
  #suggestion-fields input, #suggestion-fields textarea { font-size: 16px; }
  .review-panel { padding: 22px 19px 19px; margin-top: 14px; }
  .review-heading h2 { font-size: 20px; }
  .rating-row { flex-wrap: wrap; gap: 13px; }
  .rating-choice { gap: 0; }
  .rating-choice label { width: 33px; height: 38px; }
  .rating-choice svg { width: 27px; height: 27px; }
  .submit-feedback { gap: 8px; padding: 9px 11px; font-size: 11px; }
  .feedback-mark { display: none; }
  .review-panel select, .review-panel textarea, .review-panel input:not([type=radio]) { font-size: 16px; }
  .feedback-extra { grid-template-columns: 1fr; gap: 12px; }
  .community-invitation { flex-wrap: wrap; gap: 14px; margin-top: 24px; padding: 28px 23px; border-radius: 14px; }
  .invitation-icon { display: none; }
  .community-invitation h2 { font-size: 21px; }
  .community-invitation .text-button { margin-left: 0; }
  .footer-line { flex-direction: column; gap: 10px; }
  .footer-tagline { display: none; }
  .studio-footer { padding-top: 22px; }
}
@media (max-width: 360px) {
  .page-shell { padding: 0 12px; }
  .site-header { padding: 16px 14px; }
  h1 { font-size: 33px; }
  .transport { padding-left: 12px; padding-right: 12px; }
  .speed-control button { padding: 8px 4px; font-size: 10px; }
  .review-panel { padding-left: 16px; padding-right: 16px; }
  .collection-strip { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  .rating-row { align-items: start; }
  .submit-feedback { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
