:root{--ink:#1d1d1f;--muted:#6e6e73;--accent:#007aff;--accent-soft:#e8f2ff;--canvas:#fbfbfd;--line:#e5e5ea;font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',sans-serif;font-size:14px;color:var(--ink);background:var(--canvas);font-synthesis:none}
body{background:linear-gradient(135deg,#eef0f5,#fbfbfd 65%);color:var(--ink)}
.demo-banner{background:#fff;color:#6e6e73;font-size:10px;letter-spacing:0;padding:7px 16px;border-bottom:1px solid #e5e5ea}
.shell{min-height:calc(100vh - 30px)}
aside{background:#eeeff3b8;backdrop-filter:blur(24px);border-right:1px solid #dcdde2;flex:0 0 222px;width:222px;padding:32px 14px 22px;color:#343438}
aside h2{font-size:17px;font-weight:650;gap:8px;letter-spacing:-.5px;padding-left:6px}.brand-mark{color:#007aff;font-size:25px}aside>small{color:#86868b;letter-spacing:1.7px;font-size:9px;margin:3px 0 28px 40px}
nav{margin-top:4px}.nav{color:#414146;font-size:13px;gap:11px;padding:9px 12px;border-radius:7px;margin-bottom:4px;font-weight:450}.nav svg{color:#007aff;opacity:1;width:18px;height:18px}.nav.active{color:#fff;background:#007aff;box-shadow:0 2px 4px #007aff20}.nav.active svg{color:#fff}.nav:hover{background:#dedfe5;color:#1d1d1f}.nav.active:hover{background:#006fe8;color:#fff}.nav[data-page=import]{border-top:1px solid #d7d8df;margin-top:22px;padding-top:18px}aside #logout{color:#6e6e73;font-size:12px}
main{padding:20px 40px 48px;max-width:1700px;background:#fbfbfd}.workspace-label{display:flex;align-items:center;gap:18px;font-size:11px;color:#86868b;letter-spacing:0;margin-bottom:32px}.workspace-label span{color:#86868b;font-size:11px;letter-spacing:0;margin:0}.window-dots{display:flex;gap:7px}.window-dots i{height:11px;width:11px;border-radius:50%;background:#ff6058;border:1px solid #e24b44}.window-dots i:nth-child(2){background:#febc2e;border-color:#e0a124}.window-dots i:nth-child(3){background:#28c840;border-color:#22ab35}
header{margin-bottom:28px}h1{font-size:32px;letter-spacing:-1px;font-weight:700}header p{color:#6e6e73;font-size:13px}#identity{background:#f1f1f4;color:#6e6e73;border:0;border-radius:7px;font-size:11px}#identity:before{background:#007aff}
button{background:#007aff;color:#fff;font-weight:500;border-radius:7px;padding:9px 14px;box-shadow:0 1px 2px #0000000a}button:hover{background:#006ee6}button:focus-visible,input:focus-visible{outline:3px solid #007aff66;outline-offset:3px}
.welcome-card{background:none;border:0;border-bottom:1px solid #e5e5ea;border-radius:0;padding:0 0 25px;margin-bottom:28px;box-shadow:none}.welcome-card .eyebrow{display:none}.welcome-card h2{font-size:20px;font-weight:600;color:#1d1d1f;letter-spacing:-.5px}.welcome-card p:not(.eyebrow){font-size:13px;color:#6e6e73;margin:5px 0 14px}.welcome-card button{background:#007aff;color:#fff;border:0;font-size:12px;padding:8px 13px}.welcome-card button:hover{background:#006ee6}.day-summary{border:0;text-align:right;padding:0;margin:0;gap:2px}.day-summary>span{color:#ff3b30;font-size:10px;letter-spacing:1px;font-weight:600}.day-summary strong{color:#1d1d1f;font-size:21px;font-weight:500}.day-summary small{color:#6e6e73;font-size:13px}
.stats{gap:0;background:white;border:1px solid #e5e5ea;border-radius:12px;overflow:hidden;margin-bottom:28px;box-shadow:0 2px 6px #00000003}.stat{border:0;border-right:1px solid #e5e5ea;border-radius:0;padding:23px 26px;background:white;box-shadow:none}.stat:last-child{border:0}.stat:hover{transform:none;background:#f5f8ff;box-shadow:none}.stat small{color:#6e6e73;font-size:12px}.stat strong{font-size:34px;color:#1d1d1f;font-weight:600;margin:8px 0 12px}.stat-detail{font-size:11px;color:#6e6e73}.stat-detail span{color:#007aff}
.panel{background:#fff;border:1px solid #e5e5ea;border-radius:12px;box-shadow:0 2px 8px #00000004}.dashboard-grid{gap:24px;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.dashboard-grid>.panel{padding:26px}.eyebrow{color:#86868b;font-size:10px;letter-spacing:1px}h2,.section-title h2{font-size:18px;color:#1d1d1f;font-weight:600}.text-button{color:#007aff;font-size:12px;box-shadow:none}.text-button:hover{background:#e8f2ff}.appointment-row{padding:21px 0;gap:17px;border-color:#ededf0}.time-pill{background:#f2f2f7;color:#1d1d1f;border-radius:8px;font-size:14px;min-width:68px}.time-pill small{color:#6e6e73;font-size:10px}.appointment-row strong{font-size:14px;color:#1d1d1f;font-weight:600}.appointment-row p{font-size:12px;color:#6e6e73}.status-dot{background:#007aff;width:6px;height:6px}.quick-links button{font-size:13px;color:#1d1d1f;border-color:#ededf0;box-shadow:none;padding:15px 0}.quick-links button>span{background:#e8f2ff;color:#007aff;width:36px;height:36px}.quick-links small{font-size:11px;color:#6e6e73}.quick-links b{color:#86868b}.quiet-note{background:#f5f5f7;color:#6e6e73;font-size:12px;line-height:1.6;margin-top:22px}
.toolbar input,input,select,textarea{background:#fff;border:1px solid #d1d1d6;border-radius:7px;font-size:13px;color:#1d1d1f}.toolbar input{box-shadow:inset 0 1px 2px #00000004}#list{padding:0;overflow:hidden}#list table{margin:0}th{background:#f5f5f7;color:#6e6e73;text-transform:none;letter-spacing:0;font-size:12px;padding:14px 18px;font-weight:600}td{color:#343438;font-size:13px;padding:20px 18px;border-color:#ededf0}td:first-child{font-weight:600;color:#1d1d1f}td button{background:#f2f2f7;color:#007aff;font-size:11px;box-shadow:none;border:1px solid #e5e5ea}.notice{background:#f2f2f7;color:#6e6e73}
.fc{--fc-border-color:#e5e5ea;--fc-today-bg-color:#f5f9ff;--fc-button-active-bg-color:#fff;color:#1d1d1f}.fc table{min-width:0}.fc .fc-toolbar-title{font-size:23px;font-weight:600;letter-spacing:-.6px}.fc .fc-button{background:#fff;border-color:#d1d1d6;color:#343438;font-size:12px;padding:7px 12px;box-shadow:0 1px 2px #00000008}.fc .fc-button-primary:not(:disabled).fc-button-active{background:#e8f2ff;border-color:#b8d6ff;color:#0065d1}.fc .fc-button:hover{background:#f2f2f7;color:#007aff}.fc .fc-col-header-cell-cushion{font-size:12px;font-weight:500;color:#6e6e73;padding:16px 4px}.fc .fc-day-today .fc-col-header-cell-cushion{color:#007aff;font-weight:700}.fc .fc-timegrid-slot-label{font-size:11px;color:#6e6e73}.fc .fc-timegrid-slot{height:28px}.fc .fc-event{background:#e5f0ff!important;border:0!important;border-left:3px solid #007aff!important;border-radius:5px;padding:5px 7px;box-shadow:none}.fc .fc-event-main,.fc .fc-event-time,.fc .fc-event-title{color:#164a87!important}.fc .fc-event-time{font-size:11px;font-weight:500}.fc .fc-event-title{font-size:12px;font-weight:600;line-height:1.4}.calendar-team-filter button[aria-pressed]{background:#f2f2f7!important;color:#414146!important;border-color:#e5e5ea!important;font-size:12px!important;border-radius:6px!important}.calendar-team-filter button[aria-pressed=true]:before{background:#007aff}.calendar-team-filter button[aria-pressed=false]{opacity:.5}
@media(max-width:1100px){main{padding:20px 26px 40px}aside{flex-basis:190px;width:190px;padding-left:10px;padding-right:10px}.nav{font-size:12px}.dashboard-grid{grid-template-columns:1fr}.stat{padding:19px}.stats{grid-template-columns:repeat(2,1fr)}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid #e5e5ea}}
@media(max-width:800px){.shell{display:block}aside{position:static;background:#eeeff3d9;width:auto;height:auto!important;padding:16px 18px 10px;border-right:0;border-bottom:1px solid #dcdde2}aside h2{font-size:17px}aside #logout{color:#6e6e73}nav{margin:12px 0 0;padding:0 0 4px;gap:6px}.nav{padding:9px 12px;font-size:12px;min-height:38px}.nav[data-page=import]{margin:0;border:0;padding:9px 12px}.workspace-label{display:none}main{padding:26px 22px 40px}.welcome-card{padding-bottom:24px}.dashboard-grid{gap:20px}.fc .fc-toolbar{gap:14px}.fc .fc-toolbar-title{font-size:21px}#list{overflow-x:auto}#list:after{color:#6e6e73;font-size:11px}.demo-banner{font-size:9px}}
@media(max-width:440px){main{padding:24px 18px 36px}h1{font-size:30px}header p{font-size:12px}header{margin-bottom:25px}.welcome-card h2{font-size:20px}.welcome-card p:not(.eyebrow){font-size:12px}.welcome-card{padding:0 0 24px;margin-bottom:24px}.stats{margin-bottom:24px}.stat{padding:19px}.stat strong{font-size:31px}.stat small{font-size:12px}.stat-detail{font-size:10px}.dashboard-grid>.panel{padding:20px}.section-title h2{font-size:17px}.section-title .text-button{font-size:11px}.appointment-row{gap:12px}.appointment-row strong{font-size:13px}.appointment-row p{font-size:11px}.fc .fc-event-title{font-size:12px}.fc .fc-event-time{font-size:11px}.fc .fc-toolbar-title{font-size:20px}.fc .fc-button{font-size:11px;padding:8px 10px}.fc .fc-timegrid-slot{height:30px}.demo-banner{font-size:9px}.toolbar button{min-height:40px}.nav{min-height:40px}}
.nav,aside #logout{box-shadow:none}.fc .fc-button-primary:disabled{background:#f2f2f7;border-color:#d1d1d6;color:#86868b;opacity:1}.fc .fc-timegrid-axis-cushion{font-size:10px;color:#6e6e73}
@media(max-width:1000px){body[data-view=customers] #list table,body[data-view=customers] #list tbody{display:block;min-width:0}body[data-view=customers] #list thead{display:none}body[data-view=customers] #list tr{display:grid;grid-template-columns:1fr 1fr;padding:18px 20px;border-bottom:1px solid #e5e5ea;gap:10px 20px}body[data-view=customers] #list td{display:block;padding:0;border:0;font-size:13px}body[data-view=customers] #list td:before{content:attr(data-label);display:block;color:#86868b;font-size:10px;font-weight:400;margin-bottom:3px}body[data-view=customers] #list td:first-child{grid-column:1/-1;order:2;padding-top:6px}body[data-view=customers] #list td:first-child:before{display:none}body[data-view=customers] #list td:empty{display:none}body[data-view=customers] #list:after{display:none}body[data-view=customers] #list td button{min-height:32px;padding:6px 12px}body[data-view=customers] #list tr:last-child{border:0}}

/* Keep FullCalendar's measuring tables intact: the legacy mobile table rule
   otherwise turns them into block boxes and collapses the timed grid to 1px. */
.fc table{display:table;overflow:visible;width:100%;min-width:0}
.fc th,.fc td{padding:0}
.fc .fc-timegrid-slot{height:30px;border-bottom:1px solid #c7c7cc}
.fc .fc-timegrid-slot-minor{border-bottom:1px dotted #dedee3}
.fc .fc-timegrid-slot-label{color:#515158;font-size:12px}
.fc .fc-timegrid-slot-label-cushion{padding:0 6px}
.fc .fc-timegrid-event{min-height:22px}
@media(max-width:600px){
 .fc .fc-toolbar{flex-wrap:wrap;justify-content:center}
 .fc .fc-toolbar-chunk:nth-child(2){order:-1;flex-basis:100%;text-align:center}
 .fc .fc-col-header-cell-cushion{font-size:10px;padding:10px 1px}
 .fc .fc-timegrid-event{padding:2px!important}
 .fc .fc-event-title{font-size:10px;overflow-wrap:anywhere}
 .fc .fc-event-time{font-size:9px;white-space:normal}
}
@media(max-width:1000px){
 .fc .fc-toolbar{flex-wrap:wrap;justify-content:center}
 .fc .fc-toolbar-chunk:nth-child(2){order:-1;flex-basis:100%;text-align:center}
 /* A week remains readable by scrolling inside the calendar, not the page. */
 .fc .fc-view-harness{overflow-x:auto;overscroll-behavior-x:contain}
 .fc .fc-timeGridWeek-view{min-width:700px}
}
/* Layout foundations missing from the previously prepared dashboard skin. */
aside h2,.nav{display:flex;align-items:center}
.nav svg{flex-shrink:0}
.welcome-card{display:flex;align-items:center;justify-content:space-between;gap:24px}
.day-summary{display:flex;flex-direction:column;flex-shrink:0}
.dashboard-grid{display:grid}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:16px}
.text-button{background:transparent;padding:8px;white-space:nowrap}
.appointment-row{display:flex;align-items:center;border-bottom:1px solid #ededf0}
.appointment-row:last-child{border-bottom:0}
.appointment-row>div:nth-child(2){flex:1;min-width:0}
.appointment-row p{margin:6px 0 0}
.time-pill{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px 8px;flex-shrink:0;gap:4px}
.status-dot{display:block;border-radius:50%;flex-shrink:0}
.quick-links{display:flex;flex-direction:column}
.quick-links button{display:flex;align-items:center;gap:12px;background:transparent;text-align:left;border-bottom:1px solid #ededf0;border-radius:0;width:100%}
.quick-links button:hover{background:#f5f8ff}
.quick-links button>span{display:grid;place-items:center;flex-shrink:0;border-radius:8px}
.quick-links button>div{flex:1;min-width:0}
.quick-links small{display:block;margin-top:5px}
.quiet-note{padding:14px;border-radius:8px}
@media(max-width:600px){.welcome-card{align-items:flex-start;flex-direction:column;gap:12px}.day-summary{text-align:left}.section-title{flex-wrap:wrap;gap:0}.dashboard-grid{grid-template-columns:minmax(0,1fr)}}

/* Preview refinement: compact navigation and semantic calendar colours. */
.compact-topbar{display:flex;align-items:center;gap:14px;margin:0 0 18px}
.compact-topbar button{background:#f0f0f4;color:#414146;box-shadow:none;min-height:44px;display:flex;gap:10px;align-items:center}
.compact-brand,.navigation-close,.navigation-backdrop{display:none}
.sidebar-collapsed #navigation-panel{display:none}
body[data-view=appointments] .calendar-panel{max-width:none;padding:22px}
body[data-view=appointments] main{max-width:none}
.calendar-legend{display:flex;gap:10px 18px;flex-wrap:wrap;margin:14px 0 20px;font-size:11px;color:#515158}
.calendar-legend span{display:flex;align-items:center;gap:6px}
.calendar-legend i{display:block;width:8px;height:8px;border-radius:50%;flex-shrink:0}
.fc .fc-event{background:var(--event-bg,#efeff3)!important;border-left:3px solid var(--event-accent,#707078)!important}
.fc .fc-event-main,.fc .fc-event-time,.fc .fc-event-title{color:var(--event-ink,#414148)!important}
.calendar-team-filter button[aria-pressed]:before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--member-accent)!important;margin-right:7px}
.calendar-team-filter button[aria-pressed=false]:before{background:#a0a0a6!important}
.calendar-team-filter button[aria-pressed=false]{text-decoration:line-through}
.calendar-swipe-hint{display:none;font-size:11px;color:#6e6e73;margin:12px 0 0}
body[data-view=appointments] .calendar-panel:has(.fc-timeGridWeek-view) .calendar-swipe-hint{display:block}
button,input,select{min-height:44px}
.text-button,td button{min-height:44px}
@media(max-width:1000px){.fc .fc-timeGridWeek-view{min-width:840px}.fc .fc-button{min-height:44px}}
@media(min-width:1001px){.calendar-swipe-hint{display:none!important}}
@media(max-width:800px){
 main{padding-top:0}
 .compact-topbar{position:sticky;top:0;z-index:20;background:#fbfbfdf5;backdrop-filter:blur(18px);border-bottom:1px solid #e5e5ea;padding:10px 0;margin:0 0 22px;justify-content:space-between;min-height:64px}
 .compact-brand{display:block;font-size:17px;font-weight:650;letter-spacing:-.5px}
 .menu-label{display:none}
 .compact-topbar button{width:44px;justify-content:center;padding:8px;font-size:19px}
 #navigation-panel{display:none}
 body.navigation-open{overflow:hidden}
 body.navigation-open #navigation-panel{display:flex;position:fixed;inset:0 auto 0 0;z-index:50;width:min(320px,86vw);height:100dvh!important;overflow-y:auto;background:#f1f2f6;padding:18px 16px;gap:10px;box-shadow:8px 0 40px #0002}
 body.navigation-open .navigation-backdrop{display:block;position:fixed;inset:0;z-index:40;background:#1d1d1f55;border-radius:0;width:100%;height:100%;padding:0}
 .navigation-close{display:block;align-self:flex-end;background:transparent;color:#007aff;min-height:44px;box-shadow:none}
 #navigation-panel nav{display:block;overflow:visible;margin:0;flex:1}
 #navigation-panel .nav{width:100%;min-height:44px;margin:0 0 4px}
 #navigation-panel>small{margin-bottom:10px}
 #navigation-panel #logout{margin-top:16px;min-height:44px}
 body[data-view=appointments] .calendar-panel{padding:16px 12px}
 .calendar-legend{gap:9px 12px;font-size:10px}
}

.compact-brand{display:block;font-size:13px;color:#6e6e73}.compact-topbar{justify-content:space-between}
@media(max-width:800px){.compact-brand{font-size:17px;color:#1d1d1f}}

/* Calendar editor: scoped, responsive form layout. */
#editor.appointment-editor{max-width:980px;padding:0;overflow:hidden;border-color:#e5e5ea;border-radius:18px;box-shadow:0 8px 32px #1d1d1f08;margin-top:24px}
.appointment-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:28px 30px 24px;border-bottom:1px solid #ededf0;background:linear-gradient(120deg,#fff,#f8f9fc)}
.appointment-editor-head h2{font-size:24px;letter-spacing:-.6px;margin:0 0 8px}
.appointment-editor-head p{color:#6e6e73;font-size:13px;line-height:1.5;margin:0;max-width:540px}
.appointment-editor .editor-close{background:#ececf1;color:#6e6e73;border-radius:50%;width:36px;min-height:36px;height:36px;padding:0;font-size:24px;box-shadow:none;flex-shrink:0}
.appointment-form{display:block!important;max-width:none!important;margin:0!important;padding:0}
.appointment-form .appointment-section{border:0;min-width:0;margin:0;padding:26px 30px;border-bottom:1px solid #ededf0}
.appointment-section legend{float:left;width:100%;padding:0;margin:0 0 5px;color:#1d1d1f;font-weight:650;font-size:15px;letter-spacing:-.2px}
.appointment-section .section-hint{clear:both;color:#86868b;font-size:12px;line-height:1.5;margin:0 0 22px}
.appointment-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 24px}
.appointment-fields label{display:flex!important;flex-direction:column!important;gap:8px!important;margin:0;font-size:12px!important;font-weight:600!important;color:#515158}
.appointment-fields input,.appointment-fields select,.appointment-fields textarea{appearance:none;-webkit-appearance:none;width:100%!important;min-width:0;min-height:46px!important;margin:0!important;border:1px solid #dcdce2!important;border-radius:10px!important;background:#fafafd!important;color:#1d1d1f!important;font:inherit!important;font-size:14px!important;font-weight:400!important;padding:12px 14px!important;box-shadow:0 1px 2px #00000003;transition:border-color .15s,box-shadow .15s}
.appointment-fields input:focus,.appointment-fields select:focus,.appointment-fields textarea:focus{outline:none;border-color:#007aff!important;box-shadow:0 0 0 3px #007aff18;background:#fff!important}
.appointment-fields select{padding-right:38px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 14px center!important;cursor:pointer}
.appointment-fields label:has(input[type=checkbox]){flex-direction:row!important;align-items:center!important;align-self:end;min-height:46px;padding:0!important;font-size:14px!important;font-weight:450!important;gap:10px!important}
.appointment-fields input[type=checkbox]{appearance:auto;-webkit-appearance:checkbox;accent-color:#007aff;width:18px!important;height:18px!important;min-height:18px!important;box-shadow:none;padding:0!important;border-radius:4px!important;flex-shrink:0}
.appointment-fields .full-width{grid-column:1/-1}
.appointment-fields textarea{min-height:108px!important;resize:vertical;line-height:1.6!important}
.appointment-fields small{font-size:11px;font-weight:400;color:#86868b;line-height:1.4}
.appointment-form [hidden]{display:none!important}
.appointment-actions{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;margin:0!important;padding:20px 30px!important;background:#fafafd}
.appointment-actions .appointment-save{padding:12px 20px!important;border-radius:10px!important;font-size:13px;font-weight:550!important;min-height:44px}
.appointment-actions .appointment-cancel{background:transparent!important;color:#6e6e73!important;border:0!important;padding:12px 16px!important;border-radius:10px!important;box-shadow:none;font-size:13px;font-weight:450}
.appointment-actions .appointment-delete{background:transparent!important;color:#c1343e!important;border:0!important;box-shadow:none;font-size:12px}
.appointment-actions button:disabled{opacity:.5;cursor:wait}
@media(max-width:600px){
 #editor.appointment-editor{border-radius:14px}
 .appointment-editor-head{padding:22px 18px 20px;gap:12px}
 .appointment-editor-head h2{font-size:21px}
 .appointment-editor-head p{font-size:12px}
 .appointment-form .appointment-section{padding:22px 18px}
 .appointment-fields{grid-template-columns:minmax(0,1fr);gap:18px}
 .appointment-fields input,.appointment-fields select,.appointment-fields textarea{font-size:16px!important}
 .appointment-actions{padding:18px!important}
 .appointment-actions .appointment-save{flex:1}
 .appointment-actions .appointment-delete{width:100%;margin-left:0!important;text-align:left;padding-left:0!important}
}

/* Shared internal appointments and bounded recurrence. */
.appointment-fields .participant-control{gap:10px!important}
.participant-options{display:flex;flex-wrap:wrap;gap:8px}
.appointment-fields .participant-options .participant-chip{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;padding:10px 13px!important;border:1px solid #dedee5;border-radius:10px;background:#fafafd;font-weight:450!important;cursor:pointer;min-height:44px}
.appointment-fields .participant-options .participant-chip:has(input:checked){border-color:#80baff;background:#eaf3ff;color:#0758b8}
.appointment-fields .participant-options input[type=checkbox]{margin:0!important}
.appointment-fields .series-info,.appointment-section>.series-info{font-size:12px;color:#6e6e73;line-height:1.6;background:#f2f5fa;border-radius:9px;padding:12px 14px;margin:4px 0 0}
#editor .appointment-fields label.participant-control{flex-direction:column!important;align-items:stretch!important;align-self:stretch;gap:10px!important;padding:0!important}
.overlap-notice{background:#fff7df;border:1px solid #ecd499;border-radius:12px;color:#68521a;padding:18px 20px;line-height:1.6}
.overlap-notice strong{display:block;font-size:15px;color:#59420a}
.overlap-notice p{margin:6px 0}.overlap-notice ul{margin:8px 0;padding-left:20px;font-size:12px}

/* Customer rows open the file; secondary actions stay compact and separate. */
body[data-view=customers] #list{overflow:visible}
body[data-view=customers] #list table{width:100%;min-width:0;table-layout:auto}
body[data-view=customers] #list td{padding:12px 16px;vertical-align:middle;overflow-wrap:anywhere}
body[data-view=customers] #list th{padding:12px 16px}
body[data-view=customers] #list th:last-child{width:160px}
.customer-row{cursor:pointer;transition:background .15s}
.customer-row:hover{background:#f5f9ff}
.customer-row:focus-within{background:#f5f9ff}
body[data-view=customers] #list .customer-name{display:inline;padding:0;min-height:44px;border:0;background:transparent;box-shadow:none;color:#1d1d1f;font-size:13px;font-weight:600;text-align:left;white-space:normal;line-height:1.5}
body[data-view=customers] #list .customer-name:hover{color:#007aff;text-decoration:underline}
.customer-name:focus-visible,.customer-more summary:focus-visible{outline:3px solid #80baff;outline-offset:3px;border-radius:6px}
.customer-actions{white-space:nowrap}
.customer-action-group{display:flex;align-items:center;gap:8px}
body[data-view=customers] #list .customer-action-group>button{margin:0;padding:8px 12px;min-height:44px;border-radius:9px;font-size:12px}
.customer-more{position:relative}
.customer-more summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;box-sizing:border-box;border:1px solid #e5e5ea;border-radius:9px;background:#f2f2f7;color:#6e6e73;cursor:pointer;list-style:none;letter-spacing:2px;font-weight:700}
.customer-more summary::-webkit-details-marker{display:none}
.customer-more[open] summary,.customer-more summary:hover{background:#e8f2ff;color:#007aff}
.customer-action-menu{position:absolute;right:0;top:calc(100% + 5px);z-index:30;min-width:165px;padding:5px;border:1px solid #e5e5ea;border-radius:12px;background:white;box-shadow:0 8px 28px #0002}
body[data-view=customers] #list .customer-action-menu .danger-action{display:block;width:100%;margin:0;border:0;min-height:44px;background:white;color:#c9342d;text-align:left;padding:10px 12px;border-radius:8px;font-size:12px}
body[data-view=customers] #list .customer-action-menu .danger-action:hover{background:#fff1f0}
@media(max-width:1000px){
body[data-view=customers] #list tr{padding:16px 18px;gap:10px 16px}
body[data-view=customers] #list td{padding:0;min-width:0}
body[data-view=customers] #list td:first-child{grid-column:auto;order:0;padding:0}
body[data-view=customers] #list td:first-child:before{display:block}
body[data-view=customers] #list .customer-actions{grid-column:1/-1;padding-top:4px}
body[data-view=customers] #list .customer-actions:before{display:none}
body[data-view=customers] #list .customer-name{min-height:44px}
.customer-action-group{justify-content:flex-end}
}
@media(min-width:1001px){
body[data-view=customers] #list td:nth-child(5),body[data-view=customers] #list td:nth-child(6){white-space:nowrap;overflow-wrap:normal}
}
@media(min-width:1001px){
body[data-view=customers] #list table{table-layout:fixed}
body[data-view=customers] #list th{overflow-wrap:anywhere}
body[data-view=customers] #list th:nth-child(1){width:10%}
body[data-view=customers] #list th:nth-child(2){width:18%}
body[data-view=customers] #list th:nth-child(3){width:22%}
body[data-view=customers] #list th:nth-child(4){width:8%}
body[data-view=customers] #list th:nth-child(5){width:12%}
body[data-view=customers] #list th:nth-child(6){width:12%}
body[data-view=customers] #list th:nth-child(7){width:18%}
body[data-view=customers] #list td:nth-child(5),body[data-view=customers] #list td:nth-child(6){overflow:hidden;text-overflow:ellipsis}
body[data-view=customers] #list td.customer-actions{padding-left:10px;padding-right:10px}
}

/* Customer file: useful context first, complete history remains available. */
.customer-hero{padding:28px 30px}
.customer-hero-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.customer-hero h2{font-size:30px;line-height:1.2;letter-spacing:-.7px;margin:6px 0 8px;overflow-wrap:anywhere}
.customer-status,.customer-count{display:inline-block;border-radius:20px;background:#eef4f0;color:#42634c;padding:5px 11px;font-size:12px;font-weight:500;white-space:nowrap}
.customer-count{background:#f2f2f7;color:#6e6e73;padding:3px 8px;font-size:11px;vertical-align:middle}
.customer-contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 26px;margin:24px 0}
.customer-contact span{display:block;font-size:11px;color:#6e6e73;margin-bottom:6px}
.customer-contact p,.customer-contact a{font-size:14px;line-height:1.6;margin:0;overflow-wrap:anywhere;color:#343438}
.customer-contact a{color:#0068d9;text-decoration:none}.customer-contact a:hover{text-decoration:underline}
.customer-notes{border-top:1px solid #ededf0;margin:18px 0;padding:14px 0}.customer-notes summary{cursor:pointer;font-weight:500}.customer-notes p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7}
.customer-overview-grid{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:18px;margin-bottom:24px;align-items:stretch}
.customer-overview-grid>.panel{margin:0;min-width:0;padding:24px}
.customer-overview-grid h2{font-size:18px;letter-spacing:-.3px;margin:8px 0 18px}
.customer-next{background:linear-gradient(145deg,#f4f8ff,#fff)}
.customer-next-date{font-size:17px;font-weight:600;color:#0068d9;margin:18px 0 12px;line-height:1.6}
.customer-next h3{font-size:16px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.customer-next .muted,.customer-overview-grid .muted{font-size:13px;line-height:1.7}
.customer-summary-list{list-style:none;padding:0;margin:0}.customer-summary-list li+li{border-top:1px solid #ededf0}
.customer-summary-list button{display:block;width:100%;text-align:left;background:transparent;border:0;box-shadow:none;color:#343438;padding:12px 0;min-height:44px;margin:0;border-radius:5px;white-space:normal}
.customer-summary-list button:hover{background:#f5f7fb;color:#0068d9}.customer-summary-list strong{font-size:13px;font-weight:500;display:block;overflow-wrap:anywhere;line-height:1.5}
.customer-summary-list small{display:block;color:#6e6e73;font-size:11px;margin-top:5px;line-height:1.6}
.customer-related{display:flex;flex-direction:column;gap:16px}.customer-related>.panel{margin:0;min-width:0}
.customer-access{order:10}.customer-access summary{cursor:pointer;font-size:13px;font-weight:500;padding:4px 0}.customer-access p{font-size:12px;line-height:1.6}
.customer-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.customer-section-heading h2{font-size:19px;margin:0}.customer-section-heading button{margin:0;white-space:nowrap}
.customer-section>summary{cursor:pointer;font-weight:600;list-style:none;margin:0;font-size:15px;min-height:44px}
.customer-section>summary::-webkit-details-marker{display:none}.customer-section>summary:before{content:'›';font-size:23px;color:#86868b;line-height:1}
.customer-section>summary span{flex:1}.customer-section[open]>summary{margin-bottom:16px}.customer-section[open]>summary:before{transform:rotate(90deg)}
.customer-table-wrap{overflow-x:auto;max-width:100%}.customer-table-wrap table{width:100%;min-width:520px;margin:0}
.customer-table-wrap td,.customer-table-wrap th{padding:14px 16px;overflow-wrap:anywhere}
.customer-table-wrap td:last-child{text-align:right}.customer-table-wrap td button{margin:0;min-height:44px}
.customer-overview-grid button:focus-visible,.customer-section button:focus-visible,.customer-hero button:focus-visible,.customer-section summary:focus-visible{outline:3px solid #80baff;outline-offset:3px}
@media(max-width:1200px){.customer-overview-grid{grid-template-columns:1fr 1fr}.customer-next{grid-column:1/-1}.customer-contact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
.customer-hero{padding:22px 18px}.customer-hero h2{font-size:25px}.customer-hero-heading{gap:12px;flex-wrap:wrap}.customer-contact-grid{grid-template-columns:1fr;gap:16px;margin:20px 0}
.customer-overview-grid{grid-template-columns:minmax(0,1fr);gap:14px}.customer-overview-grid>.panel{padding:22px 18px}
.customer-section{padding:18px}.customer-section-heading{align-items:flex-start;flex-wrap:wrap}.customer-section-heading h2{font-size:17px}
.customer-table-wrap{overflow:visible}.customer-table-wrap table,.customer-table-wrap tbody{display:block;min-width:0}.customer-table-wrap thead{display:none}
.customer-table-wrap tr{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;border-bottom:1px solid #ededf0;padding:14px 0}
.customer-table-wrap td{display:block;padding:0;border:0;min-width:0;font-size:13px}.customer-table-wrap td:before{content:attr(data-label);display:block;font-size:10px;color:#86868b;margin-bottom:5px;font-weight:400}
.customer-table-wrap td:last-child{grid-column:1/-1}.customer-table-wrap td:last-child:before{display:none}
}
.customer-hero{margin-bottom:20px}
.customer-quick-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.customer-quick-actions button{margin:0;min-height:44px}
@media(max-width:600px){.customer-quick-actions{display:grid;grid-template-columns:1fr}.customer-quick-actions button{width:100%;white-space:normal}}
.personal-welcome h2{overflow-wrap:anywhere}.dash-welcome-actions{display:flex;flex-wrap:wrap;gap:10px}.dash-welcome-actions button{margin:0;min-height:44px}
.dash-personal-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:white;border:1px solid #e5e5ea;border-radius:16px;margin:20px 0 24px;overflow:hidden}
.dash-personal-counts>div{padding:20px 24px;display:flex;align-items:baseline;gap:12px;border-right:1px solid #ededf0}.dash-personal-counts>div:last-child{border:0}
.dash-personal-counts strong{font-size:27px;letter-spacing:-.7px;font-weight:600}.dash-personal-counts span{font-size:12px;color:#6e6e73}
.personal-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.dashboard-widget{margin:0;min-width:0;padding:24px}
.dash-widget-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.dash-widget-heading h2{font-size:19px;letter-spacing:-.3px;margin:8px 0 0}.dash-widget-heading>.text-button{margin:0;font-size:11px;min-height:44px;white-space:normal}
.dash-list{list-style:none;padding:0;margin:0}.dash-list>li+li{border-top:1px solid #ededf0}
.dash-event,.dash-task{display:flex;width:100%;gap:14px;align-items:center;background:transparent;box-shadow:none;border:0;border-radius:8px;color:#343438;text-align:left;padding:14px 2px;margin:0;min-height:52px;white-space:normal}
.dash-event:hover,.dash-task:hover{background:#f4f8ff}.dash-event.is-past{opacity:.65}.dash-event-time{min-width:72px;color:#0068d9;font-weight:600;font-size:14px;line-height:1.5}
.dash-event-time small{display:block;color:#6e6e73;font-size:10px;font-weight:400;margin-top:3px}.dash-event-body,.dash-task>span:first-child{flex:1;min-width:0}
.dash-event strong,.dash-task strong{display:block;overflow-wrap:anywhere;font-weight:500;font-size:13px;line-height:1.6}
.dash-event-body>small,.dash-task small{display:block;color:#6e6e73;font-size:11px;line-height:1.6;margin-top:3px;overflow-wrap:anywhere}
.dash-chevron{font-size:22px;color:#a1a1a6;flex-shrink:0}.dash-tag{display:inline-block;background:#f2f2f7;color:#6e6e73;border-radius:5px;padding:2px 6px;font-size:10px;margin:6px 5px 0 0}.dash-tag.is-current{background:#eaf4ed;color:#397746}
.dash-task .dash-overdue{color:#a84b20}.dash-empty{font-size:13px;color:#86868b;line-height:1.7;padding:12px 0}
.dash-more{border-top:1px solid #ededf0;padding-top:12px}.dash-more summary{font-size:12px;color:#007aff;cursor:pointer;min-height:32px}
.dash-privacy-note{font-size:11px;color:#86868b;line-height:1.7;margin:20px 0}
.dashboard-customizer{margin-bottom:22px}.dashboard-customizer h2{font-size:20px;margin-top:0}.dashboard-customizer>.muted{font-size:13px;line-height:1.6}
.dash-layout-list{list-style:none;padding:0;margin:20px 0}.dash-layout-list li{display:flex;gap:16px;align-items:center;justify-content:space-between;border-bottom:1px solid #ededf0;padding:10px 0}
.dash-layout-list label{display:flex;gap:12px;align-items:center;flex:1;min-height:44px;margin:0;cursor:pointer}.dash-layout-list input{width:20px;height:20px;accent-color:#007aff;margin:0}.dash-layout-list li>div{display:flex;gap:8px}.dash-layout-list button{margin:0;min-height:44px;min-width:44px;padding:8px}.dash-layout-list button:disabled{opacity:.3;cursor:default}
.dash-settings-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.dash-settings-actions button{margin:0;min-height:44px}.dash-mapping{font-size:12px;line-height:1.7}
.personal-dashboard-grid button:focus-visible,.dashboard-customizer button:focus-visible{outline:3px solid #80baff;outline-offset:3px}
@media(max-width:1050px){.dash-personal-counts>div{flex-direction:column;gap:5px;padding:18px}.personal-dashboard-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.dash-personal-counts{grid-template-columns:1fr 1fr}.dash-personal-counts>div:nth-child(2){border-right:0}.dash-personal-counts>div:nth-child(-n+2){border-bottom:1px solid #ededf0}.dashboard-widget{padding:20px 18px}.dash-widget-heading{flex-wrap:wrap}.dash-event{gap:10px}.dash-event-time{min-width:68px}.dash-settings-actions{display:grid;grid-template-columns:1fr}.dash-settings-actions button{width:100%}.dashboard-customizer{padding:20px 18px}}
/* Aufgaben: eigene Ansichten, klare Zuständigkeit und schnelle Erledigung. */
.task-filters{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.task-filters button{display:inline-flex;align-items:center;gap:12px;min-height:44px}.task-filters button span{font-size:12px;background:rgba(128,128,128,.12);padding:3px 7px;border-radius:12px}.task-filters button.active{background:var(--accent,#007aff);color:white}.task-workspace{padding:24px}.task-list-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.task-list-head h2{margin:0}.task-cards{list-style:none;padding:0;margin:0}.task-cards>li{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0;border-top:1px solid rgba(128,128,128,.16)}.task-card-main{min-width:0}.task-title{padding:0!important;background:none!important;border:0!important;box-shadow:none!important;color:inherit!important;text-align:left;font-size:17px;font-weight:650;overflow-wrap:anywhere;min-height:32px}.task-card-main p{margin:7px 0;color:var(--muted,#68686d)}.task-meta{display:flex;gap:8px 18px;flex-wrap:wrap;font-size:13px;color:var(--muted,#68686d)}.task-card-actions{display:flex;gap:8px;flex-shrink:0}.task-card-actions button{min-height:44px}.task-done .task-title{text-decoration:line-through;color:var(--muted,#68686d)!important}.task-editor{padding:24px;margin:20px 0}.task-editor form{display:grid;grid-template-columns:1fr 1fr;gap:20px}.task-title-field,.task-form-note,.task-form-actions{grid-column:1/-1}.task-editor label{margin:0}.task-editor input,.task-editor select{width:100%;min-height:48px;margin-top:8px}.task-form-actions{display:flex;gap:10px;flex-wrap:wrap}.task-form-note{margin:0}.task-editor .error:empty{display:none}@media(max-width:700px){.task-editor form{grid-template-columns:1fr}.task-cards>li{align-items:stretch;flex-direction:column;gap:16px}.task-card-actions{flex-wrap:wrap}.task-workspace,.task-editor{padding:18px}.task-filters{gap:8px}.task-filters button{flex:1 1 42%;justify-content:space-between}.task-list-head{align-items:flex-start}}
.task-editor,body[data-view="customers"] #editor{scroll-margin-top:90px}
.import-status-card{padding:22px 26px;margin:0 0 24px}.import-status-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.import-status-heading h2{font-size:18px;margin:0}.import-status-card p{margin:10px 0;color:var(--muted,#68686d)}.import-state{padding:6px 12px;border-radius:999px;font-size:13px;font-weight:600;background:#ececf0;color:#555}.import-state.is-active{background:#e2f4e8;color:#176d39}.import-state.is-paused,.import-state.is-stale{background:#fff0d8;color:#8b5400}.import-status-details{display:flex;flex-wrap:wrap;gap:10px 30px;font-size:13px;color:var(--muted,#68686d)}.import-status-details strong{color:var(--text,#242426);font-weight:500}.analysis-background{grid-column:1/-1}.analysis-background textarea{width:100%;min-height:340px;resize:vertical;line-height:1.6}.analysis-section{scroll-margin-top:90px}@media(max-width:600px){.import-status-card{padding:18px}.import-status-details{flex-direction:column;gap:8px}.analysis-background textarea{min-height:280px}}

@media(max-width:600px){main>header{flex-direction:column;align-items:flex-start;gap:12px}main>header>div{min-width:0;max-width:100%}#identity{max-width:100%;white-space:normal;overflow-wrap:anywhere}body[data-view="analyses"] #list{max-width:100%;min-width:0;overflow-x:auto}.analysis-grid>*{min-width:0}}
.customer-filters{padding:18px 20px;margin:0 0 20px}.customer-filter-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.customer-scope-buttons{display:flex;gap:8px;flex-wrap:wrap}.customer-scope-buttons button{display:flex;align-items:center;gap:10px;min-height:44px}.customer-scope-buttons button span{padding:2px 7px;border-radius:12px;background:rgba(128,128,128,.13);font-size:12px}.customer-employee-filter{display:flex;align-items:center;gap:10px;margin:0;font-size:13px}.customer-employee-filter select{appearance:none;-webkit-appearance:none;height:44px;min-width:200px;margin:0;padding:0 32px 0 12px;border:1px solid #d5d5db;border-radius:10px;font:inherit;color:inherit;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%236e6e73' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 11px center}.customer-filter-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.customer-filter-footer p{margin:0;font-size:13px;color:var(--muted,#6e6e73)}.customer-filter-footer button{min-height:44px}.customer-mapping-note{margin-bottom:0;font-size:13px}@media(max-width:700px){.customer-filters{padding:16px}.customer-filter-controls{align-items:stretch;flex-direction:column}.customer-scope-buttons button{flex:1 1 42%;justify-content:space-between}.customer-employee-filter{align-items:stretch;flex-direction:column;gap:7px}.customer-employee-filter select{width:100%;min-width:0}.customer-filter-footer{flex-wrap:wrap}}

/* Consistent clinical forms: spacious writing areas, clear sections, touch controls. */
.clinical-form{display:flex;flex-direction:column;gap:22px;max-width:1100px}
.clinical-form .analysis-section,.clinical-section{background:#fff;border:1px solid #e3e5eb;border-radius:18px;padding:24px;margin:0;min-width:0;box-shadow:0 3px 14px #18243a05}
.clinical-form .analysis-section>summary{font-size:18px;font-weight:650;cursor:pointer;line-height:1.5;padding:0 0 4px}
.clinical-form .analysis-section[open]>summary{margin-bottom:22px}
.clinical-section>h3{font-size:18px;margin:0 0 22px}
.clinical-form .analysis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.clinical-form label{display:flex;flex-direction:column;gap:9px;min-width:0;font-size:14px;font-weight:550;margin:0}
.clinical-form input,.clinical-form select,.clinical-form textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:46px;border:1px solid #d7dce5;border-radius:10px;background:#fafbfe;padding:12px 14px;font:inherit;color:#22252b}
.clinical-form textarea{min-height:180px;line-height:1.65;resize:vertical;font-weight:400;overflow-y:auto}
.clinical-form .clinical-long{grid-column:1/-1}
.clinical-form .analysis-background textarea{min-height:340px}
.clinical-form .analysis-theme{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:22px;margin:20px 0;border:1px solid #e0e5ef;border-radius:14px;background:#f8faff;min-width:0}
.clinical-form .analysis-theme>legend{font-weight:650;padding:0 8px;color:#315d9d}
.clinical-form .analysis-theme>label{grid-column:1/-1}
.clinical-form .analysis-theme>label:first-of-type input{font-size:17px;font-weight:600}
.clinical-form .analysis-theme>button{justify-self:start;background:transparent;color:#b63743;border:1px solid #ead5d9}
.clinical-form button{min-height:44px;border-radius:10px;align-self:flex-start}
.clinical-actions{display:flex;justify-content:flex-end;gap:12px;padding:18px 0 8px;flex-wrap:wrap;border-top:1px solid #e3e5eb}
.clinical-actions button{margin:0}.clinical-form .analysis-multiselect{display:flex;flex-wrap:wrap;gap:12px}.clinical-form .analysis-multiselect label{flex-direction:row;align-items:center}.clinical-form .analysis-multiselect input{width:20px;min-height:20px}
.clinical-treatments>.analysis-grid{padding:18px 0;border-bottom:1px solid #e3e5eb;margin-bottom:18px;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr)}
.clinical-treatments>p{font-weight:650;font-size:18px}
@media(max-width:700px){.clinical-form{gap:16px}.clinical-form .analysis-section,.clinical-section{padding:18px;border-radius:14px}.clinical-form .analysis-grid,.clinical-form .analysis-theme,.clinical-treatments>.analysis-grid{grid-template-columns:minmax(0,1fr)}.clinical-form .analysis-theme{padding:16px}.clinical-actions{flex-direction:column-reverse}.clinical-actions button{width:100%}.clinical-form textarea{min-height:200px}}

.ihht-heading{display:flex;align-items:end;gap:24px;flex-wrap:wrap}.ihht-heading>div{flex:1;min-width:220px}.ihht-heading h2{margin:4px 0 8px}.ihht-heading>label{display:flex;flex-direction:column;gap:8px;min-width:260px;flex:1}.ihht-heading select{min-height:46px;border-radius:10px;padding:10px;max-width:100%;width:100%}.ihht-heading button{min-height:46px}.ihht-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:24px}.ihht-chart{min-width:0;padding:22px}.ihht-chart h3{margin:0 0 10px;font-size:17px}.ihht-chart svg{display:block;width:100%;height:auto;min-width:0}.ihht-chart p{font-size:12px;line-height:1.5}.ihht-chart circle:focus{outline:2px solid #222}.ihht-session{display:flex;gap:20px;justify-content:space-between;padding:22px 0;border-top:1px solid #e3e5eb;align-items:start}.ihht-session>div{min-width:0;flex:1}.ihht-session h3{margin:0 0 16px;font-size:17px}.ihht-session dl{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px 18px;margin:0}.ihht-session dt{grid-row:1;font-size:12px;color:#6d7380}.ihht-session dd{grid-row:2;margin:0;font-weight:600}.ihht-remarks{white-space:pre-wrap;overflow-wrap:anywhere;color:#626875}.ihht-form input[readonly]{background:#f0f2f6;color:#606877}.ihht-session-list{overflow:hidden}.ihht-heading select:focus{outline:2px solid #438bf2}@media(max-width:850px){.ihht-charts{grid-template-columns:1fr}.ihht-heading>label{min-width:0;width:100%;flex-basis:100%}.ihht-session{flex-direction:column}.ihht-session dl{grid-template-columns:1fr 1fr}.ihht-session dt,.ihht-session dd{grid-row:auto}.ihht-session dt{grid-column:1}.ihht-session dd{grid-column:2}.ihht-chart{padding:16px}}

.ihht-customer-picker{display:flex;flex-direction:column;gap:8px;flex:1;min-width:280px;max-width:100%}.ihht-customer-picker label{font-size:13px;font-weight:600}.ihht-customer-picker input{min-height:46px;padding:12px 14px;border:1px solid #d7dce5;border-radius:10px;box-sizing:border-box;width:100%;font:inherit;background:#fafbfe}.ihht-customer-picker p{font-size:12px;margin:0}.ihht-session-actions{display:flex;gap:10px;flex-wrap:wrap;flex-shrink:0}.ihht-session-actions button{min-height:44px}.ihht-session-actions .ihht-delete{color:#b63342;border-color:#e8ccd0;background:#fff7f8}.ihht-customer-picker input:focus{outline:2px solid #438bf2;outline-offset:2px}@media(max-width:850px){.ihht-customer-picker{min-width:0;flex-basis:100%;width:100%}.ihht-session-actions{width:100%}.ihht-session-actions button{flex:1}}

.ihht-session{flex-wrap:wrap}.ihht-session>.ihht-delete-confirm{flex-basis:100%;background:#fff5f5;border:1px solid #ecc9cc;border-radius:12px;padding:18px;box-sizing:border-box}.ihht-delete-confirm p{margin:0 0 14px}.ihht-delete-confirm button{margin:0 10px 0 0;min-height:44px}.ihht-delete-confirm .ihht-delete{background:#b63342;color:white}

.ihht-customer-picker select{-webkit-appearance:none;appearance:none;display:block;box-sizing:border-box;min-height:46px;line-height:1.4;padding:12px 40px 12px 14px;border:1px solid #d7dce5;border-radius:10px;background-color:#fafbfe;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;font:inherit;color:#22252b}

.ihht-recent{margin-top:22px}.ihht-recent>h2{margin-bottom:8px}.ihht-recent-row h3{margin-bottom:6px}.ihht-recent-row>div>p{margin:0 0 16px}.ihht-recent-row>button{min-height:44px;flex-shrink:0}

.customer-ihht-sessions .ihht-session:first-child{border-top:0}.customer-ihht-sessions .ihht-session>button{min-height:44px;flex-shrink:0}.customer-ihht-sessions .ihht-remarks{margin:18px 0 0;line-height:1.6}.customer-ihht-sessions .ihht-remarks strong{font-weight:550}

.stock-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px}.stock-summary>.panel{display:flex;flex-direction:column;gap:8px;margin:0;padding:22px}.stock-summary strong{font-size:30px;letter-spacing:-1px}.stock-summary span{color:#6b7280;font-size:13px}.stock-toolbar{padding:20px;margin-bottom:22px}.stock-tabs{display:flex;gap:10px;margin-bottom:20px}.stock-tools{display:flex;align-items:center;flex-wrap:wrap;gap:14px}.stock-tools>input{min-height:46px;padding:12px 14px;border:1px solid #d7dce5;border-radius:10px;font:inherit;flex:1;min-width:220px;background:#fafbfe;box-sizing:border-box}.stock-low{display:flex;gap:8px;align-items:center;font-size:13px}.stock-low input{width:18px;height:18px}.stock-tools>label:not(.stock-low){display:flex;align-items:center;gap:10px}.stock-tools select{min-height:44px;padding:10px;border:1px solid #d7dce5;border-radius:10px}.stock-product,.stock-movement{display:flex;align-items:center;gap:26px;padding:24px;margin-bottom:16px}.stock-product>div:first-child,.stock-movement>div:first-child{flex:1;min-width:0}.stock-product h3,.stock-movement h3{font-size:18px;margin:0 0 8px}.stock-product p,.stock-movement p{margin:8px 0 16px}.stock-product dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 24px;margin:0}.stock-product dt{grid-row:1;font-size:12px;color:#737986}.stock-product dd{grid-row:2;margin:0;overflow-wrap:anywhere}.stock-balance,.stock-result{display:flex;flex-direction:column;gap:8px;min-width:135px}.stock-balance strong,.stock-result strong{font-size:22px}.stock-balance span,.stock-result span{font-size:12px;color:#6e7582}.stock-balance.is-low{background:#fff1d9;padding:14px;border-radius:12px;color:#8e5807}.stock-balance.is-low span{color:#8e5807}.stock-actions{display:flex;flex-wrap:wrap;gap:9px;max-width:220px}.stock-actions button,.stock-tools button,.stock-tabs button{min-height:44px}.stock-note{white-space:pre-wrap;overflow-wrap:anywhere}.stock-preview{background:#eef4fe;padding:16px;border-radius:12px;line-height:1.6}.stock-form{max-width:1100px}.stock-toolbar [hidden]{display:none!important}@media(max-width:900px){.stock-product,.stock-movement{align-items:flex-start;flex-wrap:wrap}.stock-product>div:first-child,.stock-movement>div:first-child{flex-basis:100%}.stock-actions{max-width:none}.stock-product dl{gap:8px 14px}}@media(max-width:600px){.stock-summary{gap:10px}.stock-summary>.panel{padding:14px}.stock-summary strong{font-size:25px}.stock-summary span{font-size:11px}.stock-product,.stock-movement{padding:18px;gap:18px}.stock-tools>input{width:100%;min-width:0;flex-basis:100%}.stock-product dl{grid-template-columns:1fr 1fr}.stock-product dt,.stock-product dd{grid-row:auto}.stock-product dt{grid-column:1}.stock-product dd{grid-column:2}.stock-tools>label:not(.stock-low){flex-direction:column;align-items:flex-start;width:100%}.stock-tools select{width:100%}}

.stock-form select,.stock-tools select{-webkit-appearance:none;appearance:none;box-sizing:border-box;min-height:46px;padding-right:36px;background-image:linear-gradient(45deg,transparent 50%,#757c89 50%),linear-gradient(135deg,#757c89 50%,transparent 50%);background-position:calc(100% - 19px) center,calc(100% - 14px) center;background-size:5px 5px;background-repeat:no-repeat}.stock-product .stock-note{font-size:12px;margin:12px 0 0}

.stock-delete{color:#b63342!important;border-color:#e9c8ce!important;background:#fff6f7!important}.stock-delete-confirm{flex-basis:100%;width:100%;background:#fff4f5;border:1px solid #eac9ce;padding:18px;border-radius:12px;box-sizing:border-box}.stock-delete-confirm button{margin-right:10px;min-height:44px}.stock-product,.stock-movement{flex-wrap:wrap}.stock-product.is-deleted{background:#f3f4f7}.stock-movement.is-cancelled{border-color:#d9dde5;background:#f6f7fa}.stock-delete-confirm p{margin:0 0 14px}

.import-review-count{padding:5px 10px;border-radius:8px;background:#fff0d8;color:#805000}.import-status-card .import-review-note{font-size:13px;line-height:1.5;margin-top:14px}.import-status-details{align-items:center}

/* IHHT: keep each label, value and unit together in every session view. */
.ihht-session{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:22px;margin:14px 0;border:1px solid #dfe5ec;border-radius:16px;background:#fff;align-items:start}
.customer-ihht-sessions .ihht-session:first-child{border-top:1px solid #dfe5ec}
.ihht-session h3{margin:0 0 8px;line-height:1.4;overflow-wrap:anywhere}
.ihht-session>div{min-width:0}
.ihht-metric-group{min-width:0;margin-top:18px}
.ihht-metric-group h4{margin:0 0 10px;font-size:13px;font-weight:650;color:#506378;letter-spacing:.02em}
.ihht-session dl.ihht-metric-grid,.ihht-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0;min-width:0}
.ihht-metric{min-width:0;padding:13px 14px;background:#f5f8fc;border:1px solid #e8edf4;border-radius:11px}
.ihht-metric-grid .ihht-metric dt{grid-row:auto;grid-column:auto;display:block;font-size:12px;line-height:1.5;color:#58697d;overflow-wrap:anywhere;min-height:36px;margin:0 0 7px}
.ihht-metric-grid .ihht-metric dd{grid-row:auto;grid-column:auto;display:block;margin:0;font-size:21px;line-height:1.35;font-weight:650;color:#1c354c;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ihht-unit{font-size:12px;font-weight:450;color:#58697d;white-space:nowrap}
.ihht-duration{font-variant-numeric:tabular-nums;font-weight:600}
.ihht-more{margin-top:16px;border-top:1px solid #e8edf4;padding-top:12px}
.ihht-more summary{cursor:pointer;font-size:13px;font-weight:550;line-height:1.5;color:#3c566f;min-height:32px;padding:4px 0}
.ihht-more[open] summary{margin-bottom:8px}
.ihht-more .ihht-remarks{margin:4px 0;line-height:1.6}
.ihht-session-actions{max-width:230px}
@media(max-width:1100px){.ihht-session dl.ihht-metric-grid,.ihht-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.ihht-session{grid-template-columns:minmax(0,1fr);padding:16px;gap:16px}.ihht-session-actions{max-width:none}.ihht-session>button{justify-self:start;min-height:44px}.ihht-metric{padding:12px}.ihht-metric-grid .ihht-metric dd{font-size:20px}}
@media(max-width:360px){.ihht-session dl.ihht-metric-grid,.ihht-metric-grid{grid-template-columns:minmax(0,1fr)}.ihht-metric-grid .ihht-metric dt{min-height:0}}

/* Grouped sidebar with a fixed brand and sign-out area. */
@media(min-width:801px){#navigation-panel{position:sticky;top:0;height:100dvh!important;flex:0 0 242px;width:242px;padding:25px 14px 16px;overflow:hidden;background:linear-gradient(165deg,#f1f4f9,#f8fafc);border-right:1px solid #e0e6ef;gap:0}#navigation-panel #nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 5px 12px 0;margin:0;scrollbar-width:thin;scrollbar-color:#cdd6e3 transparent}}
.sidebar-brand{display:flex;align-items:center;gap:11px;padding:4px 7px 22px;flex-shrink:0}.sidebar-brand img{width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 2px 3px #273f5714)}.sidebar-brand strong{display:block;font-size:16px;letter-spacing:-.5px;color:#263850;font-weight:700}.sidebar-brand small{display:block;font-size:9px;letter-spacing:1.6px;color:#8a96a7;margin-top:5px}
#navigation-panel .sidebar-group{margin:0 0 16px;padding:0;border:0;background:none;box-shadow:none;min-width:0}#navigation-panel .sidebar-group h3,#navigation-panel .sidebar-group>summary{margin:0;padding:10px 13px 8px;font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:650;color:#8b98aa;line-height:1.3}#navigation-panel .sidebar-group-items{display:grid;gap:3px}#navigation-panel .nav{position:relative;display:flex;align-items:center;width:100%;min-height:39px;padding:9px 12px;margin:0;border:0;border-radius:9px;background:transparent;box-shadow:none;color:#526279;font-size:12px;font-weight:450;gap:11px;line-height:1.35;text-decoration:none;white-space:normal;text-align:left;transition:background .15s ease,color .15s ease}#navigation-panel .nav svg{width:18px;height:18px;flex-shrink:0;color:#8293aa;opacity:1;stroke-width:1.6}#navigation-panel .nav:hover{background:#e8eef7;color:#254d86}#navigation-panel .nav.active{background:#e2ebfa;color:#245da6;font-weight:650;box-shadow:none}#navigation-panel .nav.active:before{content:'';position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:3px;background:#5988d3}#navigation-panel .nav.active svg{color:#4279c5}#navigation-panel .nav:focus-visible,#navigation-panel summary:focus-visible{outline:2px solid #709ad7;outline-offset:2px}#navigation-panel .sidebar-group:has(.nav.active)>h3{color:#5f7fa8}
#navigation-panel .sidebar-administration{border-top:1px solid #e0e6ef;padding-top:7px;margin-top:8px}#navigation-panel .sidebar-administration>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;min-height:40px}#navigation-panel .sidebar-administration>summary::-webkit-details-marker{display:none}#navigation-panel .sidebar-administration>summary:after{content:'⌄';font-size:14px;line-height:1;transition:transform .15s}#navigation-panel .sidebar-administration[open]>summary:after{transform:rotate(180deg)}#navigation-panel .sidebar-administration:has(.nav.active)>summary{color:#426caa}
#navigation-panel #logout{flex-shrink:0;min-height:39px;margin:8px 2px 0;padding:10px 12px;border:1px solid #dfe5ee;background:#ffffff80;color:#7b8899;box-shadow:none;border-radius:10px;font-size:11px;font-weight:500;text-align:center}#navigation-panel #logout:hover{background:#fff;color:#314a6b}
@media(max-width:800px){body.navigation-open #navigation-panel{padding:16px 14px;gap:0;background:linear-gradient(165deg,#f1f4f9,#f8fafc);overflow:hidden}.sidebar-brand{padding:3px 9px 18px}#navigation-panel #nav{overflow-y:auto;min-height:0;flex:1;padding-right:4px;scrollbar-width:thin;overscroll-behavior:contain}#navigation-panel .nav{min-height:44px;font-size:13px}#navigation-panel .sidebar-group{margin-bottom:14px}.navigation-close{min-height:36px;margin-bottom:8px}#navigation-panel #logout{margin-top:10px;min-height:44px}}
@media(prefers-reduced-motion:reduce){#navigation-panel .nav,#navigation-panel .sidebar-administration>summary:after{transition:none}}

/* Calm daily dashboard; personal layout and permissions stay user-scoped. */
body[data-view=dashboard] .personal-welcome{background:linear-gradient(115deg,#eef3fc,#f7fafc);border:1px solid #e1e8f3;border-radius:17px;padding:25px 28px;margin-bottom:20px;gap:20px;align-items:center}.personal-welcome .eyebrow{display:block;color:#8092ab;font-size:10px;letter-spacing:1.2px;margin:0 0 8px}.personal-welcome h2{font-size:26px;font-weight:650;letter-spacing:-.7px;margin:0}.personal-welcome p:not(.eyebrow){color:#738096;font-size:12px;margin:8px 0 18px}.dash-welcome-actions{gap:8px}.personal-welcome .dash-welcome-actions button{border-radius:9px;font-size:11px;padding:9px 12px;min-height:38px;background:#477dcc;color:#fff;border:1px solid #477dcc}.personal-welcome .dash-welcome-actions .outline{background:#ffffffa0;border-color:#d8e2f0;color:#486584}.personal-welcome .dash-welcome-actions .text-button{background:transparent;border-color:transparent;color:#7486a0}.personal-welcome .day-summary{padding-left:25px;border-left:1px solid #dce5f1;gap:5px}.personal-welcome .day-summary>span{color:#8294ae}.personal-welcome .day-summary strong{font-size:21px;color:#3e526f}.personal-welcome .day-summary small{font-size:12px;color:#8592a5}
.dashboard-attention{padding:20px 24px;border-radius:14px;margin-bottom:20px;box-shadow:none}.dashboard-attention .dash-widget-heading{margin-bottom:10px}.dashboard-attention h2{font-size:17px;margin:5px 0 0}.dashboard-attention .eyebrow{font-size:9px;color:#8a98aa;margin:0;letter-spacing:1px}#dashboardAttentionRows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dashboard-attention-row{display:flex;width:100%;align-items:center;gap:12px;text-align:left;padding:11px 13px;background:#f3f6fa;color:#576e8c;border:1px solid transparent;box-shadow:none;border-radius:9px;font-size:12px;font-weight:500;min-height:44px}.dashboard-attention-row span:first-child{flex:1}.dashboard-attention-row strong{font-size:16px;font-variant-numeric:tabular-nums}.dashboard-attention-row.needs-attention{background:#fff3ee;color:#a35c43}.dashboard-attention-row:hover{border-color:#d2deee;background:#eaf0f9;color:#385e91}.dashboard-clear{grid-column:1/-1;font-size:12px;color:#75869c;padding:6px 0;margin:0}.dashboard-clear span{color:#478c74;margin-right:8px}
.dash-personal-counts{border-radius:13px;box-shadow:none;margin:0 0 22px;border-color:#e3e9f1}.dash-personal-counts>div{padding:15px 21px;gap:11px}.dash-personal-counts strong{font-size:24px;color:#3b526e}.dash-personal-counts span{font-size:11px;color:#8290a3}.personal-dashboard-grid{gap:18px}.dashboard-widget{padding:22px;border-radius:15px;box-shadow:0 2px 10px #273a4f04;border-color:#e3e9f1}.dashboard-widget[data-widget=today]{border-top:3px solid #83a4d6}.dash-widget-heading h2{font-size:18px;color:#334963;margin-top:5px}.dash-widget-heading .eyebrow{font-size:9px;color:#8e9caf;letter-spacing:1px}.dash-widget-heading .text-button{color:#6c87ad;font-size:11px;padding:5px 0;min-height:32px}.dash-event{padding:13px 4px;gap:14px;align-items:flex-start}.dash-event-time{min-width:95px;font-size:12px;color:#4b75af;padding-top:3px}.dash-event-time small{color:#93a0b2}.dash-event strong,.dash-task strong{font-size:13px;color:#3a4d67;font-weight:600}.dash-event-body>small,.dash-task small{font-size:11px;color:#8592a5}.dash-event.is-past{opacity:.72}.dash-tag{font-size:9px;background:#f0f3f7;color:#8c98a9;padding:3px 6px;border-radius:5px}.dash-tag.is-current{background:#e6f2eb;color:#3b8668}.dash-tag.is-planned{background:#edf2fb;color:#6a8dbd}.dash-list>li+li{border-color:#edf0f5}.dash-task{padding:13px 4px}.dash-more{border-color:#edf0f5}.dash-empty{font-size:12px;color:#94a0b1}.dashboard-system{margin-top:22px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;overflow:hidden}.dashboard-system>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:13px 18px;font-size:11px;color:#8290a4}.dashboard-system>summary::-webkit-details-marker{display:none}.dashboard-system>summary:after{content:'⌄';font-size:14px}.dashboard-system>summary span{margin-left:auto;font-size:10px;padding:3px 8px;border-radius:6px}.dashboard-system .is-healthy{color:#558973;background:#eaf3ee}.dashboard-system .needs-attention{color:#a18045;background:#fff5e5}.dashboard-system .import-status-card{margin:0;border:0;border-top:1px solid #e2e8f0;box-shadow:none;background:white}.dash-privacy-note{font-size:10px;color:#9aa5b5}.dash-mapping{font-size:11px;border:1px solid #e3eaf4;background:#f1f5fb;color:#74869e;border-radius:10px}
@media(max-width:900px){#dashboardAttentionRows{grid-template-columns:minmax(0,1fr)}.personal-welcome .day-summary{padding-left:16px}.dash-welcome-actions{gap:6px}}
@media(max-width:600px){body[data-view=dashboard] .personal-welcome{padding:20px;align-items:flex-start}.personal-welcome h2{font-size:23px}.personal-welcome .day-summary{border-left:0;border-top:1px solid #dce5f1;padding:12px 0 0;width:100%;flex-direction:row;align-items:baseline;gap:8px;flex-wrap:wrap}.personal-welcome .day-summary strong{font-size:15px}.personal-welcome .day-summary small{font-size:11px}.dash-welcome-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.personal-welcome .dash-welcome-actions button{white-space:normal;padding:8px;min-height:40px}.dashboard-attention{padding:18px}.dashboard-widget{padding:18px}.dash-personal-counts>div{padding:14px;flex-direction:row;align-items:center}.dash-event-time{min-width:85px;font-size:11px}.dash-event{gap:9px}.dash-widget-heading{align-items:center}.dash-personal-counts strong{font-size:22px}}
