:root {
  font-family:
    Inter,
    Segoe UI,
    system-ui,
    sans-serif;
  color: #182f3b;
  background: #f3f6f8;
  font-size: 16px;
  --nav: #102b36;
  --accent: #0b775f;
  --muted: #627681;
  --line: #dce5ea;
  --paper: #fff;
  --shadow: 0 5px 25px #122b3610;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 13px;
  background: #fff;
  color: #233f4b;
  cursor: pointer;
  line-height: 1.4;
}
button:hover {
  background: #eaf4f0;
  border-color: #9cc9b8;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary,
.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
button.danger {
  color: #a13734;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
input,
select,
textarea {
  border: 1px solid #c9d6dd;
  background: white;
  border-radius: 6px;
  padding: 10px 11px;
  color: #1a333f;
  width: 100%;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
input[type="range"] {
  padding: 0;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
label {
  display: grid;
  gap: 7px;
  font-size: 0.875rem;
  color: #405b68;
}
label.check {
  display: flex;
  align-items: center;
  gap: 9px;
}
small,
.muted {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
h1 {
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  margin: 4px 0 8px;
  font-weight: 650;
}
h2 {
  font-size: 1.15rem;
  margin: 0 0 16px;
  font-weight: 650;
}
h3 {
  font-size: 1rem;
  margin: 0 0 10px;
}
p {
  line-height: 1.55;
  margin: 8px 0 16px;
}
#sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 242px;
  background: var(--nav);
  color: #c2d6de;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 28px 22px 30px;
  color: white;
  font-size: 1.1rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.brand-icon {
  display: grid;
  place-items: center;
  background: #b3e9d7;
  color: #143d38;
  min-width: 33px;
  height: 38px;
  font-size: 1.7rem;
  border-radius: 5px;
}
.side-caption {
  padding: 0 22px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  color: #80a3b2;
}
nav {
  padding: 0 12px;
  overflow-y: auto;
}
nav a {
  display: flex;
  gap: 13px;
  padding: 10px 13px;
  margin: 2px 0;
  border-radius: 6px;
  color: #bcd0d9;
  font-size: 0.9rem;
}
nav a.active {
  background: #28505b;
  color: #d4ffed;
  box-shadow: inset 3px 0 #75dbb7;
}
nav a:hover {
  background: #214650;
  text-decoration: none;
}
nav .icon {
  width: 21px;
  text-align: center;
  opacity: 0.9;
}
.side-footer {
  padding: 24px 22px;
  margin-top: auto;
  border-top: 1px solid #29434e;
  display: grid;
  gap: 6px;
}
.side-footer small {
  font-size: 0.75rem;
  color: #85a3b0;
}
.local-label {
  font-size: 0.8rem;
  color: #b6cfda;
}
#workspace {
  margin-left: 242px;
}
header {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 35px;
  position: sticky;
  top: 0;
  z-index: 10;
}
#global-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  flex: 1;
}
#global-search input {
  border: 0;
  background: transparent;
}
#global-search span {
  font-size: 1.6rem;
  color: #5a747e;
}
kbd {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 5px;
  font-size: 0.75rem;
  color: #82949c;
}
#menu {
  display: none;
}
main {
  max-width: 1700px;
  margin: auto;
  padding: 30px 35px 60px;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  font-weight: 650;
  color: #5f7c88;
  text-transform: uppercase;
}
.heading-actions,
.toolbar,
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar {
  margin-bottom: 18px;
}
.toolbar input {
  flex: 1;
  min-width: 170px;
}
.toolbar select {
  width: auto;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 23px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-head h2 {
  margin: 0;
}
.grid {
  display: grid;
  gap: 20px;
}
.grid.two {
  grid-template-columns: 1fr 1fr;
}
.grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.grid.four {
  grid-template-columns: repeat(4, 1fr);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr);
  gap: 22px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
}
.stat span {
  font-size: 0.85rem;
  color: #617b87;
  display: block;
}
.stat strong {
  display: block;
  font-size: 1.75rem;
  margin: 12px 0 10px;
  letter-spacing: -0.035em;
  font-weight: 650;
}
.stat small {
  font-size: 0.75rem;
}
.stat.featured {
  background: #173d45;
  color: white;
  border-color: #173d45;
}
.stat.featured span,
.stat.featured small {
  color: #b7d4d8;
}
.stat.featured strong {
  color: #c3f6dc;
}
.action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid #eaf0f3;
}
.action-row:last-child {
  border: 0;
}
.action-row .body {
  flex: 1;
}
.action-row .number {
  font-size: 1.2rem;
  font-weight: 650;
  width: 35px;
  color: #0d7a61;
}
.action-row strong {
  font-size: 0.95rem;
}
.action-row p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  background: #edf2f5;
  color: #4b6876;
  white-space: nowrap;
}
.badge.green {
  background: #dff4e8;
  color: #16734e;
}
.badge.amber {
  background: #fff0d7;
  color: #96631e;
}
.badge.red {
  background: #fbe7e6;
  color: #a6423c;
}
.badge.blue {
  background: #e4eefb;
  color: #3c66a0;
}
.empty {
  text-align: center;
  padding: 35px 18px;
  color: #69808c;
}
.empty .symbol {
  display: block;
  font-size: 2rem;
  color: #94b6ba;
  margin-bottom: 12px;
}
.empty h3 {
  color: #2b4e5b;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}
th {
  color: #65808d;
  font-weight: 550;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  background: #f7fafb;
  white-space: nowrap;
}
td,
th {
  padding: 13px 15px;
  border-bottom: 1px solid #e7edf0;
}
td {
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tr:hover td {
  background: #fbfdfd;
}
.table-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}
.thumb {
  width: 36px;
  height: 49px;
  object-fit: contain;
  background: #edf2f5;
  border-radius: 3px;
}
.table-card strong {
  display: block;
  font-weight: 600;
}
.table-card small {
  font-size: 0.75rem;
}
.mono {
  font-family: Consolas, monospace;
  font-size: 0.8rem;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}
.notice {
  padding: 14px 16px;
  border-radius: 7px;
  background: #e9f4f0;
  border: 1px solid #c9e5d8;
  margin: 15px 0;
  font-size: 0.875rem;
  line-height: 1.5;
}
.notice.warning {
  background: #fff6e7;
  border-color: #edd9b5;
  color: #805825;
}
.notice.error {
  background: #fbe8e8;
  color: #9b3131;
  border-color: #e5bebe;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-grid .half {
  grid-column: span 2;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
  overflow: auto;
}
.tabs a,
.tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 13px 18px;
  white-space: nowrap;
  color: #69818d;
  font-size: 0.875rem;
}
.tabs .active {
  border-bottom: 3px solid var(--accent);
  color: var(--accent);
  font-weight: 650;
}
.card-top {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
}
.card-photo {
  max-width: 100%;
  height: 230px;
  object-fit: contain;
  display: block;
  margin: auto;
}
.photo-placeholder {
  height: 220px;
  background: #eef4f6;
  border: 1px dashed #b8ced8;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #839ba6;
}
.location {
  font-size: 1rem;
  color: #2b6466;
  background: #e7f3ef;
  padding: 10px 13px;
  border-radius: 6px;
  display: inline-block;
  margin: 10px 0;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.price-grid > div {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
}
.price-grid small {
  font-size: 0.75rem;
  display: block;
}
.price-grid strong {
  font-size: 1.3rem;
  display: block;
  margin-top: 8px;
}
.history-item {
  border-left: 2px solid #d2e4df;
  padding: 0 0 20px 19px;
  margin-left: 7px;
}
.history-item strong {
  display: block;
}
.history-item small {
  font-size: 0.75rem;
}
.history-item details {
  margin-top: 6px;
}
.history-item pre {
  white-space: pre-wrap;
  max-height: 200px;
  overflow: auto;
  font-size: 0.75rem;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
}
.photo-tile {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
}
.photo-tile img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}
.photo-tile .row {
  margin-top: 10px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
details > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
}
dialog {
  border: 0;
  border-radius: 12px;
  padding: 0;
  max-width: 850px;
  width: calc(100% - 32px);
  max-height: 90vh;
  box-shadow: 0 20px 100px #102a3660;
  color: inherit;
}
dialog::backdrop {
  background: #0a253a80;
  backdrop-filter: blur(2px);
}
#dialog-content {
  padding: 26px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-head h2 {
  margin: 0;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 450px;
  padding: 14px 20px;
  border-radius: 8px;
  background: #143f3a;
  color: white;
  z-index: 80;
  box-shadow: var(--shadow);
  display: none;
}
#toast.show {
  display: block;
}
#toast.error {
  background: #8c3535;
}
.onboard {
  max-width: 900px;
  margin: 25px auto;
}
.onboard .panel {
  padding: 35px;
}
.onboard h1 {
  margin: 10px 0 20px;
}
.step-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 15px 0 25px;
  color: #71908d;
  font-size: 0.85rem;
}
.step-strip span {
  padding: 8px 11px;
  background: #e5f2ed;
  border-radius: 5px;
}
video {
  max-width: 100%;
  width: 100%;
  background: #12313c;
  max-height: 380px;
  border-radius: 8px;
}
.chart {
  height: 180px;
  width: 100%;
  overflow: visible;
}
.chart text {
  font: 12px system-ui;
  fill: #657e89;
}
.live {
  background: #102f3b;
  color: #ecf7fa;
  padding: 30px;
  border-radius: 12px;
}
.live h2 {
  font-size: 2rem;
}
.live .muted {
  color: #a4c5d2;
}
.live .price-grid > div {
  border-color: #466773;
}
.live .price-grid strong {
  color: #c4f7dc;
}
.checklist {
  display: grid;
  gap: 12px;
}
.bar {
  height: 8px;
  background: #ebf1f4;
  border-radius: 4px;
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  background: #339c7b;
}
.studio-frame {
  width: 100%;
  height: 82vh;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.tight {
  margin: 0;
}
.right {
  text-align: right;
}
.nowrap {
  white-space: nowrap;
}
.block {
  display: block;
}
.spacer {
  margin-top: 20px;
}
.selected-note {
  color: #087456;
  font-size: 0.85rem;
}
.heat {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.heat > div {
  padding: 16px;
  border-radius: 7px;
  background: #edf2f5;
}
.heat strong {
  display: block;
  font-size: 1.5rem;
  margin-top: 7px;
}
#print-area {
  display: none;
}
:focus-visible {
  outline: 3px solid #48b68e;
  outline-offset: 3px;
}
@media (max-width: 1150px) {
  #sidebar {
    width: 210px;
  }
  #workspace {
    margin-left: 210px;
  }
  main {
    padding: 25px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  header {
    padding: 0 25px;
  }
  .heat {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  #sidebar {
    transform: translateX(-100%);
    width: 240px;
    transition: transform 0.2s;
  }
  body.menu-open #sidebar {
    transform: none;
  }
  #workspace {
    margin: 0;
  }
  #menu {
    display: block;
  }
  header {
    padding: 0 12px;
    gap: 8px;
    height: 68px;
  }
  header > .primary {
    font-size: 0.8rem;
    padding: 8px;
  }
  kbd {
    display: none;
  }
  main {
    padding: 20px 15px;
  }
  .page-heading {
    flex-direction: column;
  }
  .form-grid,
  .grid.two,
  .grid.three,
  .grid.four,
  .split {
    grid-template-columns: 1fr;
  }
  .form-grid .half {
    grid-column: auto;
  }
  .card-top {
    grid-template-columns: 1fr;
  }
  .card-photo {
    height: 200px;
  }
  .panel {
    padding: 17px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 1.4rem;
  }
  .onboard .panel {
    padding: 22px;
  }
  .heat {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media print {
  body > * {
    display: none !important;
  }
  #print-area {
    display: block !important;
    color: #000;
    background: #fff;
  }
  #print-area img {
    width: 120px;
  }
  #print-area table {
    font-size: 11pt;
  }
  #print-area .label {
    display: inline-block;
    width: 240px;
    padding: 14px;
    border: 1px solid #aaa;
    margin: 10px;
    break-inside: avoid;
  }
  #print-area .label img {
    display: block;
    margin: auto;
  }
  #print-area h1 {
    font-size: 20pt;
  }
}
.photo-intake-previews {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.photo-intake-previews img {
  width: 180px;
  height: 250px;
  object-fit: contain;
  background: #101c29;
  border-radius: 8px;
}
.photo-transcript {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
