:root {
  --ink: #00171f;
  --ink-soft: #082b38;
  --blue: #0876d7;
  --blue-deep: #0568bf;
  --green: #009472;
  --gray-bg: #eef2f5;
  --panel: #f8fafb;
  --panel-strong: #ffffff;
  --line: #d8e0e6;
  --muted: #6c7b86;
  --text: #10222d;
  --shadow: 0 18px 46px rgba(0, 23, 31, 0.1);
  --radius: 8px;
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--gray-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(8, 118, 215, 0.08), transparent 280px),
    var(--gray-bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

.dashboard-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 26px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2 + 24px));
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 23, 31, 0.22);
}

.brand {
  display: inline-flex;
  min-width: 214px;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand em {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 17px;
  font-weight: 780;
}

.brand em {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
}

.main-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 6px;
}

.nav-item {
  position: relative;
  display: inline-flex;
}

.main-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  background: var(--blue);
  color: #ffffff;
}

.nav-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 174px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #062330;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(0, 23, 31, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.submenu a {
  width: 100%;
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.8);
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.primary-action,
.ghost-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 750;
}

.icon-button {
  width: 42px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.primary-action {
  border: 1px solid rgba(93, 183, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 45%),
    linear-gradient(180deg, #0b8df5, var(--blue-deep));
  color: #ffffff;
  padding: 9px 15px;
  box-shadow:
    0 12px 28px rgba(8, 118, 215, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.main-content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.hero-panel,
.content-panel,
.metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  padding: 34px;
  background:
    radial-gradient(circle at right top, rgba(8, 118, 215, 0.18), transparent 340px),
    linear-gradient(180deg, #ffffff, #f7fafb);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  font-weight: 780;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(0, 148, 114, 0.2);
  border-radius: 999px;
  background: rgba(0, 148, 114, 0.08);
  color: #075f4c;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 750;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(0, 148, 114, 0.12);
}

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

.metric-card {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
}

.metric-card span,
.project-row span,
.task-list time {
  color: var(--muted);
}

.metric-card span {
  font-size: 14px;
  font-weight: 750;
}

.metric-card strong {
  color: var(--ink);
  font-size: 42px;
  line-height: 1;
  font-weight: 780;
}

.metric-card em {
  color: var(--green);
  font-size: 14px;
  font-style: normal;
  font-weight: 760;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  margin-top: 18px;
}

.content-panel {
  min-width: 0;
  padding: 24px;
}

.wide-panel {
  min-height: 330px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 760;
}

.panel-kicker {
  margin-bottom: 7px;
}

.ghost-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #f4f7f9;
  color: var(--ink-soft);
  padding: 8px 12px;
  font-size: 14px;
}

.project-list,
.task-list,
.client-list {
  display: grid;
  gap: 12px;
}

.project-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #e5ebef;
  border-radius: 6px;
  background: var(--panel);
  padding: 14px;
}

.project-index {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  background: rgba(8, 118, 215, 0.1);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.project-row strong,
.project-row span {
  display: block;
}

.project-row strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.project-row span {
  margin-top: 4px;
  font-size: 14px;
}

.project-row em {
  color: var(--blue);
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
}

.task-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e8eef2;
  padding: 0 0 13px;
}

.task-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.task-list label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.task-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.task-list time {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 750;
}

.chart-shell {
  min-height: 226px;
  display: grid;
  grid-template-columns: repeat(7, minmax(28px, 1fr));
  align-items: end;
  gap: 13px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(8, 118, 215, 0.08), transparent),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 44px,
      rgba(0, 23, 31, 0.07) 45px
    );
  padding: 22px;
}

.chart-shell span {
  min-height: 34px;
  height: var(--height);
  border-radius: 6px 6px 2px 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(180deg, #0b8df5, var(--blue-deep));
  box-shadow: 0 10px 24px rgba(8, 118, 215, 0.2);
}

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

.client-list span {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5ebef;
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink-soft);
  padding: 10px 12px;
  font-weight: 760;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.page-header h1 {
  margin-bottom: 10px;
}

.page-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.time-plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  margin-top: 18px;
}

.timeline-panel {
  min-height: 520px;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 16px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 17px;
  width: 2px;
  background: #d8e7f3;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 4px solid #e9f2f8;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.timeline-card {
  border: 1px solid #e5ebef;
  border-radius: 6px;
  background: var(--panel);
  padding: 16px;
}

.timeline-card header,
.stage-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.timeline-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
}

.timeline-card p,
.timeline-card time {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.timeline-card time {
  flex: 0 0 auto;
  font-weight: 760;
}

.stage-table {
  display: grid;
  gap: 10px;
}

.stage-row {
  border: 1px solid #e5ebef;
  border-radius: 6px;
  background: var(--panel);
  padding: 14px;
}

.stage-row strong,
.stage-row span {
  display: block;
}

.stage-row strong {
  color: var(--ink);
  font-size: 15px;
}

.stage-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(8, 118, 215, 0.1);
  color: var(--blue);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.ready {
  background: rgba(0, 148, 114, 0.1);
  color: var(--green);
}

.status-pill.done {
  background: rgba(0, 148, 114, 0.1);
  color: var(--green);
}

.status-pill.waiting {
  background: rgba(255, 184, 77, 0.16);
  color: #9b6500;
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.calendar-card {
  min-height: 104px;
  display: grid;
  align-content: space-between;
  border: 1px solid #e5ebef;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(8, 118, 215, 0.07), transparent),
    var(--panel);
  padding: 14px;
}

.calendar-card strong {
  color: var(--ink);
  font-size: 20px;
}

.calendar-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

.progress-stack {
  display: grid;
  gap: 14px;
}

.progress-line {
  display: grid;
  gap: 8px;
}

.progress-line header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3ebf0;
}

.progress-track span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #42a7ff);
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

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

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

  .page-header {
    display: grid;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 12px 16px;
  }

  .topbar-actions {
    width: 100%;
  }

  .primary-action {
    flex: 1 1 auto;
  }

  .main-content {
    width: min(100% - 32px, 1180px);
    padding-top: 22px;
  }

  .nav-item {
    display: grid;
  }

  .submenu {
    position: static;
    min-width: 150px;
    display: inline-grid;
    margin-left: 6px;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .hero-panel {
    display: grid;
    padding: 24px;
  }

  .metric-grid,
  .client-list {
    grid-template-columns: 1fr;
  }

  .content-panel,
  .metric-card {
    padding: 20px;
  }

  .project-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .project-row em {
    grid-column: 2;
  }

  .task-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-actions {
    width: 100%;
  }

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

  .timeline-card header,
  .stage-row {
    display: grid;
  }
}

.timeplan-main {
  width: min(1500px, calc(100% - 48px));
}

.timeplan-overview {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(520px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.timeplan-title,
.timeplan-stats,
.timeplan-context,
.timeplan-toolbar,
.timeplan-board,
.task-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.timeplan-title {
  padding: 26px;
}

.timeplan-title h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
}

.timeplan-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.timeplan-stats article {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 126px;
  background: #ffffff;
  padding: 20px;
}

.timeplan-stats span,
.timeplan-toolbar label span,
.pane-heading em,
.work-meta em,
.work-dates,
.day-cell em,
.task-detail dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.timeplan-stats strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.timeplan-stats strong.is-negative {
  color: #be123c;
}

.timeplan-context {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) repeat(2, minmax(220px, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 18px;
  background: var(--line);
}

.client-toggle,
.context-card {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 5px;
  background: #ffffff;
  padding: 16px 18px;
}

.client-toggle {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
}

.client-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.client-toggle span,
.context-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.client-toggle strong,
.context-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.client-toggle span,
.client-toggle strong {
  grid-column: 2;
}

.context-card .status-pill {
  width: fit-content;
}

.timeplan-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(190px, 0.42fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
  padding: 16px;
}

.timeplan-toolbar label {
  display: grid;
  gap: 7px;
}

.timeplan-toolbar input,
.timeplan-toolbar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fbfc;
  color: var(--ink);
  padding: 8px 11px;
  font: inherit;
  font-size: 14px;
}

.month-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.month-tabs button {
  min-height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4f7f9;
  color: var(--ink-soft);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 760;
}

.month-tabs button.active {
  border-color: rgba(8, 118, 215, 0.4);
  background: var(--blue);
  color: #ffffff;
}

.timeplan-board {
  display: grid;
  grid-template-columns: minmax(420px, 470px) minmax(0, 1fr);
  margin-top: 18px;
  overflow: hidden;
}

.work-pane {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.pane-heading {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.pane-heading span {
  color: var(--ink);
  font-weight: 800;
}

.work-list {
  display: grid;
}

.work-row {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #e8eef2;
  background: #ffffff;
  color: var(--text);
  padding: 12px 16px;
  text-align: left;
}

.work-row:hover,
.work-row.active {
  background: #eef7ff;
}

.owner-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  background: var(--owner-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--owner-color) 16%, transparent);
}

.work-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.work-meta strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.24;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-meta em {
  font-style: normal;
}

.work-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.work-status input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
}

.work-dates {
  display: grid;
  gap: 2px;
  text-align: right;
}

.calendar-pane {
  min-width: 0;
  background: #ffffff;
}

.calendar-scroll {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.calendar-months,
.calendar-days,
.calendar-row {
  --day-width: 36px;
  min-width: calc(var(--day-count) * var(--day-width));
  display: grid;
  grid-template-columns: repeat(var(--day-count), var(--day-width));
}

.calendar-months {
  min-height: 38px;
  border-bottom: 1px solid var(--line);
  background: #f6f9fb;
}

.month-band {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 820;
  text-transform: capitalize;
}

.calendar-days {
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.day-cell {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  border-right: 1px solid #edf2f5;
  background: #ffffff;
}

.day-cell.weekend,
.grid-day.weekend {
  background: #f3f6f8;
}

.day-cell.deadline,
.grid-day.deadline {
  background: rgba(190, 18, 60, 0.09);
}

.day-cell.today,
.grid-day.today {
  background: rgba(0, 148, 114, 0.12);
}

.day-cell strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
}

.day-cell em {
  font-style: normal;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
}

.calendar-row {
  position: relative;
  min-height: 76px;
  grid-template-rows: 28px 36px;
  row-gap: 4px;
  align-content: center;
  align-items: start;
  border-bottom: 1px solid #e8eef2;
}

.grid-day {
  min-height: 76px;
  grid-row: 1 / 3;
  border-right: 1px solid #edf2f5;
  background: #ffffff;
}

.task-owner-label {
  z-index: 2;
  grid-row: 1;
  align-self: end;
  overflow: hidden;
  color: color-mix(in srgb, var(--owner-color) 88%, #00171f);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.15;
  padding: 0 14px 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-bar {
  z-index: 1;
  grid-row: 2;
  min-width: 0;
  height: 36px;
  display: flex;
  align-items: center;
  align-self: start;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--owner-color) 78%, #ffffff);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent),
    var(--owner-color);
  color: #ffffff;
  padding: 0 14px;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--owner-color) 22%, transparent);
  text-align: left;
}

.task-bar span {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-bar:hover,
.task-bar.active {
  outline: 3px solid rgba(8, 118, 215, 0.22);
  outline-offset: 2px;
}

.task-detail {
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
}

.task-detail > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.task-detail strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-detail em {
  grid-column: 2;
  color: var(--muted);
  font-style: normal;
  font-weight: 740;
}

.task-detail dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.task-detail dl div {
  display: grid;
  gap: 3px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.task-detail dd {
  margin: 0;
  color: var(--ink);
  font-weight: 780;
}

@media (max-width: 1180px) {
  .timeplan-overview,
  .timeplan-context,
  .timeplan-board,
  .task-detail {
    grid-template-columns: 1fr;
  }

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

  .timeplan-toolbar {
    grid-template-columns: 1fr 220px;
  }

  .month-tabs {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .timeplan-main {
    width: min(100% - 32px, 1500px);
  }

  .timeplan-overview,
  .timeplan-context,
  .timeplan-toolbar,
  .task-detail dl {
    grid-template-columns: 1fr;
  }

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

  .timeplan-title,
  .client-toggle,
  .context-card,
  .timeplan-toolbar,
  .task-detail {
    padding: 18px;
  }

  .timeplan-title h1 {
    font-size: 26px;
  }

  .work-row {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .work-status {
    grid-column: 2;
  }

  .work-dates {
    grid-column: 2;
    display: flex;
    gap: 10px;
    text-align: left;
  }
}
