/* Medora design system, 2026-09-20. The uploaded cosmetic artwork is retained. */
:root {
  --brand-primary:#7C5CFC;
  --brand-primary-hover:#6F4FEA;
  --brand-primary-active:#6042D8;
  --brand-soft:#F1EDFF;
  --brand-soft-hover:#EAE4FF;
  --primary:254 95% 68%;
  --primary-foreground:0 0% 100%;
  --background:220 20% 98%;
  --surface:#FFFFFF;
  --card:0 0% 100%;
  --foreground:228 30% 13%;
  --card-foreground:228 30% 13%;
  --muted:220 20% 96%;
  --muted-foreground:211 13% 43%;
  --text-primary:228 30% 13%;
  --text-secondary:211 13% 43%;
  --text-muted:213 12% 55%;
  --text-disabled:213 10% 65%;
  --border:214 24% 91%;
  --border-strong:215 22% 83%;
  --input:215 22% 83%;
  --ring:254 95% 68%;
  --radius-card:16px;
  --radius-control:12px;
  --space-1:8px;--space-2:16px;--space-3:24px;--space-4:32px;--space-6:48px;
  --font-ui:Inter,"Segoe UI",Arial,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  /* Compatibility aliases for the existing clinical workspace components. */
  --accent:var(--brand-primary);
  --ink:hsl(var(--foreground));
  --paper:var(--surface);
  --soft:var(--brand-soft);
  --medora-text-secondary:hsl(var(--text-secondary));
  --medora-border:hsl(var(--border));
  font:16px/22px var(--font-ui);
  color:var(--ink);
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
body{font-family:var(--font-ui);font-size:15px;line-height:22px;background-color:hsl(var(--background));background-image:linear-gradient(rgba(247,248,251,.68),rgba(247,248,251,.68)),url('/clinic/cosmo-pattern.svg');background-repeat:repeat-y;background-size:max(100vw,1180px) auto;background-position:top center}
button,input,select,textarea{font-family:var(--font-ui);font-synthesis:none}
h1,.heading h1,.patient-heading h1{font:700 28px/34px var(--font-ui);letter-spacing:-.015em;color:var(--ink)}
h2{font:700 20px/28px var(--font-ui);letter-spacing:-.01em}
h3{font:600 16px/24px var(--font-ui);letter-spacing:normal}
p{line-height:22px}
.muted{font-size:13.5px;line-height:19px;color:hsl(var(--text-secondary))}
.eyebrow{font:600 11px/16px var(--font-ui);letter-spacing:.06em;color:hsl(var(--text-secondary))}
.error,.danger{color:#b91c1c}
a:not(.button):not(.brand-lockup){color:var(--brand-primary-active)}
button,.button{min-height:42px;padding:10px 16px;border:1px solid hsl(var(--border-strong));border-radius:var(--radius-control);background:white;color:#293244;font-size:14px;line-height:20px;font-weight:600;box-shadow:none;transition:background-color 150ms,border-color 150ms,box-shadow 150ms,transform 150ms}
button:hover,.button:hover{background:#f8fafc;border-color:#94a3b8}
button:active,.button:active{transform:translateY(1px)}
button:disabled,.button[aria-disabled=true]{opacity:.5;cursor:wait}
button.primary,.button.primary{background:hsl(var(--primary));border-color:hsl(var(--primary));color:white;box-shadow:none}
button.primary:hover,.button.primary:hover{background:var(--brand-primary-hover);border-color:var(--brand-primary-hover)}
button.primary:active,.button.primary:active{background:var(--brand-primary-active);border-color:var(--brand-primary-active)}
button.danger{background:#dc2626;border-color:#dc2626;color:white}
.icon-button,.text-button,.quiet{background:transparent;border-color:transparent;box-shadow:none}
.text-button,.quiet{color:var(--brand-primary-active)}
.icon-button:hover,.text-button:hover,.quiet:hover{background:var(--brand-soft);border-color:transparent}
.icon{width:20px;height:20px}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--brand-primary);outline-offset:2px}
input,select,textarea{background:white;color:#171B2C;border:1px solid hsl(var(--border-strong));border-radius:12px;font-size:15px;line-height:22px;padding:9px 12px;min-height:42px;transition:border-color 150ms,box-shadow 150ms}
input:hover,select:hover,textarea:hover{border-color:#94a3b8}
input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:var(--brand-primary);box-shadow:0 0 0 2px #7c5cfc33;outline:none}
input::placeholder,textarea::placeholder{color:#7C8797;opacity:1}
textarea{min-height:112px;padding:10px 12px}
input[type=checkbox]{width:20px;height:20px;min-height:20px;border-radius:6px;accent-color:var(--brand-primary)}
input[type=color]{padding:5px;min-width:0}
label{margin-bottom:16px;color:#293244;font-size:14px;line-height:20px;font-weight:500}
label>span{margin-bottom:8px}
select{padding-inline-end:32px}
.row{gap:8px}.grid{gap:16px}.stack{gap:16px}.split{gap:16px}
.panel{padding:16px;border:1px solid hsl(var(--border));border-radius:16px;background:white;box-shadow:0 1px 2px rgba(16,24,40,.025)}
.heading{min-height:0;gap:16px;margin-bottom:16px;padding:0 0 16px;border-bottom:1px solid hsl(var(--border));align-items:center}
.heading .eyebrow{display:none}.heading h1{margin-bottom:6px}.heading p,.heading h1{ text-shadow:none }
.heading .muted{font-size:15px;line-height:22px}
.heading>.primary{font-size:14px;min-height:42px;padding:10px 16px}
.shell{height:100dvh;min-height:0;display:grid;grid-template-columns:236px minmax(0,1fr);overflow:hidden;background:transparent}
.content{height:100%;overflow-y:auto;overflow-x:hidden;min-width:0;max-width:none;padding:20px 24px 24px;scrollbar-gutter:stable}
.schedule-content{display:flex;flex-direction:column}.schedule-content>*{flex-shrink:0}.schedule-content .schedule-board{flex:1 1 auto;min-height:280px;max-height:none}
.sidebar{height:100%;position:relative;top:auto;padding:20px 12px 12px;display:flex;flex-direction:column;gap:0;background:rgba(251,252,254,.95);border-inline-end:1px solid hsl(var(--border));overflow-y:auto;scrollbar-width:thin}
.sidebar .brand-lockup{padding:0 8px 24px;gap:12px;min-height:68px;align-items:center}
.clinic-mark{width:44px;height:44px;border-radius:10px;object-fit:contain}
.clinic-wordmark strong{font:700 17px/22px var(--font-ui);letter-spacing:-.02em;color:#25203A;overflow-wrap:anywhere}
.clinic-wordmark small{font:600 9px/14px var(--font-ui);letter-spacing:.07em;color:hsl(var(--text-secondary));white-space:normal;margin-top:3px}
.sidebar .clinic-identity{margin:0 8px 12px;padding:0 0 12px;border-color:hsl(var(--border))}
.clinic-identity select{font-size:13px}.clinic-identity strong{font-size:14px}
.sidebar nav{display:flex;flex-direction:column;gap:4px}
.nav-label{padding:12px 12px 6px;font-size:11px;line-height:16px;font-weight:600;letter-spacing:.04em;color:hsl(var(--text-secondary))}
.sidebar button[data-page]{min-height:44px;padding:12px;font-size:15px;line-height:20px;font-weight:500;gap:12px;color:#293244;background:transparent;border:0;border-radius:12px}
.sidebar button[data-page] .icon{width:20px;height:20px;color:#66758c}
.sidebar button[data-page]:hover{background:var(--brand-soft-hover)}
.sidebar button[aria-current=page]{background:var(--brand-soft);color:#25203A;box-shadow:inset 3px 0 0 var(--brand-primary);font-weight:600}
.sidebar button[aria-current=page] .icon{color:var(--brand-primary)}
[dir=rtl] .sidebar button[aria-current=page]{box-shadow:inset -3px 0 0 var(--brand-primary)}
.sidebar-bottom{margin-top:auto;padding-top:24px}
.staff-card{margin-top:12px;padding:16px 4px 10px;border-color:hsl(var(--border));gap:10px}
.staff-card strong{font-size:13px;line-height:18px}.staff-card small{font-size:11px;line-height:16px;color:hsl(var(--text-secondary))}
.staff-card .avatar{width:36px;height:36px;font-size:12px}.staff-card .icon-button{min-height:36px;min-width:36px}
.language-row{padding:8px 4px;font-size:11px;line-height:16px}.language-row select{font-size:12px;min-height:34px;background:white}
.avatar{background:var(--brand-soft);color:#5a3ca6;border-radius:12px;font-size:13px;font-weight:600}
.patient-avatar{height:52px;width:52px;border-radius:16px;font-size:18px;background:var(--brand-soft);box-shadow:none}
.breadcrumb{font-size:13px;line-height:18px;color:hsl(var(--text-secondary));margin-bottom:16px}
.breadcrumb button{font-size:13px;color:hsl(var(--text-secondary));min-height:26px}
.patient-heading{gap:16px;margin-bottom:20px}.patient-heading h1{margin-bottom:6px}.patient-meta{font-size:13.5px;line-height:19px;color:hsl(var(--text-secondary));flex-wrap:wrap}
.patient-heading .row button{font-size:14px;padding:10px 12px}.person{gap:12px}
.tabs{padding:4px;gap:4px;margin-bottom:20px;background:white;border:1px solid hsl(var(--border));border-radius:12px;scrollbar-width:thin}
.tabs button{font-size:14px;line-height:20px;min-height:42px;border-radius:8px;padding:10px 12px;color:#475569;font-weight:500}
.tabs button[aria-selected=true]{background:var(--brand-soft);color:#25203A;font-weight:600;box-shadow:none}
.tabs button:hover{background:var(--brand-soft-hover)}.tabs .icon{width:18px;height:18px}
.registry,.service-panel{padding:0}.registry-toolbar{padding:16px;gap:16px;border-color:hsl(var(--border));background:white}
.search-field{min-height:42px;gap:8px;border:1px solid hsl(var(--border-strong));border-radius:12px;background:white;padding-inline:12px;max-width:420px;min-width:0}
.search-field input{font-size:15px;min-height:40px;padding:8px 0;border:0;background:transparent;outline:none;box-shadow:none;min-width:0}
.search-field:focus-within{border-color:var(--brand-primary);box-shadow:0 0 0 2px #7c5cfc33}.search-field>.icon{width:16px;height:16px;color:#66758c}
.patient-table-head{font-size:13px;line-height:18px;font-weight:600;padding:12px 16px;background:#f8fafc;color:hsl(var(--text-secondary))}
.patient-table-row{min-height:68px;padding:12px 16px;gap:16px;border-color:hsl(var(--border));font-size:14.5px;line-height:21px}
.patient-table-row:hover{background:var(--brand-soft)}.patient-name-button{min-height:40px}.patient-name-button strong{font-size:16px;line-height:22px;font-weight:600}.patient-name-button small{font-size:13px;line-height:18px;margin-top:2px}
.table-phone,.table-dob{font-size:14.5px;line-height:21px;color:hsl(var(--text-secondary))}
.overview-grid,.overview-bottom{gap:16px}.overview-bottom{grid-template-columns:minmax(0,1fr) 300px}
.section-heading{margin-bottom:16px;gap:12px}.section-heading h2{font-size:16px;line-height:24px;font-weight:600}.section-heading>.icon{color:#7c5cfc}.section-heading .text-button{font-size:13px;min-height:36px;padding-inline:8px}
dl>div{font-size:14.5px;line-height:21px;padding:12px 0;border-color:hsl(var(--border))}.allergy-line{font-size:14px;line-height:20px;background:var(--brand-soft);border-radius:12px;padding:12px;margin-bottom:16px}
.medical-summary .eyebrow{font-size:11px}.summary-copy{font-size:15px;line-height:22px}.medical-summary .text-button{font-size:14px;padding-inline:8px}
.summary-stats{gap:16px;margin:16px 0}.summary-stat{padding:16px;gap:12px;background:white;border-color:hsl(var(--border));border-radius:16px}.summary-stat strong{font-size:26px;line-height:30px;font-weight:700}.summary-stat small{font-size:13px;line-height:18px;color:hsl(var(--text-secondary))}.stat-icon{background:var(--brand-soft);color:var(--brand-primary);width:40px;height:40px;border-radius:12px}
.next-step{padding:20px;border-radius:16px;background:var(--brand-soft);border-color:#e4dcff;color:var(--ink)}.next-step h2{font:700 20px/28px var(--font-ui)}.next-step p{font-size:14px;line-height:22px;color:hsl(var(--text-secondary))}.next-step>button,.next-step>button:not(.text-button){font-size:14px;background:white;border-color:hsl(var(--border-strong))}.next-step .text-button{font-size:13px}.next-divider{background:#ded6f4;margin:16px 0}
.visit-row{padding:14px 0;border-color:hsl(var(--border));gap:12px}.visit-row h3{font-size:15px;line-height:22px}.visit-row p{font-size:13px;line-height:18px}.visit-marker{border-color:hsl(var(--border));background:#f8fafc;color:#66758c}
.day-intro{padding:24px;background:white;border-color:hsl(var(--border));border-radius:16px}.day-intro h2{font:700 28px/34px var(--font-ui)}.day-intro p{font-size:15px;line-height:22px}.day-count{border-color:hsl(var(--border));color:var(--brand-primary)}.day-count strong{font:700 40px/46px var(--font-ui)}.day-count span{font-size:13px;color:hsl(var(--text-secondary))}
.pill{font-size:13px;line-height:18px;font-weight:600;padding:4px 10px;border-radius:8px;background:#f8fafc;border:1px solid #e2e8f0;color:#475569;white-space:normal}.signed-pill{background:#ecfdf5;border-color:#a7f3d0;color:#047857}
.list-row{padding:16px 0;gap:12px;border-color:hsl(var(--border))}.list-row h3{font-size:16px;line-height:24px}.list-row .muted{font-size:13.5px;line-height:19px}
.table th{font-size:13px;line-height:18px;font-weight:600;color:hsl(var(--text-secondary));background:#f8fafc}.table td{font-size:14.5px;line-height:21px}.table th,.table td{padding:12px;border-color:hsl(var(--border))}
.empty{padding:40px 20px;font-size:14px;line-height:22px;color:hsl(var(--text-secondary))}.price{font-size:30px;font-weight:700}.total-row{border-color:hsl(var(--border))}
.subheading{gap:16px;margin:20px 0 16px}.subheading h2{font-size:20px;line-height:28px;font-weight:700;margin-bottom:4px}.subheading p{font-size:13.5px;line-height:19px}.subheading button{font-size:14px}
.service-row{gap:16px;padding:16px;border-color:hsl(var(--border))}.service-row h3{font-size:16px;line-height:24px}.service-row p{font-size:13px;line-height:18px;margin-top:4px}.service-row button{font-size:14px}.service-row>strong{font-size:15px}.service-color{height:32px;width:6px}
.settings-layout{grid-template-columns:220px minmax(0,1fr);gap:20px}.settings-nav{padding:8px;gap:4px;top:0}.settings-nav button{font-size:14px;line-height:20px;min-height:44px;padding:12px;gap:10px;color:#293244}.settings-nav button .icon{width:18px;height:18px}.settings-nav button[aria-current=page]{background:var(--brand-soft);color:#25203a;font-weight:600}
.brand-preview{padding:20px;background:#f8fafc;border-color:hsl(var(--border));border-radius:12px;gap:16px}.brand-preview img{width:64px;height:64px;border-radius:12px}.brand-preview strong{font:700 22px/28px var(--font-ui);letter-spacing:-.02em}.brand-preview small{font-size:11px;line-height:16px;color:hsl(var(--text-secondary))}.logo-actions button,.logo-actions label{font-size:14px}.settings-layout .panel h3{margin-top:24px;font-size:16px}
.plan-workspace{grid-template-columns:260px minmax(0,1fr);gap:16px}.catalogue{padding:16px;top:0}.catalogue>.eyebrow{padding:0}.catalogue .search-field{border:1px solid hsl(var(--border-strong));margin-bottom:12px}.catalogue input{font-size:14px}.catalogue-item{padding:12px 8px;gap:10px;min-height:68px;border-radius:8px;font-weight:400}.catalogue-item strong{font-size:14px;line-height:20px;font-weight:600}.catalogue-item small{font-size:13px;line-height:18px;color:hsl(var(--text-secondary))}.catalogue-item b{color:var(--brand-primary)}.catalogue-item:hover{background:var(--brand-soft)}
.plan-builder{padding:20px}.plan-builder label>span{font-size:14px;line-height:20px}.plan-empty{margin:12px 0 20px;padding:40px 20px;background:#f8fafc;border-color:hsl(var(--border-strong));border-radius:12px}.plan-empty .icon{color:var(--brand-primary)}.plan-empty p{font-size:14px;line-height:22px}
.plan-line{padding:16px 0;border-color:hsl(var(--border))}.plan-line>.row{margin-bottom:16px}.plan-line h3{font-size:16px;line-height:24px}.line-number{width:28px;height:28px;font-size:13px;background:var(--brand-soft);color:var(--brand-primary-active)}
.plan-line-fields{grid-template-columns:1fr 1fr 75px 100px;gap:12px}.plan-line-fields label>span{font-size:13px;line-height:18px}.plan-line-fields input{font-size:15px;min-height:42px;padding:9px 10px}.line-total{grid-column:1/-1;text-align:end}.line-total small{font-size:13px;line-height:18px;color:hsl(var(--text-secondary))}.line-total strong{font-size:16px;line-height:24px}.plan-meta{margin-top:20px}.plan-meta textarea{font-size:15px;min-height:112px}.plan-footer{border-color:hsl(var(--border));padding-top:16px}.plan-footer strong{font-size:28px;line-height:34px;font-weight:700}.plan-footer .muted{font-size:13.5px}.plan-footer button{font-size:14px}.saved-banner{padding:12px;font-size:14px;line-height:20px;border:1px solid #a7f3d0;background:#ecfdf5;color:#047857}.saved-plans .list-row button,.saved-plans .list-row .button{font-size:14px}.saved-plans .list-row .muted{font-size:13px}
.notes-layout{grid-template-columns:250px minmax(0,1fr);gap:16px}.note-history{padding:12px}.note-link{padding:12px;border-radius:10px}.note-link.selected{background:var(--brand-soft);border-color:#ddd2ff}.note-link strong{font-size:14px;line-height:20px}.note-link small{font-size:12px;line-height:18px}.note-link .pill{font-size:12px;line-height:18px}.note-fields{gap:16px}.note-fields label>span{font-size:14px;line-height:20px;min-height:40px}.note-fields textarea{min-height:112px;font-size:15px}.note-fields h3{font-size:14px}.note-fields .document-text{font-size:15px}.note-footer{padding-top:16px;margin-top:20px;border-color:hsl(var(--border));gap:8px}.note-footer button{font-size:14px}.note-footer .muted{font-size:13px;line-height:18px}
.document-flow{background:var(--brand-soft);border-color:#e4dcff;border-radius:12px;padding:16px;gap:16px;margin-bottom:16px}.document-flow>span{font-size:13px;line-height:18px;color:#5a4785}.document-row{padding:16px 0;gap:16px;border-color:hsl(var(--border))}.document-row h3{font-size:16px;line-height:24px}.document-row .button,.document-row button{font-size:14px}.document-icon{background:var(--brand-soft);color:var(--brand-primary)}.document-text{font-size:15px;line-height:24px}
.photo-filters{gap:8px;margin-bottom:16px}.photo-filters button{font-size:14px;min-height:42px;padding:10px 16px}.photo-filters button[aria-pressed=true]{background:var(--brand-soft);border-color:#d9ceff;color:#4c3881}.photo-filters button span{font-size:12px;color:hsl(var(--text-secondary))}.photo{background:white;border-color:hsl(var(--border));border-radius:16px}.photo img{background:#f8fafc}.photo-empty{border-color:hsl(var(--border-strong));background:#f8fafc;border-radius:16px;padding:40px 24px}.photo-empty>.icon{color:var(--brand-primary)}.photo-empty h3{font-size:16px;font-weight:600}.photo-empty p,.photo-empty button{font-size:14px}
.chart-surface{background:#f5f7fb;border-color:hsl(var(--border));border-radius:16px}.chart-bar{padding:12px 16px;border-color:hsl(var(--border));background:white}.chart-title h2{font-size:16px;line-height:24px;font-weight:600}.chart-title>.icon{color:var(--brand-primary)}.chart-status{font-size:13px;line-height:18px;color:hsl(var(--text-secondary))}.status-dot{background:#10b981}.chart-frame{background:#f5f7fb}.chart-menu>div{border-color:hsl(var(--border));background:white;box-shadow:0 12px 32px #0f172a1a}.chart-menu button{font-size:14px}.chart-menu small,.chart-history{font-size:13px;line-height:18px}
.schedule-toolbar{padding:12px 16px;margin-bottom:16px;background:white;border-color:hsl(var(--border));border-radius:16px;gap:16px}.schedule-toolbar button{font-size:14px;line-height:20px;min-height:42px;padding:10px 14px}.schedule-toolbar input{font-size:15px;min-height:42px;padding:9px 12px;width:165px}.timezone-tag{font-size:12px;line-height:18px;color:hsl(var(--text-secondary))}
.schedule-board{background:white;border-color:hsl(var(--border));border-radius:16px;max-height:calc(100dvh - 232px);min-height:320px;box-shadow:0 1px 2px rgba(16,24,40,.025)}
.schedule-head{background:#f8fafc;border-color:hsl(var(--border));z-index:8}.schedule-head>div{padding:14px 16px;gap:12px;border-color:hsl(var(--border))}.schedule-head .avatar{width:36px;height:36px;font-size:12px;background:var(--brand-soft)}.schedule-head strong{font-size:15px;line-height:22px;font-weight:600}.schedule-head small{font-size:13px;line-height:18px;color:hsl(var(--text-secondary))}
.time-axis{background:#fafbfc}.time-axis span{font-size:13px;line-height:18px;color:hsl(var(--text-secondary));padding-top:6px;font-variant-numeric:tabular-nums}
.doctor-column{border-color:hsl(var(--border));background:repeating-linear-gradient(to bottom,transparent 0,transparent 44px,#f0f2f6 44px,#f0f2f6 45px,transparent 45px,transparent 89px,#e3e8ef 89px,#e3e8ef 90px)}
.time-slot{min-height:0;border-radius:0;background:transparent}.time-slot:hover,.time-slot:focus-visible{background:#7c5cfc0b}.time-slot:hover::after{color:#a28deb}
.appointment-card{background:var(--service-color);color:var(--service-ink,#fff);border:1px solid color-mix(in srgb,var(--service-color),black 16%);border-inline-start:4px solid color-mix(in srgb,var(--service-color),black 25%);border-radius:10px;padding:6px 10px;gap:2px;min-height:0;box-shadow:0 1px 2px #10182808;line-height:1.2}
.appointment-card:hover,.appointment-card:focus-visible{background:var(--service-color);border-color:var(--service-color);box-shadow:0 0 0 3px #7c5cfc55;z-index:12;transform:none}
.appointment-card>strong{font-size:16px;line-height:19px;font-weight:600}.appointment-card>span:not(.appointment-time){font-size:14px;line-height:18px;color:inherit;opacity:.95}.appointment-time{font-size:13px;line-height:17px;color:inherit;font-weight:400;font-variant-numeric:tabular-nums}
.appointment-card.compact{padding:3px 8px;gap:1px}.appointment-card.compact>strong{font-size:14px;line-height:18px}.appointment-card.compact .appointment-time{font-size:12px;line-height:16px}.appointment-card.compact>span:not(.appointment-time){display:none}
.appointment-card.micro{flex-direction:row;align-items:center;padding:1px 6px;gap:6px}.appointment-card.micro .appointment-time{width:auto;font-size:11px;line-height:14px;white-space:nowrap}.appointment-card.micro>strong{font-size:12px;line-height:14px}.appointment-card.micro>span:not(.appointment-time),.appointment-card.micro .status-symbol{display:none}
.appointment-card.completed{background:var(--service-color);border-color:#059669}.appointment-card.arrived,.appointment-card.confirmed{border-inline-start-color:#059669}.appointment-card.cancelled{opacity:.6}
.status-symbol{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid #fcd34d;border-radius:6px;background:#fffbeb;position:relative;color:#92400e;font:700 13px/16px var(--font-ui);font-style:normal;flex:none}
.status-symbol::after{content:'…'}.status-symbol.confirmed,.status-symbol.arrived,.status-symbol.completed{background:#ecfdf5;color:#047857;border-color:#6ee7b7}.status-symbol.confirmed::after,.status-symbol.arrived::after,.status-symbol.completed::after{content:'✓'}.status-symbol.cancelled,.status-symbol.no_show{background:#f1f5f9;border-color:#cbd5e1;color:#475569}.status-symbol.cancelled::after{content:'×';position:static;inset:auto;width:auto;height:auto;background:none;transform:none}.status-symbol.no_show::after{content:'!'}
.appointment-hover{position:fixed;inset:auto;width:340px;max-width:calc(100vw - 32px);padding:16px;border:1px solid #d8deea;border-radius:16px;background:white;color:var(--ink);box-shadow:0 12px 32px rgba(15,23,42,.16);font-size:14px;line-height:20px;z-index:100;pointer-events:none;animation:medora-tooltip 160ms 120ms both}
.appointment-hover b{font-size:16px;line-height:24px;font-weight:600}.appointment-hover p{font-size:14px;line-height:20px;margin-bottom:8px}.appointment-hover small{font-size:13px;line-height:18px;color:hsl(var(--text-secondary));border-color:hsl(var(--border));padding-top:12px;margin-top:12px}
@keyframes medora-tooltip{from{opacity:0}to{opacity:1}}
.schedule-legend{font-size:13px;line-height:18px;gap:16px;margin:16px 0;color:hsl(var(--text-secondary))}.schedule-legend>span{gap:8px}.schedule-outside{font-size:14px;background:#f8fafc;padding:12px 16px}.schedule-outside button{font-size:13px;min-height:36px;padding:8px 12px}.sync-queue{padding:16px;background:#fffbeb;border-color:#fde68a;border-radius:12px}.sync-queue summary{font-size:14px;line-height:20px}.sync-queue summary b{background:#fef3c7;color:#92400e}.sync-queue button{font-size:14px}
dialog{padding:24px;max-width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);background:white;border:1px solid hsl(var(--border));border-radius:16px;box-shadow:0 24px 64px #0f172a33;color:var(--ink)}
dialog::backdrop{background:rgba(2,6,23,.35);backdrop-filter:blur(2px)}dialog h2{font:700 20px/28px var(--font-ui);margin-bottom:20px}.modal-footer{gap:8px;padding-top:16px;margin-top:20px;border-top:1px solid hsl(var(--border))}
#notice{padding:14px 20px;max-width:calc(100vw - 32px);font-size:14px;line-height:20px;background:white;border-color:hsl(var(--border-strong));border-radius:12px;box-shadow:0 8px 24px #0f172a1a}
.login{width:calc(100% - 32px);max-width:440px;margin:10vh auto;padding:32px;background:white;border:1px solid hsl(var(--border));border-radius:16px}.login .brand{font:700 17px/22px var(--font-ui);letter-spacing:-.02em;color:#25203a}.login input{min-height:48px}.patient-page{background:white;border-color:hsl(var(--border));border-radius:16px}.patient-page canvas{border-color:hsl(var(--border-strong))}.audit{font-size:13px;line-height:20px}
@media(min-width:1536px){.plan-line-fields{grid-template-columns:1.3fr 1fr 80px 100px 130px}.line-total{grid-column:auto;align-self:center}.plan-workspace{grid-template-columns:280px minmax(0,1fr)}}
@media(max-width:1279px){.settings-layout{grid-template-columns:200px minmax(0,1fr);gap:16px}.plan-workspace{grid-template-columns:220px minmax(0,1fr)}.plan-line-fields{grid-template-columns:1fr 1fr}.line-total{grid-column:1/-1}.note-fields{grid-template-columns:1fr}.note-fields label>span{min-height:0}.notes-layout{grid-template-columns:210px minmax(0,1fr)}.overview-bottom{grid-template-columns:minmax(0,1fr) 260px}.tabs button{padding-inline:10px;font-size:13px}.schedule-toolbar .timezone-tag{display:none}}
@media(min-width:768px) and (max-width:1023px){.shell{grid-template-columns:196px minmax(0,1fr)}.sidebar{padding-inline:8px}.sidebar .brand-lockup{padding-inline:4px;gap:10px}.sidebar button[data-page]{font-size:14px;gap:10px}.clinic-wordmark strong{font-size:16px}.content{padding:20px 16px}.overview-grid,.overview-bottom{grid-template-columns:1fr}.patient-heading .row{margin-inline-start:0}.settings-layout{display:block}.settings-nav{position:static;flex-direction:row;overflow:auto;margin-bottom:16px}.settings-nav button{flex:none}.plan-workspace{display:flex;flex-direction:column}.catalogue{position:static;width:100%}#catalogue-list{display:flex;overflow:auto}.catalogue-item{min-width:190px;max-width:240px}.plan-builder{width:100%}.schedule-toolbar{gap:12px}}
@media(max-width:767px){
  .shell{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);height:100dvh;overflow:hidden}
  .sidebar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:8px;padding:12px 12px 8px;height:auto;overflow:visible;border-inline-end:0;border-bottom:1px solid hsl(var(--border));background:#fbfcfefa}
  .sidebar .brand-lockup{grid-row:1;grid-column:1;min-height:44px;padding:0 4px;gap:10px}.clinic-mark{width:40px;height:40px}.clinic-wordmark strong{font-size:16px;line-height:22px}.clinic-wordmark small{font-size:9px;line-height:12px}
  .sidebar .clinic-identity{display:none}.sidebar nav{grid-row:2;grid-column:1/-1;flex-direction:row;gap:4px;overflow-x:auto;scrollbar-width:none;width:100%}.nav-label{display:none}.sidebar nav button[data-page]{width:auto;flex:none;min-height:42px;padding:10px 12px;gap:8px;font-size:13px;line-height:20px}.sidebar nav .icon{width:18px;height:18px}
  .sidebar-bottom{grid-column:2;grid-row:1;display:flex;align-items:center;gap:4px;padding:0;margin:0}.sidebar-bottom>button[data-page]{width:38px;min-height:40px;padding:8px}.sidebar-bottom>button[data-page]>span,.staff-card{display:none}.language-row{padding:0}.language-row>span{display:none}.language-row select{width:61px;min-height:36px;font-size:12px}
  .content{padding:16px;overflow-y:auto;height:100%;scrollbar-gutter:auto}.heading{gap:12px;margin-bottom:16px;align-items:flex-start}.heading h1,.patient-heading h1{font-size:25px;line-height:32px}.heading .muted{font-size:14px;line-height:20px}.heading>.primary{font-size:14px;padding:10px 12px}
  .panel{padding:16px}.registry,.service-panel{padding:0}.registry-toolbar{padding:12px;gap:12px;flex-wrap:wrap}.registry-toolbar .muted{font-size:13px}.search-field{min-width:180px}.search-field input{font-size:16px}.patient-table-head,.patient-table-row{grid-template-columns:minmax(0,1fr) 40px;padding:12px;gap:8px}.patient-table-head>span:nth-child(2),.patient-table-head>span:nth-child(3),.table-phone,.table-dob{display:none}.patient-name-button strong{font-size:15px}.patient-name-button small{font-size:13px}.patient-table-row{min-height:64px}
  .patient-heading{gap:12px;margin-bottom:16px;flex-wrap:wrap}.patient-heading .row{margin:0;flex-wrap:wrap;width:100%}.patient-heading .row button{font-size:14px;flex:1;padding:10px 12px}.patient-meta{font-size:13px;line-height:18px}.tabs{margin-bottom:16px}.tabs button{flex:none;font-size:13px;min-height:42px;padding:10px 12px}
  .overview-grid,.overview-bottom,.split,.grid{grid-template-columns:1fr}.summary-stats{gap:8px}.summary-stat{display:block;padding:12px}.summary-stat strong{font-size:24px;line-height:28px}.summary-stat small{font-size:12px;line-height:18px}.summary-stat .stat-icon{display:none}.section-heading{flex-wrap:wrap}.section-heading h2{font-size:16px}.section-heading .text-button{font-size:13px}.day-intro{padding:20px;gap:12px}.day-intro h2{font-size:24px;line-height:30px}.day-count{padding-inline:16px}.day-count strong{font-size:32px;line-height:40px}
  .settings-layout{display:block}.settings-nav{position:static;flex-direction:row;overflow:auto;margin-bottom:16px;padding:8px}.settings-nav button{flex:none;font-size:14px}.brand-preview{padding:16px;gap:12px}.brand-preview img{width:52px;height:52px}.brand-preview strong{font-size:20px;line-height:26px}.logo-actions button,.logo-actions label{font-size:13px}
  .plan-workspace{display:flex;flex-direction:column}.catalogue{position:static;width:100%;padding:16px}#catalogue-list{display:flex;gap:4px;overflow:auto}.catalogue-item{min-width:190px;max-width:240px}.catalogue>.search-field{max-width:none}.plan-builder{width:100%;padding:16px}.plan-line-fields{grid-template-columns:1fr 1fr;gap:12px}.plan-line-fields input{font-size:16px}.plan-footer{position:sticky;bottom:-16px;background:white;padding-block:16px;z-index:3}.plan-footer strong{font-size:24px;line-height:30px}.plan-footer button{font-size:14px}.saved-plans .stat-icon{display:none}.saved-plans .list-row{gap:10px}
  .notes-layout{display:block}.note-history{display:flex;gap:8px;overflow:auto;margin-bottom:16px;padding:12px}.note-history>.eyebrow{display:none}.note-link{min-width:185px;max-width:220px;margin:0}.note-fields{grid-template-columns:1fr}.note-fields textarea{font-size:16px}.note-fields label>span{min-height:0}.note-footer{position:static;background:white;padding-bottom:0}.note-footer .grow{flex-basis:100%}.document-flow{flex-direction:column;align-items:flex-start;gap:12px}.document-flow>.flow-arrow{display:none}.document-row{flex-wrap:wrap;gap:12px}.document-row .grow{flex-basis:60%}
  .service-panel .registry-toolbar select{max-width:none}.service-row{padding:14px;gap:10px;flex-wrap:wrap}.service-row .grow{flex-basis:50%}.service-row h3{font-size:15px;line-height:22px}.service-row p{font-size:13px}.service-row>strong{font-size:15px}.service-row button{font-size:13px;padding:10px 12px}
  .schedule-toolbar{padding:12px;gap:12px}.schedule-toolbar>.row{width:100%;gap:8px}.schedule-toolbar .row:last-child{justify-content:flex-end}.schedule-toolbar button{font-size:13px;padding:10px 12px}.schedule-toolbar input{flex:1;min-width:125px;width:130px;font-size:15px}.schedule-board{max-height:62dvh;min-height:280px}.schedule-head,.schedule-body{grid-template-columns:55px repeat(var(--doctor-count),minmax(230px,1fr));min-width:calc(55px + var(--doctor-count)*230px)}.schedule-head>div{padding:12px}.schedule-legend{gap:12px;font-size:12px}
  .chart-bar{padding:12px;gap:8px;flex-wrap:wrap}.chart-title h2{font-size:15px}.chart-status{font-size:12px}.chart-menu>div{width:240px}.chart-frame{min-height:760px}.photo-empty{padding:32px 20px}.subheading{align-items:flex-start;flex-wrap:wrap}.subheading button{font-size:14px}.patient-page{margin:0;border-radius:0;padding:20px}.login{padding:24px;margin:32px auto}input,select,textarea{font-size:16px}.check input{margin-top:1px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media(max-width:767px){.plan-footer{position:static;bottom:auto}.plan-builder .grid{grid-template-columns:1fr}.plan-line-fields label>span{min-height:36px;display:flex;align-items:flex-end}}
@media print{body,.shell{background:white;height:auto;overflow:visible}.shell{display:block}.sidebar{display:none}.content{height:auto;overflow:visible;padding:0}.panel{box-shadow:none}.schedule-board{max-height:none}}
/* Shared patient workspace — one visit across all six tabs. */
.visit-context-bar{display:flex;align-items:center;gap:12px;min-height:48px;padding:8px 12px;background:#fff;border:1px solid var(--medora-border);border-radius:12px;margin:12px 0 16px;flex-wrap:wrap;font-size:13.5px}
.visit-context-bar label{display:flex;align-items:center;gap:8px;margin:0}.visit-context-bar select{max-width:290px;min-height:40px}.visit-context-bar button{min-height:40px;font-size:13px}.visit-context-bar #context-save{color:var(--medora-text-secondary);font-size:13px}
.registry-columns{grid-template-columns:minmax(0,32fr) minmax(0,20fr) minmax(0,10fr) minmax(0,19fr) minmax(0,19fr)!important;gap:12px!important}.registry-columns>*{min-width:0;overflow-wrap:anywhere}.registry-date small{display:none}.registry-pagination{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding-top:16px}.patient-table-row{min-height:68px}.patient-name-button strong{font-size:16px;line-height:22px}.patient-name-button small{font-size:13px}.patient-table-head{font-size:13px}
.medical-overview{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px}.medical-overview .panel{padding:20px}.overview-contact{grid-area:1/1}.overview-current{grid-area:1/2;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.overview-history{grid-area:2/1}.overview-related{grid-area:2/2;display:grid;gap:16px;align-content:start}.overview-related h2{font-size:18px;line-height:25px;margin:8px 0}.overview-history .visit-row{flex-wrap:wrap}.overview-history .visit-row .row{gap:6px}.overview-history .visit-row button{padding-inline:10px}
.notes-layout{grid-template-columns:248px minmax(0,1fr);gap:16px}.note-editor{padding:24px}.note-editor form,.note-reading{max-width:840px}.note-fields{display:block}.note-fields>label,.note-fields>section{display:block;margin:24px 0}.note-fields textarea{min-height:112px}.note-fields label>span{display:block;font-size:16px;line-height:24px;font-weight:600;margin-bottom:8px}.note-reading section{margin:24px 0}.note-reading h3{color:#49336f;margin-bottom:8px}.note-reading .document-text{font-size:15px;line-height:24px;overflow-wrap:anywhere}.note-footer{position:static;padding-top:16px;border-top:1px solid var(--medora-border);flex-wrap:wrap}.facts-table{max-width:100%;overflow:auto;margin-top:12px}.facts-table table{border-collapse:collapse;width:100%;font-size:14px}.facts-table td,.facts-table th{text-align:start;border-bottom:1px solid var(--medora-border);padding:10px 8px;vertical-align:top}.facts-table th{font-size:13px;color:var(--medora-text-secondary);background:#f8f6ff}
.consent-selection{padding-top:20px;margin-top:20px;border-top:1px solid var(--medora-border)}.consent-selection>.row{margin:12px 0;flex-wrap:wrap}.plan-row-check{width:20px!important;height:20px!important;min-height:20px!important;accent-color:#7c5cfc;flex:none}.consent-selection .check{margin:0;gap:8px}.consent-selection .check input{width:20px}.plan-line .line-number{flex:none}.plan-line h3{overflow-wrap:anywhere}.catalogue select{margin-top:12px;width:100%}.catalogue-item[hidden]{display:none!important}.plan-workspace{grid-template-columns:264px minmax(0,1fr)}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.dialog-heading h2{margin:0}.document-dialog{width:min(1120px,calc(100vw - 32px))!important}.note-dialog{width:min(960px,calc(100vw - 32px))!important}.photo-dialog{width:min(1200px,calc(100vw - 32px))!important}.pdf-preview{display:block;width:100%;height:65dvh;min-height:320px;border:1px solid var(--medora-border);border-radius:12px;background:#eef0f4}.document-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.selected-document-rows{border:1px solid var(--medora-border);border-radius:12px;margin:16px 0;padding:0 16px}.selected-document-rows>div{display:flex;gap:16px;justify-content:space-between;padding:12px 0}.selected-document-rows>div+div{border-top:1px solid var(--medora-border)}.document-filters{display:flex;gap:12px;margin:16px 0}.document-filters label{min-width:150px;margin:0}.document-row{flex-wrap:wrap}
.photo-filter-row{display:flex;align-items:flex-end;gap:12px;margin:12px 0;flex-wrap:wrap}.photo-filter-row label{margin:0;flex:1;min-width:150px}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.photo-grid .photo{padding:0;overflow:hidden}.photo-grid img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;background:#f3f4f7}.photo-caption{padding:16px}.photo-caption h3{font-size:15px}.photo-caption p{font-size:13px;margin:6px 0}.photo-caption .check{margin-top:12px}.photo-comparison{display:grid;grid-template-columns:1fr 1fr;gap:16px}.photo-comparison figure{margin:0;min-width:0}.photo-comparison img{width:100%;height:55dvh;object-fit:contain;background:#f4f5f7;transform:none;direction:ltr}.photo-comparison figcaption{display:flex;flex-direction:column;gap:6px;padding:8px 0}.photo-comparison figcaption span{font-size:13px;color:var(--medora-text-secondary)}
.presentation-dialog{width:100vw!important;max-width:100vw!important;height:100dvh;max-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;padding:24px!important}.presentation-dialog .dialog-heading{max-width:1200px;margin:0 auto 16px}.patient-presentation{font-size:18px;line-height:28px;max-width:1200px;margin:auto}.patient-presentation header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}.presentation-clinic{display:flex;align-items:center;gap:12px}.presentation-clinic img{width:44px;height:44px;object-fit:contain}.patient-presentation .pdf-preview{height:68dvh}.patient-presentation>.muted{font-size:13px;margin-top:16px}.patient-presentation .photo-comparison a{display:none}
.appointment-detail-dialog{width:400px!important;max-width:calc(100vw - 32px)!important;margin:16px 16px 16px auto!important;height:calc(100dvh - 32px);max-height:none!important}.appointment-detail-dialog .stack{gap:16px}.appointment-detail-dialog h3{margin:14px 0 4px}.appointment-detail-dialog .appointment-actions{display:grid;gap:12px;margin-top:24px}.appointment-detail-dialog dl{margin:16px 0}.schedule-head.week-head>div{padding:12px 8px}.schedule-board .appointment-card{min-height:0!important}.schedule-toolbar{flex-wrap:wrap}.schedule-filter{max-width:200px}.schedule-board{scrollbar-gutter:stable}
@media(min-width:1024px) and (max-width:1430px){.notes-layout{grid-template-columns:200px minmax(0,1fr)}.plan-workspace{grid-template-columns:230px minmax(0,1fr)}.medical-overview{grid-template-columns:minmax(0,1fr) 280px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1023px){.medical-overview{display:flex;flex-direction:column}.notes-layout,.plan-workspace{grid-template-columns:1fr}.note-history{display:flex;gap:8px;overflow:auto;align-items:flex-start}.note-history>h3{display:none}.note-link{min-width:180px}.note-editor{padding:20px}.catalogue{position:static}.catalogue #catalogue-list{display:flex;overflow:auto;max-height:200px}.catalogue-item{min-width:210px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.registry-columns{grid-template-columns:minmax(0,2fr) minmax(0,1.2fr) 60px!important}.registry-columns .registry-date{display:none}.document-filters{flex-wrap:wrap}.document-filters label{flex:1}}
@media(max-width:767px){button,.button,input,select{min-height:44px}.visit-context-bar{gap:8px}.visit-context-bar label{width:100%}.visit-context-bar select{flex:1;min-width:0;max-width:none}.visit-context-bar #context-save{width:100%;order:4}.photo-comparison{grid-template-columns:1fr}.photo-comparison img{height:42dvh}.photo-grid{grid-template-columns:1fr}.registry-columns{grid-template-columns:minmax(0,1fr) 80px!important}.registry-columns .table-phone{grid-column:1/-1;font-size:14px;padding-inline-start:52px}.patient-table-head{display:none}.registry-language{grid-column:2;grid-row:1;text-align:end}.patient-table-row{position:relative;gap:4px!important}.note-editor{padding:16px}.document-row>.grow{flex-basis:70%}.document-filters label{min-width:120px}.photo-filter-row label{min-width:120px}.patient-presentation header{display:block}.presentation-dialog{padding:16px!important}.dialog-heading h2{font-size:20px}.selected-document-rows>div{flex-wrap:wrap}.schedule-toolbar .row{flex-wrap:wrap}.schedule-toolbar input[type=date]{width:145px}}
.registry-pagination{padding:16px}.document-dialog{max-width:min(1120px,calc(100vw - 32px))!important}.photo-dialog{max-width:min(1200px,calc(100vw - 32px))!important}.note-dialog{max-width:min(960px,calc(100vw - 32px))!important}
.plan-version-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.plan-version-toolbar label{margin:0;max-width:100%}.plan-version-toolbar select{max-width:100%}.historical-plan{grid-template-columns:minmax(0,1fr)!important}.catalogue[hidden]{display:none!important}
.schedule-board.is-week .schedule-head,.schedule-board.is-week .schedule-body{grid-template-columns:60px repeat(7,minmax(140px,1fr));min-width:1040px}.is-week .schedule-head strong{font-size:13px}.patient-page .presentation-clinic{font:600 17px/24px var(--font-ui)}

/* Medical workspace composition: registry, visit-first overview and document editor. */
.registry-v2{padding:20px;background:#fff}.registry-v2 .registry-toolbar{padding:0 0 20px;border:0}.registry-v2 .search-field{max-width:560px;width:100%}.registry-table{border:1px solid hsl(var(--border));border-radius:12px;overflow:hidden}.registry-v2 .patient-table-head{padding:12px 20px;background:#f8f9fc}
.registry-patient{display:grid;width:100%;position:relative;min-height:86px;padding:16px 20px;border:0;border-bottom:1px solid hsl(var(--border));border-radius:0;text-align:start;background:#fff;font-weight:400;color:var(--ink);box-shadow:none;align-items:center}.registry-patient:last-child{border-bottom:0}.registry-patient:hover{background:#faf8ff}.registry-patient:focus-visible{outline:2px solid var(--brand-primary);outline-offset:-2px}.registry-patient .patient-name-button{display:flex;align-items:center;gap:12px;padding:0;text-align:start}.registry-patient .patient-name-button>span:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}.registry-patient .patient-name-button small{font-size:12px;color:hsl(var(--text-secondary))}.registry-patient .avatar{width:40px;height:40px;border-radius:50%;flex:none}.registry-patient .table-phone{font-size:14px}.registry-patient .table-phone small{display:none}.language-badge{display:inline-flex;align-items:center;justify-content:center;border:1px solid hsl(var(--border));border-radius:7px;min-width:36px;height:28px;font-size:12px;background:#f8f9fc}.registry-open{display:none}.registry-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:16px}.registry-footer .registry-pagination{padding:0;gap:12px}.registry-pagination button{width:38px;min-height:38px;padding:8px}.registry-pagination .icon{width:17px;height:17px}.registry-footer #patient-count{font-size:13px}
.patient-heading{padding:20px;background:#fff;border:1px solid hsl(var(--border));border-radius:16px;gap:20px;margin-bottom:16px;min-width:0}.patient-heading .person{min-width:0}.patient-heading .person>div{min-width:0}.patient-kicker{display:block;font-size:12px;line-height:18px;color:hsl(var(--text-secondary));margin-bottom:4px}.patient-heading h1{font-size:26px;line-height:32px;overflow-wrap:anywhere;margin:0 0 6px}.patient-heading .patient-avatar{width:52px;height:52px;flex:none;border-radius:14px}.patient-heading>.row{flex:none;gap:8px}.patient-meta{gap:6px}
.patient-navigation{position:sticky;top:-1px;z-index:15;background:#fff;border:1px solid hsl(var(--border));border-radius:16px;margin-bottom:16px;box-shadow:0 2px 6px #1a174006}.patient-navigation .tabs{margin:0;padding:5px;border:0;border-radius:16px 16px 0 0;gap:3px}.patient-navigation .tabs button{flex:1;white-space:nowrap;gap:8px}.patient-navigation .visit-context-bar{margin:0;border:0;border-top:1px solid hsl(var(--border));border-radius:0 0 16px 16px;background:#fbfcfe;padding:8px 12px;gap:10px;min-height:54px}.patient-navigation .visit-context-bar select{max-width:260px;min-height:36px;font-size:13px}.patient-navigation .visit-context-bar button{min-height:36px;padding:7px 10px;font-size:12px}.patient-navigation #context-save{font-size:12px}
.patient-dashboard{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px}.patient-main-column,.patient-side-column{display:flex;flex-direction:column;gap:16px;min-width:0}.patient-dashboard .panel{padding:20px}.patient-dashboard .section-heading{margin-bottom:16px;align-items:center}.patient-dashboard .section-heading h2{font-size:17px;line-height:24px;margin:0}.patient-dashboard .section-heading .eyebrow{display:block;margin-bottom:5px;font-size:12px;line-height:18px;letter-spacing:0;font-weight:500;color:hsl(var(--text-secondary))}.patient-dashboard .section-heading .eyebrow+h2{font-size:23px;line-height:30px}.patient-dashboard h3{font-size:15px;line-height:23px;font-weight:600;margin:0;overflow-wrap:anywhere}
.visit-focus{border-top:3px solid var(--brand-primary)}.visit-practitioner{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px}.visit-practitioner>.icon{width:18px;height:18px;color:#6c6284}.visit-practitioner>.muted{margin-inline-start:auto;font-size:12px}.visit-clinical-summary{margin:20px 0;padding:16px;background:#f8f9fc;border-radius:10px;border:1px solid #eef0f5}.visit-clinical-summary h3{font-size:12px;font-weight:500;color:hsl(var(--text-secondary));margin-bottom:5px}.visit-clinical-summary p{font-size:15px;line-height:23px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.visit-focus-actions{display:flex;gap:8px;flex-wrap:wrap}.visit-focus-actions button{font-size:13px;gap:8px;min-height:40px;padding:9px 12px}
.patient-materials{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.patient-material{display:flex;align-items:center;text-align:start;gap:10px;padding:14px;background:#fff;border:1px solid hsl(var(--border));border-radius:12px;min-width:0;color:var(--ink)}.patient-material .material-icon{display:grid;place-items:center;flex:none;width:36px;height:40px;background:var(--brand-soft);border-radius:9px;color:var(--brand-primary)}.patient-material .material-icon .icon{width:20px;height:20px}.patient-material .grow{min-width:0}.patient-material strong{display:block;font-size:14px;line-height:20px;font-weight:600}.patient-material small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:18px;font-weight:400;color:hsl(var(--text-secondary));max-width:140px}.patient-material>b{font-size:18px;font-weight:600}.patient-material>.icon{display:none}.patient-material:hover{border-color:#cbbdff;background:#fdfcff}
.count-badge{display:inline-grid;place-items:center;min-width:28px;height:26px;border-radius:7px;font-size:12px;background:#f1edff;color:#6042d8}.clinical-timeline{position:relative}.clinical-history-row{position:relative;display:flex;align-items:flex-start;gap:14px;padding:16px 0;border-top:1px solid hsl(var(--border))}.clinical-history-row:last-child{padding-bottom:0}.history-node{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#f5f6fa;color:#7a8291;border:1px solid #e7e9ef;z-index:1}.history-node .icon{width:16px;height:16px}.clinical-history-row.is-current .history-node{background:var(--brand-soft);color:var(--brand-primary);border-color:#ded4ff}.clinical-history-row:not(:last-child)::after{content:'';position:absolute;inset-inline-start:16px;top:50px;bottom:-17px;width:1px;background:#e7e9ef}.history-row-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.clinical-history-row p{font-size:13px;margin:4px 0;color:hsl(var(--text-secondary))}.clinical-history-row small{font-size:13px;line-height:20px;display:block;overflow-wrap:anywhere}.clinical-history-row>button{flex:none;width:34px;min-height:34px;padding:8px;border-color:transparent;background:transparent}.clinical-history-row .pill{font-size:11px;padding:3px 7px}
.patient-side-column .section-heading h2{font-size:15px}.patient-side-column .section-heading button{font-size:12px;min-height:32px;padding:5px 8px}.contact-facts{margin:0;display:grid;gap:16px}.contact-facts>div{display:block;padding:0;border:0}.contact-facts dt{font-size:12px;color:hsl(var(--text-secondary));margin-bottom:3px}.contact-facts dd{font-size:14px;line-height:21px;margin:0;text-align:start}.next-appointment-summary{display:grid;gap:4px;padding-top:16px;border-top:1px solid hsl(var(--border));margin-top:16px}.next-appointment-summary span,.next-appointment-summary small{font-size:12px;color:hsl(var(--text-secondary))}.plan-card-total{display:block;font-size:24px;line-height:32px;margin:14px 0;font-weight:600}.patient-side-column section>button{width:100%;justify-content:space-between;margin-top:14px;font-size:13px}.latest-document-card p{margin:10px 0}.patient-alert{padding:16px;background:#fffbeb;border:1px solid #f5dfb1;border-radius:12px}.patient-alert p{font-size:14px;line-height:22px;white-space:pre-wrap;margin:8px 0}.patient-alert small{font-size:12px}
.note-editor{background:white;padding:32px 36px}.note-reading{margin:0 auto;max-width:840px}.note-reading>.eyebrow{font-size:13px;color:#6042d8;letter-spacing:.02em;border-bottom:2px solid #e6dfff;padding-bottom:16px}.note-reading>h2{font-size:25px;line-height:32px;margin:20px 0 8px}.note-reading>p:not(.eyebrow){font-size:14px}.note-reading section{padding:16px 0;margin:0;border-top:1px solid #edf0f5}.note-reading>p+section{margin-top:24px}.note-reading section h3{font-size:13px;line-height:20px;color:#726881;font-weight:600;margin-bottom:8px}.note-reading section p{margin:0}.note-history{position:sticky;top:120px}.note-history>h3{font-size:14px;margin:6px 4px 16px}.note-link{border:1px solid transparent;margin-bottom:6px}.note-link.selected{border-color:#d7caff;background:#f6f2ff}.note-link .pill{margin-bottom:6px}.note-link strong{font-size:15px}.note-link small{margin-top:5px}
.plan-version-toolbar{padding:12px 16px;background:#fff;border:1px solid hsl(var(--border));border-radius:12px;align-items:flex-end}.plan-version-toolbar label:first-child{flex:1;max-width:600px}.plan-version-toolbar label:nth-child(2){width:105px}.plan-version-toolbar label>span{font-size:12px;color:hsl(var(--text-secondary))}.plan-workspace{align-items:start}.catalogue{position:sticky;top:122px}.catalogue-item{border-bottom:1px solid #edf0f5;border-radius:0;min-height:72px}.catalogue-item:last-child{border-bottom:0}.catalogue-item strong{font-size:14px}.catalogue-item b{width:25px;height:25px;display:grid;place-items:center;border:1px solid #e7e0fb;border-radius:7px;background:#faf8ff}.catalogue-toggle{display:none}.plan-builder{padding:20px}.plan-line{border:1px solid hsl(var(--border));border-radius:12px;background:#fbfcfe;padding:14px;margin-top:12px}.plan-line>.row{margin-bottom:12px;gap:8px}.plan-line h3{font-size:15px;line-height:22px}.plan-line .line-number{width:auto;height:auto;background:none;color:hsl(var(--text-secondary));font-size:12px}.plan-line-fields{grid-template-columns:minmax(90px,1.3fr) minmax(90px,1.2fr) 72px 90px 90px;gap:10px}.plan-line-fields label>span{font-size:12px;line-height:18px;min-height:0}.plan-line-fields input{min-height:38px;padding:7px 9px;font-size:14px}.plan-line .line-total{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:baseline;gap:12px;border-top:1px solid #edf0f5;padding-top:10px}.plan-line .line-total strong{font-size:16px}.plan-meta{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:16px;align-items:start}.plan-meta textarea{min-height:80px}.plan-footer strong{font-size:24px;line-height:30px}.consent-selection{padding:16px;background:#f8f6ff;border:1px solid #e6defb;border-radius:12px;margin-top:16px}.consent-selection>.muted{font-size:12px;margin:0 0 12px}.consent-selection>.row{margin:10px 0}.consent-selection>.row:last-of-type{gap:8px}.consent-selection button{font-size:13px;padding:9px 11px}.consent-selection #selected-plan-total{text-align:end;font-size:14px}.consent-selection #selection-hint:empty{display:none}
@media(min-width:1280px){.breadcrumb{margin-bottom:8px}.patient-heading{padding:12px 16px;margin-bottom:12px}.patient-heading h1{font-size:26px;line-height:30px;margin-bottom:2px}.patient-kicker{font-size:11px;line-height:16px;margin-bottom:2px}.patient-meta{line-height:18px}.patient-heading>.row button{font-size:13px}.patient-material{padding:12px;gap:8px}.patient-material small{max-width:130px}.patient-material .material-icon{width:30px;height:36px}.plan-meta{grid-template-columns:1fr}.plan-builder #plan-form>.grid{grid-template-columns:minmax(200px,1.7fr) minmax(120px,1fr) 110px 150px;gap:12px}.plan-builder #plan-form>.grid>label{margin:0}.plan-builder #plan-form>.grid>label>span{display:flex;align-items:flex-end;min-height:36px;font-size:12px;line-height:18px}.plan-builder #plan-form>.grid input,.plan-builder #plan-form>.grid select{font-size:14px}}
@media(min-width:1280px) and (max-width:1500px){.plan-line-fields{grid-template-columns:1fr 1fr 72px}.patient-material small{max-width:120px}}
@media(min-width:768px) and (max-width:1279px){.patient-heading{flex-wrap:wrap}.patient-heading>.row{width:100%;justify-content:flex-end}.patient-dashboard{grid-template-columns:minmax(0,1fr)}.patient-side-column{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.patient-materials{grid-template-columns:repeat(3,minmax(0,1fr))}.patient-navigation .visit-context-bar{flex-wrap:wrap}.plan-line-fields{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1279px){.plan-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.catalogue-toggle{display:flex;gap:8px;justify-content:center;width:100%;background:#fff;color:#6042d8;border:1px dashed #c5b5f4}.plan-workspace .catalogue{display:none;position:static;width:100%}.plan-workspace.catalogue-expanded .catalogue{display:block}.plan-workspace .catalogue #catalogue-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:320px;overflow:auto;gap:6px}.catalogue-item{min-width:0;max-width:none}.plan-builder{width:100%}.note-history{position:static}}
@media(min-width:768px) and (max-width:1023px){.patient-materials{grid-template-columns:1fr}.patient-material small{max-width:320px}.patient-material>.icon{display:block;width:16px}.patient-side-column{grid-template-columns:1fr 1fr}.patient-contact-card{grid-column:1/-1}.contact-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.plan-line-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.plan-meta{grid-template-columns:1fr}.patient-navigation{position:static}}
@media(max-width:767px){
 .sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;overflow:visible}.sidebar nav button[data-page]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;width:100%;min-height:52px;padding:7px 3px;gap:3px;font-size:11px;line-height:16px}.sidebar nav button[data-page] .icon{width:18px;height:18px}
 .content{padding:16px 12px}.heading{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:16px;padding-bottom:0;border:0}.heading>div{flex:1 1 100%}.heading>.primary{width:100%;justify-content:center;font-size:14px;min-height:44px}.heading h1{font-size:25px}.heading .muted{font-size:13px;line-height:20px}
 .registry-v2{padding:12px}.registry-v2 .registry-toolbar{padding-bottom:12px}.registry-v2 .search-field{max-width:none}.registry-table{border:0;border-radius:0;overflow:visible}.registry-v2 .patient-table-head{display:none}.registry-v2 .registry-patient{display:grid;grid-template-columns:1fr 1fr!important;gap:12px!important;padding:16px;border:1px solid #e4e9f1;border-radius:12px;margin-bottom:12px;position:relative;align-items:start}.registry-v2 .registry-patient:last-child{margin-bottom:0}.registry-v2 .patient-name-button{grid-column:1/-1;min-width:0;padding-inline-end:26px}.registry-v2 .patient-name-button strong{font-size:16px}.registry-v2 .table-phone{grid-column:1;grid-row:auto;padding:0;font-size:13px;display:flex;flex-direction:column;gap:4px}.registry-v2 .table-phone small{display:block;font-size:11px;color:hsl(var(--text-secondary))}.registry-v2 .registry-language{grid-column:2;grid-row:auto;text-align:end;align-self:end}.registry-v2 .registry-date{display:flex!important;flex-direction:column;gap:4px;border-top:1px solid #eef0f5;padding-top:12px;font-size:13px}.registry-v2 .registry-date small{display:block!important;font-size:11px;color:hsl(var(--text-secondary))}.registry-open{display:block;position:absolute;inset-inline-end:14px;top:21px;color:#8b79ac}.registry-open .icon{width:17px}.registry-footer{gap:8px;padding-top:14px}.registry-footer .registry-pagination{gap:8px}.registry-pagination button{min-height:40px;width:36px}
 .breadcrumb{margin-bottom:10px}.patient-heading{padding:16px;gap:14px;flex-wrap:wrap}.patient-heading h1{font-size:22px;line-height:28px}.patient-heading .patient-avatar{width:44px;height:44px;font-size:16px}.patient-kicker{font-size:10px;line-height:16px}.patient-heading .person{width:100%;gap:10px}.patient-heading>.row{width:100%;margin:0;gap:8px}.patient-heading>.row button{flex:1;font-size:12px;padding:10px 8px;gap:6px}.patient-heading>.row .icon{width:17px}.patient-meta{font-size:12px;line-height:18px}.patient-navigation{position:static;border-radius:12px;overflow:hidden}.patient-navigation .tabs{overflow-x:auto;display:flex;border-radius:12px 12px 0 0;padding:5px}.patient-navigation .tabs button{flex:none;padding:10px;min-height:42px;font-size:12px}.patient-navigation .tabs .icon{display:block;width:16px;height:16px}.patient-navigation .visit-context-bar{padding:10px;gap:8px}.patient-navigation .visit-context-bar label{width:100%;display:flex;font-size:12px}.patient-navigation .visit-context-bar select{min-width:0;flex:1;max-width:none;font-size:13px;min-height:40px}.patient-navigation .visit-context-bar>span:not(.pill):not(#context-save){display:none}.patient-navigation .visit-context-bar #context-save{width:auto;flex:1;order:0;font-size:11px}.patient-navigation .visit-context-bar>button{font-size:11px;min-height:34px;padding:5px 8px}.patient-navigation .visit-context-bar .pill{font-size:11px}
 .patient-dashboard{grid-template-columns:minmax(0,1fr)}.patient-dashboard .panel{padding:16px}.patient-dashboard .section-heading .eyebrow+h2{font-size:21px}.visit-practitioner>.muted{margin-inline-start:0;width:100%}.visit-focus-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.visit-focus-actions button:first-child{grid-column:1/-1}.visit-clinical-summary{margin:16px 0;padding:12px}.patient-materials{grid-template-columns:1fr;gap:8px}.patient-material{padding:12px}.patient-material small{max-width:220px}.patient-material>.icon{display:block;width:16px;color:#8590a2}.patient-side-column{display:flex}.patient-dashboard .section-heading h2{font-size:16px}.clinical-history-row{gap:10px}.history-row-heading{gap:6px}.clinical-history-row h3{font-size:14px}.clinical-history-row>button{width:30px;padding:6px}.history-node{width:30px;height:30px}.clinical-history-row:not(:last-child)::after{inset-inline-start:14px}.clinical-history-row small{font-size:12px;line-height:18px}
 .note-editor{padding:20px 16px}.note-reading>h2{font-size:23px}.note-reading section{padding-block:14px}.plan-version-toolbar{padding:12px;gap:10px}.plan-version-toolbar label:first-child{width:100%;flex-basis:100%}.plan-version-toolbar label:nth-child(2){width:95px}.plan-builder{padding:12px}.plan-line{padding:12px}.plan-line-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.plan-line-fields label>span{min-height:0;font-size:12px}.plan-line-fields input{font-size:16px;min-height:44px}.plan-line h3{font-size:14px}.plan-meta{grid-template-columns:1fr}.plan-workspace .catalogue #catalogue-list{grid-template-columns:1fr}.plan-footer{gap:12px}.plan-footer strong{font-size:22px}.plan-footer button{font-size:13px}.consent-selection{padding:12px}.consent-selection .row:last-of-type{display:grid;grid-template-columns:1fr 1fr}.consent-selection #consent-selected{grid-column:1/-1;grid-row:2;min-height:44px}.consent-selection #selected-plan-total{font-size:13px}.saved-plans .list-row{flex-wrap:wrap}.saved-plans .grow{flex-basis:70%;min-width:0}.saved-plans h3{overflow-wrap:anywhere}.photo-filter-row{padding:12px;background:#fff;border:1px solid hsl(var(--border));border-radius:12px}.document-filters{padding:12px;background:#fff;border:1px solid hsl(var(--border));border-radius:12px}
}
.segmented{display:flex;gap:4px;padding:3px;background:#f1edff;border-radius:12px}.segmented button{background:transparent;border:0}.segmented button[aria-pressed=true]{background:#fff;color:#6042d8;box-shadow:0 1px 3px #0001}
.presentation-map{display:block;height:65dvh;max-width:100%;margin:auto;direction:ltr;object-fit:contain;transform:none}
.plan-line-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.pdf-pages{padding:16px;background:#edf0f5;max-height:65dvh;overflow:auto;border-radius:12px}.pdf-pages img{display:block;width:100%;max-width:960px;height:auto;margin:0 auto 16px;box-shadow:0 2px 12px #1112}.signing-preview{height:65dvh;width:100%;border:1px solid #e4e9f1;border-radius:12px;margin:16px 0}.patient-page details{margin:16px 0}
@media(max-width:767px){.plan-line-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.pdf-pages{padding:4px}}

/* Login and photo comparison readability. */
:root{--font-hebrew:"Arial Hebrew","Noto Sans Hebrew","Segoe UI",Arial,sans-serif}
html[lang=he] body,html[lang=he] button,html[lang=he] input,html[lang=he] select,html[lang=he] textarea{font-family:var(--font-hebrew)}
body.login-page{min-height:100dvh;background-color:#f5eff9;background-image:linear-gradient(#f7f3fa80,#f7f3fa80),url('/clinic/cosmo-pattern.svg');background-repeat:repeat;background-size:auto,760px auto;background-position:center}
body.login-page #app{min-height:100dvh}
.login-screen{min-height:100dvh;display:grid;place-items:center;padding:32px}
.login-card{width:min(500px,100%);padding:48px;border-radius:24px;background:#fffdfa;box-shadow:0 24px 70px #43235524}
.login-brand{display:flex;flex-direction:column;align-items:flex-start;width:max-content;margin:0 auto 34px;color:#7046a8}
.login-brand span{font:600 44px/.82 Cormorant,Georgia,serif;letter-spacing:-1.5px}
.login-brand strong{padding-inline-start:3px;font:700 11px/1.2 Manrope,"Segoe UI",Arial,sans-serif;letter-spacing:5.5px}
.login-card h1{margin:0 0 28px;text-align:center;font-size:40px;color:#221a35}
.login-card label{font-size:16px;font-weight:600;color:#343044}
.login-card input{min-height:56px;padding:14px 16px;border-radius:14px;font-size:17px;background:#faf8fd}
.login-actions{display:grid;gap:12px;margin-top:8px}
.login-actions button{width:100%;min-height:52px;font-size:16px;font-weight:650}
.login-language{background:transparent;border-color:transparent;color:#7046a8}
.login-language:hover{background:#f3ecfa;border-color:#e1d3ee}

.photo-filter-row{margin-bottom:16px}
.photo-compare-guide{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 20px;padding:18px 20px;border:1px solid #ded4eb;border-radius:16px;background:linear-gradient(120deg,#faf8fe,#f1ecfb)}
.photo-compare-guide strong{display:block;font-size:18px;color:#332746}
.photo-compare-guide p{margin:5px 0 0;font-size:14px;line-height:1.55;color:#667085}
.photo-compare-guide button{flex:none;min-width:220px}
.photo-grid{grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:20px}
.photo-grid .photo{position:relative;border-radius:18px;transition:border-color .15s,box-shadow .15s}
.photo-grid .photo.is-compare-selected{border:2px solid #7c5cfc;box-shadow:0 0 0 4px #7c5cfc17}
.photo-grid img{aspect-ratio:4/3}
.photo-caption{padding:18px}
.photo-caption h3{font-size:17px;line-height:1.4}
.photo-caption p{font-size:14px;line-height:1.5}
.photo-compare-select{width:100%;justify-content:flex-start;margin-top:14px;min-height:48px;background:#fff;border-color:#d8ddea;color:#384258;font-weight:600}
.photo-compare-select[aria-pressed=true]{background:#f1edff;border-color:#7c5cfc;color:#6042d8}
.photo-compare-number{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#ece8f7;color:#6042d8;font-size:14px}
.photo-compare-select[aria-pressed=true] .photo-compare-number{background:#7c5cfc;color:#fff}
.photo-compare-view{display:grid;gap:14px}
.photo-compare-modes{display:flex;width:max-content;max-width:100%;gap:5px;padding:5px;border-radius:13px;background:#eeebf5}
.photo-compare-modes button{min-width:150px;border:0;background:transparent;box-shadow:none}
.photo-compare-modes button[aria-pressed=true]{background:#fff;color:#6042d8;box-shadow:0 2px 8px #32234d17}
.photo-compare-help{margin:0;color:#667085;font-size:15px}
.photo-comparison{gap:20px}
.photo-comparison figure{padding:14px;border:1px solid #e2e5ec;border-radius:16px;background:#fff}
.photo-comparison figcaption{font-size:16px}
.photo-comparison img{height:52dvh;border-radius:12px}
.photo-overlay-panel{display:grid;gap:18px}
.photo-overlay-stage{position:relative;width:100%;height:58dvh;min-height:360px;overflow:hidden;border:1px solid #e2e5ec;border-radius:16px;background:#f4f5f7}
.photo-overlay-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transform:none;direction:ltr}
.photo-overlay-top{opacity:.5}
.photo-overlay-control{display:grid;grid-template-columns:max-content minmax(180px,1fr) 52px;align-items:center;gap:16px;margin:0;padding:14px 18px;border:1px solid #e2e5ec;border-radius:14px;background:#fff;font-size:15px;font-weight:600}
.photo-overlay-control span{margin:0}.photo-overlay-control input{min-height:28px;padding:0}.photo-overlay-control output{text-align:end;color:#6042d8}
@media(max-width:767px){.login-screen{padding:18px}.login-card{padding:32px 24px}.login-brand{margin-bottom:28px}.login-card h1{font-size:34px}.photo-compare-guide{align-items:stretch;flex-direction:column}.photo-compare-guide button{width:100%;min-width:0}.photo-grid{grid-template-columns:1fr}.photo-compare-modes{width:100%}.photo-compare-modes button{flex:1;min-width:0}.photo-overlay-stage{height:52dvh;min-height:260px}.photo-overlay-control{grid-template-columns:1fr 52px}.photo-overlay-control span{grid-column:1/-1}}
.photo-dialog{width:min(1680px,calc(100vw - 40px))!important;max-width:min(1680px,calc(100vw - 40px))!important}
.presentation-dialog:has(.photo-compare-view){width:min(1680px,calc(100vw - 40px))!important;max-width:min(1680px,calc(100vw - 40px))!important}
.photo-compare-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.photo-compare-zoom{display:flex;align-items:center;gap:10px;font-size:14px;color:#64748b}
.photo-compare-zoom button{min-width:42px;min-height:42px;padding:6px 10px;font-size:20px}
.photo-compare-zoom output{min-width:48px;text-align:center;color:#403356;font-weight:600}
#modal .photo-compare-view .photo-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#modal .photo-compare-view .photo-comparison figure{padding:10px;min-width:0}
#modal .photo-compare-view .photo-compare-scroll{position:relative;width:100%;height:clamp(280px,65dvh,780px);min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #e2e5ec;border-radius:12px;background:#f4f5f7;direction:ltr}
#modal .photo-compare-view .photo-compare-canvas{position:relative;width:calc(min(850px,100%) * var(--compare-scale,1));aspect-ratio:var(--compare-ratio,0.75);margin-inline:auto;flex:none}
#modal .photo-compare-view .photo-compare-canvas img{display:block;position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;border-radius:0;transform:none}
#modal .photo-compare-view .photo-overlay-control{position:sticky;bottom:0;z-index:3;margin:0}
@media(max-width:767px){.photo-dialog{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important}.photo-compare-toolbar{gap:8px}.photo-compare-zoom{margin-inline-start:auto}#modal .photo-compare-view .photo-comparison{grid-template-columns:1fr}#modal .photo-compare-view .photo-compare-scroll{height:58dvh}}
#modal.photo-dialog,#modal.presentation-dialog:has(.photo-compare-view){height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)!important;padding:16px!important;overflow:hidden}
#modal:has(.photo-compare-view) #modal-content{height:100%;min-height:0;display:flex;flex-direction:column;gap:8px}
#modal:has(.photo-compare-view) .dialog-heading{flex:none;margin:0;max-width:none}
#modal:has(.photo-compare-view) .modal-footer{flex:none;margin:0;padding-top:8px}
#modal .photo-compare-view{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}
#modal .photo-compare-view .photo-compare-toolbar,#modal .photo-compare-view .photo-compare-help{flex:none}
#modal .photo-compare-view .photo-compare-help{font-size:13px;line-height:20px}
#modal .photo-compare-view .photo-comparison{flex:1;min-height:0;margin:0;grid-template-columns:repeat(2,minmax(0,1fr))}
#modal .photo-compare-view .photo-comparison figure{display:flex;flex-direction:column;gap:6px;margin:0;padding:8px;min-height:0}
#modal .photo-compare-view .photo-comparison figcaption{flex:none}
#modal .photo-compare-view .photo-overlay-panel{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}
#modal .photo-compare-view .photo-compare-scroll{flex:1;height:auto;min-height:0;scrollbar-gutter:auto}
#modal .photo-compare-view .photo-compare-canvas{width:calc(var(--compare-fit-width,280px) * var(--compare-scale,1))}
#modal .photo-compare-view .photo-overlay-control{flex:none;padding:8px 12px}
#modal.presentation-dialog:has(.photo-compare-view) .patient-presentation{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}
#modal.presentation-dialog:has(.photo-compare-view) .patient-presentation>header{flex:none;margin:0;padding:8px 12px}
#modal.presentation-dialog:has(.photo-compare-view) .presentation-tabs{flex:none;margin:0}
#modal.presentation-dialog:has(.photo-compare-view) #presentation-photo-panel:not([hidden]),#modal.presentation-dialog:has(.photo-compare-view) #presentation-comparison{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}
/* Keep comparison controls beside the image so the portrait can use the window height. */
.photo-compare-title{font-size:18px;line-height:24px;color:#202638}
.photo-compare-actions{display:flex;align-items:center;gap:8px;margin-inline-start:auto;flex:none}
#modal .photo-compare-panels{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0;min-width:0}
#modal.comparison-focused{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)!important;padding:10px!important;width:min(calc((100dvh - 110px) * var(--compare-window-ratio,.75) * 2 + 206px),calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important}
#modal.comparison-focused:has([data-compare-panel="overlay"]:not([hidden])){width:min(calc((100dvh - 82px) * var(--compare-window-ratio,.75) + 206px),calc(100vw - 24px))!important}
#modal.comparison-focused .dialog-heading[hidden]{display:none!important}
#modal.comparison-focused .photo-compare-help{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#modal.comparison-focused .photo-compare-view{flex-direction:row;gap:12px}
#modal.comparison-focused .photo-compare-toolbar{width:168px;flex:none;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:16px}
#modal.comparison-focused .photo-compare-toolbar button{min-height:40px;padding-block:8px}
#modal.comparison-focused .photo-compare-modes{width:100%;flex-direction:column;padding:3px}
#modal.comparison-focused .photo-compare-modes button{min-width:0;width:100%}
#modal.comparison-focused .photo-compare-zoom{justify-content:center;gap:6px}
#modal.comparison-focused .photo-compare-zoom>span{display:none}
#modal.comparison-focused .photo-compare-zoom button{min-width:36px}
#modal.comparison-focused .photo-compare-actions{flex-direction:column;align-items:stretch;gap:8px;margin:0;margin-top:auto}
#modal.comparison-focused .photo-overlay-stage{width:calc(var(--compare-fit-width,280px) + 2px);max-width:100%;align-self:center;background:#fff;border-radius:10px}
#modal.comparison-focused .photo-overlay-control{max-width:900px;width:100%;align-self:center;grid-template-columns:minmax(0,1fr) 44px;font-size:14px;padding:6px 10px;gap:4px 8px}
#modal.comparison-focused .photo-overlay-control span{grid-column:1/-1;font-size:12px}
#modal.comparison-focused .photo-overlay-control input{min-height:30px;height:30px}
#modal.comparison-focused .patient-presentation>header{font-size:14px;line-height:20px;padding:4px 8px;border:0;background:transparent}
#modal.comparison-focused .presentation-clinic img{width:28px!important;height:28px!important}
#modal.comparison-focused .presentation-clinic strong{font-size:14px}
#modal.comparison-focused .patient-presentation>header small{display:inline;margin-inline-start:10px}
@media(max-width:767px){#modal.comparison-focused{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important}#modal.comparison-focused .photo-compare-view{flex-direction:column;gap:8px}#modal.comparison-focused .photo-compare-title{font-size:15px}#modal.comparison-focused .photo-compare-toolbar{width:100%;flex-direction:row;align-items:center;gap:6px}#modal.comparison-focused .photo-compare-modes{width:auto;flex-direction:row;margin-inline-start:auto}#modal.comparison-focused .photo-compare-modes button{min-width:0;padding-inline:12px}#modal.comparison-focused .photo-compare-zoom{margin:0}#modal.comparison-focused .photo-compare-actions{flex-direction:row;margin:0;margin-inline-start:auto}#modal.comparison-focused .patient-presentation>header{display:flex;gap:8px}}
#modal.comparison-focused:has([data-compare-panel="side"]:not([hidden])){width:min(calc((100dvh - 50px) * var(--compare-window-ratio,.75) * 2 + 236px),calc(100vw - 24px))!important}
#modal.comparison-focused .photo-comparison{gap:10px}
#modal.comparison-focused .photo-comparison figure{padding:4px;gap:4px}
#modal.comparison-focused .photo-comparison figcaption{flex-direction:row;align-items:center;flex-wrap:wrap;gap:4px 8px;padding:4px;font-size:14px;line-height:20px}
#modal.comparison-focused .photo-comparison figcaption a{margin-inline-start:auto;font-size:12px;white-space:nowrap}
#modal.comparison-focused .photo-comparison .photo-compare-scroll{background:#fff;border:0;border-radius:10px}
@media(max-width:767px){#modal.comparison-focused:has([data-compare-panel="side"]:not([hidden])){width:calc(100vw - 16px)!important}#modal.comparison-focused .photo-comparison{gap:6px}#modal.comparison-focused .photo-comparison figcaption{font-size:12px;line-height:16px}}

/* Match the side portraits; place the blend control inside their frame. */
#modal.comparison-focused:has([data-compare-panel="overlay"]:not([hidden])){width:min(calc((100dvh - 50px) * var(--compare-window-ratio,.75) + 206px),calc(100vw - 24px))!important}
.photo-overlay-caption{display:flex;align-items:center;justify-content:center;gap:8px;flex:none;padding:4px;font-size:14px;line-height:20px;min-width:0}
.photo-overlay-caption strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#modal.comparison-focused .photo-overlay-panel{position:relative;gap:4px;padding:4px;border:1px solid #e2e5ec;border-radius:16px;background:#fff}
#modal.comparison-focused .photo-overlay-stage{border:0}
#modal.comparison-focused .photo-overlay-control{position:absolute;bottom:auto;top:calc(var(--overlay-photo-bottom,100%) - 12px);left:50%;transform:translate(-50%,-100%);width:min(calc(100% - 24px),calc(var(--overlay-control-width,280px) - 24px));max-width:900px;margin:0;background:rgba(255,255,255,.92);box-shadow:0 2px 12px #20263826;grid-template-columns:minmax(0,1fr) 44px;padding:6px 10px;gap:2px 8px}
@media(max-width:767px){#modal.comparison-focused:has([data-compare-panel="overlay"]:not([hidden])){width:calc(100vw - 16px)!important}.photo-overlay-caption{font-size:12px;line-height:16px}}

/* Match photos by camera angle; reveal each original on its own side of the line. */
.photo-angle-group{margin-block:24px}
.photo-angle-group>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.photo-angle-group>header h3{margin:0 0 4px;font-size:20px}
.photo-angle-group>header .muted,.photo-angle-empty{font-size:14px}
.photo-angle-empty{margin-block:10px}
.photo-compare-settings{display:grid;gap:10px;width:100%;min-width:0}
.photo-compare-settings label{display:grid;gap:4px;margin:0;min-width:0}
.photo-compare-settings label>span{font-size:12px;color:#69778a}
.photo-compare-settings select{width:100%;min-width:0;min-height:40px;padding:8px;font-size:13px;overflow:hidden;text-overflow:ellipsis}
#modal .photo-compare-toolbar{min-height:0}
#modal.comparison-focused .photo-compare-toolbar{gap:12px;overflow-y:auto}
#modal.comparison-focused:has([data-compare-panel="split"]:not([hidden])){width:min(calc((100dvh - 50px) * var(--compare-window-ratio,.75) + 206px),calc(100vw - 24px))!important}
.photo-angle-unspecified{margin:0;font-size:12px;color:#69778a}
.photo-split-canvas{direction:ltr;isolation:isolate;user-select:none}
#modal .photo-split-canvas .photo-split-before{clip-path:inset(0 calc(100% - var(--compare-split,50%)) 0 0);opacity:1;z-index:1}
#modal .photo-split-divider{position:absolute;inset:0 auto 0 var(--compare-split,50%);width:44px;height:100%;min-height:0;padding:0;margin:0 0 0 -22px;background:transparent;border:0;border-radius:0;z-index:4;cursor:ew-resize;touch-action:none;box-shadow:none;color:#6042d8}
.photo-split-divider::before{content:'';position:absolute;inset:0 auto 0 21.25px;width:1.5px;background:#fff;box-shadow:0 0 3px #ffffff99,0 0 7px #ffffff66,0 0 1px #35274366}
.photo-split-divider:hover::before,.photo-split-divider:active::before{box-shadow:0 0 4px #ffffffc2,0 0 9px #ffffff80,0 0 1px #35274366}
.photo-split-divider:focus-visible::before{box-shadow:0 0 0 1px #c7b7fa,0 0 7px #ffffff99}
#modal .photo-split-divider:focus-visible{outline:none;box-shadow:none}
.photo-split-label{position:absolute;top:10px;z-index:3;pointer-events:none;max-width:40%;padding:5px 8px;border-radius:7px;background:#ffffffdf;color:#403356;font-size:12px;line-height:18px;box-shadow:0 1px 6px #20263819}
.photo-split-label-before{left:10px}.photo-split-label-after{right:10px}
@media(max-width:767px){
 #modal.comparison-focused:has([data-compare-panel="split"]:not([hidden])){width:calc(100vw - 16px)!important}
 #modal.comparison-focused .photo-compare-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;overflow:visible}
 #modal.comparison-focused .photo-compare-settings{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:6px}
 #modal.comparison-focused .photo-compare-settings label:first-child{grid-column:1/-1}
 #modal.comparison-focused .photo-compare-settings select{min-height:36px;font-size:14px;padding:6px}
 #modal.comparison-focused .photo-compare-modes{grid-column:1/-1;display:flex;width:100%;margin:0}
 #modal.comparison-focused .photo-compare-modes button{flex:1;padding:6px;font-size:13px;min-height:38px}
 #modal.comparison-focused .photo-compare-title{grid-column:1/-1}
 #modal.comparison-focused .photo-compare-zoom{justify-content:flex-start}
 .photo-angle-group>header{align-items:flex-start;gap:8px}
 .photo-angle-group>header h3{font-size:18px}
}
