:root {
  --bg: #f9f9ff;
  --surface: rgba(255, 255, 255, 0.6);
  --surface-lowest: rgba(255, 255, 255, 0.78);
  --surface-low: #f0f3ff;
  --surface-high: #e3ecff;
  --surface-highest: #d5e3ff;
  --text: #003265;
  --muted: #3b6095;
  --line: rgba(144, 179, 238, 0.15);
  --brand: #545a94;
  --brand-strong: #484e87;
  --brand-soft: rgba(84, 90, 148, 0.12);
  --danger: #9e3f4e;
  --shadow: 0 12px 32px rgba(0, 50, 101, 0.06);
  --radius: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(84, 90, 148, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(144, 179, 238, 0.28), transparent 36%),
    linear-gradient(180deg, #fbfcff 0%, #f1f4ff 100%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.app-shell, .auth-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 20px 16px 100px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-card, .card, .entry-card, .stat-card {
  background: var(--surface-lowest);
  backdrop-filter: blur(24px);
  border: none;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.auth-card {
  width: min(100%, 440px);
  padding: 28px;
}

.login-header {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
}

.login-icon-wrap {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--surface-highest);
  box-shadow: 0 8px 24px rgba(0, 50, 101, 0.04);
  color: var(--brand);
}

.login-icon {
  width: 34px;
  height: 34px;
}

.login-brand {
  font-size: clamp(2rem, 5vw, 2.5rem);
  letter-spacing: -0.04em;
}

.login-copy {
  margin: 0;
  max-width: 28ch;
}

.topbar, .section-head, .entry-topline, .button-row, .filters, .bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h2 { font-size: 1.25rem; }

.auth-copy {
  margin: 12px 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.stack-form, .page-grid, .card-list, .live-timer {
  display: grid;
  gap: 14px;
}

.logtime-shell {
  display: grid;
  gap: 18px;
}

.entries-shell {
  display: grid;
  gap: 18px;
}

.clients-shell {
  display: grid;
  gap: 18px;
}

.reports-shell {
  display: grid;
  gap: 18px;
}

.reports-hero,
.reports-filter-panel,
.reports-card,
.reports-comparison-card {
  padding: 20px;
  border-radius: 24px;
  background: var(--surface-low);
}

.reports-hero-copy {
  margin-top: 10px;
  color: var(--muted);
  max-width: 46ch;
}

.reports-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.reports-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.reports-summary-card {
  padding: 10px 10px;
  border-radius: 16px;
  min-width: 0;
}

.reports-summary-card span {
  margin-bottom: 3px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.reports-summary-card strong {
  font-size: 0.95rem;
  line-height: 1.1;
}

.reports-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.reports-section-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.reports-section-head span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.reports-comparison-bars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: end;
  min-height: 190px;
}

.reports-bar-column {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.reports-bar-track {
  width: 100%;
  height: 128px;
  display: flex;
  align-items: end;
  padding: 0 10px;
  border-radius: 18px;
  background: rgba(144, 179, 238, 0.18);
  overflow: hidden;
}

.reports-bar {
  width: 100%;
  border-radius: 14px 14px 0 0;
}

.reports-bar-soft {
  background: rgba(84, 90, 148, 0.2);
}

.reports-bar-strong {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
}

.reports-bar-column span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.reports-bar-column strong {
  font-size: 1rem;
}

.reports-list {
  display: grid;
  gap: 12px;
}

.reports-row-card,
.reports-client-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-lowest);
}

.reports-row-card p,
.reports-client-card p {
  color: var(--muted);
}

.reports-client-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reports-client-metric {
  min-width: 140px;
  text-align: right;
}

.reports-progress {
  height: 6px;
  margin: 8px 0 6px auto;
  border-radius: 999px;
  background: rgba(144, 179, 238, 0.2);
  overflow: hidden;
}

.reports-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
}

.clients-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background: var(--surface-low);
}

.clients-hero-copy,
.clients-form-copy {
  margin-top: 10px;
  color: var(--muted);
}

.clients-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.clients-summary-card {
  padding: 10px 10px;
  border-radius: 16px;
  min-width: 0;
}

.clients-summary-card span {
  margin-bottom: 3px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.clients-summary-card strong {
  font-size: 0.9rem;
  line-height: 1.1;
}

.clients-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.client-info-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  background: var(--surface-lowest);
  box-shadow: 0 12px 32px rgba(0, 50, 101, 0.06);
}

.client-info-card.is-archived {
  background: rgba(240, 243, 255, 0.72);
}

.client-info-top,
.client-info-heading,
.clients-card-actions,
.client-form-head,
.clients-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.client-info-heading {
  justify-content: start;
}

.client-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--surface-highest);
  color: var(--brand);
  font-weight: 800;
  font-size: 1.1rem;
}

.client-info-heading p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.client-status-pill.is-active {
  background: rgba(46, 154, 108, 0.14);
  color: #257755;
}

.client-status-pill.is-archived {
  background: rgba(59, 96, 149, 0.12);
  color: var(--muted);
}

.client-info-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(144, 179, 238, 0.15);
}

.client-info-stats span {
  display: block;
  margin-bottom: 6px;
  font-family: "Inter", "Manrope", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(59, 96, 149, 0.72);
}

.client-info-stats strong {
  font-size: 1rem;
}

.client-info-note {
  color: var(--muted);
  line-height: 1.6;
}

.client-form-shell {
  display: grid;
  gap: 16px;
}

.client-form-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 32px;
  background: var(--surface-low);
}

.client-form-panel[hidden] {
  display: none !important;
}

.clients-form-actions {
  justify-content: start;
}

.entries-hero,
.entries-filter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background: var(--surface-low);
}

.entries-hero {
  align-items: end;
}

.entries-hero-copy {
  margin-top: 10px;
  max-width: 44ch;
  color: var(--muted);
}

.entries-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.entries-summary-card {
  padding: 10px 10px;
  border-radius: 16px;
  min-width: 0;
}

.entries-summary-card span {
  margin-bottom: 3px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.entries-summary-card strong {
  font-size: 0.9rem;
  line-height: 1.1;
}

.entries-filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 12px;
  width: 100%;
  align-items: end;
}

.entries-filter-field {
  gap: 10px;
}

.entries-filter-field span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(59, 96, 149, 0.75);
}

.entries-list {
  display: grid;
  gap: 16px;
}

.entries-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  background: var(--surface-lowest);
  box-shadow: 0 12px 32px rgba(0, 50, 101, 0.04);
}

.entries-card-top,
.entries-card-heading,
.entries-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.entries-card-heading {
  justify-content: start;
}

.entries-card-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.entries-card-heading p {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.entries-time-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.entries-time-block {
  display: grid;
  gap: 8px;
}

.entries-time-block span {
  display: block;
  font-family: "Inter", "Manrope", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.entries-time-block strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.entries-time-block p {
  color: var(--muted);
  font-size: 0.9rem;
}

.entries-time-block-rounded {
  justify-items: start;
}

.entries-rounded-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(223, 224, 255, 0.75);
  color: var(--brand);
  font-size: 1rem;
  font-weight: 800;
}

.entries-inline-icon {
  color: rgba(59, 96, 149, 0.72);
  font-size: 0.95rem;
}

.entries-divider {
  height: 1px;
  background: rgba(144, 179, 238, 0.18);
}

.entries-detail-list {
  display: grid;
  gap: 12px;
}

.entries-detail-row {
  display: flex;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.entries-detail-icon {
  width: 20px;
  color: rgba(59, 96, 149, 0.72);
  text-align: center;
  flex: 0 0 20px;
}

.entries-detail-note {
  font-style: italic;
}

.entries-note {
  color: var(--muted);
  line-height: 1.6;
}

.entry-menu-wrap {
  position: relative;
}

.entry-menu-trigger {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
}

.entry-menu-trigger:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--brand);
}

.entry-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 164px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
  background: var(--surface-lowest);
  box-shadow: var(--shadow);
}

.entry-menu[hidden] {
  display: none !important;
}

.entry-menu-item {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  color: var(--text);
  font-family: "Inter", "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.entry-menu-item:hover {
  background: var(--surface-low);
}

.entry-menu-item.danger {
  color: var(--danger);
}

.entries-editor {
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.entries-editor[hidden] {
  display: none !important;
}

.workflow-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 18px;
  background: var(--surface-low);
}

.workflow-switch-button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 14px;
  font-family: "Inter", "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.workflow-switch-button.is-active {
  background: var(--surface-lowest);
  color: var(--brand);
  box-shadow: 0 6px 18px rgba(0, 50, 101, 0.04);
}

.timer-display-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 24px;
  border-radius: 32px;
  background: var(--surface-lowest);
  box-shadow: 0 12px 32px rgba(0, 50, 101, 0.04);
}

.timer-display-card.is-hidden {
  display: none;
}

.timer-kicker {
  font-family: "Inter", "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(59, 96, 149, 0.72);
}

.timer-readout {
  font-size: clamp(2.8rem, 10vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.timer-subcopy {
  text-align: center;
  color: var(--muted);
  max-width: 28ch;
}

.timer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.timer-primary-action,
.timer-secondary-action {
  border: none;
  font-family: "Inter", "Manrope", sans-serif;
}

.timer-primary-action {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  box-shadow: 0 18px 28px rgba(84, 90, 148, 0.22);
}

.timer-primary-action.is-disabled,
.timer-secondary-action.is-disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}

.timer-primary-icon {
  font-size: 2rem;
  line-height: 1;
}

.timer-secondary-action {
  min-width: 64px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface-high);
  color: var(--danger);
  font-weight: 700;
}

.timer-secondary-action-stop {
  background: rgba(158, 63, 78, 0.14);
}

.logtime-panel-group {
  display: grid;
  gap: 16px;
}

.logtime-panel {
  display: none;
  padding: 20px;
  border-radius: 24px;
  background: var(--surface-low);
}

.logtime-panel.is-active {
  display: grid;
  gap: 16px;
}

.logtime-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.logtime-label {
  gap: 10px;
}

.logtime-label span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(59, 96, 149, 0.75);
}

.logtime-input {
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface-lowest);
  font-family: "Inter", "Manrope", sans-serif;
  font-size: 0.96rem;
}

.logtime-input::placeholder {
  color: rgba(59, 96, 149, 0.45);
}

.logtime-textarea {
  min-height: 112px;
}

.billing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.billing-tile {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.billing-tile span {
  display: block;
  margin-bottom: 6px;
  font-family: "Inter", "Manrope", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(59, 96, 149, 0.72);
}

.billing-tile strong {
  font-size: 1.05rem;
}

.location-switch {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.34);
}

.location-switch strong {
  display: block;
  margin-bottom: 4px;
}

.location-switch p {
  color: var(--muted);
  font-size: 0.84rem;
}

.segmented-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-high);
  min-width: 186px;
}

.segmented-compact label {
  text-align: center;
  color: var(--muted);
}

.segmented-compact input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.segmented-compact span {
  display: block;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--surface-high);
  font-family: "Inter", "Manrope", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.segmented-compact input:checked + span {
  background: var(--surface-lowest);
  color: var(--brand);
  box-shadow: 0 6px 18px rgba(0, 50, 101, 0.04);
}

.segmented.segmented-compact input:checked + span {
  background: var(--surface-lowest);
  color: var(--brand);
  box-shadow: 0 6px 18px rgba(0, 50, 101, 0.04);
}

.segmented-compact input:focus + span {
  box-shadow: 0 0 0 2px rgba(88, 124, 179, 0.22);
}

.client-summary-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: var(--surface-lowest);
}

.client-summary-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface-highest);
  color: var(--brand);
  font-weight: 800;
}

.client-summary-note {
  color: var(--muted);
}

.summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--surface-highest);
}

.summary-strip-main {
  display: grid;
  gap: 2px;
}

.summary-strip-main strong {
  font-size: 0.95rem;
}

.summary-strip-main span {
  color: var(--brand-strong);
  font-weight: 700;
}

.summary-strip-link {
  color: var(--brand);
  font-family: "Inter", "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.page-grid {
  grid-template-columns: 1fr;
}

.card {
  padding: 20px;
  background: var(--surface-low);
}

.inline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted);
  font-family: "Inter", "Manrope", sans-serif;
}

.login-label {
  text-align: center;
}

.login-label span {
  font-size: 0.88rem;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  border: 1px solid transparent;
  background: var(--surface-low);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #90b3ee;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  background: var(--surface-lowest);
  border-color: rgba(88, 124, 179, 0.55);
  box-shadow: 0 0 0 2px rgba(88, 124, 179, 0.22);
}

.login-input {
  min-height: 56px;
  border-radius: 18px;
}

.login-input-center {
  text-align: center;
}

.password-field {
  position: relative;
}

.password-field .login-input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(59, 96, 149, 0.7);
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--brand);
}

.password-icon {
  width: 20px;
  height: 20px;
}

.password-icon-hide {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-icon-show {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-icon-hide {
  display: block;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.segmented label {
  position: relative;
  color: var(--text);
}

.segmented input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.segmented span {
  display: block;
  text-align: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: none;
  background: var(--surface-low);
}

.segmented input:checked + span {
  background: var(--surface-highest);
  color: var(--brand-strong);
  font-weight: 700;
}

.primary-button, .ghost-button, .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 700;
}

.primary-button {
  border: none;
  color: white;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
}

.primary-button.small { padding: 10px 14px; }

.ghost-button {
  border: none;
  background: var(--surface-high);
  color: var(--brand-strong);
}

.ghost-button.danger { color: var(--danger); }
.text-link { color: var(--brand-strong); padding: 0; }

.bottom-nav {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.bottom-nav a {
  flex: 1;
  text-align: center;
  color: var(--muted);
  padding: 12px 8px;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 700;
}

.bottom-nav a.is-active {
  background: var(--surface-highest);
  color: var(--brand-strong);
}

.flash-stack { display: grid; gap: 10px; margin-bottom: 16px; }
.flash {
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 600;
}

.flash-success, .flash-info { background: var(--brand-soft); color: var(--brand-strong); }
.flash-danger { background: rgba(162, 59, 59, 0.12); color: var(--danger); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 800;
}

.pill-live { background: var(--surface-highest); color: var(--brand-strong); }
.pill-good { background: var(--brand-soft); }
.pill-muted { background: rgba(59, 96, 149, 0.1); color: var(--muted); }

.entry-card {
  padding: 18px;
  background: var(--surface-lowest);
}

.entry-card.compact { gap: 8px; }
.entry-meta { color: var(--muted); line-height: 1.5; }
.border-top { padding-top: 14px; }

.filters {
  flex-wrap: wrap;
  align-items: end;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-card {
  padding: 16px;
  background: var(--surface-high);
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.stat-card strong {
  font-size: 1.4rem;
}

@media (min-width: 760px) {
  .app-shell { padding-bottom: 40px; }
  .page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .inline-grid { grid-template-columns: repeat(2, 1fr); }
  .logtime-shell {
    width: min(100%, 640px);
    margin: 0 auto;
  }
  .logtime-panel {
    padding: 24px;
  }
  .location-switch {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 16px;
  }
  .location-switch p {
    max-width: 24ch;
  }
  .bottom-nav {
    position: static;
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.6);
  }
  .bottom-nav a { color: var(--muted); }
  .bottom-nav a.is-active { background: var(--surface-highest); color: var(--brand-strong); }
}

@media (max-width: 759px) {
  .clients-hero,
  .entries-hero,
  .entries-filter-card,
  .reports-row-card,
  .reports-client-card,
  .entries-actions,
  .client-info-top,
  .clients-card-actions,
  .client-form-head,
  .clients-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .entries-card-controls {
    align-self: flex-start;
    margin-left: auto;
  }

  .entries-filters {
    grid-template-columns: 1fr;
  }

  .reports-filter-grid {
    grid-template-columns: 1fr;
  }

  .reports-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entries-time-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .entries-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .clients-card-grid {
    grid-template-columns: 1fr;
  }

  .clients-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reports-client-metric {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .reports-progress {
    margin-left: 0;
  }
}
