/* "What may help" device (TEST build). Built by tinnitus-help.js in #what-may-help, in place of the three text rows.
   Same device language as the tone matcher: deep-brown rim with gold hairline, cream face, dark screen, soft keys. The photo stays. */
#what-may-help.has-wh .tp-help{display:none}
.wh{--rim:#2A1F1A;--ink:#2A1F1A;--soft:#5C5048;--plum:#482C5B;--gold:#E6B85C;--pink:#D28BB0;
  --mono:ui-monospace,"SF Mono","Cascadia Mono",Menlo,Consolas,monospace;display:flex;flex-direction:column;min-width:0}
.wh__device{flex:1;display:flex;border-radius:38px;padding:10px;background:linear-gradient(160deg,#3A2E27,var(--rim) 40%,#1B1411);
  box-shadow:0 0 0 1px rgba(230,184,92,.35),0 26px 50px rgba(42,31,26,.28),inset 0 1px 0 rgba(255,255,255,.10)}
.wh__face{flex:1;display:flex;flex-direction:column;gap:12px;border-radius:30px;padding:clamp(14px,2vw,20px);
  background:linear-gradient(170deg,#FCF8F3 0%,#F4ECE2 100%);box-shadow:inset 0 1px 0 #fff,inset 0 -2px 6px rgba(148,124,100,.18)}

/* moment switch */
.wh__seg{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:3px;border-radius:14px;background:#E8DED2;
  box-shadow:inset 2px 2px 5px rgba(148,124,100,.28),inset -2px -2px 5px rgba(255,255,255,.85)}
.wh__seg button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:6px 4px;border:0;border-radius:11px;cursor:pointer;
  background:transparent;font:600 .7rem/1.1 var(--mono);letter-spacing:.07em;color:var(--soft)}
.wh__seg svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.wh__seg button[aria-pressed="true"]{background:var(--ink);color:#F6EFE6;box-shadow:0 2px 6px rgba(42,31,26,.3)}
.wh__seg button[aria-pressed="true"] svg{stroke:var(--gold)}
.wh__seg button:focus-visible{outline:2px solid var(--gold);outline-offset:1px}

/* screen */
.wh__lcd{position:relative;flex:1;display:flex;flex-direction:column;min-height:300px;border-radius:20px;padding:16px 18px;color:#F6EFE6;
  background:linear-gradient(160deg,#2E241F,#221A16 60%);box-shadow:inset 0 2px 10px rgba(0,0,0,.55),0 1px 0 rgba(255,255,255,.7);overflow:hidden}
.wh__lcd::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,rgba(255,255,255,.07) 0%,rgba(255,255,255,0) 38%)}
.wh__top{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font:600 .66rem/1 var(--mono);letter-spacing:.06em}
.wh__tag{padding:4px 7px;border-radius:6px;background:rgba(246,239,230,.10);color:rgba(246,239,230,.82)}
.wh__tag--play{display:inline-flex;align-items:center;gap:5px}
.wh__tag--play i{width:7px;height:7px;border-radius:50%;background:rgba(246,239,230,.35)}
.wh.is-playing .wh__tag--play{background:#F6EFE6;color:var(--ink)}
.wh.is-playing .wh__tag--play i{background:var(--pink);box-shadow:0 0 0 3px rgba(210,139,176,.25)}
.wh__k{margin-left:auto;color:var(--gold);letter-spacing:.14em}
.wh__screen{flex:1;display:flex;flex-direction:column}
.wh__in{display:flex;flex-direction:column;flex:1;margin-top:14px;animation:whIn .35s ease both}
@keyframes whIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.wh__t{font-family:'Playfair Display',Georgia,serif;font-weight:600;font-size:clamp(1.4rem,2.4vw,1.8rem);line-height:1.15;color:#fff;margin:0 0 8px}
.wh__p{font-size:.96rem;line-height:1.6;color:rgba(246,239,230,.84);margin:0 0 12px}
.wh__meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:auto;padding-top:6px;font:600 .66rem/1.4 var(--mono);letter-spacing:.06em;color:rgba(246,239,230,.6)}
.wh__meta>span:only-child{font:400 .86rem/1.45 'Outfit',sans-serif;letter-spacing:0;color:rgba(246,239,230,.62)}
.wh__bar{display:flex;gap:3px;flex:1;max-width:190px}
.wh__bar i{flex:1;height:9px;border-radius:2px;background:rgba(246,239,230,.12)}
.wh__bar i.on{background:#F6EFE6}
.wh__count{margin-left:auto;color:var(--gold);font-size:.8rem;font-variant-numeric:tabular-nums}

/* bedtime list */
.wh__list{display:grid;gap:6px;list-style:none;margin:0 0 12px;padding:0}
.wh__list li{margin:0;padding:0;list-style:none}
.wh__tick{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:8px 12px;border:1px solid rgba(246,239,230,.16);border-radius:12px;cursor:pointer;
  text-align:left;background:rgba(246,239,230,.05);font:500 .94rem/1.3 'Outfit',sans-serif;color:#F6EFE6}
.wh__tick:hover{background:rgba(246,239,230,.09)}
.wh__tick:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.wh__led{flex:0 0 9px;width:9px;height:9px;border-radius:50%;background:rgba(246,239,230,.2)}
.wh__tick[aria-pressed="true"]{border-color:rgba(230,184,92,.55)}
.wh__tick[aria-pressed="true"] .wh__led{background:var(--gold);box-shadow:0 0 0 3px rgba(230,184,92,.22)}

/* stress: breathing pacer */
.wh__breath{display:flex;align-items:center;gap:18px;margin:2px 0 12px}
.wh__orb{position:relative;flex:0 0 84px;width:84px;height:84px;border-radius:50%;border:1px solid rgba(230,184,92,.35)}
.wh__orb::before{content:"";position:absolute;inset:0;margin:auto;width:84px;height:84px;border-radius:50%;
  background:radial-gradient(circle at 40% 35%,#F2D795,#C9A25B);transform:scale(.42);transition:transform 4s ease-in-out}
.wh.is-in .wh__orb::before{transform:scale(1)}
.wh.is-out .wh__orb::before{transform:scale(.42);transition-duration:6s}
.wh__bw b{display:block;font-family:'Playfair Display',Georgia,serif;font-weight:600;font-size:1.35rem;color:#fff;margin-bottom:4px}
.wh__bw small{font:600 .64rem/1 var(--mono);letter-spacing:.12em;color:rgba(246,239,230,.6)}
.wh__link{margin-top:auto;font-size:.92rem;color:var(--gold);text-underline-offset:3px}
.wh__link:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* soft keys */
.wh__soft{display:grid;grid-template-columns:1fr;gap:6px;padding:6px;border-radius:14px;background:var(--rim)}
.wh__soft--3{grid-template-columns:1.3fr 1fr 1fr}
.wh__sk{min-height:46px;padding:6px 10px;border:0;border-radius:9px;cursor:pointer;font:600 .74rem/1.15 var(--mono);letter-spacing:.07em;text-transform:uppercase;
  color:#F6EFE6;background:#3A302A}
.wh__sk:hover{background:#4A3E36}
.wh__sk.is-go{background:var(--gold);color:var(--ink)}
.wh__sk.is-go:hover{background:#F0C877}
.wh__sk:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.wh__fine{margin:12px 4px 0;font-size:.84rem;line-height:1.5;color:#7A6B5E}

@media(max-width:560px){
  .wh__device{border-radius:32px;padding:8px}.wh__face{border-radius:26px;padding:12px}
  .wh__seg button{flex-direction:column;gap:5px;font-size:.64rem;min-height:56px}
  .wh__lcd{min-height:0;padding:14px}
  .wh__orb,.wh__orb::before{width:70px;height:70px;flex-basis:70px}
}
@media(prefers-reduced-motion:reduce){.wh__in{animation:none}.wh__orb::before{transition-duration:1s!important}}
