:root {
  --bg: #080808;
  --bg-2: #0f0f0f;
  --bg-3: #161616;
  --line: rgba(255,255,255,0.09);
  --line-2: rgba(255,255,255,0.16);
  --text: #d4d4d4;
  --white: #ffffff;
  --muted: #8a8a8a;
  --aqua: #00C9B1;
  --aqua-dim: rgba(0,201,177,0.10);
  --aqua-mid: rgba(0,201,177,0.30);
  --warn: #f2b84b;
  --warn-dim: rgba(242,184,75,0.12);
  --bad: #ff6b6b;
  --bad-dim: rgba(255,107,107,0.12);
  --radius: 6px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--aqua); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem max(16px, env(safe-area-inset-right)) 0.6rem max(16px, env(safe-area-inset-left));
  background: rgba(8,8,8,0.92); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--white); }
.logo-crop { position: relative; display: block; width: 70px; height: 33px; overflow: hidden; }
.logo-crop img { position: absolute; width: 118px; height: 118px; left: -24px; top: -42.5px; }
.topbar-right { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.who { color: var(--muted); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }

.page { max-width: 1100px; margin: 0 auto; padding: 1.5rem max(16px, env(safe-area-inset-right)) calc(7rem + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.narrow { max-width: 420px; margin: 3rem auto 0; }
.center { text-align: center; }
.pad { padding: 2rem 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

h1 { font-size: 1.6rem; font-weight: 800; color: var(--white); margin: 0; line-height: 1.2; text-wrap: balance; }
h2 { font-size: 1rem; font-weight: 700; color: var(--white); margin: 0; }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--aqua); margin: 0 0 0.4rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 40px; padding: 0.5rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--bg-3); color: var(--white);
  font-weight: 600; font-size: 0.9rem; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--aqua-mid); }
.btn.primary { background: var(--aqua); border-color: var(--aqua); color: #04110f; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: rgba(255,107,107,0.45); color: var(--bad); }
.btn.small { min-height: 32px; padding: 0.3rem 0.7rem; font-size: 0.82rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--aqua); cursor: pointer; font-size: 0.88rem; }

.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.card + .card { margin-top: 1rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.8rem; }

.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.9rem; min-width: 0; }
.field > span { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.field small { color: var(--muted); font-size: 0.78rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 40px; padding: 0.5rem 0.7rem;
  background: #111; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--white);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(0,201,177,0.14); }
.check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; cursor: pointer; margin-bottom: 0.6rem; }
.check input { width: 18px; height: 18px; accent-color: var(--aqua); margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.8rem; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

.divider { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 0.8rem; margin: 1rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.err { color: var(--bad); font-size: 0.86rem; margin: 0 0 0.8rem; }

.badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; padding: 0.12rem 0.5rem; border-radius: 20px; border: 1px solid var(--line-2); color: var(--text); white-space: nowrap; }
.badge.aqua { color: var(--aqua); border-color: var(--aqua-mid); background: var(--aqua-dim); }
.badge.warn { color: var(--warn); border-color: rgba(242,184,75,0.4); background: var(--warn-dim); }
.badge.bad { color: var(--bad); border-color: rgba(255,107,107,0.4); background: var(--bad-dim); }
.badge.dim { color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 0.6rem; margin-bottom: 0.6rem; }
.filters2 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-bottom: 1.2rem; }
.filters2 .window { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.filters2 .window input { width: auto; }
.filters2 .check { margin: 0; }
@media (max-width: 760px) { .filters { grid-template-columns: 1fr 1fr; } .filters .search { grid-column: 1 / -1; } }

.plist { display: flex; flex-direction: column; gap: 0.5rem; }
.prow {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto; align-items: center; gap: 0.8rem;
  padding: 0.8rem 1rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  color: inherit; text-decoration: none;
}
.prow:hover { border-color: var(--aqua-mid); }
.prow .name { color: var(--white); font-weight: 700; }
.prow .sub { color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .right { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem; }
@media (max-width: 640px) { .prow { grid-template-columns: 1fr; } .prow .right { justify-content: flex-start; } }

.items { display: flex; flex-direction: column; }
.item { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; padding-top: 0.2rem; }
.item .main { min-width: 0; }
.item .title { color: var(--white); font-weight: 600; }
.item .meta { color: var(--muted); font-size: 0.84rem; }
.item .acts { display: flex; gap: 0.4rem; flex-shrink: 0; }
.empty { color: var(--muted); font-size: 0.9rem; margin: 0; }

.kv { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0; }
.kv dt { color: var(--muted); font-size: 0.85rem; }
.kv dd { margin: 0; color: var(--white); overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 0.4rem; } }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.grid2 > .card + .card { margin-top: 0; }
@media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; } }
.col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.col > .card + .card { margin-top: 0; }

.adminbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.8rem; padding: 0.9rem 1rem; margin-bottom: 1rem; border: 1px dashed var(--aqua-mid); border-radius: var(--radius); background: var(--aqua-dim); }
.adminbar .field { margin: 0; }
.adminbar .spacer { flex: 1; }

.dlg { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 0; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; }
.dlg::backdrop { background: rgba(0,0,0,0.7); }
.dlg form { padding: 1.2rem 1.2rem 1rem; }
.dlg h2 { margin-bottom: 1rem; }
.dlg-acts { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.dlg-acts .spacer { flex: 1; }
/* A dialog's own buttons stay in view while its form scrolls. */
.dlg form > .dlg-acts:last-child { position: sticky; bottom: 0; z-index: 2; background: var(--bg-2); border-top: 1px solid var(--line); margin: 0.8rem -1.2rem -1rem; padding: 0.75rem 1.2rem calc(0.75rem + env(safe-area-inset-bottom)); flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; background: var(--bg-3); border: 1px solid var(--aqua-mid); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius); font-size: 0.9rem; box-shadow: 0 8px 24px rgba(0,0,0,0.5); max-width: calc(100vw - 32px); pointer-events: none; }
.toast.bad { border-color: rgba(255,107,107,0.5); }

/* ── v2: tabs, clock, tables, print ── */
.tabs { position: sticky; top: var(--topbar-h, 53px); z-index: 9; display: flex; gap: 0.2rem; overflow-x: auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); background: rgba(8,8,8,0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); scrollbar-width: none; }
.tabs a { position: relative; padding: 0.7rem 0.8rem; color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.tabs a:hover { color: var(--white); }
.tabs a.on { color: var(--white); }
.tabs a.on::after { content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: -1px; height: 2px; background: var(--aqua); }
.tabs .count { display: inline-block; min-width: 1.2rem; margin-left: 0.3rem; padding: 0 0.35rem; border-radius: 10px; background: var(--aqua); color: #04110f; font-size: 0.72rem; text-align: center; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.toolbar .spacer { flex: 1; }
.toolbar .label { color: var(--white); font-weight: 600; margin: 0 0.4rem; }
.toolbar select, .toolbar input[type=date] { width: auto; }

.clock { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; padding: 1.4rem 1rem; }
.clock .timer { font-size: clamp(2.4rem, 9vw, 3.4rem); font-weight: 800; color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; line-height: 1; }
.clock .btn.big { min-width: 220px; min-height: 52px; font-size: 1.05rem; }
.clock .btn.out { background: var(--bad); border-color: var(--bad); color: #1a0505; }
.clock select { max-width: 320px; }

.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tbl th, .tbl td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: rgba(255,255,255,0.03); }
.tbl tfoot td { color: var(--white); font-weight: 700; border-bottom: 0; }
.tbl .sub { color: var(--muted); font-size: 0.8rem; }
@media (max-width: 640px) { .hide-sm { display: none; } }

.pick-list { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.8rem; }
.pick-row { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick-row:last-child { border-bottom: 0; }
.pick-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--aqua); flex-shrink: 0; }
.pick-row .who { color: var(--white); font-weight: 600; }
.dlg.wide { width: min(680px, calc(100vw - 32px)); }

.files { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.pre { white-space: pre-wrap; }

.print-area { display: none; }
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #000 !important; }
  body > *:not(.print-area) { display: none !important; }
  .print-area { display: block !important; font: 11pt/1.4 Arial, Helvetica, sans-serif; color: #000; }
  .ts { page-break-after: always; }
  .ts:last-child { page-break-after: auto; }
  .ts-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 10px; }
  .ts-brand { font-size: 18pt; font-weight: 800; letter-spacing: 1px; }
  .ts-brand small { display: block; font-size: 9pt; font-weight: 400; letter-spacing: 0; color: #444; }
  .ts-title { font-size: 13pt; font-weight: 700; text-align: right; }
  .ts-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin-bottom: 10px; }
  .ts-meta b { font-weight: 700; }
  .ts table { width: 100%; border-collapse: collapse; }
  .ts th, .ts td { border: 1px solid #888; padding: 4px 6px; text-align: left; vertical-align: top; }
  .ts th { background: #eee; font-size: 9.5pt; }
  .ts td.num, .ts th.num { text-align: right; white-space: nowrap; }
  .ts tfoot td { font-weight: 700; }
  .ts-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
  .ts-sign div { border-top: 1px solid #000; padding-top: 4px; font-size: 9pt; }
  .ts-note { font-size: 9pt; color: #333; margin-top: 10px; }
}

/* ── legal pages and signed documents ── */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { margin-bottom: 0.3rem; }
.legal h2 { margin: 1.6rem 0 0.5rem; font-size: 1.05rem; }
.legal p, .legal li { color: var(--text); line-height: 1.65; }
.legal ul { padding-left: 1.2rem; }
.legal .updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.2rem; }
.doc { background: #fbfbf9; color: #1b1f1e; border-radius: var(--radius); padding: 1.6rem 1.6rem 1.2rem; font-size: 0.95rem; line-height: 1.6; }
.doc h1 { color: #111; font-size: 1.25rem; text-align: center; margin-bottom: 0.2rem; }
.doc h2 { color: #111; font-size: 1rem; margin: 1.1rem 0 0.4rem; }
.doc p { margin: 0 0 0.55rem; }
.doc p.sub { text-align: center; color: #555; margin-bottom: 1rem; }
.doc p.in1 { padding-left: 1rem; }
.doc p.in2 { padding-left: 2rem; }
.doc .sigblock { margin-top: 1.4rem; padding-top: 0.9rem; border-top: 2px solid #222; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: 0.88rem; }
.doc .sig { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.5rem; color: #0b3d63; line-height: 1.2; }
.doc .answers { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 0.35rem 1rem; }
.doc .answers dt { font-weight: 700; }
.doc .answers dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .doc { padding: 1.1rem; } .doc .sigblock, .doc .answers { grid-template-columns: 1fr; } }
.doc-scroll { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.skip-sign { margin: 0 0 1rem; }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: start; padding: 0.7rem; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.5rem; }
.field-row .ctrls { display: flex; gap: 0.3rem; }
@media print {
  .doc { background: #fff; padding: 0; font: 10.5pt/1.45 Arial, Helvetica, sans-serif; }
  .print-area .doc .sig { color: #000; }
}

/* ── LUVO Hub lockup ── */
.brand { gap: 0.7rem; }
.brand-rule { display: block; width: 2px; height: 28px; background: var(--aqua); border-radius: 1px; }
.brand-hub { font-family: "Bebas Neue", Inter, sans-serif; font-size: 46px; line-height: 0.78; letter-spacing: 0.06em; color: var(--aqua); padding-top: 4px; }
.lockup-lg { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 0 0.6rem; }
.lockup-lg .logo-crop { width: 119px; height: 56px; }
.lockup-lg .logo-crop img { width: 200px; height: 200px; left: -40.7px; top: -72px; }
.lockup-lg .brand-rule { width: 3px; height: 54px; }
.lockup-lg .brand-hub { font-size: 78px; padding-top: 6px; }
.lockup-tag { text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); margin: 0 0 2rem; padding-left: 0.4em; }
.signin-screen .topbar { display: none; }
.signin-screen .page { padding-top: 3rem; }

/* ── phones: menu button instead of the tab row ── */
.menu-btn { display: none; }
.tabs-foot { display: none; }
@media (max-width: 720px) {
  .has-menu .topbar-right { display: none; }
  .menu-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.35); border-radius: var(--radius); cursor: pointer; -webkit-appearance: none; appearance: none; }
  .menu-btn[hidden] { display: none; }
  .menu-btn svg { display: block; }
  .menu-btn .i-close { display: none; }
  .menu-open .menu-btn .i-open { display: none; }
  .menu-open .menu-btn .i-close { display: block; }
  .menu-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); }
  .tabs { display: none; position: fixed; top: var(--topbar-h, 57px); left: 0; right: 0; z-index: 30; flex-direction: column; gap: 0; overflow: visible;
    padding: 0.2rem max(16px, env(safe-area-inset-right)) 1rem max(16px, env(safe-area-inset-left)); background: #0b0b0b; box-shadow: 0 18px 30px rgba(0,0,0,0.55); backdrop-filter: none; }
  .menu-open .tabs { display: flex; }
  .tabs a { padding: 0.95rem 0.2rem; font-size: 1.02rem; color: #e6e6e6; border-bottom: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: space-between; }
  .tabs a.on { color: var(--aqua); }
  .tabs a.on::after { display: none; }
  .tabs-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; }
  .menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 25; }
  .topbar { z-index: 40; }
}

/* In-hub file viewer */
.file-dlg { width: min(960px, calc(100vw - 24px)); }
.file-view { display: grid; place-items: center; min-height: 160px; max-height: calc(100vh - 220px); max-height: calc(100dvh - 200px); overflow: auto; background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; margin-bottom: 0.8rem; }
.file-view img { max-width: 100%; height: auto; display: block; }
.file-view iframe { width: 100%; height: calc(100vh - 240px); height: calc(100dvh - 220px); min-height: 360px; border: 0; background: #fff; }
.file-view p { padding: 1rem; }
.dlg-acts a.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
@media (max-width: 720px) { .file-dlg .dlg-acts { flex-wrap: wrap; } .file-dlg .dlg-acts .spacer { display: none; } }

/* Phone interview calendar */
button.prow { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.cal-card { overflow: hidden; }
.cal-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; }
.cal-head h2 { margin: 0; min-width: 9.5rem; text-align: center; }
.cal-head .spacer { flex: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-dow { background: var(--bg-3); color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.4rem 0.5rem; }
.cal-cell { background: var(--bg-2); min-height: 92px; padding: 0.35rem; display: flex; flex-direction: column; gap: 0.2rem; cursor: pointer; min-width: 0; }
.cal-cell:hover { background: var(--bg-3); }
.cal-cell:focus-visible { outline: 2px solid var(--aqua); outline-offset: -2px; }
.cal-cell.out { background: var(--bg); }
.cal-cell.out .cal-num { color: #555; }
.cal-num { font-size: 0.8rem; font-weight: 700; color: var(--text); width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; }
.cal-cell.today .cal-num { background: var(--aqua); color: #04110f; }
.cal-cell.sel { box-shadow: inset 0 0 0 2px var(--aqua-mid); }
.cal-chips { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.cal-chip { display: block; width: 100%; text-align: left; font-size: 0.72rem; line-height: 1.3; padding: 0.15rem 0.35rem; border-radius: 4px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-chip.mine { border-color: var(--aqua-mid); background: var(--aqua-dim); color: var(--white); }
.cal-chip.past { opacity: 0.5; text-decoration: line-through; }
.cal-chip:hover { border-color: var(--aqua); }
.cal-more { font-size: 0.7rem; color: var(--muted); padding-left: 0.35rem; }
.cal-dots { display: none; gap: 3px; justify-content: center; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.cal-dots i.mine { background: var(--aqua); }
.cal-dots i.past { opacity: 0.4; }
.cal-key { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin: 0.7rem 0 0; }
.cal-key .key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--bg-3); margin-left: 0.6rem; }
.cal-key .key:first-child { margin-left: 0; }
.cal-key .key.mine { border-color: var(--aqua-mid); background: var(--aqua); }
@media (max-width: 720px) {
  .cal-cell { min-height: 54px; align-items: center; padding: 0.25rem 0.1rem; }
  .cal-chips { display: none; }
  .cal-dots { display: flex; }
  .cal-dow { padding: 0.35rem 0; text-align: center; font-size: 0.66rem; letter-spacing: 0.04em; }
  .cal-head h2 { min-width: 0; font-size: 1.05rem; }
}

/* Phones: bigger tap targets, no zoom-in on fields, dialogs that fit the visible screen */
@media (max-width: 720px) {
  .btn { min-height: 44px; }
  .btn.small { min-height: 40px; padding: 0.4rem 0.8rem; }
  input, select, textarea { font-size: 16px; }
  .dlg, .dlg.wide, .file-dlg { width: calc(100vw - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .dlg form { padding: 1rem 1rem 1rem; }
  .dlg form > .dlg-acts:last-child { margin: 0.8rem -1rem -1rem; padding-left: 1rem; padding-right: 1rem; }
  .dlg form > .dlg-acts:last-child .btn { flex: 1 1 auto; }
  .dlg form > .dlg-acts:last-child .spacer { display: none; }
  .check input { width: 22px; height: 22px; }
  .toast { bottom: auto; top: calc(var(--topbar-h, 57px) + 10px); }
}

/* Admin notification bell */
.bell-btn { position: relative; margin-left: auto; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.35); border-radius: var(--radius); cursor: pointer; -webkit-appearance: none; appearance: none; }
.bell-btn[hidden] { display: none; }
.bell-btn:hover { border-color: var(--aqua-mid); }
.bell-btn svg { display: block; }
.bell-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--aqua); color: #04110f; font-size: 0.72rem; font-weight: 800; line-height: 20px; text-align: center; }
.bell-panel { position: fixed; z-index: 45; top: calc(var(--topbar-h, 57px) + 6px); right: max(12px, env(safe-area-inset-right)); width: min(380px, calc(100vw - 24px)); max-height: calc(100dvh - var(--topbar-h, 57px) - 24px); overflow-y: auto; overscroll-behavior: contain; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,0.6); }
.bell-head { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); color: var(--white); }
.bell-item { display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--line); padding-right: 0.8rem; }
.bell-item:last-child { border-bottom: 0; }
.bell-item a { flex: 1; min-width: 0; display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.8rem 1rem; color: var(--text); text-decoration: none; min-height: 44px; }
.bell-item a:hover { background: var(--bg-3); }
.bell-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 0.45rem; background: var(--aqua); }
.bell-dot.notice { background: var(--warn); }
.bell-title { display: block; color: var(--white); font-weight: 600; font-size: 0.92rem; }
.bell-meta { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.15rem; }
.bell-empty { margin: 0; padding: 1rem; color: var(--muted); font-size: 0.9rem; }
.leave-card { margin-top: 1.5rem; border-color: rgba(255,107,107,0.25); }
@media (max-width: 720px) { .bell-btn { margin-right: 0.5rem; } #reqForm button[type=submit] { width: 100%; } }
.btn.danger.armed { background: var(--bad); border-color: var(--bad); color: #1a0505; font-weight: 700; }
