/* Единая оболочка по канону «Клиника — льготы — безопасность».
   Цвета — через f360-tokens.css (--f360-* → legacy aliases). */
:root{--g:var(--f360-brand,#146B57);--g2:var(--f360-brand-hover,#0F5848);--m:var(--f360-brand-soft,#E4F3ED);--o:var(--f360-accent,#F28A24);--i:var(--f360-text,#17231E);--u:var(--f360-text-secondary,#5E6B65);--l:var(--f360-border,#DDE5DF);--b:var(--f360-canvas,#F7F5EF)}
body{margin:0;background:var(--b);color:var(--i);font:var(--f360-body,14px/1.45 Inter,"Segoe UI",Arial,sans-serif);font-family:var(--f360-font,Inter,"Segoe UI",Arial,sans-serif)}
html,body{height:100%;overflow:hidden;display:flex;flex-direction:column}
body > header{flex:none;height:auto;min-height:56px;max-height:none;overflow:visible;background:#fff;border-bottom:1px solid var(--l);display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:0 16px;position:sticky;top:0;z-index:20}
body > header > *:not(.header-notice){align-self:center}
body > header img{width:118px;height:30px;flex:none;object-fit:contain;object-position:left center;overflow:visible}
body > header > .cabinet-brand{display:inline-flex !important;align-items:baseline;gap:6px;flex:none;min-width:108px;height:26px;text-decoration:none;white-space:nowrap;overflow:visible;line-height:1}
body > header > .cabinet-brand span,
body > header > .cabinet-brand .cabinet-brand-name,
body > header > .cabinet-brand .cabinet-brand-360{display:inline !important;visibility:visible !important;font-weight:800;font-size:18px;letter-spacing:-.02em;white-space:nowrap}
body > header > .cabinet-brand .cabinet-brand-name{color:#236B58}
body > header > .cabinet-brand .cabinet-brand-360{color:#F49A38}
body > header strong,body > header b{font-size:16px;font-weight:750;letter-spacing:-.02em;color:var(--i);white-space:nowrap;overflow:visible;text-overflow:clip;min-width:0;flex:0 1 auto}
body > header .cabinet-search,body > header .search{display:none !important}
body > header #identity,body > header #account,body > header #logout,body > header #nav #logout{display:none !important}
body > header .header-right{margin-left:0 !important;flex:none}
body > header .lang-switch{margin-left:0;flex:none}
body > header .workspace-switch{margin-left:auto;max-width:190px;height:36px;border:1px solid #d5e0db;border-radius:8px;background:#fff;color:#163028;font:inherit;padding:0 8px}
body > header .header-account{margin-left:auto;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:0;min-width:0;flex:none}
body > header .workspace-switch + .header-account{margin-left:12px}
body > header .header-notice{flex:1 0 100%;order:99;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:6px 0 8px;min-height:36px;max-height:none;width:100%;border-top:1px solid #f0e2c4;background:#fff8eb;color:#2b2110;box-sizing:border-box;overflow:visible}
body > header .header-notice.is-setup-open{max-height:none;flex-wrap:wrap;overflow:visible}
body > header .header-notice-text,body > header .header-notice-text strong{display:inline !important;font-size:12px;font-weight:700;min-width:0;flex:1 1 auto;white-space:normal;overflow:visible;text-overflow:clip;max-width:none}
body > header .header-notice-link{border:0;background:none;color:#1f5c4b;font:inherit;font-size:12px;font-weight:700;text-decoration:underline;cursor:pointer;padding:0;white-space:nowrap;flex:none}
body > header .header-notice-primary{height:26px;min-height:26px;padding:0 10px;border:0;border-radius:8px;background:#1f5c4b;color:#fff;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap;flex:none}
body > header .header-notice-later{height:26px;min-height:26px;padding:0 10px;border:1px solid #c9a35a;border-radius:8px;background:#fff;color:#2b2110;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;flex:none}
body > header .header-notice-setup{flex:1 0 100%;padding-top:4px}
body > header .header-notice-setup[hidden]{display:none !important}
@media (max-width:767px){
  body > header .header-notice-link{display:none}
  body > header .header-notice{max-height:none;min-height:36px;padding:6px 0 8px;gap:6px;overflow:visible}
}
.ops-desk{display:flex;gap:6px;padding:0 8px 10px}
@media (min-width:768px){
  html,body{width:100% !important;max-width:none !important}
  .shell,.layout{display:grid !important;grid-template-columns:220px minmax(0,1fr) !important;grid-template-rows:minmax(0,1fr) !important;flex:1 1 auto !important;height:auto !important;min-height:0 !important;overflow:hidden !important;width:100% !important;max-width:none !important}
  .cabinet-aside,.layout > aside,.shell > aside{width:220px !important;min-width:220px !important;max-width:220px !important;height:100% !important;align-self:stretch !important;overflow:hidden !important}
  #side{position:static !important;flex:1 1 auto !important;flex-direction:column !important;overflow-x:hidden !important;overflow-y:auto !important;min-height:0 !important;height:auto !important}
  #side button,aside button{width:100% !important;display:flex !important}
  #side button span,aside button span{display:inline !important}
  main,main#app,main#main,#admin,#panel{width:100% !important;max-width:none !important;min-width:0 !important;margin-left:0 !important;margin-right:0 !important}
  /* Скрытый сайдбар не должен оставлять первую колонку 220px — иначе кабинет сжимается как форма входа. */
  .shell:has(> aside[hidden]),
  .shell:has(> .cabinet-aside[hidden]),
  .layout:has(> aside[hidden]),
  .layout:has(> .cabinet-aside[hidden]),
  .shell:has(> aside[style*="display: none"]),
  .layout:has(> aside[style*="display: none"]),
  .shell.auth-only,
  .layout.auth-only{
    grid-template-columns:minmax(0,1fr) !important;
  }
}
@media (min-width:1440px){
  body > header .workspace-switch{max-width:280px}
  .shell,.layout{grid-template-columns:260px minmax(0,1fr) !important}
  .cabinet-aside,.layout > aside{width:260px !important;min-width:260px !important;max-width:260px !important}
}
@media (max-width:767px){.bottom-nav{display:flex}}
.ops-desk button{flex:1}
body > header .header-account-name{font-weight:750;font-size:14px;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body > header .header-avatar{margin-left:0;flex:none}
body > header select{border:1px solid var(--l);background:#fff;font:inherit;font-size:14px;font-weight:700;color:var(--i);max-width:220px;min-width:0;flex:0 1 220px;padding:8px 10px;border-radius:10px}
body > header .lang-switch select{width:148px;max-width:148px;flex:none}
.cabinet-aside,.layout > aside{width:280px;min-width:280px;max-width:280px;box-sizing:border-box;padding:0 !important}
#nav button,#side button,.layout > aside > button{white-space:normal;overflow:visible;text-overflow:clip;min-height:42px;flex:none}
.shell,.layout{display:grid;grid-template-columns:280px minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1 1 auto;height:auto;min-height:0;overflow:hidden}
.cabinet-aside,aside{background:#114f44;height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#nav,#side{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;display:flex;flex-direction:column;gap:4px;padding:18px 12px 8px;background:transparent;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.ml-pan-x{touch-action:pan-x;cursor:grab;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:thin}
.ml-pan-x.is-panning{cursor:grabbing;user-select:none;-webkit-user-select:none}
.ml-pan-y{touch-action:pan-y}
main.ml-pan-scroll,main.ml-pan-y,main.ml-pan-x,
#admin.ml-pan-scroll,#main.ml-pan-scroll,
.bottom-nav,.mobile-tabbar,body > header{cursor:auto !important}
.wx-hours,.org-chips,.week-grid,.cal-timegrid,.ml-hscroll,.ml-views,.ml-daystrip{
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  touch-action:pan-x;
  scrollbar-width:thin
}
@media (hover:none),(pointer:coarse){
  .ml-pan-x{cursor:auto}
}
.cabinet-user{flex:none !important;position:relative !important;bottom:auto;z-index:2;background:#114f44;padding:8px 12px 14px;border-top:1px solid #1d6b5c;margin-top:auto}
.cabinet-person{display:flex;align-items:center;gap:10px;color:#e7f4f0;padding:8px 4px 10px}
.cabinet-person b{display:block;font-size:14px;font-weight:750}
.cabinet-person small{display:block;color:#c5ddd4;font-size:12px}
main,main#app,#admin{padding:28px;max-width:none;width:100%;height:100%;min-height:0;margin:0;overflow-x:hidden;overflow-y:auto;align-self:stretch;background:transparent}
aside button,#side button,#nav button,.layout > aside > button,aside button.active,#side button.active,#nav button.active{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%;box-sizing:border-box;color:#e7f4f0;background:transparent;border:0;border-radius:12px;padding:11px 12px;text-align:left;font-family:Inter,"Segoe UI",Arial,sans-serif !important;font-size:14px !important;font-weight:600 !important;line-height:1.2 !important;letter-spacing:0 !important;box-shadow:none;cursor:pointer}
aside button span,#side button span,#nav button span{font-size:13.5px !important;font-weight:600 !important;line-height:1.25 !important;letter-spacing:0 !important;white-space:normal !important;color:inherit !important;margin:0 !important;padding:0 !important}
aside button.active,#side button.active,#nav button.active{background:#1d6b5c;color:#fff}
aside button > img,#side button > img,#nav button > img{display:none !important}
.nav-ico-wrap{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:none!important;width:28px;height:28px;margin:0;padding:0;border-radius:8px;background:rgba(255,255,255,.08);box-sizing:border-box;overflow:visible}
aside button:nth-child(3n) .nav-ico-wrap,#side button:nth-child(3n) .nav-ico-wrap,#nav button:nth-child(3n) .nav-ico-wrap{background:rgba(245,176,65,.16)}
aside button:nth-child(3n+1) .nav-ico-wrap,#side button:nth-child(3n+1) .nav-ico-wrap,#nav button:nth-child(3n+1) .nav-ico-wrap{background:rgba(133,193,233,.16)}
aside button.active .nav-ico-wrap,#side button.active .nav-ico-wrap,#nav button.active .nav-ico-wrap{background:rgba(255,255,255,.18)}
.nav-ico,#side .glyph{display:block!important;width:18px!important;height:18px!important;min-width:18px;min-height:18px;margin:0!important;padding:0!important;flex:none!important;overflow:visible!important;vertical-align:middle!important;stroke:#7dcea0}
.nav-ico *,#side .glyph *{stroke:inherit;fill:none;vector-effect:non-scaling-stroke}
aside button:nth-child(3n) .nav-ico,#side button:nth-child(3n) .glyph,#nav button:nth-child(3n) .nav-ico{stroke:#f5b041}
aside button:nth-child(3n+1) .nav-ico,#side button:nth-child(3n+1) .glyph,#nav button:nth-child(3n+1) .nav-ico{stroke:#85c1e9}
aside button.active .nav-ico,#side button.active .glyph,#nav button.active .nav-ico{stroke:#fff}
.layout > aside{overflow:hidden}
.layout > aside .cabinet-user{position:relative;bottom:auto}
.header-avatar,body > header .header-avatar{width:40px;height:40px;border-radius:50%;background:#1f6a5b;color:#fff;display:grid;place-items:center;font-weight:800;font-size:14px;flex:none;overflow:hidden}
.photo-window{position:fixed;inset:0;z-index:80;background:#17211ecc;display:grid;place-items:center;padding:24px}
.photo-window-card{width:min(720px,100%);background:#fff;border-radius:18px;padding:16px;display:grid;gap:12px}
.photo-window-card img{display:block;width:100%;height:min(70vh,640px);object-fit:contain;background:#f4f7f5;border-radius:12px}
.photo-window-close{justify-self:end;min-height:42px;padding:0 16px;border:0;border-radius:12px;background:#1f6a5b;color:#fff;font-weight:800;cursor:pointer}
#cabinet-logout{width:100%;background:transparent;color:#e7f4f0;border:0;border-radius:12px;text-align:left;padding:10px 12px;font-weight:700;cursor:pointer}
#side[hidden],.cabinet-aside[hidden],.layout > aside[hidden],.shell > aside[hidden]{display:none !important}
h1,#panel .toolbar h2,#panel > h2,#panel section > h2:first-of-type{font-size:28px;line-height:1.15;margin:0 0 8px;font-weight:750}
h2{font-size:18px;margin:0 0 12px;font-weight:750}
.lead,#panel .muted{color:var(--u);margin:0 0 18px;max-width:none}
.metrics,.cards,#panel .cards,.family-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 16px}
.metric,.card,.panel,#panel .cards .card,#panel .item{background:#fff;border:1px solid #e7eeea;border-radius:16px;padding:18px;box-shadow:0 8px 24px #16382f0d}
.metric b,.card b,#panel .cards .card b{display:block;margin-top:12px;font-size:28px;line-height:1;font-weight:750;color:var(--g)}
.metric b.metric-text,.card b.metric-text{font-size:16px;line-height:1.35;font-weight:650;margin-top:8px}
.primary,button.primary,#panel .toolbar > button:not(.secondary):not(.danger){background:var(--o);color:#fff;border:0;border-radius:12px;padding:11px 16px;font-weight:800}
.secondary,button.secondary{background:#fff;color:var(--i);border:1px solid var(--l);border-radius:12px;padding:10px 14px;font-weight:700}
.badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:#e5f6ee;color:#157a45;font-weight:800;font-size:12px}
table{width:100%;border-collapse:collapse}
th,td{padding:12px 10px;border-bottom:1px solid #edf2ef;text-align:left;vertical-align:middle}
th{font-size:12px;color:var(--u);text-transform:none;letter-spacing:0;font-weight:650}
main header,#panel header,.today-head,.week-col header,.kanban-col header{position:static;top:auto;height:auto;min-height:0;max-height:none;overflow:visible;z-index:auto;background:transparent;border:0;padding:0;display:block;box-shadow:none}
@media(max-width:767px){
  html,body{height:auto;overflow-x:hidden;overflow-y:auto;display:block}
  body > header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:48px auto;align-items:center;column-gap:8px;row-gap:0;height:auto;min-height:48px;max-height:none;padding:0 12px;position:sticky;top:0;z-index:45;background:#fff}
  body > header > img{grid-column:1;grid-row:1;width:96px;height:26px;object-fit:contain;object-position:left center;overflow:visible}
  body > header > .cabinet-brand{grid-column:1;grid-row:1;min-width:108px;overflow:visible;white-space:nowrap}
  body > header > strong,body > header > b{grid-column:2;grid-row:1;min-width:0;max-width:none;white-space:nowrap;overflow:visible;text-overflow:clip}
  body > header > .header-account{grid-column:3;grid-row:1;margin-left:0;justify-self:end}
  body > header > .header-account-name{max-width:28vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body > header > .header-notice{grid-column:1/-1;grid-row:2;margin:0;padding:6px 0 8px;max-height:none;min-height:36px;overflow:visible;width:100%}
  body > header > .header-right,body > header > select,body > header > .cabinet-search,body > header > .workspace-switch,body > header > .header-weather-chip,body > header > .lang-switch{display:none !important}
  .shell,.layout{height:auto;overflow:visible;grid-template-columns:1fr;width:100%;flex:none}
  .cabinet-aside,aside{display:none !important}
  .mobile-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:35;display:grid !important;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;background:#114f44;padding:6px 6px calc(6px + env(safe-area-inset-bottom));margin:0}
  .bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:35;display:grid !important;grid-template-columns:repeat(5,minmax(0,1fr));height:60px;background:#114f44;padding:4px 6px calc(4px + env(safe-area-inset-bottom));box-shadow:0 -4px 18px rgba(0,0,0,.14)}
  .bottom-nav button{display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:center !important;gap:2px !important;height:52px !important;min-height:44px !important;padding:2px !important;border:0 !important;background:transparent !important;color:rgba(255,255,255,.82) !important;font:600 11px/1.1 sans-serif !important}
  .bottom-nav button.active{color:#fff !important;background:rgba(255,255,255,.12) !important;border-radius:10px !important}
  .bottom-nav button svg{width:22px !important;height:22px !important;min-width:22px !important;max-width:22px !important;max-height:22px !important;flex:none !important}
  .mobile-tabbar button{display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:center !important;gap:2px !important;height:52px !important;min-height:44px !important;padding:2px !important;border:0 !important;background:transparent !important;color:rgba(255,255,255,.82) !important;font:600 11px/1.1 sans-serif !important}
  .mobile-tabbar button.active{color:#fff !important;background:rgba(255,255,255,.12) !important;border-radius:10px !important}
  .mobile-tabbar button svg{width:22px !important;height:22px !important;min-width:22px !important;max-width:22px !important;max-height:22px !important;flex:none !important}
  .mobile-more{width:min(580px,calc(100vw - 16px));max-height:82vh;overflow-y:auto;border:0;border-radius:20px;padding:16px}
  main,main#app,#admin,#panel,#main{height:auto;overflow:visible;padding:14px 14px 104px !important;max-width:100%}
  table,thead,tbody,tr,th,td{display:block;width:100%}
  thead{display:none}
  tr{margin:0 0 12px;border:1px solid #dce5e1;border-radius:12px;background:#fff}
  .weather-widget{display:grid;gap:8px;background:#fff;border:1px solid #dce5e1;border-radius:16px;padding:12px;margin:12px 0}
  .weather-compact{display:flex;gap:12px;align-items:center}
  .weather-widget form{display:grid;gap:8px}
  .weather-widget input,.weather-widget button{min-height:44px;max-width:100%}
  .weather-widget dialog{width:min(520px,calc(100vw - 24px));border:0;border-radius:16px}
}
.weather-host{display:block}
.weather-chip{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:220px;margin:0;padding:4px 10px;background:#f4f8f6;border:1px solid #d7e3de;border-radius:999px;box-shadow:none}
body > header .header-weather-chip{margin-left:auto;margin-right:8px;height:40px;flex:none}
body > header .header-weather-chip + .workspace-switch,body > header .header-weather-chip + .header-account{margin-left:0}
.weather-face{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;padding:0;min-height:0;text-align:left;cursor:pointer;color:inherit}
.weather-face:disabled{cursor:default}
.weather-chip img{width:28px;height:24px;object-fit:contain}
.weather-copy{display:flex;align-items:baseline;gap:6px}
.weather-copy strong{font-size:15px;line-height:1;font-weight:800;color:#155b4d}
.weather-copy small{color:#4a635c;font-size:12px;line-height:1.1;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.weather-permit{min-height:26px;padding:0 8px;border:0;border-radius:999px;background:#1f6a5b;color:#fff;font-size:11px}
.weather-sheet{width:min(420px,calc(100vw - 24px));border:0;border-radius:20px;padding:16px;color:#17332c}
.weather-sheet::backdrop{background:rgba(17,32,28,.28)}
.wx-now{display:flex;align-items:center;gap:10px}
.wx-now p{margin:2px 0 0;color:#5d6d67;font-size:13px}
.wx-now button{margin-left:auto;min-height:32px}
.wx-hours{display:flex;gap:8px;overflow-x:auto;margin:12px 0;padding-bottom:4px}
.wx-hours div{min-width:52px;display:grid;justify-items:center;gap:2px;font-size:12px}
.wx-day{display:grid;grid-template-columns:42px 28px 1fr;gap:8px;align-items:center;padding:6px 0;border-top:1px solid #e6eeea;font-size:14px}
.wx-day small{grid-column:1 / -1;color:#5d6d67}
.wx-source{color:#5d6d67;font-size:12px}
.weather-sheet button{width:auto !important;height:auto !important;min-height:36px;border:0;border-radius:12px !important;padding:8px 14px !important;background:#1f6a5b !important;color:#fff !important;text-align:center !important;font-weight:700}
.weather-sheet img{width:44px;height:38px;object-fit:contain;background:#f4f7f5;border-radius:10px}
.wx-actions{display:flex;flex-wrap:wrap;gap:8px}
.weather-sheet form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;margin-top:10px}
.weather-sheet form button{width:auto !important}
.weather-sheet input{width:100%;min-height:40px;border:1px solid #b7c7c0;border-radius:12px;padding:0 10px;background:#fff}
.settings-geo{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #dce5e1;border-radius:16px;padding:4px 10px 4px 0;margin:8px 0}
.settings-geo > button:first-child{flex:1;background:transparent;color:inherit;text-align:left;box-shadow:none}
button.geo-switch{width:72px !important;flex:none;border-radius:999px !important;background:#c5d0cb !important;color:#17332c !important;text-align:center !important;min-height:36px}
button.geo-switch[aria-checked="true"]{background:#1f6a5b !important;color:#fff !important}
@media (min-width:1024px){main .today-screen>header.today-head,main .weather-host{display:grid !important;grid-template-columns:minmax(0,1fr) auto !important;align-items:start;gap:16px}.weather-chip{justify-self:end}}
@media (prefers-reduced-motion: reduce){.weather-chip img{transition:none}}
html:has(body.auth-surface),
body.auth-surface{
  overflow:auto !important;
  height:auto !important;
  min-height:100%;
  min-width:0;
}
body.auth-surface .shell,
body.auth-surface .layout,
.shell.auth-only,
.layout.auth-only{
  overflow:visible !important;
  height:auto !important;
  min-height:calc(100vh - 72px);
  width:100% !important;
  max-width:none !important;
  grid-template-columns:minmax(0,1fr) !important;
  align-items:start;
}
body.auth-surface main#app,
.shell.auth-only main,
.shell.auth-only main#app{
  padding:16px !important;
  max-width:none !important;
  min-width:0 !important;
  height:auto !important;
  overflow:visible !important;
}
body.auth-surface .bottom-nav,
body.auth-surface .mobile-tabbar,
.shell.auth-only .bottom-nav,
.shell.auth-only .mobile-tabbar{
  display:none !important;
}
main section.card.auth,
#login-now.card.auth{
  width:min(440px, calc(100vw - 32px)) !important;
  max-width:100% !important;
  min-width:0 !important;
  margin-left:auto !important;
  margin-right:auto !important;
  overflow:visible !important;
}
.card.auth form,
#login-now form,
.card.auth label,
#login-now label{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  min-width:0 !important;
  max-width:100% !important;
}
.card.auth label.adult-confirm,
#login-now label.adult-confirm,
#login-adult{
  display:flex !important;
  grid-template-columns:none !important;
  align-items:flex-start;
  gap:10px;
}
@media (min-width:768px){
  .mobile-tabbar{display:none}
  .bottom-nav{display:none}
}
.modal.sheet{position:fixed;inset:0;z-index:90;background:rgba(15,32,26,.45);display:flex;align-items:flex-end;justify-content:center;padding:0}
.modal.sheet > .card{width:min(640px,100vw);max-height:82vh;overflow-y:auto;border-radius:22px 22px 0 0;padding:18px 18px 24px;margin:0;background:#fff}
/* ===== Каноническое мобильное меню «Ещё», сетка категорий и карточки ===== */
.more-cat-bar{display:grid !important;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;padding:4px 0 12px;overflow:visible !important}
.more-cat-chip{width:100% !important;display:flex !important;align-items:center;justify-content:space-between;gap:6px;border-radius:12px !important;padding:9px 12px !important;min-height:40px !important;font-size:13px !important;font-weight:700 !important;border:1px solid #cfe0d9 !important;background:#f3f8f6 !important;color:#17332c !important;cursor:pointer;white-space:normal !important;line-height:1.2}
.more-cat-chip b{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:rgba(21,91,77,.12);color:#155b4d;font-size:11px}
.more-cat-chip.active{background:#155b4d !important;color:#fff !important;border-color:#155b4d !important}
.more-cat-chip.active b{background:rgba(255,255,255,.22);color:#fff}
.sheet-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:10px;margin:8px 0 14px}
.sheet-grid button{display:flex !important;align-items:center !important;gap:10px !important;width:100% !important;min-height:52px !important;padding:10px 12px !important;border-radius:14px !important;background:#f6faf8 !important;border:1px solid #d7e3de !important;color:#17332c !important;text-align:left !important;font-weight:650 !important;transition:transform .12s,box-shadow .12s}
.sheet-grid button .sheet-ico{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#dff1ea;color:#155b4d;flex:none}
.sheet-grid button:nth-child(4n+2) .sheet-ico{background:#fff0df;color:#c56a12}
.sheet-grid button:nth-child(4n+3) .sheet-ico{background:#e7effc;color:#1e5fb5}
.sheet-grid button:nth-child(4n+4) .sheet-ico{background:#fce8ec;color:#b4233c}
.sheet-grid button.active{background:#155b4d !important;color:#fff !important;border-color:#155b4d !important}
.sheet-grid button.active .sheet-ico{background:rgba(255,255,255,.2);color:#fff}
.sheet-grid button svg{width:18px !important;height:18px !important;stroke:currentColor !important;flex:none !important}
.canon-banner{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(180px,.8fr);gap:16px;align-items:center;padding:18px 20px;border-radius:20px;background:linear-gradient(135deg,#e6f3ee 0%,#fdf4e7 100%);border:1px solid #cfe0d9;margin-bottom:16px;min-width:0}
.canon-banner, .canon-banner h1, .canon-banner p, .canon-banner .badge, .canon-tile b, .canon-tile small {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
.canon-banner img{width:100%;max-height:150px;object-fit:contain;border-radius:14px;background:rgba(255,255,255,.65);padding:6px}
@media(max-width:767px){.canon-banner{grid-template-columns:1fr}.canon-banner img{max-height:130px}}
.canon-tiles-4{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:12px 0 16px}
.canon-tile{display:flex;flex-direction:column;justify-content:space-between;gap:8px;padding:14px 16px;border-radius:18px;border:1px solid #dce6e1;background:#fff;text-align:left;cursor:pointer}
.canon-tile.t-amber{background:#fdf3e6;border-color:#f3dfc2}
.canon-tile.t-blue{background:#ebf2fc;border-color:#cedef6}
.canon-tile.t-mint{background:#e7f4ee;border-color:#c6e3d6}
.canon-tile.t-rose{background:#fcecee;border-color:#f3ced4}
.canon-tile b{font-size:15px !important;line-height:1.25 !important;margin:4px 0 0 !important;color:#17211e !important}
.canon-tile small{color:#5a6963;font-size:12px;font-weight:600}
.cal-timegrid{background:#fff;border:1px solid #dce5e1;border-radius:18px;padding:12px;margin-bottom:14px;overflow-x:auto}
.cal-filter-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0 12px}
.cal-member-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:#fff;border:1px solid #d5e0db;font-size:12px;font-weight:700;color:#17332c}
.cal-member-chip i{width:10px;height:10px;border-radius:50%;display:inline-block}
.load-bar-row{display:grid;grid-template-columns:130px minmax(0,1fr) 44px;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #edf2ef}
.load-bar-track{display:flex;height:28px;border-radius:10px;overflow:hidden;background:#eef3f0}
.load-seg{display:grid;place-items:center;font-size:12px;font-weight:800;color:#17211e}
.load-seg.s1{background:#cbe3d6}
.load-seg.s2{background:#fbd8b8}
.load-seg.s3{background:#bfd6f6}
main section.card, #panel > section.card, .records-screen > section.card { max-width: 100% !important; width: 100%; }
form#mod-form, .settings-screen form, .records-screen form { max-width: 100%; }
.premium-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width:767px){ .premium-2col { grid-template-columns: 1fr; } }
@media (min-width:768px) and (max-width:1023px){
  .premium-2col { grid-template-columns: 1fr; }
  .canon-banner { grid-template-columns: 1fr; }
  .shell, .layout { grid-template-columns: 220px minmax(0, 1fr) !important; }
  .cabinet-aside, .layout > aside { width: 220px !important; min-width: 220px !important; max-width: 220px !important; }
}
@media (min-width:1024px) and (max-width:1365px){
  .premium-2col { grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr); }
  .shell, .layout { grid-template-columns: 220px minmax(0, 1fr) !important; }
  .cabinet-aside, .layout > aside { width: 220px !important; min-width: 220px !important; max-width: 220px !important; }
}
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], select, textarea { max-width: 100%; }
input[type="checkbox"], input[type="radio"] { width: 20px !important; min-width: 20px !important; max-width: 20px !important; height: 20px !important; flex: none; }
label:has(> input[type="checkbox"]), label.check, .settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.ru-date-wrap { position: relative; display: inline-flex; align-items: center; gap: 6px; width: 100%; max-width: 240px; }
.ru-date-input { width: 100% !important; min-height: 40px; padding: 8px 36px 8px 12px !important; border: 1px solid #c5d4cd; border-radius: 10px; background: #fff; font-variant-numeric: tabular-nums; }
.ru-date-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px !important; height: 28px !important; min-height: 28px !important; padding: 0 !important; border: 0 !important; border-radius: 6px !important; background: #e8f1ed !important; color: #17332c !important; display: inline-flex !important; align-items: center; justify-content: center; cursor: pointer; }
.ru-date-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 80; width: 268px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #cfe0d9; box-shadow: 0 14px 36px rgba(17,40,32,.16); color: #17332c; }
.ru-date-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.ru-date-head button { width: 28px !important; height: 28px !important; min-height: 28px !important; padding: 0 !important; border-radius: 8px !important; background: #eef5f2 !important; color: #17332c !important; border: 0 !important; }
.ru-date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 12px; }
.ru-date-grid b { color: #5d6d67; font-weight: 600; padding: 4px 0; }
.ru-date-grid button { width: 32px !important; height: 30px !important; min-height: 30px !important; padding: 0 !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; color: #17332c !important; font-weight: 600; cursor: pointer; }
.ru-date-grid button:hover, .ru-date-grid button.active { background: #1f5c4b !important; color: #fff !important; }
.ru-dt-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(96px, .8fr); gap: 8px; width: 100%; max-width: 360px; }
.field-err, .field-error { display: block; margin: 4px 0 0; color: #9a2b2b; font-size: 13px; font-weight: 650; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #c45c5c; }
.file-pick { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-pick input[type=file],
.cabinet-photo input[type=file],
.avatar-form input[type=file] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.cabinet-photo.avatar-form,
.avatar-form.cabinet-photo { display: grid; gap: 10px; max-width: 420px; margin: 12px 0 18px; }
.cabinet-photo .avatar-upload,
.avatar-form .avatar-upload {
  width: auto !important;
  min-width: 168px !important;
  max-width: max-content !important;
  min-height: 40px !important;
  padding: 8px 18px !important;
  border-radius: 10px !important;
  border: 1px solid #1f5c4b !important;
  background: #1f5c4b !important;
  color: #fff !important;
  font-weight: 700 !important;
  justify-self: start;
}
.cabinet-photo .file-btn,
.avatar-form .file-btn { width: auto !important; min-width: 132px !important; }
.cab-perm-grid { display: grid; gap: 10px; max-width: 100%; margin: 12px 0; }
.cab-perm-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #d7e3de; }
.cab-perm-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; max-width: 100%; }
.cab-perm-row button,
.cab-perm-actions button {
  width: auto !important;
  min-width: 112px !important;
  max-width: none !important;
  min-height: 38px !important;
  padding: 6px 14px !important;
  border-radius: 10px !important;
  text-align: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}
@media (max-width: 767px) {
  .cab-perm-row { grid-template-columns: 1fr; }
  .cab-perm-actions { justify-content: flex-start; }
}
html[data-season-active="1"] header { box-shadow: inset 0 -3px 0 #e8c99a; }
html[data-season-active="1"] .canon-banner { background: linear-gradient(105deg, #e6f3ee, #fdf4e7); }
html[data-season-active="1"] .canon-banner img, html[data-season-active="1"] header img { object-fit: contain; }
.season-preview-dialog{position:fixed;inset:0;z-index:90;background:rgba(16,28,24,.46);display:grid;place-items:center;padding:16px}
.season-preview-card{width:min(1120px,100%);height:min(880px,94vh);background:#fff;border:1px solid #E5E7EB;border-radius:12px;display:grid;grid-template-rows:auto auto auto 1fr;overflow:hidden}
.season-preview-card header{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #E5E7EB}
.season-preview-card .row{display:flex;flex-wrap:wrap;gap:8px;padding:8px 16px;align-items:center}
.season-preview-card iframe{width:100%;height:100%;border:0;background:#f6f5f0}
.season-preview-meta{font-size:12px;color:#596b63}

/* Quiet cards / Soft UI — eight cabinets, keep canon banners */
main .panel, main .card, #admin .panel, #admin .card, #main .panel, #main .card, #panel .panel {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: none;
}
main .cards .card { box-shadow: none; border: 1px solid #E5E7EB; border-radius: 10px; }

/* Ghost + compact primary 32–36px; do not restyle canon tiles, login, nav */
main button.action, #admin button.action, #main button.action, #panel button.action,
main .toolbar > button, main .row-actions > button:not(.danger):not(.ml-kebab) {
  height: 34px;
  min-height: 34px !important;
  padding: 0 14px !important;
  width: auto !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}
main button.secondary, main button.ghost, #admin button.secondary, #main button.secondary,
main a.secondary, #admin a.secondary {
  height: 34px;
  min-height: 34px !important;
  padding: 0 12px !important;
  width: auto !important;
  background: transparent !important;
  color: #374151 !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
main .row-actions { display: inline-flex; align-items: center; gap: 6px; }
main .row-actions button.danger {
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: none !important;
  position: relative;
}
main .row-actions button.danger::before {
  content: "···";
  color: #9CA3AF;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 32px;
}

.quiet-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: none;
  padding: 16px 18px;
}
.ws-hub-group { margin: 0 0 16px; }
.ws-hub-group h3 {
  font-size: 12px;
  font-weight: 700;
  color: #6B7280;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px 4px;
}
.ws-settings-hub .settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}
/* Клик по фото/имени: #main невидим, пока хаб не собран — иначе вспышка «Безопасность…» / фото. */
html[data-profile-opening="1"] #main,
html[data-profile-opening="1"] main#main,
html[data-profile-opening="1"] main,
html[data-profile-opening="1"] #panel {
  opacity: 0 !important;
  pointer-events: none !important;
}
/* Пока хаб настроек грузится — родной контент #main не занимает место (нет скачка при prepend). */
#main[data-settings-settling="1"] > [data-settings-hold],
main[data-settings-settling="1"] > [data-settings-hold],
#panel[data-settings-settling="1"] > [data-settings-hold] {
  display: none !important;
}
#main[data-settings-settling="1"] > [data-ws-settings-mount],
main[data-settings-settling="1"] > [data-ws-settings-mount] {
  min-height: 120px;
}
.quiet-card .quiet-hours-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.quiet-card .quiet-hours-row label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  min-height: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: #374151;
}
.quiet-card .quiet-hours-row input {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}
@media (max-width: 767px) {
  .quiet-card .quiet-hours-row { grid-template-columns: 1fr; }
}

/* iOS Settings / List UI */
.ios-list, .ml-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}
.ios-row, .ml-list > .ml-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 9px 14px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #111827;
  text-align: left;
  box-shadow: none;
  position: relative;
}
.ios-row + .ios-row::before, .ml-list > .ml-row + .ml-row::before {
  content: "";
  position: absolute;
  left: 58px;
  right: 0;
  top: 0;
  height: 1px;
  background: #E5E7EB;
}
.ios-row:hover, .ml-list > .ml-row:hover { background: #FAFAFA; }
.ios-ico {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #EEF2F7;
  color: #374151;
  font-size: 14px;
}
.ios-row-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ios-row-text strong { font-size: 15px; font-weight: 600; color: #111827; }
.ios-row-text small { font-size: 12px; font-weight: 500; color: #6B7280; }
.ios-chev { flex: none; color: #C4C9D1; font-size: 20px; font-weight: 300; }
.ios-row .row-actions { margin-left: auto; flex: none; }
.ios-menu { position: relative; }
.ios-menu > summary {
  list-style: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #9CA3AF;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 8px;
  user-select: none;
}
.ios-menu > summary::-webkit-details-marker, .ios-menu > summary::marker { display: none; content: ""; }
.ios-menu-list {
  position: absolute;
  right: 0;
  top: 36px;
  z-index: 24;
  min-width: 220px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  padding: 4px;
}
.ios-menu-list button, .ios-menu-list a {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 36px !important;
  text-align: left;
  padding: 8px 12px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none;
  cursor: pointer;
}
.ios-menu-list button:hover, .ios-menu-list a:hover { background: #F3F4F6 !important; }

/* Journal timeline / activity feed */
.event-timeline {
  list-style: none;
  margin: 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid #E5E7EB;
}
.event-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 0 0 16px 16px;
}
.event-timeline li::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1f5c4b;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #E5E7EB;
}
.event-timeline time {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}
.event-timeline strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: #111827;
}
.event-timeline small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6B7280;
}
@media (max-width: 767px) {
  .event-timeline li { grid-template-columns: 1fr; gap: 2px; }
}

.journal-feed .journal-period {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.journal-feed .journal-period button {
  height: 32px;
  min-height: 32px !important;
  width: auto !important;
  padding: 0 12px !important;
  background: transparent !important;
  color: #374151 !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 600;
}
.journal-feed .journal-period button[aria-pressed="true"] {
  background: #111827 !important;
  color: #fff !important;
  border-color: #111827 !important;
}
.journal-feed .journal-toolbar { margin: 0 0 12px; }
.journal-feed .journal-toolbar button,
.journal-feed #journal-more {
  height: 32px;
  min-height: 32px !important;
  width: auto !important;
  padding: 0 12px !important;
  background: transparent !important;
  color: #374151 !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 13px !important;
}
.journal-feed .journal-summary { margin: 0 0 14px; }
.journal-feed .journal-day { margin: 0 0 22px; }
.journal-feed .journal-day h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #6B7280;
}

/* ===== Visual 8×4: шапка, 768 list+detail, quiet cards, светлый list UI ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; max-width: 100%; }
main, #admin, #main, .f360-page, .premium-2col, .panel, .card, .shell, .layout {
  min-width: 0;
  max-width: 100%;
}
table { max-width: 100%; }
body > header {
  overflow: visible !important;
  max-width: 100%;
}
body > header > img {
  flex: none;
  min-width: 72px;
  object-fit: contain;
}
body > header > strong,
body > header > b {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  flex: 0 1 auto !important;
  min-width: 0;
  max-width: none !important;
}
body > header .header-account-name {
  overflow: visible;
  text-overflow: clip;
}
.cabinet-aside,
aside.cabinet-aside,
.shell > aside,
.layout > aside {
  background: #fff !important;
  color: #17231E !important;
  border-right: 1px solid #E5E7EB;
}
.cabinet-user {
  background: #fff !important;
  border-top: 1px solid #E5E7EB !important;
}
.cabinet-person { color: #17231E !important; }
.cabinet-person small { color: #5E6B65 !important; }
#cabinet-logout { color: #17231E !important; }
aside button,
#side button,
#nav button,
.layout > aside > button,
aside button.active,
#side button.active,
#nav button.active {
  color: #17231E !important;
  background: transparent !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #F3F4F6 !important;
}
aside button.active,
#side button.active,
#nav button.active {
  background: #F3F6F4 !important;
  color: #114f44 !important;
  font-weight: 700 !important;
}
.nav-ico-wrap { background: #EEF4F1 !important; }
aside button.active .nav-ico-wrap,
#side button.active .nav-ico-wrap,
#nav button.active .nav-ico-wrap { background: #DCEEE6 !important; }
aside button .nav-ico,
#side button .nav-ico,
#nav button .nav-ico { stroke: #146B57 !important; }
aside button.active .nav-ico,
#side button.active .nav-ico,
#nav button.active .nav-ico { stroke: #114f44 !important; }
.panel,
.card,
.metric,
.f360-card,
.quiet-card,
.f360-metric-card,
.f360-action-card {
  background: #fff !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(23, 35, 30, 0.04) !important;
}
.f360-pulse {
  background: #fff !important;
  border: 1px solid #E5E7EB !important;
  box-shadow: none !important;
}
.f360-pulse + .canon-banner,
.f360-page-header + .f360-pulse + .canon-banner,
.f360-page > .f360-pulse + .canon-banner {
  display: none !important;
}
@media (max-width: 767px) {
  body > header {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    height: auto !important;
    min-height: 52px !important;
    max-height: none !important;
    padding: 8px 12px 0 !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
  }
  body > header > img { width: 96px !important; height: 26px !important; object-fit: contain !important; object-position: left center; overflow: visible !important; grid-column: auto !important; grid-row: auto !important; }
  body > header > .cabinet-brand { min-width: 108px !important; overflow: visible !important; white-space: nowrap !important; }
  body > header > .cabinet-brand .cabinet-brand-name,
  body > header > .cabinet-brand .cabinet-brand-360 { font-size: 17px !important; }
  body > header > strong,
  body > header > b {
    grid-column: auto !important;
    grid-row: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 16px !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  body > header > .header-account {
    grid-column: auto !important;
    grid-row: auto !important;
    margin-left: auto !important;
  }
  body > header .header-account-name { display: none !important; }
  body > header > .header-notice {
    flex: 1 0 100% !important;
    order: 99 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    max-height: none !important;
    min-height: 40px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 6px 0 8px !important;
    overflow: visible !important;
    border-top: 1px solid #f0e2c4;
  }
  body > header .header-notice-why,
  body > header .header-notice-link { display: none !important; }
  body > header .header-notice-text,
  body > header .header-notice-text strong {
    display: inline !important;
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 12px;
    line-height: 1.3;
  }
  body > header .header-notice-primary,
  body > header .header-notice-later { flex: none; }
  h1,
  .f360-page-header h1,
  .f360-page-header h2,
  .fa-greeting { font-size: 22px !important; line-height: 1.25 !important; }
  .f360-page-header { flex-direction: column; align-items: stretch; }
  [data-role-briefing], [data-device-limit] {
    position: static !important;
    display: block;
    margin: 8px 0 12px;
    max-width: 100%;
  }
  .f360-pulse { padding: 12px !important; margin-bottom: 12px !important; }
  .metrics,
  .cards,
  .canon-tiles-4,
  .f360-grid.cols-4,
  .family-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .mobile-tabbar,
  .bottom-nav {
    height: 60px !important;
    background: #fff !important;
    border-top: 1px solid #E5E7EB !important;
    box-shadow: none !important;
    padding: 0 4px calc(env(safe-area-inset-bottom, 0px)) !important;
  }
  .mobile-tabbar button,
  .bottom-nav button {
    color: #5E6B65 !important;
    font: 600 11px/1 Inter, "Segoe UI", sans-serif !important;
    white-space: nowrap !important;
    height: 60px !important;
  }
  .mobile-tabbar button span,
  .bottom-nav button span {
    display: block;
    max-width: 100%;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: clip;
    font-size: 11px !important;
    line-height: 1 !important;
  }
  .mobile-tabbar button.active,
  .bottom-nav button.active {
    color: #114f44 !important;
    background: #F3F6F4 !important;
  }
}
@media (min-width: 768px) and (max-width: 1365px) {
  .metrics,
  .cards,
  .canon-tiles-4,
  .f360-grid.cols-4,
  .family-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .metric b,
  .card b,
  .f360-metric-label,
  .f360-metric-value,
  .canon-banner,
  .canon-banner h1,
  .canon-tile small,
  .canon-tile b {
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
  }
  main > .f360-page,
  #admin > .f360-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
  .md-split {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    gap: 16px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .md-list, .md-detail {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .md-split { grid-template-columns: 1fr; }
  .canon-banner { grid-template-columns: 1fr !important; }
  .canon-banner img { max-height: 120px; }
}
@media (min-width: 1366px) {
  body > header {
    flex-wrap: wrap !important;
    overflow: visible !important;
  }
  body > header > strong,
  body > header > b,
  body > header .header-account-name {
    overflow: visible !important;
    text-overflow: clip !important;
    flex: 0 0 auto !important;
    min-width: 0;
    max-width: none !important;
  }
  body > header > img { overflow: visible; flex: none; }
  body > header .header-notice {
    flex: 1 0 100% !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
}

