:root {
  color-scheme: light;
  --ink: #191816;
  --muted: #746b60;
  --line: #ded5ca;
  --surface: #ffffff;
  --soft: #f7f3ee;
  --accent: #a8793f;
  --accent-2: #22211f;
  --warn: #9b5b14;
  --danger: #b3261e;
  --done: #426b45;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f1ece5;
  color: var(--ink);
}

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

button,
.nav-tabs button {
  min-height: 38px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}

button.secondary,
.nav-tabs button {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

button:hover {
  filter: brightness(0.97);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 121, 63, 0.16);
}

.access-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(25, 24, 22, 0.96), rgba(56, 44, 33, 0.9)),
    #1d1a17;
}

.access-card {
  width: min(430px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.access-card h1 {
  font-size: 26px;
}

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

.form-error {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 750;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 132px;
  height: auto;
  display: block;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.sync-panel span,
.project-strip span,
.archive-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.brand.large .brand-mark {
  width: 50px;
  height: 50px;
  background: var(--accent);
}

.nav-tabs {
  display: grid;
  gap: 8px;
}

.nav-tabs button {
  justify-content: flex-start;
  text-align: left;
}

.nav-tabs button.active {
  background: #f4eadc;
  border-color: rgba(168, 121, 63, 0.36);
  color: var(--accent);
}

.sync-panel {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

main {
  padding: 18px;
  min-width: 0;
}

.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.topbar label {
  display: grid;
  gap: 6px;
  min-width: min(440px, 52vw);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.topbar-actions,
.filters,
.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body[data-role="chef"] #hubspotImport,
body[data-role="chef"] #dropboxCheck {
  display: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.project-strip,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.project-strip div,
.archive-grid div {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.project-strip strong,
.archive-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.workspace-grid,
.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(330px, 0.8fr);
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.panel + .panel,
.plan-panel {
  margin-top: 16px;
}

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

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
}

h2 {
  font-size: 17px;
}

.stack-form {
  display: grid;
  gap: 10px;
}

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

.file-drop {
  min-height: 52px;
  border: 1px dashed #aeb9c2;
  border-radius: 8px;
  background: var(--soft);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.file-drop input {
  display: none;
}

.observation-list {
  display: grid;
  gap: 10px;
}

.observation-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  padding: 12px;
}

.observation-item strong {
  display: block;
  margin-bottom: 4px;
}

.observation-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  background: #e8edf1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pill.open {
  background: #f8ead8;
  color: var(--warn);
}

.pill.progress {
  background: #eee7df;
  color: var(--accent-2);
}

.pill.done {
  background: #eaf1e7;
  color: var(--done);
}

.thumb {
  width: 112px;
  height: 84px;
  border-radius: 7px;
  object-fit: cover;
  background: #dfe7ed;
}

.plan-board {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(168, 121, 63, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(168, 121, 63, 0.13) 1px, transparent 1px),
    #fbf8f4;
  background-size: 32px 32px;
}

.plan-grid::before,
.plan-grid::after {
  content: "";
  position: absolute;
  background: rgba(11, 107, 97, 0.14);
}

.plan-grid::before {
  left: 11%;
  top: 16%;
  width: 68%;
  height: 2px;
}

.plan-grid::after {
  left: 22%;
  top: 14%;
  width: 2px;
  height: 64%;
}

.pin {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.print-sheet {
  min-height: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #0a1628;
  padding: 28px;
}

.print-sheet h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.print-section {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.report-cover {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  margin: -28px -28px 24px;
  padding: 26px 28px;
  background: #0a1628;
  color: #fff;
}

.report-cover img {
  width: 150px;
  border: 1px solid rgba(212, 183, 106, 0.34);
  border-radius: 8px;
}

.report-cover p {
  color: #d4b76a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.report-cover h1 {
  margin: 7px 0 4px;
  color: #fff;
  font-size: 28px;
}

.report-cover span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.report-grid section {
  border: 1px solid #d9dee8;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcff;
}

.print-sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.print-sheet th,
.print-sheet td {
  border: 1px solid #d9dee8;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.print-sheet th {
  background: #0d1f3c;
  color: #fff;
}

.report-note {
  margin-top: 10px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcff;
}

.report-note span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.report-send-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.panel-head.compact {
  margin-bottom: 10px;
}

.recipient-list {
  display: grid;
  gap: 8px;
}

.recipient-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) minmax(160px, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(212, 183, 106, 0.2);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.recipient-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.recipient-row strong,
.recipient-row small {
  display: block;
}

.recipient-row small {
  color: rgba(255, 255, 255, 0.72);
}

.company-table,
.timeline {
  display: grid;
  gap: 10px;
}

.company-picker {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.4fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.company-picker label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.document-uploader {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1.2fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}

.document-uploader label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.document-library {
  display: grid;
  gap: 10px;
}

.document-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(212, 183, 106, 0.2);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.document-card.active {
  border-color: rgba(212, 183, 106, 0.62);
  background: rgba(200, 165, 90, 0.1);
}

.document-card h2 {
  margin-top: 8px;
}

.document-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8a55a;
  border-radius: 6px;
  background: #c8a55a;
  color: #0a1628;
  padding: 0 14px;
  font-weight: 800;
  text-decoration: none;
}

.planning-page {
  display: grid;
  gap: 12px;
}

.planning-toolbar,
.planning-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.import-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}

.import-button input {
  display: none;
}

.planning-scale {
  justify-content: center;
  padding: 10px;
}

.planning-scale button {
  min-height: 34px;
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.planning-scale button.active {
  background: #211a14;
  border-color: #211a14;
  color: #fff;
}

.planning-workspace {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.works-column {
  border-right: 1px solid var(--line);
  background: #fbfcfd;
}

.planning-column-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.works-board {
  display: grid;
}

.work-card {
  display: grid;
  gap: 9px;
  min-height: 128px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.work-card.subtask {
  padding-left: 26px;
  background: #fbfcfd;
}

.work-title-row,
.work-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.work-title-row input {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 4px 0;
  font-weight: 800;
}

.lot-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.work-spacer,
.icon-button {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.icon-button {
  min-height: 24px;
  border-radius: 6px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

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

.work-grid label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.work-grid input,
.work-grid select {
  min-height: 34px;
  padding: 7px 8px;
  font-size: 12px;
}

.progress-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf0f4;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.progress-track strong {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 11px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.work-actions {
  justify-content: flex-end;
}

.work-actions button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.danger-button {
  color: var(--danger) !important;
}

.gantt-column {
  min-width: 0;
  overflow-x: auto;
  background: #fff;
}

.gantt-board {
  min-width: var(--gantt-width, 720px);
}

.gantt-canvas {
  width: var(--gantt-width, 720px);
}

.gantt-header {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, 1fr);
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.gantt-header span {
  display: grid;
  place-items: center;
  border-right: 1px solid #edf0f4;
  color: #72809a;
  font-size: 12px;
  font-weight: 800;
}

.gantt-rows {
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 95px, #edf0f4 96px),
    #fff;
}

.gantt-row {
  position: relative;
  height: 128px;
  border-bottom: 1px solid var(--line);
}

.gantt-row.subtask {
  background: rgba(247, 248, 250, 0.72);
}

.gantt-bar {
  position: absolute;
  top: 48px;
  height: 28px;
  min-width: 42px;
  border-radius: 4px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 3px 10px rgba(25, 24, 22, 0.12);
}

.gantt-bar span {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, 0.22);
}

.gantt-bar strong {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
}

.task-row,
.company-row,
.timeline-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
}

.company-row {
  grid-template-columns: 1.2fr 0.9fr 1fr 1fr auto;
}

.company-row button {
  min-height: 32px;
}

.task-bar {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #2d2925);
}

.timeline-row {
  grid-template-columns: 160px 1fr;
}

.muted {
  color: var(--muted);
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .panel:not(.print-sheet),
  .project-strip,
  #dashboard,
  #planning,
  #contacts,
  #archive {
    display: none !important;
  }

  .app-shell,
  main,
  .view,
  .report-layout {
    display: block;
    padding: 0;
  }

  #report {
    display: block;
  }

  .print-sheet {
    border: 0;
    padding: 0;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-tabs {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
  }

  .project-strip,
  .archive-grid,
  .workspace-grid,
  .report-layout,
  .planning-workspace,
  .company-picker,
  .document-uploader,
  .document-card {
    grid-template-columns: 1fr;
  }

  .works-column {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar label {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  main,
  .sidebar {
    padding: 12px;
  }

  .topbar-actions,
  .filters,
  .form-row,
  .planning-toolbar,
  .planning-scale,
  .toolbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .observation-item,
  .task-row,
  .company-row,
  .timeline-row {
    grid-template-columns: 1fr;
  }

  .thumb {
    width: 100%;
    height: 180px;
  }
}

/* Identite visuelle INSIGNIA */
:root {
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(212, 183, 106, 0.24);
  --surface: rgba(13, 31, 60, 0.86);
  --soft: rgba(255, 255, 255, 0.06);
  --accent: #c8a55a;
  --accent-2: #d4b76a;
  --deep: #0a1628;
  --deep-2: #0d1f3c;
  --cream: #ffffff;
  --sand: #d4b76a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background:
    radial-gradient(circle at 75% 0, rgba(200, 165, 90, 0.18), transparent 380px),
    linear-gradient(135deg, #0a1628 0, #0d1f3c 48%, #08101e 100%);
  color: var(--ink);
}

button,
.nav-tabs button {
  min-height: 40px;
  border-color: #c8a55a;
  border-radius: 6px;
  background: #c8a55a;
  color: #0a1628;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

button.secondary,
.nav-tabs button {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(212, 183, 106, 0.26);
  box-shadow: none;
}

input,
select,
textarea {
  border-color: rgba(212, 183, 106, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #0a1628;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #c8a55a;
  box-shadow: 0 0 0 3px rgba(200, 165, 90, 0.24);
}

.access-screen {
  background:
    linear-gradient(135deg, rgba(10, 22, 40, 0.94), rgba(13, 31, 60, 0.88)),
    #0a1628;
}

.access-card {
  border-color: rgba(212, 183, 106, 0.34);
  background: rgba(13, 31, 60, 0.86);
  color: #ffffff;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
}

.app-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  border-right-color: rgba(212, 183, 106, 0.22);
  background:
    linear-gradient(180deg, rgba(200, 165, 90, 0.09), transparent 220px),
    #0a1628;
  color: #ffffff;
  padding: 22px 18px;
  gap: 28px;
}

.brand {
  gap: 13px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid rgba(212, 183, 106, 0.55);
  background: #ffffff;
  color: #0a1628;
}

.brand.large .brand-mark {
  background: #c8a55a;
  color: #0a1628;
}

.brand strong {
  text-transform: uppercase;
  font-size: 15px;
  color: inherit;
}

.sidebar .brand span,
.sidebar .sync-panel span {
  color: rgba(255, 255, 255, 0.72);
}

.sidebar .brand {
  display: grid;
  gap: 10px;
}

.sidebar .brand-logo {
  width: 178px;
  aspect-ratio: 1280 / 853;
  object-fit: cover;
  object-position: center;
  padding: 0;
  border: 1px solid rgba(212, 183, 106, 0.32);
  border-radius: 8px;
  background: #0a1628;
}

.sidebar .brand > div {
  padding-left: 2px;
}

.access-card .brand {
  display: grid;
  gap: 12px;
}

.access-card .brand-logo {
  width: 224px;
  aspect-ratio: 1280 / 853;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(212, 183, 106, 0.34);
  border-radius: 10px;
}

.nav-tabs {
  gap: 9px;
}

.nav-tabs button {
  min-height: 44px;
  border-color: rgba(212, 183, 106, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.nav-tabs button.active {
  background: #c8a55a;
  border-color: #c8a55a;
  color: #0a1628;
}

.sync-panel {
  border-top-color: rgba(212, 183, 106, 0.2);
}

.sync-panel button {
  background: #c8a55a;
  border-color: #c8a55a;
  color: #0a1628;
}

.sync-panel button.secondary {
  background: transparent;
  border-color: rgba(212, 183, 106, 0.3);
  color: #ffffff;
}

main {
  padding: 22px;
}

.topbar,
.panel,
.project-strip div,
.archive-grid div {
  border-color: rgba(212, 183, 106, 0.24);
  background: rgba(13, 31, 60, 0.82);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.topbar {
  min-height: 82px;
  padding: 16px 18px;
  margin-bottom: 18px;
  background:
    linear-gradient(90deg, rgba(200, 165, 90, 0.08), transparent 44%),
    rgba(13, 31, 60, 0.88);
}

.topbar label,
.stack-form label,
.company-picker label,
.work-grid label {
  color: rgba(255, 255, 255, 0.72);
}

h1 {
  font-size: 23px;
  font-weight: 850;
}

h2 {
  font-weight: 850;
}

.pill {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
}

.pill.open {
  background: rgba(212, 183, 106, 0.18);
  color: #d4b76a;
}

.pill.progress {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.pill.done {
  background: rgba(73, 141, 90, 0.2);
  color: #cfe8d3;
}

.observation-item,
.task-row,
.company-row,
.timeline-row,
.work-card {
  border-color: rgba(212, 183, 106, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.work-card.subtask,
.works-column,
.gantt-header,
.gantt-row.subtask {
  background: rgba(10, 22, 40, 0.38);
}

.planning-toolbar,
.planning-scale {
  background:
    linear-gradient(90deg, rgba(200, 165, 90, 0.08), transparent 45%),
    rgba(13, 31, 60, 0.86);
}

.planning-scale button.active {
  background: #c8a55a;
  border-color: #c8a55a;
  color: #0a1628;
}

.import-button {
  border-color: rgba(212, 183, 106, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 6px;
}

.progress-track {
  background: rgba(255, 255, 255, 0.12);
}

.gantt-column,
.gantt-rows {
  background: rgba(13, 31, 60, 0.48);
}

.gantt-rows {
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 95px, rgba(212, 183, 106, 0.16) 96px),
    rgba(13, 31, 60, 0.48);
}

.gantt-header span {
  border-right-color: rgba(212, 183, 106, 0.16);
  color: rgba(255, 255, 255, 0.72);
}

.muted,
.brand span,
.project-strip span,
.archive-grid span {
  color: rgba(255, 255, 255, 0.72);
}

.panel-head h1,
.panel-head h2,
.project-strip strong,
.archive-grid strong,
.work-title-row input,
.company-row strong,
.observation-item strong {
  color: #ffffff;
}

.danger-button {
  color: #9f211b !important;
}

.gantt-bar {
  border-radius: 5px;
  box-shadow: 0 5px 14px rgba(25, 20, 15, 0.16);
}

.plan-board {
  border-color: rgba(212, 183, 106, 0.24);
  background:
    linear-gradient(90deg, rgba(212, 183, 106, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(212, 183, 106, 0.13) 1px, transparent 1px),
    rgba(10, 22, 40, 0.44);
}

.pin,
.task-bar {
  background: #c8a55a;
  color: #0a1628;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }
}

@media (max-width: 640px) {
  main,
  .sidebar {
    padding: 12px;
  }
}
