/* Agenda Hamelle - interface professionnelle. Chargement apres app.css et FullCalendar.
   Les classes, formulaires et identifiants des composants metier d'origine restent en place. */
:root{
  --bg:#f4f6fa;--surface:#ffffff;--ink:#182334;--muted:#5a687c;--border:#dce3ec;
  --ui-sidebar:#fff;--ui-sidebar-hover:#f3f6fa;--ui-soft:#edf1f7;--ui-hover:#f7f9fc;
  --ui-link:#2456a3;--ui-focus:#527bc5;--ui-shadow:0 2px 8px #12233d08;
  --ui-radius:14px;--ui-side-width:248px;--ui-header-height:68px;--ui-danger:#a51a2a;
  --ui-accent-soft:color-mix(in srgb,var(--primary) 10%,var(--surface));
  --ui-accent-border:color-mix(in srgb,var(--primary) 40%,var(--border));
  --ui-accent-ink:color-mix(in srgb,var(--primary) 42%,var(--ink));
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.5;
}
@media(prefers-color-scheme:dark){:root{--bg:#0e1420;--surface:#182131;--ink:#e9eef7;--muted:#a9b6ca;--border:#2f3d51;--ui-sidebar:#111a28;--ui-sidebar-hover:#1e293c;--ui-soft:#202c3f;--ui-hover:#1d293b;--ui-link:#a6c4fa;--ui-focus:#9abaff;--ui-shadow:0 2px 10px #0002;--ui-danger:#ffa8b3;--good:#8ce0ae;--bad:#ffa8b3}}
html{font-size:15px}body{background:var(--bg);color:var(--ink)}
a{color:var(--ui-link)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--ui-focus);outline-offset:3px}
[hidden]{display:none!important}.ui-icon{width:20px;height:20px;flex:none;display:inline-block;vertical-align:middle}.skip-link{position:fixed;inset-block-start:8px;inset-inline-start:8px;transform:translateY(-160%);padding:.75rem 1rem;z-index:1500;background:var(--surface);border:1px solid var(--border);border-radius:8px}.skip-link:focus{transform:none}
/* Persistent navigation, compact header, full usable content area. */
.ui-workspace{display:grid;grid-template-columns:var(--ui-side-width) minmax(0,1fr);min-height:100vh;align-items:start}
.ui-sidebar{position:sticky;top:0;height:100vh;height:100dvh;overflow:auto;background:var(--ui-sidebar);border-inline-end:1px solid var(--border);display:flex;flex-direction:column;padding:20px 14px 12px;z-index:20;scrollbar-width:thin}
.ui-brand-row{display:flex;align-items:center;gap:8px;margin:0 4px 24px;min-width:0}
.ui-brand{display:flex;align-items:center;gap:11px;min-width:0;color:var(--ink);text-decoration:none}.ui-brand:hover{text-decoration:none}
.ui-brand .brand-logo,.ui-brand-mark{width:40px;height:40px;max-width:40px;flex:0 0 40px;object-fit:contain;border-radius:10px;background:#fff;padding:3px}
.ui-brand-mark{display:grid;place-items:center;background:var(--ui-accent-soft);color:var(--ui-accent-ink);padding:0;border:1px solid var(--ui-accent-border)}
.ui-brand-text,.ui-account-text{display:flex;flex-direction:column;min-width:0}.ui-brand-text strong{font-size:13px;line-height:1.3;overflow-wrap:anywhere;letter-spacing:-.02em}.ui-brand-text small{font-size:11px;line-height:1.5;color:var(--muted);margin-top:3px}
.ui-navigation{display:flex;flex:1;flex-direction:column;justify-content:space-between;gap:16px}.ui-nav-group{margin:0 0 20px}.ui-nav-label{margin:0 0 7px;padding-inline:10px;color:var(--muted);font-size:10px;line-height:1.4;text-transform:uppercase;letter-spacing:.11em;font-weight:750}
.ui-nav-link{min-height:39px;display:flex;align-items:center;gap:10px;border-radius:9px;padding:9px 10px;font-size:13px;font-weight:550;text-decoration:none;color:var(--muted);border:1px solid transparent;margin-bottom:3px;width:100%;text-align:start;background:transparent;box-shadow:none}
.ui-nav-link .ui-icon{width:17px;height:17px}.ui-nav-link>span:first-of-type{flex:1;min-width:0}.ui-nav-link:hover,.ui-nav-link:focus-visible{color:var(--ink);background:var(--ui-sidebar-hover);text-decoration:none;filter:none}.ui-nav-link.is-active{background:var(--ui-accent-soft);border-color:var(--ui-accent-border);color:var(--ui-accent-ink);font-weight:700}.ui-nav-link.is-active .ui-icon{color:var(--ui-accent-ink)}
.ui-account{border-top:1px solid var(--border);padding-top:12px;margin-top:auto}.ui-account-link{display:flex;align-items:center;gap:9px;padding:9px 5px;border-radius:8px;color:var(--ink)}.ui-account-link:hover,.ui-account-link.is-active{background:var(--ui-sidebar-hover);text-decoration:none}.ui-account-link>.ui-icon{width:16px;height:16px;color:var(--muted)}.ui-account-text{flex:1}.ui-account-text strong{font-size:12px;overflow-wrap:anywhere}.ui-account-text small{font-size:11px;color:var(--muted)}.ui-avatar{height:34px;width:34px;flex:0 0 34px;display:grid;place-items:center;border:1px solid var(--ui-accent-border);background:var(--ui-accent-soft);color:var(--ui-accent-ink);border-radius:50%;font-weight:750;font-size:14px;text-decoration:none}.ui-logout{margin:4px 0 0}.ui-menu-toggle{display:none}
.ui-main{min-width:0;min-height:100vh;display:flex;flex-direction:column}.ui-topbar{min-height:var(--ui-header-height);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px clamp(18px,3vw,42px);border-bottom:1px solid var(--border);background:var(--surface)}
.ui-location,.ui-topbar-actions{display:flex;align-items:center;gap:10px;min-width:0}.ui-location{font-size:13px;color:var(--muted)}.ui-location strong{font-size:13px;color:var(--ink);font-weight:650;overflow-wrap:anywhere}.ui-separator{color:var(--muted);opacity:.6}.ui-date{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap}.ui-date .ui-icon{width:16px;height:16px}.ui-header-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:var(--ui-soft);color:var(--ink);position:relative}.ui-header-icon:hover{background:var(--ui-accent-soft);color:var(--ui-accent-ink)}.ui-header-dot{position:absolute;inset-inline-end:6px;inset-block-start:6px;border-radius:50%;width:7px;height:7px;background:#e55555;border:1px solid var(--surface)}
.ui-main>.container{width:100%;max-width:1580px;margin:0 auto;padding:28px clamp(18px,3vw,42px) 44px;flex:1;min-height:0}.ui-main>.footer{border-top:1px solid var(--border);padding:16px clamp(18px,3vw,42px);margin-top:auto;justify-content:space-between;text-align:start;font-size:11px;gap:8px}.ui-main .page-header{gap:12px;margin:0 0 22px;align-items:center}.ui-main .page-header>div:first-child{min-width:0}.page-header h1,h1{font-size:clamp(23px,2.25vw,32px);font-weight:760;letter-spacing:-.04em;line-height:1.22;margin:.2rem 0 .45rem}.page-header p{font-size:13px;color:var(--muted)}.page-header .eyebrow,.eyebrow{font-size:10px;font-weight:750;color:var(--ui-accent-ink);letter-spacing:.11em;line-height:1.4;margin:0 0 5px}.page-header>a:not(.button){font-size:13px;font-weight:650}
/* Shared cards, forms and tables (all existing business pages). */
.card{min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--ui-radius);padding:20px;box-shadow:var(--ui-shadow);overflow-wrap:anywhere}.container>section.card+section.card,.container>.card+.card{margin-top:18px}.card h2{font-size:17px;line-height:1.35;font-weight:710;letter-spacing:-.025em;margin:0 0 12px}.card h3{font-size:14px;line-height:1.45;letter-spacing:-.01em}.card p{font-size:13px;line-height:1.6}.card h2+p{margin-top:-4px}.columns{gap:18px}.form-grid{gap:12px 18px}.form-card{max-width:860px}.event-form{max-width:1100px}.stats{gap:14px;margin-bottom:18px}.stats strong{font-size:17px}
label{font-size:13px;font-weight:650;margin:0 0 12px;min-width:0}input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea{font-size:13px;min-height:40px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--ink);padding:9px 11px;margin-top:6px}input[type=hidden]{display:none!important}input[type=color]{border-color:var(--border);border-radius:8px;height:40px}input[type=checkbox],input[type=radio]{accent-color:var(--primary);flex:none;width:16px;height:16px;margin:0}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus{border-color:var(--ui-focus)}.checkbox{font-size:13px;gap:9px}.form-grid>button{align-self:end;justify-self:start;margin-block-end:12px}.rich-editor,.event-fieldset{border-color:var(--border);border-radius:10px}.event-fieldset legend{font-size:13px;font-weight:720}.rich-toolbar{gap:6px}.details{font-size:13px;grid-template-columns:minmax(90px,auto) minmax(0,1fr)}
button,.button{border-radius:8px;padding:9px 15px;min-height:38px;font-size:13px;font-weight:660;gap:8px;background:var(--primary);color:var(--primary-text);box-shadow:none;line-height:1.4}button:hover,.button:hover{color:var(--primary-text);filter:brightness(1.04);text-decoration:none}button.secondary,.button.secondary{background:var(--ui-soft);border:1px solid var(--border);color:var(--ink)}button.outline,.button.outline{background:var(--surface);color:var(--ink);border:1px solid var(--border)}button.outline:hover,.button.outline:hover{background:var(--ui-accent-soft);color:var(--ui-accent-ink);border-color:var(--ui-accent-border);filter:none}button:disabled{opacity:.45}.button .ui-icon,button .ui-icon{width:17px;height:17px}.actions{align-items:center;gap:8px}.actions label{margin:0}.actions label select{min-width:100px}.linklike,.inline-form button.linklike{color:var(--ui-link)}
.alert{border-radius:10px;padding:12px 15px;font-size:13px;margin:0 0 18px;color:var(--ink)}.alert.error{border-color:color-mix(in srgb,var(--ui-danger) 50%,var(--border))}.small{font-size:12px}.table-scroll,.responsive-table{max-width:100%;overflow-x:auto}.table-scroll table,.responsive-table table{min-width:480px}.card table{font-size:13px}th{background:var(--ui-soft);color:var(--muted);font-size:11px;font-weight:720;letter-spacing:.025em;padding:11px 13px}td{padding:11px 13px;max-width:430px;overflow-wrap:anywhere}tbody tr:hover{background:var(--ui-hover)}td form{margin:0}td .button,td button{min-height:32px;padding:6px 10px;font-size:12px}.resource-head,.resource-line{border-color:var(--border)}.resource-head{background:var(--ui-soft);color:var(--ink)}.resource-chip{background:color-mix(in srgb,#0f766e 17%,var(--surface));color:var(--ink);border-inline-start-color:#0f9a8b}.resource-request{gap:10px}.notification-row{padding-block:5px}.directory-search{gap:10px}.directory-search label{min-width:0}
/* Dashboard: real user data and links, no invented business metrics. */
.ui-dashboard{max-width:1320px;margin-inline:auto}.ui-dashboard-hero{position:relative;isolation:isolate;overflow:hidden;min-height:212px;padding:30px 32px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(115deg,var(--surface) 45%,var(--ui-accent-soft) 100%);border-color:var(--ui-accent-border)}.ui-hero-content{max-width:690px;position:relative;z-index:1}.ui-dashboard-hero h1{font-size:clamp(26px,2.7vw,38px);margin:8px 0 10px}.ui-dashboard-hero p:not(.eyebrow){font-size:14px;color:var(--muted);max-width:54ch;margin:0 0 22px}.ui-dashboard-hero .actions{gap:10px}.ui-hero-visual{position:relative;width:220px;flex:0 0 220px;height:156px;margin-inline-end:20px;opacity:.85}.ui-hero-calendar{position:absolute;inset:10px 10px 14px 8px;background:var(--surface);border:1px solid var(--ui-accent-border);border-radius:16px;padding:14px 15px;box-shadow:0 14px 36px #14213a19;transform:rotate(-7deg)}.ui-hero-cal-head{display:flex;gap:6px;align-items:center;height:14px;margin-bottom:11px}.ui-hero-cal-head span:first-child{width:46%;height:7px;border-radius:3px;background:var(--muted);opacity:.6}.ui-hero-cal-head span:not(:first-child){margin-inline-start:auto;width:12px;height:12px;border:1px solid var(--border);border-radius:4px}.ui-hero-cal-head span:last-child{margin-inline-start:0}.ui-hero-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.ui-hero-cal-grid i{display:block;aspect-ratio:1.3;background:var(--ui-soft);border-radius:4px}.ui-hero-cal-grid i:nth-child(5),.ui-hero-cal-grid i:nth-child(10),.ui-hero-cal-grid i:nth-child(17){background:var(--primary);opacity:.9}.ui-hero-check{position:absolute;inset-inline-end:0;bottom:2px;display:grid;place-items:center;width:50px;height:50px;border-radius:15px;background:var(--primary);color:var(--primary-text);box-shadow:0 8px 20px #0002;transform:rotate(8deg)}.ui-hero-check .ui-icon{width:26px;height:26px}


/* Calendar and resource planning: preserve JS DOM and scrollable views. */
.calendar-layout{grid-template-columns:minmax(200px,225px) minmax(0,1fr);gap:14px}.calendar-side{gap:12px}.calendar-side .card{padding:14px}.calendar-side h2{font-size:14px;margin-bottom:10px}.calendar-side label{font-size:12px;margin-bottom:10px}.calendar-side input,.calendar-side select{font-size:12px;min-height:35px;padding:7px 9px}.calendar-main{padding:14px;overflow:auto}.calendar-toolbar{padding-bottom:12px;gap:9px;margin-bottom:8px}.calendar-toolbar h2{font-size:15px}.calendar-toolbar button{width:auto;font-size:12px;padding:7px 10px;min-height:34px}.segmented{border-radius:9px;padding:3px;background:var(--ui-soft);gap:3px}.segmented button{border-radius:6px;min-height:30px;background:transparent;color:var(--muted)}.segmented button.active{background:var(--primary);color:var(--primary-text)}.segmented button:hover:not(.active){background:var(--surface);color:var(--ink)}.mini-grid .mini-date{height:27px;min-height:27px;padding:0;color:var(--ink);width:100%}.mini-grid .mini-date.chosen{background:var(--primary);color:var(--primary-text)}.mini-grid .mini-date.today{outline-color:var(--primary)}.mini-grid .mini-date:hover:not(.chosen){background:var(--ui-soft);color:var(--ink)}.day-number,.day-number:hover{color:var(--ink);background:transparent}.time-actions button{color:var(--ink);background:var(--ui-soft)}.month-grid{min-width:0}.calendar-day{min-height:105px}.calendar-legend{font-size:12px}.calendar-hint{font-size:11px}.calendar-main .fc{--fc-border-color:var(--border);--fc-page-bg-color:var(--surface);--fc-neutral-bg-color:var(--ui-soft);--fc-today-bg-color:var(--ui-accent-soft);--fc-button-bg-color:var(--primary);--fc-button-text-color:var(--primary-text);--fc-button-border-color:var(--ui-accent-border);--fc-neutral-text-color:var(--muted);--fc-list-event-hover-bg-color:var(--ui-hover);color:var(--ink);font-size:12px}.calendar-main .fc a{color:inherit}.calendar-main .fc [role=gridcell]{border-color:var(--border)}
/* Public pages, including the login and reset screens. */
.public-layout{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 5%,var(--ui-accent-soft) 0,transparent 46%),var(--bg)}.public-layout .container{width:min(100%,580px);padding:44px 20px 28px;margin:auto;min-height:0}.public-brand{margin:0 auto 24px;gap:10px;font-size:16px;color:var(--ink);text-align:start;max-width:none}.public-brand .brand-logo{width:44px;height:44px;background:white;padding:3px;border-radius:10px}.public-brand strong{overflow-wrap:anywhere}.auth-card{width:min(100%,420px);margin:0 auto;padding:30px;border-radius:18px}.auth-card h1{margin:8px 0 9px;font-size:30px}.auth-card>p.muted{margin:0 0 25px}.auth-card form>button{width:100%;margin-top:4px;min-height:42px}.auth-card form label{margin-bottom:15px}.auth-card .checkbox{margin:15px 0}.auth-card .alert{font-size:12px;margin-bottom:16px}.auth-card>p:last-child{margin:18px 0 0}.public-layout .footer{margin-top:auto;font-size:11px}.install-shell .card{padding:22px}
/* A sidebar with every permitted link remains available on small screens without JavaScript. */
@media(max-width:1250px){:root{--ui-side-width:225px}.ui-sidebar{padding-inline:11px}.calendar-layout{grid-template-columns:minmax(178px,200px) minmax(0,1fr)}.ui-hero-visual{width:190px;flex-basis:190px;margin-inline-end:0}.ui-dashboard-hero{padding:24px}}
@media(max-width:1040px){.ui-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-layout{grid-template-columns:1fr}.calendar-side{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-filter-card{grid-row:span 2}.calendar-main{padding:12px}.ui-hero-visual{display:none}.ui-overview-card{padding:12px}.ui-overview-card strong{font-size:13px}.ui-tile-icon{width:34px;height:34px;flex-basis:34px}.ui-tile-icon .ui-icon{width:18px;height:18px}}
@media(max-width:900px){.ui-workspace{display:block}.ui-sidebar{position:relative;top:auto;height:auto;overflow:visible;padding:12px 16px;border-inline-end:0;border-bottom:1px solid var(--border)}.ui-brand-row{justify-content:space-between;margin:0}.ui-brand-text strong{font-size:14px}.ui-menu-toggle:not([hidden]){display:grid;place-items:center;width:38px;min-width:38px;height:38px;padding:0;background:var(--ui-soft);color:var(--ink);border:1px solid var(--border)}.ui-navigation{margin-top:14px}.ui-navigation nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ui-nav-group{margin-bottom:0}.ui-main{min-height:calc(100vh - 70px)}.ui-topbar{min-height:53px;padding:8px 16px}.ui-main>.container{padding:20px 16px 32px}.ui-overview-card strong{font-size:14px}.ui-account{display:flex;align-items:center;gap:10px;justify-content:space-between}.ui-account-link{flex:1}.ui-account form{flex:0 0 auto}.ui-account .ui-logout{margin:0}.ui-main>.footer{padding:12px 16px}}
@media(max-width:560px){.ui-navigation nav{grid-template-columns:1fr 1fr;gap:14px 8px}.ui-nav-label{padding-inline:6px}.ui-nav-link{padding:7px 6px;gap:7px;font-size:12px;min-height:38px}.ui-nav-link .ui-icon{width:16px;height:16px}.ui-location>span{display:none}.ui-date{display:none}.ui-topbar{gap:6px}.ui-topbar-actions{gap:7px}.ui-topbar .ui-top-avatar{display:none}.ui-main>.container{padding:18px 12px 30px}.ui-dashboard-hero{padding:20px 18px;min-height:0}.ui-dashboard-hero h1{font-size:26px}.ui-dashboard-hero .actions{flex-direction:column;align-items:stretch}.ui-dashboard-hero .actions .button{justify-content:flex-start}.ui-overview{grid-template-columns:1fr;gap:8px;margin:12px 0 24px}.ui-overview-card{min-height:62px;padding:10px 12px}.ui-overview-card>div{gap:2px}.ui-access-grid,.ui-admin-grid,.columns,.form-grid,.stats{grid-template-columns:1fr}.ui-access-card{min-height:94px;padding:14px}.ui-section-heading h2{font-size:17px}.ui-dashboard-section{margin-top:20px}.card{padding:14px;border-radius:12px}.page-header h1{font-size:25px}.page-header .button{width:auto}.actions>button,.actions>.button{width:auto}.form-grid>button{justify-self:stretch}.calendar-side{grid-template-columns:1fr}.calendar-filter-card{grid-row:auto}.calendar-toolbar h2{font-size:14px}.calendar-toolbar .segmented{flex:1 1 100%}.calendar-toolbar .actions{flex:1 1 100%}.calendar-toolbar .segmented button{flex:1}.calendar-day{min-height:74px}.calendar-main{padding:9px}.calendar-main .month-grid{min-width:320px}.resource-head,.resource-line{grid-template-columns:1fr}.auth-card{padding:24px 20px}.public-layout .container{padding:28px 16px}.public-brand{margin-bottom:18px}.ui-main>.footer{display:flex;flex-direction:column;gap:4px}.details{grid-template-columns:1fr;row-gap:4px}.details dd{margin-bottom:8px}.directory-search{display:block}.directory-search button{margin-top:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
@media print{.ui-sidebar,.ui-topbar,.skip-link,.ui-main>.footer{display:none!important}.ui-workspace,.ui-main{display:block;min-height:0}.ui-main>.container{width:100%;max-width:none;margin:0;padding:0}.card{box-shadow:none}body{background:white!important;color:#111!important}.calendar-layout{display:block}.calendar-main{overflow:visible}}

/* HM workspace v2 - editorially restrained, dense, calendar-first. No gradients or ornamental tiles. */
:root,:root[data-ui-theme="light"]{color-scheme:light;--bg:#f7f7f8;--surface:#fff;--ink:#202124;--muted:#62666d;--border:#e2e4e7;--ui-sidebar:#f7f7f8;--ui-sidebar-hover:#eceef0;--ui-soft:#f1f2f4;--ui-hover:#f7f8f9;--ui-link:#3f495b;--ui-focus:#9b2028;--ui-danger:#a51a2a;--good:#146b43;--bad:#a51a2a;--ui-brand:#b52229;--ui-brand-soft:#f8e9e9;--ui-brand-ink:#a32127;--ui-shadow:none;--ui-radius:6px;--ui-side-width:212px;--ui-header-height:54px;--ui-accent-soft:color-mix(in srgb,var(--primary) 9%,var(--surface));--ui-accent-border:color-mix(in srgb,var(--primary) 30%,var(--border));--ui-accent-ink:color-mix(in srgb,var(--primary) 30%,var(--ink));font-family:"Segoe UI",system-ui,-apple-system,Arial,sans-serif;line-height:1.45}
:root[data-ui-theme="dark"]{color-scheme:dark;--bg:#161719;--surface:#202225;--ink:#eeeeef;--muted:#adb0b6;--border:#393b40;--ui-sidebar:#191b1d;--ui-sidebar-hover:#292b30;--ui-soft:#2b2e32;--ui-hover:#282b2e;--ui-link:#c4cbd7;--ui-focus:#ef9295;--ui-brand:#e7797e;--ui-brand-soft:#372529;--ui-brand-ink:#f0a4a7;--ui-danger:#ffadb1;--good:#86d8b0;--bad:#ffadb1}
html{font-size:14px}body{margin:0;background:var(--bg);color:var(--ink)}
.ui-workspace{min-height:100vh;grid-template-columns:var(--ui-side-width) minmax(0,1fr)}
.ui-sidebar{padding:0 10px 12px;scrollbar-width:thin;overflow:auto;background:var(--ui-sidebar)}
.ui-brand-row{height:var(--ui-header-height);margin:0 0 22px;padding:0 3px;border-bottom:1px solid var(--border)}
.ui-brand{gap:9px;overflow:hidden}.ui-brand .brand-logo,.ui-brand-mark{width:30px;height:30px;max-width:30px;flex:0 0 30px;border-radius:3px;padding:0}
.ui-brand-text strong{font-size:12px;font-weight:700;letter-spacing:0;line-height:1.3}.ui-brand-text small{font-size:10px;margin-top:2px}
.ui-nav-group{margin:0 0 16px}.ui-nav-label{font-size:10px;text-transform:none;letter-spacing:0;font-weight:600;padding-inline:9px;margin:0 0 5px;color:var(--muted)}
.ui-nav-link{min-height:32px;border:0;border-radius:4px;gap:9px;padding:6px 9px;margin:0 0 2px;font-size:12px;color:var(--ink);font-weight:450}
.ui-nav-link .ui-icon{width:16px;height:16px;color:var(--muted)}.ui-nav-link.is-active{background:var(--ui-brand-soft);color:var(--ui-brand-ink);font-weight:650;border:0;box-shadow:inset 2px 0 var(--ui-brand)}.ui-nav-link.is-active .ui-icon{color:var(--ui-brand)}[dir=rtl] .ui-nav-link.is-active{box-shadow:inset -2px 0 var(--ui-brand)}
.ui-account{padding-top:8px}.ui-account-link{padding:7px 5px}.ui-account-text strong{font-size:11px;font-weight:600}.ui-account-text small{font-size:10px}.ui-avatar{border-radius:50%;background:var(--ui-soft);border:0;color:var(--ink);width:29px;height:29px;flex-basis:29px;font-size:12px}.ui-logout{padding:7px 9px}.ui-sidebar .ui-navigation{gap:10px}
.ui-main{min-width:0;background:var(--surface)}.ui-topbar{height:var(--ui-header-height);min-height:var(--ui-header-height);padding:0 24px;gap:12px;background:var(--surface)}.ui-location strong{font-size:13px;letter-spacing:0;font-weight:600}.ui-topbar-actions{gap:10px}.ui-date{font-weight:400;font-size:12px}.ui-header-icon{border-radius:4px;height:32px;width:32px;min-height:32px;min-width:32px;background:transparent;border:1px solid transparent;color:var(--muted);padding:0;box-shadow:none}.ui-header-icon:hover{background:var(--ui-soft);color:var(--ink);border-color:var(--border);filter:none}.ui-header-icon .ui-icon{height:18px;width:18px}.ui-theme-toggle{display:grid;place-items:center}.ui-theme-toggle span{display:flex}.ui-header-dot{background:var(--ui-brand)}
.ui-main>.container{padding:24px 26px 34px;max-width:1600px;width:100%;margin:0 auto}.ui-main>.footer{padding:10px 26px;font-size:10px;color:var(--muted)}
h1,.page-header h1{font-size:24px;font-weight:650;letter-spacing:-.025em;line-height:1.25;margin:0 0 6px}.ui-main .page-header{margin:0 0 18px;padding-bottom:14px;border-bottom:1px solid var(--border)}.page-header .eyebrow,.eyebrow{font-size:10px;letter-spacing:.03em;font-weight:600;color:var(--muted)}.page-header p{font-size:12px}
.card{padding:16px;border-radius:6px;box-shadow:none;background:var(--surface);border:1px solid var(--border)}.card h2{font-size:15px;font-weight:650;letter-spacing:-.01em}.card h3{font-size:13px;letter-spacing:0}.card p{font-size:12px}.columns{gap:14px}.stats{gap:10px}.stats strong{font-size:17px}.form-grid{gap:10px 16px}
label{font-weight:600;font-size:12px;margin-bottom:10px}input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea{border-radius:4px;min-height:35px;font-size:12px;padding:7px 10px;margin-top:4px}.event-fieldset,.rich-editor{border-radius:5px}.event-fieldset legend{font-size:12px;font-weight:650}
button,.button{min-height:34px;padding:7px 12px;border-radius:4px;box-shadow:none;font-size:12px;font-weight:600;gap:7px}button.outline,.button.outline{border-radius:4px;color:var(--ink);background:var(--surface);border:1px solid var(--border)}button.outline:hover,.button.outline:hover{color:var(--ink);background:var(--ui-soft);border-color:var(--border)}.button .ui-icon,button .ui-icon{width:16px;height:16px}button.secondary,.button.secondary{border-radius:4px}
.card table{font-size:12px}th{font-size:11px;font-weight:600;background:var(--ui-soft);padding:9px 10px;color:var(--muted);letter-spacing:0}td{padding:10px}.alert{border-radius:4px}.auth-card{padding:26px;border-radius:6px;max-width:400px}.public-layout{background:var(--bg)}.public-brand .brand-logo{border-radius:4px;padding:0}.auth-card h1{font-size:24px}.auth-card form label{margin-bottom:13px}
/* Real agenda overview: one schedule, one utility rail. */
.hm-page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 24px;min-height:55px}.hm-page-heading h1{font-size:26px;margin:0 0 6px;font-weight:650;letter-spacing:-.035em}.hm-page-heading p{margin:0;color:var(--muted);font-size:12px}.hm-date-label{text-transform:none}.hm-page-heading>.button{flex:none}
.hm-home-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:26px;align-items:start}.hm-panel{min-width:0;border:1px solid var(--border);border-radius:6px;background:var(--surface);overflow:hidden}.hm-panel-head{min-height:62px;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--border)}.hm-panel-head h2{font-size:14px;font-weight:650;letter-spacing:-.01em;margin:0}.hm-panel-head p{font-size:11px;color:var(--muted);margin:4px 0 0}.hm-panel-head>.ui-icon{width:17px;height:17px;color:var(--muted)}.hm-text-action{white-space:nowrap;display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;color:var(--ui-link)}.hm-text-action .ui-icon,.hm-tool-row>.ui-icon:last-child,.hm-rail-link .ui-icon,.hm-account-info a .ui-icon{width:14px;height:14px;flex:none}
.hm-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-bottom:1px solid var(--border);background:var(--bg)}.hm-week-day{padding:12px 4px;display:flex;flex-direction:column;align-items:center;gap:2px;border-inline-end:1px solid var(--border);min-width:0;font-size:11px;color:var(--muted);line-height:1.3;text-transform:capitalize}.hm-week-day:last-child{border-inline-end:0}.hm-week-day strong{font-size:20px;line-height:1.35;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}.hm-week-month{font-size:10px}.hm-week-day.is-today{background:var(--ui-brand-soft);box-shadow:inset 0 -2px var(--ui-brand);color:var(--ui-brand-ink)}.hm-week-day.is-today strong{color:var(--ui-brand-ink)}
.hm-events{min-height:206px}.hm-list-status{padding:56px 20px;text-align:center;font-size:12px;line-height:1.65;color:var(--muted);margin:0}.hm-event-row{display:grid;grid-template-columns:minmax(110px,25%) minmax(0,1fr) minmax(67px,20%);align-items:center;gap:12px;min-height:54px;padding:10px 15px;border-bottom:1px solid var(--border);font-size:12px}.hm-event-row:last-child{border-bottom:0}.hm-event-row.hm-event-labels{min-height:36px;padding-block:8px;background:var(--surface);font-size:10px;color:var(--muted);font-weight:600}.hm-event-when{display:flex;flex-direction:column;gap:3px;min-width:0}.hm-event-when strong{font-size:12px;font-weight:600;text-transform:capitalize}.hm-event-when span{font-size:11px;color:var(--muted)}.hm-event-title{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}.hm-event-dot{width:7px;height:7px;border-radius:50%;background:#808792;flex:none}.hm-event-link{font-size:12px;font-weight:600;color:var(--ink)}.hm-event-state{color:var(--muted);font-size:11px;overflow-wrap:anywhere}.hm-list-more{font-size:11px;color:var(--muted);margin:0;padding:10px 16px}.hm-panel-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--border);padding:11px 16px;font-size:10px;color:var(--muted)}.hm-panel-foot a{font-weight:600;color:var(--ui-link)}
.hm-rail{display:grid;gap:18px}.hm-notice-body{display:flex;align-items:baseline;gap:8px;padding:14px 16px 12px}.hm-notice-body strong{font-size:27px;font-weight:600;line-height:1.2;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.hm-notice-body span{font-size:12px;color:var(--muted)}.hm-rail-link{border-top:1px solid var(--border);padding:11px 16px;display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:600;color:var(--ui-link)}.hm-tools .hm-panel-head{min-height:47px}.hm-tool-row{display:flex;align-items:center;gap:10px;min-height:41px;padding:9px 13px;color:var(--ink);border-bottom:1px solid var(--border);font-size:12px}.hm-tool-row:last-child{border:0}.hm-tool-row:hover,.hm-rail-link:hover{background:var(--ui-hover);text-decoration:none}.hm-tool-row .ui-icon{width:16px;height:16px;color:var(--muted)}.hm-tool-row>span{flex:1}.hm-account-info{padding:2px 2px 0}.hm-account-info h2{margin:0 0 10px;font-weight:650;font-size:12px}.hm-account-info dl{margin:0 0 10px;font-size:11px}.hm-account-info dl div{display:flex;justify-content:space-between;gap:8px;padding:5px 0;color:var(--muted)}.hm-account-info dd{margin:0;color:var(--ink);text-align:end;overflow-wrap:anywhere}.hm-account-info a{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;color:var(--ui-link)}
/* Calendar is a work surface, not a card collection. */
.calendar-layout{grid-template-columns:196px minmax(0,1fr);gap:15px}.calendar-side{gap:10px}.calendar-side .card{padding:11px}.calendar-side h2{font-size:12px;margin-bottom:8px}.calendar-side label{font-size:11px;margin-bottom:8px}.calendar-side input,.calendar-side select{font-size:11px;min-height:32px;padding:6px 8px}.calendar-side .mini-date{font-size:11px}.calendar-main{padding:12px;box-shadow:none}.calendar-toolbar{gap:6px;padding-bottom:10px;margin-bottom:6px}.calendar-toolbar h2{font-size:15px;font-weight:650}.calendar-toolbar button{min-height:32px;padding:6px 9px;border-radius:4px}.segmented{padding:2px;border-radius:5px;gap:2px}.segmented button{font-size:11px;border-radius:3px}.calendar-main .fc{font-size:11px}.calendar-main .fc .fc-daygrid-day-number{padding:5px 8px}.calendar-main .fc .fc-col-header-cell-cushion{padding:7px 4px;font-weight:600}.calendar-main .fc .fc-daygrid-event{border-radius:3px}.calendar-main .fc .fc-daygrid-day.fc-day-today{background:var(--ui-brand-soft)}.calendar-day{min-height:100px}.calendar-legend{font-size:11px}.calendar-hint{font-size:10px}.resource-head,.resource-line{border-color:var(--border)}.resource-head{background:var(--ui-soft);color:var(--ink)}
@media(max-width:1250px){:root,:root[data-ui-theme="light"]{--ui-side-width:202px}.hm-home-grid{gap:18px;grid-template-columns:minmax(0,1fr) 240px}.ui-main>.container{padding-inline:20px}.calendar-layout{grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:1040px){.hm-home-grid{grid-template-columns:minmax(0,1fr)}.hm-rail{grid-template-columns:1fr 1fr;align-items:start}.hm-account-info{grid-column:1/-1}.calendar-layout{grid-template-columns:1fr}}
@media(max-width:900px){.ui-workspace{display:block}.ui-sidebar{padding:0 14px 8px}.ui-brand-row{height:54px;margin:0;border-bottom:0;padding:0}.ui-nav-group{margin:0}.ui-nav-link{min-height:36px}.ui-main>.container{padding:18px 16px 24px}.ui-topbar{padding:0 16px}.ui-main>.footer{padding:10px 16px}.ui-menu-toggle:not([hidden]){border-radius:4px}.ui-nav-label{font-size:11px}.hm-home-grid{gap:18px}}
@media(max-width:560px){.hm-page-heading{align-items:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:16px}.hm-page-heading h1{font-size:23px}.hm-page-heading p{font-size:11px}.hm-page-heading>.button{width:auto}.hm-rail{grid-template-columns:1fr;gap:14px}.hm-account-info{grid-column:auto}.hm-panel-head{padding:12px;flex-wrap:wrap;min-height:52px}.hm-panel-head h2{font-size:13px}.hm-week-day{padding:10px 2px}.hm-week-day strong{font-size:17px}.hm-week-month{display:none}.hm-event-row{grid-template-columns:minmax(70px,26%) minmax(0,1fr) minmax(46px,19%);padding:8px;gap:6px;font-size:11px}.hm-event-link,.hm-event-when strong{font-size:11px}.hm-event-when span,.hm-event-state{font-size:10px}.hm-panel-foot{padding:10px 12px}.hm-events{min-height:150px}.hm-list-status{padding:40px 12px}.ui-main>.container{padding-inline:12px}.ui-topbar-actions{gap:5px}.ui-header-icon{width:30px;min-width:30px}.ui-theme-toggle{width:30px}.ui-main .page-header{padding-bottom:12px}.card{padding:12px}.ui-main .page-header h1{font-size:22px}.calendar-side .card{padding:10px}.calendar-main{padding:8px}.hm-notice-body{padding:12px}.auth-card{padding:20px}.hm-account-info dl{max-width:340px}}
@media print{.ui-main>.container{padding:0}.hm-rail,.hm-page-heading>.button,.hm-panel-foot,.hm-text-action{display:none!important}.hm-home-grid{display:block}.hm-panel{border:0}.hm-week{break-inside:avoid}.hm-event-row{break-inside:avoid}}

/* Increase reading comfort without increasing row heights. */
@media(min-width:901px){.ui-nav-link{font-size:13px;min-height:34px}.ui-brand-text strong{font-size:12px}.hm-event-row,.hm-event-link,.hm-event-when strong,.hm-tool-row{font-size:13px}.hm-page-heading p{font-size:13px}.hm-panel-head h2{font-size:15px}.hm-panel-head p{font-size:12px}.hm-event-state{font-size:12px}.hm-text-action,.hm-rail-link{font-size:12px}.hm-event-row.hm-event-labels{font-size:11px}.hm-account-info dl{font-size:12px}}

/* Calendar workbench: compact controls, full-width grid, four functional views. */
.ui-workspace[data-view="calendar"] .ui-main>.container{padding:16px 22px 18px;max-width:none}
.ui-workspace[data-view="calendar"] .calendar-heading{margin:0 0 12px;padding-bottom:10px}
.ui-workspace[data-view="calendar"] .calendar-heading h1{font-size:24px;margin:0 0 3px}
.ui-workspace[data-view="calendar"] .calendar-heading p{margin:0;font-size:11px}
.calendar-workbench{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.calendar-workbench .calendar-side{display:flex;flex-direction:column;gap:8px}
.calendar-workbench .calendar-filter-card{display:block;padding:0;margin:0;box-shadow:none}
.calendar-workbench .calendar-filter-card summary{cursor:pointer;padding:9px 12px;color:var(--ink);font-size:12px;font-weight:600}
.calendar-workbench .calendar-filter-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 12px;padding:10px 12px 12px;border-top:1px solid var(--border);align-items:end}
.calendar-workbench .calendar-filter-fields label{margin:0;min-width:0}
.calendar-workbench .calendar-filter-fields .checkbox{align-self:center;display:flex;align-items:center;gap:6px}
.calendar-workbench .calendar-filter-fields button{justify-self:start;grid-column:auto}
.calendar-workbench .calendar-legend-strip{padding:0 2px}
.calendar-workbench .calendar-legend{display:flex;flex-wrap:wrap;gap:5px 15px;align-items:center;font-size:11px;color:var(--muted)}
.calendar-workbench .calendar-legend>div{display:flex;align-items:center;gap:5px}
.calendar-workbench .color-dot{width:8px;height:8px;flex:none}
.calendar-workbench .calendar-main{padding:10px;overflow:visible;min-width:0}
.calendar-workbench .calendar-toolbar{display:grid;grid-template-columns:1fr minmax(100px,auto) 1fr;gap:8px;align-items:center;margin:0 0 4px;padding:0 0 8px}
.calendar-workbench .calendar-toolbar h2{font-size:15px;text-align:center;margin:0;line-height:1.25;width:auto;order:0}
.calendar-workbench .calendar-toolbar .segmented{justify-self:end;max-width:100%;background:var(--ui-soft)}
.calendar-workbench .calendar-toolbar button.active{background:var(--surface);color:var(--ui-brand-ink);box-shadow:0 1px 3px #0001;border:1px solid var(--border)}
.calendar-workbench .calendar-toolbar button{font-size:12px;min-height:32px;padding:5px 9px;white-space:nowrap}
.calendar-workbench #calendar-feedback{font-size:11px;margin:5px 0 8px}
.calendar-workbench #calendar-board{min-width:0;max-width:100%;font-size:12px;overflow:auto}
.calendar-workbench .calendar-hint{margin:8px 0 0}
.calendar-workbench .month-grid .calendar-day{min-height:70px}
@media(max-width:900px){.ui-workspace[data-view="calendar"] .ui-main>.container{padding:12px}.calendar-workbench .calendar-toolbar{grid-template-columns:1fr 1fr}.calendar-workbench .calendar-toolbar h2{grid-column:1/-1;grid-row:1}.calendar-workbench .calendar-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.calendar-workbench .calendar-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between}.calendar-workbench .calendar-toolbar h2{width:100%;order:-1;text-align:left}.calendar-workbench .calendar-toolbar .segmented{flex:1;justify-content:flex-end}.calendar-workbench .calendar-toolbar .actions{flex:none}.calendar-workbench .calendar-toolbar button{font-size:11px;padding:5px 7px}.calendar-workbench .calendar-legend{gap:5px 9px}.calendar-workbench .calendar-filter-fields{grid-template-columns:1fr 1fr}}
@media print{.ui-workspace[data-view="calendar"] .ui-main>.container{padding:0}.calendar-workbench .calendar-main,.calendar-workbench #calendar-board{overflow:visible}.calendar-workbench .calendar-toolbar .segmented{display:none}}

/* HM calendar v3. Scoped to the agenda only; explicit FullCalendar 7 render hooks. */
.ui-workspace[data-view="calendar"] .ui-main>.container{padding:18px 24px 12px}
.ui-workspace[data-view="calendar"] .calendar-heading{border:0;padding:0;margin:0 0 16px}
.ui-workspace[data-view="calendar"] .calendar-heading h1{font-size:25px;font-weight:650;letter-spacing:-.025em}
.hm-calendar-v3{gap:10px}
.hm-calendar-v3 .calendar-side{flex-direction:column;gap:9px}
.hm-calendar-v3 .calendar-filter-card{background:var(--bg);border-color:var(--border);border-radius:6px}
.hm-calendar-v3 .calendar-filter-card summary{padding:9px 14px;font-size:12px;font-weight:600}
.hm-calendar-v3 .calendar-filter-fields{background:var(--surface)}
.hm-calendar-v3 .calendar-legend-strip{padding:0 4px 2px}
.hm-calendar-v3 .calendar-legend{gap:8px 18px;font-size:11px;line-height:1.6}
.hm-calendar-v3 .calendar-main{padding:0;border-radius:8px;box-shadow:none;overflow:visible}
.hm-calendar-v3 .calendar-toolbar{grid-template-columns:minmax(125px,1fr) auto auto;gap:14px;padding:12px 15px;margin:0;min-height:56px;border-bottom:1px solid var(--border)}
.hm-calendar-v3 .calendar-toolbar h2{text-align:start;font-size:18px;font-weight:650;letter-spacing:-.025em;text-transform:capitalize;justify-self:start}
.hm-calendar-v3 .calendar-toolbar .actions{gap:4px;flex-wrap:nowrap;justify-content:end}
.hm-calendar-v3 .calendar-toolbar .actions button{min-width:32px;height:32px;padding:5px 10px}
.hm-calendar-v3 .calendar-toolbar .actions button:first-child,.hm-calendar-v3 .calendar-toolbar .actions button:last-child{font-size:19px;font-weight:400;line-height:1}
.hm-calendar-v3 .calendar-toolbar .segmented{border:1px solid var(--border);border-radius:5px;padding:2px;gap:2px}
.hm-calendar-v3 .calendar-toolbar .segmented button{height:29px;min-height:29px;border:1px solid transparent;font-size:11px;padding:4px 11px;color:var(--muted)}
.hm-calendar-v3 .calendar-toolbar .segmented button.active{color:var(--ui-brand-ink);font-weight:700;border-color:var(--border);background:var(--surface)}
.hm-calendar-status{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:34px;padding:5px 14px;border-bottom:1px solid var(--border);font-size:11px;color:var(--muted);background:var(--surface)}
.hm-calendar-v3 #calendar-feedback{margin:0;font-size:11px}
.hm-calendar-v3 #calendar-board{overflow:auto;border:0;border-radius:0;background:var(--surface);font-variant-numeric:tabular-nums;--fc-classic-background:var(--surface);--fc-classic-foreground:var(--ink);--fc-classic-border:var(--border);--fc-classic-strong-border:var(--border);--fc-classic-muted:var(--ui-soft);--fc-classic-muted-foreground:var(--muted);--fc-classic-faint:var(--bg);--fc-classic-faint-foreground:var(--muted);--fc-classic-today:var(--ui-brand-soft);--fc-classic-now:var(--ui-brand);--fc-classic-primary:var(--ui-brand);--fc-classic-highlight:var(--ui-brand-soft)}
.hm-calendar-v3 #calendar-board .fc-classic-n5m{font-family:inherit;font-size:12px;line-height:1.35;color:var(--ink);--fc-classic-background:var(--surface);--fc-classic-foreground:var(--ink);--fc-classic-border:var(--border);--fc-classic-strong-border:var(--border);--fc-classic-muted:var(--ui-soft);--fc-classic-muted-foreground:var(--muted);--fc-classic-faint:var(--bg);--fc-classic-faint-foreground:var(--muted);--fc-classic-today:var(--ui-brand-soft);--fc-classic-now:var(--ui-brand);--fc-classic-primary:var(--ui-brand);--fc-classic-highlight:var(--ui-brand-soft)}
.hm-calendar-v3 #calendar-board .hm-fc-day-header{background:var(--bg);color:var(--muted);border-color:var(--border);font-weight:600}
.hm-calendar-v3 #calendar-board .hm-fc-header-text{padding:9px 5px;font-size:12px;text-transform:capitalize;font-weight:600;color:inherit}
.hm-calendar-v3 #calendar-board .hm-fc-header-today{background:var(--ui-brand-soft);color:var(--ui-brand-ink);box-shadow:inset 0 -2px var(--ui-brand)}
.hm-calendar-v3 #calendar-board .hm-fc-cell{position:relative;border-color:var(--border);background:var(--surface)}
.hm-calendar-v3 #calendar-board .hm-fc-weekend{background:var(--bg)}
.hm-calendar-v3 #calendar-board .hm-fc-other{background:var(--bg)}
.hm-calendar-v3 #calendar-board .hm-fc-today{background:color-mix(in srgb,var(--ui-brand) 4%,var(--surface))}
.hm-calendar-v3[data-can-create="1"] #calendar-board .hm-fc-cell,.hm-calendar-v3[data-can-create="1"] #calendar-board .hm-fc-slot{cursor:crosshair}
.hm-calendar-v3[data-can-create="1"] #calendar-board .hm-fc-cell:hover{background:color-mix(in srgb,var(--ui-brand) 4%,var(--bg))}
.hm-calendar-v3 #calendar-board .hm-fc-day-top{min-height:32px;padding:3px 5px;align-items:center}
.hm-calendar-v3 #calendar-board .hm-fc-day-number{font-size:12px;font-weight:600;line-height:22px;min-width:24px;height:24px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;padding:0 4px;color:var(--ink)}
.hm-calendar-v3 #calendar-board .hm-fc-other .hm-fc-day-number{color:var(--muted);font-weight:400;opacity:.65}
.hm-calendar-v3 #calendar-board .hm-fc-today .hm-fc-day-number{background:var(--ui-brand);color:var(--surface);font-weight:700}
:root[data-ui-theme="dark"] .hm-calendar-v3 #calendar-board .hm-fc-today .hm-fc-day-number{color:#1a1516}
.hm-day-create{position:absolute;inset-inline-start:5px;top:5px;z-index:2;width:22px;height:22px;display:grid;place-items:center;color:var(--muted);border:1px solid transparent;background:transparent;border-radius:4px;font-size:17px;font-weight:400;text-decoration:none;line-height:1;opacity:.4;cursor:pointer}
.hm-fc-cell:hover .hm-day-create,.hm-day-create:focus-visible{opacity:1;background:var(--surface);color:var(--ui-brand-ink);border-color:var(--border)}
.hm-day-create:hover{background:var(--ui-brand-soft)!important;color:var(--ui-brand-ink)!important}
.hm-calendar-v3 #calendar-board .hm-fc-event{font-family:inherit;font-size:11px;line-height:1.35;min-width:0;cursor:pointer}
.hm-calendar-v3 #calendar-board .hm-fc-event:not(.hm-fc-busy):hover{filter:brightness(.95)}
.hm-calendar-v3 #calendar-board .hm-fc-event.hm-fc-busy{cursor:default}
.hm-calendar-v3 #calendar-board .hm-fc-dayGridMonth,.hm-calendar-v3 #calendar-board .hm-fc-timeGridWeek,.hm-calendar-v3 #calendar-board .hm-fc-timeGridDay{background:color-mix(in srgb,var(--fc-event-color,#64748b) 13%,var(--surface))!important;color:var(--ink)!important;border:0!important;border-inline-start:3px solid var(--fc-event-color,#64748b)!important;border-radius:4px!important;margin-inline:3px;overflow:hidden}
.hm-calendar-v3 #calendar-board .hm-fc-dayGridMonth .hm-fc-event-inner,.hm-calendar-v3 #calendar-board .hm-fc-timeGridWeek .hm-fc-event-inner,.hm-calendar-v3 #calendar-board .hm-fc-timeGridDay .hm-fc-event-inner{padding:3px 5px;color:var(--ink)!important;line-height:1.35}
.hm-calendar-v3 #calendar-board .hm-fc-event-title{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;color:inherit!important}
.hm-calendar-v3 #calendar-board .hm-fc-event-time{font-weight:500;font-size:10px;color:inherit!important;white-space:nowrap}
.hm-calendar-v3 #calendar-board .hm-fc-timeGridWeek .hm-fc-event-title,.hm-calendar-v3 #calendar-board .hm-fc-timeGridDay .hm-fc-event-title{white-space:normal;overflow-wrap:anywhere}
.hm-calendar-v3 #calendar-board .hm-fc-slot{height:24px;border-color:var(--border)}
.hm-calendar-v3 #calendar-board .hm-fc-slot-header{font-size:11px;color:var(--muted);font-weight:500}
.hm-calendar-v3 #calendar-board .hm-fc-slot:hover{background:color-mix(in srgb,var(--ui-brand) 4%,var(--surface))}
.hm-calendar-v3 .calendar-hint{padding:9px 14px;margin:0;border-top:1px solid var(--border);font-size:11px}
.hm-calendar-v3 .month-grid .calendar-day{position:relative;min-height:72px;cursor:crosshair}
.hm-calendar-v3[data-can-create="0"] .month-grid .calendar-day{cursor:default}
@media(max-width:1020px){.hm-calendar-v3 .calendar-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px}.hm-calendar-v3 .calendar-toolbar h2{grid-row:1;grid-column:1;font-size:16px}.hm-calendar-v3 .calendar-toolbar .actions{grid-row:1;grid-column:2}.hm-calendar-v3 .calendar-toolbar .segmented{grid-row:2;grid-column:1/-1;justify-self:stretch;justify-content:stretch}.hm-calendar-v3 .calendar-toolbar .segmented button{flex:1}.hm-calendar-hint-short{display:none}}
@media(max-width:640px){.ui-workspace[data-view="calendar"] .ui-main>.container{padding:12px 10px}.hm-calendar-v3 .calendar-toolbar h2{font-size:14px}.hm-calendar-v3 .calendar-toolbar .actions button{min-width:25px;height:29px;padding:4px 7px;font-size:10px}.hm-calendar-v3 .calendar-toolbar .actions button:first-child,.hm-calendar-v3 .calendar-toolbar .actions button:last-child{font-size:17px}.hm-calendar-v3 .calendar-legend{gap:4px 10px;font-size:10px}.hm-calendar-v3 .calendar-toolbar .segmented button{padding:4px 7px}.hm-calendar-v3 #calendar-board .hm-fc-day-top{min-height:29px;padding:2px}.hm-calendar-v3 #calendar-board .hm-fc-day-number{font-size:10px;min-width:18px;height:18px}.hm-calendar-v3 #calendar-board .hm-fc-day-header,.hm-calendar-v3 #calendar-board .hm-fc-header-text{font-size:10px}.hm-day-create{width:17px;height:17px;top:3px;inset-inline-start:1px;font-size:13px}.hm-calendar-v3 #calendar-board .hm-fc-dayGridMonth .hm-fc-event-inner{padding:2px;font-size:10px}.hm-calendar-v3 .calendar-hint{font-size:10px}}
@media print{.hm-calendar-v3 .hm-day-create,.hm-calendar-v3 .calendar-side,.hm-calendar-v3 .hm-calendar-status,.hm-calendar-v3 .calendar-hint{display:none!important}.hm-calendar-v3 .calendar-main{border:0}.hm-calendar-v3 #calendar-board{overflow:visible}.hm-calendar-v3 #calendar-board .hm-fc-event{print-color-adjust:exact}}
.hm-calendar-v3 #calendar-board .hm-fc-day-top{min-height:27px;padding:2px 5px}
.hm-calendar-v3 #calendar-board .hm-fc-dayGridMonth .hm-fc-event-inner{padding:2px 4px}
.hm-calendar-v3 #calendar-board .hm-fc-dayGridMonth{margin-block:1px}
.hm-day-create{top:3px;opacity:.6}

/* HM calendar 4 — calendar-first layout; historical days remain readable. */
.ui-workspace[data-view="calendar"] .ui-main>.container{padding:14px 20px 10px}
.ui-workspace[data-view="calendar"] .calendar-heading{margin:0 0 9px;gap:12px}
.ui-workspace[data-view="calendar"] .calendar-heading h1{font-size:23px;margin:0 0 2px}
.hm-calendar-v4{gap:8px}
.hm-calendar-v4 .calendar-side{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px 16px}
.hm-calendar-v4 .calendar-filter-card{border:1px solid var(--border);background:var(--surface);flex:0 0 auto;position:relative}
.hm-calendar-v4 .calendar-filter-card summary{display:flex;align-items:center;gap:7px;list-style:none;padding:7px 11px;min-height:34px;font-weight:600}
.hm-calendar-v4 .calendar-filter-card summary::-webkit-details-marker{display:none}
.hm-calendar-v4 .calendar-filter-card summary:after{content:'›';transform:rotate(90deg);font-size:15px;line-height:1;margin-left:8px;color:var(--muted)}
.hm-calendar-v4 .calendar-filter-card[open] summary:after{transform:rotate(-90deg)}
.hm-calendar-v4 .calendar-filter-card[open]{flex-basis:100%;order:2}
.hm-calendar-v4 .calendar-legend-strip{flex:1 1 420px;padding:0}
.hm-calendar-v4 .calendar-legend{justify-content:flex-end;gap:5px 14px}
.hm-calendar-v4 .calendar-main{border-radius:7px;overflow:visible}
.hm-calendar-v4 .calendar-toolbar{min-height:49px;padding:9px 13px;gap:12px;background:var(--surface);border-radius:7px 7px 0 0}
.hm-calendar-v4 .calendar-toolbar h2{font-size:19px;letter-spacing:-.025em;line-height:1.15}
.hm-calendar-v4 .calendar-toolbar .actions button{height:31px;min-height:31px}
.hm-calendar-v4 .calendar-toolbar .segmented{background:var(--bg);padding:3px;gap:2px}
.hm-calendar-v4 .calendar-toolbar .segmented button.active{background:var(--surface);border-color:var(--border);box-shadow:none;color:var(--ui-brand-ink)}
.hm-calendar-v4 #calendar-board[data-hm-view="dayGridMonth"]{overflow:visible}
.hm-calendar-v4 #calendar-board .hm-fc-day-header{background:var(--surface);border-color:var(--border)}
.hm-calendar-v4 #calendar-board .hm-fc-header-text{padding:9px 8px;text-align:left;font-size:11px;font-weight:650;letter-spacing:.025em}
.hm-calendar-v4 #calendar-board[data-hm-view="dayGridMonth"] .hm-fc-cell{min-height:clamp(82px,calc((100dvh - 270px)/6),132px);background:var(--surface)}
.hm-calendar-v4 #calendar-board[data-hm-view="dayGridMonth"] .hm-fc-cell.hm-fc-weekend{background:var(--bg)}
.hm-calendar-v4 #calendar-board[data-hm-view="dayGridMonth"] .hm-fc-cell.hm-fc-past{background:color-mix(in srgb,var(--bg) 76%,var(--surface))}
.hm-calendar-v4 #calendar-board[data-hm-view="dayGridMonth"] .hm-fc-cell.hm-fc-other{background:var(--bg)}
.hm-calendar-v4 #calendar-board[data-hm-view="dayGridMonth"] .hm-fc-cell.hm-fc-today{background:color-mix(in srgb,var(--ui-brand) 5%,var(--surface));box-shadow:inset 0 2px var(--ui-brand)}
.hm-calendar-v4 #calendar-board .hm-fc-day-top{justify-content:flex-start;min-height:32px;padding:4px 6px}
.hm-calendar-v4 #calendar-board .hm-fc-day-number{font-size:13px;line-height:24px;min-width:24px;height:24px;font-weight:600}
.hm-calendar-v4 #calendar-board .hm-fc-past .hm-fc-day-number{color:var(--muted);font-weight:400}
.hm-calendar-v4 #calendar-board .hm-fc-other .hm-fc-day-number{opacity:.75;font-weight:400}
.hm-calendar-v4 #calendar-board .hm-day-create{inset-inline-start:auto;inset-inline-end:6px;top:5px;width:24px;height:24px;color:var(--muted);opacity:.85;font-size:18px;background:var(--surface);border:1px solid var(--border)}
.hm-calendar-v4[data-can-create="1"] #calendar-board .hm-fc-cell.hm-fc-past{cursor:default}
.hm-calendar-v4[data-can-create="1"] #calendar-board .hm-fc-cell:not(.hm-fc-past):hover{background:var(--ui-brand-soft)}
.hm-calendar-v4 #calendar-board .hm-fc-cell.hm-fc-past:hover{background:color-mix(in srgb,var(--bg) 76%,var(--surface))}
.hm-calendar-v4 #calendar-board .hm-fc-event.hm-fc-dayGridMonth{margin-inline:4px;border-radius:3px!important;margin-block:2px}
.hm-calendar-v4 #calendar-board .hm-fc-dayGridMonth .hm-fc-event-inner{padding:4px 5px;gap:5px;font-size:11px;min-height:23px}
.hm-calendar-v4 #calendar-board .hm-fc-event-time{font-weight:600;font-variant-numeric:tabular-nums;font-size:10px}
.hm-calendar-v4 #calendar-board .hm-fc-event-title{font-weight:500}
.hm-calendar-v4 #calendar-board .hm-fc-timeGridWeek,.hm-calendar-v4 #calendar-board .hm-fc-timeGridDay{border-radius:4px!important}
.hm-calendar-v4 .hm-calendar-status{min-height:30px;padding:7px 12px;border-top:1px solid var(--border);border-bottom:0;border-radius:0 0 7px 7px;background:var(--surface);align-items:center;flex-wrap:wrap}
.hm-calendar-v4 .hm-calendar-status #calendar-feedback{font-size:11px}
.hm-calendar-v4 .calendar-day.hm-fc-past{background:var(--bg)}
.hm-history-note{margin:0 0 10px;padding:9px 12px;border:1px solid var(--border);border-inline-start:3px solid #b7791f;border-radius:4px;background:var(--bg);font-size:12px;color:var(--ink)}
@media(max-width:1000px){.hm-calendar-v4 .calendar-legend{justify-content:flex-start}.hm-calendar-v4 .calendar-toolbar{gap:8px}.hm-calendar-v4 .calendar-legend-strip{flex-basis:100%}}
@media(max-width:640px){.ui-workspace[data-view="calendar"] .ui-main>.container{padding:10px 8px}.hm-calendar-v4 .calendar-toolbar{padding:8px;gap:6px}.hm-calendar-v4 .calendar-toolbar h2{font-size:15px}.hm-calendar-v4 .calendar-legend{font-size:10px;gap:4px 10px}.hm-calendar-v4 #calendar-board[data-hm-view="dayGridMonth"] .hm-fc-cell{min-height:72px}.hm-calendar-v4 #calendar-board .hm-fc-day-top{padding:2px 2px;min-height:27px}.hm-calendar-v4 #calendar-board .hm-fc-day-number{font-size:11px;min-width:20px;height:20px}.hm-calendar-v4 #calendar-board .hm-day-create{inset-inline-end:2px;top:3px;width:17px;height:17px;font-size:12px}.hm-calendar-v4 #calendar-board .hm-fc-dayGridMonth .hm-fc-event-inner{padding:2px;font-size:10px;gap:2px}.hm-calendar-v4 #calendar-board .hm-fc-header-text{padding:6px 2px;font-size:10px}}
@media print{.hm-calendar-v4 .hm-calendar-status{display:none!important}.hm-calendar-v4 #calendar-board[data-hm-view="dayGridMonth"] .hm-fc-cell{min-height:65px}.hm-calendar-v4 .calendar-main{border:0}.hm-calendar-v4 .calendar-toolbar .actions{display:none}}

.hm-calendar-v4 #calendar-board .hm-fc-day-top>.hm-day-create{position:relative;inset:auto;margin-inline-start:auto;flex:0 0 auto;z-index:5;pointer-events:auto;box-shadow:none}

.hm-calendar-v4 #calendar-board[data-hm-view="dayGridMonth"] .hm-fc-cell{min-height:clamp(78px,calc((100dvh - 290px)/6),124px)!important}
@media(max-width:640px){.hm-calendar-v4 #calendar-board[data-hm-view="dayGridMonth"] .hm-fc-cell{min-height:72px!important}}
@media print{.hm-calendar-v4 #calendar-board[data-hm-view="dayGridMonth"] .hm-fc-cell{min-height:65px!important}}
