:root {
  --brand: #e5ec9e;
  --brand-dark: #aeb85a;
  --black: #090909;
  --ink: #171713;
  --muted: #74746d;
  --soft: #f5f5ef;
  --white: #ffffff;
  --line: #e2e2d9;
  --danger: #ba3838;
  --radius: 18px;
  font-family: "Assistant", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #eeeee8; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }

[hidden] { display: none !important; }

.login-view { min-height: 100vh; padding: 28px; display: grid; place-items: center; background: radial-gradient(circle at 50% 0, #2a2b22 0, #090909 48%); }
.login-card { width: min(440px, 100%); padding: 42px; border: 1px solid rgba(229,236,158,.25); border-radius: 24px; color: var(--white); background: rgba(20,20,18,.94); box-shadow: 0 35px 90px rgba(0,0,0,.45); }
.login-card img { width: 220px; max-height: 65px; object-fit: contain; }
.login-eyebrow { display: block; margin-top: 34px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.login-card h1 { margin: 8px 0 6px; font-size: 32px; }
.login-card > p { margin: 0 0 28px; color: rgba(255,255,255,.62); }
.role-picker { display: grid; gap: 11px; }
.role-picker > button { min-height: 72px; padding: 13px 16px; display: block; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; text-align: right; color: var(--white); background: rgba(255,255,255,.06); transition: .18s ease; }
.role-picker > button:hover { border-color: var(--brand); color: var(--black); background: var(--brand); transform: translateY(-1px); }
.role-picker > button:disabled { opacity: .55; cursor: wait; transform: none; }
.role-picker strong { display: block; font-size: 18px; }
.role-picker span { display: block; margin-top: 2px; color: rgba(255,255,255,.58); font-size: 12px; }
.role-picker > button:hover span { color: rgba(0,0,0,.65); }
.login-error { padding: 10px 12px; border-radius: 8px; color: #ffb4b4; background: rgba(186,56,56,.18); font-size: 13px; }

.app-header {
  min-height: 124px;
  padding: 24px max(28px, calc((100vw - 1440px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: var(--black);
  border-bottom: 1px solid rgba(229, 236, 158, 0.35);
}

.brand-wrap { display: flex; align-items: center; gap: 28px; }
.brand-wrap img { width: 210px; max-height: 68px; object-fit: contain; }
.brand-wrap > div { padding-right: 28px; border-right: 1px solid rgba(255,255,255,.18); }
.eyebrow { color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.brand-wrap h1 { margin: 4px 0 0; font-size: 25px; line-height: 1; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.secure-badge { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.72); font-size: 14px; }
.secure-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 16px var(--brand); }
.new-client-button { padding: 11px 20px; border: 1px solid var(--brand); border-radius: 999px; color: var(--black); background: var(--brand); font-weight: 800; transition: .2s ease; }
.new-client-button:hover { background: #d6df78; transform: translateY(-1px); }
.current-user { color: rgba(255,255,255,.7); font-size: 13px; }
.logout-button { padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.76); background: transparent; font-size: 12px; }

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  min-height: calc(100vh - 124px);
}

.calculator-panel { padding: 54px 58px 90px; background: var(--white); }
.summary-panel { padding: 38px 32px; background: #eeeee8; border-right: 1px solid var(--line); }
.summary-sticky { position: sticky; top: 28px; }

.section-heading { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 26px; }
.section-heading > span, .pdf-section-title > span {
  width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 50%; color: var(--black); background: var(--brand); font-weight: 800; font-size: 12px;
}
.section-heading h2 { margin: 0; font-size: 26px; line-height: 1.1; }
.section-heading p { margin: 6px 0 0; color: var(--muted); }
.treatment-heading, .pricing-heading { margin-top: 58px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label > span, .single-area-control > span { display: block; margin-bottom: 8px; color: #55554e; font-size: 13px; font-weight: 700; }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 0 15px; border: 1px solid var(--line); border-radius: 11px;
  color: var(--ink); background: #fbfbf8; outline: none; transition: .2s ease;
}
textarea { padding-top: 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-dark); box-shadow: 0 0 0 4px rgba(229,236,158,.3); background: #fff; }
select:disabled { cursor: not-allowed; opacity: .48; }

.category-title { margin: 36px 0 14px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.category-title strong { display: block; font-size: 18px; }
.category-title div span { color: var(--muted); font-size: 13px; }
.category-pill { padding: 7px 12px; border-radius: 999px; background: var(--soft); color: #66665e; font-size: 12px; font-weight: 800; }
.botox-title { margin-top: 42px; }

.treatment-list { display: grid; gap: 12px; }
.treatment-card {
  position: relative; padding: 18px; display: grid; grid-template-columns: minmax(240px, 1fr) minmax(290px, .85fr); gap: 22px;
  align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: .2s ease;
}
.treatment-card:hover { border-color: #c8c8bd; }
.treatment-card.selected { border-color: var(--brand-dark); background: #fcfdf3; box-shadow: inset 4px 0 0 var(--brand); }
.treatment-select { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.treatment-select input { position: absolute; opacity: 0; pointer-events: none; }
.custom-check { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border: 1.5px solid #b8b8ae; border-radius: 7px; color: transparent; font-size: 15px; font-weight: 800; background: #fff; }
.treatment-select input:checked + .custom-check { border-color: var(--black); color: var(--black); background: var(--brand); }
.treatment-name strong { display: block; font-size: 16px; }
.treatment-name small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.treatment-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.treatment-controls label > span { margin-bottom: 5px; font-size: 11px; }
.treatment-controls select { min-height: 42px; font-size: 14px; }
.ideal-note { grid-column: 1 / -1; margin: -6px 39px 0 0; padding: 9px 12px; color: #5d641f; background: #f1f4d2; border-radius: 8px; font-size: 12px; font-weight: 700; }
.ideal-note[hidden] { display: none; }
.botox-card { grid-template-columns: minmax(200px, .8fr) auto minmax(330px, 1fr); }
.botox-price { font-size: 21px; font-weight: 800; }
.single-area-control select { min-height: 42px; }
.single-area-control span { margin-bottom: 5px; font-size: 11px; }
.botox-controls { min-width: 0; }

.pricing-form { grid-template-columns: 220px 1fr; align-items: start; }
.currency-input { position: relative; }
.currency-input input { padding-left: 42px; }
.currency-input b { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.validation-box { margin-top: 22px; padding: 16px 18px; border: 1px solid #e7b5b5; border-radius: 12px; color: #8f2929; background: #fff3f3; }
.validation-box strong { display: block; }
.validation-box ul { margin: 8px 0 0; padding-right: 20px; }

.summary-topline { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid #d7d7cd; color: #686860; font-size: 13px; font-weight: 700; }
.summary-topline span:last-child { direction: ltr; }
.empty-summary { padding: 65px 20px; text-align: center; }
.empty-icon { width: 54px; height: 54px; margin: 0 auto 16px; display: grid; place-items: center; border: 1px dashed #a9a99e; border-radius: 50%; color: #818177; font-size: 27px; }
.empty-summary strong { font-size: 17px; }
.empty-summary p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.summary-items { padding: 18px 0; display: grid; gap: 8px; border-bottom: 1px solid #d7d7cd; }
.summary-item { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.summary-item strong { display: block; font-size: 14px; }
.summary-item small { color: var(--muted); }
.summary-item button { width: 27px; height: 27px; border: 0; border-radius: 50%; color: #77776f; background: #deded4; font-size: 19px; line-height: 1; }
.price-breakdown { padding: 18px 0 15px; display: grid; gap: 9px; }
.price-breakdown > div { display: flex; justify-content: space-between; color: #696961; font-size: 14px; }
.price-breakdown > .discount-details { display: grid; gap: 9px; }
.discount-details > div { display: flex; justify-content: space-between; gap: 14px; }
.discount-details[hidden] { display: none; }
.price-breakdown strong { color: var(--ink); }
.final-total { padding: 18px; display: flex; justify-content: space-between; align-items: center; color: var(--white); background: var(--black); border-radius: 14px; }
.final-total span { font-size: 15px; font-weight: 700; }
.final-total strong { color: var(--brand); font-size: 31px; }
.tax-note { margin: 7px 2px 0; color: var(--muted); font-size: 11px; }
.download-button { width: 100%; min-height: 56px; margin-top: 24px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 12px; color: var(--black); background: var(--brand); font-weight: 800; transition: .2s ease; }
.download-button:hover { background: #d6df78; transform: translateY(-1px); }
.download-button:disabled { opacity: .6; cursor: wait; transform: none; }
.download-button b { font-size: 22px; }
.send-button { width: 100%; min-height: 56px; margin-top: 10px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--black); border-radius: 12px; color: var(--white); background: var(--black); font-weight: 800; transition: .2s ease; }
.send-button:hover { color: var(--brand); transform: translateY(-1px); }
.send-button:disabled { opacity: .6; cursor: wait; transform: none; }
.send-button b { color: var(--brand); font-size: 20px; }
.reset-button { width: 100%; margin-top: 10px; border: 0; color: #6c6c64; background: transparent; font-size: 13px; text-decoration: underline; }
.medical-note { margin-top: 22px; padding: 14px; border: 1px solid #d6d6cc; border-radius: 11px; color: #62625a; background: rgba(255,255,255,.45); font-size: 12px; }
.medical-note strong { color: var(--ink); }
.medical-note p { margin: 3px 0 0; }

.toast { position: fixed; z-index: 100; left: 24px; bottom: 24px; padding: 13px 18px; border-radius: 10px; color: var(--black); background: var(--brand); font-weight: 800; transform: translateY(30px); opacity: 0; pointer-events: none; transition: .25s ease; box-shadow: 0 16px 40px rgba(0,0,0,.22); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { color: white; background: var(--danger); }

.confirmation-dialog { width: min(460px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.confirmation-dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.confirmation-dialog form { position: relative; padding: 36px; }
.dialog-close { position: absolute; top: 14px; left: 16px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #74746d; background: var(--soft); font-size: 24px; line-height: 1; }
.dialog-eyebrow { color: #7e873d; font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.confirmation-dialog h2 { margin: 9px 0 10px; font-size: 26px; line-height: 1.2; }
.confirmation-dialog p { margin: 0; color: var(--muted); line-height: 1.55; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.dialog-actions button { min-height: 48px; border-radius: 10px; font-weight: 800; }
.dialog-save { border: 0; color: var(--black); background: var(--brand); }
.dialog-save:disabled { opacity: .65; cursor: wait; }
.dialog-discard { border: 1px solid #d6d6cc; color: #6b2525; background: var(--white); }

.workspace-page { width: min(1380px, 100%); min-height: calc(100vh - 124px); margin: 0 auto; padding: 46px 42px 80px; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.workspace-kicker { color: #737a31; font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.workspace-heading h2, .doctor-heading h2 { margin: 5px 0 3px; font-size: 36px; }
.workspace-heading p { margin: 0; color: var(--muted); }
.secondary-button { padding: 10px 18px; border: 1px solid #d0d0c5; border-radius: 9px; color: var(--ink); background: var(--white); font-weight: 700; }
.workspace-toolbar { margin-top: 30px; padding: 18px; display: grid; grid-template-columns: minmax(280px, 1fr) auto; gap: 24px; align-items: end; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.search-field input, .doctor-search input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #d8d8ce; border-radius: 9px; background: #fafaf7; }
.workspace-stats { display: flex; gap: 12px; }
.workspace-stats > div { min-width: 105px; padding: 11px 15px; border-radius: 10px; background: var(--soft); }
.workspace-stats span { display: block; color: var(--muted); font-size: 11px; }
.workspace-stats strong { display: block; margin-top: 2px; font-size: 22px; }
.reception-list { margin-top: 20px; display: grid; gap: 10px; }
.reception-row { width: 100%; padding: 18px 20px; display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(130px, .8fr) minmax(110px, .6fr) auto; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: 13px; text-align: right; color: var(--ink); background: var(--white); transition: .18s ease; }
.reception-row:hover { border-color: #bfc874; box-shadow: 0 10px 30px rgba(0,0,0,.06); transform: translateY(-1px); }
.reception-client strong, .reception-amount strong { display: block; font-size: 16px; }
.reception-client span, .reception-cell span, .reception-amount span { display: block; color: var(--muted); font-size: 12px; }
.status-pill { width: fit-content; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status-pending { color: #795715; background: #fff1c7; }
.status-paid { color: #226441; background: #dff3e7; }
.status-cancelled { color: #7f3030; background: #f6dddd; }
.row-arrow { color: #8c8c82; font-size: 22px; }
.workspace-empty { margin-top: 24px; padding: 50px 20px; border: 1px dashed #cfcfc4; border-radius: 14px; text-align: center; color: var(--muted); background: rgba(255,255,255,.5); }

.doctor-page { max-width: 760px; padding-top: 28px; background: #f3f3ed; }
.doctor-heading { display: flex; align-items: center; justify-content: space-between; }
.doctor-heading h2 { font-size: 30px; }
.doctor-refresh { width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--black); background: var(--brand); font-size: 22px; }
.doctor-search { display: block; margin-top: 18px; }
.doctor-search > span { font-size: 11px; }
.doctor-list { margin-top: 16px; display: grid; gap: 12px; }
.doctor-card { overflow: hidden; border: 1px solid #dcdcd1; border-radius: 16px; background: var(--white); box-shadow: 0 8px 26px rgba(0,0,0,.045); }
.doctor-card-top { padding: 15px 17px 12px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid #ecece5; }
.doctor-card-client strong { display: block; font-size: 19px; }
.doctor-card-client span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.doctor-treatments { padding: 12px 17px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.doctor-treatment { min-width: 0; padding: 11px 12px; border: 1px solid #e1e1d7; border-radius: 11px; background: #f7f7f2; }
.doctor-treatment-area { display: block; color: #68685f; font-size: 12px; font-weight: 700; }
.doctor-treatment-quantity { display: block; margin-top: 3px; color: var(--black); font-size: 19px; line-height: 1.15; }
.doctor-treatment-material { display: inline-block; margin-top: 7px; padding: 3px 7px; border-radius: 999px; color: #5c631f; background: var(--brand); font-size: 11px; font-weight: 800; }
.doctor-notes { margin: 0 17px 14px; padding: 9px 11px; border-right: 3px solid var(--brand-dark); color: #5e5e57; background: #f7f7f2; font-size: 12px; white-space: pre-wrap; }
.doctor-card-footer { padding: 9px 17px 11px; display: flex; justify-content: flex-end; align-items: center; gap: 7px; border-top: 1px solid #eeeeE7; color: #898980; font-size: 11px; }
.doctor-card-footer strong { color: #5f5f57; font-size: 14px; }

.quote-detail-dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 20px; background: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.quote-detail-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
.quote-detail-shell { position: relative; padding: 34px; overflow-x: hidden; }
.quote-detail-shell > .dialog-close { z-index: 2; }
.quote-web-header { min-height: 138px; padding: 8px 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, auto); gap: 26px; align-items: start; border-bottom: 1px solid var(--line); }
.quote-web-header > div { min-width: 0; }
.quote-web-header h2 { margin: 4px 0; font-size: 28px; }
.quote-web-header p { margin: 0; color: var(--muted); }
.quote-web-meta { min-width: 0; padding-left: 48px; display: grid; justify-items: start; gap: 4px; direction: ltr; text-align: left; color: var(--muted); font-size: 12px; line-height: 1.3; }
.quote-web-meta strong { display: block; color: var(--ink); font-size: 14px; }
.quote-web-meta .status-pill { direction: rtl; }
.quote-web-section { margin-top: 24px; }
.quote-web-section h3 { margin: 0 0 10px; font-size: 16px; }
.quote-web-items { display: grid; gap: 8px; }
.quote-web-item { padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: 14px; align-items: center; border-radius: 9px; background: var(--soft); }
.quote-web-item > * { min-width: 0; overflow-wrap: anywhere; }
.quote-web-item span { color: var(--muted); line-height: 1.35; }
.quote-web-totals { margin-top: 20px; padding: 16px; display: grid; gap: 8px; border-radius: 12px; color: var(--white); background: var(--black); }
.quote-web-totals > div { display: flex; justify-content: space-between; }
.quote-web-totals .quote-final strong { color: var(--brand); font-size: 27px; }
.quote-web-notes { padding: 12px 14px; border-radius: 9px; color: #606058; background: var(--soft); white-space: pre-wrap; }
.payment-editor { margin-top: 24px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: end; border-top: 1px solid var(--line); }
.payment-editor > div { min-width: 190px; flex: 1 1 220px; }
.payment-editor span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.payment-editor select { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid #d3d3c8; border-radius: 8px; background: var(--white); }
.payment-editor button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; color: var(--black); background: var(--brand); font-weight: 800; }

.pdf-proposal {
  position: fixed; z-index: -100; left: 0; top: 0; width: 794px; min-height: 1122px; visibility: hidden; pointer-events: none; direction: rtl;
  color: #151510; background: #fff; font-family: "Assistant", Arial, sans-serif;
}
.pdf-stage { position: absolute; z-index: 10000; top: 0; left: 0; width: 794px; background: #fff; }
.pdf-proposal.pdf-rendering { position: static; z-index: auto; visibility: visible; pointer-events: auto; }
.pdf-header { height: 150px; padding: 26px 48px; display: flex; justify-content: space-between; align-items: center; color: #fff; background: #090909; border-bottom: 7px solid var(--brand); }
.pdf-brand img { display: block; width: 220px; max-height: 60px; object-fit: contain; }
.pdf-brand span { display: block; margin-top: 9px; color: var(--brand); font-size: 14px; font-weight: 700; }
.pdf-meta { display: grid; gap: 5px; direction: ltr; text-align: left; color: rgba(255,255,255,.65); font-size: 13px; }
.pdf-body { padding: 34px 52px 26px; }
.pdf-kicker { color: #858b43; font-size: 12px; font-weight: 800; letter-spacing: .5px; }
.pdf-intro h2 { margin: 10px 0 12px; font-size: 38px; line-height: 1.02; }
.pdf-intro h2 strong { color: #7f863a; }
.pdf-intro p { margin: 0; color: #73736c; font-size: 15px; }
.pdf-client-strip { margin-top: 28px; padding: 17px 20px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; background: #f2f3e6; border-radius: 10px; }
.pdf-client-strip span { display: block; color: #7a7a71; font-size: 10px; }
.pdf-client-strip strong { display: block; margin-top: 3px; font-size: 14px; }
.pdf-section { margin-top: 34px; break-inside: avoid; }
.pdf-section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.pdf-section-title > span { width: 28px; height: 28px; font-size: 10px; }
.pdf-section-title h3 { margin: 0; font-size: 20px; }
.pdf-table { overflow: hidden; border: 1px solid #deded5; border-radius: 10px; }
.pdf-table-head, .pdf-table-row { display: grid; grid-template-columns: 1.5fr 1fr .8fr; gap: 12px; align-items: center; }
.pdf-table-head { padding: 10px 16px; color: #77776f; background: #f4f4ef; font-size: 10px; font-weight: 800; }
.pdf-table-row { min-height: 43px; padding: 10px 16px; border-top: 1px solid #e7e7df; font-size: 13px; }
.pdf-table-row:first-child { border-top: 0; }
.pdf-table-row span { color: #65655e; }
.pdf-price-card { overflow: hidden; border: 1px solid #d9d9d0; border-radius: 10px; }
.pdf-price-card > div { min-height: 42px; padding: 10px 17px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e4e4dc; font-size: 13px; }
.pdf-price-card > .pdf-discount-details { display: grid; padding: 0; }
.pdf-discount-details > div { min-height: 42px; padding: 10px 17px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e4e4dc; }
.pdf-discount-details > div:last-child { border-bottom: 0; }
.pdf-discount-details[hidden] { display: none; }
.pdf-price-card > div[hidden] { display: none; }
.pdf-price-card .pdf-final { min-height: 67px; border-bottom: 0; color: #fff; background: #090909; }
.pdf-final span { font-size: 15px; font-weight: 800; }
.pdf-final strong { color: var(--brand); font-size: 29px; }
.pdf-notes-section p { margin: 0; padding: 15px 17px; color: #5f5f58; background: #f5f5ef; border-radius: 10px; white-space: pre-wrap; }
.pdf-disclaimer { margin-top: 34px; padding: 16px 18px; border-right: 4px solid var(--brand-dark); background: #f5f5ef; break-inside: avoid; }
.pdf-disclaimer strong { font-size: 12px; }
.pdf-disclaimer p { margin: 4px 0 0; color: #66665f; font-size: 10.5px; line-height: 1.45; }
.pdf-footer { height: 52px; padding: 0 52px; display: flex; justify-content: space-between; align-items: center; color: #aaa; background: #090909; font-size: 9px; letter-spacing: .4px; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 1fr 360px; }
  .calculator-panel { padding: 42px 34px 70px; }
  .treatment-card { grid-template-columns: 1fr; gap: 14px; }
  .botox-card { grid-template-columns: 1fr auto; }
  .single-area-control { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .app-header { min-height: auto; padding: 18px 20px; }
  .header-actions { gap: 10px; }
  .current-user { display: none; }
  .new-client-button { padding: 9px 14px; font-size: 13px; }
  .brand-wrap { gap: 14px; }
  .brand-wrap img { width: 140px; }
  .brand-wrap > div { padding-right: 14px; }
  .brand-wrap h1 { font-size: 17px; }
  .eyebrow, .secure-badge { display: none; }
  .app-shell { display: block; }
  .calculator-panel { padding: 32px 18px 46px; }
  .summary-panel { padding: 26px 18px 40px; border: 0; }
  .summary-sticky { position: static; }
  .section-heading h2 { font-size: 23px; }
  .section-heading p { font-size: 13px; }
  .form-grid, .pricing-form { grid-template-columns: 1fr; }
  .treatment-heading, .pricing-heading { margin-top: 44px; }
  .treatment-card, .botox-card { grid-template-columns: 1fr; padding: 16px; }
  .treatment-controls { grid-template-columns: 1fr 1fr; }
  .botox-price { position: absolute; left: 16px; top: 18px; font-size: 18px; }
  .ideal-note { margin-right: 0; }
  .toast { left: 18px; right: 18px; text-align: center; }
  .confirmation-dialog form { padding: 32px 24px 24px; }
  .dialog-actions { grid-template-columns: 1fr; }
  .login-view { padding: 16px; }
  .login-card { padding: 30px 24px; }
  .login-card img { width: 180px; }
  .workspace-page { min-height: calc(100vh - 92px); padding: 26px 16px 60px; }
  .workspace-heading { align-items: center; }
  .workspace-heading h2 { font-size: 29px; }
  .workspace-heading p { display: none; }
  .workspace-toolbar { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .workspace-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .workspace-stats > div { min-width: 0; padding: 9px; }
  .reception-row { padding: 14px; grid-template-columns: 1fr auto; gap: 8px 12px; }
  .reception-cell { display: none; }
  .reception-amount { grid-column: 1; }
  .reception-row .status-pill { grid-column: 2; grid-row: 1; }
  .row-arrow { grid-column: 2; grid-row: 2; }
  .doctor-page { padding-top: 20px; }
  .doctor-treatments { grid-template-columns: 1fr 1fr; padding: 10px 12px; gap: 7px; }
  .doctor-treatment { padding: 8px 9px; }
  .doctor-treatment-quantity { font-size: 18px; }
  .quote-detail-shell { padding: 30px 18px 20px; }
  .quote-detail-shell > .dialog-close { top: 10px; left: 10px; }
  .quote-web-header { min-height: 0; padding-top: 10px; display: block; }
  .quote-web-meta { margin-top: 12px; padding-left: 46px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; direction: rtl; text-align: right; }
  .quote-web-item { grid-template-columns: 1.2fr 1fr; }
  .quote-web-item span:last-child { grid-column: 1 / -1; }
  .payment-editor { grid-template-columns: 1fr; }
}
