/* Fit Club — clean, mobile-first UI */
:root {
  --bg: #f4f7f6;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #0f766e;
  --brand-2: #22c55e;
  --brand-soft: #ccfbf1;
  --prospect: #0ea5e9;
  --client: #16a34a;
  --dropped: #e11d48;
  --scheduled: #f59e0b;
  --confirmed: #16a34a;
  --cancelled: #94a3b8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .05);
  --side: 236px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
h3 { font-size: 15px; margin: 6px 0 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
code { background: #f1f5f9; padding: 1px 5px; border-radius: 5px; }
.ic { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.strong { font-weight: 600; }
.text-danger { color: var(--dropped); }
.mt { margin-top: 10px; }
.row { display: flex; align-items: center; }
.row.gap { gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; gap: 10px; }
.inline { display: inline; margin: 0; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--side); flex: none; position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, #0b3b37 0%, #0f5f58 100%); color: #d1fae5;
  display: flex; flex-direction: column; padding: 18px 12px; transition: width .2s;
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; }
.brand.big { color: var(--ink); justify-content: center; font-size: 20px; padding-bottom: 20px; }
.logo {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, .35);
}
.sidebar nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sidebar nav a, .side-foot .logout {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: #ccfbf1; white-space: nowrap; overflow: hidden; font-weight: 500;
}
.sidebar nav a:hover, .side-foot .logout:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.sidebar nav a.active { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 3px 0 0 var(--brand-2); }
.side-foot { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; }
.collapse-btn { background: none; border: 0; color: #99f6e4; cursor: pointer; font-size: 18px; text-align: right; padding: 4px 10px; }
.lang-switch { display: inline-flex; gap: 2px; background: rgba(15, 23, 42, .08); border-radius: 9px; padding: 3px; }
.sidebar .lang-switch { background: rgba(255, 255, 255, .1); align-self: flex-start; margin-left: 8px; }
.lang-switch a { padding: 3px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; color: inherit; }
.lang-switch a.on { background: #fff; color: var(--brand); }
.lang-switch a:hover { text-decoration: none; }
body.nav-mini { --side: 68px; }
body.nav-mini .sidebar nav a span, body.nav-mini .brand-name, body.nav-mini .side-foot .logout span, body.nav-mini .sidebar .lang-switch { display: none; }
body.nav-mini .collapse-btn { transform: rotate(180deg); text-align: center; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 14px 26px; background: rgba(244, 247, 246, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.topbar h1 { font-size: 21px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; gap: 8px; }
.content { padding: 8px 26px 40px; }
.icon-btn { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink); }
.only-mobile { display: none; }
.bottom-nav, .nav-scrim { display: none; }

/* ---------- Components ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; border: 1px solid rgba(226, 232, 240, .7); }
.card.flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 760px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: .15s;
}
.btn:hover { text-decoration: none; filter: brightness(.97); }
.btn.primary { background: linear-gradient(135deg, #14b8a6, var(--brand)); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(15, 118, 110, .25); }
.btn.success { background: var(--client); border-color: var(--client); color: #fff; }
.btn.ghost { background: #fff; }
.btn.danger-ghost { color: var(--dropped); border-color: #fecdd3; background: #fff1f2; }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.big { padding: 14px; font-size: 16px; border-radius: 12px; margin-top: 6px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.st-prospect { background: #e0f2fe; color: #0369a1; }
.badge.st-client { background: #dcfce7; color: #15803d; }
.badge.st-dropped { background: #ffe4e6; color: #be123c; }
.badge.st-scheduled { background: #fef3c7; color: #b45309; }
.badge.st-confirmed { background: #dcfce7; color: #15803d; }
.badge.st-cancelled { background: #f1f5f9; color: #64748b; text-decoration: line-through; }

.flash { padding: 11px 14px; border-radius: 10px; margin: 0 26px 14px; font-weight: 500; }
.content .flash, .auth-card .flash, form .flash { margin: 10px 0; }
.flash-ok { background: #dcfce7; color: #166534; }
.flash-err { background: #ffe4e6; color: #9f1239; }
.flash-warn { background: #fef3c7; color: #92400e; }
.net-banner { margin: 0 26px 12px; padding: 8px 12px; border-radius: 10px; background: #1e293b; color: #fff; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.net-banner[hidden] { display: none; }

/* forms */
.form label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 12px; }
.form input:not([type=checkbox]):not([type=radio]):not([type=color]), .form select, .form textarea,
.toolbar input, .toolbar select, .types-table input:not([type=checkbox]):not([type=color]) {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px; font: inherit; font-size: 15px; font-weight: 400;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); outline: none; transition: .15s;
  -webkit-appearance: none; appearance: none; min-height: 42px;
}
.form select, .toolbar select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 32px; }
.form input:focus, .form select:focus, .form textarea:focus, .toolbar input:focus { border-color: #5eead4; box-shadow: 0 0 0 3px rgba(20, 184, 166, .18); }
.form label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14.5px; }
.form input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
input[type=color] { width: 42px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.w60 { max-width: 70px; }

.type-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.type-opt { margin: 0 !important; cursor: pointer; }
.type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.type-opt span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 500; font-size: 13.5px; }
.type-opt span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.type-opt input:checked + span { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); }
.seg { display: inline-flex; background: #f1f5f9; border-radius: 11px; padding: 3px; margin-top: 6px; flex-wrap: wrap; }
.seg-opt { margin: 0 !important; }
.seg-opt input { position: absolute; opacity: 0; }
.seg-opt span { display: block; padding: 7px 14px; border-radius: 9px; cursor: pointer; font-weight: 500; }
.seg-opt input:checked + span { background: #fff; box-shadow: var(--shadow); }
.seg-opt.st-confirmed input:checked + span { color: var(--confirmed); }
.seg-opt.st-cancelled input:checked + span { color: var(--dropped); }
.seg-opt.st-scheduled input:checked + span { color: #b45309; }

details.more { border: 1px dashed #cbd5e1; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
details.more[open] { border-style: solid; background: #f8fafc; }
details.more summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--brand); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { margin-bottom: 12px; }
.quick-rem { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.quick-rem button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }

/* tables */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.table td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table.compact td, .table.compact th { padding: 8px 10px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rows-link tbody tr { cursor: pointer; transition: background .1s; }
.rows-link tbody tr:hover { background: #f0fdfa; }
.table .empty { text-align: center; color: var(--muted); padding: 40px; }
.table-scroll { overflow: auto; max-height: 440px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 14px; }
.chip b { margin-left: 4px; color: var(--muted); }
.chip:hover { text-decoration: none; border-color: #99f6e4; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on b { color: #cbd5e1; }
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.toolbar .search { flex: 1; position: relative; }
.toolbar .search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar .search input { padding-left: 36px; margin: 0; }
.toolbar select { width: auto; margin: 0; }

.today-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list li.is-cancelled a { text-decoration: line-through; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.icon-link { margin-left: auto; color: var(--client); }

/* prospect detail */
.detail-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.appt-list { list-style: none; padding: 0; margin: 0; }
.appt-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; background: #f8fafc; border-left: 4px solid var(--c); }
.appt-list li.is-cancelled { opacity: .6; }
.appt-list li.is-cancelled b { text-decoration: line-through; }
.timeline { list-style: none; margin: 14px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 8px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
.timeline li.tl-status::before { background: var(--brand); }
.timeline li.tl-note::before { border-color: var(--scheduled); }
.tl-when { font-size: 12px; color: var(--muted); }
.tl-what { font-size: 14px; }
.tl-what .old { color: var(--muted); text-decoration: line-through; }
.tl-what .new { font-weight: 600; }
.note-form { display: flex; gap: 8px; align-items: flex-end; }
.note-form textarea { margin: 0 !important; }
.danger-zone { margin: 8px 0 30px; }

/* calendar */
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; font-size: 13.5px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: #fff; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
.legend-item input { accent-color: var(--brand); }
.legend-sep { flex: 1; }
.legend-key { color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.legend-key .k { display: inline-block; width: 16px; height: 12px; border-radius: 3px; background: #64748b; color: #fff; font-size: 9px; text-align: center; line-height: 12px; }
.legend-key .k-scheduled { background: repeating-linear-gradient(45deg, #64748b, #64748b 3px, #94a3b8 3px, #94a3b8 6px); }
.legend-key .k-cancelled { opacity: .35; }
.cal-card { padding: 14px; }
.fc { --fc-border-color: #eef2f7; --fc-today-bg-color: #f0fdfa; --fc-button-bg-color: #fff; --fc-button-text-color: #0f172a; --fc-button-border-color: #e2e8f0;
  --fc-button-hover-bg-color: #f1f5f9; --fc-button-hover-border-color: #e2e8f0; --fc-button-active-bg-color: #0f766e; --fc-button-active-border-color: #0f766e; --fc-now-indicator-color: #e11d48; font-size: 13.5px; }
.fc .fc-button { border-radius: 9px !important; font-weight: 600; text-transform: none; box-shadow: none !important; padding: 6px 12px; }
.fc .fc-button-group { gap: 4px; }
.fc .fc-button-active { color: #fff !important; }
.fc .fc-toolbar-title { font-size: 18px; font-weight: 700; }
.fc .fc-col-header-cell-cushion, .fc .fc-daygrid-day-number { color: var(--ink); }
.fc-event { border-radius: 7px !important; padding: 1px 3px; cursor: pointer; }
.fc-ev { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; }
.fc-event.st-scheduled { background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .0), rgba(255, 255, 255, .0) 6px, rgba(255, 255, 255, .22) 6px, rgba(255, 255, 255, .22) 12px); }
.fc-event.st-cancelled { opacity: .42; }
.fc-event.st-cancelled .fc-ev, .fc-list-event.st-cancelled .fc-list-event-title { text-decoration: line-through; }
.fc-daygrid-dot-event .fc-ev { color: var(--ink); }
.fc-list-event .fc-ev { white-space: normal; }

.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 18px; padding: 22px; width: 100%; max-width: 420px; position: relative; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.modal-x { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }
.ev-type { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ev-type::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* dashboard */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); border: 1px solid rgba(226, 232, 240, .7); position: relative; overflow: hidden; }
.kpi span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 28px; letter-spacing: -.02em; }
.kpi small { display: block; color: var(--client); font-weight: 600; }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.kpi.k-prospect::after { background: var(--prospect); }
.kpi.k-client::after { background: var(--client); }
.kpi.k-dropped::after { background: var(--dropped); }
.tabs { display: inline-flex; background: #e2e8f0; padding: 4px; border-radius: 12px; margin-bottom: 16px; flex-wrap: wrap; gap: 2px; }
.tabs a { padding: 7px 16px; border-radius: 9px; color: #334155; font-weight: 600; font-size: 14px; }
.tabs a.on { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.tabs a:hover { text-decoration: none; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dash-grid .card { margin: 0; }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.chart-box { position: relative; height: 290px; }
.chart-box.sm { height: 260px; }
.period-sum { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; color: var(--muted); }
.period-sum b { color: var(--ink); font-size: 20px; }
.period-sum .c-client b { color: var(--client); }
.period-sum .c-dropped b { color: var(--dropped); }

/* settings */
.types-table td { padding: 6px 8px; }
.types-table input:not([type=checkbox]):not([type=color]) { margin: 0; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 6px; }
pre.code { background: #0f172a; color: #a7f3d0; padding: 12px 14px; border-radius: 10px; overflow-x: auto; font-size: 13px; cursor: copy; white-space: pre-wrap; word-break: break-all; }

/* capture */
.capture-card { margin-left: auto; margin-right: auto; }
.page-capture .content { max-width: 760px; margin: 0 auto; width: 100%; }
.queue-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fef3c7; color: #92400e; padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; font-weight: 600; }
.queue-bar[hidden] { display: none; }
.consent { background: #f0fdfa; padding: 10px 12px; border-radius: 10px; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 200; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: 92vw; text-align: center; }
.toast.ok { background: #166534; }
.toast.warn { background: #b45309; }
.toast[hidden] { display: none; }

/* auth */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(circle at 20% 10%, #ccfbf1 0, transparent 45%), radial-gradient(circle at 90% 90%, #dcfce7 0, transparent 40%), var(--bg); }
.auth-card { background: #fff; padding: 30px; border-radius: 20px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(15, 23, 42, .08); }
.auth-card.wide { max-width: 640px; }
.auth-card .lang-switch { display: flex; justify-content: center; width: max-content; margin: 10px auto 0; }

/* ---------- Mobile ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .span3 { grid-column: span 2; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 15px; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s; width: 250px; }
  body.nav-open .sidebar { transform: none; box-shadow: 10px 0 40px rgba(0, 0, 0, .2); }
  body.nav-open .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 35; }
  body.nav-mini { --side: 250px; }
  body.nav-mini .sidebar nav a span, body.nav-mini .brand-name, body.nav-mini .side-foot .logout span { display: inline; }
  body.nav-mini .sidebar .lang-switch { display: inline-flex; }
  .collapse-btn { display: none; }
  .only-mobile { display: inline-flex; }
  .hide-mobile { display: none; }
  .topbar { padding: 10px 14px; }
  .topbar h1 { font-size: 18px; }
  .content { padding: 4px 12px 20px; }
  .flash, .net-banner { margin-left: 12px; margin-right: 12px; }
  .card { padding: 14px; border-radius: 12px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .today-grid { grid-template-columns: 1fr; gap: 0; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi b { font-size: 24px; }
  .dash-grid { grid-template-columns: 1fr; }
  .span2, .span3 { grid-column: auto; }
  .chart-box { height: 240px; }
  .toolbar { flex-direction: column; }
  .toolbar select { width: 100%; }

  /* table → cards */
  table.responsive thead { display: none; }
  table.responsive, table.responsive tbody, table.responsive tr, table.responsive td { display: block; width: 100%; }
  table.responsive tr { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
  table.responsive td { padding: 0; border: 0; font-size: 13.5px; }
  table.responsive td:empty { display: none; }
  table.responsive td[data-l]:not(:nth-child(2)):not(:nth-child(5))::before { content: attr(data-l) ": "; color: var(--muted); font-size: 12px; }
  table.responsive td:nth-child(2) { grid-column: 1; grid-row: 1; font-size: 16px; }
  table.responsive td:nth-child(5) { grid-column: 2; grid-row: 1; text-align: right; }
  table.responsive td:nth-child(1) { grid-column: 1 / -1; color: var(--muted); }
  table.responsive td.empty { grid-column: 1 / -1; }

  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; align-items: center;
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--muted); font-weight: 600; min-width: 58px; }
  .bottom-nav a:hover { text-decoration: none; }
  .bottom-nav a.fab { width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; justify-content: center; margin-top: -26px; box-shadow: 0 8px 20px rgba(15, 118, 110, .4); min-width: 0; }

  .fc .fc-toolbar { flex-wrap: wrap; gap: 8px; }
  .fc .fc-toolbar-title { font-size: 16px; }
  .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(2) { order: -1; width: 100%; text-align: center; }
  .fc .fc-footer-toolbar { margin-top: 10px; }
  .fc .fc-button { padding: 6px 9px; font-size: 13px; }
  .cal-card { padding: 8px; }
  .legend-sep { display: none; }
  .legend-key { width: 100%; font-size: 12px; }
  .cal-legend { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .cal-legend .legend-item { flex: none; }
  .note-form { flex-direction: column; align-items: stretch; }
  .toast { bottom: 96px; }
}
