:root {
  color-scheme: light;
  --ink: #16343b;
  --muted: #526666;
  --teal: #087d80;
  --paper: #faf9f5;
  --rail: #efeee7;
  --line: #c5c9be;
  --blue: #185e9f;
  --sand: #f6eeda;
  --amber: #805b1a;
  font: 16px/1.48 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper)
}

.op-shell {
  grid-template-columns: clamp(150px, 15vw, 220px) minmax(0, 1fr);
}
.operator-rail {
  background: var(--rail);
  border-right: 1px solid var(--line);
  padding: 32px 12px;
}
.operator-rail nav { display: grid; align-content: start; gap: 4px; }
.operator-rail a {
  padding: 11px 14px;
  border: 0;
  border-radius: 2px;
}
.operator-rail a[aria-current=page] { background: var(--ink); color: var(--paper); }
.op-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 14px; }
.op-head h1 { margin: 0; }
.op-head label { min-width: 10em; }
.op-metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  margin: 24px 0; border-block: 1px solid var(--ink);
}
.op-metrics > div { padding: 12px 14px; border-right: 1px solid var(--line); min-width: 0; }
.op-metrics > div:last-child { border-right: 0; }
.op-metrics dt { color: var(--muted); font-size: .86rem; }
.op-metrics dd {
  margin: 2px 0; color: var(--teal); overflow-wrap: anywhere;
  font: 500 clamp(20px,2.1vw,34px)/1.2 Constantia, Georgia, serif; font-variant-numeric: tabular-nums;
}
.op-shell small { display: block; color: var(--muted); font-size: .78rem; font-weight: normal; }
.op-connections { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: 18px; align-items: start; }
.op-panel { border: 1px solid var(--line); padding: clamp(14px,1.6vw,24px); min-width: 0; }
.op-col-label, .op-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.op-col-label { border-block: 1px solid var(--line); padding: 7px 10px; font-size: .8rem; color: var(--muted); }
button.op-choice { width: 100%; padding: 12px 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; text-align: left; }
.op-choice span:last-child { font-size: .78rem; font-weight: 500; }
button.op-choice[aria-pressed=true] { background: #e0ede8; box-shadow: inset 3px 0 var(--teal); }
.op-panel [hidden] { display: none; }
.op-panel .fields { gap: 9px; }
.op-panel .fields label:not(.check) { grid-template-columns: minmax(7rem,.65fr) minmax(0,1.35fr); align-items: center; }
.op-panel .fields :is(input,textarea,select) { min-width: 0; }
.op-panel .fields > small { margin-top: -6px; }
.op-panel textarea { min-height: 56px; }
.op-release { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.op-release [role=status] { margin: 8px 0; color: var(--muted); }
.op-live { color: var(--teal); overflow-wrap: anywhere; }
.op-report { margin-top: 28px; }
.op-tabs { display: flex; flex-wrap: wrap; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.op-tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); padding: 8px 0; border-radius: 0; }
.op-tabs button[aria-pressed=true] { border-color: var(--teal); color: var(--ink); }
.op-table-scroll { max-width: 100%; overflow-x: auto; }
.op-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.op-table :is(th,td) { text-align: right; padding: 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.op-table :is(th,td):first-child { text-align: left; }
.op-table thead { background: var(--rail); }
.op-foot { margin-top: 10px; }
@media (max-width: 900px) {
  .op-connections { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .operator-rail { border-right: 0; border-bottom: 1px solid var(--line); padding: 6px 12px; }
  .operator-rail nav { display: flex; gap: 3px; flex-wrap: wrap; }
  .operator-rail a { padding: 9px; font-size: .85rem; }
  .op-metrics { grid-template-columns: 1fr 1fr; }
  .op-metrics > div:nth-child(even) { border-right: 0; }
  .op-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .op-table :is(th,td) { padding: 6px; font-size: .84rem; }
  .op-panel .fields label:not(.check) { grid-template-columns: 1fr; }
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

a {
  color: var(--blue);
  text-underline-offset: .2em
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #217edf;
  outline-offset: 3px
}

.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  background: white;
  padding: 8px;
  z-index: 5
}

.skip:focus {
  top: 8px
}

a.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 750;
  font-size: 25px;
  letter-spacing: -.05em;
  min-width: 195px
}

.brand img {
  display: block;
  flex: none;
}

header {
  display: flex;
  align-items: center;
  padding: 0 2.2vw;
  gap: 26px;
  border-bottom: 1px solid var(--ink);
  min-height: 64px
}

nav {
  display: flex;
  align-items: center;
  gap: 27px;
  flex-wrap: wrap
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .94rem;
  padding: 20px 1px 17px;
  border-bottom: 3px solid transparent
}

nav a.active {
  color: var(--teal);
  font-weight: 650;
  border-color: var(--teal)
}

.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .85rem
}

.account select {
  min-width: 0;
  width: auto
}

.shell {
  display: grid;
  grid-template-columns: clamp(182px, 16vw, 244px) minmax(0, 1fr);
  min-height: calc(100vh - 65px)
}

.rail {
  padding: 42px 23px;
  background: var(--rail);
  border-right: 1px solid var(--line);
  overflow-wrap: anywhere
}

.rail h2 {
  margin: .45em 0 .1em;
  font-size: 2rem
}

.rail img {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
  margin: 24px 0 0
}

.rail hr {
  margin: 24px 0
}

.rail p {
  margin: 6px 0
}

.kicker,
figcaption,
.ref {
  font: 12px/1.6 Consolas, 'Courier New', monospace;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: var(--muted)
}

main {
  padding: clamp(20px, 3vw, 54px);
  max-width: 1700px;
  width: 100%;
  margin: 0 auto
}

h1,
h2,
h3,
.price,
.display {
  font-family: Constantia, Georgia, serif;
  font-weight: 400;
  line-height: 1.12
}

h1 {
  font-size: clamp(36px, 4.2vw, 66px);
  margin: .3em 0 .4em;
  letter-spacing: -.035em
}

h2 {
  font-size: clamp(24px, 2.1vw, 33px);
  margin: 0 0 17px
}

h3 {
  font-size: 23px;
  margin: 12px 0
}

.price {
  font-size: clamp(28px, 3.2vw, 50px);
  white-space: nowrap
}

p {
  margin: 8px 0 15px
}

.muted {
  color: var(--muted)
}

.head,
.between,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap
}

.actions {
  justify-content: flex-start
}

.rule,
section.sheet,
details.sheet {
  border-top: 1px solid var(--ink);
  padding: 21px 0;
  margin-top: 22px
}

hr {
  border: none;
  border-top: 1px solid var(--line)
}

.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px
}

.stack {
  display: grid;
  gap: 12px
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: .88rem;
  margin: 14px 0
}

.tabs a {
  text-decoration: none;
  color: var(--muted);
  padding: 4px 0
}

.tabs a.active {
  color: var(--teal);
  box-shadow: 0 2px var(--teal);
  font-weight: 650
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  border: 1px solid var(--teal);
  border-radius: 2px;
  background: var(--teal);
  color: white;
  padding: 11px 15px;
  font: 650 .9rem/1.25 'Segoe UI', sans-serif;
  min-height: 42px;
  text-decoration: none;
  cursor: pointer
}

.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line)
}

.link {
  background: none;
  color: var(--teal);
  border: 0;
  padding: 5px 0;
  min-height: auto
}

.btn:hover,
button:hover {
  filter: brightness(.91)
}

button:disabled {
  opacity: .55;
  cursor: wait
}

form {
  margin: 0
}

.fields {
  display: grid;
  gap: 13px;
  align-content: start
}

label {
  display: grid;
  gap: 5px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted)
}

input,
textarea,
select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-color: var(--muted);
  border-radius: 2px;
  color: var(--ink);
  font: inherit;
  padding: 10px 11px
}

textarea {
  min-height: 90px;
  resize: vertical
}

input[type=checkbox],
input[type=radio] {
  width: 17px;
  height: 17px;
  accent-color: var(--teal)
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: var(--ink)
}

.compact {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap
}

.compact label {
  min-width: 105px;
  flex: 1
}

.list {
  border-top: 1px solid var(--ink)
}

.line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 14px 4px;
  overflow-wrap: anywhere
}

.line a {
  font-weight: 600
}

.note {
  border-left: 3px solid var(--teal);
  padding: 8px 13px;
  background: #e8efeb
}

.warn {
  border-left-color: var(--amber);
  background: var(--sand)
}

.err {
  color: #932f2d
}

.tablewrap {
  overflow-x: auto
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: .96rem
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 11px;
  border-bottom: 1px solid var(--line)
}

th {
  font-weight: 650
}

tr.warnrow {
  background: var(--sand);
  color: var(--amber)
}

.offerTable {
  min-width: 520px;
  table-layout: fixed
}

.offerTable th:first-child {
  width: 29%
}

.offerTable th {
  padding-top: 18px
}

.offerTable .moneyrow td {
  padding-top: 8px;
  padding-bottom: 24px
}

.award {
  background: var(--ink);
  color: white;
  padding: 19px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 25px 0
}

.award .kicker {
  color: #bed3d1
}

.award strong {
  font-size: 1.15rem
}

.award h3 {
  margin: 4px 0
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.chip {
  display: inline-block;
  background: #e5efed;
  padding: 2px 8px;
  font-size: .82rem;
  color: #145c58
}

.plain {
  white-space: pre-wrap;
  overflow-wrap: anywhere
}

.photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.photos img {
  width: 95px;
  height: 73px;
  object-fit: cover
}

.entry {
  max-width: 1080px;
  margin: 5vh auto
}

.entry>.cols {
  gap: 7vw
}

.entry h1 {
  font-size: clamp(44px, 6vw, 78px)
}

.entry .sheet {
  margin: 16px 0
}

.small {
  font-size: .85rem
}

.danger {
  color: #a03939
}

.flow {
  max-width: 720px
}

.empty {
  color: var(--muted);
  padding: 15px 0
}

.message {
  border-bottom: 1px solid var(--line);
  padding: 8px 0
}

.message p {
  margin: 4px 0
}

.subtle {
  font-weight: 400;
  color: var(--muted)
}

.review {
  max-width: 850px
}

.review h2 {
  margin-top: 7px
}

.demo {
  border: 1px solid var(--line);
  font-size: .8rem
}

#notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(430px, 90vw);
  z-index: 10;
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  box-shadow: 0 4px 15px #16343b29
}

#notice:empty {
  display: none
}

summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 600
}

details[open]>summary {
  margin-bottom: 13px
}

.offerrow {
  border-left: 2px solid var(--line);
  padding: 9px 14px;
  display: grid;
  gap: 8px
}

.timechart {
  width: 100%;
  max-width: 650px;
  height: auto
}

.tools {
  margin: 16px 0
}

.highlight {
  color: var(--teal)
}

.mobile-case {
  display: none
}

@media(max-width:890px) {
  header {
    flex-wrap: wrap;
    gap: 0 18px;
    padding: 12px 18px 0
  }

  .account {
    order: 1
  }

  header nav {
    width: 100%;
    order: 2;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto
  }

  nav a {
    padding: 10px 0
  }

  .shell {
    grid-template-columns: 165px minmax(0, 1fr)
  }

  .rail {
    padding: 23px 14px
  }

  .cols {
    grid-template-columns: 1fr;
    gap: 10px
  }

  a.brand {
    min-width: 0
  }

  .offerTable {
    min-width: 460px
  }
}

@media(max-width:650px) {
  header {
    padding: 9px 15px 0
  }

  .shell {
    display: block
  }

  .rail {
    display: none
  }

  .mobile-case {
    display: block
  }

  .account .username {
    display: none
  }

  main {
    padding: 20px 16px 42px
  }

  .entry {
    margin: 18px auto
  }

  .award {
    padding: 14px
  }

  .award button {
    width: 100%
  }

  .tabs {
    gap: 7px 12px
  }

  .tablewrap {
    margin: 0 -4px
  }

  .line {
    align-items: flex-start
  }

  .account {
    gap: 7px
  }

  .btn,
  button {
    min-height: 44px
  }

  .offerTable {
    min-width: 0;
    font-size: .8rem
  }

  .offerTable th,
  .offerTable td {
    padding: 9px 4px;
    overflow-wrap: anywhere
  }

  .offerTable .price {
    font-size: 23px
  }

  .offerTable .check {
    align-items: flex-start;
    font-size: .8rem
  }

  .offerTable .check input {
    flex-shrink: 0
  }

  .compact {
    gap: 7px
  }

  .flow {
    max-width: 100%
  }
}

.auth>.brand {
  border-bottom: 1px solid var(--ink);
  width: 100%;
  padding-bottom: 18px;
  margin-bottom: 32px
}

.auth .cols>.sheet {
  margin: 0
}

.auth .fields {
  margin-bottom: 15px
}

.auth .google {
  width: 100%;
  justify-content: center;
  background: white;
  border-color: var(--line);
  color: var(--ink)
}

.auth .divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: .85rem;
  margin: 16px 0
}

.divider:before,
.divider:after {
  content: var(--empty, '');
  flex: 1;
  border-top: 1px solid var(--line)
}

.op-header, .shell.op-shell {
  --paper: #f7f4ed; --rail: #f1eee7; --ink: #211f1a; --teal: #065e5c; --line: #c1bdb3;
  background: var(--paper); color: var(--ink);
}
.op-header { min-height: 76px; }
.op-header .brand { font: bold 50px/1 Georgia, serif; letter-spacing: -.055em; }
.op-header .username { font: 24px/1.2 Georgia, serif; }
.shell.op-shell { grid-template-columns: clamp(155px,14.3vw,220px) minmax(0,1fr); min-height: calc(100vh - 76px); }
.op-shell #main { padding: clamp(20px,1.8vw,32px); }
.operator-rail { padding: 28px 8px; }
.operator-rail a { font: 500 1.17rem/1.3 Georgia, serif; padding: 14px; border-bottom: 1px solid var(--line); }
.operator-rail a[aria-current=page] { background: var(--teal); color: white; }
.op-head { align-items: center; }
.op-head h1 { font: bold clamp(36px,4vw,62px)/1.08 Georgia, serif; letter-spacing: -.05em; }
.op-metrics { margin: 20px 0 30px; }
.op-metrics > div { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 12px 0; padding: 0 12px; }
.op-metrics dt { color: var(--ink); font: 500 clamp(16px,1.4vw,23px)/1.3 Georgia, serif; }
.op-metrics dd { font-weight: bold; margin: 0; }
.op-metrics small { font-size: .73rem; }
.op-connections { grid-template-columns: minmax(0,2fr) minmax(0,3fr); gap: 18px; align-items: stretch; }
.op-panel { border-color: #9c988e; padding: clamp(17px,1.4vw,23px); }
.op-panel h2 { font: bold clamp(25px,2.4vw,38px)/1.1 Georgia,serif; letter-spacing: -.035em; }
.op-col-label { background: var(--rail); }
.op-choice span:first-child { font: 500 1.15rem/1.3 Georgia, serif; }
.op-choice span:last-child { padding: 4px 10px; border: 1px solid #98978e; border-radius: 4px; background: var(--paper); }
.op-steps { display: flex; gap: 18px; flex-wrap: wrap; margin-block: 4px 20px; }
.op-steps button { background: transparent; padding: 3px 0; border: 0; color: var(--muted); justify-content: flex-start; gap: 8px; }
.op-steps i { border: 1px solid currentColor; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; font-style: normal; }
.op-steps button[aria-pressed=true] { color: var(--ink); }
.op-steps button[aria-pressed=true] i { border-color: var(--teal); background: var(--teal); color: white; }
.op-editor-panel[data-op-step=setup] .op-approval,
.op-editor-panel[data-op-step=approval] .op-setup { display: none; }
.op-panel .fields label:not(.check) { grid-template-columns: minmax(105px,.48fr) minmax(0,1.52fr); }
.op-action-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.op-release { margin-top: 16px; }
.op-release [role=status]:empty { display: none; }
.op-table { border: 1px solid var(--line); }
.op-table thead th { color: var(--ink); font-weight: 650; }
.op-table td.op-empty-row { padding: 22px; text-align: center; color: var(--muted); font-style: italic; }
@media (max-width: 1000px) {
  .op-connections { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .op-header { min-height: 54px; padding-block: 6px; }
  .op-header .brand { font-size: 33px; min-width: 0; }
  .operator-rail { padding: 4px 10px; }
  .operator-rail a { font-size: .97rem; padding: 8px 10px; }
  .op-head label { min-width: 0; }
  .op-shell #main { padding: 18px 14px; }
  .op-metrics { margin: 14px 0; }
  .op-metrics > div { margin: 0; padding: 8px; gap: 4px 8px; }
  .op-panel .fields label:not(.check) { grid-template-columns: 1fr; }
  .op-steps { gap: 5px 12px; }
}

.case-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(20px,3vw,48px); align-items:start; }
.case-columns > div { min-width:0; }
.brief-layout, .visit-layout { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); }
.offer-inbox { grid-template-columns:minmax(160px,.65fr) minmax(0,1.65fr); }
.visit-status { padding:3px 8px; color:var(--ink); background:var(--rail); font-size:.8rem; }
.visit-agenda { border-top:2px solid var(--ink); padding:12px 0; }
.agenda-days { display:flex; flex-wrap:wrap; gap:4px; }
.agenda-days button[aria-pressed=true] { background:var(--teal); color:white; }
.visit-agenda ul { list-style:none; margin:10px 0; padding:0; }
.visit-agenda li { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px; padding:8px; border-bottom:1px solid var(--line); }
.visit-chart { margin:20px 0; border-block:1px solid var(--line); padding:10px 0; }
.visit-axis { margin-left:6.25rem; display:flex; justify-content:space-between; color:var(--muted); font: .78rem/1.5 Consolas,monospace; }
.visit-track { display:grid; grid-template-columns:6.25rem minmax(0,1fr); align-items:center; font-size:.84rem; }
.visit-track svg { display:block; width:100%; overflow:visible; fill:var(--teal); }
.visit-track line { stroke:var(--line); }
.visit-track .track-winner { fill:var(--blue); }
.visit-track .track-owner { fill:var(--amber); }
.chat-pane .message { border-left:3px solid var(--teal); background:var(--rail); padding:9px 14px; }
.scope-lines { padding-left:2rem; }
.scope-lines li { padding:10px 6px; border-bottom:1px solid var(--line); white-space:pre-line; }
.scope-lines li::marker { color:var(--teal); font-family:Consolas,monospace; }
.estimate { color:var(--ink); font:1.35rem/1.35 Constantia,Georgia,serif; }
.evidence { margin:12px 0; }
.evidence :is(img,canvas) { display:block; max-width:100%; max-height:260px; object-fit:contain; }
.media-inputs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.drop-area { background:#edf3f1; padding:16px; border:1px dashed var(--teal); }
.drop-area input { background:var(--paper); }
.receipt { border-block:1px solid var(--line); padding:18px 0; margin:18px 0; }
.receipt strong { display:block; font:2rem/1.2 Constantia,Georgia,serif; color:var(--teal); }
.bill-totals { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-block:1px solid var(--line); }
.bill-totals > div { min-width:0; padding:14px 8px; }
.bill-totals dt { font-size:.78rem; color:var(--muted); }
.bill-totals dd { margin:4px 0 0; overflow-wrap:anywhere; font:clamp(1.1rem,2.4vw,2.3rem)/1.2 Constantia,Georgia,serif; }
.bill-lines { margin:18px 0; }
.invoice-table { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.invoice-table caption { color:var(--muted); text-align:left; font-size:.83rem; }
.invoice-table :is(th,td) { text-align:right; padding:8px; border-bottom:1px solid var(--line); }
.invoice-table :is(th,td):first-child { text-align:left; }
.invoice-table small { display:block; color:var(--amber); }
.onboard fieldset { border:0; margin:0; padding:0; min-width:0; display:grid; gap:12px; }
.onboard legend { font:1.5rem/1.25 Constantia,Georgia,serif; margin-bottom:12px; }
.onboard [hidden] { display:none; }
.offer-summary { display:grid; gap:0; margin:0; }
.offer-summary > div { display:flex; justify-content:space-between; padding:7px; border-bottom:1px solid var(--line); }
.offer-summary > div:last-child { background:#e2eeeb; font-weight:700; color:var(--ink); }
.rating-stars { border:0; padding:0; margin:0; }
.rating-stars legend { padding:0 0 6px; }
.rating-stars label { display:inline-grid; place-items:center; position:relative; font-size:2rem; padding:0 3px; cursor:pointer; color:var(--muted); }
.rating-stars input { position:absolute; opacity:0; }
.rating-stars span { color:transparent; -webkit-text-stroke:1px var(--ink); }
.rating-stars label:has(input:checked) span, .rating-stars label:has(~ label input:checked) span { color:var(--teal); -webkit-text-stroke:0; }
.rating-stars label:focus-within { outline:2px solid var(--blue); }
@media(max-width:800px) {
  .case-columns { grid-template-columns:minmax(0,1fr); gap:8px; }
  .offer-inbox > div:first-child .sheet { margin:0; padding:8px 0; }
}
@media(max-width:500px) {
  .media-inputs { grid-template-columns:minmax(0,1fr); }
  .invoice-table :is(th,td) { font-size:.8rem; padding:5px; }
  .bill-totals > div { padding:10px 3px; }
}

/* Responsive application shell: navigation and offer comparison */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.menu-toggle { display:none; }
.offer-cards { display:none; }
.rail h2 { overflow-wrap:normal; word-break:normal; hyphens:auto; }
@media (max-width: 650px) {
  header:not(.op-header) { min-height:64px; display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; padding:8px 16px; position:relative; }
  header:not(.op-header) .brand { font-size:1.35rem; gap:8px; }
  header:not(.op-header) .brand img { width:30px; height:30px; }
  header:not(.op-header) .menu-toggle { display:grid; place-items:center; width:42px; min-height:42px; padding:0; background:transparent; color:var(--ink); border-color:var(--line); font-size:1.22rem; }
  header:not(.op-header) nav { display:none; position:absolute; z-index:12; left:0; right:0; top:64px; padding:10px 16px 16px; background:var(--paper); border-bottom:1px solid var(--ink); box-shadow:0 12px 24px #16343b18; }
  header:not(.op-header).menu-open nav { display:grid; gap:0; }
  header:not(.op-header) nav a { padding:13px 2px; border-bottom:1px solid var(--line); font-size:1rem; }
  header:not(.op-header) nav a.active { border-left:3px solid var(--teal); padding-left:10px; border-bottom-color:var(--line); }
  header:not(.op-header) .account { margin:0; gap:6px; }
  /* The role switch remains available in the demo; regular accounts do not render it. */
  header:not(.op-header) .account .demo { max-width:110px; min-width:0; padding-right:20px; font-size:.78rem; }
  header:not(.op-header) .account .username { display:none; }
  header:not(.op-header) .account [data-logout] { min-height:42px; padding:0 4px; font-size:.84rem; }
  main { padding:24px 16px 48px; }
  h1 { font-size:clamp(2.2rem,11vw,3.05rem); line-height:1.03; margin:.22em 0 .45em; }
  .kicker { font-size:10px; }
  .tabs { gap:4px 16px; margin:10px 0 16px; }
  .tabs a { padding:8px 0; }
  .tablewrap { display:none; }
  .offer-cards { display:grid; gap:12px; }
  .offer-card { display:grid; gap:10px; padding:15px; border:1px solid var(--line); border-radius:4px; background:#fff; color:var(--ink); }
  .offer-card.is-selected { border:2px solid var(--teal); background:#f2f8f6; box-shadow:0 6px 18px #087d8012; }
  .offer-card-head { display:flex; justify-content:space-between; align-items:start; gap:10px; }
  .offer-card-head .check { font-size:1rem; color:var(--ink); }
  .offer-card-head strong { font:600 1.45rem/1.1 Constantia,Georgia,serif; white-space:nowrap; }
  .offer-card small { margin-top:-4px; }
  .offer-card > span:not(.offer-card-head) { display:grid; grid-template-columns:5.7rem minmax(0,1fr); gap:8px; padding-top:9px; border-top:1px solid var(--line); font-size:.9rem; line-height:1.4; }
  .offer-card > span > b { color:var(--muted); font-weight:600; }
  .offer-card-warning { color:var(--amber); }
  .award { position:sticky; bottom:0; z-index:5; margin:20px -16px -48px; padding:16px; box-shadow:0 -8px 24px #16343b1d; }
  .award > div:first-of-type { width:100%; }
  .award button { justify-content:center; }
}

.smtp-test-send { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:end; margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
.smtp-test-send label { margin:0; }
@media (max-width:650px) { .smtp-test-send { grid-template-columns:minmax(0,1fr); } .smtp-test-send button { width:100%; } }
