/* Cinnery Rota – mobile-first, a Cinnery weboldal színeivel (padlizsán + rózsaszín, Fredoka + Inter). */
:root {
  --bg: #FFFCFA;
  --card: #FFFFFF;
  --tint: #F8F1EE;
  --line: #ECDFE0;
  --ink: #2B1C25;
  --ink-2: #6E5B65;
  --plum: #614051;
  --plum-deep: #4A2F3E;
  --pink: #F0A3AF;
  --pink-soft: #FBE3E6;
  --ok: #2E7D5B;
  --ok-soft: #E3F2EA;
  --warn: #A86412;
  --warn-soft: #FBEEDC;
  --danger: #B3362E;
  --danger-soft: #FBE4E1;
  --cov-ok: #5FAE85;
  --cov-ok-2: #2E7D5B;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(43, 28, 37, .05), 0 6px 20px rgba(43, 28, 37, .06);
  --tabbar: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 15.5px; line-height: 1.5; color: var(--ink); background: var(--bg); overflow-x: hidden; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.005em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
a { color: var(--plum); }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }

/* Logo + app badge */
.logo-word { display: inline-block; width: 104px; height: 19px; background: var(--plum);
  -webkit-mask: url(img/logo-word.png?v=1) left center / contain no-repeat; mask: url(img/logo-word.png?v=1) left center / contain no-repeat; }
.badge-app { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--pink-soft); color: var(--plum); padding: 2px 9px; border-radius: 99px; }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px;
  border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: .92rem; cursor: pointer;
  color: var(--ink); text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--pink); }
.btn.primary { background: var(--plum); border-color: var(--plum); color: #fff; }
.btn.primary:hover { background: var(--plum-deep); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { min-height: 32px; padding: 4px 12px; font-size: .84rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex: none; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
label > span { display: block; margin-bottom: 4px; }
input, select, textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; font-size: 16px; color: var(--ink); font-weight: 400; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pink); outline-offset: 0; border-color: var(--pink); }
input[type=checkbox] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--plum); }
input[type=color] { padding: 3px; width: 56px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > label { flex: 1 1 120px; }
.form-error { color: var(--danger); font-size: .9rem; min-height: 1.3em; margin: 0 0 8px; }

/* Login */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--tint); }
.login-card { width: min(380px, 100%); background: var(--card); border-radius: 24px; padding: 28px 24px; box-shadow: var(--shadow); }
.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.login-logo .logo-word { width: 130px; height: 24px; }
.lang-switch { display: flex; justify-content: center; gap: 4px; margin-top: 16px; }
.lang-switch button { border: 0; background: transparent; padding: 6px 10px; border-radius: 99px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.lang-switch button.on { background: var(--pink-soft); color: var(--plum); }

/* App shell */
.app { min-height: 100dvh; padding-bottom: calc(var(--tabbar) + var(--safe-b)); }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: var(--bg);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; min-width: 0; }
.me-btn { border: 0; background: none; padding: 0; cursor: pointer; flex: none; }
.avatar { --c: var(--plum); width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: .95rem; flex: none; position: relative; }
.avatar.sm { width: 26px; height: 26px; font-size: .78rem; }
.avatar.on::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #3BB273; border: 2px solid #fff; }

/* Tabs: bottom bar on phones, inline in header on wide screens */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b); }
.tabs a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: var(--tabbar); text-decoration: none; color: var(--ink-2); font-size: .7rem; font-weight: 600; position: relative; }
.tabs a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { color: var(--plum); }
.tabs a.on svg { stroke-width: 2.2; }
.dot-count { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--danger); color: #fff; font-size: .68rem; line-height: 18px; text-align: center; }
@media (min-width: 882px) {
  .app { padding-bottom: 0; }
  .tabs { position: static; border: 0; background: none; padding: 0; gap: 2px; flex-wrap: wrap; justify-content: center; }
  .tabs a { flex: none; flex-direction: row; height: 40px; padding: 0 14px; border-radius: 99px; font-size: .9rem; gap: 7px; }
  .tabs a svg { width: 19px; height: 19px; }
  .tabs a.on { background: var(--pink-soft); }
  .dot-count { position: static; }
}
.offline { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: .85rem; padding: 6px 16px; font-weight: 600; }
.view { width: min(1320px, 100%); margin: 0 auto; padding: 16px; outline: none; }
.foot { text-align: center; font-size: .78rem; color: var(--ink-2); padding: 8px 16px 20px; }

/* Generic cards and sections */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.section { margin-bottom: 22px; }
.section-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; flex-wrap: wrap; }
.section-h h2 { margin: 0; }
.empty { color: var(--ink-2); padding: 18px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); background: var(--card); }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 99px;
  background: var(--tint); color: var(--ink-2); white-space: nowrap; }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.pink { background: var(--pink-soft); color: var(--plum); }
.list { display: flex; flex-direction: column; gap: 10px; }

/* Week toolbar */
.weekbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.weekbar h1 { font-size: 1.25rem; margin: 0 auto 0 4px; min-width: 0; }
.weekbar .range { display: block; font-family: var(--font-body); font-size: .85rem; color: var(--ink-2); font-weight: 500; }
.admin-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; }

/* Day cards */
.days { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .days { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.day { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 10px; box-shadow: var(--shadow); min-width: 0; }
.day.today { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink-soft), var(--shadow); }
.day.closed { background: var(--tint); box-shadow: none; }
.day.past { opacity: .72; }
.day-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.day-h b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-transform: capitalize; }
.day-h .muted { font-size: .82rem; white-space: nowrap; }
.shift { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; width: 100%; text-align: left;
  padding: 8px; margin: 0 -2px 4px; border-radius: var(--r-sm); border: 0; background: transparent; cursor: pointer; }
.shift:hover { background: var(--tint); }
.shift.mine { background: var(--pink-soft); }
.shift.open-slot .who { color: var(--warn); font-style: italic; }
.shift .who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shift .time { font-variant-numeric: tabular-nums; font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.shift .track { grid-column: 2 / 4; height: 6px; border-radius: 99px; background: var(--tint); position: relative; overflow: hidden; }
.shift .track i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--c, var(--plum)); }
.shift.open-slot .track i { background: repeating-linear-gradient(45deg, var(--warn) 0 4px, transparent 4px 8px); }
.shift .tags { grid-column: 2 / 4; display: flex; gap: 4px; flex-wrap: wrap; }
.shift .tags:empty { display: none; }
.add-shift { width: 100%; margin-top: 2px; border: 1px dashed var(--line); background: transparent; color: var(--ink-2); border-radius: var(--r-sm);
  padding: 6px; cursor: pointer; font-weight: 600; font-size: .85rem; }
.add-shift:hover { border-color: var(--pink); color: var(--plum); }
.day-note { font-size: .82rem; color: var(--ink-2); margin: -4px 0 6px; }

/* My shifts */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--plum); line-height: 1.1; }
.stat span { font-size: .82rem; color: var(--ink-2); }
.my-shift { display: flex; align-items: center; gap: 12px; }
.date-pill { flex: none; width: 52px; text-align: center; border-radius: var(--r-sm); background: var(--tint); padding: 6px 0; line-height: 1.1; }
.date-pill b { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.date-pill span { font-size: .72rem; color: var(--ink-2); text-transform: uppercase; font-weight: 600; }
.my-shift .grow { flex: 1; min-width: 0; }

/* Swaps */
.swap { display: flex; flex-direction: column; gap: 8px; }
.swap-top { display: flex; gap: 10px; align-items: flex-start; }
.swap-top .grow { flex: 1; min-width: 0; }
.swap .note { background: var(--tint); border-radius: var(--r-sm); padding: 6px 10px; font-size: .9rem; }
.swap .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Chat */
.chat { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 882px) { .chat { grid-template-columns: 260px minmax(0, 1fr); } }
.channels { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
@media (min-width: 882px) { .channels { flex-direction: column; overflow: visible; } }
.channel { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; font-weight: 600; font-size: .88rem; text-align: left; max-width: 260px; }
.channel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 882px) { .channel { border-radius: var(--r-sm); max-width: none; } }
.channel.on { background: var(--plum); color: #fff; border-color: var(--plum); }
.channel .dot-count { position: static; }
.chat-pane { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  height: calc(100dvh - 250px); min-height: 320px; overflow: hidden; }
@media (min-width: 882px) { .chat-pane { height: calc(100dvh - 170px); } }
.chat-head { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-head .online { display: flex; gap: 4px; margin-left: auto; }
.msgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 86%; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.bubble { background: var(--tint); border-radius: 16px 16px 16px 4px; padding: 7px 12px; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.me .bubble { background: var(--plum); color: #fff; border-radius: 16px 16px 4px 16px; }
.bubble .meta { display: block; font-size: .72rem; color: var(--ink-2); margin-bottom: 1px; font-weight: 600; }
.msg.me .bubble .meta { color: rgba(255, 255, 255, .75); }
.msg.cont .avatar { visibility: hidden; }
.day-sep { align-self: center; font-size: .74rem; color: var(--ink-2); background: var(--tint); padding: 2px 10px; border-radius: 99px; margin: 6px 0; }
.composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.composer textarea { min-height: 44px; max-height: 120px; resize: none; border-radius: 22px; padding: 10px 14px; }

/* Admin */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.subtabs button { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 14px; font-weight: 600; cursor: pointer; font-size: .88rem; }
.subtabs button.on { background: var(--plum); color: #fff; border-color: var(--plum); }
.user-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.user-row .grow { flex: 1 1 140px; min-width: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.opening-row { display: grid; grid-template-columns: minmax(80px, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.opening-row .times { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.opening-row input[type=time] { width: 110px; }
.staff-line { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.staff-line label.inline { display: flex; align-items: center; gap: 6px; margin: 0; }
.staff-line label.inline span { margin: 0; white-space: nowrap; }
.staff-line input[type=number] { width: 58px; padding: 6px 8px; }
.staff-line input[type=time] { width: 96px; padding: 6px 8px; }
.staff-line label.inline { gap: 5px; }
.staff-line .peak { flex-wrap: nowrap; }
@media (max-width: 380px) { .staff-line input[type=time] { width: 84px; padding: 6px 4px; } .staff-line input[type=number] { width: 50px; } }
.staff-line em { font-style: normal; color: var(--ink-2); }
.log-filter { align-items: flex-end; }
.log-filter label { flex: 1 1 140px; }
.log-day { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--plum); padding: 12px 0 4px; text-transform: capitalize; }
.log-day:first-child { padding-top: 0; }
.log-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.log-item time { color: var(--ink-2); font-size: .78rem; white-space: nowrap; min-width: 58px; padding-top: 4px; font-variant-numeric: tabular-nums; }
.log-body { min-width: 0; overflow-wrap: anywhere; }
.log-item.warn .log-body > b { color: var(--warn); }
.log-item.bad .log-body > b { color: var(--danger); }
.log-item.ok .log-body > b { color: var(--ok); }

/* Bottom sheet / dialog */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(43, 28, 37, .35); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: min(520px, 100%); max-height: 90dvh; overflow-y: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + var(--safe-b));
  box-shadow: 0 -8px 30px rgba(43, 28, 37, .15); }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 22px; } }
.sheet h2 { margin-right: 40px; }
.sheet .sheet-x { float: right; margin: -4px -4px 0 0; }
.sheet .opts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sheet .opts .btn { justify-content: flex-start; min-height: 46px; border-radius: var(--r-sm); }
.pick { display: flex; flex-direction: column; gap: 6px; max-height: 40dvh; overflow-y: auto; margin-bottom: 12px; }
.pick label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink); font-weight: 500; cursor: pointer; }
.pick input { width: 18px; min-height: 18px; height: 18px; accent-color: var(--plum); flex: none; }
.pick label:has(input:checked) { border-color: var(--plum); background: var(--pink-soft); }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.sheet-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.sheet-actions .spacer { margin-right: auto; }
.hint { font-size: .85rem; color: var(--ink-2); background: var(--tint); border-radius: var(--r-sm); padding: 8px 10px; margin: 0 0 12px; }
.hint.warn { background: var(--warn-soft); color: var(--warn); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + var(--safe-b) + 14px); z-index: 60;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: .9rem; font-weight: 500; max-width: calc(100% - 32px);
  box-shadow: var(--shadow); }
@media (min-width: 882px) { .toast { bottom: 24px; } }
.toast.bad { background: var(--danger); }

@media (max-width: 380px) {
  .view { padding: 12px; }
  .top { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .logo-word { width: 86px; height: 16px; }
  .tabs a { font-size: .64rem; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* Week coverage: strip, per-day bar, status chip */
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.strip-day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 2px 6px; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); line-height: 1.15; min-width: 0; }
.strip-day .sd-name { font-size: .7rem; font-weight: 600; color: var(--ink-2); text-transform: capitalize; }
.strip-day .sd-num { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.strip-day .sd-ico { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; margin-top: 2px; }
.strip-day.st-ok .sd-ico { background: var(--ok); }
.strip-day.st-open .sd-ico { background: var(--warn); }
.strip-day.st-gap { background: var(--danger-soft); border-color: #F2C4BE; }
.strip-day.st-gap .sd-ico { background: var(--danger); }
.strip-day.st-closed { background: var(--tint); color: var(--ink-2); }
.strip-day.st-closed .sd-ico { background: #CBBFC4; }
.strip-day.is-today { box-shadow: 0 0 0 2px var(--pink); }

.day { border-left-width: 5px; }
.day.st-ok { border-left-color: var(--ok); }
.day.st-open { border-left-color: var(--warn); }
.day.st-gap { border-left-color: var(--danger); }
.cov-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; margin-bottom: 8px; }
.cov-chip.ok { background: var(--ok-soft); color: var(--ok); }
.cov-chip.open { background: var(--warn-soft); color: var(--warn); }
.cov-chip.gap { background: var(--danger-soft); color: var(--danger); }
.cov-chip.closed { background: var(--line); color: var(--ink-2); }
.cov { margin: 0 0 10px; }
.cov-bar { position: relative; height: 16px; border-radius: 6px; background: var(--tint); overflow: hidden; }
.cov-bar > i { position: absolute; top: 0; bottom: 0; }
.cov-ok { background: var(--cov-ok); }
.cov-ok.multi { background: var(--cov-ok-2); }
.cov-open { background: repeating-linear-gradient(45deg, var(--warn) 0 5px, #E9C48F 5px 10px); }
.cov-gap { background: repeating-linear-gradient(45deg, var(--danger) 0 5px, #E8A39C 5px 10px); }
.cov-ticks span { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .55); }
.cov-axis { display: flex; justify-content: space-between; font-size: .7rem; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* Week layout with stats panel */
.week-layout { display: flex; flex-direction: column-reverse; gap: 14px; }
.week-layout > .days { min-width: 0; }
@media (min-width: 1024px) {
  .week-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .week-stats { position: sticky; top: 76px; }
}
.week-stats details > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.week-stats details > summary::-webkit-details-marker { display: none; }
.week-stats details > summary h2 { margin: 0; font-size: 1.1rem; }
.week-stats details > summary::after { content: "▾"; color: var(--ink-2); margin-left: 6px; }
.week-stats details[open] > summary::after { content: "▴"; }
.week-stats details[open] > summary { margin-bottom: 12px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.kpi { background: var(--tint); border-radius: var(--r-sm); padding: 8px 10px; }
.kpi b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.1; color: var(--plum); }
.kpi span { font-size: .75rem; color: var(--ink-2); }
.kpi.good b { color: var(--ok); }
.kpi.warn b { color: var(--warn); }
.kpi.bad b { color: var(--danger); }
.ustats { display: flex; flex-direction: column; gap: 10px; }
.ustat { display: flex; gap: 10px; align-items: flex-start; }
.ustat.me .us-top b::after { content: " •"; color: var(--pink); }
.us-main { flex: 1; min-width: 0; }
.us-top { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; }
.us-top span { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.us-bar { height: 6px; border-radius: 99px; background: var(--tint); margin: 4px 0 2px; overflow: hidden; }
.us-bar i { display: block; height: 100%; border-radius: 99px; background: var(--c); }
@media (max-width: 380px) { .week-strip { gap: 3px; } .strip-day .sd-num { font-size: .95rem; } }
.cov-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .75rem; color: var(--ink-2); margin: -6px 0 14px; }
.cov-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cov-legend i { display: inline-block; width: 16px; height: 10px; border-radius: 3px; }
.cov-short { background: #E98A5B; }
.cov-peak-row { position: relative; height: 5px; margin-bottom: 2px; }
.cov-peak { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--plum); opacity: .35; }
.cov-need { font-weight: 600; }
.cov-chip.short { background: #FCE6DA; color: #B4532A; }
.day.st-short { border-left-color: #E98A5B; }
.strip-day.st-short { background: #FCE6DA; border-color: #F3C3A8; }
.strip-day.st-short .sd-ico { background: #E98A5B; }
