/* COPY of Omea Universe Code/css/controls.css (chapter 12 controls), copied 13 Nov 2026. Never edit by hand: re-copy from the Universe. */
/* Omea controls (chapter 12). Pill shapes for things you press, the square hairline tile for things you
   tick, the 11.3 line for scales. Ink is the one solid fill; light glass carries every control on an image. */

:root {
  --c-h: 48px;          /* control height, large */
  --c-h-md: 40px;
  --c-h-sm: 32px;
  --c-focus: 0 0 0 2px var(--paper), 0 0 0 3.25px var(--ink);
  --c-glass: rgba(255,255,255,.75);
}

/* ---------- 12.1 Buttons ---------- */
.c-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--c-h); padding: 0 24px; border-radius: 999px; font: 400 15.5px/1 var(--voice); letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; flex: none; transition: transform .2s ease-out; }
.c-btn.md { height: var(--c-h-md); padding: 0 18px; font-size: 14.5px; }
.c-btn.sm { height: var(--c-h-sm); padding: 0 14px; font-size: 13.5px; gap: 6px; }
.c-btn.block { width: 100%; }
.c-btn.pri { background: var(--ink); color: #fff; }
.c-btn.sec { background: var(--el-card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--el-hair-2); }
.c-btn.ghost { background: transparent; color: var(--ink); padding: 0 6px; }
.c-btn.ghost .l { border-bottom: 1px solid rgba(26,26,26,.35); padding-bottom: 2px; }
.c-btn.inv { background: #fff; color: var(--ink); }
.c-btn.gl { background: var(--c-glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); color: var(--ink); }
.c-btn.hover.pri { background: var(--ink-soft); } .c-btn.hover.sec, .c-btn.hover.gl { background: #fff; } .c-btn.hover.ghost .l { border-color: var(--ink); } .c-btn.hover.inv { background: #F2EEE8; }
.c-btn.press { transform: scale(.97); } .c-btn.press.pri { background: #000; } .c-btn.press.sec { background: var(--tile-fill); }
.c-btn.focus { box-shadow: var(--c-focus); } .c-btn.focus.sec { box-shadow: inset 0 0 0 1px var(--el-hair-2), var(--c-focus); }
.c-btn.off { background: rgba(26,26,26,.08); color: var(--muted); box-shadow: none; } .c-btn.ghost.off { background: none; } .c-btn.ghost.off .l { border-color: transparent; }
.c-btn.busy .l { opacity: .75; }
.c-btn.busy .bar { position: absolute; left: 22%; right: 22%; bottom: 9px; height: 1px; background: rgba(255,255,255,.25); overflow: hidden; }
.c-btn.busy .bar::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: currentColor; }
html:not(.export) .c-btn.busy .bar::after { animation: c-busy 1.2s cubic-bezier(.16,1,.3,1) infinite; }
@keyframes c-busy { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.c-btn.sec.busy .bar, .c-btn.inv.busy .bar, .c-btn.gl.busy .bar { background: rgba(26,26,26,.15); }

.c-ibtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); flex: none; }
.c-ibtn.md { width: 36px; height: 36px; } .c-ibtn.sm { width: 32px; height: 32px; } .c-ibtn.lg { width: 56px; height: 56px; }
.c-ibtn.line { box-shadow: inset 0 0 0 1px var(--el-hair-2); background: var(--el-card); }
.c-ibtn.gl { background: var(--c-glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.c-ibtn.ink { background: var(--ink); color: #fff; }
.c-ibtn.bare { background: none; }
.c-ibtn.hover.line, .c-ibtn.hover.gl { background: #fff; } .c-ibtn.press { transform: scale(.94); } .c-ibtn.focus { box-shadow: var(--c-focus); }
.c-ibtn.off { opacity: .4; }

/* ---------- 12.2 Pills and chips ---------- */
.c-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 999px; font-size: 14px; background: var(--el-card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--el-hair-2); white-space: nowrap; flex: none; }
.c-chip em { font-style: normal; font-family: var(--lab); font-size: 10px; letter-spacing: .04em; color: var(--muted); }
.c-chip.sel { background: var(--ink); color: #fff; box-shadow: none; padding-left: 12px; } .c-chip.sel em { color: rgba(255,255,255,.6); }
.c-chip.gl:not(.sel) { background: var(--c-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: none; }
.c-chip.off { color: var(--muted); box-shadow: inset 0 0 0 1px var(--el-hair); background: transparent; }
.c-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.c-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(26,26,26,.06); flex: none; }
.c-seg span { flex: 1; text-align: center; height: 34px; line-height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--secondary); white-space: nowrap; }
.c-seg span.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(40,25,15,.12), inset 0 0 0 1px rgba(26,26,26,.06); }
.c-seg.gl { background: rgba(255,255,255,.5); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); } .c-seg.gl span { color: var(--ink); }

/* ---------- 12.3 Inputs ---------- */
.c-search { display: flex; align-items: center; gap: 10px; width: 320px; height: 46px; padding: 0 16px; border-radius: 999px; background: var(--el-card); box-shadow: inset 0 0 0 1px var(--el-hair-2); color: var(--ink); font-size: 15px; flex: none; }
.c-search .ph { color: var(--muted); } .c-search .v { flex: 1; } .c-search .ph { flex: 1; }
.c-search .x { width: 20px; height: 20px; border-radius: 50%; background: rgba(26,26,26,.1); display: flex; align-items: center; justify-content: center; }
.c-search.focus { box-shadow: inset 0 0 0 1.25px var(--ink); }
.c-search.gl { background: var(--c-glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: none; }
.c-search.gl .ph { color: var(--secondary); }
.c-hint { font-family: var(--lab); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary); margin: 8px 0 0 16px; }
.caret { display: inline-block; width: 1px; height: 18px; background: var(--ink); margin-left: -8px; }
.c-search.focus .ph { flex: 0 1 auto; order: 2; margin-left: 2px; } .c-search.focus .caret { order: 1; margin-left: 0; }
html:not(.export) .caret { animation: c-blink 1.1s steps(1) infinite; }
@keyframes c-blink { 50% { opacity: 0; } }
.c-field { display: flex; flex-direction: column; gap: 7px; width: 300px; flex: none; color: var(--ink); }
.c-field .k { font-family: var(--lab); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; display: flex; justify-content: space-between; }
.c-field .k em { font-style: normal; color: var(--muted); }
.c-field .box { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 12px; background: var(--el-card); box-shadow: inset 0 0 0 1px var(--el-hair-2); font-size: 15.5px; }
.c-field .box .ph { color: var(--muted); } .c-field .box .v { flex: 1; } .c-field .box .ph { flex: 1; }
.c-field.focus .box { box-shadow: inset 0 0 0 1.25px var(--ink); } .c-field.focus .box .ph { flex: 0 1 auto; order: 2; } .c-field.focus .caret { order: 1; margin-left: 0; }
.c-field.err .box { box-shadow: inset 0 0 0 1.25px var(--ember); } .c-field .m { font-size: 12.5px; color: var(--secondary); padding-left: 2px; } .c-field.err .m { color: var(--ember); }
.c-field.off { opacity: .5; } .c-field.off .box { background: transparent; }
.c-field.gl .box { background: var(--c-glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: none; }
.c-field.gl .k { color: #fff; } .c-field.gl .k em { color: rgba(255,255,255,.7); }
.c-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); flex: none; }
.c-check .b { width: 20px; height: 20px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(26,26,26,.45); background: var(--el-card); display: flex; align-items: center; justify-content: center; flex: none; }
.c-check.on .b { background: var(--ink); box-shadow: none; }
.c-check.off { opacity: .45; } .c-check.focus .b { box-shadow: inset 0 0 0 1px rgba(26,26,26,.45), var(--c-focus); }
.c-check.err .b { box-shadow: inset 0 0 0 1.25px var(--ember); }
.c-check.light { color: #fff; } .c-check.light .b { background: rgba(255,255,255,.75); box-shadow: none; } .c-check.light.on .b { background: #fff; } .c-check.light.on .b svg { stroke: var(--ink); }

/* ---------- 12.4 Choices ---------- */
.c-opt { display: flex; align-items: center; gap: 12px; width: 300px; padding: 14px 16px; border-radius: 14px; background: var(--el-card); box-shadow: inset 0 0 0 1px var(--el-hair-2); color: var(--ink); flex: none; }
.c-opt .tx { flex: 1; } .c-opt .tt { font-size: 15px; } .c-opt .ss { font-size: 12.5px; color: var(--secondary); margin-top: 2px; }
.c-opt .rd { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(26,26,26,.45); flex: none; }
.c-opt.sel { box-shadow: inset 0 0 0 1.25px var(--ink); } .c-opt.sel .rd { box-shadow: inset 0 0 0 6px var(--ink); }
.c-opt.gl { background: var(--c-glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: none; } .c-opt.gl.sel { box-shadow: inset 0 0 0 1.25px var(--ink); }
.c-opt.off { opacity: .45; }
.c-scale { width: 520px; color: var(--ink); flex: none; }
.c-scale .ln { position: relative; display: flex; justify-content: space-between; height: 22px; align-items: center; }
.c-scale .ln::before { content: ''; position: absolute; left: 11px; right: 11px; top: 50%; height: 1px; background: rgba(26,26,26,.3); }
.c-scale .n { position: relative; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.c-scale .n i { width: 9px; height: 9px; border-radius: 50%; background: var(--el-paper); box-shadow: inset 0 0 0 1px rgba(26,26,26,.55); }
.c-scale .n.on i { width: 18px; height: 18px; background: var(--ink); box-shadow: 0 0 0 4px var(--el-paper); }
.c-scale .lb { display: flex; justify-content: space-between; margin-top: 12px; }
.c-scale .lb span { width: 20%; text-align: center; font-size: 12.5px; line-height: 1.25; color: var(--secondary); }
.c-scale .lb span:first-child { text-align: left; } .c-scale .lb span:last-child { text-align: right; }
.c-scale .lb span.on { color: var(--ink); }
.c-scale.gl { padding: 18px 20px 16px; border-radius: 18px; background: var(--c-glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.c-scale.gl .n i { background: #fff; } .c-scale.gl .n.on i { box-shadow: 0 0 0 4px rgba(255,255,255,.9); }
.c-rate { color: var(--ink); flex: none; }
.c-rate .r { display: flex; gap: 8px; }
.c-rate .r span { width: 48px; height: 48px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(26,26,26,.32); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 300; background: var(--el-card); }
.c-rate .r span.on { background: var(--ink); color: #fff; box-shadow: none; }
.c-rate .e { display: flex; justify-content: space-between; margin-top: 9px; font-family: var(--lab); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary); }
.c-rate.gl .r span:not(.on) { background: var(--c-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: none; } .c-rate.gl .e { color: #fff; }
.c-ypn { display: flex; gap: 8px; flex: none; }
.c-ypn span { width: 104px; height: 48px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--ink); background: var(--el-card); box-shadow: inset 0 0 0 1px var(--el-hair-2); }
.c-ypn span.on { background: var(--ink); color: #fff; box-shadow: none; }
.c-ypn.gl span:not(.on) { background: var(--c-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: none; }

/* ---------- 12.5 Navigation ---------- */
.c-tabs { display: inline-flex; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(251,249,246,.94); box-shadow: 0 18px 40px -22px rgba(40,25,15,.5), inset 0 0 0 1px var(--el-hair); color: var(--secondary); flex: none; }
.c-tabs.gl { background: var(--c-glass); -webkit-backdrop-filter: blur(24px) saturate(1.1); backdrop-filter: blur(24px) saturate(1.1); box-shadow: 0 18px 40px -22px rgba(20,10,5,.6); }
.c-tabs span { position: relative; width: 74px; height: 54px; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.c-tabs em { font-style: normal; font-size: 11px; letter-spacing: .01em; }
.c-tabs span.on { background: var(--ink); color: #fff; }
.c-tabs b { position: absolute; top: 9px; left: 50%; margin-left: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 2px rgba(251,249,246,.94); }
.c-back { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 16px 0 10px; border-radius: 999px; font-size: 14.5px; color: var(--ink); background: var(--el-card); box-shadow: inset 0 0 0 1px var(--el-hair-2); flex: none; }
.c-back.gl { background: var(--c-glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: none; }
.c-sech { display: flex; align-items: baseline; gap: 10px; width: 330px; color: var(--ink); padding-bottom: 10px; border-bottom: 1px solid var(--el-hair); flex: none; }
.c-sech .t { font-size: 20px; font-weight: 300; letter-spacing: -0.01em; }
.c-sech .n { font-family: var(--lab); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.c-sech .a { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; color: var(--secondary); }
.c-sech.light { color: #fff; border-color: rgba(255,255,255,.35); } .c-sech.light .n, .c-sech.light .a { color: rgba(255,255,255,.75); }
.c-store { display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; width: 150px; height: 46px; padding: 0 14px; border-radius: 8px; border: 1px dashed rgba(26,26,26,.35); color: var(--ink); flex: none; }
.c-store .s { font-size: 10.5px; color: var(--secondary); }
.c-store.light { border-color: rgba(255,255,255,.6); color: #fff; } .c-store.light .s { color: rgba(255,255,255,.75); } .c-store.light .lab { color: #fff; }
.c-back.c-press { transform: scale(.97); background: var(--tile-fill); }
.c-back.c-focus { box-shadow: inset 0 0 0 1px var(--el-hair-2), var(--c-focus); }
.c-scale.gl .n.on i { background: var(--ink); }
.e-glass .c-rate .r span { width: 44px; height: 44px; }

/* ---------- Review 10: active states are a raised glass lens, never ink ---------- */
/* The bar is glass; the chosen tab is a lighter lens floating in it. */
.c-tabs { background: var(--glass-bar); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); box-shadow: var(--glass-bar-edge); color: var(--ink-2); }
.c-tabs.gl { background: rgba(255,255,255,.34); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.75), inset 0 1px 0 rgba(255,255,255,.6), 0 18px 40px -20px rgba(20,10,5,.55); color: var(--ink); }
.c-tabs span.on { background: var(--lens-fill); box-shadow: var(--lens-shadow); color: var(--ink); transform: translateY(-.5px); }
.c-tabs span.on::before { content: ''; position: absolute; inset: 1px 2px 52% 2px; border-radius: 999px; background: radial-gradient(110% 100% at 50% 0%, rgba(255,255,255,.95), rgba(255,255,255,0) 75%); }
.c-tabs span.on > * { position: relative; }
.c-tabs b { box-shadow: 0 0 0 2px rgba(240,236,230,.9); }
/* Segmented control */
.c-seg { background: var(--glass-bar); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); box-shadow: inset 0 0 0 .5px rgba(26,26,26,.08), inset 0 1px 2px rgba(60,40,20,.06); }
.c-seg span.on { position: relative; background: var(--lens-fill); box-shadow: var(--lens-shadow); color: var(--ink); }
.c-seg.gl { background: rgba(255,255,255,.34); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.7); }
/* Filter chips: rest is flat paper, chosen is the lens */
.c-chip { background: rgba(251,249,246,.6); }
.c-chip.sel { position: relative; background: var(--lens-fill); color: var(--ink); box-shadow: var(--lens-shadow), 0 0 0 1px rgba(26,26,26,.18); padding-left: 12px; }
.c-chip.sel em { color: var(--muted); }
/* Answers */
.c-opt { background: rgba(251,249,246,.6); }
.c-opt.sel, .c-opt.gl.sel { background: var(--lens-fill); box-shadow: var(--lens-shadow), 0 0 0 1px rgba(26,26,26,.22); transform: translateY(-1px); }
.c-opt.sel .rd { box-shadow: inset 0 0 0 1px rgba(26,26,26,.5), inset 0 0 0 5px #fff, inset 0 0 0 10px var(--ink); }
.c-ypn span { background: rgba(251,249,246,.6); }
.c-ypn span.on { position: relative; background: var(--lens-fill); color: var(--ink); box-shadow: var(--lens-shadow), 0 0 0 1px rgba(26,26,26,.22); }
.c-rate .r span { background: rgba(251,249,246,.6); }
.c-rate .r span.on { background: var(--lens-fill); color: var(--ink); box-shadow: var(--lens-shadow), 0 0 0 1px rgba(26,26,26,.3); font-weight: 400; }
.c-scale .n.on i, .c-scale.gl .n.on i { width: 22px; height: 22px; background: radial-gradient(circle at 50% 50%, var(--ink) 0 3.5px, transparent 4px), var(--lens-fill); box-shadow: var(--lens-shadow), 0 0 0 1px rgba(26,26,26,.25); }
/* Elements that choose: quick replies and time slots */
.e-qr.sel { background: var(--lens-fill); color: var(--ink); box-shadow: var(--lens-shadow), 0 0 0 1px rgba(26,26,26,.18); }
.e-slot.sel { background: var(--lens-fill); box-shadow: var(--lens-shadow), 0 0 0 1px rgba(26,26,26,.3); }
/* Statement scale, lens label only (review 40): the chosen answer's label sits under the lens; the ends stay faint */
.c-scale.lensonly .lb span { visibility: hidden; }
.c-scale.lensonly .lb span.on { visibility: visible; font-size: 14px; }
.c-scale.lensonly .lb span:first-child:not(.on), .c-scale.lensonly .lb span:last-child:not(.on) { visibility: visible; color: var(--muted); }
