.staff-incidental-quote-body {
  --ink: #0e1319;
  --ink-2: #39424e;
  --muted: #79838f;
  --line: #c8d0d8;
  --rule: #0e1319;
  --accent: #c67c0b;
  --bg: #e7eaee;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 14px;
}

.staff-incidental-quote-page {
  width: calc(100% - 2rem);
  max-width: none;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 1.25rem 0 1.25rem;
}

.staff-incidental-quote-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
  padding-bottom: 10px;
  border-bottom: 2.5px solid var(--rule);
}

.staff-incidental-quote-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.staff-incidental-quote-head h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.staff-incidental-quote-address {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.staff-quote-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1rem;
  margin: 0.7rem 0 0;
}

.staff-quote-meta-bar__field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 9.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.staff-quote-meta-bar__field--owner {
  min-width: 11rem;
  flex: 1 1 11rem;
  max-width: 16rem;
}

.staff-quote-meta-bar__field input {
  box-sizing: border-box;
  margin: 0;
  padding: 0.38rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0;
}

.staff-quote-meta-bar__field input:focus {
  outline: none;
  border-color: var(--rule);
}

.staff-incidental-quote-head::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin: 0;
  background: var(--accent);
  order: 3;
  flex: 1 0 100%;
}

.staff-incidental-quote-feedback {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0;
  background: #fbf3e2;
  border: 1px solid #e7d5ac;
  color: #5a4514;
  font-size: 0.88rem;
}

.staff-incidental-quote-feedback[data-tone="error"] {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.staff-incidental-quote-feedback[data-tone="info"] {
  background: #f1f3f6;
  border-color: var(--line);
  color: var(--ink-2);
}

.staff-quote-sec {
  margin: 0 0 15px;
}

.staff-quote-sec--combined {
  width: 100%;
  margin: 0 0 15px;
}

.staff-quote-sec--combined.is-empty .staff-step6-combined-lines-mount {
  min-height: 8rem;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.staff-quote-detail--combined .staff-quote-combined-section th {
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-size: 8pt;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-bottom: 1.5px solid var(--rule);
}

.staff-quote-sec > h3 {
  font-size: 8.5pt;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--ink-2);
  margin: 0 0 7px;
  padding-left: 8px;
  border-left: 3px solid var(--accent);
}

.staff-quote-sec__lede {
  margin: 0 0 7px;
  font-size: 8.5pt;
  color: var(--muted);
}

.staff-quote-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: #fff;
  margin: 0 0 8px;
}

.staff-quote-specs > div {
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.staff-quote-specs > div:last-child {
  border-right: none;
}

.staff-quote-specs .k {
  font-size: 7.5pt;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.staff-quote-specs .v {
  font-family: var(--mono);
  font-size: 11.5pt;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.staff-quote-specs .v small {
  font-family: inherit;
  font-size: 8pt;
  font-weight: 500;
  color: var(--ink-2);
  margin-left: 2px;
}

.staff-incidental-quote-page .staff-step6-cost-table-wrap {
  overflow: auto;
  max-height: none;
  border-radius: 0;
  border: none;
  background: transparent;
}

.staff-incidental-quote-page table.staff-quote-detail {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 9pt;
  line-height: 1.5;
  background: #fff;
}

.staff-incidental-quote-page table.staff-quote-detail th,
.staff-incidental-quote-page table.staff-quote-detail td {
  border: 1px solid var(--line);
  padding: 5px 6px;
  text-align: left;
  vertical-align: middle;
}

.staff-incidental-quote-page table.staff-quote-detail thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f1f3f6;
  border-color: var(--rule);
  border-width: 1px 1px 1.5px;
  font-size: 8pt;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--ink-2);
}

.staff-incidental-quote-page table.staff-quote-detail td.c {
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5pt;
  width: 28px;
}

.staff-incidental-quote-page table.staff-quote-detail td.nm {
  font-weight: 600;
  width: 18%;
}

.staff-incidental-quote-page table.staff-quote-detail td.u {
  text-align: center;
  font-size: 8.5pt;
  width: 42px;
}

.staff-incidental-quote-page table.staff-quote-detail td.r,
.staff-incidental-quote-page table.staff-quote-detail th.q-price,
.staff-incidental-quote-page table.staff-quote-detail th.q-amt {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.staff-incidental-quote-page table.staff-quote-detail td.sp,
.staff-incidental-quote-page table.staff-quote-detail td.nt {
  font-size: 8.5pt;
  color: var(--ink-2);
}

.staff-incidental-quote-page table.staff-quote-detail th.q-no {
  width: 28px;
  text-align: center;
}

.staff-incidental-quote-page table.staff-quote-detail th.q-u {
  width: 42px;
  text-align: center;
}

.staff-incidental-quote-page table.staff-quote-detail th.q-qty {
  width: 50px;
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.staff-incidental-quote-page table.staff-quote-detail th.q-price,
.staff-incidental-quote-page table.staff-quote-detail th.q-amt {
  width: 82px;
}

.staff-incidental-quote-page table.staff-quote-detail th.q-act,
.staff-incidental-quote-page table.staff-quote-detail td.q-act,
.staff-incidental-quote-page table.staff-quote-detail .staff-step6-actions-cell {
  width: 3.4rem;
  text-align: right;
  padding-left: 4px;
  padding-right: 4px;
  white-space: nowrap;
}

.staff-incidental-quote-page table.staff-quote-detail tfoot td {
  border-color: var(--rule);
  padding: 7px 6px;
}

.staff-incidental-quote-page table.staff-quote-detail tfoot .lb {
  text-align: center;
  letter-spacing: 0.16em;
  font-size: 8.5pt;
  font-weight: 700;
}

.staff-incidental-quote-page table.staff-quote-detail tfoot .r {
  text-align: right;
  font-family: var(--mono);
  font-weight: 700;
}

.staff-incidental-quote-page table.staff-quote-detail tfoot .grand td {
  border-top: 1.5px solid var(--rule);
  background: #f1f3f6;
  font-size: 11.5pt;
}

.staff-incidental-quote-page table.staff-quote-detail tfoot .grand .lb {
  font-size: 9pt;
}

.staff-incidental-quote-page table.staff-quote-detail .staff-step6-extra-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 1px 2px;
  font: inherit;
  font-size: inherit;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.staff-incidental-quote-page table.staff-quote-detail td.r .staff-step6-extra-input,
.staff-incidental-quote-page table.staff-quote-detail .staff-step6-extra-input--right {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.staff-incidental-quote-page table.staff-quote-detail td.u .staff-step6-extra-input,
.staff-incidental-quote-page table.staff-quote-detail .staff-step6-extra-input--narrow {
  text-align: center;
  max-width: 3.5rem;
}

.staff-incidental-quote-page table.staff-quote-detail .staff-step6-extra-input:hover,
.staff-incidental-quote-page table.staff-quote-detail .staff-step6-extra-input:focus {
  border-color: var(--line);
  outline: none;
  background: #fff;
  box-shadow: none;
}

.staff-incidental-quote-page table.staff-quote-detail .staff-step6-extra-input:focus {
  border-color: var(--rule);
}

.staff-incidental-quote-page table.staff-quote-detail tbody tr:hover td {
  background: #f8f9fb;
}

.staff-incidental-quote-page table.staff-quote-detail .staff-step6-cost-row--extra td:first-child,
.staff-incidental-quote-page table.staff-quote-detail .staff-step6-cost-row--editable td:first-child {
  box-shadow: none;
}

.staff-incidental-quote-page table.staff-quote-detail .staff-step6-money-cell {
  font-weight: 600;
  color: var(--ink);
}

.staff-incidental-quote-page table.staff-quote-detail .staff-step6-row-actions {
  opacity: 1;
}

.staff-incidental-quote-page table.staff-quote-detail thead th,
.staff-incidental-quote-page table.staff-quote-detail tfoot .grand td {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.staff-incidental-quote-page .staff-step6-table-sum {
  display: none;
}

.staff-incidental-quote-page .staff-step6-cost-extra-actions {
  margin-top: 8px;
}

.staff-incidental-quote-overlay {
  position: fixed;
  inset: 0;
  z-index: 4200;
  background: var(--bg);
}

.staff-incidental-quote-overlay__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
}

body.staff-incidental-quote-overlay-open {
  overflow: hidden;
}

.staff-incidental-quote-footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin: 1.25rem -0.15rem 0;
  padding: 0.75rem 0.15rem 0.35rem;
  background: linear-gradient(180deg, rgba(231, 234, 238, 0) 0%, var(--bg) 18%);
}

.staff-incidental-quote-totals {
  margin: 0 0 0.65rem;
  padding: 13px 12px 12px;
  border-top: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
  border-left: none;
  border-right: none;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.staff-incidental-quote-totals__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem 0.75rem;
  margin: 0;
}

.staff-incidental-quote-totals__grid > div {
  min-width: 0;
}

.staff-incidental-quote-totals dt {
  margin: 0 0 0.2rem;
  font-size: 8pt;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.staff-incidental-quote-totals dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 13pt;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}

.staff-incidental-quote-totals__grid > div:nth-child(4) dd {
  color: var(--ink);
}

.staff-incidental-quote-totals [data-quote-total="vat"] {
  opacity: 0.3;
}

.staff-incidental-quote-totals__meta {
  margin: 0.55rem 0 0;
  font-size: 8pt;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 820px) {
  .staff-quote-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .staff-quote-specs > div:nth-child(2n) {
    border-right: none;
  }

  .staff-quote-specs > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .staff-incidental-quote-totals__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-incidental-quote-totals__grid > div:nth-child(4) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .staff-quote-specs {
    grid-template-columns: 1fr 1fr;
  }
}

.staff-incidental-quote-pdf-issued {
  display: none;
  margin: 0.2rem 0 0;
  font-size: 8.5pt;
  color: var(--muted);
}

.staff-incidental-quote-pdf-text {
  display: inline;
  word-break: break-word;
}

@page {
  size: A4 portrait;
  margin: 25mm;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-no-print,
body.staff-incidental-quote-pdf-export .staff-quote-meta-bar,
body.staff-incidental-quote-pdf-export .staff-quote-save-dialog,
body.staff-incidental-quote-pdf-export .staff-step6-detail-dialog__head-actions,
body.staff-incidental-quote-pdf-export .staff-step6-cost-extra-actions,
body.staff-incidental-quote-pdf-export .staff-step6-apply-to-summary,
body.staff-incidental-quote-pdf-export .staff-quote-sec__lede,
body.staff-incidental-quote-pdf-export .staff-incidental-quote-feedback,
body.staff-incidental-quote-pdf-export .staff-step6-site-incidental-status,
body.staff-incidental-quote-pdf-export .staff-incidental-library-mount,
body.staff-incidental-quote-pdf-export .staff-step6-quote-set-bar,
body.staff-incidental-quote-pdf-export [data-incidental-pane],
body.staff-incidental-quote-pdf-export .q-act,
body.staff-incidental-quote-pdf-export .staff-step6-actions-cell {
  display: none !important;
}

body.staff-incidental-quote-pdf-export {
  background: #fff;
}

body.staff-incidental-quote-pdf-export,
body.staff-incidental-quote-pdf-export .staff-incidental-quote-page,
body.staff-incidental-quote-pdf-export .staff-incidental-quote-page * {
  color: #111;
  background: #fff;
  box-shadow: none;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-head::after {
  display: none;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-page {
  width: 210mm;
  min-width: 210mm;
  max-width: 210mm;
  height: 297mm;
  min-height: 297mm;
  max-height: 297mm;
  margin: 0;
  padding: 25mm;
  background: #fff;
  font-size: 8pt;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-kicker {
  font-size: 6.5pt;
  margin-bottom: 0.1rem;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-head {
  margin-bottom: 4px;
  padding-bottom: 4px;
  flex: 0 0 auto;
}

body.staff-incidental-quote-pdf-export [data-incidental-tables] {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.staff-incidental-quote-pdf-export .staff-quote-pdf-unified {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

body.staff-incidental-quote-pdf-export .staff-quote-pdf-unified-table {
  width: 100%;
  height: 100%;
}

body.staff-incidental-quote-pdf-export .staff-quote-pdf-section th {
  background: #fff;
  color: #111;
  text-align: left;
  font-size: 8pt;
  font-weight: 800;
  letter-spacing: -0.03em;
  padding: 4px 6px;
  border: 1px solid #111;
  border-bottom: 1.5px solid #111;
}

body.staff-incidental-quote-pdf-export .staff-quote-pdf-subtotal td {
  background: #fff;
  color: #111;
  font-weight: 700;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-page table.staff-quote-detail th,
body.staff-incidental-quote-pdf-export .staff-incidental-quote-page table.staff-quote-detail td {
  border-color: #111;
  color: #111;
  background: #fff;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-page table.staff-quote-detail thead th,
body.staff-incidental-quote-pdf-export .staff-incidental-quote-page table.staff-quote-detail tfoot td,
body.staff-incidental-quote-pdf-export .staff-incidental-quote-page table.staff-quote-detail tfoot .grand td {
  background: #fff;
  color: #111;
}

body.staff-incidental-quote-pdf-export .staff-quote-specs,
body.staff-incidental-quote-pdf-export .staff-quote-specs > div {
  background: #fff;
  border-color: #111;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-kicker,
body.staff-incidental-quote-pdf-export .staff-incidental-quote-address,
body.staff-incidental-quote-pdf-export .staff-incidental-quote-pdf-issued,
body.staff-incidental-quote-pdf-export .staff-quote-specs .k,
body.staff-incidental-quote-pdf-export .staff-quote-specs .v small {
  color: #111;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-head h1 {
  font-size: 13pt;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-address,
body.staff-incidental-quote-pdf-export .staff-incidental-quote-pdf-issued {
  font-size: 8pt;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-pdf-issued {
  display: block;
}

body.staff-incidental-quote-pdf-export .staff-quote-sec--combined {
  display: block;
}

body.staff-incidental-quote-pdf-export .staff-quote-sec {
  margin: 0 0 6px;
}

body.staff-incidental-quote-pdf-export .staff-quote-sec > h3 {
  font-size: 7.5pt;
  margin: 0 0 4px;
}

body.staff-incidental-quote-pdf-export .staff-quote-specs {
  margin-bottom: 4px;
}

body.staff-incidental-quote-pdf-export .staff-quote-specs > div {
  padding: 4px 6px;
}

body.staff-incidental-quote-pdf-export .staff-quote-specs .v {
  font-size: 9.5pt;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-page .staff-step6-cost-table-wrap {
  overflow: visible;
  max-height: none;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-page table.staff-quote-detail {
  font-size: 7pt;
  line-height: 1.25;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-page table.staff-quote-detail th,
body.staff-incidental-quote-pdf-export .staff-incidental-quote-page table.staff-quote-detail td {
  padding: 2px 4px;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-page table.staff-quote-detail thead th {
  position: static;
  font-size: 6.5pt;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-footer {
  position: static;
  z-index: auto;
  margin: 6px 0 0;
  padding: 0;
  background: transparent;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-totals {
  margin: 0;
  padding: 6px 4px 4px;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-totals dd {
  font-size: 10pt;
}

body.staff-incidental-quote-pdf-export .staff-incidental-quote-totals dt,
body.staff-incidental-quote-pdf-export .staff-incidental-quote-totals__meta {
  font-size: 6.5pt;
}

body.staff-incidental-quote-pdf-export table.staff-quote-detail tr {
  break-inside: auto;
  page-break-inside: auto;
}

body.staff-incidental-quote-pdf-export,
body.staff-incidental-quote-pdf-export * {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

@media print {
  .staff-quote-sec--combined {
    display: block;
  }

  .staff-incidental-quote-no-print,
  .staff-quote-meta-bar,
  .staff-step6-detail-dialog__head-actions,
  .staff-step6-cost-extra-actions,
  .staff-step6-apply-to-summary,
  .staff-quote-sec__lede,
  .staff-incidental-quote-feedback,
  .staff-step6-site-incidental-status,
  .staff-incidental-library-mount,
  .staff-step6-quote-set-bar,
  [data-incidental-pane],
  .q-act,
  .staff-step6-actions-cell {
    display: none !important;
  }

  html,
  body.staff-incidental-quote-body {
    background: #fff;
  }

  .staff-incidental-quote-page {
    width: 210mm;
    height: 297mm;
    max-width: 210mm;
    max-height: 297mm;
    margin: 0;
    padding: 25mm;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .staff-quote-pdf-unified {
    flex: 1 1 auto;
  }

  .staff-quote-pdf-unified-table {
    width: 100%;
    height: 100%;
  }

  .staff-incidental-quote-pdf-issued {
    display: block;
  }

  .staff-incidental-quote-footer {
    position: static;
    margin-top: 10px;
    padding: 0;
    background: transparent;
  }

  .staff-incidental-quote-page .staff-step6-cost-table-wrap {
    overflow: visible;
  }

  table.staff-quote-detail thead th {
    position: static;
  }

  table.staff-quote-detail tr {
    break-inside: auto;
    page-break-inside: auto;
  }

  html,
  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.staff-quote-save-dialog {
  width: min(440px, calc(100vw - 2rem));
  padding: 0;
  border: 1.5px solid var(--rule);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(14, 19, 25, 0.22);
}

.staff-quote-save-dialog::backdrop {
  background: rgba(14, 19, 25, 0.42);
}

.staff-quote-save-dialog__box {
  margin: 0;
}

.staff-quote-save-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem 0.75rem;
  border-bottom: 1.5px solid var(--rule);
}

.staff-quote-save-dialog__kicker {
  margin: 0 0 0.15rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.staff-quote-save-dialog__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.staff-quote-save-dialog__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.85rem 1rem 0.35rem;
}

.staff-quote-save-dialog__address {
  margin: 0;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  background: #f8f9fb;
  font-size: 0.82rem;
  font-weight: 700;
  word-break: break-word;
}

.staff-quote-save-dialog__hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.staff-quote-save-dialog__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
}

.staff-quote-save-dialog__facts > div {
  padding: 0.5rem 0.6rem;
}

.staff-quote-save-dialog__facts > div:first-child {
  border-right: 1px solid var(--line);
}

.staff-quote-save-dialog__facts > div.is-empty {
  min-height: 3.6rem;
  background: #f7f8fa;
}

.staff-quote-save-dialog__facts > div.is-empty dt,
.staff-quote-save-dialog__facts > div.is-empty dd {
  visibility: hidden;
}

.staff-quote-save-dialog__facts dt {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.staff-quote-save-dialog__facts dd {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 700;
}

.staff-quote-save-dialog__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.staff-quote-save-dialog__chips .staff-step6-quote-chip {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border: 1px solid var(--line);
  background: #f8f9fb;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-2);
}

.staff-quote-save-dialog__field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.staff-quote-save-dialog__field input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  background: #fff;
}

.staff-quote-save-dialog__field input:focus {
  outline: none;
  border-color: var(--rule);
}

.staff-quote-save-dialog__scopes {
  margin: 0;
  padding: 0;
  border: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.staff-quote-save-dialog__scopes legend {
  padding: 0;
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.staff-quote-save-dialog__scope {
  min-width: 0;
  cursor: pointer;
}

.staff-quote-save-dialog__scope input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.staff-quote-save-dialog__scope-card {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-height: 3.2rem;
  padding: 0.45rem 0.4rem;
  border: 1px solid var(--line);
  background: #fff;
}

.staff-quote-save-dialog__scope-card strong {
  font-size: 0.82rem;
  font-weight: 800;
}

.staff-quote-save-dialog__scope-card em {
  font-style: normal;
  font-size: 0.68rem;
  color: var(--muted);
}

.staff-quote-save-dialog__scope input:checked + .staff-quote-save-dialog__scope-card {
  border-color: var(--rule);
  background: #fbf3e2;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.staff-quote-save-dialog__scope input:focus-visible + .staff-quote-save-dialog__scope-card {
  outline: 2px solid var(--rule);
  outline-offset: 1px;
}

.staff-quote-save-dialog__feedback {
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  background: #f1f3f6;
  font-size: 0.78rem;
  color: var(--ink-2);
}

.staff-quote-save-dialog__feedback[data-tone="error"] {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.staff-quote-save-dialog__feedback[data-tone="ok"] {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.staff-quote-save-dialog__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 0.75rem 1rem 0.95rem;
}

@media (max-width: 520px) {
  .staff-quote-save-dialog__facts,
  .staff-quote-save-dialog__scopes {
    grid-template-columns: 1fr;
  }

  .staff-quote-save-dialog__facts > div:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

.staff-incidental-quote-page .staff-incidental-presets__list {
  max-height: none;
  gap: 0.55rem;
}

.staff-incidental-quote-page .staff-incidental-presets__item {
  align-items: flex-start;
  padding: 0.8rem 0.85rem;
  border-radius: 0;
}

.staff-incidental-quote-page .staff-incidental-presets__item.is-picked {
  border-color: var(--rule);
  background: #fbf3e2;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.staff-incidental-quote-page .staff-incidental-presets__pick {
  align-items: flex-start;
  width: 100%;
}

.staff-incidental-quote-page .staff-incidental-presets__meta {
  flex: 1 1 auto;
  width: 100%;
}

.staff-incidental-quote-page .staff-incidental-presets__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
}

.staff-incidental-quote-page .staff-incidental-presets__name {
  font-size: 1.08rem;
  font-weight: 800;
}

.staff-incidental-quote-page .staff-incidental-presets__pick-label {
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.staff-incidental-quote-page .staff-incidental-presets__facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.45rem 0.7rem;
  width: 100%;
  margin-top: 0.5rem;
}

.staff-incidental-quote-page .staff-incidental-presets__facts--meta {
  margin-top: 0.35rem;
}

.staff-incidental-quote-page .staff-incidental-presets__fact {
  min-width: 0;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  background: #fff;
}

.staff-incidental-quote-page .staff-incidental-presets__fact.is-empty {
  min-height: 4.4rem;
  border-color: #c5cad1;
  background:
    repeating-linear-gradient(
      -45deg,
      #e8eaed,
      #e8eaed 6px,
      #dfe2e6 6px,
      #dfe2e6 12px
    );
  color: #6b7280;
}

.staff-incidental-quote-page .staff-incidental-presets__fact.is-empty .k {
  color: #6b7280;
}

.staff-incidental-quote-page .staff-incidental-presets__fact.is-empty .v {
  color: #6b7280;
  font-weight: 700;
}

.staff-incidental-quote-page .staff-incidental-presets__item.is-picked .staff-incidental-presets__fact:not(.is-empty) {
  border-color: #e7d5ac;
  background: #fffdf8;
}

.staff-incidental-quote-page .staff-incidental-presets__fact .k {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.staff-incidental-quote-page .staff-incidental-presets__fact .v {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.staff-incidental-quote-page .staff-incidental-presets__fact .m {
  display: block;
  margin-top: 0.08rem;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.staff-incidental-quote-page .staff-incidental-presets--page,
.staff-incidental-quote-page .staff-incidental-library-mount {
  padding-bottom: 5.5rem;
}

.staff-incidental-quote-page .staff-incidental-presets__apply-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: min(22rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.28rem 0.55rem 0.32rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  box-shadow: 0 6px 16px rgba(198, 124, 11, 0.28);
}

.staff-incidental-quote-page .staff-incidental-presets__apply-bar .primary {
  min-width: 10.5rem;
  min-height: 1.85rem;
  padding: 0.28rem 1rem;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.staff-incidental-quote-page .staff-incidental-presets__apply-bar .primary:hover {
  background: #a86809;
  border-color: #a86809;
  transform: none;
  box-shadow: none;
}

.staff-incidental-quote-page .staff-incidental-presets__pick-hint {
  margin: 0;
  flex: 0 1 auto;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbf3e2;
}

.staff-incidental-quote-page .staff-incidental-presets__apply-bar .primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.staff-incidental-quote-page .staff-incidental-presets__scope {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.4rem;
  border: 1px solid var(--line);
  background: #f1f3f6;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  white-space: nowrap;
}

.staff-incidental-quote-page .staff-incidental-presets__scope.is-all {
  border-color: var(--rule);
  background: #fbf3e2;
  color: #5a4514;
}

.staff-incidental-quote-page .staff-incidental-presets__scope.is-quote {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.staff-incidental-quote-page .staff-incidental-presets__scope.is-incidental {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #5b21b6;
}

.staff-incidental-quote-page .staff-incidental-presets__scope.is-fixed,
.staff-quote-save-dialog__badge {
  border-color: var(--rule);
  background: #fbf3e2;
  color: #5a4514;
}

.staff-quote-save-dialog__badge {
  display: inline-flex;
  margin-left: 0.25rem;
  padding: 0.04rem 0.32rem;
  border: 1px solid var(--line);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.staff-quote-save-dialog__badge.is-custom {
  border-color: var(--rule);
}

.staff-quote-save-dialog__foot {
  flex-wrap: wrap;
}
