:root {
  color-scheme: light;
  --bg: #f4f5f7; --panel: #fff; --text: #232731; --muted: #69717f;
  --line: #e5e8ed; --brand: #c65306; --brand-hover: #ad4400; --orange: #ff831f;
  --tint: #fff1e6; --good: #edf7f1; --green: #237149; --danger: #b93232;
  --sidebar: #1c2027; --shadow: 0 3px 16px #17203305;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text); background: var(--bg); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
[hidden], .hidden { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-underline-offset: 4px; }
a:hover { color: var(--brand-hover); }
button, .button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
.icon { flex: 0 0 auto; vertical-align: middle; }
.app-shell { display: grid; grid-template-columns: 242px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--sidebar); color: #eff1f5; padding: 28px 16px 22px; display: flex; flex-direction: column; align-self: start; position: sticky; top: 0; min-height: 100vh; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 13px; }
.brand { color: #f8f8fa; font-size: 32px; line-height: 1.15; letter-spacing: -1.8px; font-weight: 800; display: inline-flex; align-items: baseline; text-decoration: none; }
.brand:hover { color: #fff; }
.brand > span:not(.brand-dot) { color: var(--orange); }
.brand-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-left: 5px; }
.sidebar-caption { color: #9ba3af; font-size: 9px; letter-spacing: 2.1px; padding-left: 14px; margin: 11px 0 29px; }
.side-nav { display: grid; gap: 5px; }
.nav-group-label { color: #9ba3af; font-size: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; padding: 18px 13px 7px; }
.nav-group-label:first-child { padding-top: 0; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 11px 12px; color: #c7cdd7; border-radius: 9px; text-decoration: none; font-size: 12px; font-weight: 500; transition: background .15s, color .15s; }
.nav-link .icon { width: 18px; height: 18px; opacity: .85; }
.nav-link:hover { color: #fff; background: #ffffff0b; }
.nav-link.active { color: #ffad70; background: #ff831f17; box-shadow: inset 3px 0 var(--orange); }
.nav-link.active .icon { opacity: 1; }
.sidebar-bottom { display: flex; align-items: center; gap: 10px; margin: auto 11px 0; padding-top: 42px; color: #c3cad4; font-size: 11px; }
.sidebar-bottom small { display: block; color: #969fab; font-size: 10px; margin-top: 2px; }
.sidebar-mark { display: grid; place-items: center; width: 33px; height: 35px; color: var(--orange); background: #ffffff07; border: 1px solid #ffffff10; border-radius: 8px; font-size: 20px; font-weight: 700; }
.menu-toggle { display: none; }
.app-body { min-width: 0; display: flex; flex-direction: column; }
.app-header { min-height: 90px; background: var(--panel); border-bottom: 1px solid var(--line); padding: 18px 36px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.header-context { display: grid; gap: 5px; }
.header-overline { font-size: 9px; letter-spacing: 1.25px; font-weight: 600; color: var(--muted); }
.header-title { font-size: 14px; font-weight: 600; }
.header-profile { display: flex; align-items: center; gap: 11px; min-width: 0; }
.avatar { width: 38px; height: 38px; border-radius: 11px; background: var(--tint); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; font-weight: 650; }
.profile-copy { display: grid; gap: 1px; }
.profile-copy strong { font-size: 12px; font-weight: 600; }
.profile-copy small { font-size: 10px; }
.logout-button { margin-left: 10px; }
.logout-button .icon { width: 17px; height: 17px; }
.main-content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 32px 36px 20px; flex: 1; min-width: 0; }
.app-footer { display: flex; justify-content: space-between; gap: 12px; color: #767e8b; font-size: 10px; padding: 20px 36px 24px; }
.app-footer > span:first-child { font-weight: 700; letter-spacing: .5px; }
h1, h2, h3 { line-height: 1.3; color: var(--text); }
h1 { font-size: 27px; letter-spacing: -.8px; margin: 0 0 8px; font-weight: 700; overflow-wrap: anywhere; }
h2 { font-size: 17px; letter-spacing: -.25px; margin: 0 0 14px; font-weight: 650; }
h3 { font-size: 14px; margin: 0; font-weight: 650; }
p { margin: 8px 0; }
small, .muted { color: var(--muted); font-size: 12px; }
.eyebrow { font-size: 10px; letter-spacing: 1.6px; font-weight: 600; color: var(--brand); }
section { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; margin: 20px 0; box-shadow: var(--shadow); }
section > h2:first-child { display: flex; align-items: center; gap: 10px; padding-bottom: 17px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
section > h2:first-child:before { content: ''; display: block; width: 3px; height: 18px; background: var(--orange); border-radius: 3px; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 20px; }
.heading h1, .heading h2, .heading h3 { margin-bottom: 0; }
.heading p { margin: 7px 0 0; }
.inline { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.inline form.inline { margin: 0; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; max-width: 100%; padding: 10px 15px; background: var(--panel); color: #424a57; border: 1px solid #dce1e7; border-radius: 9px; text-decoration: none; font-size: 12px; font-weight: 600; line-height: 1.35; text-align: center; cursor: pointer; box-shadow: 0 1px 2px #1d263806; transition: background .16s, border-color .16s, box-shadow .16s, transform .16s; }
button:hover, .button:hover { color: var(--text); background: #f8f9fb; border-color: #bfc7d2; box-shadow: 0 3px 8px #1d26380a; transform: translateY(-1px); }
button:active, .button:active { transform: translateY(0); box-shadow: none; }
button:disabled { opacity: .4; cursor: default; transform: none; box-shadow: none; }
.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 3px 9px #bd530522; }
.primary:hover { color: #fff; background: var(--brand-hover); border-color: var(--brand-hover); box-shadow: 0 4px 12px #bd53052b; }
.primary .icon { width: 17px; height: 17px; }
.button-quiet { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.button-quiet:hover { background: var(--bg); border-color: transparent; box-shadow: none; }
form { margin: 0; }
form p { margin: 17px 0; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 500; color: #505968; min-width: 0; }
input:not([type=checkbox]):not([type=radio]), select, textarea { display: block; width: 100%; min-width: 0; padding: 11px 12px; min-height: 43px; background: #fcfcfd; border: 1px solid #dfe3e9; border-radius: 8px; font-size: 13px; font-weight: 400; color: var(--text); transition: border-color .16s, box-shadow .16s, background .16s; }
input::placeholder, textarea::placeholder { color: #8c94a1; }
input:hover, select:hover, textarea:hover { border-color: #b8c0cc; }
input:focus, select:focus, textarea:focus { background: var(--panel); border-color: var(--brand); box-shadow: 0 0 0 3px #ff831f16; }
input:disabled, select:disabled { color: var(--muted); background: #f3f4f6; cursor: not-allowed; }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: var(--brand); flex: 0 0 auto; }
input[type=file] { font-size: 12px; padding: 7px; }
input[type=file]::file-selector-button { padding: 7px 10px; margin-right: 10px; border: 0; border-radius: 5px; background: var(--tint); color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }
textarea { resize: vertical; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.form-grid label:has(input[type=checkbox]) { flex-direction: row; align-items: center; gap: 9px; align-self: end; min-height: 43px; }
.helptext { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 6px; }
.helptext ul { margin: 6px 0; padding-left: 18px; }
.errorlist { color: var(--danger); font-size: 12px; margin: 5px 0; padding-left: 17px; font-weight: 400; }
.message { display: flex; gap: 10px; align-items: start; padding: 14px 17px; border-radius: 9px; background: var(--good); color: #275d40; font-size: 13px; margin-bottom: 18px; border: 1px solid #d8ebdf; }
.message.error, .warning { color: #9c4210; background: var(--tint); border-color: #f3d8c4; }
.warning { padding: 13px 16px; border-radius: 8px; margin-top: 18px; font-size: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--tint); color: #a34b14; padding: 5px 9px; border-radius: 6px; font-size: 11px; font-weight: 500; vertical-align: middle; white-space: normal; }
.badge:before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; flex: 0 0 auto; }
.badge--queued { color: #666f7b; background: #eff1f5; }
.badge--running { color: #a34b14; background: var(--tint); }
.badge--ready { color: #26734c; background: #eaf6ee; }
.badge--sent { color: #505d6c; background: #edf1f5; }
.badge--paused { color: #94600f; background: #fff6df; }
.search-toolbar { padding: 16px 18px; margin: 24px 0 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.search-toolbar label { flex: 1; max-width: 470px; }
.search-toolbar input { background: var(--bg); }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 560px; text-align: left; font-size: 12px; }
th, td { padding: 17px 20px; border-bottom: 1px solid #edf0f4; vertical-align: top; }
th { padding-top: 12px; padding-bottom: 12px; color: var(--muted); background: #fafbfc; font-size: 10px; font-weight: 600; letter-spacing: .4px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fdfaf7; }
td small { display: block; margin-top: 4px; font-size: 11px; }
.order-number { display: inline-block; color: var(--text); font-size: 13px; font-weight: 650; text-decoration: none; margin-bottom: 5px; }
.order-number:hover { color: var(--brand); }
.work-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; }
.work-row + .work-row { border-top: 1px solid #f1f2f5; margin-top: 4px; }
.empty-state { text-align: center; padding: 42px 24px; color: var(--muted); }
.empty-state > .icon { width: 30px; height: 30px; margin-bottom: 8px; color: #aab2be; }
.empty-state strong { display: block; color: #4b5563; font-size: 14px; margin: 4px 0; }
.empty-state p { font-size: 12px; }
.work-form { padding: 26px 0 8px; border-top: 1px solid var(--line); }
.work-form:first-child { padding-top: 0; border-top: 0; }
[data-work-number] { display: inline-grid; place-items: center; min-width: 25px; height: 25px; padding: 0 5px; background: var(--tint); color: var(--brand); border-radius: 6px; margin-left: 3px; }
.steps { display: flex; gap: 9px; flex-wrap: wrap; padding: 0; margin: 20px 0; list-style: none; counter-reset: stage; }
.steps li { position: relative; counter-increment: stage; padding: 12px 14px 12px 46px; background: #f4f5f7; border-radius: 9px; flex: 1 1 150px; font-size: 12px; }
.steps li:before { content: counter(stage); position: absolute; left: 12px; top: 13px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #e5e8ed; color: #6f7885; font-size: 11px; font-weight: 600; }
.steps li.current { background: var(--tint); }
.steps li.current:before { background: #f8d8be; color: #a44b0e; }
.steps li.done { background: var(--good); }
.steps li.done:before { content: '✓'; background: #d8ecdf; color: var(--green); }
.steps small { display: block; font-size: 10px; margin-top: 3px; }
.history { padding: 0 0 17px 22px; margin: 0 0 0 4px; border-left: 1px solid #e6e9ef; position: relative; font-size: 12px; overflow-wrap: anywhere; }
.history:before { content: ''; position: absolute; left: -4px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #c4ccd6; box-shadow: 0 0 0 4px var(--panel); }
.history:first-of-type:before { background: var(--orange); }
.history:last-child { border-color: transparent; padding-bottom: 0; }
.history small { font-size: 10px; display: inline-block; margin-bottom: 4px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; }
.metrics > div { padding: 3px 20px; border-right: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.metrics > div:first-child { padding-left: 0; }
.metrics > div:last-child { padding-right: 0; border-right: 0; }
.metrics strong { display: block; font-size: 25px; color: var(--text); font-weight: 650; letter-spacing: -.7px; margin-top: 7px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.metrics > div:last-child strong { color: var(--brand); }
.dental { padding: 19px; margin: 22px 0; background: #f7f8fa; border: 1px solid #eceef2; border-radius: 11px; }
.dental > .heading { margin: 0 0 15px; }
.dental strong { font-size: 12px; font-weight: 600; }
.jaw-selection { display: flex; gap: 18px; margin-bottom: 12px; }
.jaw-selection label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; cursor: pointer; }
.tooth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 14px; }
.quadrant { min-width: 0; }
.quadrant small { display: block; font-size: 10px; margin-bottom: 8px; }
.teeth-row { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 4px; }
.tooth { display: flex; align-items: center; justify-content: center; gap: 9px; flex-direction: column; min-width: 0; padding: 9px 0; min-height: 77px; font-size: 11px; font-weight: 500; color: #7c8694; border-color: #e1e5ec; border-radius: 7px; box-shadow: none; }
.tooth:hover { color: var(--brand); border-color: #e4b089; background: #fff9f3; box-shadow: none; }
.tooth[aria-pressed=true] { border-color: var(--brand); color: var(--brand); background: var(--tint); box-shadow: inset 0 0 0 1px var(--brand); }
.tooth-shape { display: block; width: 17px; height: 24px; border: 1.4px solid currentColor; border-radius: 6px 6px 8px 8px; position: relative; margin-bottom: 8px; }
.tooth-shape:after { content: ''; position: absolute; bottom: -8px; left: 3px; width: 8px; height: 10px; border: 1.4px solid currentColor; border-top: 0; border-radius: 0 0 60% 60%; background: var(--panel); }
.upper .tooth-shape { transform: rotate(180deg); margin: 8px 0 0; }
.upper .tooth { flex-direction: column-reverse; }
.tooth[aria-pressed=true] .tooth-shape:after { background: var(--tint); }
[data-tooth-summary] { margin-top: 14px; font-size: 11px; color: var(--brand); }
.route-row { display: grid; grid-template-columns: minmax(0,1fr) 34px 34px; gap: 7px; align-items: center; margin: 7px 0; padding: 9px 12px; background: #f7f8fa; border: 1px solid #edf0f4; border-radius: 8px; }
.route-row label { display: flex; flex-direction: row; align-items: center; gap: 11px; font-size: 12px; color: var(--text); }
.route-row button { min-height: 31px; padding: 3px; font-size: 14px; border-radius: 5px; box-shadow: none; }
.route-row.off { background: #fafbfc; color: var(--muted); }
.route-row.off label { color: #7a8492; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 5; padding: 12px; background: var(--panel); border-radius: 8px; }
.skip-link:focus { top: 12px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.guest-header { max-width: 1190px; margin: 0 auto; padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.guest-header .brand { color: var(--text); }
.guest-header > span { font-size: 11px; color: var(--muted); }
.guest .main-content { max-width: 1190px; padding-top: 16px; }
.guest .app-footer { max-width: 1190px; margin: 0 auto; }
.login-layout { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 18px 60px #1f283508; min-height: 560px; }
.login-story { background: radial-gradient(ellipse at 95% 0%,#5b351f99,transparent 60%),#1c2027; color: #f5f6f8; padding: 46px; display: flex; flex-direction: column; align-items: start; }
.login-story .eyebrow { color: #f4ad76; font-size: 9px; }
.login-symbol { width: 76px; height: 76px; display: grid; place-items: center; margin: 42px 0 25px; border-radius: 20px; background: #ff831f14; border: 1px solid #ff831f26; color: #ff9a4c; }
.login-symbol .icon { width: 42px; height: 42px; stroke-width: 1.2; }
.login-story h1 { color: #fff; font-size: 34px; line-height: 1.3; font-weight: 650; letter-spacing: -1px; }
.login-story h1 span { color: #ffad70; }
.login-story p { color: #c0c7d0; max-width: 310px; font-size: 13px; line-height: 1.8; margin-top: 15px; }
.story-signature { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #aeb6c2; margin-top: auto; padding-top: 40px; }
.story-signature > span { width: 22px; height: 2px; background: var(--orange); }
.login { margin: 0; padding: 64px 48px; background: transparent; border: 0; box-shadow: none; border-radius: 0; align-self: center; }
.login > h2 { font-size: 28px; margin: 10px 0 12px; padding: 0; border: 0; letter-spacing: -.8px; }
.login-description { font-size: 12px; margin-bottom: 28px; }
.login label { margin-bottom: 8px; }
.login input { min-height: 47px; }
.login-submit { width: 100%; margin-top: 10px; min-height: 47px; justify-content: space-between; }
.login-help { font-size: 11px; color: var(--muted); text-align: center; margin-top: 23px; }
@media(min-width:1600px) { .sidebar { padding-top: 34px; } .main-content { padding-top: 40px; } }
@media(max-width:1100px) { .app-shell { grid-template-columns: 218px minmax(0,1fr); } .sidebar { padding-left: 12px; padding-right: 12px; } .main-content { padding: 26px 24px 18px; } .app-header { padding: 17px 24px; } .header-overline { font-size: 8px; } .logout-button span { display: none; } .metrics strong { font-size: 22px; } .metrics > div { padding: 3px 12px; } .form-grid { grid-template-columns: 1fr 1fr; } .tooth-grid { grid-template-columns: 1fr; } .login-story { padding: 36px; } .login { padding: 48px 34px; } }
@media(max-width:780px) { .app-shell { display: block; } .sidebar { min-height: 0; position: static; padding: 17px 18px; } .sidebar-top { padding: 0; } .sidebar .brand { font-size: 28px; } .sidebar-caption,.sidebar-bottom { display: none; } .menu-toggle { display: inline-flex; align-items: center; gap: 7px; background: #ffffff07; color: #d9dee5; border-color: #ffffff15; min-height: 36px; padding: 7px 10px; font-size: 11px; box-shadow: none; } .menu-toggle:hover { background: #ffffff12; color: #fff; border-color: #ffffff25; } .menu-toggle .icon { width: 17px; height: 17px; } .side-nav { display: none; } .sidebar.is-open .side-nav { display: grid; grid-template-columns: 1fr 1fr; padding-top: 18px; } .nav-group-label { grid-column: 1/-1; padding-top: 12px; } .nav-link { padding: 11px 10px; font-size: 11px; } .app-header { min-height: 76px; padding: 16px 20px; } .header-overline { display: none; } .header-title { font-size: 12px; } .profile-copy small { max-width: 170px; font-size: 9px; } .avatar { width: 34px; height: 34px; border-radius: 9px; } .header-profile { gap: 8px; } .main-content { padding: 24px 18px 12px; } h1 { font-size: 24px; } .app-footer { padding: 20px; } .login-layout { min-height: 0; } .login-story { padding: 29px; } .login-story h1 { font-size: 28px; } .login-story .eyebrow { font-size: 8px; } .login { padding: 35px 26px; } .login > h2 { font-size: 24px; } .login-symbol { margin-top: 28px; } .guest-header { padding: 24px; } }
@media(max-width:540px) { .main-content { padding: 22px 13px 12px; } .app-header { padding: 13px; gap: 8px; } .header-context { max-width: 125px; } .header-profile { gap: 6px; } .profile-copy small { display: none; } .profile-copy strong { font-size: 11px; } .logout-button { margin-left: 0; min-height: 35px; padding: 8px; } .avatar { width: 30px; height: 32px; font-size: 12px; } section { padding: 18px 15px; border-radius: 12px; } h1 { font-size: 23px; } h2 { font-size: 16px; } .heading { gap: 12px; } .form-grid { grid-template-columns: 1fr; gap: 16px; } .inline { align-items: stretch; } .inline > label { flex: 1 1 180px; } input:not([type=checkbox]):not([type=radio]),select,textarea { font-size: 16px; } .teeth-row { grid-template-columns: repeat(4,minmax(0,1fr)); } .dental { padding: 12px; } .dental > .heading { align-items: start; gap: 4px; } .dental .heading small { font-size: 10px; } .metrics { grid-template-columns: 1fr 1fr; gap: 20px 0; } .metrics > div { padding: 0 12px; } .metrics > div:nth-child(odd) { padding-left: 0; } .metrics > div:nth-child(even) { border-right: 0; } .metrics strong { font-size: 22px; } .app-footer { font-size: 9px; padding: 18px 15px; } .app-footer > span:last-child { max-width: 180px; text-align: right; } .guest-header { padding: 20px; } .guest-header .brand { font-size: 28px; } .guest-header > span { max-width: 120px; text-align: right; font-size: 10px; } .guest .main-content { padding: 10px 13px; } .login-layout { display: block; border-radius: 14px; } .login-story { padding: 25px; } .login-symbol { display: none; } .login-story h1 { font-size: 25px; margin: 19px 0 0; } .login-story p { font-size: 12px; margin: 12px 0 0; } .story-signature { display: none; } .login { padding: 28px 24px 30px; } .login .eyebrow { font-size: 9px; } .login > h2 { font-size: 25px; } .login-description { margin-bottom: 20px; } }
@media(pointer:coarse) { button,.button { min-height: 44px; } .route-row { grid-template-columns: minmax(0,1fr) 40px 40px; } .route-row button { min-height: 40px; } .tooth { min-height: 78px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition: none !important; scroll-behavior: auto !important; } button:hover,.button:hover { transform: none; } }

/* Original supplied logo; transparent padding is clipped by layout only. */
.sidebar-top { padding-left: 0; padding-right: 0; }
.brand-image { display: inline-flex; align-items: center; flex: 0 0 auto; line-height: 1; }
.logo-window { display: block; position: relative; width: 164px; height: 38px; overflow: hidden; }
.brand-logo { position: absolute; width: 220px; height: auto; max-width: none; left: -37.5px; top: -14.7px; }
.sidebar .brand-image { background: #fff; padding: 9px 10px; border-radius: 9px; }
.sidebar-caption { padding-left: 1px; }
.guest-header .logo-window { width: 205px; height: 47px; }
.guest-header .brand-logo { width: 275px; left: -47px; top: -18.3px; }
.profile-link { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); border-radius: 9px; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 22px; align-items: start; }
.profile-layout section { margin-top: 0; }
.profile-card { text-align: center; padding: 30px 20px; }
.profile-avatar { display: grid; place-items: center; width: 108px; height: 108px; margin: 0 auto 19px; border-radius: 28px; background: var(--tint); color: var(--brand); font-size: 42px; font-weight: 600; overflow: hidden; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-card > h2:first-of-type { display: block; padding: 0; border: 0; margin-bottom: 8px; font-size: 22px; }
.profile-card > h2:before { display: none; }
.profile-card > p { color: var(--muted); font-size: 12px; }
.profile-departments { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 17px 0; }
.profile-note { padding-top: 19px; margin-top: 23px; border-top: 1px solid var(--line); line-height: 1.8; }
.profile-card .button { margin-top: 15px; font-size: 11px; }
.profile-fields { grid-template-columns: 1fr 1fr; }
.profile-upload { grid-column: 1/-1; }
.profile-save { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.password-editor { max-width: 680px; }
.calendar-warning { color: #b72222; background: #fff1f1; border: 1px solid #f0c6c6; border-left: 3px solid #c13636; border-radius: 9px; padding: 12px 16px; margin-bottom: 20px; font-size: 13px; font-weight: 600; }
.calendar-warning p { margin: 3px 0; }
.form-error-summary { color: #a32a2a; background: #fff6f6; border: 1px solid #edcaca; border-radius: 10px; padding: 16px 18px; margin: 16px 0; font-size: 13px; }
.form-error-summary ul { margin: 8px 0 0; padding-left: 20px; }
.form-error-summary a { color: inherit; }
#order-form .errorlist, #order-form .field-error {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 6px;
  padding: 8px 10px;
  border: 1px solid #a35b61;
  border-radius: 6px;
  background: #351d21;
  color: #ffd6d6;
  font-size: 12px;
  line-height: 1.4;
  list-style: none;
}
#order-form .errorlist::before, #order-form .field-error::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 12px;
  width: 8px;
  height: 8px;
  background: inherit;
  border-top: inherit;
  border-left: inherit;
  transform: rotate(45deg);
}
#order-form [aria-invalid="true"] { border-color: #df7d84; }
.field-label { display: block; font-size: 12px; color: #505968; font-weight: 500; margin-bottom: 7px; }
.appointment-fields { display:flex; align-items:center; gap:6px; position:relative; flex-wrap:wrap; }
.appointment-fields #id_received_at_0 { flex:1 1 110px; min-width:0; }
.appointment-fields #id_received_at_1 { order:1; flex:1 1 92px; min-width:0; }
.appointment-fields #appointment-calendar { flex:1 1 140px; }
.appointment-fields #appointment-calendar.calendar-anchor { position:absolute; inset-inline-end:0; bottom:0; width:1px; height:1px; min-height:0; padding:0; opacity:0; pointer-events:none; }
.appointment-fields #open-appointment-calendar { min-width:40px; min-height:43px; padding:4px 9px; }
.materials-picker { position: relative; background: #fcfcfd; border: 1px solid #dfe3e9; border-radius: 8px; }
.materials-picker summary { padding: 11px 12px; cursor: pointer; font-size: 13px; min-height: 43px; }
.materials-picker[open] { border-color: var(--brand); box-shadow: 0 0 0 3px #ff831f16; }
.materials-options { border-top: 1px solid var(--line); padding: 7px 12px; }
.materials-options label { flex-direction: row; align-items: center; padding: 7px 0; gap: 9px; }
.impression-option { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 8px; }
.materials-options .impression-quantity input { width: 68px; min-height: 34px; padding: 5px 7px; }
.selected-teeth-field { margin-top: 18px; max-width: 100%; }
.selected-teeth-field input { background: var(--tint); border-color: #f1d7c1; color: var(--brand); font-weight: 600; }
.doctor-form { padding: 16px 0; border-top: 1px solid var(--line); }
.doctor-form:first-child { border-top: 0; }
@media(max-width:1100px) { .logo-window { width: 150px; height: 35px; } .brand-logo { width: 201px; left: -34.3px; top: -13.4px; } .profile-layout { grid-template-columns: 230px minmax(0,1fr); gap: 16px; } .profile-fields { grid-template-columns: 1fr; } .profile-upload { grid-column: auto; } }
@media(max-width:780px) { .sidebar .brand-image { padding: 6px 9px; } .profile-layout { grid-template-columns: 1fr; } .profile-card { max-width: none; } }
@media(max-width:540px) { .guest-header .logo-window { width: 150px; height: 35px; } .guest-header .brand-logo { width: 201px; left: -34.3px; top: -13.4px; } .profile-link { gap: 6px; } .profile-fields { grid-template-columns: 1fr; } .profile-avatar { width: 94px; height: 94px; border-radius: 24px; } }
