.tc {
  --tc-ink: #233950;
  --tc-muted: #536c84;
  --tc-accent: #2865a9;
  --tc-line: #d9e5f0;
  --tc-glass: linear-gradient(143deg, rgba(255, 255, 255, .92), rgba(240, 247, 255, .85));
  --tc-shadow: 0 10px 28px rgba(42, 75, 114, .07), inset 0 1px 0 #fff;
  box-sizing: border-box;
  min-width: 0;
  color: var(--tc-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.tc :is(h1, h2, h3, h4, p, ol, ul, dl, dd) { margin: 0; }
.tc :is(ul, ol) { padding: 0; list-style: none; }
.tc :is(button, input, select, textarea) { font: inherit; }
.tc [hidden] { display: none !important; }
.tc .tc-center { box-sizing: border-box; width: 100%; max-width: 1420px; margin: 0 auto; padding: clamp(12px, 2vw, 26px); }
.tc .tc-flow { display: grid; min-width: 0; gap: 15px; }
.tc .tc-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.tc .tc-head h1 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.025em; line-height: 1.18; }
.tc .tc-card { min-width: 0; border: 1px solid var(--tc-line); border-radius: 18px; background: var(--tc-glass); box-shadow: var(--tc-shadow); }
.tc .tc-inset { padding: clamp(13px, 2vw, 21px); }
.tc .tc-stack { display: grid; gap: 12px; min-width: 0; }
.tc .tc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.tc .tc-between { justify-content: space-between; }
.tc .tc-muted { color: var(--tc-muted); }
.tc .tc-small { font-size: 12px; }
.tc .tc-wrap { overflow-wrap: anywhere; }

.tc .tc-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 13px;
  border: 1px solid #cfdeed;
  border-radius: 10px;
  background: rgba(255, 255, 255, .84);
  color: var(--tc-accent);
  cursor: pointer;
  text-align: center;
}
.tc .tc-button:hover:not(:disabled) { background: #e9f3ff; border-color: #9cbbe2; }
.tc .tc-button:disabled { cursor: default; opacity: .55; }
.tc .tc-primary { border-color: #2a6ab0; background: #2a6ab0; color: #fff; }
.tc .tc-primary:hover:not(:disabled) { background: #215f9f; border-color: #215f9f; }
.tc .tc-danger { color: #a13e42; }
.tc :is(button, input, select, textarea, a):focus-visible { outline: 2px solid #2b6dc0; outline-offset: 2px; }
.tc .tc-segments { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border: 1px solid var(--tc-line); border-radius: 13px; background: #eaf2fb; width: fit-content; max-width: 100%; }
.tc .tc-segments button {
  min-width: 84px;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--tc-muted);
  cursor: pointer;
}
.tc .tc-segments button[aria-pressed="true"] { color: var(--tc-accent); background: #fff; border-color: #d0e0ef; box-shadow: 0 3px 9px rgba(37, 81, 132, .07); font-weight: 650; }

.tc .tc-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: min(300px, 100%); min-width: 0; }
.tc .tc-search input { flex: 1 1 190px; min-width: 0; }
.tc :is(.tc-field, .tc-search) :is(input, select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #ccddec;
  border-radius: 9px;
  background: #fff;
  color: var(--tc-ink);
}
.tc .tc-field textarea { resize: vertical; }
.tc .tc-field { display: grid; gap: 5px; min-width: 0; font-weight: 600; }
.tc .tc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 11px; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.tc .tc-field-full { grid-column: 1 / -1; }

.tc .tc-brand + .tc-brand { margin-top: 14px; }
.tc .tc-brand-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 13px 17px; border-bottom: 1px solid var(--tc-line); }
.tc .tc-brand-title h2 { color: #244467; font-size: 16px; overflow-wrap: anywhere; }
.tc .tc-grid-head, .tc-ticket-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.75fr) minmax(90px, 1fr) minmax(100px, 1.25fr) minmax(70px, .8fr) minmax(70px, .8fr) minmax(100px, .9fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 10px 17px;
}
.tc .tc-grid-head { color: var(--tc-muted); font-size: 12px; }
.tc .tc-ticket-row {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-top: 1px solid #e3ecf5;
  background: transparent;
  color: var(--tc-ink);
  text-align: left;
  cursor: pointer;
}
.tc .tc-ticket-row:hover { background: #eef6ff; }
.tc .tc-ticket-row:last-child { border-radius: 0 0 18px 18px; }
.tc .tc-ticket-name { display: block; font-weight: 650; overflow-wrap: anywhere; }
.tc .tc-cell-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tc .tc-pill {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e6effc;
  color: #335f8e;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.tc .tc-pill.is-done { background: #e1f3e9; color: #226147; }
.tc .tc-pill.is-review { background: #f8efdf; color: #815821; }
.tc .tc-pill.is-closed { background: #ebedf2; color: #536073; }

.tc .tc-detail-head { display: grid; gap: 9px; min-width: 0; }
.tc .tc-detail-head h2 { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.25; overflow-wrap: anywhere; }
.tc .tc-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 10px; }
.tc .tc-metric { min-width: 0; padding: 10px 13px; border: 1px solid var(--tc-line); border-radius: 12px; background: #f4f9ff; }
.tc .tc-metric dt { color: var(--tc-muted); font-size: 12px; }
.tc .tc-metric dd { margin-top: 4px; color: #274c76; font-weight: 650; font-size: 16px; overflow-wrap: anywhere; }
.tc .tc-people { display: flex; flex-wrap: wrap; gap: 6px; }
.tc .tc-person { display: inline-flex; max-width: 100%; padding: 4px 8px; border-radius: 8px; background: #edf4fb; color: #355776; overflow-wrap: anywhere; }

.tc .tc-car-overview { background: linear-gradient(145deg, #f8fcff, #edf5ff); }
.tc .tc-car-overview h2 { font-size: 21px; }
.tc .tc-car-brand { margin-top: 0; }
.tc .tc-car-unassigned { padding: 10px 17px; border-top: 1px solid var(--tc-line); }
.tc .tc-car-details {
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--tc-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .68);
}
.tc .tc-car-details summary { cursor: pointer; font-weight: 600; }
.tc .tc-car-details summary:focus-visible { outline: 2px solid #2b6dc0; outline-offset: 3px; }
.tc .tc-car-details ul { margin-top: 8px; }
.tc .tc-car-details li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 7px 0;
  border-top: 1px solid var(--tc-line);
  overflow-wrap: anywhere;
}
.tc .tc-car-details li span { color: var(--tc-muted); font-size: 12px; }
.tc .tc-car-workflow-heading { margin-bottom: 10px; font-size: 18px; }

.tc .tc-car-snapshot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 13px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid #d6e5f3;
  border-radius: 11px;
  background: rgba(255, 255, 255, .62);
  color: var(--tc-muted);
  font-size: 12px;
}
.tc .tc-car-snapshot .tc-button { min-height: 30px; margin-inline-start: auto; padding: 3px 8px; }
.tc .tc-car-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 11px;
}
.tc .tc-car-chart {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #d6e5f3;
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
}
.tc .tc-car-chart-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.tc .tc-car-chart-title h3 { font-size: 15px; }
.tc .tc-car-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.tc .tc-car-controls label { min-width: 0; max-width: 100%; }
.tc .tc-car-controls select {
  min-height: 32px;
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid #d0e0ef;
  border-radius: 7px;
  background: #f5f9ff;
  color: #335f8e;
  font-size: 12px;
}
.tc .tc-car-chart-canvas { position: relative; min-width: 0; }
.tc .tc-car-plot { width: 100%; height: 186px; }
.tc .tc-car-share .tc-car-plot { height: 135px; }
.tc .tc-car-chart-fallback { position: absolute; inset: 0; align-content: center; text-align: center; pointer-events: none; }
.tc .tc-car-chart-empty {
  display: grid;
  place-items: center;
  min-height: 125px;
  text-align: center;
  font-size: 13px;
}
.tc .tc-car-chart-values { font-size: 12px; }
.tc .tc-car-chart-values summary { cursor: pointer; }
.tc .tc-car-chart-values ul { max-height: 144px; overflow: auto; margin-top: 6px; }
.tc .tc-car-chart-values li, .tc .tc-car-share-values li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 7px;
  padding: 4px 0;
  border-top: 1px solid #e6eff7;
}
.tc .tc-car-chart-values li { justify-content: space-between; }
.tc .tc-car-share-values li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; font-size: 13px; }
.tc .tc-car-share-values strong { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tc .tc-car-share-name { display: inline-flex; align-items: center; gap: 5px; overflow-wrap: anywhere; }
.tc .tc-car-share-name i { flex: 0 0 7px; height: 7px; border-radius: 50%; }

.tc .tc-task-list { display: grid; gap: 7px; min-width: 0; }
.tc .tc-task { padding: 10px 11px; border: 1px solid #dfe9f4; border-radius: 11px; background: rgba(255, 255, 255, .78); min-width: 0; }
.tc .tc-task-title { font-weight: 650; overflow-wrap: anywhere; }
.tc .tc-task-data { display: grid; gap: 4px; margin-top: 6px; color: var(--tc-muted); font-size: 12px; overflow-wrap: anywhere; }
.tc .tc-effort-button { margin-top: 8px; min-height: 32px; }
.tc .tc-task-button { width: 100%; text-align: left; cursor: pointer; color: inherit; }
.tc .tc-task-button:hover { background: #edf6ff; border-color: #bfd3e9; }
.tc .tc-timeline { display: grid; gap: 0; }
.tc .tc-timeline li { display: grid; gap: 3px; padding: 8px 0 8px 12px; border-left: 2px solid #d5e3f2; overflow-wrap: anywhere; }
.tc .tc-timeline time { color: var(--tc-muted); font-size: 12px; }
.tc .tc-state { padding: 21px 14px; text-align: center; color: var(--tc-muted); }
.tc .tc-error { color: #a13e42; }
.tc .tc-success { color: #226147; }
.tc .tc-detail-link { color: var(--tc-accent); overflow-wrap: anywhere; }
.tc .tc-screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 920px) {
  .tc .tc-grid-head { display: none; }
  .tc .tc-ticket-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 11px; }
  .tc .tc-ticket-row > :first-child { grid-column: 1 / -1; }
  .tc .tc-cell-label { position: static; display: block; width: auto; height: auto; clip-path: none; white-space: normal; color: var(--tc-muted); font-size: 11px; }
}

@media (max-width: 480px) {
  .tc .tc-center { padding-inline: 8px; }
  .tc .tc-brand-title, .tc .tc-ticket-row { padding-inline: 11px; }
}

@media (max-width: 880px) {
  .tc .tc-car-charts { grid-template-columns: minmax(0, 1fr); }
  .tc .tc-car-share .tc-car-plot { height: 151px; }
}

/* Brand groups and their individual product projects */
.tc .tc-card-list { display: grid; gap: 14px; }
.tc .tc-card-list .tc-brand + .tc-brand { margin-top: 0; }
.tc .tc-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(245px, 100%), 1fr));
  align-items: stretch;
  gap: 14px;
  padding: clamp(12px, 2vw, 20px);
}
.tc .tc-project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 190px;
  padding: 16px;
  border: 1px solid #cbdff1;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff, #f4f9ff);
  box-shadow: 0 3px 9px rgba(36, 80, 123, .05);
  text-align: left;
  color: var(--tc-ink);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.tc .tc-project-card:hover { border-color: #82a9d2; background: #f0f7ff; }
.tc .tc-project-name { font-size: 17px; line-height: 1.35; }
.tc .tc-project-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  padding: 10px 0;
  border-top: 1px solid #e0ecf6;
}
.tc .tc-project-stats > span { display: grid; align-content: start; gap: 2px; }
.tc .tc-project-stats small { color: var(--tc-muted); font-size: 12px; }
.tc .tc-project-stats b { color: #244c76; font-variant-numeric: tabular-nums; }
.tc .tc-project-action { margin-top: auto; color: var(--tc-accent); font-size: 13px; font-weight: 650; }
.tc .tc-project-action > span { margin-left: 4px; }
.tc .tc-car-product [tabindex="-1"] { scroll-margin-top: 20px; }
.tc .tc-project-activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  align-items: start;
  gap: 14px;
  min-width: 0;
}
.tc .tc-project-section {
  min-width: 0;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid var(--tc-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .62);
}
.tc .tc-project-section h3 { color: #244467; font-size: 16px; }
.tc .tc-project-department h4 { color: var(--tc-muted); }
.tc .tc-project-activity button[aria-pressed="true"] { border-color: #78a3d0; background: #e8f3ff; font-weight: 650; }
