:root {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #111b2c;
  --surface-2: #152238;
  --line: #26364d;
  --text: #e7edf6;
  --muted: #b1c0d4;
  --soft: #8fa2bc;
  --blue: #78a7ff;
  --cyan: #61d6d1;
  --green: #5fcea0;
  --amber: #f4c876;
  --red: #f18b91;
  --shadow: 0 16px 44px #0003;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 80% -10%, #162a48 0, transparent 35%), var(--bg);
  color: var(--text);
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: #fff;
  color: #111;
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus {
  left: 8px;
}
.prototype-notice {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px;
  background: #172845;
  border-bottom: 1px solid #314c72;
  color: #c9dcff;
  font-size: 12px;
}
.prototype-notice strong {
  color: #fff;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid #1d2a3e;
  background: #0d1727ef;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}
.brand-lockup,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #648ef4, #48c4bb);
  font-weight: 800;
  color: #071625;
  box-shadow: 0 8px 20px #50b7cc2c;
}
.brand-lockup h1 {
  font-size: 15px;
  margin: 0;
  letter-spacing: 0.02em;
}
.brand-lockup p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.demo-view {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.demo-view select,
.field {
  background: #0b1422;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 9px;
  padding: 9px 11px;
}
.demo-view select {
  padding: 7px 10px;
}
.date-chip {
  color: #b8c5d8;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #2b4263;
  color: #e8f0ff;
  font-size: 12px;
  font-weight: 750;
}
.app-layout {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
}
.sidebar {
  border-right: 1px solid #1d2a3e;
  padding: 24px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #0c1523;
}
.nav-caption,
.eyebrow {
  color: #9aacc4;
  font-weight: 750;
  letter-spacing: 0.12em;
  font-size: 10px;
  margin: 0;
}
.nav-caption {
  padding: 0 10px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-item {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  color: #aab8cb;
  font-size: 12px;
  cursor: pointer;
}
.nav-item span:first-child {
  width: 17px;
  text-align: center;
  color: #7f96b6;
  font-size: 15px;
}
.nav-item:hover,
.nav-item.active {
  background: #16263d;
  border-color: #223956;
  color: #fff;
}
.nav-item.active span:first-child {
  color: var(--cyan);
}
.nav-count {
  margin-left: auto;
  border-radius: 20px;
  background: #314b6c;
  color: #dbe9ff;
  padding: 2px 7px;
  font-size: 10px;
}
.lead-only {
  display: none;
}
.sidebar.is-lead .lead-only {
  display: flex;
}
.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 16px;
}
.privacy-mini {
  display: flex;
  gap: 9px;
  padding: 11px;
  border: 1px solid #263851;
  border-radius: 11px;
  background: #101e31;
}
.status-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px #5fcea01a;
}
.privacy-mini strong,
.privacy-mini small {
  display: block;
}
.privacy-mini strong {
  font-size: 11px;
}
.privacy-mini small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.build-label {
  padding-left: 10px;
  color: #62748d;
  font-size: 10px;
}
.main-content {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px 34px 56px;
  outline: none;
}
.page {
  display: none;
  animation: fade-in 0.18s ease-out;
}
.page.active {
  display: block;
}
.page[hidden] {
  display: none !important;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 22px;
}
.page-heading h2 {
  font-size: 25px;
  letter-spacing: -0.03em;
  margin: 7px 0 5px;
}
.subheading {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}
.metric-card,
.panel {
  background: linear-gradient(145deg, #111d30, #101a2a);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.metric-card {
  padding: 16px 17px;
  min-height: 112px;
}
.metric-label {
  color: #bdcadc;
  font-size: 12px;
}
.metric-card strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.035em;
  margin: 9px 0 4px;
}
.metric-card small {
  font-size: 11px;
  color: #aebdd0;
}
.info {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid #667d99;
  border-radius: 50%;
  font-size: 10px;
  margin-left: 4px;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 15px;
  margin-bottom: 15px;
}
.panel {
  padding: 19px;
  margin-bottom: 15px;
}
.content-grid .panel {
  margin-bottom: 0;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.panel h3 {
  font-size: 15px;
  margin: 5px 0 0;
  letter-spacing: -0.01em;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 750;
  white-space: nowrap;
}
.badge-neutral {
  background: #1c2c42;
  color: #afc1d8;
}
.badge-demo {
  background: #3b301f;
  color: #f3d18d;
}
.badge-pending {
  background: #39301f;
  color: #f5d287;
}
.badge-confirmed {
  background: #16392f;
  color: #8fe0bb;
}
.badge-rejected {
  background: #392329;
  color: #f2a8ad;
}
.badge-offline {
  background: #253247;
  color: #afbed2;
}
.field-label {
  display: grid;
  gap: 7px;
  color: #a4b3c8;
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 8px;
}
.field {
  width: 100%;
  font-size: 12px;
}
.timer-readout {
  font:
    600 35px/1.2 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.04em;
  margin: 18px 0 14px;
  color: #f2f6fc;
}
.timer-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.muted,
.helper {
  color: var(--muted);
  font-size: 10px;
}
.helper {
  margin: 14px 0 0;
  line-height: 1.5;
}
.button {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 13px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.button:hover {
  transform: translateY(-1px);
}
.button:focus-visible,
.nav-item:focus-visible,
.text-button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #79adff;
  outline-offset: 2px;
}
.button-primary {
  background: #4c7fe5;
  color: #081526;
}
.button-primary:hover {
  background: #6d98f0;
}
.button-secondary {
  background: #18283e;
  border-color: #32465f;
  color: #d9e6f5;
}
.text-button {
  background: none;
  border: 0;
  color: #91b7ff;
  font-size: 11px;
  cursor: pointer;
}
.signal-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid #213047;
}
.signal-row:first-of-type {
  border-top: 0;
}
.signal-row > div {
  display: grid;
  gap: 4px;
  flex: 1;
}
.signal-row strong {
  font-size: 11px;
}
.signal-row small {
  font-size: 10px;
  color: var(--muted);
}
.signal-icon,
.integration-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #223d5a;
  color: #b4d5ff;
  font-size: 12px;
  font-weight: 800;
}
.signal-browser {
  background: #2d3b4d;
  color: #d5e1f0;
}
.privacy-note {
  margin: 11px 0 0;
  padding: 10px 11px;
  border-left: 2px solid var(--amber);
  background: #312b20;
  color: #cfc4a9;
  font-size: 10px;
  line-height: 1.5;
}
.review-panel {
  margin-top: 15px;
}
.suggestion-list {
  display: grid;
  gap: 9px;
}
.suggestion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #25354b;
  border-radius: 10px;
  background: #0e1827;
}
.suggestion-main {
  display: grid;
  gap: 4px;
}
.suggestion-main strong {
  font-size: 11px;
}
.suggestion-main small {
  color: var(--muted);
  font-size: 10px;
}
.suggestion-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.suggestion-actions {
  display: flex;
  gap: 6px;
}
.small-button {
  border: 1px solid #354b67;
  background: #182940;
  color: #c7d8ed;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.small-button.accept {
  background: #16392f;
  border-color: #27694f;
  color: #9ce5c1;
}
.small-button.decline {
  background: #34242a;
  border-color: #56333b;
  color: #efb3b7;
}
.callout,
.workflow-note {
  padding: 12px 14px;
  border: 1px solid #35517a;
  border-radius: 10px;
  background: #14243a;
  color: #c9d7eb;
  font-size: 11px;
  margin-bottom: 14px;
}
.callout strong {
  color: #eff5ff;
}
.table-panel {
  padding: 0;
  overflow: hidden;
}
.table-scroll {
  overflow: auto;
}
.table-hint {
  display: none;
  color: #b7c5d8;
  font-size: 12px;
  margin: 0;
  padding: 10px 14px;
  background: #0d1726;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
th {
  text-align: left;
  background: #0d1726;
  color: #b0c0d4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  font-weight: 750;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 13px 14px;
  border-bottom: 1px solid #1d2b40;
  font-size: 12px;
  color: #e1e8f2;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.source-label {
  color: #a8bdd5;
}
.summary-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.summary-pill {
  border: 1px solid #2a3c55;
  border-radius: 9px;
  padding: 9px 12px;
  color: #cbd8e7;
  font-size: 10px;
}
.summary-pill strong {
  color: #fff;
  font-size: 12px;
  margin-right: 5px;
}
.board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  overflow: auto;
  padding-bottom: 5px;
}
.board-column {
  min-height: 230px;
  border: 1px solid #263750;
  border-radius: 12px;
  background: #0d1726;
  padding: 12px;
}
.board-column h3 {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin: 0 0 10px;
  color: #b9c8da;
}
.task-card {
  border: 1px solid #2c3f58;
  background: #142238;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}
.task-card strong {
  font-size: 11px;
}
.task-card p {
  font-size: 10px;
  color: #c0cedf;
  line-height: 1.45;
  margin: 7px 0;
}
.task-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  color: #91a5bf;
  font-size: 10px;
  margin: 7px 0;
}
.task-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.integration-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 200px;
}
.integration-card h3 {
  margin: 14px 0 7px;
}
.integration-card p {
  color: #a3b1c4;
  font-size: 11px;
  line-height: 1.55;
  flex: 1;
}
.privacy-panel ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #a9b8ca;
  font-size: 11px;
  line-height: 1.8;
}
.policy-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #2a3d55;
  background: #0d1726;
  border-radius: 9px;
  padding: 10px;
  color: #c7d4e5;
  font-size: 11px;
  line-height: 1.45;
}
.check-row input {
  margin-top: 2px;
  accent-color: #69a0ff;
}
.check-row.disabled-option {
  opacity: 0.58;
}
.policy-form .muted {
  margin: 0;
  line-height: 1.5;
}
.policy-list {
  margin: 12px 0 0;
}
.policy-list div {
  padding: 10px 0;
  border-top: 1px solid #233249;
}
.policy-list dt {
  color: #8194ae;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.policy-list dd {
  margin: 4px 0 0;
  font-size: 11px;
  color: #dce5f0;
}
.audit-list {
  display: grid;
  gap: 10px;
}
.audit-event {
  border-left: 2px solid #47648a;
  padding: 2px 0 3px 11px;
}
.audit-event strong {
  display: block;
  font-size: 10px;
}
.audit-event small {
  display: block;
  color: #8497b0;
  font-size: 10px;
  margin-top: 3px;
}
.lead-only-view {
  display: none;
}
.main-content.is-member #page-team,
.main-content.is-member #page-policy {
  display: none !important;
}
.edit-dialog {
  width: min(460px, calc(100% - 24px));
  border: 1px solid #32465f;
  border-radius: 15px;
  background: #111d30;
  color: var(--text);
  box-shadow: 0 24px 80px #0009;
  padding: 22px;
}
.edit-dialog::backdrop {
  background: #030813c9;
  backdrop-filter: blur(4px);
}
.edit-dialog h2 {
  font-size: 17px;
  margin: 0 0 8px;
}
.edit-dialog p {
  line-height: 1.5;
}
.edit-dialog .field {
  margin-bottom: 14px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 15px;
  border: 1px solid #35517a;
  border-radius: 10px;
  background: #182a42;
  color: #e5efff;
  box-shadow: var(--shadow);
  font-size: 11px;
  z-index: 30;
}
.toast[hidden] {
  display: none;
}
@keyframes fade-in {
  from {
    opacity: 0.55;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 1080px) {
  .app-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .main-content {
    padding: 24px 20px 44px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .integration-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .table-hint {
    display: block;
  }
  .topbar {
    height: auto;
    min-height: 68px;
    padding: 12px 15px;
    align-items: flex-start;
  }
  .topbar-actions {
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .date-chip {
    display: none;
  }
  .app-layout {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 68px;
    z-index: 8;
    border-right: 0;
    border-bottom: 1px solid #1d2a3e;
    padding: 8px 10px;
    background: #0c1523;
  }
  .sidebar .nav-caption,
  .sidebar-foot {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  .nav-item {
    white-space: nowrap;
    padding: 8px 10px;
  }
  .nav-item span:first-child {
    display: none;
  }
  .main-content {
    padding: 20px 14px 40px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-heading h2 {
    font-size: 22px;
  }
  .metrics-grid {
    gap: 8px;
  }
  .metric-card {
    padding: 13px;
    min-height: 105px;
  }
  .metric-card strong {
    font-size: 20px;
  }
  .suggestion {
    grid-template-columns: 1fr;
  }
  .suggestion-actions {
    justify-content: flex-start;
  }
  .board-grid {
    grid-template-columns: repeat(4, 260px);
  }
  .prototype-notice {
    justify-content: flex-start;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .demo-view {
    font-size: 0;
  }
  .demo-view select {
    font-size: 11px;
  }
  .avatar {
    flex: none;
  }
}

/* Authenticated production workspace additions */
[hidden] { display: none !important; }
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 0, #1a3152 0, transparent 42%), var(--bg);
}
.login-card {
  width: min(440px, 100%);
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #132139, #0f1929);
  box-shadow: 0 24px 70px #0006;
}
.login-brand { margin-bottom: 30px; }
.login-form { display: grid; gap: 17px; }
.login-form h2 { margin: 7px 0 5px; font-size: 24px; }
.login-form .muted { margin: 0; line-height: 1.55; }
.form-error { margin: 0; color: #ffadb1; font-size: 12px; line-height: 1.5; }
.user-label { max-width: min(34vw, 260px); color: #c4d1e2; font-size: 12px; overflow-wrap: anywhere; }
.empty-state { padding: 12px 0; line-height: 1.55; }
.is-error { border-color: #7b3e49; background: #3b202a; color: #ffe1e3; }
.date-field { min-width: 190px; margin: 0; }
.date-field .field { min-width: 0; }
.task-comments { grid-column: 1 / -1; margin-top: 9px; padding-top: 10px; border-top: 1px solid #2a3b53; }
.task-comments[hidden] { display: none !important; }
.task-comment-list { display: grid; gap: 7px; margin-bottom: 10px; }
.task-comment { margin: 0; padding: 8px 10px; border: 1px solid #283a52; border-radius: 8px; background: #0d1726; color: #d4dfed; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-comment-form { display: flex; align-items: flex-end; gap: 8px; }
.task-comment-form textarea { min-height: 42px; }
.task-comment-form .small-button { flex: none; }
.review-details { grid-column: 1 / -1; color: #c3d0e2; font-size: 11px; line-height: 1.6; }
.review-details ul { margin: 0; padding-left: 20px; }
.review-note-input { max-width: 280px; min-height: 44px; }
.suggestion .field { min-width: 170px; }
.weekday-field { display: flex; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 9px; padding: 12px; color: var(--muted); font-size: 11px; }
.weekday-field legend { padding: 0 5px; color: #a4b3c8; font-size: 11px; }
.weekday-field label { white-space: nowrap; }
.weekday-field input { accent-color: var(--blue); }
.invite-url { margin: 8px 0; }
.integration-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.integration-card .badge { margin-top: 8px; }
.board-grid { overscroll-behavior-x: contain; scrollbar-color: #48617f #101a2a; }
.button:disabled, .small-button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
textarea.field { resize: vertical; min-height: 76px; }
input[type="date"], input[type="datetime-local"] { color-scheme: dark; }
.page-heading .button { flex: none; }
@media (max-width: 700px) {
  .user-label { max-width: 42vw; font-size: 10px; }
  .login-card { padding: 22px; }
  .task-comment-form { align-items: stretch; flex-direction: column; }
  .task-comment-form .small-button { align-self: flex-start; }
  .review-note-input { max-width: 100%; }
  .suggestion-actions { flex-wrap: wrap; }
  .board-grid::after { content: "Swipe horizontally to browse columns"; position: sticky; left: 0; color: #9bacbf; font-size: 10px; }
  .field-grid { grid-template-columns: 1fr; }
}

/* Faculty Digital-inspired light workspace */
:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --blue: #2563eb;
  --cyan: #2563eb;
  --green: #15803d;
  --amber: #a16207;
  --red: #b91c1c;
  --shadow: 0 8px 24px rgb(15 23 42 / 5%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { background: var(--bg); color: var(--text); font-size: 15px; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif; color: #0f172a; }
.eyebrow, .nav-caption, .build-label { font-family: "IBM Plex Mono", ui-monospace, monospace; color: #64748b; font-size: 12px; }
.topbar { background: rgb(255 255 255 / 96%); border-color: #e2e8f0; }
.brand-lockup h1 { color: #0f172a; font-size: 18px; }
.brand-lockup p { color: #64748b; font-size: 13px; }
.faculty-logo { display: block; width: 136px; height: auto; object-fit: contain; flex: none; }
.topbar-actions .date-chip { color: #475569; border-color: #e2e8f0; font-size: 14px; }
.user-label { color: #334155; font-size: 14px; }
.app-layout { grid-template-columns: 240px minmax(0, 1fr); min-width: 0; }
.sidebar { background: #fff; border-color: #e2e8f0; }
.nav-item { color: #334155; font-size: 14px; }
.nav-item:hover, .nav-item.active { background: #eff6ff; border-color: #bfdbfe; color: #0f172a; }
.nav-item span:first-child, .nav-item.active span:first-child { color: #2563eb; }
.privacy-mini { border-color: #e2e8f0; background: #f8fafc; }
.privacy-mini strong { font-size: 13px; color: #0f172a; }
.privacy-mini small { color: #64748b; font-size: 12px; }
.main-content, .page { min-width: 0; }
.page-heading h2 { font-size: 30px; color: #0f172a; }
.subheading { color: #475569; font-size: 15px; line-height: 1.55; }
.metric-card, .panel { background: #fff; border-color: #e2e8f0; box-shadow: var(--shadow); }
.metric-card { min-width: 0; }
.metric-label { color: #475569; font-size: 14px; }
.metric-card strong { color: #0f172a; font-size: 26px; }
.metric-card small { color: #64748b; font-size: 13px; }
.panel h3 { color: #0f172a; font-size: 19px; }
.badge-neutral, .badge-offline { background: #f1f5f9; color: #475569; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #dcfce7; color: #166534; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.field-label { color: #334155; font-size: 14px; }
.field, .demo-view select { background: #fff; border-color: #cbd5e1; color: #0f172a; font-size: 14px; }
.field::placeholder { color: #94a3b8; }
.button { font-size: 14px; }
.button-primary { background: #2563eb; color: #fff; }
.button-primary:hover { background: #1d4ed8; }
.button-secondary { background: #fff; border-color: #cbd5e1; color: #0f172a; }
.button:focus-visible, .nav-item:focus-visible, .text-button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline-color: #2563eb; }
.text-button { color: #1d4ed8; font-size: 14px; }
.muted, .helper { color: #64748b; font-size: 13px; line-height: 1.55; }
.timer-readout { color: #0f172a; }
.suggestion { background: #fff; border-color: #e2e8f0; }
.suggestion-main strong { color: #0f172a; font-size: 14px; }
.suggestion-main small { color: #64748b; font-size: 13px; }
.small-button { background: #fff; border-color: #cbd5e1; color: #1e293b; font-size: 13px; }
.small-button.accept { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.small-button.decline { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.workflow-note, .callout { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; font-size: 14px; }
.privacy-note { background: #fffbeb; border-left-color: #f59e0b; color: #713f12; font-size: 13px; }
.table-panel { border-color: #e2e8f0; }
.table-hint, th { background: #f8fafc; color: #475569; }
th { font-size: 12px; }
td { border-color: #e2e8f0; color: #1e293b; font-size: 14px; }
.summary-pill { border-color: #e2e8f0; color: #475569; font-size: 13px; }
.summary-pill strong { color: #0f172a; font-size: 14px; }
.board-grid { min-width: 0; grid-template-columns: repeat(4, minmax(245px, 1fr)); gap: 14px; overflow-x: auto; overflow-y: hidden; }
.board-column { min-width: 0; background: #f8fafc; border-color: #e2e8f0; }
.board-column h3 { color: #334155; font-size: 14px; }
.task-card { background: #fff; border-color: #e2e8f0; box-shadow: 0 2px 6px rgb(15 23 42 / 4%); }
.task-card strong { color: #0f172a; font-size: 14px; }
.task-card p { color: #475569; font-size: 13px; }
.task-meta { color: #64748b; font-size: 12px; }
.task-actions { align-items: center; }
.integration-card p { color: #475569; font-size: 14px; }
.integration-icon { width: 40px; height: 40px; border-radius: 11px; background: #eff6ff; color: #1d4ed8; font-size: 14px; letter-spacing: .02em; }
.integration-card ul { color: #475569; font-size: 13px; }
.integration-guide { background: #f8fafc; }
.integration-guide p:last-child { color: #475569; font-size: 14px; line-height: 1.6; }
.privacy-panel ul { color: #475569; font-size: 14px; }
.task-comments { border-color: #e2e8f0; }
.task-comment { background: #f8fafc; border-color: #e2e8f0; color: #1e293b; font-size: 14px; }
.task-comment-meta, .comment-visibility-note { color: #64748b; font-size: 12px; }
.task-comment-item { display: grid; gap: 5px; }
.comment-visibility-note { margin: 0 0 10px; }
.edit-dialog { background: #fff; color: #0f172a; border-color: #e2e8f0; }
.edit-dialog::backdrop { background: rgb(15 23 42 / 38%); }
.edit-dialog h2 { color: #0f172a; font-size: 23px; }
.edit-dialog .muted { color: #64748b; }
.task-details-content dl { display: grid; grid-template-columns: minmax(100px, .4fr) minmax(0, 1fr); gap: 10px 16px; margin: 0; }
.task-details-content dt { color: #64748b; font-size: 13px; }
.task-details-content dd { margin: 0; color: #0f172a; font-size: 14px; overflow-wrap: anywhere; }
.toast { background: #fff; border-color: #bfdbfe; color: #0f172a; font-size: 14px; }
.login-screen { background: radial-gradient(ellipse at 50% 0, #dbeafe 0, transparent 42%), #f8fafc; }
.login-card { background: #fff; border-color: #e2e8f0; }
.login-form h2 { color: #0f172a; font-size: 30px; }
.login-form .muted { color: #64748b; font-size: 14px; }
.form-error { color: #b91c1c; font-size: 14px; }
.user-label { color: #334155; }
@media (max-width: 1080px) {
  .app-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .board-grid { grid-template-columns: repeat(4, minmax(245px, 1fr)); }
}
@media (max-width: 700px) {
  .app-layout { display: block; }
  .sidebar { background: #fff; }
  .main-content { padding-inline: 14px; }
  .page-heading h2 { font-size: 27px; }
  .board-grid { grid-template-columns: repeat(4, 250px); width: 100%; max-width: 100%; }
  .faculty-logo { width: 108px; height: auto; }
  .topbar-actions .button { padding: 8px 10px; }
  .task-details-content dl { grid-template-columns: 1fr; gap: 4px; }
  .task-details-content dd { margin-bottom: 8px; }
}
.report-filter { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)) auto auto; align-items: end; gap: 12px; }
.report-filter .field-label { margin: 0; }
.report-note { color: #475569; font-size: 13px; line-height: 1.6; }
.help-section h3 { margin: 0 0 9px; }
.help-section p { margin: 0; color: #475569; font-size: 14px; line-height: 1.7; }
.help-section strong { color: #0f172a; }
@media (max-width: 700px) {
  .report-filter { grid-template-columns: 1fr; }
  .report-filter .button { justify-self: start; }
}
.nav-item.lead-only:not([hidden]) { display: flex; }

.task-activity { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.task-activity h3 { margin: 0 0 12px; font-size: 17px; }
.task-history-list { margin: 0; padding-left: 20px; display: grid; gap: 12px; color: #1e293b; }
.task-history-list strong { display: block; color: #0f172a; font-size: 14px; }
.task-history-list small { display: block; margin-top: 3px; color: #475569; font-size: 12px; }
.task-history-list p { margin: 6px 0 0; color: #334155; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.report-lead-group th { background: #eff6ff; color: #1e3a8a; font-size: 13px; text-transform: none; letter-spacing: 0; border-top: 1px solid #bfdbfe; }
.approval-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.approval-summary-metric { display: grid; gap: 5px; padding: 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.approval-summary-metric span { color: #475569; font-size: 13px; }
.approval-summary-metric strong { color: #0f172a; font-size: 18px; }
.category-breakdown { margin: 14px 0 18px; }
.category-breakdown h4, .approval-entries h4 { margin: 0 0 9px; color: #0f172a; font-size: 15px; }
.category-bar { display: flex; height: 17px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.category-segment { display: block; height: 100%; min-width: 0; }
.category-client { background: #2563eb; } .category-internal { background: #64748b; } .category-support { background: #d97706; } .category-meeting { background: #7c3aed; } .category-unclassified { background: #94a3b8; }
.category-breakdown-list { display: flex; gap: 8px 18px; flex-wrap: wrap; margin: 9px 0 0; padding: 0; list-style: none; color: #334155; font-size: 13px; }
.approval-entry-scroll { border: 1px solid #e2e8f0; border-radius: 9px; }
.approval-entry-scroll table { min-width: 720px; }
.approval-entry-scroll td { vertical-align: top; overflow-wrap: anywhere; }
.review-details { grid-column: 1 / -1; padding: 16px; border: 1px solid #cbd5e1; border-radius: 12px; background: #f8fafc; color: #1e293b; font-size: 14px; line-height: 1.55; }
.review-details .table-scroll { width: 100%; }
.review-note-input { width: 100%; max-width: none; min-width: 0; }
.timesheet-conflict { border-color: #fca5a5; background: #fff1f2; color: #7f1d1d; }
.timesheet-conflict strong, .timesheet-conflict p { color: #7f1d1d; }
.timesheet-conflict p { margin: 7px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.ai-settings { border-color: #bfdbfe; }
@media (max-width: 700px) { .approval-summary { grid-template-columns: 1fr; } .review-details { padding: 12px; } .suggestion-actions { flex-wrap: wrap; } }

.task-view-tabs { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.task-view-tabs [aria-selected="true"] { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; }
@media (max-width: 700px) { .task-view-tabs { width: 100%; } .task-view-tabs button { flex: 1; } }

.planner-controls { display: flex; align-items: center; gap: 12px; }
.leave-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.leave-calendar-day, .leave-calendar-heading { min-width: 0; }
.leave-calendar-heading { padding: 7px 4px; color: #475569; font-size: 12px; font-weight: 700; text-align: center; }
.leave-calendar-day { min-height: 104px; padding: 8px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.leave-calendar-day.is-outside { background: #f8fafc; color: #94a3b8; }
.leave-calendar-day.is-today { border-color: #2563eb; box-shadow: inset 0 0 0 1px #2563eb; }
.leave-calendar-date { display: block; margin-bottom: 6px; color: #0f172a; font-size: 13px; }
.leave-calendar-day.is-outside .leave-calendar-date { color: #94a3b8; }
.leave-event { display: block; margin-top: 4px; padding: 4px 5px; border-radius: 6px; background: #eff6ff; color: #1e40af; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.leave-event.is-pending { background: #fffbeb; color: #92400e; }
.leave-event.is-cancelled { background: #f1f5f9; color: #475569; text-decoration: line-through; }
.leave-event.is-rejected { background: #fff1f2; color: #9f1239; }
.leave-balance { display: flex; flex-wrap: wrap; gap: 10px; }
.leave-balance-card { min-width: 180px; display: grid; gap: 4px; padding: 12px 15px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.leave-balance-card strong { color: #0f172a; font-size: 19px; }
.leave-balance-card small { color: #475569; }
.check-row { display: flex; align-items: center; gap: 9px; border: 1px solid #cbd5e1; border-radius: 9px; padding: 10px; background: #f8fafc; color: #334155; font-size: 14px; line-height: 1.45; }
.check-row input { width: 18px; height: 18px; accent-color: #315ee8; }
.evidence-panel { border-color: #bfdbfe; }
.evidence-disclosure { margin: 8px 0; padding: 10px 12px; border-left: 3px solid #64748b; background: #f8fafc; color: #334155; font-size: 13px; line-height: 1.6; }
.evidence-status { color: #334155; font-size: 14px; line-height: 1.55; }
.evidence-status[data-status="not_configured"], .evidence-status[data-status="inconclusive"] { color: #475569; }
.evidence-status[data-status="review_suggested"] { color: #854d0e; }
.evidence-status[data-status="reviewed"] { color: #166534; }
.evidence-result { display: grid; gap: 14px; margin-top: 12px; }
.evidence-summary { margin: 0; color: #334155; font-size: 14px; line-height: 1.6; }
.evidence-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.evidence-list, .evidence-limitations { min-width: 0; padding: 13px; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; }
.evidence-list h4, .evidence-limitations h4 { margin: 0 0 8px; color: #0f172a; font-size: 14px; }
.evidence-item { padding: 9px 0; border-top: 1px solid #e2e8f0; color: #334155; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.evidence-item:first-child { border-top: 0; }
.evidence-item strong { display: block; color: #0f172a; }
.evidence-item small { display: block; margin-top: 3px; color: #64748b; font-size: 12px; }
.evidence-limitations ul { margin: 0; padding-left: 20px; color: #475569; font-size: 13px; line-height: 1.6; }
.evidence-review-form { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.evidence-review-form .helper { margin: 0; }
.evidence-review-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.evidence-review-saved { margin: 0; color: #166534; font-size: 14px; }
@media (max-width: 700px) { .evidence-columns { grid-template-columns: 1fr; } .evidence-panel > .panel-heading { align-items: stretch; flex-direction: column; } .evidence-review-actions { display: grid; } }
@media (max-width: 700px) {
  .leave-calendar { gap: 3px; }
  .leave-calendar-day { min-height: 82px; padding: 4px; border-radius: 7px; }
  .leave-calendar-heading { font-size: 10px; }
  .leave-event { padding: 3px; font-size: 10px; }
  .planner-controls { gap: 6px; }
}

.email-settings { border-color: #bfdbfe; }
.email-settings .panel-heading { align-items: center; }
.email-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.email-setup { margin-top: 20px; padding: 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; }
.email-setup h4 { margin: 0 0 8px; font-size: 15px; }
.email-setup p { margin: 8px 0 0; color: #475569; font-size: 13px; line-height: 1.6; }
.email-setup strong { color: #0f172a; }
.reminder-send-status { display: block; margin-top: 5px; color: #475569; font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 700px) { .email-actions { display: grid; } .email-actions .button { width: 100%; } }

.ai-preview { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border: 1px solid #bfdbfe; border-radius: 10px; background: #f8fbff; color: #1e293b; }
.ai-preview > strong { color: #1e3a8a; }
.ai-preview dl { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.ai-preview dt { font-weight: 700; color: #475569; }
.ai-preview dd, .ai-preview p, .ai-preview li { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.ai-preview h4 { margin: 6px 0 0; font-size: 14px; }
.ai-preview ul { margin: 0; padding-left: 20px; }
.ai-preview-item { padding: 9px 0; border-top: 1px solid #dbeafe; }
.ai-preview-item small { color: #475569; }
.ai-preview-controls { border-color: #bfdbfe; }
.completion-panel { margin-top: 14px; border-color: #93c5fd; }
.completion-panel .policy-form { display: grid; gap: 10px; }
.completion-panel .privacy-note { margin: 4px 0; }
.completion-media-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.completion-media-item { min-width: 0; margin: 0; padding: 8px; border: 1px solid #cbd5e1; border-radius: 9px; background: #f8fafc; }
.completion-media-preview img, .completion-media-preview video { display: block; width: 100%; max-height: 240px; object-fit: contain; border-radius: 6px; background: #0f172a; }
.completion-media-item figcaption { margin-top: 6px; color: #475569; font-size: 11px; overflow-wrap: anywhere; }
.completion-ai-result { margin-top: 16px; padding: 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; color: #334155; }
.completion-ai-result h4, .completion-ai-result h5 { margin: 8px 0; color: #0f172a; }
.completion-ai-result ul { margin: 0; padding-left: 20px; line-height: 1.5; }
.completion-ai-result p { overflow-wrap: anywhere; }
.completion-ai-result[data-result="relevant"] { border-color: #86efac; background: #f0fdf4; }
.completion-ai-result[data-result="uncertain"], .completion-ai-result[data-result="unrelated"], .completion-ai-result[data-result="not_configured"], .completion-ai-result[data-result="unsupported"] { border-color: #fcd34d; background: #fffbeb; }
.completion-submit-confirmation-label { border-color: #93c5fd; background: #eff6ff; color: #1e3a8a; }
.completion-qa-handoff { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #cbd5e1; }
.completion-evidence-block { margin-top: 12px; padding: 12px; border: 1px solid #cbd5e1; border-radius: 9px; background: #f8fafc; color: #334155; }
.completion-evidence-block h4 { margin: 0 0 8px; color: #0f172a; }
.completion-evidence-block p, .completion-evidence-block li { line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.completion-panel button:disabled { opacity: .6; cursor: not-allowed; }
@media (max-width: 700px) { .completion-media-preview { grid-template-columns: 1fr; } .completion-panel .panel-heading { align-items: stretch; flex-direction: column; } }

/* Keep table titles and captions clear of the scroll viewport and each other. */
.table-panel > .panel-heading {
  min-width: 0;
  margin: 0;
  padding: 18px 18px 12px;
  align-items: flex-start;
}
.table-panel > .panel-heading > div { display: grid; gap: 4px; min-width: 0; }
.table-panel > .panel-heading .eyebrow { display: block; position: static; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.table-panel > .panel-heading h3 { position: static; display: block; margin: 0; line-height: 1.3; overflow-wrap: anywhere; }
.table-panel .table-hint { padding: 10px 18px; }
@media (max-width: 700px) { .table-panel > .panel-heading { padding: 15px 14px 10px; } }
@media (max-width: 700px) { .ai-preview dl { grid-template-columns: 1fr; gap: 3px; } }

.active-timer-summary { display: grid; gap: 7px; margin: 8px 0 12px; padding: 17px; border: 2px solid #2563eb; border-radius: 12px; background: #eff6ff; color: #0f172a; box-shadow: 0 6px 18px rgb(37 99 235 / 12%); }
.active-timer-summary .eyebrow { margin: 0; color: #1d4ed8; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.active-timer-summary strong { font-size: clamp(19px, 2.5vw, 25px); line-height: 1.25; overflow-wrap: anywhere; }
.active-timer-summary span { color: #334155; font-size: 14px; font-weight: 700; }
.active-timer-summary small { color: #475569; font-size: 12px; line-height: 1.45; }
.timer-readout { font-size: clamp(38px, 6vw, 52px); font-weight: 750; }
.team-tree-group td { background: #eff6ff; border-top: 1px solid #bfdbfe; }
.team-tree-toggle { width: 100%; padding: 8px 10px; border: 0; background: transparent; color: #1e3a8a; text-align: left; font-weight: 750; cursor: pointer; }
.team-tree-toggle:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.task-attachment-list { display: grid; gap: 7px; min-width: 0; margin: 2px 0 12px; }
.task-attachment-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 8px; background: #f8fafc; color: #334155; overflow-wrap: anywhere; }
.task-attachment-row a { color: #1d4ed8; font-weight: 650; overflow-wrap: anywhere; }
.task-attachment-row small { flex: 0 0 auto; color: #475569; }
.task-attachment-queued { border-style: dashed; }
.leave-request-fields { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.leave-request-fields:disabled { opacity: .58; }
.leave-request-fields:disabled button { cursor: not-allowed; }
.leave-request-estimate { display: block; margin: 12px 0; }





/* Issue board: clean kanban cards (mockup option 1). Actions live in the issue details dialog. */
.board-column { background: #f1f5f9; border: 1px solid #e2e8f0; min-height: 300px; }
.board-column h3 { color: #334155; }
.task-card { padding: 0; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgb(15 23 42 / 5%); }
.task-card:hover { border-color: #1f5eff; box-shadow: 0 0 0 3px #e4ecff; }
.task-card-open {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%;
  padding: 12px; background: transparent; border: 0; text-align: left; cursor: pointer; color: #0f172a; font: inherit;
}
.task-card-open:focus-visible { outline: 3px solid #93c5fd; outline-offset: -3px; border-radius: 10px; }
.task-card-key { font-size: 12px; font-weight: 600; color: #64748b; }
.task-card-title { font-size: 14px; font-weight: 600; line-height: 1.35; color: #0f172a; overflow-wrap: anywhere; }
.task-card-project { font-size: 12px; color: #64748b; overflow-wrap: anywhere; }
.task-card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 12px; color: #475569; }
.task-card-assignee { font-weight: 600; color: #1e3a8a; background: #e0e9ff; border-radius: 999px; padding: 1px 8px; }
.task-card-live { color: #1f5eff; font-weight: 600; margin-left: auto; }
.task-action-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.task-comments-detail { margin-top: 16px; border-top: 1px solid #e2e8f0; padding-top: 12px; }
.task-comments-detail:not([hidden]) { display: block; }

/* Issue details dialog: wider, two columns (details left, activity and comments right). */
#task-details-dialog.edit-dialog { width: min(1040px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow: hidden; }
#task-details-dialog .policy-form { max-height: calc(100vh - 80px); overflow-y: auto; }
#task-details-dialog .task-details-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
#task-details-dialog .task-details-main,
#task-details-dialog .task-details-side { min-width: 0; }
#task-details-dialog .task-details-content dl { grid-template-columns: minmax(110px, .4fr) minmax(0, 1fr); }
#task-details-dialog .task-action-bar { margin-top: 0; padding-top: 0; border-top: 0; }
#task-details-dialog .task-comments-detail { border-top: 0; margin-top: 0; padding-top: 0; }
@media (max-width: 860px) {
  #task-details-dialog.edit-dialog { width: calc(100% - 16px); }
  #task-details-dialog .task-details-layout { grid-template-columns: 1fr; gap: 16px; }
}

/* Team capacity: WIP and Backlog task chips (compact cards with +N overflow). */
.task-chip { display: inline-flex; flex-direction: column; gap: 3px; min-width: 150px; max-width: 220px; padding: 6px 8px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; text-align: left; position: relative; }
.task-chip-wip { border-left: 3px solid #2563eb; background: #eff6ff; }
.task-chip-backlog { border-left: 3px solid #94a3b8; background: #f8fafc; }
.task-chip-head { display: flex; align-items: center; gap: 6px; }
.task-chip-key { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #334155; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.task-chip-title { font-size: 13px; line-height: 1.3; color: #0f172a; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.task-chip-priority { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 999px; background: #e2e8f0; color: #334155; }
.task-chip-priority.p1 { background: #fee2e2; color: #991b1b; }
.task-chip-priority.p2 { background: #ffedd5; color: #9a3412; }
.task-chip-more { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #0f172a; color: #fff; cursor: help; }
.task-chip-empty { font-size: 12px; color: #64748b; font-style: italic; }

.entry-evidence-row td { background: #f8fafc; font-size: 13px; }
.entry-evidence-label { margin-right: 8px; color: #334155; }
.entry-evidence-item { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 12px 2px 0; padding: 3px 8px; border-radius: 999px; background: #fff; border: 1px solid #e2e8f0; }
.entry-evidence-text { color: #0f172a; max-width: 420px; }
.entry-evidence-item a { color: #2563eb; font-weight: 600; text-decoration: none; }
