/* =====================================================================
   IntrasDine - restoranid, kohvikud ja catering. Laeb pärast v3.css-i ja sub.css-i.
   Linane kreem, veinipunane põhitoon, messing ja roheline „korras“. Paber on lehe materjal:
   köögitšekk siinil (avavaade ja köögivaade), menüükaart (mis on olemas ja mis eritellimusel) ja kassalint (päevaaruanne).
   Külmik on ainus jahe pind lehel. Laua olekud on igal pool samad värvid ([data-st]).
   ===================================================================== */
html.theme-dine {
  --teal-rgb: 122, 27, 56;
  --hi-rgb: 243, 169, 187;
  --bg-rgb: 248, 242, 233;
  --acc-rgb: 201, 138, 27;
  --bg: #f8f2e9;
  --white: #fffdf8;
  --ink: #24141a;
  --ink-2: #57454b;
  --ink-3: #6d5a60;                /* väike tekst vähemalt 4,5:1 valgel, --bg ja --mint taustal */
  --ink-4: #b9aaa6;
  --line: #e8dccb;
  --line-2: #f0e7da;
  --teal: #7a1b38;
  --teal-d: #5f1229;
  --teal-hi: #f3a9bb;
  --mint: #f6e6e4;
  --mint-2: #ecd0cf;
  --navy: #21121a;
  --navy-d: #170b12;
  --acc: #c98a1b;
  --acc-d: #8a5a07;                /* tekstina --acc-t taustal vähemalt 4,5:1 */
  --acc-t: #fbf0d9;
  --brand: #7a1b38;
  --av2: #b0762a;
  --ok: #235a3b;                   /* roheline tekst valgel ja --ok-t taustal vähemalt 4,5:1 */
  --ok-t: #e3f1e7;
  --cold: #1c6a86;                 /* külmiku näit */
  --paper: #fffdf6;
  --r: 10px;
  --r-lg: 16px;
  --sh-2: 0 1px 2px rgba(36, 20, 26, .05), 0 12px 28px -14px rgba(36, 20, 26, .22);
  --sh-3: 0 1px 2px rgba(36, 20, 26, .05), 0 26px 50px -24px rgba(36, 20, 26, .34), 0 60px 110px -60px rgba(36, 20, 26, .32);
}
html.theme-dine .h1, html.theme-dine .h2, html.theme-dine .final__title { font-weight: 840; letter-spacing: -.04em; }
html.theme-dine .btn { border-radius: 9px; }
html.theme-dine .btn--lg { border-radius: 11px; }
html.theme-dine .ph::after { background: linear-gradient(180deg, rgba(36, 20, 26, .22), rgba(36, 20, 26, 0) 34%, rgba(36, 20, 26, 0) 62%, rgba(36, 20, 26, .2)); }

/* laua olekud: pind, piir ja tekst (saaliplaan, legend, avavaate väike plaan, arve silt) */
[data-st="free"] { --sc: var(--white); --sb: var(--ink-4); --st: var(--ink-3); }
[data-st="book"] { --sc: var(--acc-t); --sb: var(--acc); --st: var(--acc-d); }
[data-st="open"] { --sc: var(--mint); --sb: var(--teal); --st: var(--teal); }
[data-st="kit"] { --sc: var(--teal); --sb: var(--teal); --st: #fff; }
[data-st="serv"] { --sc: var(--ok-t); --sb: #3b8a5e; --st: var(--ok); }
[data-st="pay"] { --sc: var(--ink); --sb: var(--ink); --st: #fff; }

/* ---------------- avavaade: foto, tšekid siinil, saali kaart ---------------- */
html.theme-dine .sxh { background: radial-gradient(58% 55% at 88% 6%, rgba(var(--acc-rgb), .17), transparent 70%), radial-gradient(42% 44% at 0 100%, rgba(var(--teal-rgb), .08), transparent 70%); }
html.theme-dine .sxh__title { font-size: clamp(46px, 5.4vw, 80px); line-height: .98; }
.dnstage { aspect-ratio: 1000 / 825; margin: 9% 4% 12% 9%; }
.dnstage__photo { position: absolute; inset: 0; border-radius: var(--r-lg); box-shadow: var(--sh-3); }
.dnstage__photo img { object-position: 60% 38%; }
.rail { position: absolute; z-index: 3; left: -6%; right: -3%; top: -4.5%; height: 10px; border-radius: 6px; background: linear-gradient(180deg, #fbfaf7, #c5c1ba 52%, #8f8b85); box-shadow: 0 6px 12px -4px rgba(36, 20, 26, .45), inset 0 1px 0 #fff; }
.bong { position: absolute; top: 5px; width: 27%; font-size: clamp(9px, .86vw, 11.5px); filter: drop-shadow(0 14px 14px rgba(36, 20, 26, .28)); }
.bong--a { left: 3%; --r: -2.2deg; }
.bong--b { left: 33.5%; --r: 1.6deg; }
.bong__in { position: relative; padding: 1.5em 1.2em 2em; background: linear-gradient(180deg, #efe9da, var(--paper) 14%); color: #2a1d20; font-family: var(--mono); transform: rotate(var(--r)); transform-origin: 50% 0; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / .9em 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / .9em 100%; }
.bong__h { display: flex; justify-content: space-between; align-items: baseline; gap: .6em; padding-bottom: .6em; border-bottom: 1px dashed rgba(42, 29, 32, .35); }
.bong__h b { font-size: 1.14em; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.bong__h span { font-size: .9em; opacity: .7; }
.bong ul { margin-top: .6em; }
.bong li { display: flex; gap: .7em; font-size: 1em; line-height: 1.6; }
.bong li b { font-weight: 500; }
.bong__f { margin-top: .7em; padding-top: .55em; border-top: 1px dashed rgba(42, 29, 32, .35); font-size: .84em; letter-spacing: .03em; opacity: .7; }
.bong__stamp { position: absolute; right: .8em; bottom: 2.9em; padding: .12em .55em; border: .16em solid var(--teal); border-radius: .35em; color: var(--teal); font: 800 1em/1.3 var(--font); font-style: normal; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-11deg); opacity: .88; }
.js .sxh__stage.is-in .rail { animation: railIn .8s var(--ease) .45s both; }
.js .sxh__stage.is-in .dncard { animation: cardIn 1s var(--ease) .75s both; }
.js .sxh__stage .bong { opacity: 0; }
.js .sxh__stage.is-in .bong { animation: bongDrop .8s var(--ease) both; animation-delay: calc(.8s + var(--i, 0) * .16s); }
.bong--b { --i: 1; }
.js .sxh__stage.is-in .bong__in { animation: bongSway 5.5s ease-in-out 1.8s infinite alternate; }
.js .sxh__stage.is-in .bong--b .bong__in { animation-duration: 6.4s; }
@keyframes railIn { from { opacity: 0; transform: scaleX(.6); } to { opacity: 1; transform: none; } }
@keyframes bongDrop { from { opacity: 0; transform: translateY(-34px); } to { opacity: 1; transform: none; } }
@keyframes bongSway { from { transform: rotate(calc(var(--r) - 1.1deg)); } to { transform: rotate(calc(var(--r) + 1.1deg)); } }
.dncard { position: absolute; z-index: 3; left: -11%; bottom: -12%; width: min(290px, 56%); padding: 14px 16px 13px; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px rgba(36, 20, 26, .06), var(--sh-3); }
.dncard__h { display: flex; justify-content: space-between; align-items: baseline; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.dncard__h em { font-style: normal; color: var(--teal); }
.dncard__plan { position: relative; height: 84px; margin-top: 10px; border-radius: 9px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.mt { position: absolute; width: 22%; height: 30%; border: 1.5px solid var(--sb); border-radius: 5px; background: var(--sc); }
.mt--r { width: 16%; border-radius: 99px; }
.mt--l { width: 32%; }
.mt[data-st="kit"] { animation: kitPulse 1.8s ease-in-out infinite; }
@keyframes kitPulse { 50% { box-shadow: 0 0 0 5px rgba(var(--teal-rgb), .16); } }
.dncard__f { margin-top: 10px; font-size: 12.5px; font-weight: 650; color: var(--ink-3); }
.dncard__f b { font-weight: 850; color: var(--ink); }
.dnchip { right: -6%; top: 64%; }
.dnchip .chip__ico { background: #e2f0f4; color: var(--cold); }

/* ---------------- menüükaart: olemas ja eritellimusel ---------------- */
.carte { position: relative; max-width: 1060px; margin: 0 auto; padding: clamp(34px, 4.4vw, 60px) clamp(22px, 4.4vw, 64px) clamp(30px, 4vw, 52px); border-radius: 4px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--sh-3); }
.carte::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(var(--teal-rgb), .32); border-radius: 2px; pointer-events: none; }
.carte::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(var(--teal-rgb), .14); pointer-events: none; }
.carte__top { display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 800; letter-spacing: .34em; text-transform: uppercase; }
.carte__top::before, .carte__top::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--teal-rgb), .4)); }
.carte__top::after { transform: scaleX(-1); }
.carte__top em { font-style: normal; color: var(--teal); }
.carte__cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); margin-top: clamp(22px, 3vw, 38px); }
.carte__col { padding-right: clamp(20px, 3.4vw, 48px); }
.carte__col--cu { padding: 0 0 0 clamp(20px, 3.4vw, 48px); border-left: 1px solid var(--line); }
.carte__h b { display: block; font-size: clamp(24px, 2.3vw, 30px); font-weight: 860; letter-spacing: -.03em; line-height: 1.1; }
.carte__h span { display: block; margin-top: 6px; font: 500 11.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.carte__col--cu .carte__h b { color: var(--acc-d); }
.carte ul { margin-top: 16px; }
.carte li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.carte li span { font-size: 16.5px; font-weight: 750; line-height: 1.35; }
.carte li i { flex: 1; min-width: 18px; border-bottom: 1.5px dotted var(--ink-4); transform: translateY(-4px); }
.carte li em { font: 500 11.5px/1.3 var(--mono); font-style: normal; letter-spacing: .02em; color: var(--teal); white-space: nowrap; }
.carte__col--cu li::before { content: '+'; width: 20px; height: 20px; flex: none; display: grid; place-items: center; align-self: flex-start; margin-top: 2px; border-radius: 50%; background: var(--acc-t); color: var(--acc-d); font: 800 14px/1 var(--font); }
.carte__note { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.carte__note a { font-weight: 800; color: var(--teal); }

/* ---------------- 01 saal: plaan, köögivaade ja arve ---------------- */
.floor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 344px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-3); }
.floor__main { min-width: 0; padding: 18px; }
.floor__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.floor__bar b { display: block; font-size: 17px; font-weight: 900; letter-spacing: -.02em; }
.floor__bar small { display: block; font-size: 13px; font-weight: 650; color: var(--ink-3); }
.floor__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.floor__legend li { display: inline-flex; align-items: center; gap: 6px; }
.floor__legend li::before { content: ''; width: 11px; height: 11px; border: 1.5px solid var(--sb); border-radius: 3px; background: var(--sc); }
.floor__plan { position: relative; isolation: isolate; aspect-ratio: 16 / 9.3; margin-top: 14px; border-radius: 12px; background: repeating-linear-gradient(90deg, rgba(36, 20, 26, .035) 0 1px, transparent 1px 46px), var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.floor__zone { position: absolute; display: grid; place-items: center; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.floor__zone--bar { left: 57%; top: 8%; width: 34%; height: 15%; border-radius: 9px; background: var(--ink); color: #f3e6d3; box-shadow: inset 0 -5px 0 rgba(var(--acc-rgb), .75); }
.floor__zone--pass { left: 57%; top: 74%; width: 34%; height: 17%; border: 1.5px dashed var(--ink-4); border-radius: 9px; color: var(--ink-3); background: repeating-linear-gradient(-45deg, rgba(36, 20, 26, .03) 0 6px, transparent 6px 12px); }
.floor__zone--door { left: 0; top: 33%; width: 4%; height: 5%; color: var(--ink-4); font-size: 9.5px; writing-mode: vertical-rl; transform: rotate(180deg); }
.tb { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; border: 1.5px solid var(--sb); border-radius: 11px; background: var(--sc); color: var(--st); cursor: pointer; transition: background-color .35s, border-color .35s, color .35s, box-shadow .25s; }
.tb--r { height: auto !important; aspect-ratio: 1; border-radius: 50%; }
.tb b { font-size: clamp(15px, 1.5vw, 20px); font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.tb small { font-size: clamp(9px, .8vw, 11px); font-weight: 750; line-height: 1.2; }
.tb:hover { box-shadow: 0 8px 16px -8px rgba(36, 20, 26, .4); }
.tb[aria-pressed="true"] { z-index: 2; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--teal), 0 14px 22px -10px rgba(36, 20, 26, .45); }
.tb[data-st="kit"] { animation: kitPulse 1.8s ease-in-out infinite; }
.tb[data-st="kit"][aria-pressed="true"] { animation: none; }
.ch { position: absolute; z-index: -1; width: 17%; height: 15%; border-radius: 5px; background: var(--line); box-shadow: inset 0 0 0 1px rgba(36, 20, 26, .06); transform: translate(-50%, -50%); }
.tb--r .ch { width: 26%; height: 34%; border-radius: 7px; }
.krail { margin-top: 14px; padding: 12px 14px 14px; border-radius: 12px; background: var(--navy); color: #fff; box-shadow: inset 0 3px 0 #b9b5ae; }
.krail__h { display: flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--teal-hi); }
.krail__h svg { width: 16px; height: 16px; flex: none; }
.krail ul { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.krail ul:empty { display: none; }
.kt { width: min(100%, 236px); padding: 11px 12px 12px; border-radius: 3px; background: var(--paper); color: #2a1d20; font-family: var(--mono); animation: bongDrop .5s var(--ease) backwards; }
.kt p { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 6px; border-bottom: 1px dashed rgba(42, 29, 32, .35); }
.kt b { font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.kt p span { font-size: 11.5px; opacity: .7; }
.kt small { display: block; margin-top: 7px; font-size: 11.5px; line-height: 1.55; }
.kt__ok { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; margin-top: 10px; border: 0; border-radius: 7px; background: var(--teal); color: #fff; font: 800 13.5px/1 var(--font); cursor: pointer; transition: background-color .2s; }
.kt__ok:hover { background: var(--teal-d); }
.kt__ok svg { width: 15px; height: 15px; }
.krail__empty { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .62); }
.floor__side { display: flex; flex-direction: column; min-width: 0; padding: 22px 22px 20px; border-left: 1px solid var(--line); background: var(--paper); }
.chk__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chk__h b { font-size: 24px; font-weight: 900; letter-spacing: -.03em; }
.chk__st { padding: 4px 10px; border: 1px solid var(--sb); border-radius: 99px; background: var(--sc); color: var(--st); font-size: 12px; font-weight: 800; white-space: nowrap; }
.chk__sub { margin-top: 2px; font-size: 13.5px; font-weight: 650; color: var(--ink-3); }
.chk__rows { margin-top: 14px; }
.chk__rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 10px; padding: 9px 0; border-top: 1px dashed var(--line); animation: chipIn .4s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 50ms); }
.chk__rows small { grid-column: 1 / -1; font: 500 10.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.chk__rows span { font-size: 15px; font-weight: 750; line-height: 1.35; }
.chk__rows em { font: 500 13px/1 var(--mono); font-style: normal; font-variant-numeric: tabular-nums; }
.chk__rows li.is-paid span { color: var(--ink-3); }
.chk__rows li.is-paid em { padding: 4px 8px; border-radius: 99px; background: var(--ok-t); color: var(--ok); font: 800 11.5px/1 var(--font); }
.chk__payb { height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font: 800 12.5px/1 var(--font); cursor: pointer; transition: border-color .2s, color .2s; }
.chk__payb:hover { border-color: var(--teal); color: var(--teal); }
.chk__sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 2px; padding-top: 12px; border-top: 1.5px solid var(--ink); font-size: 14px; font-weight: 750; }
.chk__sum b { font-size: 21px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chk__info { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--bg); font-size: 14px; font-weight: 650; line-height: 1.5; color: var(--ink-2); }
.chk__info b { color: var(--ink); }
.chk__go { width: 100%; margin-top: 16px; }
.chk__hint { margin-top: auto; padding-top: 16px; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 34px; }
.roles li { padding: 2px 24px 2px 0; }
.roles li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.roles__ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--mint); color: var(--teal); }
.roles__ic svg { width: 20px; height: 20px; }
.roles b { display: block; margin-top: 14px; font-size: 17px; font-weight: 870; letter-spacing: -.02em; }
.roles p { margin-top: 5px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* ---------------- 02 köök ja ladu ---------------- */
.pantry { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-2); }
.pantry__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.pantry__head b { font-size: 16px; font-weight: 900; letter-spacing: -.02em; }
.pantry__stock li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line-2); }
.pantry__stock li:first-child { border-top: 0; }
.pantry__stock b { display: block; font-size: 15px; font-weight: 850; }
.pantry__stock small { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink-3); }
.pantry__stock em { padding: 4px 10px; border-radius: 99px; background: var(--ok-t); color: var(--ok); font-style: normal; font-size: 12.5px; font-weight: 850; white-space: nowrap; }
.pantry__stock [data-st="low"] em { background: var(--acc-t); color: var(--acc-d); }
.pantry__stock [data-st="out"] em { background: var(--mint); color: var(--teal); }
.pantry__sub { padding: 14px 20px 8px; border-top: 1px solid var(--line); font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pantry__menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 20px 18px; }
.pantry__menu li { padding: 12px 12px 11px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); }
.pantry__menu b { display: block; font-size: 14.5px; font-weight: 850; line-height: 1.25; }
.pantry__menu small { display: block; margin-top: 3px; font-size: 12px; font-weight: 750; color: var(--ok); }
.pantry__menu [data-st="low"] { border-color: #e2b862; background: var(--acc-t); }
.pantry__menu [data-st="low"] small { color: var(--acc-d); }
.pantry__menu [data-st="out"] { border-color: rgba(var(--teal-rgb), .45); background: var(--mint); }
.pantry__menu [data-st="out"] b { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--ink-2); }
.pantry__menu [data-st="out"] small { color: var(--teal); }
.pantry__msg { margin: 0 12px 12px; padding: 16px 18px; border-radius: 12px; background: var(--navy); color: #fff; }
.pantry__msg p b { display: block; font-size: 15.5px; font-weight: 800; line-height: 1.4; }
.pantry__msg p small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .62); }
.pantry__ack { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 14px; }
.pantry__ack .avs { display: inline-flex; padding-right: .5em; font-size: 14px; }
.pantry__ack .avs .av { box-shadow: 0 0 0 2px var(--navy); animation: avPop .45s var(--ease) backwards; }
.pantry__ack .avs .av:nth-child(even) { --c: var(--av2); }
@keyframes avPop { from { transform: scale(.3); opacity: 0; } }
#dnAckN { font-size: 13.5px; font-weight: 750; color: var(--teal-hi); font-variant-numeric: tabular-nums; }
.pantry__ack .btn { margin-left: auto; height: 38px; padding: 0 16px; background: #fff6ea; color: var(--ink); box-shadow: none; font-size: 14px; }
.pantry__ack .btn:hover { background: #fff; }
.pantry__ack .btn[disabled] { opacity: .6; cursor: default; }

/* ---------------- 03 enesekontroll: külmik ja päevik ---------------- */
.temp__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 3.6vw, 52px); align-items: start; }
.thermo { padding: 24px 24px 22px; border: 1px solid #d9e4e8; border-radius: var(--r-lg); background: linear-gradient(180deg, #f4f8f9, #eaf1f3); box-shadow: var(--sh-2); transition: background-color .4s, border-color .4s; }
.thermo[data-res="fail"] { border-color: var(--mint-2); background: linear-gradient(180deg, #fdf5f3, var(--mint)); }
.thermo__top { display: flex; align-items: center; gap: 14px; }
.thermo__qr { width: 58px; height: 58px; flex: none; border-radius: 8px; box-shadow: 0 0 0 1px rgba(36, 20, 26, .1); color: var(--ink); }
.thermo__top b { display: block; font-size: 20px; font-weight: 900; letter-spacing: -.025em; }
.thermo__top small { display: block; margin-top: 2px; font: 500 11.5px/1.4 var(--mono); color: var(--ink-3); }
.thermo__val { display: flex; align-items: flex-start; margin-top: 18px; color: var(--cold); font-weight: 900; letter-spacing: -.055em; line-height: .95; transition: color .3s; }
.thermo__val output { font-size: clamp(68px, 7.4vw, 104px); font-variant-numeric: tabular-nums; }
.thermo__val span { margin: .5em 0 0 .3em; font-size: 26px; letter-spacing: -.02em; opacity: .7; }
.thermo[data-res="fail"] .thermo__val { color: var(--teal); }
.thermo__scale { margin-top: 14px; }
.thermo input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 34px; margin: 0; background: none; cursor: grab; }
.thermo input[type="range"]:active { cursor: grabbing; }
.thermo input[type="range"]::-webkit-slider-runnable-track { height: 12px; border-radius: 99px; background: linear-gradient(90deg, #d6c9d9 0 16.67%, #8cc7d9 16.67% 50%, #edc79a 50% 64%, #c96f6f 82%, var(--teal)); box-shadow: inset 0 1px 2px rgba(36, 20, 26, .2); }
.thermo input[type="range"]::-moz-range-track { height: 12px; border-radius: 99px; background: linear-gradient(90deg, #d6c9d9 0 16.67%, #8cc7d9 16.67% 50%, #edc79a 50% 64%, #c96f6f 82%, var(--teal)); box-shadow: inset 0 1px 2px rgba(36, 20, 26, .2); }
.thermo input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -9px; border: 3px solid var(--ink); border-radius: 50%; background: #fff; box-shadow: 0 6px 12px -4px rgba(36, 20, 26, .5); }
.thermo input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 3px solid var(--ink); border-radius: 50%; background: #fff; box-shadow: 0 6px 12px -4px rgba(36, 20, 26, .5); }
.thermo__ticks { position: relative; height: 16px; margin: 0 15px; font: 500 11px/1 var(--mono); color: var(--ink-3); }
.thermo__ticks span { position: absolute; top: 2px; transform: translateX(-50%); }
.thermo__ticks span:nth-child(1) { left: 0; }
.thermo__ticks span:nth-child(2) { left: 16.67%; }
.thermo__ticks span:nth-child(3) { left: 50%; }
.thermo__ticks span:nth-child(4) { left: 100%; }
.thermo__state { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 15px; font-weight: 800; color: var(--ok); }
.thermo__state svg { width: 18px; height: 18px; flex: none; }
.thermo[data-res="fail"] .thermo__state { color: var(--teal); }
.thermo__go { width: 100%; margin-top: 16px; }
.thermo__go[disabled] { opacity: .6; cursor: progress; }
.thermo__hint { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.temp__ticks { margin-top: 22px; }
html.theme-dine .dlog__dev[data-state="off"], html.theme-dine .res--fail, html.theme-dine .dlog__toast { background: var(--mint); color: var(--teal); }
html.theme-dine .dlog__dev, html.theme-dine .res--ok, html.theme-dine .dlog__toast.is-ok { background: var(--ok-t); color: var(--ok); }
html.theme-dine .dlog__t tr.is-new td { animation-name: dnRowNew; }
html.theme-dine .dlog__t tr.is-new.is-fail td { animation-name: dnRowFail; }
@keyframes dnRowNew { from { background: rgba(59, 138, 94, .2); } to { background: rgba(59, 138, 94, 0); } }
@keyframes dnRowFail { from { background: rgba(var(--teal-rgb), .2); } to { background: rgba(var(--teal-rgb), .05); } }

/* ---------------- 04 meeskond: vahetus ja sisseelamine ---------------- */
.crew__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 16px; align-items: start; }
.shift, .onb { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-2); }
.shift__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 14px; }
.shift__head b { display: block; font-size: 17px; font-weight: 900; letter-spacing: -.02em; }
.shift__head small { display: block; font-size: 13px; font-weight: 650; color: var(--ink-3); }
.shift__rows li { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 8px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.shift__rows li > b { font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.shift__ppl { display: flex; flex-wrap: wrap; gap: 8px; }
.pp { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; border-radius: 99px; background: var(--bg); font-size: 14px; font-weight: 800; transition: background-color .3s, box-shadow .3s; }
.pp .av { font-size: 13px; }
.pp small { font-size: 11.5px; font-weight: 750; color: var(--ink-3); }
.pp.is-warn { background: var(--acc-t); box-shadow: inset 0 0 0 1.5px rgba(var(--acc-rgb), .75); }
.pp.is-warn small { color: var(--acc-d); }
.pp.is-fixed { background: var(--ok-t); animation: blkFix .7s var(--ease); }
.pp.is-fixed small { color: var(--ok); }
html.theme-dine .rooms__st[data-state="ok"] { background: var(--ok-t); color: var(--ok); }
html.theme-dine .rooms__ok svg { color: var(--ok); }
.onb__head { display: flex; align-items: center; gap: 12px; }
.onb__head .av { font-size: 17px; }
.onb__head p { flex: 1; min-width: 0; }
.onb__head p b { display: block; font-size: 17px; font-weight: 900; letter-spacing: -.02em; }
.onb__head p small { display: block; font-size: 13px; font-weight: 650; color: var(--ink-3); }
.onb__n { font: 500 13px/1 var(--mono); color: var(--ink-3); }
.onb__n b { font: 900 28px/1 var(--font); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.onb__bar { display: block; height: 8px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: var(--line-2); }
.onb__bar i { display: block; width: calc(var(--v) * 100%); height: 100%; border-radius: inherit; background: var(--teal); transition: width .6s var(--ease), background-color .3s; }
.onb.is-full .onb__bar i { background: #3b8a5e; }
.onb__list { margin-top: 8px; }
.onb__list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 2px; border: 0; border-top: 1px solid var(--line-2); background: none; text-align: left; cursor: pointer; }
.onb__list li:first-child button { border-top: 0; }
.onb__list i { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--ink-4); border-radius: 7px; color: #fff; transition: background-color .25s, border-color .25s; }
.onb__list i svg { width: 14px; height: 14px; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--ease); }
.onb__list button:hover i { border-color: var(--teal); }
.onb__list [aria-checked="true"] i { border-color: var(--teal); background: var(--teal); }
.onb__list [aria-checked="true"] i svg { opacity: 1; transform: none; }
.onb__list b { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.3; transition: color .25s; }
.onb__list [aria-checked="true"] b { color: var(--ink-3); }
.onb__list small { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink-3); }
.onb__f { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 13.5px; font-weight: 650; line-height: 1.5; color: var(--ink-3); }
.onb.is-full .onb__f { color: var(--ok); }

/* ---------------- 05 õhtu lõpp: päevaaruanne kassalindil ---------------- */
.zsec { overflow: hidden; background: radial-gradient(48% 60% at 86% 20%, rgba(var(--teal-rgb), .5), transparent 70%), radial-gradient(40% 50% at 8% 100%, rgba(var(--acc-rgb), .12), transparent 70%), var(--navy); }
.z__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.z__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 32px; }
.z__stats li { padding: 16px 16px 15px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 12px; background: rgba(255, 255, 255, .055); }
.z__stats small { display: block; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .58); }
.z__stats b { display: block; margin-top: 8px; font-size: clamp(22px, 2.3vw, 30px); font-weight: 900; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zslot { position: relative; width: min(100%, 372px); margin: 0 auto; }
.zslot__mouth { position: relative; z-index: 2; height: 24px; border-radius: 12px; background: linear-gradient(180deg, #4a3340, #1a0d14 60%, #0d0509); box-shadow: inset 0 -7px 9px rgba(0, 0, 0, .65), 0 1px 0 rgba(255, 255, 255, .14), 0 18px 30px -14px rgba(0, 0, 0, .7); }
.zslot__clip { margin: -11px 20px 0; padding-bottom: 30px; overflow: hidden; }
.zrep { padding: 30px 22px 34px; background: linear-gradient(180deg, #e9e2d2, var(--paper) 9%); color: #2a1d20; font: 500 13.5px/1.5 var(--mono); filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .4)); -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%; transition: transform 2.6s steps(28, end) .35s; }
.js .zslot:not(.is-in) .zrep { transform: translateY(-104%); }
.zrep__h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px dashed rgba(42, 29, 32, .4); }
.zrep__h b { font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.zrep__h span { opacity: .7; }
.zrep dl { margin: 10px 0 0; }
.zrep dl div { display: flex; align-items: baseline; gap: 8px; padding: 2px 0; }
.zrep dt { flex: 1; display: flex; align-items: baseline; gap: 8px; }
.zrep dt::after { content: ''; flex: 1; border-bottom: 1.5px dotted rgba(42, 29, 32, .35); transform: translateY(-4px); }
.zrep dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zrep .is-b { font-size: 16px; }
.zrep .is-gap { margin-top: 10px; }
.zrep .is-sub { padding-left: 16px; opacity: .72; }
.zrep__f { margin-top: 14px; padding-top: 10px; border-top: 1px dashed rgba(42, 29, 32, .4); text-align: center; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }

/* ---------------- kohandumine ---------------- */
@media (max-width: 1060px) {
  .temp__grid, .z__grid { grid-template-columns: minmax(0, 1fr); }
  .thermo { max-width: 520px; }
  .zslot { margin-top: 8px; }
  .dnstage { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 980px) {
  .floor { grid-template-columns: minmax(0, 1fr); }
  .floor__side { border-left: 0; border-top: 1px solid var(--line); }
  .crew__grid { grid-template-columns: minmax(0, 1fr); }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 0; }
  .roles li:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .carte__cols { grid-template-columns: minmax(0, 1fr); }
  .carte__col { padding: 0; }
  .carte__col--cu { margin-top: 26px; padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .carte li { flex-wrap: wrap; gap: 0 10px; }
  .carte__col:not(.carte__col--cu) li span { flex-basis: 100%; }
  .carte li i { display: none; }
}
@media (max-width: 640px) {
  html.theme-dine .sxh__title { font-size: clamp(42px, 13vw, 56px); }
  .dnstage { margin: 14% 2% 17% 3%; }
  .bong { font-size: 8.6px; }
  .bong { width: 33%; }
  .bong--a { left: 1%; }
  .bong--b { left: 36%; }
  .dncard { left: -1%; bottom: -14%; width: 68%; padding: 11px 12px 10px; }
  .dncard__plan { height: 64px; }
  .dnchip { display: none; }
  .carte { padding: 34px 24px 30px; }
  .carte li span { font-size: 15.5px; }
  .floor__main { padding: 12px; }
  .floor__legend { gap: 4px 10px; font-size: 11.5px; }
  .floor__plan { aspect-ratio: 1 / .86; }
  .tb small { display: none; }
  .tb { border-radius: 8px; }
  .tb--r { border-radius: 50%; }
  .floor__side { padding: 18px 16px; }
  .kt { width: 100%; }
  .roles { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 26px; }
  .roles li, .roles li + li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .roles li:first-child { border-top: 0; padding-top: 0; }
  .roles__ic { grid-row: 1 / 3; }
  .roles b { margin-top: 0; }
  .pantry__head, .pantry__stock li { padding-left: 14px; padding-right: 14px; }
  .pantry__sub { padding-left: 14px; }
  .pantry__menu { grid-template-columns: minmax(0, 1fr); padding: 0 14px 14px; }
  .pantry__menu li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .pantry__msg { margin: 0 8px 8px; padding: 14px; }
  .pantry__ack .btn { margin-left: 0; width: 100%; }
  .thermo { padding: 18px 16px; }
  .shift, .onb { padding: 16px 14px; }
  .shift__rows li { grid-template-columns: minmax(0, 1fr); }
  .z__stats { grid-template-columns: minmax(0, 1fr); }
  .z__stats li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .z__stats b { margin-top: 0; }
  .zslot__clip { margin-inline: 12px; }
  .zrep { padding-inline: 16px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .sxh__stage .bong { opacity: 1; }
  .js .sxh__stage.is-in .bong, .js .sxh__stage.is-in .bong__in, .mt[data-st="kit"], .tb[data-st="kit"] { animation: none; }
  .zrep { transition: none; }
  .js .zslot:not(.is-in) .zrep { transform: none; }
}
