:root {
  --color-ink-black: #29475e;
  --color-paper-white: #fff;
  --color-mist-gray: #edf5fc;
  --color-fog-white: #f7fbff;
  --color-slate-gray: #587087;
  --color-ash-gray: #5e768a;
  --color-smoke-gray: #5a7388;
  --color-blush-peach: #e2f0ff;
  --color-sienna-brown: #315c7c;
  --line: #dce9f3;
  --font-signifier:
    "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --font-sohne: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --scroll-thumb: #bdd4e7;
  --scroll-track: #f7fbff;
  --scroll-hover: #789bb7;
  --scroll-active: #29475e;
  --visual-blue: #70acd7;
  --visual-mint: #a7d4cc;
  --visual-lavender: #d3cff2;
  --visual-grid: #8ab6d51a;
  --sidebar-width: 300px;
  --surface-page: #f5f9fd;
  --surface-raised: #ffffff;
  --surface-tint: #eef6fc;
  --shadow-soft: 0 14px 34px rgba(62, 108, 140, 0.08);
  --shadow-hover: 0 16px 34px rgba(62, 108, 140, 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--scroll-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-hover);
}
::-webkit-scrollbar-thumb:active {
  background: var(--scroll-active);
}
::selection {
  color: #173b54;
  background: #cfe8fb;
}
html {
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  color: var(--color-ink-black);
  background: var(--surface-page);
  font: 500 16px/1.6 var(--font-sohne);
  letter-spacing: -0.025em;
  caret-color: #5085ad;
}
body:has(#modal[open]) {
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  cursor: pointer;
}
button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 10px 18px;
  transition:
    background 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out),
    color 0.18s var(--ease-out),
    transform 0.18s var(--ease-out),
    box-shadow 0.18s var(--ease-out);
}
button:hover {
  background: #edf6fd;
  border-color: #c6deef;
}
button:active {
  transform: scale(0.97);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #315c7c;
  outline-offset: 4px;
}
.primary {
  background: var(--color-ink-black);
  color: #fff;
  border-color: var(--color-ink-black);
}
.primary:hover {
  background: #477eaa;
  border-color: #477eaa;
}
.ghost {
  background: transparent;
  border-color: #b4cde1;
}
.text-button {
  border: 0;
  background: none;
  padding: 4px 0;
  font-size: 14px;
}
.icon-button {
  border: 0;
  padding: 4px;
  width: 40px;
  height: 40px;
  font-size: 21px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  flex: none;
  background: #dfedfa;
  font-size: 14px;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 24px;
}
.brand img {
  width: 180px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.brand:hover {
  text-decoration: none;
}
.brand small {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--color-slate-gray);
}
.company-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 300px;
  align-self: center;
  margin: -10px auto 16px;
  text-align: center;
  flex-shrink: 0;
}
.company-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fcff;
  color: var(--color-ink-black);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.company-links a:hover {
  background: #e0effc;
  text-decoration: none;
}
.company-links a:focus-visible {
  outline: 2px solid #5085ad;
  outline-offset: 3px;
}
.company-links svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notice-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.notice-overview button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  gap: 6px;
  background: var(--color-paper-white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.notice-overview button[aria-pressed="true"] {
  background: var(--color-blush-peach);
  border-color: var(--visual-blue);
}
.notice-overview strong {
  font-size: 25px;
}
.budget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.budget-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--color-fog-white);
}
.budget-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
}
.budget-card .section-head {
  flex-wrap: wrap;
  gap: 8px;
}
.batch-table {
  min-width: 830px;
}
.batch-table td {
  vertical-align: top;
}
.batch-table input:not([type="checkbox"]),
.batch-table select,
.batch-table textarea {
  width: 100%;
  min-width: 110px;
  margin-bottom: 8px;
}
.batch-table small {
  max-width: 140px;
  overflow-wrap: anywhere;
}
.batch-preview {
  width: 64px;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--color-mist-gray);
}
.batch-table textarea {
  resize: none;
  min-height: 80px;
}
.notice-overview button:hover {
  border-color: var(--visual-blue);
}
#batch-status {
  min-height: 24px;
}
@media (max-width: 760px) {
  .notice-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .budget-grid {
    grid-template-columns: 1fr;
  }
}
#sidebar {
  overflow-y: auto;
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 30px 20px 18px;
  background: #f3f8fd;
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 28px rgba(72, 117, 146, 0.05);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.workspace {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 26px;
  font-size: 14px;
}
.workspace > span:last-child {
  margin-left: auto;
}
.workspace small,
.side-bottom small {
  display: block;
  font-size: 12px;
  color: var(--color-slate-gray);
}
.nav-label {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--color-slate-gray);
  padding-left: 14px;
}
nav {
  display: grid;
  gap: 5px;
}
nav a,
.side-bottom > button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 12px;
}
nav a:hover {
  background: #ecf5fd;
  text-decoration: none;
}
nav a.active {
  background: #dceefa;
  box-shadow: inset 3px 0 0 #70acd7;
  font-weight: 700;
}
nav .nav-icon {
  width: 20px;
  font-size: 20px;
  font-weight: 400;
}
nav .count {
  margin-left: auto;
  font-size: 11px;
  color: #587087;
}
.side-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.side-bottom > button {
  border: 0;
  background: none;
  width: 100%;
  padding-left: 8px;
}
.local-note {
  font-size: 12px;
  margin: 20px 0 14px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6d9ab8;
  margin-right: 4px;
}
select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  max-width: 100%;
}
#active-user {
  width: 100%;
  font-size: 14px;
}
.shell {
  margin-left: var(--sidebar-width);
}
header {
  height: 84px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #d8e8f3;
  box-shadow: 0 4px 18px rgba(72, 117, 146, 0.05);
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--color-slate-gray);
  white-space: nowrap;
}
.breadcrumb span {
  margin: 0 14px;
  color: #a3a6af;
}
.breadcrumb strong {
  font-weight: 600;
  color: #29475e;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  background: var(--surface-tint);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 14px;
  max-width: 380px;
  width: 40%;
}
.search-wrap:focus-within {
  border-color: #9fc8e4;
  box-shadow: 0 0 0 3px #d9edf9;
}
.search-wrap > span {
  font-size: 24px;
}
.search-wrap input {
  border: 0;
  background: none;
  width: 100%;
  min-width: 0;
  font-size: 13px;
  outline-offset: 2px;
}
.search-wrap kbd {
  font: 12px inherit;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
}
#menu {
  display: none;
}
main {
  max-width: 1480px;
  margin: auto;
  padding: 38px 40px 48px;
  min-height: calc(100vh - 146px);
}
.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-slate-gray);
  margin: 0 0 8px;
}
.page-top h1 {
  font-family: var(--font-signifier);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -1.5px;
  margin: 0 0 8px;
}
.muted {
  color: var(--color-slate-gray);
  font-size: 14px;
}
.page-top p {
  margin: 0;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.actions button {
  font-size: 14px;
  white-space: nowrap;
}
.date-label {
  font-size: 13px;
  color: var(--color-slate-gray);
  margin-bottom: 12px;
  text-align: right;
}
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stats-extended .stat {
  padding: 18px 16px;
  border-radius: 20px;
}
.stats-extended .stat strong {
  font-size: 28px;
}
.stat {
  border-radius: 24px;
  background: var(--surface-raised);
  border: 1px solid #dbeaf4;
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
}
.stat-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--color-slate-gray);
}
.stat strong {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: -1px;
}
.stat small {
  font-size: 13px;
  color: var(--color-slate-gray);
  margin-left: 8px;
}
.stat-foot {
  font-size: 12px;
  color: var(--color-slate-gray);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
}
.dashboard-grid > * {
  min-width: 0;
}
.today-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 24px;
  gap: 24px;
  background: var(--color-paper-white);
  border: 1px solid var(--line);
  border-radius: 24px;
  margin-bottom: 24px;
}
.today-strip > div {
  border-top: 2px solid var(--visual-blue);
  padding: 12px 4px 0;
}
.today-strip strong {
  display: block;
  font-size: 32px;
  margin-top: 8px;
}
.today-strip small {
  font-size: 13px;
  margin-left: 8px;
}
.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
  gap: 24px;
}
.today-grid > * {
  min-width: 0;
}
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.quick-actions button {
  padding: 6px 12px;
  min-height: 36px;
  white-space: nowrap;
}
.priority-panel {
  margin-bottom: 24px;
}
.gate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.gate-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.drop-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 2px dashed var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-top: 16px;
  text-align: center;
}
.drop-zone.drag-over {
  border-color: var(--visual-blue);
  background: var(--color-mist-gray);
}
.drop-zone span {
  font-size: 12px;
}
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
}
.check-line input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
}
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.source-links h3,
.source-links p {
  flex-basis: 100%;
}
.notification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.notification-row > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.notification-row.is-read {
  background: var(--color-fog-white);
}
.workload-list article {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(100px, 2fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.workload-list small {
  display: block;
}
.workload-bar {
  height: 14px;
  border-radius: 7px;
  background: var(--line);
  overflow: hidden;
}
.workload-bar span {
  display: block;
  height: 100%;
  background: var(--visual-blue);
  border-radius: inherit;
}
.undo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--color-paper-white);
  margin-bottom: 20px;
}
.view-toggle {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-raised);
}
.view-toggle button {
  border: 0;
  border-radius: 0;
  padding: 8px 14px;
  font-size: 13px;
  background: transparent;
}
.view-toggle button.active {
  background: var(--color-blush-peach);
  color: var(--color-sienna-brown);
  font-weight: 700;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kanban-column {
  min-width: 0;
  min-height: 300px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.kanban-column.drag-over {
  background: var(--color-mist-gray);
  border-color: var(--visual-blue);
}
.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 14px;
}
.kanban-head strong,
.kanban-head small {
  display: block;
}
.kanban-head small {
  margin-top: 2px;
  color: var(--color-slate-gray);
  font-size: 12px;
}
.kanban-head > span {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-mist-gray);
  font-size: 13px;
  font-weight: 700;
}
.kanban-list {
  display: grid;
  gap: 10px;
}
.work-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-raised);
  box-shadow: 0 5px 14px rgba(62, 108, 140, 0.06);
  cursor: grab;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), opacity 0.18s var(--ease-out);
}
.work-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.work-card.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}
.work-card.is-overdue {
  border-color: #e6c7c4;
}
.work-card-top,
.work-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.work-card-top {
  justify-content: space-between;
}
.work-card h3 {
  margin: 10px 0 4px;
  font-size: 15px;
  line-height: 1.4;
}
.work-card h3 button {
  max-width: 100%;
  text-align: left;
  overflow-wrap: anywhere;
}
.work-card p {
  margin: 0;
  color: var(--color-slate-gray);
  font-size: 12px;
}
.work-card-meta {
  margin-top: 12px;
  color: var(--color-slate-gray);
  font-size: 12px;
}
.work-card-meta .avatar {
  width: 26px;
  height: 26px;
  font-size: 11px;
}
.work-card-meta time {
  margin-left: auto;
  white-space: nowrap;
}
.overdue-label {
  color: #a65049;
  font-size: 11px;
  font-weight: 700;
}
.kanban-empty {
  padding: 20px 8px;
  color: var(--color-slate-gray);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .today-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kanban {
    grid-template-columns: 1fr;
  }
  .today-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
    gap: 20px;
  }
  .gate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workload-list article {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .notification-row {
    flex-wrap: wrap;
  }
  .today-grid .table-wrap {
    max-width: 100%;
  }
}
@media print {
  .quick-actions,
  .drop-zone,
  .undo-bar {
    display: none;
  }
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 18px;
  gap: 12px;
}
.section-head h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.section-head h2 small {
  font-size: 13px;
  font-weight: 400;
  color: #587087;
  margin-left: 8px;
}
.project-list {
  display: grid;
  gap: 14px;
}
.project-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}
.project-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.project-heading h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}
.project-heading button {
  font: inherit;
  text-align: left;
  border: 0;
  background: none;
  padding: 0;
  border-radius: 0;
}
.project-code {
  font-size: 11px;
  letter-spacing: 1px;
  color: #587087;
  margin-bottom: 6px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 9px;
  background: #edf5fc;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.attention {
  border: 1px solid #bab3ad;
  background: #fff;
}
.project-card > p {
  font-size: 13px;
  color: #587087;
  margin: 12px 0 18px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 7px;
}
.progress {
  height: 5px;
  background: #eaf3fb;
  border-radius: 999px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: #92c0e4;
  border-radius: 999px;
}
.project-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e7f1f9;
  margin-top: 18px;
  padding-top: 14px;
  font-size: 12px;
  color: #587087;
}
.project-meta .avatar {
  width: 25px;
  height: 25px;
  font-size: 10px;
}
.project-meta > span:last-child {
  margin-left: auto;
}
.week-card {
  background: var(--color-blush-peach);
  color: var(--color-sienna-brown);
  border-radius: 24px;
  padding: 26px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.week-card .eyebrow {
  color: inherit;
  letter-spacing: 1px;
}
.week-card h2 {
  font: 700 22px/1.4 var(--font-sohne);
  margin: 18px 0 12px;
}
.week-card p {
  font-size: 13px;
  margin-bottom: 24px;
}
.week-card button {
  background: transparent;
  border-color: #92bada;
  color: inherit;
  font-size: 13px;
  width: 100%;
  text-align: left;
}
.week-card button:hover {
  background: #d1e8fc;
}
.week-card button span {
  float: right;
}
.week-icon {
  font-size: 25px;
}
.schedule-panel {
  padding: 0 4px;
}
.timeline {
  display: flex;
  gap: 14px;
  margin: 0 0 20px;
  font-size: 13px;
}
.timeline time {
  font-size: 12px;
  color: #587087;
  min-width: 42px;
}
.timeline div {
  border-left: 2px solid #d8e7f3;
  padding-left: 14px;
}
.timeline strong {
  font-weight: 500;
  display: block;
}
.timeline small {
  display: block;
  color: #587087;
  font-size: 12px;
  margin-top: 4px;
}
.lower-section {
  margin-top: 30px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-raised);
  box-shadow: 0 6px 18px rgba(62, 108, 140, 0.04);
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
th {
  background: #f7fbff;
  color: #587087;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.01em;
}
td,
th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
tbody tr:nth-child(even) {
  background: #fbfdff;
}
tbody tr:hover {
  background: #f0f8fe;
}
tr:last-child td {
  border-bottom: 0;
}
td:first-child {
  min-width: 180px;
}
td button {
  font-size: 13px;
  text-align: left;
}
.file-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 34px;
  border: 1px solid #dce9f3;
  border-radius: 6px;
  font-size: 9px;
  margin-right: 10px;
  font-weight: 600;
}
.empty {
  padding: 36px;
  text-align: center;
  color: #587087;
  border: 1px dashed #cbdfee;
  border-radius: 20px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 20px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}
.panel h2,
.panel h3 {
  margin-top: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.cards .panel {
  margin: 0;
}
.drawing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.drawing-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}
.drawing-card-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 88px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  text-align: left;
  background: transparent;
}
.drawing-card-open:hover {
  background: #f2f8fd;
}
.drawing-card-photo { display: block; width: 92px; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.drawing-card-photo:hover .drawing-thumb, .drawing-card-photo:focus-visible .drawing-thumb { outline: 2px solid #78b9e9; outline-offset: 2px; }
.drawing-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  max-height: 300px;
  border: 1px solid #d8e8f3;
  border-radius: 14px;
  background: #f2f8fd;
  overflow: hidden;
}
.drawing-thumb:not(.compact) { min-height: 180px; }
.drawing-thumb img { display: block; width: 100%; height: 100%; max-height: 300px; object-fit: contain; }
.drawing-thumb img[hidden], .drawing-thumb-fallback[hidden] { display: none; }
.drawing-thumb.compact img { object-fit: cover; }
.drawing-thumb-fallback { padding: 8px; color: #527899; font-size: 11px; text-align: center; line-height: 1.5; }
.drawing-thumb.compact {
  width: 92px;
  height: 88px;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: #6e9abd;
  font-size: 28px;
}
.drawing-card-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.drawing-card-body strong,
.drawing-card-body small {
  overflow-wrap: anywhere;
}
.drawing-card-body strong { font-size: 15px; }
.drawing-card-body small { color: var(--color-slate-gray); font-size: 12px; }
.drawing-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-tint);
}
.drawing-meta dt { color: var(--color-slate-gray); font-size: 12px; }
.drawing-meta dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.drawing-file-list, .drawing-existing-files { display: grid; gap: 10px; }
.drawing-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #f7fbff; }
.drawing-file > div:first-child { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.drawing-file small { color: var(--color-slate-gray); }
.drawing-file[data-status="pending"] small { color: #8a641b; }
.drawing-file[data-status="blocked"] small, .drawing-file[data-status="error"] small { color: #a03838; }
.drawing-existing-files label { display: flex; align-items: center; gap: 8px; }
.drawing-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(125px,1fr)); gap: 12px; margin: 20px 0 26px; }
.drawing-gallery-item { display: grid; gap: 7px; justify-items: stretch; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; }
.drawing-gallery-item .drawing-thumb.compact { width: 100%; height: 115px; }
.drawing-gallery-item small { overflow-wrap: anywhere; color: var(--color-slate-gray); }
.drawing-photo-dialog { --dialog-max-height: 96dvh; width: min(1400px, calc(100% - 24px)); }
.drawing-preview-stage { display: grid; place-items: center; max-height: calc(96dvh - 180px); overflow: auto; margin-top: 16px; background: #f2f8fd; border-radius: 14px; }
.drawing-preview { display: block; max-width: 100%; max-height: calc(96dvh - 180px); object-fit: contain; cursor: zoom-in; }
.drawing-preview-stage.zoomed { display: block; }
.drawing-preview-stage.zoomed .drawing-preview { max-width: none; max-height: none; width: auto; height: auto; cursor: zoom-out; }
.drawing-pdf-preview { width: 100%; height: 70vh; border: 0; margin-top: 16px; }
.drawing-monthly { margin-bottom: 20px; }
.drawing-monthly .section-head { align-items: end; }
.drawing-month-field { width: 150px; margin: 0; }
.drawing-month-field input { min-height: 42px; }
.drawing-month-total { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 16px; }
.drawing-month-total strong { font-size: 34px; font-variant-numeric: tabular-nums; }
.drawing-month-total span { color: var(--color-slate-gray); font-size: 13px; }
.drawing-destination-list { display: flex; flex-wrap: wrap; gap: 8px; }
.drawing-destination-list > span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: #f7fbff; font-size: 12px; }
.drawing-destination-list small { color: var(--color-slate-gray); }
@media (max-width: 1000px) {
  .drawing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .drawing-grid { grid-template-columns: minmax(0, 1fr); }
  .drawing-card { grid-template-columns: 76px minmax(0, 1fr); }
  .drawing-card-photo { width: 76px; }
  .drawing-card-open { grid-template-columns: minmax(0, 1fr); }
  .drawing-card-open > .badge { justify-self: start; }
  .drawing-thumb.compact { width: 76px; height: 76px; }
  .drawing-meta { grid-template-columns: minmax(0, 1fr); }
  .drawing-file { align-items: flex-start; flex-direction: column; }
  .drawing-monthly .section-head { align-items: flex-start; flex-direction: column; }
  .drawing-month-field { width: 100%; }
}
.body-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  align-items: center;
}
.toolbar label {
  font-size: 14px;
}
.toolbar input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.weekday {
  padding: 12px;
  text-align: center;
  background: #f7fbff;
  font-size: 12px;
}
.day {
  min-height: 125px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 8px;
}
.day:nth-child(7n) {
  border-right: 0;
}
.day.blank {
  background: #f7fbff;
}
.day-number {
  font-size: 12px;
  padding: 3px;
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
}
.today .day-number {
  background: #29475e;
  color: #fff;
}
.event {
  display: block;
  width: 100%;
  font-size: 11px;
  padding: 4px 7px;
  text-align: left;
  border-radius: 7px;
  border: 0;
  background: #e4f0fb;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.pager {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  font-size: 13px;
}
.pager button {
  font-size: 13px;
}
footer {
  border-top: 1px solid var(--line);
  margin: 0 40px;
  padding: 20px 0;
  color: #496579;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
dialog {
  --dialog-max-height: 90dvh;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  width: min(660px, calc(100% - 32px));
  max-height: var(--dialog-max-height);
  overflow: hidden;
  color: var(--color-ink-black);
  background: var(--surface-raised);
  box-shadow: 0 24px 80px #24445d26, 0 4px 16px #24445d12;
}
dialog::backdrop {
  background: #29475e55;
  backdrop-filter: blur(3px);
}
#modal-content {
  display: flex;
  flex-direction: column;
  max-height: calc(var(--dialog-max-height) - 2px);
  min-height: 0;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: none;
  gap: 20px;
  padding: 18px 20px 18px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}
.modal-head h2 {
  min-width: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  margin: 0;
}
.modal-head .icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--color-sienna-brown);
  background: var(--surface-tint);
}
.modal-head .icon-button .ui-icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}
.modal-head .icon-button:focus-visible {
  outline-offset: 2px;
}
.modal-body {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 28px 28px;
  scrollbar-gutter: stable;
  scrollbar-color: var(--scroll-thumb) transparent;
  overscroll-behavior: contain;
}
.modal-body::-webkit-scrollbar {
  width: 10px;
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
  border: 3px solid var(--surface-raised);
  background-clip: padding-box;
  border-radius: 999px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
}
.field.wide {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #f7fbff;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
select:focus,
input:focus,
textarea:focus {
  border-color: #8bb9d8;
  outline: 0;
  box-shadow: 0 0 0 3px #dcedf9;
}
.field textarea {
  min-height: 105px;
  resize: none;
  field-sizing: content;
}
.field small {
  font-size: 12px;
  color: #587087;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
.error {
  color: #7b3026;
  font-size: 14px;
  min-height: 22px;
  white-space: pre-wrap;
}
.comments {
  margin: 22px 0;
}
.comment {
  background: #f7fbff;
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 10px;
  font-size: 14px;
}
.comment small {
  color: #587087;
}
.report {
  white-space: pre-wrap;
  font: 15px/1.85 var(--font-sohne);
  overflow-wrap: anywhere;
}
.note {
  background: #edf5fc;
  padding: 16px;
  border-radius: 16px;
  font-size: 13px;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.user-row small {
  display: block;
  color: #587087;
}
.user-row button {
  margin-left: auto;
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #29475e;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  background: white;
  z-index: 200;
  padding: 12px;
}
.loading {
  padding: 80px;
  text-align: center;
}
@media (min-width: 1500px) {
  main {
    padding-top: 48px;
  }
  .project-card {
    padding: 24px 28px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}
@media (max-width: 1150px) {
  #sidebar {
    padding: 26px 16px;
  }
  header {
    padding: 0 26px;
    gap: 12px;
  }
  main {
    padding: 28px 26px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 20px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .page-top h1 {
    font-size: 30px;
  }
  .breadcrumb {
    display: none;
  }
  .search-wrap {
    width: 65%;
    max-width: none;
  }
  .page-top {
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .week-card {
    margin: 0;
  }
  .page-top {
    flex-direction: column;
  }
  .date-label {
    text-align: left;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 651px) {
  #sidebar nav a,
  .side-bottom > button {
    white-space: nowrap;
  }
  #sidebar .nav-icon {
    flex: 0 0 20px;
  }
}
@media (max-width: 650px) {
  :root {
    --sidebar-width: 244px;
  }
  #sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 10px 0 30px #0001;
  }
  body.menu-open #sidebar {
    transform: translateX(0);
  }
  .shell {
    margin-left: 0;
  }
  #menu {
    display: block;
    flex: none;
  }
  header {
    padding: 0 14px;
    height: 72px;
    gap: 8px;
  }
  .search-wrap {
    width: auto;
    flex: 1;
    padding: 6px 10px;
    gap: 6px;
  }
  .search-wrap input {
    font-size: 12px;
  }
  .search-wrap kbd,
  header > .icon-button[data-view] {
    display: none;
  }
  main {
    padding: 28px 18px;
  }
  .page-top h1 {
    font-size: 29px;
  }
  .page-top .muted {
    font-size: 13px;
  }
  .stat {
    padding: 16px 18px;
  }
  .stat strong {
    font-size: 28px;
  }
  .stat-head {
    font-size: 12px;
  }
  .dashboard-side {
    grid-template-columns: 1fr;
  }
  .project-card {
    padding: 20px;
  }
  .project-heading h3 {
    font-size: 16px;
  }
  .project-meta {
    flex-wrap: wrap;
  }
  .project-meta > span:last-child {
    margin-left: auto;
  }
  .day {
    min-height: 88px;
    padding: 3px;
  }
  .weekday {
    padding: 8px 2px;
  }
  .event {
    font-size: 10px;
    padding: 3px;
    line-height: 1.5;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.wide {
    grid-column: auto;
  }
  .calendar {
    border-radius: 12px;
  }
  dialog {
    border-radius: 18px;
  }
  .modal-head {
    padding: 14px 16px 14px 20px;
    gap: 12px;
  }
  .modal-head h2 {
    font-size: 18px;
  }
  .modal-body {
    padding: 20px;
  }
  .actions button {
    font-size: 13px;
    padding: 9px 14px;
  }
  .section-head h2 {
    font-size: 17px;
  }
  footer {
    margin: 0 18px;
  }
  .toolbar {
    font-size: 13px;
  }
  .toolbar select {
    max-width: 170px;
  }
  .project-meta .avatar {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
  }
  .progress > span {
    background: Highlight;
  }
}
@media print {
  #sidebar,
  header,
  footer,
  .page-top,
  .toolbar,
  .no-print,
  #toast,
  dialog {
    display: none !important;
  }
  .shell {
    margin: 0;
  }
  main {
    padding: 0;
  }
  .panel {
    border: 0;
    padding: 0;
  }
  .report {
    font-size: 11pt;
  }
}

/* User revision: bold Gothic typography and compact, data-led summaries. */
button,
select,
nav a,
th {
  font-weight: 600;
}
.page-top {
  margin-bottom: 24px;
}
.page-top h1 {
  font-size: 32px;
  letter-spacing: -1px;
}
.eyebrow {
  font-weight: 650;
}
.stat {
  padding: 16px 24px;
}
.stat strong {
  font-weight: 750;
}
.project-card > p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-overview td:first-child {
  min-width: 190px;
}
.project-overview td:first-child small {
  display: block;
  font-size: 12px;
  color: var(--color-slate-gray);
  margin-top: 3px;
}
.project-overview td:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.table-progress {
  min-width: 82px;
}
.table-progress strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.visual-panel {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  min-width: 0;
}
.visual-panel .section-head h2 {
  font-size: 16px;
}
.visual-panel .section-head .muted {
  font-size: 12px;
}
.status-chart {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 142px;
}
.status-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.status-ring > div {
  background: white;
  border-radius: 50%;
  width: 98px;
  height: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.status-ring strong {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 750;
}
.status-ring small {
  font-size: 11px;
  color: var(--color-slate-gray);
}
.chart-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.chart-legend li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  margin: 7px 0;
}
.chart-legend strong {
  margin-left: auto;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.activity-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 10px;
  height: 142px;
}
.bar-column {
  flex: 1;
  max-width: 44px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.bar-column > strong {
  font-size: 12px;
}
.bar-column small {
  font-size: 12px;
  color: var(--color-slate-gray);
}
.bar-track {
  height: 90px;
  width: 100%;
  background: var(--color-fog-white);
  border-bottom: 1px solid #d2e4f2;
  display: flex;
  align-items: flex-end;
}
.bar-track span {
  display: block;
  width: 100%;
  background: #8ab9de;
  border-radius: 5px 5px 0 0;
}
.recap-count {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0 22px;
}
.recap-count strong {
  font-size: 42px;
  line-height: 1;
  font-weight: 750;
}
.recap-count span {
  font-size: 12px;
}
.week-card .eyebrow {
  margin: 0;
  font-size: 10px;
}
.week-card h2 {
  margin: 14px 0 8px;
}
.week-card {
  margin-bottom: 24px;
}
.weekly-visual .visual-panel .table-wrap {
  border: 0;
  border-radius: 0;
  max-height: 280px;
  overflow: auto;
}
.weekly-visual .visual-panel td {
  padding: 8px 12px;
}
.weekly-visual .visual-panel td:first-child {
  min-width: 100px;
}
.weekly-table td:first-child {
  min-width: 90px;
}
.weekly-table td:nth-child(2) {
  min-width: 160px;
}
.weekly-table td:nth-child(3) {
  min-width: 240px;
}
.full-report summary {
  cursor: pointer;
  font-weight: 700;
}
.full-report summary:hover {
  color: var(--color-slate-gray);
}
.full-report summary:focus-visible {
  outline: 2px solid #315c7c;
  outline-offset: 4px;
}
.full-report .report {
  margin-top: 20px;
}
@media (max-width: 1100px) {
  .status-chart {
    gap: 16px;
  }
  .visual-panel {
    padding: 20px;
  }
  .status-ring {
    width: 112px;
    height: 112px;
  }
  .status-ring > div {
    width: 84px;
    height: 84px;
  }
}
@media (max-width: 700px) {
  .visual-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .page-top h1 {
    font-size: 27px;
  }
  .status-chart {
    gap: 30px;
  }
  .status-ring {
    width: 124px;
    height: 124px;
  }
  .status-ring > div {
    width: 92px;
    height: 92px;
  }
  .brand img {
    width: 174px;
  }
}
@media print {
  .visual-grid {
    break-inside: avoid;
  }
  .visual-panel {
    padding: 12px;
  }
  .full-report:not([open]) > .report {
    display: block;
    content-visibility: visible;
  }
  .full-report {
    display: block;
  }
  .full-report summary {
    display: none;
  }
  .weekly-table {
    font-size: 10pt;
  }
  .bar-track span,
  .status-ring {
    print-color-adjust: exact;
  }
}

/* Bright pastel blue workspace and authentication */
body {
  background: #f7fbff;
}
.primary {
  background: #d9ebfc;
  color: #284f6d;
  border-color: #bbd8ef;
}
.primary:hover {
  background: #c7e1f7;
  color: #284f6d;
}
#sidebar {
  background: #f0f7fe;
  border-color: #dce9f3;
}
header {
  background: #ffffff;
}
.progress span {
  background: #92c0e4;
}
.auth-mode #sidebar,
.auth-mode .shell,
.auth-mode .skip {
  display: none;
}
#auth-root:empty {
  display: none;
}
#auth-root {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(ellipse at 10% 10%, #e1f0ff, transparent 55%), #f6fbff;
}
#auth-root .auth-card {
  box-shadow: var(--shadow-soft);
}
.auth-card {
  width: min(100%, 460px);
  padding: 38px;
  background: white;
  border: 1px solid #dce9f3;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}
.auth-logo {
  width: 180px;
  height: auto;
  object-fit: contain;
  margin-bottom: 22px;
}
.auth-card h1 {
  font-size: 26px;
  line-height: 1.4;
  margin: 8px 0;
}
.auth-card form {
  display: grid;
  gap: 16px;
  margin-top: 25px;
}
.auth-card input,
.auth-card select {
  width: 100%;
  min-height: 46px;
  background: #f9fcff;
}
.auth-card .primary {
  width: 100%;
  min-height: 48px;
  font-weight: 700;
}
.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.auth-links button {
  font-size: 13px;
}
.auth-caption {
  text-align: center;
  font-size: 12px;
  color: #627c91;
  margin-top: 28px;
}
.auth-steps {
  display: flex;
  gap: 20px;
  padding-left: 20px;
  font-size: 12px;
  color: #4c7191;
  margin-top: 24px;
}
.auth-card .error:empty {
  display: none;
}
#members-list td small {
  display: block;
  overflow-wrap: anywhere;
}
@media (max-width: 520px) {
  .auth-card {
    padding: 26px 22px;
    border-radius: 20px;
  }
  .auth-card h1 {
    font-size: 23px;
  }
  #auth-root {
    padding: 20px 12px;
  }
}

.today .day-number,
#toast {
  background: #d4e9fb;
  color: #284f6d;
}

.project-cover {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #eef6fd;
  border: 1px solid #deebf5;
  border-radius: 14px;
  margin-bottom: 18px;
}
.project-cover.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #648199;
  font-size: 13px;
}
.project-cover.placeholder span {
  font-size: 32px;
  color: #91b5d1;
}
.project-cover.compact {
  width: 60px;
  height: 48px;
  flex: 0 0 60px;
  margin: 0;
  border-radius: 8px;
}
.project-table-title {
  display: flex;
  gap: 12px;
  align-items: center;
}
.modal-body > .project-cover {
  height: 240px;
}
@media (max-width: 600px) {
  .project-cover {
    height: 155px;
  }
  .project-cover.compact {
    width: 44px;
    flex-basis: 44px;
    height: 40px;
  }
  .project-table-title {
    gap: 8px;
  }
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.stage-grid .panel {
  padding: 18px;
}
.stage-grid .progress {
  margin: 12px 0;
}
.overdue {
  color: #a24843;
  font-weight: 700;
}
.review-box {
  padding: 20px;
  background: #eef6fd;
  border-radius: 14px;
  margin-bottom: 20px;
}
.member-checks {
  border: 1px solid #dce9f3;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px;
}
.member-checks label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.member-checks input {
  width: auto;
  min-height: 0;
}
.mfa-secret,
.mfa-codes {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  padding: 14px;
  background: #eef6fd;
  font-family: monospace;
  letter-spacing: 0.05em;
}
.mfa-secret {
  user-select: all;
}
.table-wrap td small {
  display: block;
}
.report {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
#operations-body details {
  border-bottom: 1px solid #e0eaf2;
  padding: 14px 0;
}
#sidebar nav {
  overflow: auto;
  min-height: 0;
}
#sidebar {
  overflow: auto;
}
.print-report {
  break-inside: auto;
}
@media (max-width: 700px) {
  .stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media print {
  .print-report {
    border: 0;
  }
  .print-report h1 {
    font-size: 22pt;
  }
  .print-report .report {
    font-size: 11pt;
  }
}
/* Research workspace graphics — shared pastel tokens and readable data. */
.ui-icon {
  width: 21px;
  height: 21px;
  vertical-align: middle;
  flex: none;
}
.nav-icon .ui-icon {
  width: 20px;
  height: 20px;
}
.actions .ui-icon,
.text-button .ui-icon {
  width: 17px;
  height: 17px;
  margin-left: 5px;
}
.motion-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 8px 10px;
  white-space: nowrap;
  background: var(--color-fog-white);
}
.motion-toggle .ui-icon {
  width: 16px;
  height: 16px;
}
.motion-toggle:disabled {
  cursor: default;
  opacity: 1;
}
header {
  gap: 14px;
}
.stat-link {
  text-align: left;
  min-width: 0;
  display: block;
  border: 1px solid var(--line);
  background: white;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.stat-link::after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -65px;
  width: 150px;
  height: 150px;
  border: 16px solid var(--visual-grid);
  border-radius: 50%;
  pointer-events: none;
}
.stat-link:hover {
  text-decoration: none;
  border-color: var(--visual-blue);
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #e8f3fd;
  color: #3e739c;
}
.tone-1 .metric-icon {
  background: #e7f5f1;
  color: #40746b;
}
.tone-2 .metric-icon {
  background: #efedfc;
  color: #74679a;
}
.tone-3 .metric-icon {
  background: #fff1e8;
  color: #8a6551;
}
.metric-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.metric-value strong {
  font-size: 36px;
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
}
.metric-value small {
  margin: 0;
}
.stat-link .stat-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}
.stat-foot .ui-icon {
  width: 14px;
  height: 14px;
}
.expense-summary {
  margin: 18px 0;
}
.expense-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.expense-stats > div {
  padding: 16px;
  background: var(--color-mist-gray);
  border-radius: 16px;
  min-width: 0;
}
.expense-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.expense-stats span {
  font-size: 14px;
}
.expense-bars {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
.expense-bars > div > span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.expense-detail-amount {
  font-size: 32px;
  font-weight: 750;
}
.receipt-upload {
  padding: 18px;
  border: 1px dashed var(--visual-blue);
  border-radius: 18px;
  background: var(--color-fog-white);
}
.receipt-upload .field {
  margin-bottom: 14px;
}
.receipt-preview {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  background: white;
}
#receipt-progress {
  min-height: 48px;
}
@media (max-width: 760px) {
  .expense-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}
.home-graphic-top,
.home-graphic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.home-graphic-top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-graphics .visual-panel {
  background: var(--color-paper-white);
}
.home-graphics .section-head {
  gap: 12px;
  flex-wrap: wrap;
}
.home-graphic-top > .work-overview {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 20px;
}
.home-graphic-top .completion-orbit {
  grid-row: 1;
  min-height: 142px;
}
.home-graphic-top .completion-ring {
  width: 120px;
  height: 120px;
}
.home-graphic-top .orbit-grid {
  width: 240px;
  height: 156px;
}
.home-graphic-top .overview-copy h2 {
  font-size: 18px;
  margin: 10px 0 6px;
}
.home-graphic-top .overview-copy p {
  margin-bottom: 12px;
  font-size: 14px;
}
.home-graphic-top .overview-copy .actions {
  gap: 10px;
}
.home-graphic-top .overview-label,
.home-graphic-top .completion-orbit p,
.home-graphic-top .completion-ring span {
  font-size: 12px;
}
.home-graphic-top .status-chart {
  flex-direction: column;
  gap: 20px;
}
.home-graphic-top .chart-legend {
  width: 100%;
}
.home-graphics .research-flow {
  margin-bottom: 18px;
}
.home-graphics .flow-stage {
  padding: 8px 6px;
}
.project-progress-list {
  display: grid;
  gap: 6px;
}
.project-progress-row {
  width: 100%;
  padding: 12px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
}
.project-progress-row:hover {
  background: var(--color-mist-gray);
  border-color: var(--line);
}
.project-progress-row:active {
  background: var(--color-blush-peach);
}
.project-progress-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.project-progress-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.project-progress-title strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}
.project-progress-title b {
  flex-shrink: 0;
  color: var(--color-sienna-brown);
  font-variant-numeric: tabular-nums;
}
.project-progress-copy small {
  color: var(--color-slate-gray);
  font-size: 12px;
}
.home-graphics .chart-note {
  margin-bottom: 0;
}
@media (max-width: 1240px) {
  .home-graphic-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-graphic-top > .work-overview {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 180px;
  }
  .home-graphic-top .completion-orbit {
    grid-row: auto;
  }
}
@media (max-width: 950px) {
  .home-graphic-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .home-graphic-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-graphic-top > .work-overview {
    grid-column: auto;
  }
}
@media (max-width: 480px) {
  .home-graphic-top > .work-overview {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-graphic-top .completion-orbit {
    grid-row: 1;
  }
}
.work-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px 30px;
  margin-bottom: 22px;
  border: 1px solid #cee3f3;
  border-radius: 24px;
  background: linear-gradient(110deg, #e7f3ff 0%, #f2f9ff 68%, #eaf7f5 100%);
}
.work-overview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--visual-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--visual-grid) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, transparent 40%, black 100%);
}
.overview-copy {
  min-width: 0;
}
.overview-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  flex-wrap: wrap;
}
.overview-label > span {
  font-size: 11px;
  background: #ffffffb3;
  border: 1px solid #d5e8f4;
  padding: 3px 9px;
  border-radius: 99px;
  font-weight: 500;
}
.overview-copy h2 {
  font-size: 24px;
  line-height: 1.45;
  margin: 15px 0 8px;
  letter-spacing: -0.8px;
  overflow-wrap: anywhere;
}
.overview-copy p {
  font-size: 13px;
  color: var(--color-slate-gray);
  margin: 0 0 18px;
}
.overview-copy .actions {
  gap: 16px;
}
.overview-copy .actions button {
  font-size: 13px;
}
.completion-orbit {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 180px;
}
.orbit-grid {
  position: absolute;
  width: 290px;
  height: 210px;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  fill: none;
  stroke: #abcde0;
  stroke-width: 1;
  stroke-dasharray: 3 5;
  opacity: 0.65;
}
.orbit-grid circle {
  fill: var(--visual-blue);
  stroke: none;
}
.completion-ring {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #fafdffde;
  box-shadow: 0 4px 24px #5b9ac313;
}
.completion-ring > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 8;
  transform: rotate(-90deg);
}
.ring-track {
  stroke: #dfedf6;
}
.ring-value {
  stroke: var(--visual-blue);
  stroke-linecap: round;
}
.completion-ring > div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.completion-ring strong {
  font-size: 32px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.completion-ring strong small {
  font-size: 15px;
  margin-left: 2px;
}
.completion-ring span {
  font-size: 11px;
  margin-top: 8px;
  color: var(--color-slate-gray);
}
.completion-orbit p {
  font-size: 11px;
  margin: 8px 0 0;
  position: relative;
}
.research-flow {
  background: white;
  margin-bottom: 22px;
}
.flow-stages {
  display: grid;
  grid-template-columns: repeat(var(--stage-count), minmax(0, 1fr));
  position: relative;
  gap: 12px;
}
.flow-stages::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 39px;
  border-top: 2px dashed #d8e8f4;
}
.flow-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  min-width: 0;
}
.flow-stage:hover {
  border-color: #cde1f0;
  background: #f6fbff;
}
.stage-symbol {
  display: grid;
  place-items: center;
  position: relative;
  width: 56px;
  height: 56px;
  border: 6px solid white;
  border-radius: 18px;
  background: #e8f3fd;
  color: #5784a6;
  box-shadow: 0 0 0 1px #dceaf5;
  margin-bottom: 8px;
}
.flow-stage:nth-child(2) .stage-symbol {
  background: #eeedfa;
  color: #7d719b;
}
.flow-stage:nth-child(3) .stage-symbol {
  background: #e9f3fa;
  color: #517c9b;
}
.flow-stage:nth-child(4) .stage-symbol {
  background: #e5f4ef;
  color: #4f8278;
}
.flow-stage:nth-child(5) .stage-symbol {
  background: #fff1e6;
  color: #98745c;
}
.stage-symbol.is-complete {
  box-shadow: 0 0 0 2px var(--visual-mint);
}
.flow-stage:nth-child(6) .stage-symbol {
  background: #e4f2ed;
  color: #315f50;
}
.flow-stage > strong {
  font-size: 14px;
}
.flow-count {
  font-size: 18px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.flow-count small {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-slate-gray);
}
.flow-stage > .progress {
  display: block;
  width: 100%;
  max-width: 120px;
  height: 4px;
  margin-top: 9px;
}
.progress > span {
  transform-origin: left;
}
.visual-panel {
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}
.visual-panel .eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  margin-bottom: 5px;
}
.visual-panel .section-head {
  align-items: center;
  margin-bottom: 18px;
}
.visual-panel .section-head h2 {
  font-weight: 750;
  letter-spacing: -0.04em;
}
.chart-note {
  font-size: 11px;
  color: var(--color-slate-gray);
  margin: 12px 0 0;
}
.chart-switch {
  display: flex;
  padding: 3px;
  background: #eef5fb;
  border-radius: 10px;
  gap: 3px;
  flex: none;
}
.chart-switch button {
  padding: 5px 9px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  font-size: 11px;
}
.chart-switch button[aria-pressed="true"] {
  background: white;
  border-color: #d7e6f2;
  box-shadow: 0 2px 3px #739bc410;
}
.pulse-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}
.pulse-total strong {
  font-size: 28px;
  line-height: 1.2;
}
.pulse-total .muted {
  font-size: 11px;
}
.pulse-chart {
  height: 155px;
  gap: 12px;
  align-items: stretch;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 36px,
    #edf4fa 36px,
    #edf4fa 37px
  );
  padding-top: 8px;
}
.pulse-chart .bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3px;
  border: 0;
  background: none;
  border-radius: 8px;
  min-width: 0;
  position: relative;
}
.pulse-chart .bar-column:disabled {
  opacity: 1;
  cursor: default;
}
.pulse-chart .bar-column:not(:disabled):hover {
  background: #eaf4fbc2;
}
.pulse-chart .bar-column > strong {
  font-size: 11px;
  color: #496b87;
  font-weight: 600;
}
.pulse-chart .bar-track {
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: 34px;
  flex: 1;
  min-height: 0;
  background: transparent;
  border-radius: 7px;
  height: auto;
}
.pulse-chart .bar-track > span {
  display: block;
  width: 100%;
  background: #b9d6ef;
  border-radius: 6px 6px 2px 2px;
  transform-origin: bottom;
}
.pulse-chart .is-today .bar-track > span {
  background: #78afd8;
}
.pulse-chart .bar-column > small {
  font-size: 10px;
  white-space: nowrap;
  background: white;
  width: calc(100% + 6px);
  padding-top: 8px;
}
.pulse-chart .bar-column.is-today > small {
  color: #3c7299;
  font-weight: 700;
}
.agenda-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding-top: 16px;
}
.agenda-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 2px 10px;
  border-radius: 15px;
  border: 1px solid transparent;
  gap: 4px;
  background: #f5f9fd;
}
.agenda-day.is-today {
  background: #e2f0fc;
  border-color: #bcd9ed;
}
.agenda-day > span:first-child {
  font-size: 11px;
  color: var(--color-slate-gray);
}
.agenda-day > strong {
  font-size: 21px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.agenda-day > small {
  font-size: 10px;
}
.agenda-dots {
  display: flex;
  gap: 3px;
  height: 8px;
  align-items: center;
}
.agenda-key {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 19px;
  font-size: 10px;
  color: var(--color-slate-gray);
}
.agenda-key > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.event-dot,
.due-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #75a9d0;
  border-radius: 50%;
}
.due-dot {
  background: #9a8abd;
}
.deadline-scale {
  display: flex;
  justify-content: space-between;
  color: var(--color-slate-gray);
  font-size: 10px;
  margin-bottom: 8px;
}
.deadline-row {
  width: 100%;
  display: block;
  padding: 11px 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #edf3f8;
  background: none;
  text-align: left;
}
.deadline-row:hover {
  background: #f6fbff;
}
.deadline-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.deadline-label strong {
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.deadline-label small {
  font-size: 10px;
  flex: none;
  color: var(--color-slate-gray);
}
.deadline-label .overdue {
  color: #9b5551;
}
.deadline-track {
  display: block;
  position: relative;
  margin: 0 6px;
  height: 3px;
  background: linear-gradient(90deg, #d9eafb, #edf5fc);
  border-radius: 5px;
}
.deadline-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  height: 9px;
  border-left: 1px solid #d1e3ef;
}
.deadline-track i {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7cadcf;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px #e7f2fb;
}
.deadline-track i.is-late {
  background: #c79287;
  box-shadow: 0 0 0 4px #fcf0ed;
}
.graphic-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 180px;
  padding: 20px;
  color: var(--color-slate-gray);
}
.graphic-empty > .ui-icon {
  width: 42px;
  height: 42px;
  padding: 9px;
  box-sizing: content-box;
  border: 1px dashed #c7dfef;
  border-radius: 18px;
  background: #f1f8ff;
  color: #75a1bf;
  margin-bottom: 3px;
}
.graphic-empty strong {
  font-size: 13px;
  font-weight: 600;
}
.graphic-empty span {
  font-size: 11px;
  max-width: 230px;
}
.record-feed {
  padding: 0;
  margin: 0;
  list-style: none;
}
.record-feed > li:not(.graphic-empty) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.record-feed > li:not(:last-child):not(.graphic-empty)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 45px;
  bottom: -10px;
  border-left: 1px solid #e1edf5;
}
.record-symbol {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #edf5fc;
  border-radius: 12px;
  flex: none;
}
.record-symbol > .ui-icon {
  width: 18px;
  height: 18px;
  color: #6993b0;
}
.record-feed li > div {
  min-width: 0;
  width: 100%;
}
.record-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: var(--color-slate-gray);
}
.record-meta time {
  margin-left: auto;
  white-space: nowrap;
}
.record-feed .text-button {
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: anywhere;
}
.record-list {
  display: grid;
  gap: 8px;
}
.record-list > button {
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 12px;
  text-align: left;
}
.record-list > button > span {
  flex: 1;
  overflow-wrap: anywhere;
}
.record-list small {
  display: block;
  color: var(--color-slate-gray);
  font-size: 11px;
}
.agenda-list > div:not(.graphic-empty) {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.agenda-list small {
  display: block;
  font-size: 12px;
  color: var(--color-slate-gray);
}
.agenda-list button {
  border: 0;
  text-align: left;
  padding: 5px 0;
  background: transparent;
  border-radius: 0;
}
#auth-root {
  background-image:
    radial-gradient(ellipse at 5% 10%, #dfefff, transparent 50%),
    radial-gradient(ellipse at 95% 90%, #e6f4f0, transparent 45%),
    linear-gradient(#aacde314 1px, transparent 1px),
    linear-gradient(90deg, #aacde314 1px, transparent 1px);
  background-size:
    auto,
    auto,
    36px 36px,
    36px 36px;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html[data-motion="on"] .stat-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px #8bb1d116;
  }
  html[data-motion="on"] .project-card {
    transition:
      transform 0.2s,
      box-shadow 0.2s;
  }
  html[data-motion="on"] .project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 25px #8bb1d115;
  }
  html[data-motion="on"] .agenda-day:hover {
    transform: translateY(-2px);
  }
}
@media (max-width: 1150px) {
  .motion-toggle > span {
    display: none;
  }
  .motion-toggle {
    padding: 9px;
  }
  .work-overview {
    grid-template-columns: minmax(0, 1fr) 180px;
    padding: 22px;
    gap: 12px;
  }
  .overview-copy h2 {
    font-size: 21px;
  }
  .orbit-grid {
    width: 240px;
  }
  .flow-stage {
    padding: 10px 7px;
  }
  .flow-stages {
    gap: 4px;
  }
  .chart-switch button {
    padding: 5px 7px;
  }
  .pulse-chart {
    gap: 7px;
  }
}
@media (max-width: 760px) {
  .work-overview {
    grid-template-columns: minmax(0, 1fr) 145px;
  }
  .completion-ring {
    width: 125px;
    height: 125px;
  }
  .completion-ring strong {
    font-size: 28px;
  }
  .completion-orbit {
    min-height: 150px;
  }
  .orbit-grid {
    width: 210px;
    height: 180px;
  }
  .visual-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .stat-link {
    padding: 14px 18px;
  }
  .metric-value strong {
    font-size: 29px;
  }
  .flow-stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 10px;
  }
  .flow-stages::before {
    display: none;
  }
  .flow-stage {
    background: #f9fcff;
    border-color: #edf4fa;
  }
  .agenda-days {
    gap: 7px;
    padding-top: 5px;
  }
  .agenda-day {
    padding: 12px 3px;
  }
}
@media (max-width: 480px) {
  header {
    gap: 7px;
  }
  .search-wrap {
    padding: 6px 9px;
  }
  .motion-toggle {
    padding: 7px;
  }
  #header-avatar {
    display: none;
  }
  .work-overview {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 20px;
    gap: 10px;
  }
  .completion-orbit {
    min-height: 146px;
  }
  .completion-ring {
    width: 122px;
    height: 122px;
  }
  .orbit-grid {
    width: 290px;
    height: 170px;
    top: -14px;
  }
  .overview-label > span {
    font-size: 10px;
  }
  .overview-copy h2 {
    font-size: 21px;
  }
  .stats {
    gap: 10px;
  }
  .stat-head {
    font-size: 12px;
  }
  .metric-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }
  .metric-icon .ui-icon {
    width: 17px;
    height: 17px;
  }
  .stat-link .stat-foot {
    font-size: 10px;
  }
  .visual-panel {
    padding: 20px 16px;
  }
  .visual-panel .section-head h2 {
    font-size: 15px;
  }
  .flow-stages {
    gap: 8px;
  }
  .flow-stage > strong {
    font-size: 12px;
  }
  .flow-count {
    font-size: 16px;
  }
  .flow-count small {
    font-size: 10px;
  }
  .stage-symbol {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
  .agenda-days {
    gap: 4px;
  }
  .agenda-day {
    border-radius: 11px;
  }
  .agenda-day > strong {
    font-size: 19px;
  }
  .deadline-label {
    align-items: flex-start;
  }
  .deadline-label small {
    max-width: 110px;
    text-align: right;
  }
}
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .motion-toggle,
  .chart-switch {
    display: none !important;
  }
  .work-overview,
  .visual-panel {
    break-inside: avoid;
  }
  .visual-panel svg,
  .work-overview svg,
  .bar-track > span {
    print-color-adjust: exact;
  }
}
.instruction-filters {
  align-items: end;
  flex-wrap: wrap;
}
.instruction-filters select {
  max-width: 100%;
}
.instruction-filters .field {
  min-width: 160px;
  flex: 1;
  margin: 0;
}
.instruction-stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.instruction-stage {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: var(--color-paper-white);
  border: 1px solid var(--line);
  text-align: left;
}
.instruction-stage .stage-number {
  display: grid;
  place-items: center;
  background: #e2f0ff;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.instruction-stage:nth-child(2) .stage-number,
.instruction-stage:nth-child(5) .stage-number {
  background: #e2f2ed;
}
.instruction-stage:nth-child(3) .stage-number {
  background: #eeeafa;
}
.instruction-stage:nth-child(4) .stage-number {
  background: #fff0e2;
}
.instruction-stage.selected {
  border-color: var(--visual-blue);
  box-shadow: inset 0 0 0 1px var(--visual-blue);
}
.instruction-stage strong {
  font-size: 26px;
  line-height: 1;
}
.instruction-stage small {
  font-size: 13px;
  margin-left: 5px;
}
.instruction-stage:hover {
  background: #f1f8ff;
}
.instruction-inbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 16px 0 24px;
}
.instruction-inbox-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.instruction-inbox-title > svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.instruction-inbox h2 {
  font-size: 18px;
  margin: 0;
}
.instruction-inbox p {
  margin: 5px 0 0;
  font-size: 13px;
}
.instruction-inbox-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.instruction-inbox-actions strong {
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
}
.instruction-table th,
.instruction-table td {
  vertical-align: top;
}
.instruction-table th:first-child {
  width: 36%;
}
.instruction-table td:first-child button {
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
}
.instruction-detail-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
}
.instruction-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0;
  padding: 16px;
  background: #f1f8ff;
  border-radius: 16px;
  gap: 12px;
}
.instruction-facts dt {
  font-size: 12px;
  color: #50667d;
}
.instruction-facts dd {
  margin: 6px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.instruction-detail-actions {
  margin-top: 24px;
  flex-wrap: wrap;
}
.instruction-conversation {
  margin: 24px 0;
}
.instruction-history {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.instruction-history li {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 24px;
}
.instruction-history li:not(:last-child)::before {
  content: "";
  position: absolute;
  width: 2px;
  background: #dce7f0;
  top: 32px;
  bottom: 0;
  left: 15px;
}
.instruction-history-dot {
  display: grid;
  place-items: center;
  background: #e2f0ff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
}
.instruction-history-dot svg {
  width: 18px;
  height: 18px;
}
.instruction-history-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding-top: 5px;
}
.instruction-history-heading small {
  font-size: 12px;
  color: #50667d;
}
.instruction-history p {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}
.instruction-evidence {
  margin-top: 12px;
}
.instruction-evidence button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: normal;
  text-align: left;
}
@media (max-width: 900px) {
  .instruction-inbox {
    align-items: flex-start;
    flex-direction: column;
  }
  .instruction-stage {
    padding: 14px;
    font-size: 13px;
  }
}
@media (max-width: 600px) {
  .instruction-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .instruction-stage:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }
  .instruction-stage:last-child strong {
    margin-left: auto;
  }
  .instruction-facts {
    grid-template-columns: 1fr;
  }
  .instruction-filters .field {
    min-width: 100%;
  }
  .instruction-inbox-actions {
    width: 100%;
  }
  .instruction-inbox-actions button {
    flex: 1;
    white-space: nowrap;
  }
}
/* Learning library: folder navigation and responsive, click-to-open video cards. */
.learning-library { display:grid; grid-template-columns:240px minmax(0,1fr); gap:24px; align-items:start; }
.learning-folders { padding:18px; }
.learning-folder-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.learning-folder-heading h2 { font-size:18px; margin:0; }
.learning-folder { width:100%; display:flex; align-items:center; gap:10px; text-align:left; margin:6px 0; border-color:transparent; background:transparent; }
.learning-folder span:nth-child(2) { flex:1; overflow-wrap:anywhere; }
.learning-folder[aria-pressed="true"] { background:#e3f1fd; border-color:#b7d6f0; }
.learning-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.learning-card { padding:0; overflow:hidden; }
.learning-cover { border:0; border-radius:0; width:100%; aspect-ratio:16/9; background:linear-gradient(135deg,#e3f2ff,#e6f5f3); display:flex; flex-direction:column; gap:12px; align-items:center; justify-content:center; color:#345d7e; }
.learning-play { display:grid; place-items:center; width:56px; height:56px; background:#fff; border:1px solid #c8deef; border-radius:50%; font-size:22px; padding-left:3px; }
.learning-card-body { padding:20px; }
.learning-card h3 { margin:8px 0; overflow-wrap:anywhere; }
.learning-summary { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.learning-player { aspect-ratio:16/9; background:#edf5fb; border-radius:14px; overflow:hidden; }
.learning-player iframe { display:block; width:100%; height:100%; border:0; }
.learning-cover { position:relative; overflow:hidden; }
.learning-thumbnail { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.learning-play, .learning-cover-label { position:relative; z-index:1; }
.learning-cover-label { padding:4px 10px; border-radius:8px; background:rgba(255,255,255,.94); }
.learning-cover:hover .learning-play { background:#e3f1fd; }
.learning-grid > .empty { grid-column:1/-1; }
@media(max-width:1100px) { .learning-library { grid-template-columns:1fr; } }
@media(max-width:600px) { .learning-grid { grid-template-columns:1fr; } .learning-player { min-height:200px; } }

/* Personal delivery preferences share the existing dialog and pastel palette. */
.notification-settings-card { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.notification-settings-card h2 { margin:8px 0; }
.notification-settings-card p { margin:0; }
.notification-device-hero { padding:22px; border:1px solid #cfe2f3; border-radius:18px; background:#edf6ff; margin-bottom:24px; }
.notification-device-hero h3 { margin:12px 0 8px; }
.notification-device-hero p,.notification-device-hero small { line-height:1.7; }
.notification-device-hero small { display:block; margin-top:14px; color:#526d85; }
#notification-preferences fieldset { margin:0 0 22px; padding:16px 18px; border:1px solid #d8e5f0; border-radius:14px; }
#notification-preferences legend { padding:0 7px; font-weight:750; }
.notification-check { display:flex; align-items:center; flex-wrap:wrap; gap:10px; min-height:44px; font-weight:600; cursor:pointer; }
.notification-check input { width:18px; height:18px; accent-color:#397ea6; flex-shrink:0; }
.notification-check small { color:#607a8f; overflow-wrap:anywhere; }
.notification-devices,.notification-deliveries { margin-top:26px; }
.notification-device-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 0; border-bottom:1px solid #e2ebf3; }
.notification-device-row small { display:block; margin-top:5px; color:#607a8f; overflow-wrap:anywhere; }
.notification-deliveries summary { cursor:pointer; min-height:44px; font-weight:750; }
@media(max-width:600px) { .notification-settings-card { align-items:flex-start; flex-direction:column; }.notification-settings-card>button { width:100%; }.notification-device-hero { padding:18px; }.notification-device-row { align-items:flex-start; flex-wrap:wrap; } }
