:root {
  --pine: #182b25;
  --ink: #1f2c27;
  --muted: #53675e;
  --line: #cbd3cb;
  --paper: #f8f8f3;
  --lime: #d5f777;
  --soil: #e9ece2;
  --red: #923b29;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans:
    "DM Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--pine);
  border-radius: 6px;
  background: var(--pine);
  color: #fff;
  font-weight: 650;
  padding: 0.67rem 1rem;
  line-height: 1.2;
}
button:hover,
.button:hover {
  filter: brightness(1.15);
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button.secondary,
.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
button.danger {
  border-color: #e4b9ac;
  color: var(--red);
  background: #fff9f6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #42734f;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -10000px;
}
.skip:focus {
  left: 0;
  top: 0;
  z-index: 5;
  background: #fff;
  padding: 0.5rem;
}
.top {
  height: 76px;
  padding: 0 max(4vw, calc((100vw - 1350px) / 2));
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 50px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 26px;
  letter-spacing: -1.6px;
  font-weight: 780;
  line-height: 1;
}
.brand span {
  white-space: nowrap;
}
.brand small {
  font-size: 11px;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-left: 7px;
}
.brand i {
  position: relative;
  background: var(--pine);
  border-radius: 7px;
  width: 32px;
  height: 32px;
  display: block;
  overflow: hidden;
}
.brand i:before,
.brand i:after {
  content: "";
  display: block;
  background: var(--lime);
  position: absolute;
  width: 15px;
  height: 17px;
  transform: skewY(-27deg);
  top: 10px;
  left: 4px;
}
.brand i:after {
  left: 15px;
  top: 4px;
  background: #91b275;
}
nav {
  display: flex;
  gap: clamp(9px, 2vw, 32px);
  align-items: center;
  height: 100%;
}
nav a {
  text-decoration: none;
  height: 100%;
  display: grid;
  align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  padding-top: 3px;
}
nav a[aria-current] {
  border-color: var(--pine);
  color: var(--ink);
  font-weight: 700;
}
.account {
  margin-left: auto;
  white-space: nowrap;
}
.wrap,
footer {
  width: min(92%, 1350px);
  margin: auto;
}
.hero {
  margin: 24px auto 0;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  background:
    linear-gradient(
      90deg,
      rgba(10, 24, 19, 0.91),
      rgba(11, 19, 15, 0.56) 42%,
      rgba(0, 0, 0, 0.03) 80%
    ),
    url("/set.jpg") center 51% / cover;
  border-radius: 12px;
  color: white;
  padding: clamp(24px, 4vw, 58px);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.hero h1 {
  font-size: clamp(40px, 5.35vw, 80px);
  letter-spacing: -0.06em;
  line-height: 1.01;
  margin: 0 0 24px;
  font-weight: 620;
  max-width: 11ch;
}
.hero .hero-action {
  font-size: 0.95rem;
  color: var(--lime);
  font-weight: 680;
  text-decoration: none;
  border-bottom: 1px solid #b5cf85;
  padding-bottom: 3px;
}
section.page {
  padding: clamp(28px, 4vw, 62px) 0 40px;
}
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.section-header h1,
.section-header h2 {
  font-size: clamp(28px, 3vw, 43px);
  letter-spacing: -0.05em;
  font-weight: 640;
  line-height: 1.15;
  margin: 0;
}
.section-header p,
.subtle {
  color: var(--muted);
}
.section-header p {
  margin: 6px 0 0;
}
.filters,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.filters {
  background: #eceee6;
  border: 1px solid #d8dfd3;
  padding: 15px;
  border-radius: 8px;
  grid-template-columns: minmax(140px, 1.6fr) repeat(4, minmax(115px, 1fr)) auto;
  align-items: end;
  margin-bottom: 20px;
}
.filters label,
.form-grid label,
label.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 650;
}
.filters input,
.filters select,
.field input,
.field textarea,
.field select,
.form-grid input,
.form-grid select,
.form-grid textarea,
dialog input,
dialog select,
dialog textarea,
#main textarea {
  font-size: 1rem;
  font-weight: 400;
  background: #fff;
  border: 1px solid #aebcb1;
  border-radius: 5px;
  padding: 0.63rem 0.72rem;
  min-width: 0;
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 76px;
}
.filters input,
.filters select {
  padding: 0.57rem 0.65rem;
}
.wide {
  grid-column: 1/-1;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
  gap: 15px;
}
.card,
.panel,
.record {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.card {
  padding: 21px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card h3,
.record h3 {
  font-size: 1.34rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
}
.card p,
.record p {
  margin: 0;
}
.kicker,
.meta {
  font: 650 0.74rem/1.5 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.kicker {
  text-transform: uppercase;
}
.card .price-row {
  margin-top: auto;
  border-top: 1px solid #e1e6df;
  padding-top: 14px;
}
.price-row,
.row,
.actions,
.tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.price-row,
.spread {
  justify-content: space-between;
}
.price-row strong {
  font-size: 1.14rem;
}
.subtle,
.muted {
  color: var(--muted);
}
.small,
small {
  font-size: 0.85rem;
}
.chip {
  display: inline-flex;
  border-radius: 100px;
  padding: 0.21rem 0.65rem;
  background: var(--soil);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.4;
}
.tag {
  background: #dcf4ac;
}
.panel,
.record {
  padding: clamp(15px, 2.3vw, 29px);
  margin-bottom: 12px;
}
.panel h2,
.record h2 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.stack {
  display: grid;
  gap: 13px;
}
.record .actions {
  margin-top: 14px;
}
.record details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 12px;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
.empty {
  background: var(--soil);
  padding: 28px;
  border-radius: 8px;
  color: #41584c;
}
.error {
  background: #fff0eb;
  color: #852b16;
  padding: 0.6rem 0.8rem;
  border-radius: 5px;
  margin: 0.6rem 0;
  overflow-wrap: anywhere;
}
.error:empty {
  display: none;
}
.tabs {
  margin: 0 0 20px;
  gap: 6px;
}
.tabs button[aria-pressed="true"] {
  background: var(--pine);
  color: #fff;
}
.tabs button {
  padding: 0.45rem 0.75rem;
}
.inline {
  display: inline;
}
.totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  background: var(--soil);
  padding: 15px;
  border-radius: 6px;
}
.totals strong {
  display: block;
  font-size: 1.3rem;
}
.rule {
  margin: 15px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.actions button {
  font-size: 0.9rem;
}
.ledger {
  padding-left: 1.3rem;
}
.ledger li {
  margin: 5px 0;
}
footer {
  padding: 20px 0 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
footer strong {
  color: var(--ink);
  font-size: 1rem;
}
footer small {
  font-size: 0.66rem;
}
.account-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(235px, 1fr);
  gap: 16px;
}
#main {
  min-height: calc(100vh - 158px);
}
#toast {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: var(--pine);
  border-radius: 6px;
  color: white;
  z-index: 4;
  font-size: 0.92rem;
  box-shadow: 0 2px 14px #17271a22;
}
#toast:not(:empty) {
  padding: 12px 19px;
}
dialog {
  max-width: min(590px, 94vw);
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 0;
  max-height: 90dvh;
  background: #fff;
}
dialog::backdrop {
  background: #10211dd0;
}
.dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 23px;
  border-bottom: 1px solid var(--line);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}
.dialog-bar button {
  padding: 0.08rem 0.5rem;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 1.6rem;
}
.dialog-bar + div {
  padding: 20px 23px;
}
.dialog-actions {
  margin-top: 16px;
}
.form-grid label small {
  font-weight: 400;
  color: var(--muted);
}
.timeline li {
  padding: 0.15rem 0;
  overflow-wrap: anywhere;
}
.card,
.record,
.panel {
  overflow-wrap: anywhere;
}
.count {
  font: 600 0.82rem var(--mono);
  color: var(--muted);
}
#main:focus {
  outline: none;
}
@media (max-width: 1000px) {
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero {
    min-height: 260px;
  }
}
@media (max-width: 760px) {
  .top {
    height: auto;
    min-height: 63px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    padding: 13px 4% 0;
  }
  .brand {
    font-size: 23px;
  }
  .brand i {
    height: 29px;
    width: 29px;
  }
  .account {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.83rem;
  }
  nav {
    grid-column: 1/-1;
    grid-row: 2;
    justify-content: space-between;
    gap: 8px;
    padding-top: 5px;
    height: 45px;
  }
  nav a {
    font-size: 0.82rem;
  }
  .hero {
    min-height: 215px;
    margin-top: 14px;
    background-position: 62% center;
  }
  .hero h1 {
    font-size: 43px;
  }
  .account-panel {
    grid-template-columns: 1fr;
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-header {
    align-items: start;
  }
  .section-header button {
    font-size: 0.83rem;
  }
  .card {
    padding: 16px;
  }
  .cards {
    gap: 10px;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  footer {
    align-items: start;
  }
  .hero-action {
    font-size: 0.83rem !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .card,
  .account,
  .button,
  button {
    transition: filter 0.12s ease;
  }
}
.network-filters {
  grid-template-columns: minmax(170px, 2fr) minmax(120px, 1fr);
}
@media (max-width: 490px) {
  nav {
    overflow: auto;
    justify-content: space-between;
    gap: 9px;
  }
  nav a {
    font-size: 0.77rem;
    white-space: nowrap;
  }
  .network-filters {
    grid-template-columns: 1fr;
  }
}
.quote {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soil);
}
.quote dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 15px;
  margin: 8px 0;
}
.quote dt {
  color: var(--muted);
}
.quote dd {
  text-align: right;
  margin: 0;
  font-weight: 650;
}
.quote p {
  margin: 8px 0 0;
}
#set-board h1 {
  font-size: clamp(28px, 3vw, 43px);
  letter-spacing: -0.05em;
  line-height: 1.15;
}
.card button.favorite {
  font-size: 0.78rem;
  border: none;
  padding: 0.25rem 0;
  color: var(--muted);
  flex-basis: 100%;
  text-align: left;
}
@media (max-width: 460px) {
  .section-header {
    align-items: center;
    gap: 8px;
  }
  .section-header h2 {
    font-size: clamp(23px, 6.4vw, 28px);
  }
  .section-header button {
    flex-shrink: 0;
    padding: 8px;
    font-size: 0.78rem;
  }
  nav {
    overflow-x: auto;
  }
}

body[data-mode="base"] .pro-only { display:none }
.mode-switch { margin-left:auto; display:inline-flex; background:#e9ede5; border:1px solid var(--line); padding:3px; border-radius:24px; flex:none }
.mode-switch button { background:none; color:var(--ink); border:0; border-radius:18px; padding:6px 12px; font-size:.82rem }
.mode-switch button[aria-pressed="true"] { background:var(--pine); color:white }
.top .account { margin-left:0; max-width:19ch; overflow:hidden; text-overflow:ellipsis }
#filters { grid-template-columns:minmax(10rem,1.6fr) minmax(9rem,1fr) minmax(10rem,1.8fr) auto }
#more-filters summary, .importer summary { cursor:pointer; font-weight:650; padding:.45rem 0 }
.extra-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5rem }
#more-filters:not([open]) { align-self:center }
.importer { margin:0 0 1rem }
.importer h2 { margin-top:0 }
.importer label { min-width:0 }
.importer .import-scroll { max-height:22rem; overflow:auto; margin:1rem 0 }
.importer table { width:100%; border-collapse:collapse }
.importer th,.importer td { text-align:left; padding:.45rem; border-bottom:1px solid var(--line); vertical-align:top }
.importer details { margin:.6rem 0 }
.importer .actions { margin-top:.7rem }
.importer .form-grid input,.importer .form-grid select { max-width:100% }
@media(max-width:1000px) {
  .top { column-gap:10px }
  #filters {grid-template-columns:repeat(2,minmax(0,1fr))}
  #more-filters[open] {grid-column:1/-1}
}
@media(max-width:760px) {
  .top {grid-template-columns:minmax(0,1fr) auto auto}
  .mode-switch {grid-row:1;grid-column:2}
  .top .account {grid-column:3;max-width:none;padding:8px 10px}
  .mode-switch button {padding:5px 8px}
  .extra-filters {grid-template-columns:minmax(0,1fr)}
}

.importer [hidden]{display:none!important}
.importer [data-pane]{margin:.9rem 0}
.importer [data-pane] label,.importer [data-photos-controls] label{max-width:100%}
.inventory-gallery{display:flex;gap:.65rem;overflow-x:auto;margin:.8rem 0}
.inventory-gallery img{height:115px;max-width:210px;object-fit:contain;border:1px solid var(--line);border-radius:6px;background:#fff}
.import-proposals,.importer [data-table]{grid-column:1/-1}
.import-proposals label{display:flex;align-items:baseline;gap:.5rem;margin:.5rem 0}
.import-proposals input{width:auto}
.catalog-cover{width:100%;height:150px;object-fit:contain;margin-bottom:10px;border-radius:6px;background:#f4f4ee}

.ss-photo{margin:0 0 .6rem}
.ss-photo figcaption{font-size:.78rem;line-height:1.6}
.ss-photo figcaption span{display:inline-block;background:#eff3ed;padding:.1rem .48rem;border-radius:.35rem;color:#264335}
.ss-photo figcaption a{text-decoration:underline}
.reputation{margin:.65rem 0}
.reputation article{border-top:1px solid var(--line);padding:.6rem 0}
.long-description{white-space:pre-wrap;overflow-wrap:anywhere}

.stage-note {padding:.45rem 4vw;background:#203c33;color:#fff;font-size:.85rem;text-align:center}
.kit-check {grid-column:1/-1;min-width:0;border:1px solid var(--line);border-radius:.65rem;padding:1rem}
.kit-check legend {font-weight:700;padding:0 .3rem}.kit-check label {display:grid;gap:.35rem}
.kit-check video {display:block;max-width:100%;max-height:200px}.kit-check button {margin:.4rem .4rem 0 0}
[data-hour-fields][hidden] {display:none!important}
@media(max-width:600px){.top nav {overflow-x:auto;justify-content:flex-start;gap:1rem}.top nav a {flex:none}.actions button,dialog button {min-height:42px} .kit-check {padding:.65rem} .record {overflow-wrap:anywhere}}

.capture-stamp{display:inline-block;margin:0 .4rem .3rem 0;padding:.25rem .5rem;border-radius:.4rem;background:#e1f1d4;color:#193b25;font-weight:700;text-decoration:underline}
@media(max-width:370px){.brand small{display:none}}

.pick-offer,.compare-bar,.crew-actions{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
.pick-offer{margin-top:.8rem;font-size:.88rem;cursor:pointer;width:fit-content}
.pick-offer input,.network-filters .crew-shortlist input{width:1.1rem;height:1.1rem;min-height:0;accent-color:var(--pine)}
.compare-bar{margin:0 0 1rem;padding:.75rem 1rem;background:#ecf1e5;border-radius:8px}
.compare-table{overflow-x:auto;max-width:100%}
.compare-table table{border-collapse:collapse;width:100%;font-size:.9rem}
.compare-table th,.compare-table td{padding:.65rem;text-align:left;vertical-align:top;min-width:7rem;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.compare-table thead{background:#ecf1e5}
.network-filters,.call-filters{grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr))}
.network-filters .crew-shortlist{display:flex;flex-direction:row;align-items:center;gap:.5rem;min-height:42px}
.call-filters{margin-top:1rem}
.call-card[hidden],.call-filters [hidden]{display:none}

.public-sheet {max-width:48rem;margin-inline:auto}
.public-sheet h1 {overflow-wrap:anywhere}
.empty-cover {display:grid;place-items:center;color:var(--muted);font-size:.85rem}

.offer-calendar {max-width:32rem;margin:1.35rem 0;padding:clamp(.6rem,2vw,1rem);border:1px solid var(--line);border-radius:8px;background:#fff}
.offer-calendar h2 {margin:.1rem 0 .7rem;font-size:1.2rem}
.month-nav,.month-key,.month-actions {display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
.month-nav {justify-content:space-between;margin-bottom:.6rem}
.month-nav strong {text-transform:capitalize}
.month-nav button {min-width:2.6rem;font-size:1.18rem;padding:.3rem .6rem}
.month-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.month-grid>span {font-size:.7rem;font-weight:650}
.month-grid button {min-width:0;min-height:44px;display:grid;place-content:center;gap:.1rem;padding:.22rem .05rem;line-height:1;background:#eef5ec;border-color:#d4e0d1}
.month-grid small {font-size:.65rem}
.month-grid [data-state=partial] {background:#fff1ce;border-color:#bfa367}
.month-grid [data-state=busy],.month-grid [data-state=hold] {background:#f1e4df;border-color:#cfb3a7}
.month-grid [data-state=past] {background:transparent;cursor:default}
.month-grid button[aria-pressed=true] {outline:2px solid var(--pine);outline-offset:-2px}
.month-key {font-size:.78rem;margin:.55rem 0 .85rem;gap:.85rem}
.month-actions {margin-top:.4rem}
.month-actions button {min-height:40px;padding:.4rem .6rem}
.offer-calendar [role=status] {margin:.45rem 0 0;font-size:.85rem}

.light-specs {margin:.8rem 0 1rem}
.light-specs>div {display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:1rem;padding:.45rem 0;border-bottom:1px solid var(--line);align-items:baseline}
.light-specs dt {color:var(--muted)}
.light-specs dd {margin:0;font-weight:600;overflow-wrap:anywhere}
.light-table-wrap {max-width:100%;overflow-x:auto}
.light-table {width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.light-table caption {text-align:left;font-weight:700;padding:.35rem 0}
.light-table th,.light-table td {text-align:left;vertical-align:top;padding:.45rem;border-bottom:1px solid var(--line)}
.light-table th {background:var(--paper);font-size:.85rem}
@media(max-width:600px){.light-specs>div{gap:.55rem}.light-table td,.light-table th{padding:.35rem .25rem;font-size:.85rem;overflow-wrap:anywhere}}

.inventory-gallery .gallery-photo {background:transparent;color:var(--ink);padding:0;border:0;text-align:left}
.gallery-photo img {display:block}
.gallery-photo span {display:block;font-size:.85rem;text-decoration:underline;margin:.25rem 0}
.photo-viewer {max-width:min(52rem,94vw)}
.photo-viewer h2 {font-size:1.15rem;margin:0;overflow-wrap:anywhere}
.photo-viewer .photo-controls {display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;padding:.65rem 1rem}
.photo-controls button {border:1px solid var(--line);background:white;color:var(--ink)}
.photo-controls button[aria-pressed=true] {background:var(--ink);color:white}
.photo-controls [hidden] {display:none}
.photo-frame {height:min(55dvh,32rem);overflow:auto;overscroll-behavior:contain;background:#eeefec}
.photo-frame img {display:block;width:100%;height:100%;object-fit:contain;max-width:none}
.photo-frame.enlarged img {width:200%;height:200%}
.photo-viewer [role=status],.photo-provenance {margin:.65rem 1rem;font-size:.88rem}
