/* ===== A. RESET & VARIABLES ===== */
:root {
  --brand: #F58220;
  --brand-dark: #D96A0E;
  --brand-soft: #FFF3E6;
  --brand-tint: #FEF8F2;
  --ink: #1A1A1A;
  --ink-2: #3D3D3D;
  --mid: #666;
  --line: #E5E5E5;
  --line-2: #EFEFEF;
  --bg: #F4F4F4;
  --paper: #FFF;
  --ok: #1F8A5B;
  --ok-soft: #E8F6EF;
  --ok-line: #BFE4D1;
  --warn: #A35900;
  --warn-soft: #FFF6E6;
  --warn-line: #F2CD8B;
}

/* ===== AUTH GATE — ẩn tool khi chưa đăng nhập ===== */
body.auth-locked>*:not(#auth-gate) {
  display: none !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  height: 100%
}

body {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased
}

/* ===== B. LAYOUT TOOL ===== */
#tool-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 2px solid var(--brand);
  position: sticky;
  top: 0;
  z-index: 50
}

#tool-header .tool-logo {
  height: 32px
}

#tool-header .tool-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .2px
}

#tool-header .tool-sep {
  flex: 1
}

#tool-header label {
  font-size: 12px;
  color: var(--mid);
  font-weight: 500
}

#loai-phieu-select {
  padding: 6px 12px;
  border: 1.5px solid var(--brand);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-soft);
  cursor: pointer;
  outline: none
}

#loai-phieu-select:focus {
  box-shadow: 0 0 0 3px rgba(245, 130, 32, .2)
}

.app-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 24px;
  padding: 20px 24px 80px;
  align-items: flex-start
}

#form-container {
  width: 40%;
  min-width: 360px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 8px
}

#form-container::-webkit-scrollbar {
  width: 5px
}

#form-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px
}

.preview-col {
  width: 60%;
  min-width: 500px
}

#preview-container {
  /* sheet lives here */
}

/* ===== C. SHEET ===== */
.sheet {
  width: 794px;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px rgba(20, 20, 20, .08);
  border-radius: 6px;
  overflow: hidden;
  position: relative
}

/* ===== HEADER ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 44px 20px;
  border-bottom: 1px solid var(--line);
  position: relative
}

.header::after {
  content: "";
  position: absolute;
  left: 44px;
  right: 44px;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 22%, transparent 22%, transparent 100%)
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.logo {
  height: 54px;
  width: auto;
  display: block
}

.logo img {
  height: 100%;
  width: auto;
  display: block
}

.brand-tag {
  font-size: 11px;
  color: var(--mid);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 2px
}

.doc-meta {
  text-align: right;
  font-size: 11px;
  color: var(--mid);
  line-height: 1.5
}

.doc-meta .doc-id {
  display: inline-block;
  font-weight: 600;
  background: var(--brand-soft);
  border: 1px solid #FBD9B6;
  color: var(--brand-dark);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .5px;
  margin-bottom: 6px
}

/* ===== TITLE BAR ===== */
.title-bar {
  padding: 24px 44px 20px;
  background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 100%);
  border-bottom: 1px solid var(--line)
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 6px
}

.title {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -.2px
}

.title em {
  font-style: normal;
  color: var(--brand)
}

.subtitle {
  font-size: 12.5px;
  color: var(--mid);
  margin-top: 4px
}

.body {
  padding: 24px 44px 8px
}

/* ===== D. CUSTOMER CARD ===== */
.customer {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px
}

.customer-row {
  display: grid;
  grid-template-columns: 170px 1fr 130px 1fr;
  border-bottom: 1px solid var(--line-2)
}

.customer-row:last-child {
  border-bottom: none
}

.cell-label {
  background: #FAFAFA;
  padding: 11px 14px;
  font-size: 11.5px;
  color: var(--mid);
  font-weight: 500;
  letter-spacing: .2px;
  border-right: 1px solid var(--line-2);
  display: flex;
  align-items: center
}

.cell-value {
  padding: 11px 14px;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line-2)
}

.cell-value:last-child {
  border-right: none
}

.cell-value.empty {
  color: #BBB;
  font-weight: 400
}

/* ===== E. SECTIONS ===== */
.section {
  margin-bottom: 18px;
  page-break-inside: avoid;
  break-inside: avoid
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px
}

.sec-num {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  display: grid;
  place-items: center;
  flex-shrink: 0
}

.sec-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .1px
}

.sec-body {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff
}

.kv {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px 16px;
  align-items: baseline
}

.kv .k {
  font-size: 12.5px;
  color: var(--mid)
}

.kv .v {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500
}

.kv .v strong {
  color: var(--ink);
  font-weight: 700
}

/* ===== F. PILLS, LEVEL DOTS ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2px
}

.pill.brand {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid #FBD9B6
}

.pill.neutral {
  background: #F1F1F1;
  color: var(--ink-2);
  border: 1px solid var(--line)
}

.pill.ok {
  background: var(--ok-soft);
  color: #0F6B43;
  border: 1px solid var(--ok-line)
}

.pill.warn {
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid var(--warn-line)
}

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

.level {
  display: flex;
  align-items: center;
  gap: 10px
}

.dots {
  display: flex;
  gap: 5px
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
  border: 1px solid var(--line)
}

.dot.on {
  background: var(--brand);
  border-color: var(--brand-dark)
}

.level-label {
  font-size: 12px;
  color: var(--mid)
}

/* ===== G. ITEM LIST + KHÍ CỤ ===== */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 8px 12px;
  background: #FAFAFA;
  border-radius: 6px;
  border: 1px solid var(--line-2)
}

.list li .name {
  font-size: 13px;
  font-weight: 600
}

.list li .desc {
  font-size: 11.5px;
  color: var(--mid);
  display: block;
  font-weight: 400;
  margin-top: 1px
}

.list li .price {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums
}

.list li .price small {
  color: var(--mid);
  font-weight: 500;
  font-size: 10.5px;
  display: block;
  text-align: right
}

.item-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.item-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 10px 14px;
  background: #FAFAFA;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--line)
}

.item-list li.in-pkg {
  border-left-color: var(--ok)
}

.item-list li.separate {
  border-left-color: #E8A53D
}

.item-list .it-main {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.item-list .it-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.item-list .it-desc {
  font-size: 11.5px;
  color: var(--mid);
  font-weight: 400
}

.item-list .it-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right
}

.item-list .it-price small {
  color: var(--mid);
  font-weight: 500;
  font-size: 10.5px;
  display: block;
  text-align: right
}

/* cost row (phiếu chốt) */
.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0
}

.cost-row+.cost-row {
  border-top: 1px dashed var(--line)
}

.cost-row .lbl {
  font-size: 13px;
  color: var(--ink-2)
}

.cost-row .amt {
  font-variant-numeric: tabular-nums;
  font-weight: 600
}

/* ===== H. TOTAL PANEL ===== */
.total-panel {
  margin-top: 0;
  border: 1.5px solid var(--brand);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  page-break-inside: avoid;
  break-inside: avoid
}

.total-panel .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line-2)
}

.total-panel .row:last-child {
  border-bottom: none
}

.total-panel .row.head {
  background: var(--brand);
  color: #fff;
  padding: 10px 18px
}

.total-panel .row.head .lbl {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .4px;
  text-transform: uppercase
}

.total-panel .row.head .amt {
  font-weight: 700;
  font-size: 13px
}

.total-panel .row.subhead {
  background: #FAFAFA;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line-2);
  border-top: 1px solid var(--line-2)
}

.total-panel .row.subhead .lbl {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 8px
}

.total-panel .row.subhead.a .lbl::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ok)
}

.total-panel .row.subhead.b .lbl::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #E8A53D
}

.total-panel .row.subhead .amt {
  font-size: 10.5px;
  color: var(--mid);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500
}

.total-panel .row .lbl {
  font-size: 13px;
  color: var(--ink-2)
}

.total-panel .row .amt {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 13.5px
}

.total-panel .row.discount .amt {
  color: var(--ok)
}

.total-panel .row.subtotal {
  background: #FAFAFA
}

.total-panel .row.subtotal .lbl {
  font-weight: 700;
  color: var(--ink)
}

.total-panel .row.subtotal .amt {
  font-weight: 700
}

.total-panel .row.grand {
  background: var(--brand-tint)
}

.total-panel .row.grand .lbl {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink)
}

.total-panel .row.grand .amt {
  font-weight: 800;
  font-size: 20px;
  color: var(--brand-dark);
  letter-spacing: -.3px
}

.total-panel .row.grand .lbl small {
  display: block;
  font-size: 10.5px;
  color: var(--mid);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 1px
}

.total-panel .row.separate-grand {
  background: #FFFBF1
}

.total-panel .row.separate-grand .lbl {
  font-weight: 700;
  color: var(--ink)
}

.total-panel .row.separate-grand .amt {
  font-weight: 800;
  font-size: 16px;
  color: var(--warn)
}

/* ===== I. PAY CARDS + NOTE BOX ===== */
.schedule-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px
}

.pay-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  position: relative
}

.pay-card.deposit {
  border-color: var(--brand);
  background: linear-gradient(180deg, #fff 0%, var(--brand-tint) 120%)
}

.pay-card .stage {
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 600
}

.pay-card.deposit .stage {
  color: var(--brand)
}

.pay-card .amt {
  font-size: 18px;
  font-weight: 800;
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.3px
}

.pay-card .when {
  font-size: 11.5px;
  color: var(--mid)
}

.note-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: #FFFCF7;
  border: 1px solid #F5E0BD;
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.6
}

.note-box .nh {
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 11.5px;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block
}

.estimate-strip {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--brand-soft);
  border: 1px dashed var(--brand);
  border-radius: 8px;
  font-size: 12px;
  color: var(--brand-dark);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 10px
}

.estimate-strip .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 1px
}

.estimate-strip strong {
  color: var(--brand-dark);
  font-weight: 700
}

/* ===== J. COMMIT BLOCK ===== */
.commit-block {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FAFAFA;
  overflow: hidden
}

.commit-head {
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px
}

.commit-head .badge {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--brand);
  display: grid;
  place-items: center;
  font-size: 11px
}

.commit-list {
  margin: 0;
  padding: 8px 0;
  list-style: none
}

.commit-list li {
  padding: 8px 16px 8px 40px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
  position: relative
}

.commit-list li+li {
  border-top: 1px solid var(--line-2)
}

.commit-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 13px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1.5px solid var(--brand)
}

.commit-list li::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 17px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg)
}

.commit-list li strong {
  color: var(--ink);
  font-weight: 700
}

/* ===== K. TEETH CHART ===== */
.teeth-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 14px 8px 8px;
  background: #FAFAFA;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  margin-bottom: 10px
}

.teeth-row {
  display: flex;
  gap: 3px;
  justify-content: center
}

.tooth {
  width: 24px;
  height: 30px;
  border-radius: 6px 6px 4px 4px;
  background: #fff;
  border: 1px solid #DDD;
  display: grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--mid)
}

.tooth.upper {
  border-radius: 8px 8px 4px 4px
}

.tooth.lower {
  border-radius: 4px 4px 8px 8px
}

.tooth.extract {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-dark);
  box-shadow: 0 2px 6px rgba(245, 130, 32, .35)
}

.tooth.watch {
  background: #FFF8EE;
  color: var(--brand-dark);
  border-color: #FBD9B6;
  border-style: dashed
}

.teeth-legend {
  display: flex;
  gap: 18px;
  font-size: 11px;
  color: var(--mid);
  padding-top: 6px;
  border-top: 1px dashed var(--line);
  width: 100%;
  justify-content: center
}

.teeth-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.teeth-legend .sw {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block
}

/* Form teeth */
.teeth-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 12px 4px;
  background: #FAFAFA;
  border-radius: 8px;
  border: 1px solid var(--line-2)
}

.teeth-form-wrap .tooth {
  cursor: pointer;
  transition: all .15s
}

.teeth-form-wrap .tooth:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15)
}

/* ===== L. SIGNATURE ===== */
.sigs {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line)
}

.sig {
  text-align: center;
  min-width: 220px
}

.sig .role {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--mid);
  font-weight: 600
}

.sig .who {
  font-size: 11px;
  color: var(--mid);
  margin-top: 2px;
  font-style: italic
}

.sig .line {
  margin-top: 60px;
  border-top: 1px dashed #BBB;
  padding-top: 6px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 600
}

/* ===== M. FOOTER ===== */
.footer {
  margin-top: 28px;
  padding: 14px 44px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--mid)
}

.footer .left {
  display: flex;
  align-items: center;
  gap: 8px
}

.footer .dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #BBB
}

/* ===== N. TOOLBAR ===== */
.toolbar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  padding: 16px
}

.toolbar button {
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .15s
}

.toolbar button#btn-export-png {
  background: var(--brand);
  color: #fff
}

.toolbar button#btn-export-png:hover {
  background: var(--brand-dark)
}

.toolbar button#btn-export-pdf {
  background: var(--ink);
  color: #fff
}

.toolbar button#btn-export-pdf:hover {
  background: #333
}

.toolbar button.disabled,
.toolbar button:disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none
}

/* ===== O. FORM (cột trái) ===== */
.form-section {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px
}

.form-sec-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2)
}

.form-row {
  margin-bottom: 8px
}

.form-label {
  display: block;
  font-size: 11.5px;
  color: var(--mid);
  font-weight: 500;
  margin-bottom: 3px
}

.form-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border .15s
}

.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(245, 130, 32, .12)
}

select.form-input {
  cursor: pointer
}

.form-textarea {
  min-height: 60px;
  resize: vertical
}

.form-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px
}

.pill-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #FAFAFA;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all .15s
}

.pill-check:hover {
  border-color: var(--brand);
  background: var(--brand-soft)
}

.pill-check input[type="checkbox"],
.pill-check input[type="radio"] {
  display: none
}

.pill-check:has(input:checked) {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
  font-weight: 600
}

.form-khicu-item {
  margin-bottom: 8px
}

.minivis-detail {
  margin: 6px 0 8px 20px;
  padding: 8px 12px;
  background: #FAFAFA;
  border-radius: 6px;
  border: 1px solid var(--line-2)
}

.form-row-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap
}

.form-label-sm {
  font-size: 11.5px;
  color: var(--mid);
  font-weight: 500;
  min-width: 70px
}

.form-input-sm {
  width: 60px;
  padding: 4px 8px;
  font-size: 12px
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500
}

.form-note {
  font-size: 11px;
  color: var(--mid);
  font-style: italic;
  margin-top: 2px
}

.form-hint {
  font-size: 11.5px;
  color: var(--mid);
  margin-bottom: 8px;
  font-style: italic
}

.form-warning {
  background: #FFF0F0;
  border: 1px solid #FFCCCC;
  color: #CC0000;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px
}

.form-summary {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--brand-tint);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.7
}

.form-summary strong {
  color: var(--brand-dark)
}

/* ===== P. UTILITIES ===== */
.hidden {
  display: none !important
}

/* ===== PRINT ===== */
@media print {
  body {
    background: #fff;
    padding: 0
  }

  .sheet {
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    min-height: auto
  }

  .toolbar,
  #tool-header,
  #form-container {
    display: none
  }
}