:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #19354b;
  background: #f3f6fa;
  font-synthesis: none;
  --navy: #073d5c;
  --blue: #056fa4;
  --teal: #087f8c;
  --line: #dce5ec;
  --muted: #62778a;
  --row-height: 62px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
input,
select,
textarea {
  border: 1px solid #cbd8e2;
  border-radius: 8px;
}
button {
  cursor: pointer;
  background: #fff;
  color: #234257;
  padding: 10px 14px;
  min-height: 42px;
  font-weight: 600;
  transition:
    background 0.12s,
    border-color 0.12s;
}
button:hover:not(:disabled) {
  background: #eaf4fa;
  border-color: #76a8c3;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #27a1cf;
  outline-offset: 2px;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.primary:hover:not(:disabled) {
  background: #075782;
}
.quiet {
  background: transparent;
  color: inherit;
  border-color: #ffffff50;
}
.wide {
  width: 100%;
}
input,
textarea,
select {
  padding: 10px 11px;
  width: 100%;
  background: #fff;
  color: #19354b;
  min-width: 0;
}
input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0;
  font-size: 14px;
  font-weight: 600;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 16px;
  margin-bottom: 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #498099;
  margin-bottom: 10px;
}
.brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: #087daf;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  font-size: 25px;
}
.app-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  border-left: 1px solid #ffffff40;
  padding-left: 18px;
  margin-left: 8px;
  color: #c7e1f2;
}
.app-header {
  background: var(--navy);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 30px;
  align-items: center;
}
.account {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}
.workspace {
  max-width: 1740px;
  margin: auto;
  padding: 30px;
}
.board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 15px;
}
.heading-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.heading-line select {
  border: 0;
  background: transparent;
  font-size: 27px;
  font-weight: 750;
  padding: 0 24px 0 0;
  max-width: 700px;
  min-height: 40px;
}
.role-badge,
.count {
  background: #e3edf4;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 700;
}
.role-badge {
  text-transform: capitalize;
}
#board-subtitle {
  font-size: 13px;
  margin: 7px 0 0;
}
.toolbar,
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 9px;
}
.toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.inline {
  flex-direction: row;
  align-items: center;
  margin: 0;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.inline select {
  width: 95px;
}
.live-status {
  font-size: 12px;
  color: #4a6f62;
  margin-right: 7px;
  white-space: nowrap;
}
.live-status::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
}
#edit-mode[aria-pressed='true'] {
  background: #fff5dc;
  border-color: #c9961b;
  color: #76530a;
}
.overview {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.summary-item {
  padding: 9px 13px;
  background: #fff;
  border: 1px solid #e0e8ee;
  border-radius: 8px;
  font-size: 13px;
}
.summary-item strong {
  font-size: 17px;
  margin-right: 6px;
}
.timeline-card,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 8px #163b5610;
  overflow: hidden;
}
.timeline-scroll {
  overflow: auto;
  max-height: 64vh;
  min-height: 230px;
  position: relative;
}
.timeline {
  min-width: 100%;
  --left-width: 370px;
  --day-width: 27px;
}
.timeline-line {
  display: grid;
  grid-template-columns: var(--left-width) var(--track-width);
  height: var(--row-height);
  position: relative;
  border-bottom: 1px solid #e7edf2;
  width: max-content;
  min-width: 100%;
}
.timeline-line.header-line {
  height: 90px;
  position: sticky;
  top: 0;
  z-index: 6;
  background: #f8fbfd;
}
.row-label {
  position: sticky;
  left: 0;
  background: #fff;
  padding: 10px 15px;
  z-index: 3;
  border-right: 1px solid #d1dfe8;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.header-line .row-label {
  background: #edf4f8;
  color: #48687e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.task-label {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.task-title {
  font-size: 14px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 5px;
}
.task-meta {
  font-size: 11px;
  color: #6a7d8b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-progress {
  font-size: 12px;
  color: #526f80;
  min-width: 34px;
  text-align: right;
}
.track {
  position: relative;
  background-image: linear-gradient(to right, #e8eef3 1px, transparent 1px);
  background-size: var(--day-width) 100%;
}
.header-line .track {
  background-color: #f8fbfd;
}
.date-tick {
  position: absolute;
  bottom: 9px;
  font-size: 10px;
  color: #6b8293;
  white-space: nowrap;
  transform: translateX(5px);
  background: #f8fbfd;
  z-index: 2;
}
.month-label {
  position: absolute;
  top: 11px;
  font-size: 11px;
  font-weight: 800;
  color: #365d77;
  white-space: nowrap;
  transform: translateX(5px);
}
.today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e36368;
  z-index: 1;
  pointer-events: none;
}
.today-flag {
  position: absolute;
  background: #d65860;
  color: white;
  border-radius: 4px;
  padding: 2px 5px;
  top: 33px;
  left: 3px;
  font-size: 9px;
}
.gantt-bar {
  position: absolute;
  top: 17px;
  height: 28px;
  min-width: 10px;
  border-radius: 6px;
  background: #3b91b6;
  box-shadow: 0 1px 3px #174e6725;
  color: white;
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #296c91;
  overflow: visible;
  user-select: none;
  touch-action: pan-x pan-y;
}
.gantt-bar.complete {
  background: #309578;
  border-color: #258269;
}
.gantt-bar.overdue {
  background: #d96265;
  border-color: #ba4c54;
}
.gantt-bar.due_soon,
.gantt-bar.start_missed {
  background: #bc851f;
  border-color: #a67319;
}
.gantt-bar.planned {
  background: #7b9eaf;
  border-color: #608896;
}
.gantt-bar.blocked {
  outline: 2px solid #bc3d4d;
  outline-offset: 2px;
}
.bar-progress {
  position: absolute;
  inset: 0 auto 0 0;
  background: #ffffff25;
  border-radius: 5px;
  pointer-events: none;
}
.bar-label {
  position: relative;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  padding: 0 12px;
  max-width: 100%;
  pointer-events: none;
}
.gantt-bar .handle {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 20px;
  cursor: ew-resize;
  z-index: 3;
}
.handle.left {
  left: -4px;
}
.handle.right {
  right: -4px;
}
.handle::after {
  content: '';
  position: absolute;
  top: 13px;
  width: 2px;
  height: 12px;
  background: #ffffffb0;
  border-radius: 2px;
  left: 9px;
}
.editing .gantt-bar {
  cursor: grab;
  touch-action: none;
}
.editing .gantt-bar:active {
  cursor: grabbing;
}
.gantt-bar.dragging {
  opacity: 0.8;
  box-shadow: 0 5px 12px #12395535;
  z-index: 4;
}
.milestone {
  width: 18px;
  height: 18px;
  min-width: 18px;
  top: 22px;
  border-radius: 3px;
  transform: translateX(-50%) rotate(45deg);
  background: #426c9c;
  border: 1px solid #2f527d;
}
.baseline-bar {
  position: absolute;
  top: 46px;
  height: 6px;
  border: 1px solid #718a9a;
  background: #d9e2e966;
  border-radius: 3px;
  z-index: 1;
  pointer-events: none;
}
.timeline-foot {
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: #627b8d;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.baseline-key {
  display: inline-block;
  width: 18px;
  height: 5px;
  background: #d9e2e9;
  border: 1px solid #718a9a;
  margin: 0 4px 0 12px;
}
.today-key {
  display: inline-block;
  height: 11px;
  border-left: 2px solid #e36368;
  margin: 0 5px 0 12px;
}
.lower-panels {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.panel {
  padding: 20px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.panel-heading h2,
.panel-heading h3 {
  margin: 0;
}
.panel-heading h2 {
  font-size: 17px;
}
.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #edf1f5;
  padding: 12px 0;
  cursor: pointer;
}
.item-row strong {
  font-size: 13px;
}
.item-row p {
  font-size: 11px;
  color: #758795;
  margin: 5px 0 0;
}
.item-row:hover {
  color: #057ba7;
}
.reason {
  display: inline-block;
  background: #fff0dc;
  color: #94651a;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 10px;
  margin: 2px 4px 2px 0;
}
.empty-state {
  padding: 70px;
  text-align: center;
  border: 1px dashed #b8ccd9;
  border-radius: 15px;
  background: #fff;
  color: #5c7a8e;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 20% 20%, #e3f2fa, transparent 65%), #f6f9fb;
}
.login-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 70px #12385114;
  border-radius: 18px;
  padding: 42px;
  width: min(440px, calc(100vw - 36px));
}
.login-card .brand {
  color: var(--navy);
  margin-bottom: 34px;
}
.login-card h1 {
  font-size: 35px;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.login-card .muted {
  font-size: 14px;
  line-height: 1.6;
}
.error {
  color: #a13240;
  font-size: 13px;
  min-height: 0;
  line-height: 1.5;
}
.error:empty {
  display: none;
}
.notice {
  background: #edf6fc;
  border: 1px solid #b6d5e8;
  border-radius: 8px;
  padding: 12px 15px;
  margin: 10px 0 18px;
  font-size: 13px;
  color: #285570;
}
.notice.error {
  background: #fff0f1;
  border-color: #ecc0c5;
  color: #9a3541;
}
dialog {
  border: 1px solid #cad9e4;
  border-radius: 14px;
  box-shadow: 0 20px 100px #102f4c40;
  padding: 26px;
  width: min(520px, calc(100vw - 28px));
  max-height: 90vh;
  overflow: auto;
  color: #19354b;
}
dialog::backdrop {
  background: #0b263d70;
  backdrop-filter: blur(2px);
}
.task-dialog {
  width: min(720px, calc(100vw - 28px));
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.dialog-heading h2 {
  margin: 0;
}
.dialog-heading .eyebrow {
  margin-bottom: 5px;
}
.close {
  font-size: 24px;
  border: 0;
  padding: 0;
  width: 36px;
  min-height: 36px;
  background: transparent;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.checkbox {
  flex-direction: row;
  align-items: center;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}
.dialog-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 22px;
}
.history-list {
  max-height: 230px;
  overflow: auto;
}
.history-row {
  border-bottom: 1px solid #e5edf2;
  padding: 10px 0;
  font-size: 12px;
}
.history-row p {
  margin: 5px 0;
  color: #627b8d;
  overflow-wrap: anywhere;
}
.team-person {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e4ecf2;
  font-size: 13px;
}
.team-person > div:first-child {
  flex: 1;
  min-width: 0;
}
.team-person small {
  display: block;
  color: #6b8190;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.team-person select {
  width: 100px;
}
.conflict-values {
  padding: 14px;
  background: #f2f6f9;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.conflict-values p {
  margin: 6px 0 0;
}
.empty-note {
  font-size: 13px;
  color: #77909f;
  padding: 15px 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .workspace {
    padding: 20px 14px;
  }
  .app-header {
    padding: 15px;
  }
  .app-name {
    display: none;
  }
  .account {
    gap: 8px;
  }
  .account > span {
    display: none;
  }
  .heading-line select {
    font-size: 23px;
    max-width: 65vw;
  }
  .lower-panels {
    grid-template-columns: 1fr;
  }
  .toolbar-group {
    flex-wrap: wrap;
  }
  .toolbar {
    align-items: flex-start;
  }
  .timeline {
    --left-width: 260px;
  }
  .board-heading {
    align-items: flex-start;
  }
  .board-heading > button {
    font-size: 12px;
    padding: 8px;
  }
  .summary-item {
    font-size: 11px;
  }
  .timeline-scroll {
    max-height: 60vh;
  }
  .live-status {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
