/* ===================== Mode palettes (approved colours only) ===================== */
[data-mode=admin] { --bg: #ECEDEE; --surface: #FFFFFF; --surface-2: #E3E5E7; --ink: #10262D; --muted: #4A5C6A; --accent: #10333D; --accent-2: #9BA8AB; --accent-ink: #F7F5EF; --accent-soft: rgba(16, 51, 61, .08); --line: rgba(16, 51, 61, .12); }
[data-mode=gym] { --bg: #E4E7E8; --surface: #FFFFFF; --surface-2: #D9DADC; --ink: #06141B; --muted: #4A5C6A; --accent: var(--accent-override, #253745); --accent-2: #9BA8AB; --accent-ink: #F1F7F7; --accent-soft: rgba(37, 55, 69, .09); --line: rgba(17, 33, 45, .12); }
[data-mode=focus] { --bg: #F7F5EF; --surface: #FFFFFF; --surface-2: #ECEDEC; --ink: #0E2A33; --muted: #4A5C6A; --accent: var(--accent-override, #10333D); --accent-2: #D9DADC; --accent-ink: #F7F5EF; --accent-soft: rgba(16, 51, 61, .07); --line: rgba(16, 51, 61, .10); }
[data-mode=calm] { --bg: #F2E8DA; --surface: #FBF6EF; --surface-2: #EFE3D3; --ink: #3B2418; --muted: #6E5A4E; --accent: var(--accent-override, #3B2418); --accent-2: #F7CBCA; --accent-ink: #F2E8DA; --accent-soft: rgba(59, 36, 24, .07); --line: rgba(59, 36, 24, .10); --shadow: 0 1px 2px rgba(59,36,24,.04), 0 10px 30px -14px rgba(59,36,24,.18); }
[data-mode=friday] { --bg: #F7F5EF; --surface: #FFFFFF; --surface-2: #ECEFE6; --ink: #14281D; --muted: #55665A; --accent: var(--accent-override, #1B4532); --accent-2: #9CAF88; --accent-ink: #F7F5EF; --accent-soft: rgba(27, 69, 50, .08); --line: rgba(27, 69, 50, .12); }
[data-theme=dark] { color-scheme: dark; --bg: #06141B; --surface: #11212D; --surface-2: #253745; --ink: #E3E7E6; --muted: #9BA8AB; --line: rgba(204, 208, 207, .10); --accent: #9CAF88; --accent-2: #4A5C6A; --accent-ink: #06141B; --accent-soft: rgba(156, 175, 136, .12); --ok: #9CAF88; --warn: #e8c37a; --bad: #F7CBCA; --ok-bg: rgba(156,175,136,.15); --warn-bg: rgba(232,195,122,.14); --bad-bg: rgba(247,203,202,.12); --focus: #B0D7D8; --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 30px -16px rgba(0,0,0,.6); }
[data-theme=dark][data-mode=gym] { --accent: #CCD0CF; --accent-soft: rgba(204, 208, 207, .10); }
[data-theme=dark][data-mode=focus], [data-theme=dark][data-mode=admin] { --accent: #B0D7D8; --accent-soft: rgba(176, 215, 216, .10); }
[data-theme=dark][data-mode=calm] { --accent: #F7CBCA; --accent-soft: rgba(247, 203, 202, .10); }

/* ===================== Login ===================== */
.login { min-height: 100dvh; display: flex; flex-direction: column; }
.login-top { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 4vw, 40px); position: sticky; top: 0; z-index: 5; background: var(--bg); }
.admin-entry { border-color: var(--line); color: var(--muted); }
.login-intro { position: relative; height: 46vh; min-height: 260px; }
.login-intro-inner { position: sticky; top: 72px; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 20px 16px 0; opacity: calc(1 - var(--intro-p, 0) * .6); }
.fill-text { font-size: clamp(1.15rem, 3.6vw, 1.7rem); font-weight: 600; max-width: 22ch; margin: 0;
  background: linear-gradient(to left, var(--accent) var(--fill, 0%), color-mix(in srgb, var(--accent) 28%, transparent) var(--fill, 0%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-main { width: min(1120px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 40px; position: relative; z-index: 2; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h1 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.person { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: start; transition: transform .18s var(--ease), box-shadow .2s, border-color .2s; }
.person:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.person-name { flex: 1; font-size: 1.05rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.person-go { color: var(--muted); }
.person.skeleton { pointer-events: none; } .person.skeleton .avatar { background: var(--surface-2); } .person.skeleton .line { flex: 1; height: 14px; border-radius: 8px; background: var(--surface-2); }
.login-foot { text-align: center; padding: 20px 16px 28px; margin-top: auto; }
/* PIN */
.pin { display: grid; justify-items: center; gap: 14px; padding: 6px 0 4px; text-align: center; }
.pin-who { display: grid; justify-items: center; gap: 8px; } .pin-who h2 { font-size: 1.25rem; }
.pin-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pin-dots { display: flex; gap: 16px; direction: ltr; }
.pin-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent); transition: background .15s, transform .15s; }
.pin-dots span.on { background: var(--accent); transform: scale(1.05); }
.pin-dots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pin.checking .pin-dots span { animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .35; } }
.pin-msg { min-height: 1.6em; color: var(--bad); font-size: .9rem; margin: 0; max-width: 32ch; }
.keypad { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px; }
.keypad button { height: 64px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface-2); font-size: 1.5rem; font-weight: 600; display: grid; place-items: center; transition: background .15s, transform .1s; }
.keypad button:active { transform: scale(.96); background: var(--accent-soft); }
.keypad .key-muted { background: transparent; border-color: transparent; color: var(--muted); }
.keypad.busy { opacity: .45; pointer-events: none; }

/* ===================== Employee shell ===================== */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-row { display: flex; align-items: center; gap: 12px; padding: 10px clamp(12px, 3vw, 28px); max-width: 1320px; margin: 0 auto; }
.brand { flex: none; }
.mode-switch { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); overflow-x: auto; scrollbar-width: none; flex: 1; max-width: max-content; margin-inline: auto; }
.mode-switch::-webkit-scrollbar { display: none; }
.mode-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap; transition: background .2s, color .2s; }
.mode-tab.on { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.top-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.me-btn { border: 0; background: none; padding: 2px; border-radius: 50%; }
.emp-main { max-width: 1320px; margin: 0 auto; padding: clamp(14px, 3vw, 28px) clamp(12px, 3vw, 28px) 80px; outline: none; position: relative; z-index: 1; }
@media (max-width: 760px) {
  .topbar-row { flex-wrap: wrap; row-gap: 8px; }
  .mode-switch { order: 3; flex-basis: 100%; max-width: 100%; margin: 0; }
  .mode-tab { flex: 1; justify-content: center; padding: 0 8px; }
  .top-actions { margin-inline-start: auto; }
  .net-pill { font-size: 0; } .net-pill::before { width: 9px; height: 9px; }
}
@media (max-width: 380px) { .mode-tab span { font-size: .8rem; } .mode-tab .ic { display: none; } }

/* layouts — the real page structure changes */
/* Wide & compact use a masonry-style column flow: cards of different heights no longer leave holes. */
.grid { column-gap: clamp(14px, 2vw, 22px); }
.grid > .card { display: inline-block; width: 100%; break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 clamp(14px, 2vw, 22px); vertical-align: top; }
.grid > .size-full { column-span: all; display: block; }
.grid-wide { column-count: 2; }
.grid-wide .card { padding: clamp(18px, 2.4vw, 28px); }
.grid-compact { column-count: 3; column-gap: 12px; }
.grid-compact > .card { padding: 14px 16px; border-radius: 16px; margin-bottom: 12px; }
.grid-compact .sec-head { margin-bottom: 10px; } .grid-compact .sec-head h2 { font-size: .98rem; }
@media (max-width: 1100px) { .grid-compact { column-count: 2; } }
@media (max-width: 760px) { .grid-wide, .grid-compact { column-count: 1; } }
.layout-sidebar { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.side-nav { position: sticky; top: 84px; display: grid; gap: 4px; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.side-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 0; background: transparent; text-align: start; font-weight: 600; color: var(--muted); }
.side-link.on { background: var(--accent); color: var(--accent-ink); }
.side-link:hover:not(.on) { background: var(--accent-soft); color: var(--ink); }
.side-content .card { padding: clamp(18px, 2.6vw, 32px); min-height: 50vh; }
@media (max-width: 860px) {
  .layout-sidebar { grid-template-columns: 1fr; gap: 14px; }
  .side-nav { position: sticky; top: 108px; z-index: 5; display: flex; overflow-x: auto; scrollbar-width: none; padding: 6px; }
  .side-link { flex: none; min-height: 38px; } .side-nav::-webkit-scrollbar { display: none; }
}
.layout-stacked { max-width: 900px; }
.toc { position: sticky; top: 70px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 0 12px; background: linear-gradient(var(--bg) 70%, transparent); }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-weight: 600; font-size: .85rem; }
.stack { display: grid; gap: 28px; }
.stack .card { padding: clamp(20px, 3vw, 34px); border-radius: 26px; }
.stack .sec-head h2 { font-size: 1.25rem; }
@media (max-width: 760px) { .toc { top: 108px; } }

/* background layers (parallax for calm; static elsewhere) */
.bg-layers { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-layers span { position: absolute; border-radius: 50%; opacity: 0; transition: opacity .6s; will-change: transform; background-image: radial-gradient(closest-side, currentColor, transparent) !important; }
[data-mode=calm] .bg-layers span { opacity: .55; }
[data-mode=calm] .bg-layers span:nth-child(1) { width: 46vw; height: 46vw; color: #F7CBCA; top: -10vw; inset-inline-end: -12vw; }
[data-mode=calm] .bg-layers span:nth-child(2) { width: 38vw; height: 38vw; color: #DDD3D3; top: 60vh; inset-inline-start: -14vw; }
[data-mode=calm] .bg-layers span:nth-child(3) { width: 30vw; height: 30vw; color: #F1F7F7; top: 120vh; inset-inline-end: 10vw; }
[data-mode=friday] .bg-layers { background-image: radial-gradient(circle at 1px 1px, rgba(27,69,50,.07) 1px, transparent 0); background-size: 22px 22px; }
[data-mode=gym][data-theme=light] .bg-layers { background: linear-gradient(180deg, #D9DADC 0, transparent 340px); }
[data-theme=dark] .bg-layers span { opacity: 0 !important; }

/* ===================== Section content ===================== */
.wel { display: grid; gap: 6px; }
.wel-greet { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 650; margin: 0; line-height: 1.4; }
.wel-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.wel-status { display: inline-flex; gap: 8px; align-items: center; margin: 6px 0 0; font-weight: 600; }
.chip-line { background: var(--accent-soft); color: var(--accent); padding: 8px 14px; border-radius: 12px; }
.wel-home { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.welcome { background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--accent-2) 14%, var(--surface))); }
.welcome .sec-head { display: none; }
.welcome-focus { background: var(--surface); border-inline-start: 4px solid var(--accent); }
.welcome-focus .wel-greet { font-size: 1.2rem; }
.welcome-calm { background: transparent; box-shadow: none; border: 0; padding-block: 28px !important; }
.welcome-calm .wel-greet { font-size: clamp(1.6rem, 4.4vw, 2.4rem); font-weight: 500; }
.welcome-friday { background: #1B4532; color: #F7F5EF; position: relative; overflow: hidden; border: 0; }
.welcome-friday .wel-meta, .welcome-friday .wel-status { color: #dfe6d8; }
.welcome-friday .btn.soft { background: rgba(247,245,239,.12); color: #F7F5EF; }
.wel-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ornament { position: absolute; inset-inline-end: -40px; top: -40px; width: 220px; height: 220px; opacity: .16; pointer-events: none;
  background: conic-gradient(from 22.5deg, #9CAF88 0 12.5%, transparent 0 25%, #9CAF88 0 37.5%, transparent 0 50%, #9CAF88 0 62.5%, transparent 0 75%, #9CAF88 0 87.5%, transparent 0);
  -webkit-mask: radial-gradient(circle, #000 52%, transparent 53%); mask: radial-gradient(circle, #000 52%, transparent 53%); }
.shift-times { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.shift-times > div { display: grid; } .shift-times b { font-size: 1.6rem; font-weight: 650; direction: ltr; text-align: start; }
.shift-times .arrow { color: var(--muted); }
.shift-phase { margin: 10px 0; font-weight: 600; color: var(--accent); }
.shift-off .big { font-size: 1.8rem; font-weight: 650; color: var(--accent); }
.checkin { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--ok); font-weight: 600; font-size: .92rem; }
.tomorrow { margin-top: 10px; }
.nb { display: grid; gap: 6px; } .nb-time { font-size: 1.5rem; font-weight: 650; margin: 0; direction: ltr; text-align: start; }
.nb-active { position: relative; } .nb-active .clock { font-size: 1.6rem; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
.clock.over, .mb-clock.over { color: var(--bad); }
.pulse { position: absolute; inset-inline-end: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: beat 1.6s infinite; }
@keyframes beat { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.qbtn { display: grid; justify-items: start; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); text-align: start; font-weight: 600; min-height: 76px; }
.qbtn .ic { color: var(--accent); width: 22px; height: 22px; }
.qbtn.hot { background: var(--accent); color: var(--accent-ink); } .qbtn.hot .ic { color: inherit; }
.week-nav, .month-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.week-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.week-list li { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.week-list li.is-today { outline: 2px solid var(--accent); background: var(--accent-soft); }
.week-list .wd { display: grid; font-weight: 650; } .week-list .wd small { color: var(--muted); font-weight: 500; }
.week-list .sv { font-weight: 600; direction: rtl; }
.week-list .k-off .sv, .week-list .k-leave .sv { color: var(--muted); }
.team-table td.k-off, .team-table td.k-leave { color: var(--muted); } .team-table td.k-work { font-weight: 600; direction: ltr; text-align: center; }
.team-table tr.is-me th { color: var(--accent); }
.team-table th small { display: block; color: var(--muted); font-weight: 500; }
.wallet-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.balance { display: grid; } .balance b { font-size: 2rem; font-weight: 700; color: var(--ink); } .balance.pos b { color: var(--ok); } .balance.neg b { color: var(--bad); }
.pn { display: grid; text-align: end; font-weight: 600; font-size: .9rem; }
.today-allow { display: flex; gap: 8px; align-items: center; font-size: .9rem; background: var(--surface-2); padding: 8px 12px; border-radius: 12px; }
.tx { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.tx li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tx li span { display: grid; } .tx li small { font-size: .8rem; }
details summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 8px 0; }
details ul { list-style: none; margin: 0; padding: 0; } details li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.team-breaks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.team-breaks li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.team-breaks li.is-me { outline: 1px solid var(--accent); }
.tb-name { font-weight: 600; overflow-wrap: anywhere; } .tb-time { direction: ltr; font-variant-numeric: tabular-nums; font-size: .9rem; }
.add-row { display: flex; gap: 8px; margin-bottom: 10px; } .add-row .btn { flex: none; width: 46px; padding: 0; }
.todo { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.todo li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.todo label { flex: 1; display: flex; gap: 10px; align-items: center; cursor: pointer; min-width: 0; } .todo label span { overflow-wrap: anywhere; }
.todo input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.todo .done span { text-decoration: line-through; color: var(--muted); }
.summary { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.sum-ring { position: relative; width: 120px; height: 120px; flex: none; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label b { font-size: 1.1rem; }
.sum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; min-width: 220px; }
.sum-list li { display: flex; gap: 10px; align-items: center; } .sum-list .ic { color: var(--accent); }
.account { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.customizer .dlg { width: min(620px, 100%); }
.layout-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.layout-opt { display: grid; gap: 4px; justify-items: start; text-align: start; padding: 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); }
.layout-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.lp { display: grid; gap: 3px; width: 100%; height: 54px; margin-bottom: 6px; }
.lp i { background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); border-radius: 4px; }
.lp-wide { grid-template-columns: 1fr 1fr; } .lp-wide i:first-child { grid-column: span 2; }
.lp-compact { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; } .lp-compact i:nth-child(1) { grid-column: span 2; } .lp-compact i:nth-child(4) { grid-column: span 3; }
.lp-sidebar { grid-template-columns: 1fr 3fr; grid-template-rows: 1fr 1fr 1fr; } .lp-sidebar i:nth-child(2) { grid-row: span 3; grid-column: 2; grid-row-start: 1; } .lp-sidebar i:nth-child(1) { grid-column: 1; } .lp-sidebar i:nth-child(3), .lp-sidebar i:nth-child(4) { grid-column: 1; }
.lp-stacked { grid-template-rows: repeat(4, 1fr); }
.sec-order { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sec-order li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: var(--surface-2); }
.sec-order li.is-hidden .so-name { opacity: .5; }
.so-name { display: flex; gap: 8px; align-items: center; font-weight: 600; min-width: 0; } .so-act { display: flex; gap: 2px; flex: none; }

/* ===================== Breaks ===================== */
.day-chips, .dur-chips, .plan-tabs, .kahf-jump { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; flex-wrap: wrap; }
.allow-line { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); margin: 12px 0; }
.allow-line span:last-child { font-weight: 650; color: var(--accent); }
.slot { display: grid; gap: 2px; justify-items: start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: start; min-height: 56px; transition: border-color .15s, background .15s; position: relative; }
.slot b { font-size: 1rem; direction: ltr; font-variant-numeric: tabular-nums; } .slot small { font-size: .74rem; color: var(--muted); }
.slot.s-free:hover { border-color: var(--accent); }
.slot.s-full, .slot.s-past { background: var(--surface-2); opacity: .6; }
.slot.s-mine { background: var(--accent-soft); border-color: var(--accent); } .slot.s-mine small { color: var(--accent); }
.slot.picked { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .slot.picked small { color: inherit; opacity: .85; }
.v-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.v-hourly { display: grid; gap: 8px; } .hour-row { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: start; }
.hour { font-weight: 650; color: var(--muted); padding-top: 14px; direction: ltr; text-align: end; } .hour-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.v-timeline { overflow-x: auto; padding: 6px 0 8px; } .tl-track { display: flex; gap: 4px; min-width: max-content; align-items: flex-end; }
.slot.tl { width: 74px; min-height: 108px; justify-items: center; text-align: center; align-content: end; overflow: hidden; }
.slot.tl i { position: absolute; inset-inline: 0; bottom: 0; height: calc(var(--fill) * 100%); background: color-mix(in srgb, var(--accent) 18%, transparent); z-index: 0; }
.slot.tl b, .slot.tl small { position: relative; z-index: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; } .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: middle; margin-inline-end: 4px; }
.lg-free { background: var(--surface); border: 1px solid var(--line); } .lg-full { background: var(--surface-2); } .lg-mine { background: var(--accent); }
.v-list { list-style: none; margin: 0; padding: 0; display: grid; } .v-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.v-list li.s-full, .v-list li.s-past { opacity: .55; }
.book-bar { position: sticky; bottom: 10px; margin-top: 14px; display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--accent); box-shadow: var(--shadow-lg); }
.book-bar:not(.show) { display: none; }
.my-bookings { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.mb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.mb-active { background: var(--accent-soft); outline: 1px solid var(--accent); }
.mb-time { display: grid; flex: 1; min-width: 160px; } .mb-time b { direction: ltr; text-align: start; }
.mb-clock { font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; }
.mb-act { display: flex; gap: 6px; }

/* ===================== Gym ===================== */
.gym-hero { background: linear-gradient(140deg, #2B2D31 0%, #11212D 60%, #253745 100%); color: #E8ECEC; border: 0; }
.gym-hero .sec-head { display: none; }
.gym-hero .muted { color: #9BA8AB; }
.gh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.gh-greet { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 650; margin: 0; }
.gh-today { display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; background: rgba(204, 208, 207, .08); border: 1px solid rgba(204, 208, 207, .14); min-width: 200px; }
.gh-today b { font-size: 1.15rem; } .gh-today.done { border-color: #9CAF88; }
.gym-hero .link-btn { color: #CCD0CF; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: rgba(204, 208, 207, .06); border: 1px solid rgba(204, 208, 207, .10); }
.stat span { display: flex; gap: 6px; align-items: center; font-size: .8rem; color: #9BA8AB; font-weight: 600; }
.stat b { font-size: 1.9rem; font-weight: 700; color: #F1F7F7; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat b.txt { font-size: 1.1rem; padding-top: 8px; } .stat small { color: #9BA8AB; font-size: .78rem; }
.mini-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 16px 0; }
.mw { display: grid; justify-items: center; gap: 6px; padding: 8px 0; border-radius: 12px; background: rgba(204, 208, 207, .05); }
.mw small { font-size: .74rem; color: #9BA8AB; } .mw i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #4A5C6A; }
.mw.done i { background: #CCD0CF; border-color: #CCD0CF; } .mw.missed i { border-color: #F7CBCA; } .mw.planned i { border-color: #9BA8AB; } .mw.rest i { border-style: dashed; }
.mw.today { outline: 1px solid #9BA8AB; }
.gh-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.gym-hero .btn.primary { background: #CCD0CF; color: #06141B; border-color: #CCD0CF; }
.gym-hero .btn.soft { background: rgba(204, 208, 207, .10); color: #E8ECEC; }
.plan-tabs .chip-btn.rest:not(.on) { border-style: dashed; }
.plan-tabs .chip-btn.add { color: var(--accent); }
.plan-head { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 14px 0; }
.plan-head .field { flex: 1; min-width: 150px; }
.ex-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; counter-reset: ex; }
.ex { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); counter-increment: ex; }
.ex-main { display: flex; gap: 8px; align-items: baseline; } .ex-main::before { content: counter(ex); font-weight: 700; color: var(--accent); }
.ex-meta { display: flex; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); grid-column: 1; }
.ex-act { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 2px; align-items: center; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-h { text-align: center; font-size: .78rem; color: var(--muted); font-weight: 650; }
.cal-d { display: grid; justify-items: center; gap: 4px; padding: 10px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.cal-week .cal-d { padding: 16px 0; }
.cal-d b { font-weight: 650; } .cal-d i, .legend i[class^=c-] { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.c-done i, i.c-done { background: var(--accent); } .c-missed i, i.c-missed { background: #F7CBCA; border: 1px solid #c98f8e; } .c-planned i, i.c-planned { border: 2px solid var(--accent); } .c-rest i, i.c-rest { border: 1px dashed var(--muted); } .c-skipped i { background: var(--muted); }
.cal-d.today { outline: 2px solid var(--accent); } .cal-d.out { opacity: .35; }
.cal-detail { margin-top: 12px; } .wk { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sets-sum { margin: 4px 0; padding-inline-start: 18px; font-size: .88rem; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .log > li { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.log-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .log-h b { flex: 1; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.charts figure { padding: 12px; border-radius: 14px; background: var(--surface-2); }
@media (max-width: 760px) { .charts { grid-template-columns: 1fr; } }
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: .9rem; color: var(--muted); }
.macros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (max-width: 600px) { .macros { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.macro { display: grid; gap: 4px; padding: 12px; border-radius: 14px; background: var(--surface-2); } .macro span { font-size: .8rem; color: var(--muted); font-weight: 600; } .macro b { font-size: 1.3rem; }
.mbar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 12%, transparent); overflow: hidden; } .mbar i { display: block; height: 100%; background: var(--accent); }
.water { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px; border-radius: 14px; background: color-mix(in srgb, #B0D7D8 30%, var(--surface)); margin-bottom: 12px; }
.water > span:first-child { display: flex; gap: 8px; align-items: center; }
.meals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (max-width: 600px) { .meals { grid-template-columns: 1fr; } }
.meal { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); } .meal h4 { font-size: .9rem; margin-bottom: 6px; }
.meal ul { list-style: none; padding: 0; margin: 0; } .meal li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 4px 0; } .meal li span:first-child { flex: 1; }
.meal-form { padding: 12px; border-radius: 14px; background: var(--surface-2); margin-bottom: 12px; } .meal-form h4 { font-size: .95rem; }
.days { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; } .days legend { font-size: .875rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.day-chk input { position: absolute; opacity: 0; } .day-chk span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-size: .88rem; }
.day-chk input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); } .day-chk input:focus-visible + span { outline: 3px solid var(--focus); }
.logger .log-ex { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 0 0 8px; }
.logger legend { width: 100%; padding: 0; } .logger legend input { font-weight: 650; }
.set-row { display: grid; grid-template-columns: 20px 1fr 1fr 32px; gap: 8px; align-items: center; margin-top: 6px; }
.set-row .chk input { width: 22px; height: 22px; accent-color: var(--accent); }

/* ===================== Friday ===================== */
.sec-kahf .sec-head h2 { font-size: 1.3rem; }
.kahf-tools { display: grid; gap: 10px; margin-bottom: 16px; position: sticky; top: 60px; z-index: 3; background: var(--surface); padding: 8px 0; }
.quran { font-family: var(--font-quran); font-size: calc(1.55rem + var(--q-size, 0) * .16rem); line-height: 2.35; text-align: justify; color: var(--ink); }
.quran .basmala { text-align: center; font-size: 1.15em; color: var(--accent); margin-bottom: 12px; }
.ayah { cursor: pointer; border-radius: 6px; transition: background .2s; }
.ayah:hover { background: var(--accent-soft); } .ayah.mark { background: color-mix(in srgb, var(--accent-2) 30%, transparent); }
.ayah-no { color: var(--accent); font-size: .85em; white-space: nowrap; }
.no-motion, .no-motion * { animation: none !important; transition: none !important; }
.dhikr { margin: 0 0 12px; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--accent-2) 14%, var(--surface)); border-inline-start: 4px solid var(--accent); }
.dhikr p { font-family: var(--font-quran); font-size: 1.3rem; line-height: 2; margin: 0 0 6px; }
.dhikr cite { font-style: normal; font-size: .8rem; color: var(--muted); }
.counter { display: flex; gap: 10px; align-items: center; }
.counter-btn { min-height: 56px; padding: 0 24px; gap: 14px; } .counter-btn b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.kahf-bottom { margin-top: 16px; }

/* ===================== Admin ===================== */
.admin { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100dvh; }
.adm-side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 18px; padding: 22px 14px; background: #10333D; color: #F7F5EF; }
.adm-side .wordmark { color: #F7F5EF; } .adm-side .muted { color: #9BA8AB; }
.adm-brand { display: grid; gap: 6px; padding: 0 10px; }
.adm-nav { display: grid; gap: 4px; }
.adm-nav a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 12px; color: #D9DADC; text-decoration: none; font-weight: 600; }
.adm-nav a:hover { background: rgba(247, 245, 239, .07); }
.adm-nav a.on { background: #F7F5EF; color: #10333D; }
.adm-side-foot { margin-top: auto; display: grid; gap: 8px; padding: 0 10px; } .adm-side-foot .btn { color: #F7F5EF; border-color: rgba(247,245,239,.2); }
.adm-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 12px clamp(14px, 3vw, 32px); background: var(--bg); border-bottom: 1px solid var(--line); }
.adm-top h1 { font-size: 1.2rem; flex: 1; }
.adm-top-brand, .adm-mobile-only { display: none; }
.adm-main { padding: clamp(14px, 3vw, 32px); padding-bottom: 100px; outline: none; max-width: 1400px; }
.adm-tabbar { display: none; }
@media (max-width: 960px) {
  .admin { grid-template-columns: 1fr; }
  .adm-side { display: none; }
  .adm-top-brand, .adm-mobile-only { display: inline-flex; }
  .adm-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: #10333D; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .adm-tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; color: #D9DADC; text-decoration: none; font-size: .72rem; font-weight: 600; }
  .adm-tabbar a.on { background: #F7F5EF; color: #10333D; }
  #toasts { bottom: calc(78px + env(safe-area-inset-bottom)); }
}
.adm-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-hello h2 { font-size: 1.5rem; }
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpis.sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kpi { display: grid; gap: 2px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kpi span { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .82rem; font-weight: 600; }
.kpi b { font-size: 1.8rem; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; } .kpi b.txt { font-size: 1.15rem; padding-top: 6px; }
.kpi small { font-size: .78rem; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; }
.rows li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.r-name { font-weight: 600; flex: 1; min-width: 120px; }
.rows.corr li { align-items: flex-start; }
.sync { display: flex; gap: 8px; align-items: center; font-weight: 600; } .sync.online { color: var(--ok); } .sync.degraded { color: var(--warn); } .sync.offline { color: var(--bad); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head.wrap { justify-content: flex-start; }
.emp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.emp-card { display: grid; gap: 12px; }
.emp-top { display: flex; gap: 12px; align-items: center; } .emp-id { flex: 1; min-width: 0; } .emp-id h3 { font-size: 1.02rem; overflow-wrap: anywhere; } .emp-id p { margin: 0; }
.emp-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 0; font-size: .85rem; }
.emp-meta dt { color: var(--muted); } .emp-meta dd { margin: 0; font-weight: 600; } .emp-meta .warn dd { color: var(--warn); }
.emp-actions { display: flex; flex-wrap: wrap; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.photo-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pin-reveal { font-size: 2.6rem; font-weight: 700; letter-spacing: .35em; text-align: center; padding: 16px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); margin: 10px 0; font-variant-numeric: tabular-nums; }
.brushes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.brush { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .85rem; }
.brush small { color: var(--muted); direction: ltr; } .brush.on { outline: 2px solid var(--accent); outline-offset: 1px; }
.brush.k-work { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); } .brush.k-off { background: var(--surface-2); } .brush.k-leave { background: var(--warn-bg); }
.sched th small { display: block; font-weight: 500; }
.sched th.is-weekend { color: var(--accent); }
.sched td { padding: 3px !important; }
.cell { width: 100%; min-width: 86px; min-height: 42px; border-radius: 10px; border: 1px solid transparent; background: transparent; font-weight: 600; font-size: .82rem; position: relative; color: var(--muted); }
.cell:hover { border-color: var(--accent); }
.cell.k-work { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--ink); }
.cell.k-off { background: var(--surface-2); } .cell.k-leave { background: var(--warn-bg); color: var(--warn); }
.cell.unsaved::after { content: ""; position: absolute; top: 4px; inset-inline-start: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.cell.diff { outline: 2px dashed var(--accent); outline-offset: -2px; }
.overnight { font-style: normal; font-size: .68rem; color: var(--accent); margin-inline-start: 4px; }
.editor-bar { position: sticky; bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 4; }
@media (max-width: 960px) { .editor-bar { bottom: calc(78px + env(safe-area-inset-bottom)); } }
.versions { margin-top: 16px; }
.cell-editor { display: grid; gap: 12px; } .tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; } .tpl-grid .brush { justify-content: center; flex-direction: column; min-height: 54px; }
.stats td, .stats th { font-variant-numeric: tabular-nums; }
.mini th, .mini td { font-size: .84rem; padding: 8px 10px; }
.days td { white-space: normal !important; }
.brk { display: inline-flex; gap: 4px; align-items: center; padding: 2px 8px; margin: 2px; border-radius: 8px; background: var(--surface-2); font-size: .8rem; }
.brk.missed { color: var(--muted); }
.detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.detail-dlg h4 { margin: 18px 0 8px; font-size: .95rem; }
.charts.two { margin: 12px 0; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; padding-bottom: 4px; }
.tabs button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; color: var(--muted); }
.tabs button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 12px; background: var(--c); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0 10px; font-size: .8rem; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--accent); } .swatch input:focus-visible + span { outline: 3px solid var(--focus); }
.sw-def { background: var(--surface-2) !important; }
.greet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.greet-list li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.greet-list li.off { opacity: .55; } .g-txt { display: grid; flex: 1; min-width: 200px; }
.tpl-row { align-items: end; }
.qr { width: 200px; height: 200px; background: #fff; border-radius: 12px; padding: 8px; margin: 10px auto; }

.friday-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.friday-card.is-on { background: #1B4532; color: #F7F5EF; border-color: #1B4532; }
.friday-card.is-on .muted { color: #dfe6d8; } .friday-card.is-on .sec-icon { background: rgba(247,245,239,.12); color: #F7F5EF; }
.friday-card.is-on .btn.ghost { color: #F7F5EF; border-color: rgba(247,245,239,.3); }
.fr-text { display: flex; gap: 12px; align-items: center; } .fr-text h2 { font-size: 1.05rem; } .fr-text p { margin: 0; }
.profile-form { gap: 12px; }

/* ===== schedule editor (selection + apply bar, like the previous version) ===== */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.legend-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.legend i.lg-work { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); } .legend i.lg-off { background: var(--surface-2); border: 1px solid var(--line); }
.legend i.lg-leave { background: var(--warn-bg); } .legend i.lg-none { background: var(--surface); border: 1px dashed var(--line); }
.head-btn, .name-btn { background: none; border: 0; padding: 4px 6px; border-radius: 8px; font: inherit; color: inherit; font-weight: 650; display: grid; justify-items: center; width: 100%; }
.name-btn { justify-items: start; text-align: start; white-space: normal; min-width: 120px; }
.head-btn:hover, .name-btn:hover { background: var(--accent-soft); }
.head-btn small { font-weight: 500; color: var(--muted); }
.cell { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.cell .sym { font-size: .7rem; opacity: .6; }
.cell .nt { font-style: normal; font-size: .7rem; color: var(--accent); }
.cell[aria-pressed=true] { outline: 2.5px solid var(--accent); outline-offset: -2px; background: color-mix(in srgb, var(--accent) 24%, var(--surface)) !important; color: var(--ink); }
.cell.k-none { border: 1px dashed var(--line); }
.apply-bar { position: sticky; bottom: 10px; z-index: 4; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--accent); box-shadow: var(--shadow-lg); }
.apply-bar .field { min-width: 140px; flex: 1; } .apply-bar .field input, .apply-bar .field select { min-height: 40px; padding: 6px 10px; }
.ab-state { display: grid; gap: 6px; } .ab-state .label { font-weight: 650; font-size: .9rem; }
@media (max-width: 960px) { .apply-bar { bottom: calc(76px + env(safe-area-inset-bottom)); } }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; } .check input { width: 18px; height: 18px; accent-color: var(--accent); }
.conflict-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; margin: 0; }
.conflict-row legend { font-weight: 650; padding: 0 4px; }

.avatar-btn { border: 0; padding: 0; background: none; border-radius: 50%; cursor: zoom-in; display: inline-flex; }
.avatar-btn:disabled { cursor: default; }
.avatar-btn:not(:disabled):hover .avatar { box-shadow: 0 0 0 3px var(--accent-soft); }
.photo-viewer { display: grid; place-items: center; min-height: 200px; }
.photo-viewer img { max-width: 100%; max-height: 75dvh; width: auto; height: auto; border-radius: 14px; object-fit: contain; image-rendering: auto; }
