/* Pearl / prism visual system. Clinical images are intentionally left unfiltered. */
:root {
  --ink: #202938; --ink-2: #3d4a5a; --muted: #657286;
  --paper: #eef1f4; --panel: #eef2f8; --panel-2: #f5f7fb;
  --line: #dce2eb; --line-2: #e8edf3;
  --teal: #245ce4; --teal-700: #1647bd; --teal-400: #699cf5;
  --teal-50: #f1f6ff; --teal-100: #e7efff;
  --side-w: 224px; --r: 22px; --r-sm: 12px;
  --glass: rgba(255,255,255,.78); --glass-border: rgba(255,255,255,.94);
  --glass-shadow: 0 14px 38px -26px rgba(42,58,84,.4), inset 0 1px 0 rgba(255,255,255,.95);
}
html { scroll-behavior: smooth; scroll-padding-top: 22px; }
body { background: radial-gradient(ellipse at 5% 0%, #dcece7 0, transparent 40%), radial-gradient(ellipse at 90% 4%, #f6e8d8 0, transparent 42%), radial-gradient(ellipse at 75% 82%, #e3e4f3 0, transparent 44%), #eef1f4; background-attachment: fixed; color: var(--ink); }
.shell { gap: 28px; padding: 24px; max-width: 1880px; margin: 0 auto; }
.side { top: 24px; height: calc(100vh - 48px); padding: 25px 14px 16px; gap: 26px; border-radius: 28px; background: rgba(255,255,255,.54); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); color: var(--ink); overflow-y: auto; scrollbar-width: thin; }
.brand { color: var(--ink); gap: 11px; font-size: 17px; letter-spacing: -.055em; padding: 3px 9px; }
.brand-sub { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .04em; margin-top: 3px; }
.brand-mark { width: 37px; height: 39px; border-radius: 13px; background: linear-gradient(145deg,#b6e9e5 0%,#6b8eea 48%,#4e53c9 100%); box-shadow: inset 1px 1px 2px #fff9, 0 6px 12px #657bbe38; font-size: 21px; }
.nav { gap: 5px; }
.nav-section { font-size: 9px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: #7a8597; padding: 17px 13px 8px; }
.nav-section:first-child { padding-top: 0; }
.nav a { color: #5d687a; padding: 12px 13px; min-height: 43px; font-size: 12.5px; border: 1px solid transparent; border-radius: 13px; gap: 11px; transition: background .18s, box-shadow .18s; }
.nav .ic { width: 17px; height: 17px; color: #7e8a9d; stroke-width: 1.7; }
.nav a:hover { background: #fff9; color: var(--ink); border-color: #fff; }
.nav a.active { background: linear-gradient(115deg,#fff,#edf3ff); color: #194dbd; font-weight: 700; border-color: #fff; box-shadow: 0 5px 15px #7486a91c; }
.nav a.active .ic { color: #376bdb; }
.persona { color: var(--ink); background: #fff9; border: 1px solid #fff; border-radius: 17px; padding: 11px 9px; font-size: 11.5px; gap: 8px; }
.persona .role { color: var(--muted); font-size: 10px; }
.persona .avatar { background: linear-gradient(145deg,#d5eee6,#dce2f9); color: #425573; width: 31px; height: 31px; font-size: 10px; box-shadow: inset 0 1px 2px #fff; }
.persona .btn, .side-links a, .side-links .btn { color: #657286; }
.persona .btn:hover, .side-links a:hover, .side-links .btn:hover { color: #245ce4; background: #fff; }
.side-links { font-size: 10px; padding: 3px 9px; gap: 4px 9px; }
main.content { padding: 0 0 40px; max-width: none; min-width: 0; }
.workspace-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 45px; margin: 3px 0 25px; }
.workspace-location { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.workspace-location strong { color: #3e4b5e; font-weight: 650; }
.workspace-dot { width: 7px; height: 7px; border-radius: 50%; background: #76a8a0; box-shadow: 0 0 0 4px #fff8; }
.workspace-divider { color: #a9b2bf; }
.workspace-tools { display: flex; gap: 10px; align-items: center; }
.workspace-search { display: flex; align-items: center; width: 245px; height: 41px; padding: 0 9px 0 14px; gap: 9px; border-radius: 24px; background: #ffffffb3; border: 1px solid #fff; box-shadow: 0 5px 14px #7784970b; }
.workspace-search .ic { color: #7c8798; width: 14px; }
.workspace-search input[type=search] { padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 11px; min-width: 0; }
.workspace-search button { border: 0; background: #f0f2f7; border-radius: 7px; color: #758199; padding: 2px 6px; cursor: pointer; }
.workspace-inbox { width: 41px; height: 41px; display: grid; place-items: center; background: #ffffffb3; border: 1px solid #fff; border-radius: 50%; color: #566882; }
.workspace-inbox:hover { background: #fff; }
.eyebrow { display: block; color: #647187; font-size: 9.5px; line-height: 1.5; font-weight: 750; text-transform: uppercase; letter-spacing: .15em; }
.day-hero { display: grid; grid-template-columns: 1.12fr 1fr; position: relative; isolation: isolate; align-items: center; gap: 20px; overflow: hidden; min-height: 325px; padding: 36px 42px; border: 1px solid #fff; border-radius: 31px; background: linear-gradient(118deg,#ffffffc9 0%,#faf8f7c7 44%,#e8eafa99 70%,#d4eee9a6 100%); box-shadow: var(--glass-shadow); }
.day-hero:after { content: ''; position: absolute; z-index: -1; width: 420px; height: 350px; right: -120px; top: -100px; border: 1px solid #fff9; border-radius: 43% 57% 61% 39%; transform: rotate(35deg); background: linear-gradient(130deg,#fff6,#e6dff44d,#bce3e94d); }
.day-copy .eyebrow { max-width: 420px; font-size: 9px; letter-spacing: .1em; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: #4c9c83; }
.day-copy h1 { font-size: clamp(44px,4.4vw,70px); line-height: .99; font-weight: 650; letter-spacing: -.065em; margin: 20px 0 18px; }
.day-copy h1 span { color: #68828d; }
.day-copy p { color: #667286; font-size: 12px; line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.btn { min-height: 38px; padding: 9px 15px; border-radius: 12px; border-color: #dfe5ed; background: #ffffffdc; font-size: 12px; font-weight: 650; box-shadow: 0 2px 5px #4e688010, inset 0 1px 0 #fff; transition: background .18s, box-shadow .18s, transform .18s; }
.btn:hover { background: #fff; border-color: #ccd7e8; box-shadow: 0 5px 12px #4e688019; }
.btn-primary { color: #fff; background: linear-gradient(160deg,#4286f4,#245de0 75%); border-color: #326fea; box-shadow: inset 0 1px 0 #8cb5ff99, 0 6px 15px #3970d72b; }
.btn-primary:hover { color: #fff; background: linear-gradient(160deg,#357aeb,#194fc8); border-color: #235ecf; box-shadow: 0 8px 18px #3970d73d; }
.btn-glass { border-color: #fff; background: #fff9; }
.btn-xs { min-height: 29px; padding: 5px 10px; border-radius: 9px; font-size: 10.5px; }
.btn-sm { min-height: 33px; padding: 7px 12px; font-size: 11.5px; }
.btn-danger { color: #b72b35; }
.btn-ghost { box-shadow: none; background: transparent; }
.btn[disabled] { opacity: .5; }
.day-sculpture { position: relative; width: 100%; height: 285px; }
.orbit { position: absolute; pointer-events: none; }
.orbit-one { width: 240px; height: 240px; left: calc(50% - 120px); top: 22px; border-radius: 49% 51% 48% 52%; background: conic-gradient(from 210deg,#8dd1e7,#e6faf5 17%,#b6c2eb 35%,#d7bce9 52%,#f4d8d7 65%,#a8e4de 85%,#8dd1e7); transform: rotate(-24deg); box-shadow: inset 7px 9px 12px #ffffffd9, inset -5px -8px 14px #858ab04d, 14px 21px 26px -13px #78859870; }
.orbit-one:before { content: ''; position: absolute; inset: 23px; border-radius: 50%; box-shadow: inset 7px 9px 14px #7f93ae60, 3px 5px 10px #fff8; background: linear-gradient(145deg,#bdcadf,#eaf4f2 48%,#cce4ed); }
.orbit-two { width: 330px; height: 130px; border: 1px solid #ffffffd9; border-radius: 50%; top: 80px; left: calc(50% - 165px); transform: rotate(-40deg); background: linear-gradient(140deg,#fff2,transparent); box-shadow: inset 0 2px 3px #fff5, 0 2px 2px #7488a414; }
.sculpture-core { position: absolute; left: calc(50% - 75px); top: 66px; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1px; border-radius: 50%; background: linear-gradient(145deg,#ffffffeb,#eff6f8c9); border: 1px solid #fff; box-shadow: 0 12px 20px #60799420, inset 0 2px 2px #fff; }
.sculpture-core .eyebrow { font-size: 7.5px; letter-spacing: .1em; }
.sculpture-core strong { font-size: 55px; line-height: 1.15; font-weight: 550; letter-spacing: -.07em; }
.sculpture-core > span:last-child { font-size: 10px; color: #697889; }
.floating-note { position: absolute; display: flex; align-items: center; gap: 10px; border: 1px solid #ffffffe6; border-radius: 16px; background: #ffffffb8; backdrop-filter: blur(12px); box-shadow: 0 10px 22px -10px #71809b4d, inset 0 1px 1px #fff; padding: 11px 13px; color: var(--ink); font-size: 9px; }
.floating-note:hover { text-decoration: none; background: #fff; }
.floating-note strong { display: block; font-size: 10px; font-weight: 650; margin-top: 3px; }
.float-top { right: -5px; top: 0; }
.float-bottom { left: -5px; bottom: 0; }
.note-symbol, .metric-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; border: 1px solid #fff9; box-shadow: inset 0 2px 2px #fff9, 0 3px 7px #8c9aa018; }
.note-symbol.cyan { color: #387d8a; background: linear-gradient(135deg,#e0f6ef,#a8dce6); }
.note-symbol.violet { color: #6c63b3; background: linear-gradient(135deg,#efe7fb,#c9c9ee); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin: 30px 3px 17px; }
.section-heading h2 { font-size: 20px; font-weight: 600; letter-spacing: -.04em; margin: 6px 0 0; }
.section-meta { color: #6a7689; font-size: 10px; }
.text-link { color: #3e66a9; font-weight: 650; font-size: 11px; }
.priority-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.priority-card { display: flex; flex-direction: column; position: relative; overflow: hidden; padding: 20px 22px; min-width: 0; min-height: 190px; border: 1px solid #fff; border-radius: 24px; box-shadow: var(--glass-shadow); color: var(--ink); transition: transform .2s, box-shadow .2s; }
.priority-card:hover { transform: translateY(-4px); text-decoration: none; box-shadow: 0 20px 38px -24px #58687d8a, inset 0 1px 0 #fff; }
.priority-lilac { background: linear-gradient(135deg,#f9f7ff,#e5e3f6 85%); }
.priority-mint { background: linear-gradient(135deg,#f6fffc,#cde8e4); }
.priority-peach { background: linear-gradient(135deg,#fffaf5,#f2dfd7); }
.priority-blue { background: linear-gradient(135deg,#f2f9ff,#d7e2f8); }
.priority-top { display: flex; align-items: center; justify-content: space-between; }
.metric-icon { background: #fff7; color: #697894; width: 32px; height: 32px; }
.metric-icon .ic { width: 15px; height: 15px; stroke-width: 1.7; }
.priority-arrow { color: #7a8496; font-size: 16px; }
.priority-value { font-size: 39px; font-weight: 550; line-height: 1.1; letter-spacing: -.045em; margin: 16px 0 7px; font-variant-numeric: tabular-nums; }
.priority-label { font-size: 12px; font-weight: 700; }
.priority-detail { font-size: 10px; color: #5d6a7e; margin-top: 4px; }
.card { background: var(--glass); border: 1px solid #fff; border-radius: 24px; padding: 23px 25px; box-shadow: var(--glass-shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card.tight { padding: 17px 19px; border-radius: 19px; }
.card h2 { font-size: 16px; letter-spacing: -.035em; font-weight: 650; }
.card h3 { font-size: 14px; letter-spacing: -.025em; }
.card-head { gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.card + .card { margin-top: 18px; }
.home-columns { grid-template-columns: minmax(0,1fr) 310px; gap: 20px; }
.home-columns > div > .grid { margin: 18px 0; gap: 14px; }
.grid { gap: 20px; }
.tbl th { font-size: 9px; color: #778396; font-weight: 700; letter-spacing: .07em; padding: 8px 8px 12px; }
.tbl td { padding: 14px 8px; font-size: 12px; vertical-align: middle; border-color: #e4eaf2; }
.tbl tr.click:hover td { background: #f5f8ff; }
.tbl .mono, .mono { font-size: 11px; }
.chip { border-radius: 8px; font-size: 10px; padding: 3px 8px; }
.chip-grey { background: #edf0f6; color: #637087; }
.chip-green { background: #e1f3e9; color: #236a49; }
.chip-amber { background: #fff0d7; color: #845709; }
.chip-coral, .chip-red { background: #fbe5e3; color: #a13831; }
.maturity { font-size: 9px; }
.empty { padding: 32px 20px; background: linear-gradient(135deg,#ffffff80,#f3f6fb80); border: 1px dashed #d5dfed; border-radius: 17px; }
.empty strong { font-size: 13px; font-weight: 650; }
.empty span { max-width: 360px; margin: 7px auto 0; font-size: 11px; color: #657286; }
.page-head { gap: 22px; margin-bottom: 24px; align-items: center; }
.page-head h1 { font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.05em; }
.page-head .sub { font-size: 12px; color: #667389; line-height: 1.6; }
.patient-hero, .visit-hero { position: relative; padding: 30px; border: 1px solid #fff; border-radius: 27px; box-shadow: var(--glass-shadow); background: linear-gradient(118deg,#ffffffe8,#f7f5fbe6 60%,#e4f1efcc); }
.patient-hero h1 .mono { font-family: var(--font); font-size: inherit; letter-spacing: -.045em; }
.patient-avatar { width: 66px; height: 66px; flex: none; display: grid; place-items: center; border-radius: 24px; color: #53658a; background: linear-gradient(140deg,#fff8,#dce7f8 50%,#ddf1e8); border: 1px solid #fff; box-shadow: inset 0 2px 2px #fff, 0 7px 12px #72889f16; }
.patient-avatar .ic { width: 27px; height: 27px; stroke-width: 1.3; }
.patient-identity { display: flex; align-items: center; gap: 20px; min-width: 0; }
.back-link { display: inline-block; font-size: 10px; font-weight: 650; color: #527199; margin-bottom: 13px; }
.patient-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 20px 0 24px; }
.patient-facts > div { display: flex; flex-direction: column; padding: 18px 22px; gap: 4px; border: 1px solid #fff; border-radius: 19px; background: #ffffffad; box-shadow: var(--glass-shadow); }
.patient-facts strong { font-size: 15px; font-weight: 650; }
.patient-facts small { font-size: 11px; color: #657286; }
.visit-hero { align-items: flex-start; }
.visit-hero .sub { display: block; }
.visit-title { min-width: 0; flex: 1 1 380px; }
.visit-title h1 { max-width: 700px; overflow-wrap: anywhere; }
.visit-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.visit-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.readiness { display: flex; gap: 12px; align-items: center; padding: 8px 13px; border: 1px solid #fff; background: #fff9; border-radius: 18px; }
.readiness > div:last-child { display: flex; flex-direction: column; gap: 3px; }
.readiness strong { font-size: 13px; }
.readiness .ring { width: 60px; height: 60px; }
.action-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.action-row form { margin: 0; }
.workflow-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 3px 11px; }
.workflow-heading .small { font-size: 10px; }
.visit-tabs { padding: 6px; background: #ffffffa6; border: 1px solid #fff; border-radius: 19px; box-shadow: var(--glass-shadow); gap: 4px; }
.visit-tabs a { flex: 1 0 auto; justify-content: center; border: 0; padding: 12px 9px; border-radius: 13px; margin: 0; font-size: 11px; gap: 6px; }
.visit-tabs a.active { background: linear-gradient(130deg,#eaf0ff,#f7f9ff); color: #244f9d; box-shadow: inset 0 1px 0 #fff, 0 3px 8px #7b91b91f; }
.visit-tabs .step-number { font-size: 8px; opacity: .65; }
.visit-tabs a:hover { background: #fff; }
input[type=text], input[type=number], input[type=date], input[type=email], input[type=search], input[type=password], input[type=url], select, textarea { border-radius: 11px; border-color: #dce3ec; background-color: #fff; min-height: 41px; font-size: 13px; box-shadow: inset 0 1px 2px #6d819909; }
textarea { line-height: 1.6; }
.field { margin-bottom: 17px; }
label { color: #43516a; font-size: 11.5px; }
.checkline { font-size: 12px; }
.note, .banner { border-radius: 14px; }
.banner-safety { background: #fff3eb; border-color: #f1d3c1; color: #914229; }
.brief { background: linear-gradient(135deg,#ffffffd9,#f2f7fbd9); }
.brief h4 { font-size: 9px; letter-spacing: .08em; }
.brief .grid > div { padding: 8px 0; }
.kv dt, .kv dd { font-size: 12px; }
.timeline .when { color: #75829a; }
.timeline .what { font-size: 13px; }
.proposal { border-radius: 17px; box-shadow: inset 0 1px 0 #fff; }
.viewer { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 20px #27384a1a; }
.tooth-chart { margin: 12px auto; }
.kpi { border: 1px solid #fff; border-radius: 22px; background: linear-gradient(140deg,#fff,#f1f4fb); box-shadow: var(--glass-shadow); }
.kpi .v { color: #354867; }
dialog { border-radius: 25px; }
dialog::backdrop { background: #34435b66; backdrop-filter: blur(5px); }
dialog .card { background: #f9fbff; box-shadow: 0 25px 80px #26354a4d; }
:is(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid #5683dc; outline-offset: 3px; }
.nav a:focus-visible, .tabs a:focus-visible, a.btn:focus-visible { outline: 3px solid #5683dc; outline-offset: 3px; }
.home-columns #unsigned { scroll-margin-top: 24px; }
@media (min-width: 1800px) { .day-hero { min-height: 360px; } }
@media (max-width: 1300px) { .shell { gap: 21px; padding: 20px; grid-template-columns: 205px minmax(0,1fr); } .side { top: 20px; height: calc(100vh - 40px); } .day-hero { padding: 30px; } .day-copy h1 { font-size: 54px; } .home-columns { grid-template-columns: minmax(0,1fr) 285px; } .priority-card { padding: 18px; } .day-sculpture { transform: scale(.92); transform-origin: center; } .float-top { right: -15px; } .float-bottom { left: -15px; } }
@media (max-width: 1100px) { .home-columns { grid-template-columns: 1fr; } .day-hero { grid-template-columns: 1fr 1fr; padding: 26px; } .day-copy h1 { font-size: 48px; } .day-sculpture { transform: scale(.8); } .priority-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .priority-card { min-height: 170px; } .priority-value { font-size: 34px; } .workspace-location > span:not(.workspace-dot) { display: none; } .visit-actions { align-items: flex-start; } }
@media (max-width: 900px) { .shell { grid-template-columns: minmax(0,1fr); padding: 14px; gap: 18px; } .side { min-width: 0; height: auto; position: static; padding: 12px; gap: 10px; border-radius: 22px; overflow: visible; } .brand { font-size: 15px; } .brand-sub { font-size: 9px; } .brand-mark { width: 31px; height: 33px; font-size: 18px; } .side .nav { order: 2; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; min-width: 0; max-width: 100%; scrollbar-width: thin; padding: 2px 0; } .nav a { flex: none; white-space: nowrap; min-height: 36px; padding: 8px 12px; } .nav-section { display: none; } .side-foot { order: 1; margin-left: auto; } .persona { padding: 6px 8px; } .workspace-bar { margin: 0 3px 18px; } .workspace-location > span:not(.workspace-dot) { display: inline; } main.content { padding: 0 0 30px; } .day-sculpture { transform: none; } .day-copy h1 { font-size: 57px; } .day-hero { padding: 30px; } }
@media (max-width: 650px) { .shell { padding: 10px; gap: 18px; } .workspace-location { display: none; } .workspace-tools { width: 100%; } .workspace-search { width: auto; flex: 1; } .day-hero { grid-template-columns: 1fr; gap: 0; padding: 26px 25px 15px; border-radius: 25px; } .day-copy h1 { font-size: 54px; margin: 16px 0; } .day-copy p { font-size: 11px; } .hero-actions { margin-top: 18px; } .day-sculpture { height: 240px; width: 100%; transform: scale(.85); margin: -5px 0 -20px; transform-origin: center; } .orbit-one { top: 0; } .orbit-two { top: 58px; } .sculpture-core { top: 44px; } .float-top { top: 0; right: -10px; } .float-bottom { bottom: 10px; left: -10px; } .section-heading { margin: 25px 3px 14px; align-items: flex-start; } .section-heading h2 { font-size: 18px; } .section-meta { display: none; } .priority-grid { gap: 11px; } .priority-card { padding: 16px; min-height: 174px; border-radius: 20px; } .priority-detail { font-size: 9px; } .priority-label { font-size: 11px; } .priority-value { margin: 12px 0 6px; } .card { padding: 19px 17px; border-radius: 21px; } .card-head { align-items: flex-start; } .page-head h1 { font-size: 26px; } .patient-hero, .visit-hero { padding: 24px 21px; } .patient-identity { gap: 12px; } .patient-avatar { width: 48px; height: 48px; border-radius: 17px; } .patient-facts { grid-template-columns: 1fr; gap: 10px; } .patient-facts > div { padding: 16px 20px; } .visit-title { flex-basis: 100%; } .visit-actions { width: 100%; } .readiness { width: 100%; } .workflow-heading { align-items: flex-start; flex-direction: column; gap: 4px; } .visit-tabs a { font-size: 10px; padding: 10px 8px; } .day-copy .eyebrow { font-size: 8px; } .small { font-size: 11.5px; } .tbl td { font-size: 11px; } .persona > span:nth-child(2) { max-width: 90px; } }
@media (max-width: 650px) {
  #today-visits .tbl-wrap, #follow-ups .tbl-wrap { overflow: visible; }
  #today-visits thead, #follow-ups thead { display: none; }
  #today-visits tbody, #follow-ups tbody { display: block; }
  #today-visits tr, #follow-ups tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 10px; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
  #today-visits tr:last-child, #follow-ups tr:last-child { border-bottom: 0; }
  #today-visits .tbl td, #follow-ups .tbl td { padding: 0; border: 0; min-width: 0; white-space: normal; }
  #today-visits td:nth-child(2), #follow-ups td:nth-child(2) { grid-column: 1; grid-row: 1; font-size: 13px; font-weight: 700; }
  #today-visits td:nth-child(5) { grid-column: 2; grid-row: 1; }
  #today-visits td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  #today-visits td:nth-child(1) { grid-column: 1; grid-row: 3; color: var(--muted); }
  #today-visits td:nth-child(4) { grid-column: 1; grid-row: 4; color: var(--muted); }
  #today-visits td:nth-child(6) { grid-column: 2; grid-row: 3 / 5; align-self: center; }
  #follow-ups td:nth-child(1) { grid-column: 1; grid-row: 2; }
  #follow-ups td:nth-child(3) { grid-column: 1; grid-row: 3; }
  #follow-ups td:nth-child(4) { grid-column: 1; grid-row: 4; color: var(--muted); }
  #follow-ups td:nth-child(4)::before { content: 'Last visit · '; }
  #follow-ups td:nth-child(5) { grid-column: 2; grid-row: 2 / 5; align-self: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *:before, *:after { transition: none !important; animation: none !important; } }
@media print { body { background: white; } .shell { display: block; padding: 0; margin: 0; } .workspace-bar, .side, .day-sculpture, .hero-actions, .visit-actions, .workflow-heading, .visit-tabs { display: none !important; } .card, .day-hero, .patient-hero, .visit-hero { box-shadow: none; backdrop-filter: none; background: white; border: 1px solid #ddd; } .tab-pane { display: block !important; } }

/* Dense clinical screens retain readable text on a calm, solid surface. */
.tbl td { font-size: 13px; }
.tbl th { font-size: 10px; }
.tbl .mono, .mono { font-size: 12px; }
.brief h4 { font-size: 10px; }
.readiness .ring > div { width: 48px; height: 48px; font-size: 12px; }
.readiness .ring small { font-size: 8px; }
.patient-hero h1 { margin: 5px 0; }
.visit-title h1 { margin: 10px 0; }

.persona > a:nth-child(2), .persona > a:hover { color: var(--ink); }
.grid > *, .flex > .field { min-width: 0; }
.tooth-chart { overflow-x: auto; padding-bottom: 4px; }
.tooth-chart svg { min-width: 560px; }
.tooth-chart.mini .tooth text, .tooth-chart.mini > svg > text { display: block; }
.tooth-chart .tooth:focus-visible { outline: none; }
.tooth-chart .tooth:focus-visible rect { stroke: #245ce4; stroke-width: 3; }
.tooth-chart .legend { font-size: 10px; gap: 8px; }
.tooth-chart.mini .legend { display: flex; }
.visit-workspace .flex { flex-wrap: wrap; }
.visit-workspace .flex > select { max-width: 100%; }
.visit-workspace .tabs { scroll-margin-top: 18px; }
@media (max-width: 650px) { .visit-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); } .visit-tabs a { min-width: 0; min-height: 42px; padding: 9px 5px; font-size: 10px; } .visit-tabs .chip { padding: 2px 4px; font-size: 9px; } .visit-tabs .step-number { display: none; } .persona .role { text-overflow: ellipsis; overflow: hidden; } }
