:root {
  color-scheme: light;
  --bg: #b7bab4;
  --panel: #f4f3ee;
  --panel-strong: #e1e0da;
  --ink: #171713;
  --muted: #5f625d;
  --line: #b9b8af;
  --accent: #7f1734;
  --accent-strong: #531021;
  --accent-soft: #f0d7df;
  --signal: #b8871f;
  --signal-soft: #ead8a0;
  --emerald: #047857;
  --emerald-soft: #cce7db;
  --charcoal: #25241f;
  --total: #7f1734;
  --total-soft: #f0d7df;
  --billable: #047857;
  --billable-soft: #cce7db;
  --non-billable: #b8871f;
  --non-billable-soft: #ead8a0;
  --danger: #9f1239;
  --shadow: 0 18px 46px rgba(32, 29, 23, 0.16);
  --font-ui: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-display: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
  --font-button: "Chakra Petch", "Space Grotesk", "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -10%, rgba(127, 23, 52, 0.13), transparent 30%),
    radial-gradient(circle at 92% 2%, rgba(4, 120, 87, 0.11), transparent 28%),
    linear-gradient(180deg, #d7d9d4 0, #b9bcb6 420px, #9fa39d 100%);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  font-feature-settings: "ss01" 1, "ss02" 1;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(228, 221, 241, 0.9);
  backdrop-filter: blur(14px);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 0.98;
  font-weight: 700;
}

h2 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.header-actions,
.form-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

button,
.header-actions a,
.header-actions .manager-link {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
}

.header-actions a,
.header-actions .manager-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.manager-link {
  display: inline-flex;
  cursor: default;
}

.auth-email-label {
  width: min(220px, 100%);
  gap: 4px;
}

.auth-email-label input {
  min-height: 42px;
}

.auth-error {
  flex-basis: 100%;
  min-height: 18px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.ghost-button {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.ghost-button:hover {
  background: #f4efff;
}

.sync-status {
  width: fit-content;
  margin-top: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sync-status[data-state="online"] {
  background: var(--billable-soft);
  color: #047857;
}

.sync-status[data-state="syncing"] {
  background: var(--total-soft);
  color: #1d4ed8;
}

.sync-status[data-state="error"] {
  background: var(--non-billable-soft);
  color: #c2410c;
}

body.read-only .entry-panel {
  display: none;
}

body.auth-locked .app-shell {
  display: none;
}

body.auth-locked .manager-link,
body.auth-locked #diagnosticsButton,
body.auth-locked #seedButton,
body.auth-locked #exportJsonButton,
body.auth-locked #exportButton {
  display: none;
}

body.read-only th:nth-child(9),
body.read-only td:nth-child(9) {
  display: none;
}

.app-shell {
  width: min(1360px, calc(100% - 36px));
  margin: 26px auto 44px;
}

.entry-panel,
.data-panel,
.dashboard-panel,
.chart-panel,
.summary-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.entry-panel,
.data-panel,
.dashboard-panel {
  padding: 22px;
}

.diagnostics-panel {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.diagnostics-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.diagnostics-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto auto minmax(120px, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfaff;
  color: var(--ink);
  text-align: left;
}

.diagnostics-row small {
  color: var(--muted);
  text-align: right;
}

.diagnostics-row:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.diagnostics-preview {
  margin-top: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
}

.diagnostics-preview h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 15px;
}

.diagnostics-preview-table {
  display: grid;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
}

.diagnostics-entry {
  display: grid;
  grid-template-columns: 92px minmax(110px, 0.8fr) minmax(110px, 0.8fr) minmax(110px, 0.7fr) 90px minmax(220px, 1.5fr);
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.diagnostics-entry small {
  color: var(--ink);
}

.diagnostics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.diagnostics-actions .primary-button {
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.18);
}

.time-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}

input[readonly] {
  background: #f4efff;
}

.wide-field {
  grid-column: span 2;
}

.form-error {
  grid-column: 1 / -1;
  min-height: 18px;
  color: var(--danger);
  font-weight: 700;
}

.form-actions {
  grid-column: 1 / -1;
}

.totals-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0 0;
}

.totals-band div {
  min-height: 94px;
  padding: 18px;
  color: #fff;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.totals-band div::after {
  content: "";
  position: absolute;
  inset: auto -28px -42px auto;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.total-card {
  background: linear-gradient(135deg, var(--total), #38bdf8);
}

.billable-card {
  background: linear-gradient(135deg, var(--billable), #84cc16);
}

.non-billable-card {
  background: linear-gradient(135deg, var(--non-billable), #facc15);
}

.totals-band span {
  display: block;
  margin-bottom: 8px;
  opacity: 0.78;
  font-weight: 700;
}

.totals-band strong {
  font-size: 30px;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-heading {
  display: grid;
  gap: 16px;
}

.period-controls {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.period-controls label {
  width: min(160px, 100%);
}

.period-label {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
}

.filter-label {
  width: min(340px, 100%);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  background: #f1ecff;
  color: #3b2b68;
  font-size: 12px;
  text-transform: uppercase;
}

th:nth-child(1),
td:nth-child(1) {
  width: 118px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 145px;
}

th:nth-child(3),
td:nth-child(3) {
  width: 170px;
}

th:nth-child(4),
td:nth-child(4) {
  width: auto;
}

th:nth-child(5),
td:nth-child(5) {
  width: 162px;
}

th:nth-child(6),
td:nth-child(6),
th:nth-child(7),
td:nth-child(7),
th:nth-child(8),
td:nth-child(8) {
  width: 136px;
}

th:nth-child(9),
td:nth-child(9) {
  width: 90px;
}

tbody tr:hover {
  background: #fbf9ff;
}

.type-row {
  box-shadow: inset 5px 0 0 var(--type-color, var(--accent));
}

.type-preparation {
  --type-color: #7c3aed;
}

.type-captation {
  --type-color: #0891b2;
}

.type-montage {
  --type-color: #db2777;
}

.type-post-production {
  --type-color: #f97316;
}

.type-contact {
  --type-color: #ca8a04;
}

.type-production {
  --type-color: #2563eb;
}

.type-enregistrement {
  --type-color: #db2777;
}

.type-interview {
  --type-color: #0891b2;
}

.type-diffusion {
  --type-color: #059669;
}

.type-administratif {
  --type-color: #ca8a04;
}

.type-autre {
  --type-color: #64748b;
}

.number-cell {
  text-align: right;
  white-space: nowrap;
}

.actions-cell {
  width: 90px;
  text-align: right;
}

.icon-action {
  width: 36px;
  min-height: 34px;
  padding: 0;
  margin-left: 6px;
  border-color: var(--line);
  background: #fff;
}

.icon-action:hover {
  background: var(--accent-soft);
}

.icon-action.delete {
  color: var(--danger);
}

.hour-badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 84px;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
}

.hour-badge.total {
  background: var(--total-soft);
  color: #1d4ed8;
}

.hour-badge.billable {
  background: var(--billable-soft);
  color: #047857;
}

.hour-badge.non-billable {
  background: var(--non-billable-soft);
  color: #c2410c;
}

.hour-edit {
  width: 116px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  text-align: center;
  font-weight: 800;
}

.hour-edit.total {
  background: var(--total-soft);
  color: #1d4ed8;
}

.hour-edit.billable {
  background: var(--billable-soft);
  color: #047857;
}

.hour-edit.non-billable {
  background: var(--non-billable-soft);
  color: #c2410c;
}

.hour-edit:focus {
  outline: 3px solid var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.description-edit {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 8px;
}

.description-edit:hover,
.description-edit:focus {
  background: #fff;
  border-color: var(--line);
}

.content-edit {
  width: 100%;
  min-height: 38px;
  border: 1px solid hsl(var(--content-hue, 320) 80% 82%);
  border-radius: 999px;
  background: hsl(var(--content-hue, 320) 90% 95%);
  color: hsl(var(--content-hue, 320) 65% 28%);
  padding: 6px 12px;
  font-weight: 800;
}

.content-edit:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
  background: #fff;
}

.type-badge,
.format-badge,
.content-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 150px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.type-badge.preparation {
  background: #ede9fe;
  color: #6d28d9;
}

.type-badge.captation {
  background: #cffafe;
  color: #0e7490;
}

.type-badge.montage {
  background: #fce7f3;
  color: #be185d;
}

.type-badge.post-production {
  background: #ffedd5;
  color: #c2410c;
}

.type-badge.contact {
  background: #fef3c7;
  color: #a16207;
}

.type-badge.production {
  background: #dbeafe;
  color: #1d4ed8;
}

.type-badge.enregistrement {
  background: #fce7f3;
  color: #be185d;
}

.type-badge.interview {
  background: #cffafe;
  color: #0e7490;
}

.type-badge.diffusion {
  background: #d1fae5;
  color: #047857;
}

.type-badge.administratif {
  background: #fef3c7;
  color: #a16207;
}

.type-badge.autre {
  background: #e2e8f0;
  color: #475569;
}

.type-edit {
  width: 142px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
}

.type-edit.preparation {
  background: #ede9fe;
  color: #6d28d9;
}

.type-edit.captation {
  background: #cffafe;
  color: #0e7490;
}

.type-edit.montage {
  background: #fce7f3;
  color: #be185d;
}

.type-edit.post-production {
  background: #ffedd5;
  color: #c2410c;
}

.type-edit.contact,
.type-edit.administratif {
  background: #fef3c7;
  color: #a16207;
}

.type-edit.production {
  background: #dbeafe;
  color: #1d4ed8;
}

.type-edit.enregistrement {
  background: #fce7f3;
  color: #be185d;
}

.type-edit.interview {
  background: #cffafe;
  color: #0e7490;
}

.type-edit.diffusion {
  background: #d1fae5;
  color: #047857;
}

.type-edit.autre {
  background: #e2e8f0;
  color: #475569;
}

.content-pill {
  background: hsl(var(--pill-hue), 82%, 94%);
  color: hsl(var(--pill-hue), 62%, 29%);
  border: 1px solid hsl(var(--pill-hue), 72%, 84%);
}

.format-badge {
  background: hsl(var(--format-hue), 86%, 93%);
  color: hsl(var(--format-hue), 70%, 28%);
  border: 1px solid hsl(var(--format-hue), 74%, 82%);
}

.empty-state {
  display: none;
  padding: 22px 0 0;
  color: var(--muted);
}

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

.charts-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
  margin: 18px 0;
}

.chart-panel {
  padding: 18px;
  min-width: 0;
}

.donut-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
}

.donut-chart {
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: inset 0 0 0 1px var(--line);
}

.donut-chart::after {
  content: "";
  position: absolute;
  width: 108px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.donut-chart span {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: 800;
}

.chart-legend {
  display: grid;
  gap: 8px;
}

.legend-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 6px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  text-align: left;
}

.legend-row:hover,
.legend-row.active {
  background: var(--accent-soft);
  border-color: var(--line);
}

.legend-row i {
  width: 12px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--legend-color);
}

.legend-row span,
.bar-meta span {
  color: var(--muted);
  font-weight: 800;
}

.bar-chart {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.bar-row {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.bar-row:hover,
.bar-row.active,
.summary-row:hover,
.summary-row.active {
  background: var(--accent-soft);
  border-color: var(--line);
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.bar-track {
  height: 14px;
  border-radius: 999px;
  background: #f0edf7;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color);
}

.summary-grid article {
  padding: 18px;
  min-width: 0;
}

.mini-table {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.summary-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  width: 100%;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.summary-row strong {
  overflow-wrap: anywhere;
}

.summary-row span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.summary-row .hour-badge {
  min-width: 72px;
  padding: 5px 8px;
  font-size: 12px;
}

@media (max-width: 980px) {
  .time-form,
  .totals-band,
  .charts-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .wide-field {
    grid-column: span 1;
  }

  .donut-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .app-header,
  .row-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions,
  .form-actions {
    width: 100%;
  }

  .header-actions button,
  .form-actions button {
    flex: 1 1 160px;
  }

  .app-shell {
    width: min(100% - 24px, 1360px);
  }
}



.format-edit {
  width: min(180px, 100%);
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.format-edit:disabled {
  opacity: 1;
  background: #f8f5ff;
}
.privacy-note {
  flex-basis: 100%;
  max-width: 680px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}
.load-more-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.load-more-button {
  min-width: min(260px, 100%);
}

.load-more-button[hidden] {
  display: none;
}
/* Radio B21 underground theme */
.app-header {
  background: rgba(247, 243, 234, 0.94);
  border-bottom-color: rgba(23, 23, 19, 0.14);
}

h1 {
  color: var(--charcoal);
}

.eyebrow {
  color: var(--accent);
}

.primary-button {
  background: var(--accent);
  color: #fffaf0;
  box-shadow: 0 10px 26px rgba(127, 23, 52, 0.18);
}

.primary-button:hover {
  background: var(--accent-strong);
}

.ghost-button {
  background: rgba(247, 243, 234, 0.82);
  color: var(--ink);
  border-color: var(--line);
}

.ghost-button:hover {
  background: var(--signal-soft);
  border-color: #b69a2b;
}

.entry-panel,
.data-panel,
.dashboard-panel,
.chart-panel,
.summary-grid article,
.diagnostics-panel {
  background: rgba(247, 243, 234, 0.94);
  border-color: var(--line);
}

input,
select,
textarea {
  background: #fbf8f0;
  border-color: var(--line);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(231, 200, 75, 0.35);
  border-color: var(--accent);
}

th {
  background: var(--charcoal);
  color: #f7f3ea;
}

tbody tr:hover {
  background: rgba(231, 200, 75, 0.13);
}

.table-wrap,
.diagnostics-preview-table,
.mini-table {
  background: rgba(247, 243, 234, 0.68);
}

.total-card {
  background: linear-gradient(135deg, #541225, var(--accent));
}

.billable-card {
  background: linear-gradient(135deg, #065f46, var(--emerald));
}

.non-billable-card {
  background: linear-gradient(135deg, #2b2a24, #d5ae28);
}

.type-preparation { --type-color: #7f1734; }
.type-captation { --type-color: #047857; }
.type-montage { --type-color: #c69a16; }
.type-post-production { --type-color: #9a3412; }
.type-contact { --type-color: #334155; }
.type-production { --type-color: #7f1734; }
.type-enregistrement { --type-color: #047857; }
.type-interview { --type-color: #b45309; }
.type-diffusion { --type-color: #0f766e; }
.type-administratif { --type-color: #525252; }
.type-autre { --type-color: #78716c; }

.legend-row:hover,
.legend-row.active,
.bar-row:hover,
.bar-row.active,
.summary-row:hover,
.summary-row.active {
  background: rgba(231, 200, 75, 0.18);
  border-color: rgba(127, 23, 52, 0.24);
}

.bar-track {
  background: rgba(37, 36, 31, 0.12);
}

.donut-chart::after {
  background: var(--panel);
}

.sync-status[data-state="online"] {
  background: var(--emerald-soft);
  color: #065f46;
}

.sync-status[data-state="syncing"] {
  background: var(--signal-soft);
  color: #6b5200;
}

.sync-status[data-state="error"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
/* Radio B21 chip theme */
.hour-badge,
.hour-edit {
  border: 1px solid rgba(23, 23, 19, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hour-badge.total,
.hour-edit.total {
  background: #7f1734;
  color: #fff6e8;
}

.hour-badge.billable,
.hour-edit.billable {
  background: #047857;
  color: #effaf4;
}

.hour-badge.non-billable,
.hour-edit.non-billable {
  background: #e7c84b;
  color: #211d12;
}

.content-edit,
.content-pill {
  background: #f7edba;
  border-color: #d0aa27;
  color: #4b3510;
}

.format-edit,
.format-badge {
  background: #f7f3ea;
  border-color: #9b8f7a;
  color: #25241f;
}

.type-badge,
.type-edit {
  border: 1px solid rgba(23, 23, 19, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.type-badge.preparation,
.type-edit.preparation {
  background: #7f1734;
  color: #fff6e8;
}

.type-badge.captation,
.type-edit.captation,
.type-badge.diffusion,
.type-edit.diffusion,
.type-badge.interview,
.type-edit.interview {
  background: #047857;
  color: #effaf4;
}

.type-badge.montage,
.type-edit.montage,
.type-badge.contact,
.type-edit.contact,
.type-badge.administratif,
.type-edit.administratif {
  background: #e7c84b;
  color: #211d12;
}

.type-badge.post-production,
.type-edit.post-production {
  background: #9a3412;
  color: #fff4e7;
}

.type-badge.production,
.type-edit.production,
.type-badge.autre,
.type-edit.autre {
  background: #25241f;
  color: #f7f3ea;
}

.type-badge.enregistrement,
.type-edit.enregistrement {
  background: #611128;
  color: #fff6e8;
}

.hour-edit:focus,
.type-edit:focus,
.format-edit:focus,
.content-edit:focus {
  outline: 3px solid rgba(231, 200, 75, 0.38);
  border-color: var(--accent);
  background-clip: padding-box;
}

.description-edit:hover,
.description-edit:focus {
  background: #fbf8f0;
  border-color: var(--line);
}
/* Privacy consent */
.privacy-note {
  max-width: 760px;
  color: #4f473c;
}

.privacy-consent {
  flex-basis: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 9px;
  max-width: 760px;
  margin-left: auto;
  color: #3d372f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-align: left;
}

.privacy-consent input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.privacy-consent span {
  max-width: 720px;
}
/* Concrete background refresh */
.app-header {
  background: rgba(244, 243, 238, 0.94);
  border-bottom-color: rgba(23, 23, 19, 0.18);
}

.app-shell {
  position: relative;
}

.entry-panel,
.data-panel,
.dashboard-panel,
.chart-panel,
.summary-grid article,
.diagnostics-panel {
  background: rgba(244, 243, 238, 0.96);
}
/* Button typography refresh */
button,
.header-actions a,
.header-actions .manager-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  font-family: var(--font-button);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: none;
}

button::before,
.header-actions a::before,
.header-actions .manager-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(23, 23, 19, 0.32) 7px 8px);
  pointer-events: none;
}

.primary-button,
.ghost-button,
.icon-action,
.load-more-button {
  font-family: var(--font-button);
}

.primary-button::before {
  opacity: 0.2;
  background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(255, 250, 240, 0.45) 7px 8px);
}

.header-actions button {
  font-size: 14px;
  font-weight: 700;
}

.icon-action,
.load-more-button {
  letter-spacing: 0.01em;
}
/* Anthracite background refresh */
:root {
  --bg: #242624;
  --panel: #f4f3ee;
  --panel-strong: #dfded7;
  --muted: #5f625d;
  --line: #aaa79d;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
}

body {
  background:
    radial-gradient(circle at 10% -8%, rgba(127, 23, 52, 0.22), transparent 32%),
    radial-gradient(circle at 92% 0%, rgba(4, 120, 87, 0.18), transparent 28%),
    linear-gradient(180deg, #2f322f 0, #242624 360px, #191a18 100%);
}

.app-header {
  background: rgba(31, 33, 31, 0.94);
  border-bottom-color: rgba(231, 200, 75, 0.22);
  color: #f4f3ee;
}

.app-header h1,
.app-header .eyebrow,
.app-header .sync-status,
.app-header label,
.app-header .privacy-note,
.app-header .privacy-consent {
  color: #f4f3ee;
}

.app-header .privacy-note,
.app-header .privacy-consent {
  color: rgba(244, 243, 238, 0.78);
}

.app-header input {
  background: #f4f3ee;
  color: #171713;
}

.app-header .ghost-button,
.app-header .manager-link {
  background: rgba(244, 243, 238, 0.08);
  border-color: rgba(244, 243, 238, 0.28);
  color: #f4f3ee;
}

.app-header .ghost-button:hover,
.app-header .manager-link:hover {
  background: rgba(231, 200, 75, 0.16);
  border-color: rgba(231, 200, 75, 0.45);
}

.app-shell {
  margin-top: 28px;
}

.entry-panel,
.data-panel,
.dashboard-panel,
.chart-panel,
.summary-grid article,
.diagnostics-panel {
  background: rgba(244, 243, 238, 0.97);
}
/* Radio B21 warm chips refresh */
.hour-badge.non-billable,
.hour-edit.non-billable {
  background: #b8871f;
  border-color: #8c6414;
  color: #1f170d;
}

.content-edit,
.content-pill {
  background: #dfb46f;
  border-color: #ad7931;
  color: #27190b;
}

.format-edit,
.format-badge {
  background: #efe2c4;
  border-color: #a87439;
  color: #2a2117;
}

.type-badge.montage,
.type-edit.montage,
.type-badge.contact,
.type-edit.contact,
.type-badge.administratif,
.type-edit.administratif {
  background: #b8871f;
  color: #1f170d;
}

.type-badge.post-production,
.type-edit.post-production {
  background: #b4531f;
  color: #fff4e8;
}

.ghost-button:hover {
  background: #ead8a0;
  border-color: #9b6f19;
}
/* RAL 7016 harmonized theme */
:root {
  --bg: #272b2f;
  --panel: #353a40;
  --panel-strong: #2b3035;
  --ink: #f2f0e8;
  --muted: #c6c0b5;
  --line: #555c63;
  --accent: #7f1734;
  --accent-strong: #5a1024;
  --accent-soft: #3b222b;
  --signal: #a67824;
  --signal-soft: #4a3a22;
  --emerald: #006b55;
  --emerald-soft: #173a32;
  --camel: #bd8450;
  --burnt: #a84e24;
  --charcoal: #1f2225;
  --non-billable: #a67824;
  --non-billable-soft: #4a3a22;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.36);
}

body {
  background:
    radial-gradient(circle at 12% -8%, rgba(127, 23, 52, 0.18), transparent 30%),
    radial-gradient(circle at 90% 2%, rgba(0, 107, 85, 0.16), transparent 28%),
    linear-gradient(180deg, #505762 0, #343a40 340px, #202326 100%);
  color: var(--ink);
}

.app-header {
  background: rgba(29, 32, 35, 0.96);
  border-bottom-color: rgba(189, 132, 80, 0.32);
  color: var(--ink);
}

#appTitle {
  font-family: "Rubik Glitch", var(--font-display);
  font-size: clamp(36px, 4.8vw, 62px);
  font-weight: 400;
  line-height: 0.94;
  color: #f2f0e8;
}

.app-header .eyebrow {
  color: #bd8450;
}

.entry-panel,
.data-panel,
.dashboard-panel,
.chart-panel,
.summary-grid article,
.diagnostics-panel {
  background: rgba(53, 58, 64, 0.98);
  border-color: rgba(198, 192, 181, 0.22);
  color: var(--ink);
}

.section-heading h2,
.dashboard-panel h2,
.chart-panel h2,
.summary-grid h2,
#tableTitle,
#entryTitle,
#dashboardTitle {
  color: var(--ink);
}

label,
.period-label,
.empty-state,
.legend-row span,
.bar-meta span,
.summary-row span,
.privacy-note,
.privacy-consent {
  color: var(--muted);
}

input,
select,
textarea,
.description-edit,
.format-edit {
  background: #262b30;
  border-color: #626a72;
  color: #f2f0e8;
}

input::placeholder,
textarea::placeholder {
  color: rgba(242, 240, 232, 0.52);
}

input:focus,
select:focus,
textarea:focus,
.description-edit:focus,
.format-edit:focus,
.content-edit:focus,
.type-edit:focus,
.hour-edit:focus {
  outline: 3px solid rgba(189, 132, 80, 0.32);
  border-color: var(--camel);
}

.table-wrap,
.diagnostics-preview-table,
.mini-table {
  background: #2b3035;
  border-color: rgba(198, 192, 181, 0.24);
}

th {
  background: #1f2225;
  color: #f2f0e8;
}

td {
  border-bottom-color: rgba(198, 192, 181, 0.18);
}

tbody tr:hover,
.legend-row:hover,
.legend-row.active,
.bar-row:hover,
.bar-row.active,
.summary-row:hover,
.summary-row.active {
  background: rgba(189, 132, 80, 0.13);
  border-color: rgba(189, 132, 80, 0.3);
}

.summary-row,
.diagnostics-row {
  background: #2b3035;
  color: var(--ink);
  border-color: rgba(198, 192, 181, 0.22);
}

.donut-chart::after {
  background: #353a40;
}

.bar-track {
  background: rgba(242, 240, 232, 0.18);
}

.app-header .manager-link {
  background: #7f1734;
  border-color: #a43a58;
  color: #fff8ee;
}

.app-header .manager-link::before {
  opacity: 0.12;
  background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(255, 248, 238, 0.45) 7px 8px);
}

.app-header .ghost-button {
  background: rgba(242, 240, 232, 0.08);
  border-color: rgba(242, 240, 232, 0.28);
  color: #f2f0e8;
}

.app-header .ghost-button:hover,
.ghost-button:hover {
  background: rgba(189, 132, 80, 0.18);
  border-color: rgba(189, 132, 80, 0.46);
}

.hour-badge.total,
.hour-edit.total {
  background: #7f1734;
  border-color: #a43a58;
  color: #fff8ee;
}

.hour-badge.billable,
.hour-edit.billable {
  background: #006b55;
  border-color: #16836d;
  color: #effaf4;
}

.hour-badge.non-billable,
.hour-edit.non-billable {
  background: #8d651d;
  border-color: #b18435;
  color: #fff3d7;
}

.content-edit,
.content-pill {
  background: #bd8450;
  border-color: #d1a16f;
  color: #1e140b;
}

.format-edit,
.format-badge {
  background: #60442d;
  border-color: #bd8450;
  color: #fff3df;
}

.type-badge.preparation,
.type-edit.preparation,
.type-badge.enregistrement,
.type-edit.enregistrement {
  background: #7f1734;
  color: #fff8ee;
}

.type-badge.captation,
.type-edit.captation,
.type-badge.diffusion,
.type-edit.diffusion,
.type-badge.interview,
.type-edit.interview {
  background: #006b55;
  color: #effaf4;
}

.type-badge.montage,
.type-edit.montage,
.type-badge.contact,
.type-edit.contact,
.type-badge.administratif,
.type-edit.administratif {
  background: #8d651d;
  color: #fff3d7;
}

.type-badge.post-production,
.type-edit.post-production {
  background: #a84e24;
  color: #fff4e8;
}

.type-badge.production,
.type-edit.production,
.type-badge.autre,
.type-edit.autre {
  background: #1f2225;
  color: #f2f0e8;
}

.type-preparation { --type-color: #7f1734; }
.type-captation { --type-color: #006b55; }
.type-montage { --type-color: #8d651d; }
.type-post-production { --type-color: #a84e24; }
.type-contact { --type-color: #bd8450; }
.type-production { --type-color: #555c63; }
.type-enregistrement { --type-color: #7f1734; }
.type-interview { --type-color: #006b55; }
.type-diffusion { --type-color: #006b55; }
.type-administratif { --type-color: #8d651d; }
.type-autre { --type-color: #555c63; }

.total-card {
  background: linear-gradient(135deg, #5a1024, #7f1734);
}

.billable-card {
  background: linear-gradient(135deg, #004c3e, #006b55);
}

.non-billable-card {
  background: linear-gradient(135deg, #4a3518, #8d651d);
}
/* Mustard white text fix */
.hour-badge.non-billable,
.hour-edit.non-billable,
.type-badge.montage,
.type-edit.montage,
.type-badge.contact,
.type-edit.contact,
.type-badge.administratif,
.type-edit.administratif {
  color: #fff8ee;
}
/* Title stencil glitch refinement */
#appTitle {
  position: relative;
  display: inline-block;
  font-family: "Saira Stencil One", var(--font-display);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 400;
  line-height: 0.98;
  color: #f2f0e8;
  text-transform: uppercase;
  letter-spacing: 0.012em;
  text-shadow: 1px 1px 0 rgba(127, 23, 52, 0.55);
}

#appTitle::before,
#appTitle::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  clip-path: inset(18% 0 62% 0);
}

#appTitle::before {
  color: #bd8450;
  transform: translate(1px, -1px);
}

#appTitle::after {
  color: #7f1734;
  transform: translate(-1px, 1px);
  clip-path: inset(64% 0 14% 0);
}


/* High contrast hour fields */
#totalHours,
#billableHours,
#nonBillableHours {
  background: #20252a;
  border: 2px solid #bd8450;
  color: #f8f3e8;
  box-shadow: inset 0 0 0 1px rgba(248, 243, 232, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.2);
}

#totalHours::placeholder,
#billableHours::placeholder,
#nonBillableHours::placeholder {
  color: rgba(248, 243, 232, 0.72);
}

#totalHours:focus,
#billableHours:focus,
#nonBillableHours:focus {
  background: #181d21;
  border-color: #d39a5d;
  color: #ffffff;
  outline: 3px solid rgba(189, 132, 80, 0.35);
}

#nonBillableHours[readonly] {
  background: #242a2f;
  border-color: #8d651d;
  color: #fff8ee;
}

/* Reset button visibility + rougher title treatment */
#resetButton,
.form-actions .ghost-button {
  background: #2a3035;
  border: 1px solid #bd8450;
  color: #fff8ee;
  box-shadow: inset 0 0 0 1px rgba(248, 243, 232, 0.06), 0 10px 22px rgba(0, 0, 0, 0.18);
}

#resetButton:hover,
.form-actions .ghost-button:hover {
  background: #3a3029;
  border-color: #d39a5d;
  color: #ffffff;
}

#appTitle {
  font-family: "Saira Stencil One", "Chakra Petch", var(--font-display);
  letter-spacing: 0.025em;
  transform: skewX(-2deg);
  color: #f6eee2;
  text-shadow:
    2px 0 0 rgba(127, 23, 52, 0.7),
    -1px 1px 0 rgba(189, 132, 80, 0.65),
    0 5px 0 rgba(0, 0, 0, 0.22);
  filter: contrast(1.08);
}

#appTitle::before,
#appTitle::after {
  opacity: 0.42;
  mix-blend-mode: normal;
}

#appTitle::before {
  color: #bd8450;
  transform: translate(3px, -2px) skewX(4deg);
  clip-path: polygon(0 8%, 100% 0, 100% 26%, 0 34%, 0 42%, 100% 38%, 100% 52%, 0 58%);
}

#appTitle::after {
  color: #7f1734;
  transform: translate(-3px, 2px) skewX(-5deg);
  clip-path: polygon(0 56%, 100% 50%, 100% 66%, 0 72%, 0 82%, 100% 78%, 100% 94%, 0 100%);
}

/* Destroy title: distorted, readable, no pink/peach glitch */
#appTitle {
  font-family: "Saira Stencil One", "Chakra Petch", var(--font-display);
  color: #f1eee5;
  letter-spacing: 0.018em;
  transform: skewX(-4deg) scaleX(0.98);
  text-shadow:
    2px 2px 0 #111416,
    -1px 0 0 #3f474e,
    0 6px 0 rgba(0, 0, 0, 0.28);
  filter: contrast(1.2) saturate(0.78);
}

#appTitle::before,
#appTitle::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #111416;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

#appTitle::before {
  transform: translate(2px, -1px) skewX(8deg);
  clip-path: polygon(0 12%, 100% 5%, 100% 23%, 0 31%, 0 39%, 100% 36%, 100% 48%, 0 55%);
}

#appTitle::after {
  transform: translate(-2px, 2px) skewX(-7deg);
  clip-path: polygon(0 58%, 100% 52%, 100% 67%, 0 75%, 0 84%, 100% 80%, 100% 95%, 0 100%);
}

/* Destroy title: burgundy + mouse grey, no white stripe */
#appTitle {
  color: #c5c8c6;
  transform: skewX(-4deg) scaleX(0.98);
  text-shadow:
    2px 2px 0 #101416,
    -2px 0 0 #6f142b,
    0 5px 0 rgba(0, 0, 0, 0.34);
  filter: contrast(1.08) saturate(0.9);
}

#appTitle::before,
#appTitle::after {
  color: #6f142b;
  opacity: 0.5;
  mix-blend-mode: normal;
}

#appTitle::before {
  transform: translate(2px, -1px) skewX(7deg);
  clip-path: polygon(0 12%, 100% 6%, 100% 24%, 0 32%, 0 42%, 100% 38%, 100% 49%, 0 56%);
}

#appTitle::after {
  color: #7c8587;
  transform: translate(-2px, 2px) skewX(-7deg);
  clip-path: polygon(0 58%, 100% 52%, 100% 66%, 0 73%, 0 84%, 100% 80%, 100% 94%, 0 100%);
}

/* Distressed burgundy title, no beige/white bands */
#appTitle {
  position: relative;
  display: inline-block;
  font-family: "Rubik Dirt", "Saira Stencil One", "Chakra Petch", var(--font-display);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #5d0b20;
  -webkit-text-stroke: 1px #2a060f;
  text-shadow:
    2px 2px 0 #111416,
    0 7px 0 rgba(0, 0, 0, 0.28);
  transform: rotate(-0.7deg) skewX(-2deg) scaleX(1.02);
  filter: contrast(1.18) saturate(0.92);
}

@supports (-webkit-background-clip: text) {
  #appTitle {
    color: transparent;
    background-color: #5d0b20;
    background-image:
      radial-gradient(circle at 12% 18%, transparent 0 2px, #5d0b20 2.4px),
      radial-gradient(circle at 42% 72%, transparent 0 1.7px, #5d0b20 2.2px),
      radial-gradient(circle at 76% 34%, transparent 0 2.2px, #5d0b20 2.8px),
      repeating-linear-gradient(172deg, #5d0b20 0 8px, transparent 8px 10px, #5d0b20 10px 22px);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

#appTitle::before,
#appTitle::after {
  display: none;
  content: none;
}

/* Readable broken title: dark burgundy, bold cutout style */
#appTitle {
  position: relative;
  display: inline-block;
  font-family: "Rubik Dirt", "Saira Stencil One", "Chakra Petch", var(--font-display);
  font-size: clamp(40px, 5.15vw, 70px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  color: #951638;
  -webkit-text-stroke: 1.4px #090b0c;
  text-shadow:
    3px 3px 0 #090b0c,
    -1px -1px 0 #221014,
    0 7px 0 rgba(0, 0, 0, 0.34);
  transform: rotate(-0.6deg) skewX(-2deg) scaleX(1.03);
  filter: contrast(1.15) saturate(1.05);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

#appTitle::before,
#appTitle::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: block;
  color: #090b0c;
  opacity: 0.42;
  mix-blend-mode: normal;
}

#appTitle::before {
  transform: translate(2px, -1px) skewX(5deg);
  clip-path: polygon(0 16%, 100% 10%, 100% 24%, 0 31%, 0 39%, 100% 36%, 100% 43%, 0 49%);
}

#appTitle::after {
  transform: translate(-2px, 2px) skewX(-5deg);
  clip-path: polygon(0 61%, 100% 56%, 100% 66%, 0 73%, 0 82%, 100% 78%, 100% 88%, 0 96%);
}

/* Final readability pass: title, diagnostics buttons, chart contrast */
#appTitle {
  font-family: "Rubik Dirt", "Saira Stencil One", "Chakra Petch", var(--font-display);
  color: #9f1d3b;
  -webkit-text-stroke: 0.9px #c75269;
  text-shadow:
    2px 2px 0 #3c0715,
    0 6px 0 rgba(0, 0, 0, 0.3);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  filter: contrast(1.18) saturate(1.06);
}

#appTitle::before,
#appTitle::after {
  display: none;
  content: none;
}

.diagnostics-actions .ghost-button,
.diagnostics-panel .ghost-button,
#resetButton,
.form-actions .ghost-button,
.load-more-button {
  background: #252b30;
  border: 1px solid #7f1734;
  color: #f2f0e8;
  box-shadow: inset 0 0 0 1px rgba(242, 240, 232, 0.04), 0 8px 18px rgba(0, 0, 0, 0.22);
}

.diagnostics-actions .ghost-button:hover,
.diagnostics-panel .ghost-button:hover,
#resetButton:hover,
.form-actions .ghost-button:hover,
.load-more-button:hover {
  background: #3c0715;
  border-color: #b53352;
  color: #ffffff;
}

.diagnostics-actions .ghost-button:disabled,
.diagnostics-panel .ghost-button:disabled {
  background: #1f2529;
  border-color: #4f5960;
  color: #8f989f;
  opacity: 0.85;
}

.bar-track {
  background: #4a5055;
}

.bar-fill {
  background: var(--bar-color);
  filter: saturate(1.15) contrast(1.08);
}

/* Broken title and stronger action buttons */
#appTitle {
  font-family: "Rubik Glitch", "Rubik Dirt", "Chakra Petch", var(--font-display);
  color: #a51d3c;
  -webkit-text-stroke: 0.7px #d65a72;
  text-shadow:
    2px 2px 0 #3c0715,
    0 7px 0 rgba(0, 0, 0, 0.32);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  filter: contrast(1.08) saturate(1.08);
}

#appTitle::before,
#appTitle::after {
  display: none;
  content: none;
}

.primary-button,
#exportButton,
#saveRemoteButton,
.form-actions .primary-button {
  background: linear-gradient(135deg, #7f1734, #5f1024);
  border: 1px solid #b53352;
  color: #fff8ee;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 248, 238, 0.08);
}

.primary-button:hover,
#exportButton:hover,
#saveRemoteButton:hover,
.form-actions .primary-button:hover {
  background: linear-gradient(135deg, #9f1d3b, #6d132b);
  color: #ffffff;
}

#exportJsonButton.export-json-button,
.header-actions #exportJsonButton {
  background: #252b30;
  border: 1px solid #7f1734;
  color: #f2f0e8;
}

#exportJsonButton.export-json-button:hover,
.header-actions #exportJsonButton:hover {
  background: #3c0715;
  border-color: #b53352;
  color: #ffffff;
}

/* Broken, not glitch: heavy fractured title */
#appTitle {
  font-family: "Rubik Dirt", "Saira Stencil One", "Chakra Petch", var(--font-display);
  color: #a51d3c;
  -webkit-text-stroke: 0.8px #d65a72;
  text-shadow:
    2px 2px 0 #3c0715,
    0 7px 0 rgba(0, 0, 0, 0.32);
  transform: rotate(-0.8deg) skewX(-2deg) scaleX(1.04);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  filter: contrast(1.14) saturate(1.05);
}

#appTitle::before,
#appTitle::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  color: #3c0715;
  opacity: 0.72;
  mix-blend-mode: normal;
}

#appTitle::before {
  transform: translate(1px, 1px) skewX(3deg);
  clip-path: polygon(0 18%, 12% 13%, 17% 25%, 31% 18%, 37% 31%, 49% 20%, 55% 35%, 70% 22%, 78% 34%, 100% 25%, 100% 42%, 0 48%);
}

#appTitle::after {
  transform: translate(-1px, 2px) skewX(-3deg);
  clip-path: polygon(0 61%, 9% 55%, 16% 68%, 29% 58%, 36% 73%, 50% 62%, 59% 78%, 72% 65%, 83% 80%, 100% 70%, 100% 91%, 0 96%);
}

/* Local broken font files */
@font-face {
  font-family: "B21 Broken";
  src: url("BROKEN15.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "B21 Broken Alt";
  src: url("Broken.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Real broken font title from local files */
#appTitle {
  font-family: "B21 Broken", "B21 Broken Alt", "Rubik Dirt", "Chakra Petch", var(--font-display);
  color: #a51d3c;
  -webkit-text-stroke: 0.45px #d65a72;
  text-shadow:
    2px 2px 0 #3c0715,
    0 7px 0 rgba(0, 0, 0, 0.3);
  transform: rotate(-0.4deg) scaleX(1.02);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  filter: contrast(1.12) saturate(1.06);
}

#appTitle::before,
#appTitle::after {
  display: none;
  content: none;
}

/* Export JSON aligned with title color */
#exportJsonButton.export-json-button,
.header-actions #exportJsonButton {
  background: #a51d3c;
  border-color: #d65a72;
  color: #fff8ee;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26), inset 0 0 0 1px rgba(255, 248, 238, 0.08);
}

#exportJsonButton.export-json-button:hover,
.header-actions #exportJsonButton:hover {
  background: #7f1734;
  border-color: #e07086;
  color: #ffffff;
}

/* Title uses local Broken font + unified burgundy primary actions */
@font-face {
  font-family: "B21 Broken Main";
  src: url("Broken.otf") format("opentype"), url("Broken.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

#appTitle {
  font-family: "B21 Broken Main", "B21 Broken", "B21 Broken Alt", "Rubik Dirt", "Chakra Petch", var(--font-display);
  color: #a51d3c;
  -webkit-text-stroke: 0.45px #d65a72;
  text-shadow:
    2px 2px 0 #3c0715,
    0 7px 0 rgba(0, 0, 0, 0.3);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

#appTitle::before,
#appTitle::after {
  display: none;
  content: none;
}

.primary-button,
.form-actions .primary-button,
#saveRemoteButton,
#exportButton,
#exportJsonButton.export-json-button,
.header-actions #exportJsonButton {
  background: #a51d3c;
  border: 1px solid #d65a72;
  color: #fff8ee;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26), inset 0 0 0 1px rgba(255, 248, 238, 0.08);
}

.primary-button:hover,
.form-actions .primary-button:hover,
#saveRemoteButton:hover,
#exportButton:hover,
#exportJsonButton.export-json-button:hover,
.header-actions #exportJsonButton:hover {
  background: #7f1734;
  border-color: #e07086;
  color: #ffffff;
}

/* Title uses local Broken Ink font */
@font-face {
  font-family: "B21 Broken Ink";
  src: url("Broken%20Ink.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

#appTitle {
  font-family: "B21 Broken Ink", "B21 Broken Main", "B21 Broken", "B21 Broken Alt", "Rubik Dirt", "Chakra Petch", var(--font-display);
}

/* Title uses local broken2 font and fixed three-line layout */
@font-face {
  font-family: "B21 broken2";
  src: url("Broken2.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

#appTitle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.02em;
  font-family: "B21 broken2", "B21 Broken Ink", "B21 Broken Main", "B21 Broken", "B21 Broken Alt", "Rubik Dirt", "Chakra Petch", var(--font-display);
  line-height: 0.82;
  color: #a51d3c;
  -webkit-text-stroke: 0.45px #d65a72;
  text-shadow:
    2px 2px 0 #3c0715,
    0 7px 0 rgba(0, 0, 0, 0.3);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

#appTitle span {
  display: block;
}

#appTitle::before,
#appTitle::after {
  display: none;
  content: none;
}

/* Title uses local Boston font and only RadioB21 */
@font-face {
  font-family: "B21 Boston";
  src: url("BOSTON%20CAPS.otf") format("opentype"), url("BOSTON%20CAPS.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

#appTitle {
  display: inline-block;
  font-family: "B21 Boston", "Chakra Petch", var(--font-display);
  line-height: 0.92;
  color: #a51d3c;
  -webkit-text-stroke: 0.45px #d65a72;
  text-shadow:
    2px 2px 0 #3c0715,
    0 7px 0 rgba(0, 0, 0, 0.3);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

#appTitle span {
  display: inline;
}

#appTitle::before,
#appTitle::after {
  display: none;
  content: none;
}

/* Boston title: prefer TTF variant to avoid demo mark from OTF */
@font-face {
  font-family: "B21 Boston Clean";
  src: url("BOSTON%20CAPS.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

#appTitle {
  font-family: "B21 Boston Clean", "B21 Boston", "Chakra Petch", var(--font-display);
}

/* Final title split: Journal de prod' in broken2, RadioB21 in Boston */
#appTitle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.03em;
  max-width: min(980px, 92vw);
  margin: 0;
  line-height: 0.86;
  color: #a51d3c;
  -webkit-text-stroke: 0;
  text-shadow: none;
  transform: none;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  filter: none;
}

#appTitle::before,
#appTitle::after {
  display: none;
  content: none;
}

#appTitle span {
  display: block;
}

#appTitle .title-prod {
  font-family: "B21 broken2", "B21 Broken Ink", "B21 Broken Main", "B21 Broken", "Rubik Dirt", var(--font-display);
  font-size: clamp(3.3rem, 8.4vw, 7.8rem);
  color: #a51d3c;
  -webkit-text-stroke: 0.35px #d65a72;
  text-shadow:
    2px 2px 0 #3c0715,
    0 8px 0 rgba(0, 0, 0, 0.34);
  letter-spacing: 0;
}

#appTitle .title-radio {
  font-family: "B21 Boston Clean", "B21 Boston", "Chakra Petch", var(--font-display);
  font-size: clamp(2.7rem, 7vw, 6.6rem);
  color: #a51d3c;
  -webkit-text-stroke: 0.35px #d65a72;
  text-shadow:
    2px 2px 0 #3c0715,
    0 7px 0 rgba(0, 0, 0, 0.3);
  letter-spacing: 0;
}

.header-actions .export-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.header-actions .export-actions button {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .header-actions .export-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .header-actions .export-actions button {
    flex: 1 1 160px;
  }
}

/* Remove unwanted Boston font artwork/watermark from RadioB21 */
#appTitle .title-radio {
  font-family: "Chakra Petch", "Space Grotesk", var(--font-display);
  font-weight: 800;
  text-transform: none;
}

/* Remove unwanted tattoowoo artwork embedded in demo fonts */
#appTitle .title-prod {
  font-family: "B21 Broken Ink", "B21 Broken Main", "B21 Broken", "Rubik Dirt", "Chakra Petch", var(--font-display);
}

#appTitle .title-radio {
  font-family: "Chakra Petch", "Space Grotesk", var(--font-display);
  font-weight: 800;
}

/* Final title fonts restored, apostrophe removed to avoid demo glyph */
#appTitle .title-prod {
  font-family: "B21 broken2", "B21 Broken Ink", "B21 Broken Main", "B21 Broken", "Rubik Dirt", "Chakra Petch", var(--font-display);
}

#appTitle .title-radio {
  font-family: "B21 Boston Clean", "B21 Boston", "Chakra Petch", var(--font-display);
  font-weight: 400;
}

/* Stable format color code shared by charts, badges and editable selects */
.format-badge,
.format-edit {
  --format-color: var(--camel);
  border-color: color-mix(in srgb, var(--format-color) 72%, #f2f0e8 28%);
}

.format-badge {
  background: color-mix(in srgb, var(--format-color) 20%, #23282d 80%);
  color: #f8f3e8;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--format-color) 50%, transparent);
}

.format-edit {
  background: color-mix(in srgb, var(--format-color) 16%, #262b30 84%);
  color: #f8f3e8;
}

.format-edit:focus {
  border-color: color-mix(in srgb, var(--format-color) 86%, #ffffff 14%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--format-color) 24%, transparent);
}

/* Hide internal storage label from the UI */
#baseLabel {
  display: none !important;
}

/* Final pass: distinct palettes, Beuty Rush buttons, smaller title */
@font-face {
  font-family: "B21 Beuty Rush";
  src: url("Beuty%20Rush.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

button,
.primary-button,
.ghost-button,
.load-more-button,
.icon-action {
  font-family: "B21 Beuty Rush", "Chakra Petch", "Space Grotesk", var(--font-button);
  font-weight: 400;
  letter-spacing: 0;
}

tbody td,
.summary-row,
.bar-row,
.legend-row {
  font-family: "Space Grotesk", "Manrope", var(--font-body);
}

#appTitle .title-prod {
  font-size: clamp(2.45rem, 5.6vw, 5.4rem);
}

#appTitle .title-radio {
  font-size: clamp(2.05rem, 4.8vw, 4.7rem);
}

.totals-band {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.average-card,
.month-card,
.year-card {
  background: linear-gradient(135deg, #2f363b, #202428);
  border: 1px solid rgba(198, 192, 181, 0.22);
  color: #f2f0e8;
}

.average-card::after,
.month-card::after,
.year-card::after {
  background: rgba(189, 132, 80, 0.18);
}

.average-card span,
.month-card span,
.year-card span {
  color: rgba(242, 240, 232, 0.72);
}

.average-card strong,
.month-card strong,
.year-card strong {
  color: #f8f3e8;
}

@media (max-width: 920px) {
  .totals-band {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 620px) {
  .totals-band {
    grid-template-columns: 1fr;
  }
}

/* Summary metrics belong in the lower Résumé block, not in the top totals band */
.summary-metrics {
  display: grid;
  gap: 10px;
  margin: 12px 0 12px;
}

.summary-metric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(198, 192, 181, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(33, 38, 43, 0.92), rgba(25, 29, 33, 0.92));
  color: #f8f3e8;
}

.summary-metric-row strong {
  color: #f8f3e8;
  font-family: "Space Grotesk", "Manrope", var(--font-body);
}

.summary-metric-row span {
  justify-self: end;
  min-width: 104px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #a51d3c;
  border: 1px solid #d65a72;
  color: #fff8ee;
  font-weight: 800;
}

/* Encoded table rows use Discipline Notes */
@font-face {
  font-family: "B21 Discipline Notes";
  src: url("Discipline%20Notes.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

#entriesBody td,
#entriesBody input,
#entriesBody select,
#entriesBody textarea,
#entriesBody .format-badge,
#entriesBody .hour-badge {
  font-family: "B21 Discipline Notes", "Space Grotesk", "Manrope", var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
}

/* Discipline Notes also applies to encoded form fields */
#timeForm input,
#timeForm select,
#timeForm textarea,
#timeForm option {
  font-family: "B21 Discipline Notes", "Space Grotesk", "Manrope", var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
}

/* Papernotes everywhere except the title fonts */
@font-face {
  font-family: "B21 Papernotes";
  src: url("Papernotes.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body,
input,
select,
textarea,
button,
table,
th,
td,
.summary-row,
.summary-metric-row,
.bar-row,
.legend-row,
.format-badge,
.hour-badge,
.privacy-note,
.privacy-consent,
.sync-status,
.period-label,
.empty-state,
.manager-link {
  font-family: "B21 Papernotes", "Space Grotesk", "Manrope", sans-serif !important;
  font-weight: 400;
  letter-spacing: 0;
}

#appTitle .title-prod {
  font-family: "B21 broken2", "B21 Broken Ink", "B21 Broken Main", "B21 Broken", "Rubik Dirt", var(--font-display) !important;
}

#appTitle .title-radio {
  font-family: "B21 Boston Clean", "B21 Boston", "Chakra Petch", var(--font-display) !important;
}

/* Slightly larger Boston title only */
#appTitle .title-radio {
  font-size: clamp(2.5rem, 5.8vw, 5.6rem) !important;
}

/* Larger Papernotes text without growing writing fields */
body,
input,
select,
textarea,
button,
table,
th,
td,
.summary-row,
.summary-metric-row,
.bar-row,
.legend-row,
.format-badge,
.hour-badge,
.privacy-note,
.privacy-consent,
.sync-status,
.period-label,
.empty-state,
.manager-link {
  font-size: 17px;
}

#timeForm input,
#timeForm select,
#entriesBody input,
#entriesBody select,
.hour-edit,
.format-edit,
.type-edit,
.content-edit {
  min-height: 42px;
  height: 42px;
  line-height: 1;
  padding-top: 6px;
  padding-bottom: 6px;
}

#timeForm textarea,
#entriesBody textarea,
.description-edit {
  line-height: 1.08;
  padding-top: 8px;
  padding-bottom: 8px;
}

#appTitle .title-prod,
#appTitle .title-radio {
  font-size: inherit;
}

#appTitle .title-prod {
  font-size: clamp(2.45rem, 5.6vw, 5.4rem) !important;
}

#appTitle .title-radio {
  font-size: clamp(2.5rem, 5.8vw, 5.6rem) !important;
}

/* Discipline Notes for dashboard subtitles */
#tableTitle,
.charts-grid .chart-panel h2,
.summary-grid article:nth-child(n + 2) h2 {
  font-family: "B21 Discipline Notes", "B21 Papernotes", "Space Grotesk", var(--font-body) !important;
  font-weight: 400;
  letter-spacing: 0;
}

/* January Night replaces Papernotes, Indie Flower replaces Discipline Notes */
@font-face {
  font-family: "B21 January Night";
  src: url("January%20Night.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "B21 Indie Flower";
  src: url("IndieFlower.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body,
input,
select,
textarea,
button,
table,
th,
td,
.summary-row,
.summary-metric-row,
.bar-row,
.legend-row,
.format-badge,
.hour-badge,
.privacy-note,
.privacy-consent,
.sync-status,
.period-label,
.empty-state,
.manager-link {
  font-family: "B21 January Night", "Space Grotesk", "Manrope", sans-serif !important;
}

#tableTitle,
#entryTitle,
.section-heading h2,
.charts-grid .chart-panel h2,
.summary-grid article h2,
.summary-grid .eyebrow,
.chart-panel .eyebrow,
.data-panel .eyebrow,
.entry-panel .eyebrow {
  font-family: "B21 Indie Flower", "B21 January Night", "Space Grotesk", sans-serif !important;
  font-weight: 400;
  letter-spacing: 0;
}

#entriesBody td,
#entriesBody input,
#entriesBody select,
#entriesBody textarea,
#entriesBody .format-badge,
#entriesBody .hour-badge,
#timeForm input,
#timeForm select,
#timeForm textarea,
#timeForm option {
  font-family: "B21 Indie Flower", "B21 January Night", "Space Grotesk", sans-serif !important;
}

#appTitle .title-prod {
  font-family: "B21 broken2", "B21 Broken Ink", "B21 Broken Main", "B21 Broken", "Rubik Dirt", var(--font-display) !important;
}

#appTitle .title-radio {
  font-family: "B21 Boston Clean", "B21 Boston", "Chakra Petch", var(--font-display) !important;
}

/* Bigger Indie Flower text inside chart and summary rows without growing containers */
.bar-row,
.legend-row,
.summary-row {
  font-size: 20px !important;
  line-height: 1.02;
}

.bar-meta strong,
.bar-meta span,
.legend-row strong,
.legend-row span,
.summary-row strong,
.summary-row span {
  font-size: inherit !important;
  line-height: 1.02;
}

/* Final requested typography and row sizing */
#entriesBody td,
#entriesBody input,
#entriesBody select,
#entriesBody textarea,
#entriesBody .format-badge,
#entriesBody .hour-badge {
  font-family: "B21 January Night", "Space Grotesk", "Manrope", sans-serif !important;
  font-size: 20px !important;
  line-height: 1.05;
}

#entriesBody input,
#entriesBody select,
#entriesBody .format-edit,
#entriesBody .type-edit,
#entriesBody .content-edit,
#entriesBody .hour-edit {
  height: 42px;
  min-height: 42px;
}

#entriesBody textarea,
#entriesBody .description-edit {
  font-size: 20px !important;
  line-height: 1.08;
}

.bar-row,
.bar-meta strong,
.bar-meta span,
.summary-row,
.summary-row strong,
.summary-row span,
#contentSummary .summary-row,
#contentSummary .summary-row strong,
#contentSummary .summary-row span,
#monthlySummary .summary-row,
#monthlySummary .summary-row strong,
#monthlySummary .summary-row span {
  font-size: 22px !important;
  line-height: 1.02;
}

#contentSummary,
#contentSummary .summary-row,
#contentSummary .summary-row strong,
#contentSummary .summary-row span {
  font-family: "B21 Indie Flower", "B21 January Night", "Space Grotesk", sans-serif !important;
}

.summary-grid article h2,
.summary-grid article:nth-child(2) h2 {
  font-family: "B21 Indie Flower", "B21 January Night", "Space Grotesk", sans-serif !important;
}

/* Final typography balance: readable January content, unified subtitles */
.section-heading .eyebrow,
.entry-panel .eyebrow,
.data-panel .eyebrow,
.chart-panel .eyebrow,
.summary-grid .eyebrow {
  font-family: "B21 Indie Flower", "B21 January Night", "Space Grotesk", sans-serif !important;
  font-size: 18px !important;
  line-height: 1;
  color: #d7c7b1 !important;
  letter-spacing: 0;
}

#tableTitle,
#entryTitle,
.charts-grid .chart-panel h2,
.summary-grid article h2 {
  font-family: "B21 Indie Flower", "B21 January Night", "Space Grotesk", sans-serif !important;
  font-size: 34px !important;
  line-height: 1.02;
  color: #f0e3ce !important;
  letter-spacing: 0;
}

.summary-metrics,
.summary-metric-row,
.summary-metric-row strong,
.summary-metric-row span,
#monthlySummary,
#monthlySummary .summary-row,
#monthlySummary .summary-row strong,
#monthlySummary .summary-row span,
#contentSummary,
#contentSummary .summary-row,
#contentSummary .summary-row strong,
#contentSummary .summary-row span {
  font-family: "B21 January Night", "Space Grotesk", "Manrope", sans-serif !important;
  font-size: 23px !important;
  line-height: 1.05;
}

.summary-metric-row span,
#monthlySummary .summary-row span,
#contentSummary .summary-row span {
  font-size: 22px !important;
}

.summary-grid article h2 {
  font-family: "B21 Indie Flower", "B21 January Night", "Space Grotesk", sans-serif !important;
}

.chart-legend,
.chart-legend .legend-row,
.chart-legend .legend-row strong,
.chart-legend .legend-row span {
  font-family: "B21 January Night", "Space Grotesk", "Manrope", sans-serif !important;
  font-size: 22px !important;
  line-height: 1.05;
}

.chart-legend .legend-row i {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

/* Larger header text without growing header buttons */
.app-header .header-actions,
.app-header .header-actions .privacy-note,
.app-header .header-actions .privacy-consent,
.app-header .header-actions .sync-status,
.app-header .header-actions .manager-link,
.app-header .header-actions button {
  font-size: 20px !important;
  line-height: 1.05;
}

.app-header .header-actions button,
.app-header .header-actions .ghost-button,
.app-header .header-actions .primary-button,
.app-header .header-actions .manager-link {
  min-height: 42px;
  height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-header .header-actions .privacy-note {
  max-width: 680px;
}

/* Larger form action labels without growing the buttons */
.form-actions button,
.form-actions .primary-button,
.form-actions .ghost-button {
  font-size: 21px !important;
  line-height: 1;
  height: 42px;
  min-height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Plain hour values in the Résumé block */
.summary-grid .summary-metric-row span,
.summary-grid .summary-row .hour-badge,
#monthlySummary .hour-badge,
#contentSummary .hour-badge {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #f8f3e8 !important;
  min-width: auto;
  padding: 0 !important;
}

.summary-grid .summary-row span {
  color: #f8f3e8 !important;
}

/* Clean three-line title without changing font sizes */
#appTitle .title-prod {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

#appTitle .title-prod span {
  display: block;
  line-height: inherit;
}

/* Plain hour values in Suivi du temps only */
#entriesBody .hour-badge,
#entriesBody .hour-edit {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #f8f3e8 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-width: auto !important;
  text-align: center;
}

#entriesBody td.number-cell {
  color: #f8f3e8;
}

/* Keep "de prod" on one title line */
#appTitle .title-prod,
#appTitle .title-prod span {
  width: max-content;
  max-width: none;
}

#appTitle .title-prod span:nth-child(2) {
  white-space: nowrap !important;
  word-break: keep-all;
  overflow-wrap: normal;
}

/* Bigger Aperçu controls, keeping Aperçu/Tableau de bord titles unchanged */
.dashboard-panel label,
.dashboard-panel input,
.dashboard-panel select,
.dashboard-panel .period-label {
  font-size: 20px !important;
  line-height: 1.05;
}

.dashboard-panel input,
.dashboard-panel select {
  height: 42px;
  min-height: 42px;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* Tight controlled spacing between de and prod */
#appTitle .title-prod .title-de-prod {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: baseline;
  gap: 0.18em;
  white-space: nowrap !important;
  width: max-content;
}

#appTitle .title-prod .title-de-prod span {
  display: inline-block;
  line-height: inherit;
}

/* Stable guest color code in Suivi du temps */
#entriesBody .content-edit {
  --content-color: #bd8450;
  background: color-mix(in srgb, var(--content-color) 78%, #f8f3e8 22%) !important;
  border-color: color-mix(in srgb, var(--content-color) 84%, #ffffff 16%) !important;
  color: #151719 !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--content-color) 40%, transparent);
}

#entriesBody .content-edit:focus {
  border-color: #f8f3e8 !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--content-color) 34%, transparent) !important;
}
/* Square color chips for Invité and Type in Suivi du temps */
#entriesBody .content-edit,
#entriesBody .type-edit {
  border-radius: 0 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

#entriesBody .content-edit {
  --content-color: #bd8450;
  background: color-mix(in srgb, var(--content-color) 84%, #111416 16%) !important;
  border-color: color-mix(in srgb, var(--content-color) 86%, #ffffff 14%) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--content-color) 38%, transparent);
}

#entriesBody .type-edit {
  --type-color: #8a1732;
  background: color-mix(in srgb, var(--type-color) 86%, #111416 14%) !important;
  border-color: color-mix(in srgb, var(--type-color) 88%, #ffffff 12%) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--type-color) 38%, transparent);
}

#entriesBody .content-edit:focus,
#entriesBody .type-edit:focus {
  border-color: #f8f3e8 !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent), inset 0 0 0 1px rgba(255,255,255,0.16) !important;
}
