/* Mobile-first. Renkler rol bazlı token'lar; koyu tema ayrıca seçilmiş değerlerle gelir. */
:root {
  color-scheme: light;
  --plane: #f9f9f7;
  --surface: #fcfcfb;
  --raised: #ffffff;
  --ink: #0b0b0b;
  --ink2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, .10);
  --wash: rgba(11, 11, 11, .05);
  --accent: #2a78d6;
  --on-accent: #ffffff;
  --good: #006300;
  --bad: #b82f2f;
  --warn-bg: #fdf1d3;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
}
/* Koyu tema: sistem tercihi (kullanıcı Açık seçmediyse) ya da kullanıcının Koyu seçimi. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --plane: #0d0d0d;
    --surface: #1a1a19;
    --raised: #242422;
    --ink: #f0efec;
    --ink2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, .10);
    --wash: rgba(255, 255, 255, .07);
    --accent: #3987e5;
    --on-accent: #ffffff;
    --good: #0ca30c;
    --bad: #e66767;
    --warn-bg: #3a2f12;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --plane: #0d0d0d;
  --surface: #1a1a19;
  --raised: #242422;
  --ink: #f0efec;
  --ink2: #c3c2b7;
  --muted: #898781;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, .10);
  --wash: rgba(255, 255, 255, .07);
  --accent: #3987e5;
  --on-accent: #ffffff;
  --good: #0ca30c;
  --bad: #e66767;
  --warn-bg: #3a2f12;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0 12px calc(24px + env(safe-area-inset-bottom));
  background: var(--plane);
  color: var(--ink);
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  max-width: 1500px;
  margin-inline: auto;
}
h1, h2, p { margin: 0; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- üst bar ---------------------------------------------------------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 0 10px;
}
.top h1 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.sync { display: flex; align-items: center; gap: 6px; color: var(--ink2); font-size: 12px; margin-top: 2px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.idle { background: var(--good); }
.dot.error { background: var(--bad); }
.dot.running { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot.running { animation: none; } }

.btn {
  border: 1px solid var(--border); background: var(--raised); border-radius: 8px;
  padding: 8px 14px; font-weight: 550; min-height: 36px; white-space: nowrap;
}
.btn:hover { background: var(--wash); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.ghost { background: transparent; font-weight: 500; font-size: 13px; padding: 6px 10px; min-height: 32px; }

/* --- sekmeler --------------------------------------------------------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--grid); margin-bottom: 12px; }
.tabs button {
  border: 0; background: transparent; padding: 10px 14px; min-height: 42px; font-weight: 550; color: var(--ink2);
  border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 6px 6px 0 0;
}
.tabs button:hover { background: var(--wash); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.panel { display: grid; gap: 12px; min-width: 0; }
.panel[hidden] { display: none; }

/* --- filtreler -------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg { display: flex; border: 1px solid var(--border); border-radius: 8px; background: var(--raised); overflow: hidden; }
.seg button {
  border: 0; background: transparent; padding: 8px 12px; min-height: 36px; font-weight: 500;
  border-right: 1px solid var(--border);
}
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--plane); }
.dims { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; gap: 6px; align-items: baseline; border: 1px solid var(--border);
  background: var(--raised); border-radius: 8px; padding: 8px 12px; min-height: 36px; max-width: 100%;
}
.pill span { color: var(--ink2); }
.pill b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.pill.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.range-note { color: var(--ink2); font-size: 12px; margin: 8px 0 12px; min-height: 17px; }

/* --- içerik ----------------------------------------------------------- */
main { display: grid; gap: 12px; transition: opacity .15s; }
body.loading main { opacity: .55; }
.notice {
  background: var(--warn-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font-size: 13px; overflow-wrap: anywhere;
}
.notice b { font-weight: 650; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.kpi-label { color: var(--ink2); font-size: 12px; }
.kpi-value { font-size: 22px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; white-space: nowrap; }
.kpi-value.na { color: var(--muted); }
.kpi-delta { font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-delta .chg.good { color: var(--good); font-weight: 600; }
.kpi-delta .chg.bad { color: var(--bad); font-weight: 600; }
.kpi-delta .chg.flat { color: var(--ink2); font-weight: 600; }
.kpi-note { font-size: 11px; color: var(--muted); white-space: nowrap; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; min-width: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; min-height: 52px; }
.card h2 { font-size: 15px; font-weight: 650; }
.card h2 small { font-weight: 400; color: var(--ink2); font-size: 12px; margin-left: 6px; }
select {
  border: 1px solid var(--border); background: var(--raised); border-radius: 8px;
  padding: 6px 10px; min-height: 36px; max-width: 60%;
}

.chart-box { position: relative; height: 280px; padding: 0 8px 4px 4px; }
.empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--ink2); font-size: 13px; text-align: center; padding: 0 24px;
}
.empty[hidden] { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 6px 10px 12px; }
.legend button {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent;
  padding: 5px 6px; border-radius: 6px; font-size: 12.5px; color: var(--ink); min-height: 28px;
}
.legend button:hover { background: var(--wash); }
.legend button[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; }
.legend button[aria-pressed="false"] .key { opacity: .35; }
.legend .avg { color: var(--ink2); font-variant-numeric: tabular-nums; }
.legend button[aria-pressed="false"] .avg { color: var(--muted); }
.legend button:disabled { color: var(--muted); cursor: default; background: transparent; }
.legend button:disabled .key { opacity: .35; }
.key { width: 16px; height: 0; border-top: 2px solid; flex: none; border-radius: 1px; }
.key.dashed { border-top-style: dashed; }

.chart-note { color: var(--ink2); font-size: 12px; padding: 0 12px 12px; margin-top: -4px; }
.chart-note[hidden] { display: none; }

/* --- tablolar --------------------------------------------------------- */
.tbl-wrap { overflow: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--grid); }
.tbl-wrap.tall { max-height: 72vh; }
table { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
th, td { padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--grid); }
thead th {
  position: sticky; top: 0; z-index: 2; background: var(--surface); color: var(--ink2);
  font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--axis);
}
th.first {
  position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left;
  box-shadow: 1px 0 0 var(--axis); max-width: 150px; overflow: hidden; text-overflow: ellipsis;
}
thead th.first { z-index: 3; }
thead tr.groups th { height: 32px; padding-top: 4px; padding-bottom: 4px; text-align: left; color: var(--ink); font-weight: 650; }
thead tr.cols th { top: 32px; }
.colbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 12px 10px; }
.colbar-label { color: var(--ink2); font-size: 12px; margin-right: 2px; }
.colchip {
  display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px;
  background: var(--raised); font-size: 12.5px; min-height: 32px; overflow: hidden;
}
.colchip b { font-weight: 600; padding: 0 4px; }
.colchip button { border: 0; background: transparent; min-width: 28px; min-height: 32px; color: var(--ink2); font-size: 14px; }
.colchip button:hover:not(:disabled) { background: var(--wash); color: var(--ink); }
.colchip button:disabled { opacity: .3; cursor: default; }
button.colchip.add { padding: 0 10px; border-style: dashed; background: transparent; color: var(--ink2); }
button.colchip.add:hover { background: var(--wash); color: var(--ink); }
tbody th { font-weight: 500; color: var(--ink); }
tbody th small { color: var(--muted); font-weight: 400; margin-left: 5px; }
tbody th .key { display: inline-block; vertical-align: middle; margin-right: 6px; width: 10px; }
.grp { border-left: 1px solid var(--axis); }
tr.total th, tr.total td { font-weight: 650; background: var(--plane); border-bottom: 1px solid var(--axis); }
td.na { color: var(--muted); }
td.live { color: var(--ink2); }
.live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  margin-right: 5px; vertical-align: middle; animation: pulse 1.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th.first { z-index: 1; }
.tbl-empty { padding: 20px 12px; color: var(--ink2); font-size: 13px; }

.foot { color: var(--muted); font-size: 11.5px; margin-top: 14px; line-height: 1.6; overflow-wrap: anywhere; }

/* --- dialoglar: mobilde alt sayfa, geniş ekranda ortalanmış ------------ */
dialog.sheet {
  border: 1px solid var(--border); background: var(--surface); color: var(--ink); padding: 0;
  width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 82dvh;
}
dialog.sheet::backdrop { background: rgba(0, 0, 0, .45); }
dialog.sheet form { display: flex; flex-direction: column; max-height: 82dvh; }
dialog.sheet header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
dialog.sheet h2 { font-size: 16px; font-weight: 650; }
dialog.sheet footer {
  display: flex; gap: 6px; justify-content: flex-end; padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--grid);
}
dialog.sheet footer .primary { margin-left: auto; }
.icon { border: 0; background: transparent; width: 36px; height: 36px; border-radius: 8px; font-size: 15px; color: var(--ink2); }
.icon:hover { background: var(--wash); }
#pickSearch {
  border: 1px solid var(--border); background: var(--raised); border-radius: 8px; padding: 9px 10px;
  min-height: 40px; font-size: 16px; /* iOS'ta odaklanınca zoom yapmasın */
}
#pickSearch { margin: 0 16px 8px; }
.pick-list { overflow: auto; padding: 0 8px 8px; min-height: 80px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 8px; min-height: 44px; }
.opt:hover { background: var(--wash); }
.opt input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt[hidden] { display: none; }
.cal-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 2px 16px 10px; }
.cal-summary div { border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; display: grid; gap: 1px; background: var(--raised); }
.cal-summary span { font-size: 11.5px; color: var(--ink2); }
.cal-summary b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal { padding: 0 12px 10px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 6px; }
.cal-title { border: 0; background: transparent; font-size: 14px; font-weight: 650; text-transform: capitalize; padding: 6px 12px; border-radius: 8px; min-height: 36px; }
.cal-title:hover:not(:disabled) { background: var(--wash); }
.cal-title:disabled { color: var(--ink2); cursor: default; }
.cal-grid[hidden], .cal-pick[hidden] { display: none; }
.cal-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px 0 2px; }
.cal-pick.years { grid-template-columns: repeat(3, 1fr); }
.cal-tile { border: 1px solid var(--border); background: var(--raised); border-radius: 8px; min-height: 44px; font-size: 14px; text-transform: capitalize; }
.cal-tile:hover:not(:disabled) { background: var(--wash); }
.cal-tile:disabled { opacity: .35; cursor: default; }
.cal-tile.on { background: var(--accent); color: var(--on-accent); border-color: transparent; font-weight: 650; }
.cal-nav .icon { font-size: 20px; }
.cal-nav .icon:disabled { opacity: .25; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-dow span { text-align: center; font-size: 11.5px; color: var(--muted); padding: 4px 0; }
.cal-day {
  border: 0; background: transparent; height: 38px; font-size: 14px; font-variant-numeric: tabular-nums; border-radius: 8px;
}
.cal-day:hover:not(:disabled) { background: var(--wash); }
.cal-day:disabled { color: var(--muted); opacity: .4; cursor: default; }
.cal-day.in { background: var(--wash); border-radius: 0; }
.cal-day.edge, .cal-day.edge:hover { background: var(--accent); color: var(--on-accent); font-weight: 650; }
.cal-hint { font-size: 12px; color: var(--ink2); padding: 8px 4px 0; min-height: 26px; }

@media (min-width: 640px) {
  body { padding-inline: 20px; }
  .kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .chart-box { height: 340px; }
  dialog.sheet { width: 400px; margin: auto; border-radius: 14px; }
  table { font-size: 13px; }
}

/* --- giriş sayfası ------------------------------------------------------ */
.top-actions { display: flex; gap: 6px; align-items: center; }
body.auth { display: grid; place-items: start center; min-height: 100dvh; padding-top: max(24px, 8vh); }
.auth-card {
  display: block; width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 20px;
}
.auth-card h1 { font-size: 20px; font-weight: 650; }
.auth-sub { color: var(--ink2); margin: 6px 0 14px; }
.auth-card form { display: grid; gap: 12px; }
.auth-card label { display: grid; gap: 5px; font-size: 13px; color: var(--ink2); }
.auth-card input:not([type=hidden]) {
  border: 1px solid var(--border); background: var(--raised); border-radius: 8px; padding: 10px 12px;
  min-height: 44px; font-size: 16px; width: 100%;
}
.auth-card input[name=code] { letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.auth-card .btn { min-height: 44px; margin-top: 2px; }
.auth-error {
  background: var(--warn-bg); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px;
  font-size: 13px; margin-bottom: 12px;
}
.auth-steps { padding-left: 18px; margin: 0 0 14px; display: grid; gap: 8px; font-size: 13.5px; }
.auth-qr { background: #fff; border-radius: 10px; padding: 6px; width: fit-content; margin: 8px 0; line-height: 0; }
.auth-qr svg { width: 190px; height: 190px; display: block; }
.auth-card details { font-size: 13px; color: var(--ink2); }
.auth-card details p { margin: 6px 0; }
.auth-secret { display: block; font-size: 14px; word-spacing: .3em; user-select: all; color: var(--ink); overflow-wrap: anywhere; }
.auth-foot { color: var(--muted); font-size: 12px; margin-top: 14px; }
.auth-foot a { color: var(--ink2); }

/* --- admin paneli ----------------------------------------------------------- */
.tabs button[hidden], .filters[hidden], .range-note[hidden] { display: none; }
.admin-body { padding: 0 12px 14px; display: grid; gap: 10px; }
.admin-body h3 { font-size: 13px; font-weight: 650; margin: 8px 0 0; color: var(--ink2); }
.invite-form { display: grid; gap: 8px; }
.invite-form label { font-size: 13px; font-weight: 600; }
.invite-form label small { font-weight: 400; color: var(--ink2); margin-left: 6px; }
.invite-row { display: flex; gap: 8px; flex-wrap: wrap; }
.invite-row input {
  flex: 1 1 220px; min-width: 0; border: 1px solid var(--border); background: var(--raised); border-radius: 8px;
  padding: 9px 11px; min-height: 40px; font-size: 16px;
}
.invite-link { background: var(--plane); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.invite-link[hidden] { display: none; }
.invite-link p { font-size: 13px; }
.invite-link input { font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.admin-msg { font-size: 13px; color: var(--ink2); }
.admin-msg.error { background: var(--warn-bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--ink); }
.admin-msg[hidden] { display: none; }
table.plain th, table.plain td { text-align: left; }
table.plain td small { color: var(--muted); }
.row-actions { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.btn.danger { color: var(--bad); }
.admin-body .tbl-wrap { border: 1px solid var(--grid); border-radius: 10px; }

/* --- üst bar: tema seçimi ve admin düğmesi ---------------------------------- */
.menu { position: relative; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; padding: 0; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; margin: 0; padding: 4px; list-style: none; min-width: 150px;
  background: var(--raised); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.menu-list[hidden] { display: none; }
.menu-list li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 6px; font-size: 13.5px; cursor: pointer; min-height: 38px; }
.menu-list li:hover, .menu-list li:focus-visible { background: var(--wash); }
.menu-list li[aria-selected="true"] { font-weight: 600; }
.menu-list .check { margin-left: auto; }
.menu svg { flex: none; }
.top-actions .btn[aria-pressed="true"] { background: var(--ink); color: var(--plane); border-color: transparent; }
.top-actions .btn[hidden] { display: none; }
.btn.logout { display: inline-flex; align-items: center; justify-content: center; width: 36px; padding: 0; color: var(--bad); }
.btn.logout:hover, .btn.logout:focus-visible { background: #c93434; border-color: #c93434; color: #ffffff; }

/* Üst bar ve sekme satırındaki bütün düğmeler aynı yükseklikte */
.top-actions .btn, .tabs > .btn { height: 36px; min-height: 36px; padding-top: 0; padding-bottom: 0; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.tabs { align-items: center; }
.tabs-spacer { flex: 1; }
.tabs > .btn { margin-bottom: 6px; flex: none; padding-left: 0; padding-right: 0; border: 1px solid var(--border); background: var(--raised); border-radius: 8px; color: var(--ink); padding-left: 14px; padding-right: 14px; }
.tabs > .btn:hover { background: var(--wash); }

/* --- sıralanabilir başlıklar (Oyun bazlı tablolar) --------------------------- */
.sort-btn { border: 0; background: transparent; padding: 2px 0; font: inherit; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.sort-btn:hover { color: var(--ink); text-decoration: underline; }
.sort-btn.on { color: var(--ink); }
.sort-arrow { display: inline-block; width: 12px; font-size: 9px; text-align: right; }

/* --- tablo kırılımı (Günlük / Haftalık / Aylık) ------------------------------ */
.card-sub { color: var(--ink2); font-size: 12px; padding: 0 12px 10px; margin-top: -2px; }
tbody th.first small { white-space: nowrap; }

/* --- admin: Live Games ---------------------------------------------------------- */
.admin-note { font-size: 13px; color: var(--ink2); }
.admin-count { align-self: center; font-size: 13px; color: var(--ink2); white-space: nowrap; }
.live-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 8px; max-height: 340px; overflow: auto; border: 1px solid var(--grid); border-radius: 10px; padding: 4px; }
.card-head .btn.primary { min-height: 34px; padding: 6px 14px; font-size: 13px; }

/* --- admin: açılır kapanır bölümler ---------------------------------------------- */
details.acc > summary { cursor: pointer; list-style: none; user-select: none; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary:hover { background: var(--wash); }
.acc-caret { width: 9px; height: 9px; border-right: 2px solid var(--ink2); border-bottom: 2px solid var(--ink2); transform: rotate(-45deg); transition: transform .15s; margin-right: 4px; }
details.acc[open] > summary .acc-caret { transform: rotate(45deg); }
details.acc:not([open]) > summary { min-height: 52px; }
.invite-row .btn { min-height: 40px; }

.tabs > .btn[hidden] { display: none; }
