/* Int2 BackOffice — Modernist design language.
   Token source: design_handoff/modernist.css.
   Invariants: radius 0, no box-shadow, single 900px breakpoint, 2 accent roles (accent + danger). */

:root {
  --font-display: "Archivo", sans-serif;
  --font-body: "Be Vietnam Pro", sans-serif;

  --bg: #f1f2f6;
  --surface: #ffffff;
  --surface-alt: #f3f5fa;

  --ink: #131826;
  --ink-2: #4e5567;
  --ink-3: #808799;

  --line: #131826;
  --line-soft: #e1e3ea;
  --line-mute: #b3b8c6;
  --hover: #e7e9f1;

  --accent: #103595;
  --accent-press: #0b2670;
  --accent-soft: #8ba3e6;

  --danger: #c8352b;
  --danger-press: #a52a22;
  --danger-soft: #e8776c;

  --panel-bg: #131826;
  --panel-line: #333a4c;
  --panel-ink-2: #99a0b2;

  --radius: 0;
}

/* ---- Foundations ---- */

* { box-sizing: border-box; border-radius: 0; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
}

h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.02; }

p { margin: 0 0 12px; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cal-day:focus-visible { outline-offset: -2px; }
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible { outline-offset: -1px; }

button { font-family: inherit; }

.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); font-size: 13px; }
.danger { color: var(--danger); }
.inline { display: inline; margin: 0; }

/* ---- Page frame ---- */

.app { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }
.shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.page {
  width: 100%;
  max-width: 1260px;
  padding: 20px 16px calc(96px + env(safe-area-inset-bottom));
}

.w-640 { max-width: 640px; }
.w-940 { max-width: 940px; }
.w-1100 { max-width: 1100px; }

.login-logo { display: block; height: 40px; width: auto; margin-bottom: 20px; }

.grid-2 { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.col { display: grid; gap: 20px; min-width: 0; align-content: start; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
}
.page-head .title-col { flex: 1 1 240px; min-width: 0; }

.kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.actions { display: none; gap: 8px; align-items: center; }
.mobile-cta { display: flex; gap: 8px; margin-top: 20px; }
.mobile-cta .primary { flex: 1; min-height: 50px; font-size: 15px; }

/* ---- Nav: top bar (mobile) ---- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar .logo { display: block; height: 26px; width: auto; }
.topbar .brand { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.topbar .who { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-2); }

/* ---- Nav: tab bar (mobile) ---- */

.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 54px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}
.tabbar a:hover { background: var(--ink); color: var(--surface); }
.tabbar a.active { background: var(--ink); color: var(--surface); }
.count {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.tabbar .count {
  position: absolute;
  top: 8px;
  right: 20%;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  background: var(--danger);
  color: var(--surface);
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ---- Nav: vertical rail (desktop) ---- */

.nav-rail { display: none; }

.menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 20;
  display: none;
  min-width: 196px;
  background: var(--surface);
  border: 1px solid var(--line);
}
[data-menu-root] { position: relative; }
[data-menu-root][data-open] > .menu { display: grid; }
.menu a,
.menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  text-align: left;
}
.menu a:last-child,
.menu button:last-child { border-bottom: none; }
.menu form { display: grid; }
.menu a:hover, .menu button:hover { background: var(--hover); color: var(--ink); }
.menu .danger { color: var(--danger); font-weight: 600; }
.menu a.danger:hover, .menu button.danger:hover { color: var(--danger); }

.avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--surface);
  border: none;
  display: grid;
  place-items: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}
.avatar.lg { width: 34px; height: 34px; font-size: 12px; cursor: default; }

/* ---- Cards & rows ---- */

.card { background: var(--surface); border: 1px solid var(--line); }
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.card-head h2 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.card-head .count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.card-head .more-link {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.card-head .more-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.card-body { padding: 20px; }
.card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-alt);
}

.row-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 12px;
  padding: 14px 16px;
  color: var(--ink);
  border-left: 3px solid var(--line-mute);
}
.row-item > .badge { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
.row-item > .body { grid-column: 1; grid-row: 2; min-width: 0; }
.row-item > .due { grid-column: 2; grid-row: 2; }
.row-item > .hours { grid-column: 2; grid-row: 2; }
.row-item > .chevron { grid-column: 3; grid-row: 2; }
.row-item > .btn-icon { grid-column: 3; grid-row: 2; }
a.row-item:hover { background: var(--hover); color: var(--ink); }
.row-item + .row-item { border-top: 1px solid var(--line-soft); }
.bar-red { border-left-color: var(--danger); }
.bar-dark { border-left-color: var(--ink); }

.row-item .body { min-width: 0; }
.row-item .title { display: block; font-size: 16px; font-weight: 600; }
.row-item .sub { font-size: 13px; color: var(--ink-2); }
.row-item .label-top {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.label-top.danger { color: var(--danger); }

.row-item .chevron { margin-left: auto; flex: 0 0 auto; color: var(--ink-3); }
.row-item .hours { margin-left: auto; flex: 0 0 auto; font-size: 15px; }
.day-group { padding: 14px 20px 4px; }
.row-item .due { margin-left: auto; flex: 0 0 auto; text-align: right; }
.row-item .due .label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.row-item .due .label.danger { color: var(--danger); }
.row-item .due .label.soft { color: var(--ink-3); }
.row-item .due .date { font-size: 13px; font-weight: 600; color: var(--ink-2); }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 13px 20px; }
.list > li + li { border-top: 1px solid var(--line-soft); }
.list.reports li div { margin-top: 2px; }

.small-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}

.empty { padding: 32px 20px; text-align: center; color: var(--ink-2); font-size: 14px; margin: 0; }

/* ---- Dark panel ---- */

.panel { background: var(--panel-bg); border: 1px solid var(--panel-bg); color: var(--surface); }
.panel .card-head { border-bottom-color: var(--panel-line); }
.panel .card-head h2 { color: var(--surface); }
.panel .card-head .count { color: var(--panel-ink-2); }
.panel .kicker { color: var(--accent-soft); }
.panel .sub { color: var(--panel-ink-2); }
.panel .btn-ghost { border-color: var(--panel-bg); }
.panel .btn-ghost:hover { background: var(--surface-alt); color: var(--ink); }
.meeting-title { font-size: 15px; font-weight: 600; margin: 0 0 4px; }

.project { padding: 20px; }
.project + .project { border-top: 1px solid var(--line-soft); }
.project-head { display: flex; align-items: baseline; gap: 12px; }
.project-head strong { font-size: 15px; font-weight: 600; }
.percent { margin-left: auto; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }

.card.dashed { border: 1px dashed var(--line-mute); }
.card.dashed .small-heading { display: block; margin-bottom: 8px; }

/* ---- Buttons ---- */

button:disabled { background: var(--line-soft); color: var(--ink-3); cursor: not-allowed; }

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  background: var(--accent);
  color: var(--surface);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
a.primary:hover { background: var(--accent-press); color: var(--surface); }
button.primary:hover { background: var(--accent-press); }
.primary.lg { padding: 14px 18px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
a.btn-ghost:hover, button.btn-ghost:hover { background: var(--ink); color: var(--surface); }

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.btn-icon.sm { width: 30px; height: 30px; }
.btn-icon:hover { color: var(--ink); border-color: var(--line); }

.nav-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  text-decoration: none;
}
.nav-btn:hover { background: var(--ink); color: var(--surface); }

.link {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}
.link:hover { color: var(--accent); }

.link-danger {
  margin-left: auto;
  padding: 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--danger);
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
.link-danger:hover { color: var(--danger-press); border-bottom-color: var(--danger-press); }

.btn-toggle {
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn-toggle:hover { background: var(--hover); color: var(--ink); }
.btn-toggle.on { background: var(--ink); color: var(--surface); }
.btn-toggle.on:hover { background: var(--ink); color: var(--surface); }

.status-btn {
  padding: 9px 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.status-btn:hover { background: var(--hover); }
.status-btn.current { background: var(--ink); color: var(--surface); }
.status-btn.current:hover { background: var(--ink); color: var(--surface); }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row form { display: inline; }

/* ---- Badge ---- */

.badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge.new { border: 1px solid var(--line-mute); color: var(--ink-2); }
.badge.in_progress { border: 1px solid var(--line); color: var(--ink); }
.badge.pending_approval { background: var(--ink); color: var(--surface); }
.badge.completed { border: 1px solid var(--line); color: var(--ink); }
.badge.cancelled { background: var(--line-soft); color: var(--ink-2); }
.badge.danger, .badge.overdue { background: var(--danger); color: var(--surface); }
.badge.warn { border: 1px solid var(--line); color: var(--ink-2); }

/* ---- Form ---- */

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; min-width: 0; }
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
}
.form input[type="date"],
.form input[type="number"] { font-variant-numeric: tabular-nums; }
.form select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234e5567' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.form textarea { resize: vertical; }
.form input[type="checkbox"],
.form input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }

.form .form-row-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

.field-error input,
.field-error select,
.field-error textarea { border: 2px solid var(--danger); }
.field-error .label { color: var(--danger); }

.alert { display: block; color: var(--danger); font-size: 12px; font-weight: 600; margin: 0; }

.row { display: flex; gap: 12px; }
.row > label { flex: 1; min-width: 0; }

.row-date { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-date h2 { margin: 0; }

/* ---- Calendar ---- */

.cal-top { padding: 12px 16px; gap: 8px; }
.cal-top h2 { flex: 1; text-align: center; font-size: 15px; letter-spacing: -0.01em; text-transform: none; }
.cal-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-alt);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line-soft);
  text-align: center;
}
.cal-head {
  background: var(--surface);
  padding: 8px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.cal-head.sun { color: var(--danger); }
.cal-day {
  background: var(--surface);
  min-height: 58px;
  padding: 8px 0 6px;
  display: grid;
  gap: 3px;
  justify-items: center;
  align-content: start;
  color: var(--ink);
  text-decoration: none;
}
.cal-day .day-num { font-size: 14px; font-weight: 600; }
.cal-day .day-hours { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.cal-day .holiday-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--danger);
}
.cal-day:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal-day.off { background: var(--surface-alt); color: var(--ink-2); }
.cal-day.off .day-num { color: var(--ink-2); font-weight: 600; }
.cal-day.outside { background: var(--hover); color: var(--ink-2); }
.cal-day.outside .day-num { color: var(--ink-2); font-weight: 500; }
.cal-day.today {
  background: var(--surface);
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.cal-day.today .day-num { font-weight: 700; }
.cal-day.selected,
.cal-day.selected.off,
.cal-day.selected.off.holiday { background: var(--ink); color: var(--surface); outline: none; }
.cal-day.selected .day-num { color: var(--surface); font-weight: 700; }
.cal-day.selected .day-hours { color: var(--surface); }
.cal-footer { padding: 14px 16px; border-top: 1px solid var(--line-soft); }

/* ---- Progress ---- */

.bar { height: 6px; background: var(--line-soft); overflow: hidden; margin: 12px 0 10px; }
.bar-fill { height: 100%; background: var(--ink); }

/* ---- Meeting date block ---- */

.date-box { flex: 0 0 auto; width: 76px; border: 1px solid var(--line); text-align: center; }
.date-box .band {
  padding: 6px 0;
  background: var(--ink);
  color: var(--surface);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.date-box .middle { padding: 8px 0 10px; }
.date-box .day-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.date-box .month { font-size: 11px; font-weight: 600; color: var(--ink-2); margin-top: 2px; }

.time-large { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 6px; }
.meeting-row { display: flex; gap: 18px; padding: 20px; flex-wrap: wrap; }
.meeting-row + .meeting-row { border-top: 1px solid var(--line-soft); }
.meeting-body { flex: 1 1 240px; min-width: 0; }
.meeting-body .kicker { margin-bottom: 6px; }
.meeting-body .sub { margin-bottom: 16px; }
.meeting-body .sub:last-child { margin-bottom: 0; }
.url { font-size: 12px; color: var(--ink-3); word-break: break-all; }

/* ---- Data table (spec, reserved for later screens) ---- */

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table thead tr { background: var(--surface-alt); }
.table th {
  padding: 11px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 13px 14px; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.table tbody tr:hover { background: var(--hover); }
.table .right { text-align: right; }

/* ---- Confirm dialog ---- */

dialog.confirm {
  width: 100%;
  max-width: 420px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
dialog.confirm::backdrop { background: rgba(19, 24, 38, 0.55); }
.confirm-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.confirm-head h3 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.confirm-body { padding: 20px; font-size: 15px; line-height: 1.6; margin: 0; }
.confirm-foot {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-alt);
}
.btn-danger {
  padding: 11px 18px;
  border: none;
  background: var(--danger);
  color: var(--surface);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-danger:hover { background: var(--danger-press); }

/* ---- Toast ---- */

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
#toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(70px + env(safe-area-inset-bottom));
  z-index: 70;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 380px;
  padding: 14px 18px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-line);
  color: var(--surface);
  font-size: 14px;
  font-weight: 500;
  animation: toast-in 160ms ease-out;
}
.toast.error { border-left: 3px solid var(--danger); }
.toast.hide { opacity: 0; transform: translateY(10px); transition: opacity 160ms ease-out, transform 160ms ease-out; }

/* ---- Loading ---- */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.skeleton { display: block; height: 13px; background: var(--line-soft); animation: blink 1.4s ease-in-out infinite; }
.form.htmx-request button.primary {
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.form.htmx-request button.primary::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin 700ms linear infinite;
}

/* ---- Breadcrumb ---- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.breadcrumb a { color: var(--ink-2); border-bottom: 1px solid var(--line-soft); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--ink-3); }

/* ---- Single breakpoint ---- */

@media (min-width: 900px) {
  .app { flex-direction: row; }
  .nav-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 76px;
    flex: 0 0 76px;
    padding: 20px 0 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--line);
  }
  .nav-logo { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; }
  .nav-logo img { display: block; width: 100%; height: auto; }
  .nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 56px;
    padding: 10px 0;
    color: var(--ink);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
  }
  .nav-item:hover, .nav-item.active { background: var(--ink); color: var(--surface); }
  .nav-rail .count {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    background: var(--danger);
    color: var(--surface);
    display: grid;
    place-items: center;
  }
  .nav-spacer { flex: 1; }
  .nav-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink); }
  .nav-icon:hover { background: var(--ink); color: var(--surface); }
  .menu-anchor { margin-top: 8px; cursor: default; }

  .topbar, .tabbar { display: none !important; }

  .page { padding: 40px 44px 56px; }
  .grid-overview { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .grid-timesheet { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .grid-meetings { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .form .form-row-2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }

  .actions { display: flex; }
  .mobile-cta, .cal-footer { display: none !important; }

  .row-item { display: flex; gap: 14px; padding: 16px 20px; }

  #toast { left: auto; right: 20px; bottom: 20px; justify-content: flex-end; }
}
