﻿@charset "UTF-8";
:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #233149;
  background: #f4f6fa;
  font-size: 16px;
  --navy: #17243b;
  --blue: #2864e8;
  --muted: #627189;
  --line: #e2e7ef;
  --paper: #fff;
  --radius: 14px;
  --shadow: 0 10px 40px #1b2e4d0b;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.staff-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f4f7fd;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 24px;
}
.staff-profile .avatar {
  width: 52px;
  height: 52px;
  font-size: 1rem;
}
.staff-profile p {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 5px;
}
.staff-edit-section + .staff-edit-section {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}
.staff-edit-section h3 {
  margin-bottom: 16px;
}
.nav-scrim {
  display: none;
}
.main,
.panel,
.stack,
.dashboard-grid > *,
.accounting-metric,
.metric,
.global-search {
  min-width: 0;
}
.main {
  width: 100%;
}
@media (max-width: 700px) {
  .topbar .global-search {
    display: none;
  }
  .topbar-right {
    min-width: 0;
    margin-left: auto;
  }
  .topbar-right > .btn {
    flex-shrink: 0;
  }
  .page-heading,
  .welcome-banner {
    flex-wrap: wrap;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-value {
    overflow-wrap: anywhere;
  }
}
details.panel > summary,
.panel > details > summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
}
.panel > details + details {
  border-top: 1px solid var(--line);
}
.panel-body > .btn {
  margin: 8px 6px 0 0;
}
.panel-body > p + p {
  margin-top: 8px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #83aaff;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 1.9rem;
  letter-spacing: -1px;
  font-weight: 650;
  line-height: 1.25;
}
h2 {
  font-size: 1.1rem;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 1rem;
}
small,
.small {
  font-size: 0.82rem;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 700;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
  stroke-width: 1.7;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 500;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.boot {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.32rem;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.brand small {
  font-size: 0.65rem;
  letter-spacing: 1.4px;
  display: block;
  opacity: 0.55;
  font-weight: 500;
  margin-top: 3px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  background: var(--blue);
  color: white;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 1.5rem;
  font-weight: 750;
  flex-shrink: 0;
}
.shell {
  min-height: 100vh;
  padding-left: 244px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 40;
  padding: 31px 18px 20px;
}
.sidebar .brand {
  padding: 0 14px 30px;
}
.nav-section {
  padding: 18px 14px 10px;
  font-size: 0.67rem;
  color: #8f9db4;
  letter-spacing: 1.8px;
  font-weight: 650;
}
.nav-link {
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 46px;
  padding: 11px 15px;
  color: #bdc9dc;
  font-size: 0.9rem;
  border-radius: 8px;
  margin-bottom: 5px;
  transition: background 0.15s;
}
.nav-link:hover {
  background: #22334f;
  color: white;
}
.nav-link.active {
  color: white;
  background: #2b4266;
  box-shadow: inset 3px 0 #7ca6ff;
}
.nav-link .nav-count {
  margin-left: auto;
  font-size: 0.75rem;
  background: #ffffff10;
  border-radius: 5px;
  padding: 2px 7px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #ffffff16;
  padding-top: 18px;
}
.sidebar-bottom .workspace-note {
  padding: 14px;
  color: #8698b4;
  font-size: 0.76rem;
  line-height: 1.7;
}
.sidebar-bottom button {
  color: #bdc9dc;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 36px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.global-search {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 420px;
  flex: 1;
  color: #8090a7;
}
.global-search input {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  font-size: 0.88rem;
  padding: 12px 0;
}
.keycap {
  border: 1px solid var(--line);
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 0.7rem;
}
.topbar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.company-select {
  border: 0;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  color: #34435b;
  max-width: 210px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
}
.avatar {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  background: #eaf0fc;
  color: #365caa;
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.user-chip strong {
  display: block;
  font-size: 0.8rem;
}
.user-chip small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 3px;
}
.mobile-toggle {
  display: none;
}
.main {
  padding: 34px 36px 28px;
  max-width: 1640px;
  margin: auto;
  min-height: calc(100vh - 82px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 9px;
}
.page-heading .eyebrow {
  color: #758198;
  margin-bottom: 9px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 10px 15px;
  min-height: 42px;
  border: 1px solid var(--line);
  background: white;
  color: #33435b;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.btn:hover {
  background: #f3f6fc;
  border-color: #c6d3e7;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 3px 5px #2864e819;
}
.btn.primary:hover {
  background: #1e53c9;
}
.btn.subtle {
  border-color: transparent;
  background: transparent;
  color: var(--blue);
  padding: 7px 9px;
  min-height: 34px;
}
.btn.danger {
  color: #b23e48;
  border-color: #f0d4d8;
  background: #fff8f8;
}
.btn.small {
  padding: 7px 11px;
  min-height: 34px;
  font-size: 0.78rem;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  color: #758198;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  cursor: pointer;
}
.icon-btn:hover {
  background: #edf2fc;
  color: var(--blue);
}
.icon-btn.selected {
  color: #c79427;
  background: #fff8e6;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 5px #1b2e4d02;
  overflow: hidden;
}
.panel-head {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf0f5;
}
.panel-head p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}
.panel-body {
  padding: 24px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 23px;
}
.metric {
  padding: 21px 23px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  gap: 8px;
}
.metric-icon {
  background: #eef3fe;
  color: #5f82c5;
  border-radius: 9px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
}
.metric-value {
  font-size: 2rem;
  letter-spacing: -1px;
  line-height: 1.3;
  margin: 10px 0 9px;
  font-weight: 650;
}
.metric-note {
  font-size: 0.76rem;
  color: var(--muted);
}
.metric-note .positive {
  color: #21866e;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr);
  gap: 23px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 23px;
}
.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 25px;
  margin-bottom: 24px;
  background: #eaf0fd;
  border: 1px solid #dae5fc;
  border-radius: 12px;
}
.welcome-banner h2 {
  font-size: 1rem;
  color: #244f9b;
  margin-bottom: 7px;
}
.welcome-banner p {
  font-size: 0.84rem;
  color: #5372a1;
  line-height: 1.65;
}
.welcome-symbol {
  color: #4272c9;
  border: 1px solid #c9d9f9;
  border-radius: 12px;
  padding: 13px;
  flex-shrink: 0;
}
.welcome-symbol .icon {
  width: 30px;
  height: 30px;
}
.date-label {
  font-size: 0.81rem;
  color: var(--muted);
  display: flex;
  gap: 9px;
  align-items: center;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}
thead {
  background: #fafbfe;
  color: #78859b;
  font-size: 0.7rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 600;
}
th {
  font-weight: 600;
  padding: 14px 20px;
  white-space: nowrap;
}
td {
  padding: 16px 20px;
  border-top: 1px solid #edf0f5;
  vertical-align: middle;
}
tbody tr:hover {
  background: #fbfcff;
}
td strong {
  font-weight: 600;
}
td .sub {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
}
.record-cell {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 200px;
}
.record-thumb {
  width: 52px;
  height: 48px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
  background: #eff3fa;
  color: #92a7c9;
  display: grid;
  place-items: center;
}
.record-thumb .icon {
  width: 25px;
  height: 25px;
}
.record-link {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font: inherit;
  color: #273955;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.45;
}
.record-link:hover {
  color: var(--blue);
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 5px;
  background: #f0f3f8;
  color: #65758a;
  white-space: nowrap;
}
.badge.blue {
  background: #edf3ff;
  color: #3d6bc2;
}
.badge.green {
  background: #e9f6f0;
  color: #2c8866;
}
.badge.amber {
  background: #fff5df;
  color: #a37a24;
}
.badge.red {
  background: #ffedf0;
  color: #b84d60;
}
.badge.purple {
  background: #f1edfc;
  color: #8463bc;
}
.money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
}
.table-footer {
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.search-field {
  position: relative;
  min-width: 220px;
  flex: 1;
  max-width: 420px;
}
.search-field > .icon {
  position: absolute;
  top: 12px;
  left: 13px;
  color: #8291a8;
}
.search-field input {
  padding-left: 42px;
}
.control {
  border: 1px solid #dce3ed;
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: #33435b;
  min-height: 42px;
  width: 100%;
  font-size: 0.88rem;
}
.control::placeholder {
  color: #95a0b2;
}
.control:hover {
  border-color: #bdcbe0;
}
.control:focus {
  border-color: #7fa6f6;
}
select.control {
  min-width: 140px;
  max-width: 240px;
}
.toolbar .control {
  font-size: 0.82rem;
}
.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 21px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.tab {
  padding: 12px 14px 14px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #718096;
  font-size: 0.84rem;
  font-weight: 550;
  margin-bottom: -2px;
}
.tab:hover {
  color: var(--blue);
}
.tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.tab small {
  margin-left: 8px;
  background: #edf1f7;
  padding: 2px 6px;
  border-radius: 5px;
  color: #64748b;
}
.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  gap: 3px;
  background: #f8fafd;
}
.segmented button {
  padding: 8px 12px;
  border: 0;
  background: none;
  border-radius: 5px;
  font-size: 0.8rem;
  color: var(--muted);
}
.segmented .active {
  background: white;
  color: var(--blue);
  box-shadow: 0 1px 4px #243b5314;
}
.filter-panel {
  margin-bottom: 20px;
}
.filter-panel summary {
  padding: 13px 17px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #52637e;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 5px 18px 20px;
}
.filter-grid label {
  display: grid;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--muted);
}
.filter-grid select.control {
  max-width: none;
}
.check-label {
  display: flex !important;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
}
.check-label input {
  accent-color: var(--blue);
  width: 17px;
  height: 17px;
}
.empty {
  padding: 48px 22px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
}
.empty .icon {
  width: 32px;
  height: 32px;
  color: #94a8c9;
}
.empty h3 {
  color: #384d6b;
}
.empty p {
  font-size: 0.88rem;
  max-width: 440px;
  line-height: 1.65;
}
.task-row {
  padding: 17px 23px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border-bottom: 1px solid #edf0f5;
}
.task-row:last-child {
  border: 0;
}
.task-check {
  margin-top: 1px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  border: 1.5px solid #c9d5e7;
  border-radius: 6px;
  background: white;
  color: white;
}
.task-check.done {
  background: #428c79;
  border-color: #428c79;
}
.task-check .icon {
  width: 14px;
  height: 14px;
}
.task-main {
  min-width: 0;
  flex: 1;
}
.task-main strong {
  font-size: 0.84rem;
  line-height: 1.5;
  font-weight: 600;
}
.task-main p {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
  margin-top: 6px;
}
.task-main .completed {
  text-decoration: line-through;
  color: #8c99ac;
}
.task-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 9px;
}
.task-time {
  color: #9b6e35;
  background: #fff5e6;
  font-size: 0.7rem;
  padding: 4px 7px;
  border-radius: 5px;
}
.task-time.overdue {
  color: #b75760;
  background: #fff0f1;
}
.pipeline {
  padding: 22px 24px;
  display: grid;
  gap: 19px;
}
.pipeline-row {
  display: grid;
  grid-template-columns: 98px 1fr 30px;
  align-items: center;
  gap: 13px;
  font-size: 0.8rem;
  color: #627189;
}
.bar-track {
  height: 8px;
  border-radius: 6px;
  background: #f0f3f9;
  overflow: hidden;
}
.bar {
  height: 100%;
  background: #7098e7;
  border-radius: 6px;
}
.bar.warm {
  background: #dbb775;
}
.bar.green {
  background: #76b8a4;
}
.pipeline-row strong {
  color: #384f73;
  text-align: right;
}
.progress {
  width: 100%;
  height: 8px;
  appearance: none;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
}
.progress::-webkit-progress-bar {
  background: #edf1f8;
}
.progress::-webkit-progress-value {
  background: #7b9fe7;
  border-radius: 6px;
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quick-link {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 11px;
  padding: 17px;
  text-align: left;
  align-items: center;
  color: #4e6282;
  font-size: 0.83rem;
}
.quick-link:hover {
  border-color: #95b5f4;
  color: var(--blue);
}
.quick-link .icon {
  color: #7698d0;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #8b98ac;
  font-size: 0.72rem;
  margin-top: 27px;
}
.split-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
}
.selector-list {
  max-height: 570px;
  overflow: auto;
}
.selector-item {
  display: block;
  width: 100%;
  padding: 18px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  text-align: left;
  color: #33435b;
}
.selector-item.selected {
  background: #edf3ff;
  box-shadow: inset 3px 0 var(--blue);
}
.selector-item strong {
  font-size: 0.85rem;
  display: block;
}
.selector-item small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
  font-size: 0.75rem;
}
.match-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.match-score {
  display: grid;
  align-content: center;
  justify-items: center;
  flex-shrink: 0;
  background: #edf6f1;
  border: 1px solid #deeee4;
  border-radius: 12px;
  width: 70px;
  height: 76px;
  color: #348168;
}
.match-score strong {
  font-size: 1.7rem;
}
.match-score small {
  font-size: 0.66rem;
}
.match-info {
  flex: 1;
  min-width: 0;
}
.match-info h3 {
  line-height: 1.5;
}
.reasons {
  margin: 15px 0;
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}
.reasons li {
  display: flex;
  gap: 8px;
  align-items: start;
}
.reasons .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #619b87;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 23px;
}
.day {
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.76rem;
}
.day strong {
  display: block;
  font-size: 1.4rem;
  margin: 8px 0;
  color: #354863;
}
.day.today {
  background: #edf3ff;
  border-color: #afc7f7;
}
.day.today strong {
  color: var(--blue);
}
.day.selected {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.day small {
  font-size: 0.66rem;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.info-row {
  border-bottom: 1px solid #edf0f5;
  padding-bottom: 14px;
}
.info-row dt {
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 7px;
}
.info-row dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}
.notice {
  padding: 14px 17px;
  background: #eef3fc;
  color: #4b6592;
  font-size: 0.84rem;
  line-height: 1.65;
  border-radius: 8px;
  margin-bottom: 18px;
}
.notice.warning {
  background: #fff6e6;
  color: #95733b;
}
.notice.error {
  background: #fff0f0;
  color: #b14b54;
}
.form-error:empty {
  display: none;
}
.form-error {
  color: #a33448;
  background: #fff0f3;
  padding: 12px;
  border-radius: 7px;
  font-size: 0.84rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px;
}
.settings-grid .panel-body > p {
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 20px;
}
dialog {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 16px;
  width: min(760px, calc(100vw - 32px));
  max-height: 90dvh;
  box-shadow: 0 30px 100px #0b193938;
  color: #233149;
  background: white;
}
dialog::backdrop {
  background: #15243b70;
  backdrop-filter: blur(3px);
}
.dialog-head {
  padding: 23px 27px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.dialog-head h2 {
  font-size: 1.25rem;
}
.dialog-head p {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 7px;
}
.dialog-body {
  padding: 25px 27px;
}
.dialog-footer {
  padding: 17px 27px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 2;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.team-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.6fr);
  align-items: start;
  gap: 20px;
  margin-bottom: 24px;
}
.team-member-list {
  display: grid;
  padding: 8px;
}
.team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.team-member:hover,
.team-member.selected {
  background: #edf3ff;
}
.team-member span:last-child {
  min-width: 0;
}
.team-member strong,
.team-member small {
  display: block;
}
.team-member small {
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}
.team-departments {
  display: grid;
  gap: 12px;
}
.team-departments > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.team-departments > div span {
  color: var(--muted);
  margin-right: auto;
}
@media (max-width: 800px) {
  .team-layout {
    grid-template-columns: 1fr;
  }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 550;
  color: #4c5c75;
}
.form-field .control {
  max-width: none;
  font-weight: 400;
}
.choice-picker {
  gap: 0;
  position: relative;
}
.choice-picker[open] {
  z-index: 4;
}
.choice-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
}
.choice-picker summary::-webkit-details-marker {
  display: none;
}
.choice-picker summary::after {
  content: "⌄";
  font-size: 1.25rem;
  line-height: 1;
}
.choice-picker[open] summary {
  border-radius: 9px 9px 0 0;
}
.choice-count {
  color: var(--muted);
  font-weight: 400;
  margin-left: auto;
  white-space: nowrap;
}
.choice-options {
  display: grid;
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 9px 9px;
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 16px 36px #17243b22;
}
.form-field textarea {
  resize: vertical;
  min-height: 94px;
}
.form-field.wide,
.form-grid .wide {
  grid-column: 1/-1;
}
.form-field small {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 400;
  line-height: 1.5;
}
.required {
  color: var(--blue);
}
.form-section {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.form-section summary {
  cursor: pointer;
  padding: 17px 20px;
  font-size: 0.86rem;
  font-weight: 600;
  background: #fafbfe;
  color: #4f6380;
}
.form-section .form-grid {
  padding: 20px;
}
.detail-price {
  font-size: 1.8rem;
  font-weight: 650;
  letter-spacing: -0.6px;
  margin: 15px 0 23px;
}
dialog[data-gallery] {
  width: min(1100px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
}
.photo-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.photo-collage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px;
}
.photo-tile { margin: 0; min-width: 0; }
.photo-tile figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; }
.photo-preview { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.photo-preview img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-viewer { display: flex; justify-content: center; background: #111827; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.photo-viewer img { display: block; max-width: 100%; width: auto; height: min(62vh, 720px); object-fit: contain; }
.detail-photo {
  height: 240px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.detail-copy {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-wrap;
  margin: 20px 0;
  overflow-wrap: anywhere;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}
#toasts {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 200;
  max-width: 400px;
  display: grid;
  gap: 10px;
}
.toast {
  background: #21344f;
  color: white;
  border-radius: 10px;
  box-shadow: 0 8px 30px #20304930;
  padding: 15px 20px;
  font-size: 0.87rem;
  line-height: 1.6;
  display: flex;
  gap: 12px;
  align-items: start;
}
.toast.error {
  background: #933d50;
}
.loading {
  padding: 60px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.loading::before {
  content: "";
  display: block;
  width: 25px;
  height: 25px;
  border: 2px solid #d4e0f6;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.auth-story {
  background: var(--navy);
  color: white;
  padding: 55px 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-story h1 {
  font-size: 3.1rem;
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin: 60px 0 22px;
  font-weight: 550;
}
.auth-story h1 span {
  color: #8db3ff;
}
.auth-story p {
  color: #9cacc4;
  font-size: 0.96rem;
  line-height: 1.85;
  max-width: 420px;
}
.auth-story footer {
  color: #8293af;
  font-size: 0.77rem;
  margin-top: 50px;
}
.auth-art {
  margin: 35px 0 10px;
  padding: 23px;
  background: #ffffff06;
  border: 1px solid #ffffff13;
  border-radius: 15px;
  max-width: 420px;
  transform: rotate(-3deg);
}
.auth-art-head {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 20px;
}
.auth-art-head i {
  width: 6px;
  height: 6px;
  background: #667b9b;
  border-radius: 50%;
}
.auth-art-head span {
  margin-left: 8px;
  color: #bdcce2;
  font-size: 0.68rem;
}
.auth-art-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}
.auth-art-card {
  background: #ffffff09;
  padding: 15px 10px;
  border-radius: 8px;
}
.auth-art-card .icon {
  color: #91b5f8;
}
.auth-art-card b {
  display: block;
  width: 65%;
  height: 7px;
  background: #6c82a2;
  border-radius: 5px;
  margin: 18px 0 10px;
}
.auth-art-card i {
  display: block;
  width: 90%;
  height: 4px;
  background: #455a78;
  border-radius: 3px;
}
.auth-art-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 17px;
  padding: 10px 0;
}
.auth-art-row .icon {
  color: #82bca9;
}
.auth-art-row span {
  height: 6px;
  width: 60%;
  background: #4a6080;
  border-radius: 3px;
}
.auth-art-row b {
  color: #8dbda9;
  font-size: 0.68rem;
  font-weight: 500;
  margin-left: auto;
}
.auth-form-area {
  display: grid;
  place-content: center;
  padding: 55px 14%;
  position: relative;
}
.auth-form-area h2 {
  font-size: 1.8rem;
  letter-spacing: -0.7px;
}
.auth-form-area > .muted {
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 13px 0 30px;
}
.auth-form-area form {
  width: 100%;
  min-width: 320px;
}
.auth-form-area .form-field {
  margin-bottom: 19px;
}
.auth-form-area .btn.primary {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
}
.auth-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8a98ad;
  font-size: 0.74rem;
  margin-top: 45px;
}
.auth-form-area .brand {
  display: none;
}
.password-wrap {
  position: relative;
}
.password-wrap .control {
  padding-right: 47px;
}
.password-wrap .icon-btn {
  position: absolute;
  right: 5px;
  top: 4px;
}
.results-group {
  padding: 20px;
}
.results-group h3 {
  margin: 0 0 15px;
  font-size: 0.8rem;
  color: var(--muted);
}
.results-group button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: white;
  width: 100%;
  text-align: left;
  padding: 13px;
  color: #33435b;
  border-radius: 7px;
}
.results-group button:hover {
  background: #f0f4fc;
}
.hidden,
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .main {
    padding: 42px 46px;
  }
  .topbar {
    padding: 0 46px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(330px, 1fr);
  }
}
@media (max-width: 1200px) {
  .shell {
    padding-left: 215px;
  }
  .sidebar {
    width: 215px;
    padding-inline: 12px;
  }
  .main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metric {
    padding: 18px;
  }
  .metrics {
    gap: 12px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  }
  .user-chip .user-text {
    display: none;
  }
  .company-select {
    max-width: 165px;
  }
  .record-thumb {
    width: 42px;
    height: 42px;
  }
  .dashboard-grid th,
  .dashboard-grid td {
    padding-inline: 15px;
  }
  .quick-links {
    grid-template-columns: 1fr;
  }
  .auth-story h1 {
    font-size: 2.5rem;
  }
  .auth-form-area {
    padding: 45px 10%;
  }
}
@media (max-width: 1000px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid > .stack {
    grid-template-columns: 1fr 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-links {
    grid-template-columns: repeat(3, 1fr);
  }
  .split-layout {
    grid-template-columns: 250px 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .auth {
    grid-template-columns: 0.85fr 1fr;
  }
  .auth-story {
    padding: 40px 10%;
  }
  .auth-form-area {
    padding: 40px 8%;
  }
  .auth-form-area form {
    min-width: 280px;
  }
}
@media (max-width: 760px) {
  h1 {
    font-size: 1.65rem;
  }
  .shell {
    padding-left: 0;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 250px;
    box-shadow: 10px 0 80px #17243b30;
  }
  .shell.nav-open .sidebar {
    transform: none;
  }
  .nav-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: #17243b66;
    border: 0;
    z-index: 35;
  }
  .shell.nav-open .nav-scrim {
    display: block;
  }
  .topbar {
    height: 66px;
    padding: 0 18px;
    gap: 14px;
  }
  .mobile-toggle {
    display: inline-grid;
  }
  .topbar-right {
    gap: 10px;
  }
  .company-select {
    max-width: 130px;
    font-size: 0.75rem;
  }
  .global-search {
    max-width: none;
  }
  .global-search input {
    font-size: 0.8rem;
  }
  .keycap {
    display: none;
  }
  .global-search > .icon {
    display: none;
  }
  .main {
    padding: 25px 18px;
  }
  .page-heading {
    gap: 15px;
    align-items: flex-start;
  }
  .page-heading .actions {
    justify-content: flex-end;
  }
  .date-label {
    display: none;
  }
  .page-heading p {
    font-size: 0.82rem;
  }
  .page-heading .btn {
    font-size: 0.77rem;
    padding: 9px 11px;
  }
  .metrics {
    gap: 12px;
    margin-bottom: 18px;
  }
  .metric-value {
    font-size: 1.8rem;
  }
  .metric {
    padding: 17px;
  }
  .metric-top {
    font-size: 0.77rem;
  }
  .metric-icon {
    width: 30px;
    height: 30px;
  }
  .metric-icon .icon {
    width: 17px;
    height: 17px;
  }
  .metric-note {
    font-size: 0.7rem;
  }
  .welcome-banner {
    padding: 18px;
  }
  .welcome-symbol {
    display: none;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .dashboard-grid > .stack {
    grid-template-columns: 1fr;
  }
  .panel-head {
    padding: 18px;
  }
  .panel-body {
    padding: 18px;
  }
  .quick-links {
    gap: 9px;
  }
  .quick-link {
    padding: 13px 9px;
    font-size: 0.73rem;
    flex-direction: column;
    text-align: center;
  }
  .footer {
    font-size: 0.66rem;
  }
  .toolbar {
    gap: 10px;
  }
  .search-field {
    max-width: none;
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
  }
  .toolbar select.control {
    flex: 1;
    min-width: 110px;
    max-width: none;
  }
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tabs {
    overflow: auto;
    flex-wrap: nowrap;
    gap: 0;
  }
  .tab {
    font-size: 0.78rem;
    padding-inline: 12px;
    white-space: nowrap;
  }
  .split-layout {
    grid-template-columns: 1fr;
  }
  .selector-list {
    max-height: 240px;
  }
  .selector-item {
    padding: 14px 18px;
  }
  .week-strip {
    gap: 5px;
  }
  .day {
    padding: 13px 4px;
    font-size: 0.66rem;
  }
  .day strong {
    font-size: 1.1rem;
  }
  .day small {
    font-size: 0.6rem;
  }
  .task-row {
    padding: 17px;
  }
  .form-grid {
    gap: 16px;
  }
  .dialog-head {
    padding: 20px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-footer {
    padding: 15px 20px;
  }
  .auth {
    display: block;
  }
  .auth-story {
    display: none;
  }
  .auth-form-area {
    padding: 38px 24px;
    min-height: 100dvh;
    max-width: 490px;
    margin: auto;
  }
  .auth-form-area .brand {
    display: flex;
    margin-bottom: 50px;
    color: var(--navy);
  }
  .auth-form-area form {
    min-width: 0;
  }
  .auth-form-area h2 {
    font-size: 1.7rem;
  }
  .auth-trust {
    margin-top: 30px;
  }
  .match-card {
    padding: 18px;
    gap: 14px;
  }
  .match-score {
    width: 57px;
    height: 66px;
  }
  .match-score strong {
    font-size: 1.4rem;
  }
  .info-grid {
    gap: 15px;
  }
  #toasts {
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: none;
  }
}
@media (max-width: 420px) {
  .company-select {
    max-width: 95px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field.wide {
    grid-column: auto;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .metric-icon {
    display: none;
  }
  .welcome-banner .btn {
    font-size: 0.72rem;
  }
  .record-cell {
    min-width: 175px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .page-heading > .actions {
    width: 100%;
    justify-content: flex-start;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .quick-link {
    font-size: 0.7rem;
  }
  .day small {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.topbar > .icon-btn {
  display: none;
}
.panel + .panel {
  margin-top: 23px;
}
.panel-body > .check-label {
  margin: 12px 0;
}
.auth .form-error {
  max-width: 420px;
}
@media (max-width: 760px) {
  .topbar > .icon-btn {
    display: inline-grid;
    flex-shrink: 0;
  }
}

.detail-video {
  width: 100%;
  max-height: 420px;
}
.accounting-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.accounting-metric {
  background: var(--surface, white);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 20px;
}
.accounting-metric span,
.accounting-context span {
  display: block;
  color: var(--muted, #64748b);
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.accounting-metric strong {
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}
.accounting-cell-note {
  display: block;
  margin-top: 5px;
  color: var(--muted, #64748b);
}
.accounting-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.accounting-context strong {
  overflow-wrap: anywhere;
}
.accounting-check {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 10px;
  margin: 18px 0;
}
.accounting-check.complete {
  background: #eaf6ef;
  color: #166534;
}
.accounting-check.pending {
  background: #fff7e6;
  color: #854d0e;
}
.accounting-warnings {
  padding-left: 22px;
  line-height: 1.7;
}
.accounting-rules {
  margin-top: 24px;
}
.accounting-rules > summary {
  cursor: pointer;
  padding: 20px;
  font-weight: 600;
}
@media (max-width: 1000px) {
  .accounting-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .accounting-metrics,
  .accounting-context {
    grid-template-columns: 1fr;
  }
}
.janitor-notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 180px;
  max-width: 420px;
}
