/* =========================================================
   Academia OTI · Curso Bienestar Digital · entornos prácticos
   Misma familia visual que el programa Bienestar Digital:
   tinta nocturna, papel cálido, menta como señal y el color de
   cada unidad en --c.
   ========================================================= */
.otibd-root { width: 100%; max-width: 100%; min-width: 0; align-self: stretch; }
.otibd {
  --ink: #16153D; --night: #100F2E; --paper: #FBF8F1; --line: #E7E2D6; --mut: #5C5F6B; --mint: #5EFBD7;
  --ok: #0A8A5A; --ko: #C2384F; --c: #0E9F8E;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); font-size: 16px; line-height: 1.6;
  text-align: left; box-sizing: border-box;
}
.otibd *, .otibd *::before, .otibd *::after { box-sizing: border-box; }
.otibd h3, .otibd h4, .otibd h5 { font-family: "Space Grotesk", "Inter", sans-serif; color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
.otibd h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.otibd h4 { font-size: 20px; font-weight: 700; }
.otibd h5 { font-size: 15px; font-weight: 700; margin: 16px 0 6px; }
.otibd p { margin: 0 0 10px; }
.otibd a { color: inherit; }
.otibd [hidden] { display: none !important; }
.otibd-eyebrow { display: inline-block; font: 700 12px/1.3 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin-bottom: 8px; }
.otibd-note { font-size: 13px; color: var(--mut); }
.otibd-error { color: var(--ko); font-weight: 600; }

/* Botones */
.otibd-btn, .otibd .otibd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 12px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff !important; font: 600 15px/1.2 "Inter", sans-serif; text-decoration: none !important; cursor: pointer; white-space: normal; text-transform: none; letter-spacing: normal; text-align: center; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.otibd-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(22,21,61,.18); }
.otibd-btn:focus-visible, .otibd button:focus-visible, .otibd a:focus-visible, .otibd input:focus-visible, .otibd select:focus-visible, .otibd textarea:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.otibd-btn.ghost { background: transparent; color: var(--ink) !important; }
.otibd-btn.sm { min-height: 38px; padding: 7px 14px; font-size: 14px; border-radius: 10px; }
.otibd-btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.otibd-btn.invisible { visibility: hidden; }
.otibd-btn.otibd-li { background: #0A66C2; border-color: #0A66C2; }
.otibd-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.otibd-row.spread { justify-content: space-between; }
.otibd-row.end { justify-content: flex-end; }

/* Contenedor de un entorno */
.otibd-lab, .otibd-unit, .otibd-hub, .otibd-practice, .otibd-eval { min-width: 0; max-width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 36px); position: relative; overflow: hidden; }
.otibd-lab::before, .otibd-unit::before, .otibd-eval::before, .otibd-hub::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--c), var(--mint)); }
.otibd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.otibd-head > div { flex: 1 1 380px; }
.otibd-head p { color: var(--mut); max-width: 62ch; margin-top: 8px; }
.otibd-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 600 13px/1.2 "Inter", sans-serif; color: var(--mut); white-space: nowrap; }
.otibd-pill.ok { background: #E3F7EF; border-color: #B7E8D3; color: var(--ok); }
.otibd-blocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.otibd-block { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 2.4vw, 26px); margin-top: 18px; position: relative; min-width: 0; max-width: 100%; }
.otibd-blocks > .otibd-block { margin-top: 0; }
.otibd-block.is-done { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.otibd-block.is-done .otibd-step::after { content: " · ✓ hecha"; color: var(--ok); }
.otibd-bhead { margin-bottom: 14px; }
.otibd-bhead p { color: var(--mut); margin: 6px 0 0; }
.otibd-step { display: block; font: 700 11px/1.3 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--c); margin-bottom: 6px; }
.otibd-live { margin-top: 12px; font-size: 14px; color: var(--mut); }
.otibd-result { background: color-mix(in srgb, var(--c) 9%, #fff); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); border-radius: 14px; padding: 14px 16px; color: var(--ink); }
.otibd-result b { font-family: "Space Grotesk", sans-serif; font-size: 18px; display: block; margin-bottom: 4px; }
.otibd-result p { margin: 4px 0 0; }

/* Sí / No y escalas */
.otibd-yn, .otibd-rates { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.otibd-yn li, .otibd-rates li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; background: #FAF8F3; }
.otibd-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; }
.otibd-seg button { min-width: 52px; min-height: 40px; border: 0; background: #fff; font: 600 14px "Inter", sans-serif; color: var(--ink); cursor: pointer; }
.otibd-seg.five button { min-width: 42px; font-size: 20px; }
.otibd-seg button + button { border-left: 1px solid var(--line); }
.otibd-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Clasificar */
.otibd-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.otibd-item { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #FAF8F3; }
.otibd-item.ok { border-color: #B7E8D3; background: #F1FBF6; }
.otibd-item.ko { border-color: #F2C3CC; background: #FDF3F5; }
.otibd-itext { font-weight: 500; margin: 0 0 10px; }
.otibd-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.otibd-choices button, .otibd-item select { white-space: normal; text-transform: none; letter-spacing: normal; min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: 600 14px "Inter", sans-serif; color: var(--ink); cursor: pointer; }
.otibd-choices button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.otibd-choices button:disabled { cursor: default; }
.otibd-why { font-size: 14px; margin: 10px 0 0; color: var(--mut); }
.otibd-why.ok b, .otibd-item.ok .otibd-why b { color: var(--ok); }
.otibd-why.ko b, .otibd-item.ko .otibd-why b { color: var(--ko); }
.otibd-why:empty { display: none; }

/* Escenarios */
.otibd-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.otibd-msg { justify-self: start; max-width: 88%; background: #F3F1EA; border-radius: 16px 16px 16px 4px; padding: 12px 16px; }
.otibd-msg small { display: block; font: 700 12px "JetBrains Mono", monospace; color: var(--c); margin-bottom: 2px; }
.otibd-msg p { margin: 0; }
.otibd-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.otibd .opt { white-space: normal; overflow-wrap: anywhere; text-transform: none; letter-spacing: normal; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 48px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: 500 15px/1.45 "Inter", sans-serif; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.otibd .opt:hover:not(:disabled) { border-color: var(--c); }
.otibd .opt.ok { border-color: var(--ok); background: #F1FBF6; }
.otibd .opt.ko { border-color: var(--ko); background: #FDF3F5; }
.otibd .opt.sel { border-color: var(--ink); background: #F1F0FA; box-shadow: inset 0 0 0 1px var(--ink); }
.otibd-reply { justify-self: end; max-width: 88%; background: var(--ink); color: #fff; border-radius: 16px 16px 4px 16px; padding: 10px 16px; }
.otibd-reply p { margin: 0; }
.otibd-reply.ko { background: #5B2333; }
.is-chat .otibd-stage { background: #EFEDE6; border-radius: 16px; padding: 14px; }
.is-chat .otibd-msg { background: #fff; }

/* Listas y progreso */
.otibd-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.otibd-checks li, .otibd-chk span { display: flex; gap: 10px; align-items: flex-start; }
.otibd-checks label, .otibd-chk label, .otibd-consent label { line-height: 1.5; font-size: 15px; font-weight: 400; margin: 0; cursor: pointer; }
.otibd-checks input, .otibd-chk input, .otibd-consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--c); flex: none; }
.otibd-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.otibd-bar { flex: 1; height: 8px; border-radius: 999px; background: #ECE8DE; overflow: hidden; }
.otibd-bar.big { height: 14px; margin: 12px 0; }
.otibd-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c), var(--mint)); border-radius: inherit; transition: width .4s ease; }
.otibd-count { font: 600 13px "JetBrains Mono", monospace; color: var(--mut); }

/* Tablas y formularios */
.otibd-scroll { overflow-x: auto; }
.otibd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.otibd-table th, .otibd-table td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.otibd-table thead th { font: 700 12px "JetBrains Mono", monospace; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
.otibd input[type=text], .otibd input[type=email], .otibd input[type=number], .otibd input[type=time], .otibd input[type=date], .otibd select, .otibd textarea {
  width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #D6D1C4; border-radius: 10px; background: #fff; font: 15px/1.4 "Inter", sans-serif; color: var(--ink); }
.otibd-table input, .otibd-table select { min-width: 92px; }
.otibd-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 14px; }
.otibd-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; flex: 1 1 180px; }
.otibd-fields { display: grid; gap: 8px; }
.otibd-fields > label, .otibd-fieldrow label { font-weight: 600; font-size: 14px; margin-top: 6px; }
.otibd-chk { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 6px 0 0; }
.otibd-chk legend { font-weight: 600; font-size: 14px; padding: 0 4px; }
.otibd-range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 64px; gap: 12px; align-items: center; margin: 8px 0; }
.otibd-range label { font-weight: 600; font-size: 14px; }
.otibd-range input { accent-color: var(--c); width: 100%; min-width: 0; }
.otibd-range output { font: 700 14px "JetBrains Mono", monospace; text-align: right; }
.otibd-calcout { margin-top: 14px; display: grid; gap: 10px; }
.otibd-big { display: inline-flex; flex-direction: column; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--c) 9%, #fff); margin-right: 10px; }
.otibd-big small { font-size: 13px; color: var(--mut); }
.otibd-big b { font: 700 28px/1.1 "Space Grotesk", sans-serif; color: var(--ink); }
.otibd-spread { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.otibd-spread li { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; animation: otibd-in .5s ease both; animation-delay: calc(var(--d, 0) * 120ms); }
.otibd-spread span { font: 700 14px "JetBrains Mono", monospace; text-align: right; }
.otibd-spread i { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--c), var(--mint)); }
.otibd-day { display: flex; height: 34px; border-radius: 10px; overflow: hidden; gap: 2px; }
.otibd-day i { display: block; min-width: 0; }
.otibd-day .p-sueno { background: #3F3D8F; } .otibd-day .p-colegio { background: #8C8AA8; } .otibd-day .p-tareas { background: #A89BFF; } .otibd-day .p-mov { background: #0E9F8E; }
.otibd-day .p-pant { background: #FF6F91; } .otibd-day .p-fam { background: #FFC24B; } .otibd-day .p-otros { background: #D6D1C4; }
.otibd-total b.ok { color: var(--ok); } .otibd-total b.ko { color: var(--ko); }
.otibd-tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.otibd-tips li.ok { color: var(--ok); } .otibd-tips li.ko { color: var(--ko); }

/* Temporizador */
.otibd-face { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 18px; border-radius: 18px; background: var(--night); color: #fff; }
.otibd-face p { margin: 0; font-size: 18px; max-width: 46ch; }
.otibd-face b { font: 700 44px/1 "Space Grotesk", sans-serif; color: var(--mint); }
.otibd-timer .otibd-bar { margin-top: 12px; }
.is-classroom .otibd-face b { font-size: clamp(64px, 14vw, 180px); letter-spacing: -0.03em; }
.is-classroom .otibd-face small { font: 600 16px "JetBrains Mono", monospace; color: rgba(255,255,255,.75); }
.is-classroom.is-over .otibd-face { background: #5B2333; }
.is-classroom:fullscreen { display: grid; place-content: center; background: var(--night); padding: 4vw; }
.is-classroom:fullscreen .otibd-face b { font-size: 26vw; }

/* Ordenar y línea de tiempo */
.otibd-olist { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.otibd-olist li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #FAF8F3; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.otibd-olist li.ok { border-color: #B7E8D3; background: #F1FBF6; } .otibd-olist li.ko { border-color: #F2C3CC; background: #FDF3F5; }
.otibd-arrows { display: inline-flex; gap: 6px; flex: none; }
.otibd-arrows button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 16px; cursor: pointer; }
.otibd-arrows button:disabled { opacity: .35; cursor: default; }
.otibd-tl { position: relative; height: 120px; margin: 10px 8px 4px; }
.otibd-tl-line { position: absolute; left: 0; right: 0; top: 50px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--c), var(--mint)); }
.otibd-tl-pt { position: absolute; transform: translateX(-50%); font-size: 12px; white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }
.otibd-tl-pt b { color: var(--c); }
.otibd-tl-ref { position: absolute; top: 34px; transform: translateX(-50%); font: 600 11px "JetBrains Mono", monospace; color: var(--ko); padding-top: 32px; white-space: nowrap; border-left: 2px dashed var(--ko); }
.otibd-sig { padding: 14px; border: 1px dashed #D6D1C4; border-radius: 12px; background: #fff; }
.otibd-gestlist { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--c) 8%, #fff); margin-bottom: 12px; font-size: 14px; }
.otibd-gestlist ul { margin: 6px 0 0; padding-left: 18px; }

/* Autoevaluación */
.otibd-qhead { display: flex; align-items: center; gap: 12px; font: 600 13px "JetBrains Mono", monospace; color: var(--mut); margin-bottom: 12px; }
.otibd-q { font: 600 clamp(17px, 2vw, 20px)/1.45 "Space Grotesk", "Inter", sans-serif; margin: 0 0 14px; }
.otibd-qopts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.otibd-score { display: inline-flex; align-items: baseline; gap: 12px; padding: 12px 18px; border-radius: 14px; margin-bottom: 10px; }
.otibd-score b { font: 700 34px "Space Grotesk", sans-serif; }
.otibd-score.ok { background: #E3F7EF; color: var(--ok); } .otibd-score.ko { background: #FDF3F5; color: var(--ko); }

/* Gesto y navegación */
.otibd-gesture { background: var(--night); border-color: var(--night); color: #fff; display: grid; gap: 8px; }
.otibd-gesture .otibd-eyebrow { color: var(--mint); }
.otibd-gtext { font: 600 clamp(18px, 2.2vw, 22px)/1.35 "Space Grotesk", sans-serif; color: #fff; margin: 0 0 6px; }
.otibd-gesture .otibd-btn { justify-self: start; background: var(--mint); border-color: var(--mint); color: var(--night) !important; }
.otibd-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.otibd-nav a { flex: 1 1 160px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 600; font-size: 14px; text-align: center; }
.otibd-nav a:hover { border-color: var(--c); }
.otibd-nav a.mid { color: var(--c); }
.otibd-nudge { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px dashed #CFC9BA; font-size: 14px; }
.otibd-nudge p { margin: 0; flex: 1 1 320px; }

/* Unidad y portada */
.otibd-chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.otibd-chips a { display: flex; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; background: #FAF8F3; }
.otibd-chips b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font: 700 14px "JetBrains Mono", monospace; flex: none; }
.otibd-chips li.ok b { background: var(--c); border-color: var(--c); color: #fff; }
.otibd-chips li.ok a::after { content: "✓"; margin-left: auto; color: var(--ok); font-weight: 700; }
.otibd-seal { display: flex; gap: 16px; align-items: center; margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: var(--night); color: #fff; animation: otibd-in .6s ease both; }
.otibd-seal b { font: 700 20px "Space Grotesk", sans-serif; }
.otibd-seal p { margin: 4px 0 0; color: rgba(255,255,255,.8); }
.otibd-sealicon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--c); font-size: 34px; color: #fff; flex: none; }
.otibd-hubtop { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 40px); align-items: center; margin-bottom: 22px; }
.otibd-ring { --p: 0; width: 168px; height: 168px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--paper) 78%, transparent 79% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), #E6E1D5 0); }
.otibd-ring b { font: 700 40px/1 "Space Grotesk", sans-serif; }
.otibd-ring small { font-size: 12px; color: var(--mut); max-width: 110px; }
.otibd-ring.big { width: 180px; height: 180px; flex: none; }
.otibd-ring.ok { --c: #0A8A5A; } .otibd-ring.ko { --c: #C2384F; }
.otibd-next p { color: var(--mut); margin: 8px 0 0; }
.otibd-evalbox { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.otibd-evalbox p { margin: 0 0 8px; }
.otibd-units { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.otibd-unitcard { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: 16px; padding: 16px; }
.otibd-unitcard header { display: flex; justify-content: space-between; font: 700 12px "JetBrains Mono", monospace; color: var(--c); text-transform: uppercase; letter-spacing: .08em; }
.otibd-utitle { display: block; font: 700 17px/1.25 "Space Grotesk", sans-serif; margin: 6px 0 12px; text-decoration: none; }
.otibd-dots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.otibd-dots a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font: 700 13px "JetBrains Mono", monospace; background: #FAF8F3; }
.otibd-dots li.ok a { background: var(--c); border-color: var(--c); color: #fff; }

/* Evaluación */
.otibd-chips2 { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.otibd-chips2 li { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 600 13px "Inter", sans-serif; }
.otibd-rules { margin: 0 0 16px; padding-left: 20px; color: var(--mut); }
.otibd-reg { display: grid; gap: 10px; max-width: 620px; }
.otibd-fieldrow { display: grid; gap: 6px; }
.otibd-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--mut); }
.otibd-loginbox { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.otibd-loginbox p { font-size: 14px; }
.otibd-who { padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.otibd-resume { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: #FFF6DE; border: 1px solid #F3DFA6; margin-bottom: 16px; }
.otibd-resume p { margin: 0; }
.otibd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.otibd-qtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.otibd-qtop small { display: block; color: var(--mut); font-size: 13px; }
.otibd-timer-chip { font: 700 18px "JetBrains Mono", monospace; padding: 8px 14px; border-radius: 12px; background: var(--night); color: var(--mint); }
.otibd-timer-chip.warn { background: #5B2333; color: #fff; }
.otibd-qcard { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 3vw, 30px); margin-top: 14px; }
.otibd-qmeta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font: 600 13px "JetBrains Mono", monospace; color: var(--mut); margin-bottom: 12px; }
.otibd-unitchip { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--ink); }
.otibd-letter { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #F3F1EA; font: 700 13px "JetBrains Mono", monospace; flex: none; }
.otibd .opt.sel .otibd-letter { background: var(--ink); color: #fff; }
.otibd-btn.on { background: #FFF6DE; }
.otibd-gridbox { margin-top: 14px; }
.otibd-gridbox summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.otibd-grid { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.otibd-grid button { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: 600 13px "JetBrains Mono", monospace; cursor: pointer; position: relative; }
.otibd-grid button.a { background: #E3F7EF; border-color: #B7E8D3; }
.otibd-grid button.f::after { content: "★"; position: absolute; top: -6px; right: -4px; font-size: 12px; color: #C28A00; }
.otibd-grid button.cur { outline: 2px solid var(--ink); }
.otibd-loading { display: grid; justify-items: center; gap: 12px; padding: 40px 0; color: var(--mut); }
.otibd-spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid #E6E1D5; border-top-color: var(--c); animation: otibd-spin .8s linear infinite; }
.otibd-result-head { display: flex; gap: clamp(16px, 3vw, 36px); align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.otibd-result-head > div { flex: 1 1 320px; }
.otibd-result-head.ok .otibd-eyebrow { color: var(--ok); } .otibd-result-head.ko .otibd-eyebrow { color: var(--ko); }
.otibd-ubars { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.otibd-ubars li { display: grid; grid-template-columns: minmax(180px, 1.2fr) 2fr 54px; gap: 12px; align-items: center; font-size: 14px; }
.otibd-ubars b { font-family: "JetBrains Mono", monospace; text-align: right; }
.otibd-rewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.otibd-rewards article { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; position: relative; }
.otibd-rewards p { font-size: 14px; color: var(--mut); }
.otibd-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--c); color: #fff; font: 700 14px "JetBrains Mono", monospace; margin-bottom: 10px; }
.otibd-code { font: 700 24px "JetBrains Mono", monospace !important; color: var(--ink) !important; letter-spacing: .04em; }
.otibd-sigprev { padding: 10px 12px; border: 1px dashed #D6D1C4; border-radius: 10px; background: #FAF8F3; min-height: 50px; }
.otibd-note.wide { grid-column: 1 / -1; }
.otibd-links { margin: 8px 0 0; padding-left: 18px; }
.otibd-review { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.otibd-review summary { cursor: pointer; font-weight: 700; }
.otibd-review ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 12px; }
.otibd-review li { padding: 10px 12px; border-radius: 12px; }
.otibd-review li.ko { background: #FDF3F5; } .otibd-review li.ok { background: #F1FBF6; }
.otibd-review .otibd-q { font-size: 16px; margin-bottom: 6px; }
.otibd-review p { margin: 2px 0; font-size: 14px; }

@keyframes otibd-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes otibd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .otibd *, .otibd *::before { animation: none !important; transition: none !important; } }
@media (max-width: 640px) {
  .otibd-hubtop { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .otibd-range { grid-template-columns: minmax(0, 1fr) 56px; } .otibd-range label { grid-column: 1 / -1; }
  .otibd-lab, .otibd-unit, .otibd-hub, .otibd-practice, .otibd-eval { padding: 16px; border-radius: 18px; }
  .otibd-block { padding: 16px; }
  .otibd-choices button { flex: 1 1 auto; }
  .otibd-qtop { flex-wrap: wrap; }
  .otibd-yn li, .otibd-rates li { flex-direction: column; align-items: stretch; }
  .otibd-ubars li { grid-template-columns: 1fr 48px; } .otibd-ubars li span { grid-column: 1 / -1; }
  .otibd-msg, .otibd-reply { max-width: 100%; }
}
