@import url("./tokens.14c26846a003.css");

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--black-haze);
  color: var(--mirage);
  font: 14px/1.25 "Inter Tight", Arial, sans-serif;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a, select, input, textarea { outline-offset: 2px; }
:focus-visible { outline: 3px solid rgba(56, 99, 172, .45); }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 24px; line-height: .98; font-weight: 600; }
h2 { margin-bottom: 0; font-size: 18px; font-weight: 600; }
h3 { margin-bottom: 4px; font-size: 14px; font-weight: 500; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; background: var(--white); }
.skip-link:focus { transform: none; }
.icon { width: 20px; height: 20px; object-fit: contain; flex: none; }
.icon--12 { width: 12px; height: 12px; }
.icon--16 { width: 16px; height: 16px; }
.icon--20 { width: 20px; height: 20px; }

.portal {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, var(--content-width));
  gap: var(--page-gap);
  width: 1232px;
  margin: 24px auto;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 24px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  height: 672px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  transition: transform .2s ease, width .2s ease;
}
.brand { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--mirage-10); }
.brand__logo { width: 54px; height: 46px; }
.brand__text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.brand__text strong { color: var(--dodger-blue); font-size: 18px; font-weight: 500; line-height: 18px; }
.brand__text span { color: var(--fiord); font-size: 12px; line-height: 16px; }
.icon-btn {
  display: inline-grid;
  width: 32px;
  height: 32px;
  padding: 5px;
  place-items: center;
  border: 1px solid var(--fiord);
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: background .2s ease;
}
.icon-btn:hover { background: var(--dodger-blue-16); }
.icon-btn--primary { border: 0; background: var(--dodger-blue); }
.icon-btn--primary:hover { background: #2e5598; }
.icon-btn--primary .icon { filter: brightness(0) invert(1); }
.icon-btn--lg { width: 40px; height: 40px; padding: 8px; }
.icon-btn .icon--16 { width: 16px; height: 16px; }
.icon-btn .icon--20 { width: 20px; height: 20px; }
.brand__collapse { border: 0; box-shadow: var(--shadow-sm); }
@media (min-width: 1280px) {
:is(.portal.is-sidebar-collapsed, html.sidebar-collapsed .portal) {
  grid-template-columns: 64px minmax(0, 1fr);
  width: min(calc(100vw - 48px), 1480px);
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) {
  width: 64px;
  min-width: 64px;
  padding: 12px 8px;
  overflow: hidden;
  align-items: stretch;
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .brand {
  justify-content: center;
  padding-bottom: 12px;
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .brand__logo,
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .brand__text,
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .nav-item > span:not(.nav-leading),
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .nav-item__caret,
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .nav-badge,
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .sidebar__bottom > span {
  display: none !important;
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .subnav,
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .nav-group.is-open .subnav {
  display: none !important;
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar).has-flyout {
  overflow: visible;
  z-index: 40;
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar).has-flyout .main-nav {
  overflow: visible;
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .nav-group.is-flyout-open {
  z-index: 2;
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .nav-group.is-flyout-open .subnav {
  display: flex !important;
  position: absolute;
  top: 0;
  left: calc(100% + 8px);
  z-index: 90;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--grey);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .nav-group.is-flyout-open > .nav-item {
  background: var(--mirage-10);
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .nav-group.is-flyout-open .subnav a {
  white-space: nowrap;
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .nav-group {
  position: relative;
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .brand__collapse {
  margin: 0 auto;
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .main-nav {
  overflow: hidden;
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .nav-item {
  justify-content: center;
  gap: 0;
  padding: 8px;
  overflow: hidden;
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .nav-item > .icon {
  margin: 0;
  flex: none;
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .nav-leading {
  display: grid !important;
  margin: 0 auto;
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .nav-leading .icon {
  width: 16px;
  height: 16px;
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .sidebar__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
}
:is(.sidebar.is-collapsed, html.sidebar-collapsed .sidebar) .sidebar__bottom .nav-item {
  width: 100%;
}
}
.main-nav { flex: 1; min-height: 0; padding-top: 16px; overflow-y: auto; scrollbar-width: thin; }
.nav-group + .nav-group { margin-top: 2px; }
.nav-item {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  transition: background .2s ease;
}
.nav-item:hover { background: var(--mirage-10); }
.nav-item.is-active { background: var(--mirage-10); }
.nav-item > span:not(.nav-leading) { flex: 1; }
.nav-item > .icon:last-child,
.nav-item__caret { width: 20px; height: 20px; }
.nav-item__caret {
  margin-left: auto;
  transition: transform .2s ease;
  transform: rotate(0deg);
}
.nav-group.is-open > .nav-item .nav-item__caret {
  transform: rotate(180deg);
}
.nav-badge { padding: 4px 8px; border-radius: 4px; background: var(--black-haze); font-size: 12px; font-weight: 500; }
.subnav { display: none; margin-left: 17px; padding-left: 18px; border-left: 1px solid var(--grey); }
.nav-group.is-open .subnav { display: flex; flex-direction: column; }
.subnav a { min-height: 32px; padding: 8px; border-radius: 8px; }
.subnav a:hover, .subnav a.is-active { background: var(--mirage-10); }
.sidebar__bottom { padding-top: 16px; border-top: 1px solid var(--mirage-10); }
.sidebar__bottom > span { display: block; padding: 0 8px 8px; color: var(--fiord); font-size: 12px; }
.nav-leading {
  display: grid;
  width: 24px;
  height: 24px;
  flex: none;
  place-items: center;
  border: 1px solid var(--mirage-10);
  border-radius: 4px;
  background: var(--black-haze);
}
.nav-leading .icon { width: 16px; height: 16px; }
.sidebar-backdrop { display: none; }

.workspace { min-width: 0; }
.workspace:has(.home-cal__day:hover) { position: relative; z-index: 30; }
.topbar { display: flex; height: 48px; align-items: stretch; justify-content: space-between; margin-bottom: 24px; }
.mobile-menu { display: none; }
.global-search {
  display: flex;
  width: 380px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--grey);
  border-radius: 12px;
  background: var(--white);
  margin: 0;
}
.global-search input { width: 100%; min-width: 0; border: 0; background: transparent; font-size: 16px; outline: 0; }
.global-search input::placeholder { color: var(--fiord); }
.userbar { display: flex; width: 192px; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: var(--dodger-blue); color: var(--white); }
.userbar > a { display: flex; min-width: 0; flex: 1; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.userbar__name { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.userbar .avatar { flex: none; overflow: hidden; }
.userbar .icon { width: 16px; height: 16px; }
.userbar .icon:last-child { width: 20px; height: 20px; }
.gallery-nav { display: flex; gap: 4px; flex: none; }
.gallery-nav .icon-btn { padding: 4px; }
.gallery-nav .icon { width: 16px; height: 16px; }
.icon-btn.is-disabled, .icon-btn[disabled] { opacity: .32; cursor: default; }
.content { min-height: 640px; }
.footer { display: flex; justify-content: space-between; margin-top: 32px; padding: 10px 13px; color: var(--fiord); font-size: 12px; }
.footer a { color: var(--dodger-blue); }

.page-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 24px;
}
.page-heading .chip { display: inline-flex; align-items: center; }
.page-heading h1 { margin: 0; padding: 0; font-size: 24px; line-height: 1.15; font-weight: 600; }
.breadcrumbs { display: flex; min-height: 16px; align-items: center; gap: 6px; color: var(--fiord); font-size: 12px; }
.breadcrumbs a { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--mirage); }
.breadcrumbs .icon { opacity: .7; }
.panel { border-radius: var(--radius-md); background: var(--white); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--mirage-10); }
.panel__head--stack { align-items: stretch; flex-direction: column; gap: 16px; }
.panel__head h1, .panel__head h2 { font-size: 24px; }

label.btn { cursor: pointer; }
.btn {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background .2s ease, opacity .2s ease;
}
.btn--primary { min-height: 40px; padding: 8px 12px; background: var(--dodger-blue); color: var(--white); }
.btn--primary:hover { background: #2e5598; }
.btn--primary .icon { filter: brightness(0) invert(1); }
.btn--outline { min-height: 40px; padding: 8px 12px; border-color: var(--fiord); background: transparent; }
.btn--outline:hover { background: var(--mirage-10); }
.btn--ghost {
  gap: 2px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.btn--ghost:hover { background: var(--dodger-blue-16); }
.btn--sort { gap: 2px; padding: 4px 8px; border: 0; background: transparent; box-shadow: none; }
.btn--sort:hover { background: var(--dodger-blue-16); }
.btn--sm { min-height: 32px; gap: 2px; padding: 4px 8px; font-size: 12px; letter-spacing: .24px; }
.btn--sm > span { padding: 0 2px; }
.btn--sm.btn--primary, .btn--sm.btn--outline { min-height: 32px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .32; cursor: not-allowed; }
.btn__icon { font-size: 18px; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--mirage-10);
  border-radius: 8px;
  background: transparent;
  line-height: 24px;
}
.chip:hover { border-color: var(--fiord); }
a.chip { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.chip.is-active { border-color: var(--dodger-blue); background: var(--dodger-blue); color: var(--white); }
.list-header .chip {
  min-height: 40px;
  padding: 8px 12px;
}
.segmented {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--mirage-6);
}
.segmented__item {
  display: inline-flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.segmented__item > span {
  display: block;
  transform: translateY(1px);
  line-height: 1;
}
.segmented__item.is-active { background: var(--white); box-shadow: 0 1px 2px var(--mirage-10); }
.segmented--sm { border-radius: 8px; }
.segmented--sm .segmented__item {
  height: 24px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
.select-field {
  display: inline-flex;
  width: 220px;
  min-height: 40px;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--grey);
  border-radius: 8px;
  background: var(--white);
  color: var(--fiord);
  font-family: inherit;
  font-size: 14px;
  line-height: 24px;
  text-align: left;
  cursor: pointer;
}
.select-field__label {
  flex: 1;
  min-width: 0;
  padding: 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-field__count {
  display: inline-flex;
  height: 24px;
  flex: none;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  background: var(--mirage);
  color: var(--white);
  font-size: 14px;
  line-height: 16px;
  text-decoration: none;
}
.select-field__count b {
  display: grid;
  width: 16px;
  place-items: center;
  font-weight: 400;
}
.select-field__count .icon { width: 16px; height: 16px; }
.select-field > .icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-left: auto;
}
.select-field--lg { width: 248px; }
.select-field--fluid { width: 100%; }
.filter-dropdown { position: relative; }
.filter-dropdown > summary { list-style: none; cursor: pointer; }
.filter-dropdown > summary::-webkit-details-marker { display: none; }
.filter-dropdown[open] > summary.select-field > .icon,
.filter-dropdown[open] > summary.btn--sort > .icon { transform: rotate(180deg); }
.filter-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 50;
  width: max(100%, 320px);
  min-width: 320px;
  max-width: min(480px, calc(100vw - 80px));
  max-height: min(320px, 50vh);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--grey);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.filter-dropdown--sort .filter-dropdown__menu {
  width: auto;
  min-width: 180px;
  max-width: none;
}
.filter-dropdown__option {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--mirage);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.filter-dropdown__option:hover,
.filter-dropdown__option.is-active { background: var(--dodger-blue-16); color: var(--dodger-blue); }
.input-grid > input, .input-grid > select, .input-grid > textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--grey);
  border-radius: 8px;
  background: var(--white);
}
.pagination { display: flex; align-items: center; gap: 8px; margin-top: 24px; }
.pagination__page,
.pagination__ellipsis {
  flex: none;
  box-sizing: border-box;
}
.pagination__nav {
  box-sizing: border-box;
  display: inline-grid;
  width: 32px;
  height: 32px;
  min-width: 32px;
  place-items: center;
  border: 1px solid var(--fiord);
  border-radius: 8px;
  background: transparent;
  color: var(--fiord);
  cursor: pointer;
  flex: none;
  overflow: hidden;
  text-decoration: none;
}
.pagination__nav .icon {
  width: 16px;
  height: 16px;
  max-width: none;
  display: block;
}
.pagination__nav:disabled,
.pagination__nav.is-disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}
.pagination__page {
  min-width: 32px;
  height: 32px;
  padding: 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}
.pagination__page.is-active {
  background: var(--dodger-blue);
  color: var(--white);
}
.pagination__ellipsis {
  min-width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  text-align: center;
}
.badge { display: inline-flex; width: max-content; max-width: 100%; min-height: 24px; align-items: center; justify-content: center; padding: 4px 8px; border-radius: 4px; background: var(--black-haze); font-size: 12px; font-style: normal; font-weight: 500; line-height: 16px; white-space: nowrap; }
.badge--blue { background: var(--dodger-blue-16); color: var(--dodger-blue); }
.badge--red { background: var(--red-16); color: var(--red); }
.badge--green { background: var(--green-16); color: var(--green); }
.badge--neutral { background: var(--mirage-6); color: var(--fiord); }
.badge--tan { background: var(--tan-16); color: var(--tan); }
.status-icon { display: grid; width: 24px; height: 24px; flex: none; place-items: center; border-radius: 4px; overflow: hidden; }
.status-icon .icon { width: 16px; height: 16px; }
.status-icon--tan { background: var(--tan); }
.tag { display: inline-flex; padding: 4px 8px; border-radius: 4px; background: var(--white); box-shadow: 0 1px 4px var(--mirage-10); }
.avatar { position: relative; display: inline-block; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--grey); vertical-align: middle; }
.avatar img { width: 100%; height: 100%; border: 1px solid var(--mirage-10); border-radius: 50%; object-fit: cover; }
.avatar--xs { width: 24px; height: 24px; }
.avatar--sm { width: 32px; height: 32px; }
.avatar--md { width: 40px; height: 40px; }
.avatar--card { width: 48px; height: 48px; }
.avatar--xl { width: 112px; height: 112px; }
.avatar--card .avatar__badge {
  width: 16px;
  height: 16px;
  border-width: 4px;
}
.avatar__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--red);
  box-sizing: border-box;
}
.avatar__badge--green { background: var(--green); }
.avatar__badge--grey { background: var(--fiord); }
.avatar--sm .avatar__badge {
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-width: 3px;
}
.checkbox { position: relative; display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; }
.checkbox input { position: absolute; opacity: 0; }
.checkbox span, .fake-check { display: inline-block; width: 16px; height: 16px; border: 1px solid var(--fiord); border-radius: 4px; background: var(--white); }
.checkbox input:checked + span { border-color: var(--dodger-blue); background: var(--dodger-blue); background-image: url("../icons/check.17deeb885c0f.svg"); background-repeat: no-repeat; background-position: center; background-size: 12px 12px; }
.checkbox input:checked + span::after { display: none; }
.switch-label { display: flex; align-items: center; gap: 8px; margin: 0; }
.switch { position: relative; display: inline-flex; width: 28px; height: 16px; padding: 2px; align-items: center; border: 0; border-radius: 999px; background: var(--mirage-10); }
.switch i { width: 12px; height: 12px; border-radius: 50%; background: white; box-shadow: 0 2px 5px var(--mirage-50); transition: transform .2s ease; }
.switch.is-on { background: var(--dodger-blue); }
.switch.is-on i { transform: translateX(12px); }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 16px; align-items: start; }
.home-main,
.home-side { min-width: 0; }
.home-side { display: flex; flex-direction: column; gap: 16px; }
.home-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-flow: row dense;
  gap: 16px;
  align-items: start;
}
.home-main > .home-widget:not([data-span="half"]),
.home-main > .home-zone-empty { grid-column: 1 / -1; }
.home-main > .home-widget[data-span="half"][data-slot="left"] { grid-column: 1; }
.home-main > .home-widget[data-span="half"][data-slot="right"] { grid-column: 2; }
.home-main > .home-widget[data-span="half"]:not([data-slot]) { grid-column: auto; }
.home-widget,
.news-widget { min-width: 0; overflow: visible; }
.gallery-widget { min-width: 0; overflow: hidden; }
.home-widget,
.news-widget,
.gallery-widget {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px;
}
.news-list { display: flex; flex-direction: column; }
.news-list--compact { gap: 0; margin: 0; }
.news-card { display: flex; min-width: 0; gap: 16px; border-radius: 12px; background: var(--white); }
.news-card img { width: 228px; height: 128px; flex: none; border-radius: 8px; object-fit: cover; }
.news-card > div { min-width: 0; flex: 1; }
.news-card time { display: block; margin-bottom: 4px; color: var(--dodger-blue); font-size: 12px; }
.news-card h3 { margin: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.news-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--fiord); line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-list--compact .news-card {
  align-items: flex-start;
  padding: 8px 12px;
  margin: 0 -12px;
  transition: background .15s ease, box-shadow .15s ease;
}
.news-list--compact .news-card:hover {
  background: var(--mirage-6);
  box-shadow: 0 2px 8px rgba(15, 22, 46, .1);
}
.news-list--compact .news-card img { width: 152px; height: 86px; }
.gallery-widget { display: flex; flex-direction: column; gap: 16px; padding: 20px 16px; }
.gallery-strip { display: grid; grid-auto-columns: 162px; grid-auto-flow: column; gap: 8px; margin: 0; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.gallery-strip img { width: 162px; height: 122px; border-radius: 8px; object-fit: cover; }
.home-side { gap: 8px; }
.home-side .home-widget,
.home-side .news-widget,
.home-side .gallery-widget { padding: 16px; }
.home-side .panel__head h1,
.home-side .panel__head h2 { font-size: 18px; }
.home-side .news-list--compact { gap: 0; }
.home-side .news-list--compact .news-card { gap: 10px; }
.home-side .news-list--compact .news-card img { width: 72px; height: 72px; }
.home-side .news-card h3 { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-side .news-card p { display: none; }
.home-side .gallery-strip { grid-auto-columns: 120px; }
.home-side .gallery-strip img { width: 120px; height: 90px; }
.home-side .status-card .status-card__text { min-width: 0; }
.home-side .status-card em { flex: none; white-space: nowrap; }
.home-main .status-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  justify-content: start;
  gap: 16px;
}
.home-main .status-card > .status-card__body {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.home-main .status-card .status-card__text {
  min-width: 0;
  flex: 1 1 auto;
}
.home-main .status-card em {
  flex: none;
  white-space: nowrap;
}
.status-list--docs .status-card { align-items: center; }
.status-list--docs .status-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.home-main .home-cal,
.home-main .weather-widget {
  max-width: 296px;
}
.home-main .home-cal + .btn {
  max-width: 296px;
}
.home-main > .home-widget[data-span="half"] .home-cal,
.home-main > .home-widget[data-span="half"] .weather-widget,
.home-main > .home-widget[data-span="half"] .home-cal + .btn {
  max-width: none;
}
.home-main > .home-widget[data-span="half"] .status-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.side-widget { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.side-widget .btn { min-height: 32px; padding: 4px 10px; font-size: 12px; letter-spacing: .24px; }
.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mirage-10);
}
.widget-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.widget-title h2 { margin: 0; font-size: 18px; line-height: 1; }
.widget-icon { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 8px; overflow: hidden; }
.widget-icon .icon { width: 20px; height: 20px; }
.widget-icon--orange { background: var(--tan); }
.widget-icon--red { background: var(--red); }
.widget-icon--green { background: var(--green); }
.widget-icon--green .icon { filter: brightness(0) invert(1); }
.status-list { display: flex; flex-direction: column; gap: 0; margin: 0; }
.status-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  transition: background .15s ease, box-shadow .15s ease;
}
.status-card:hover {
  background: var(--mirage-6);
  box-shadow: 0 2px 8px rgba(15, 22, 46, .1);
}
.status-card > .status-card__body {
  display: flex; min-width: 0; flex: 1; flex-wrap: wrap; align-items: flex-start; gap: 4px;
}
.status-card strong { display: block; font-weight: 500; line-height: 16px; }
.status-card small { display: block; overflow: hidden; color: rgba(15, 22, 46, .5); font-size: 12px; line-height: 14px; text-overflow: ellipsis; white-space: nowrap; }
.status-card .status-card__text { display: flex; min-width: 164px; flex: 1; flex-direction: column; gap: 4px; }
.status-card__reason { color: var(--dodger-blue); font-size: 12px; line-height: 14px; }
.status-card em { padding: 4px 8px; border-radius: 4px; background: rgba(56, 99, 172, .16); color: var(--dodger-blue); font-size: 12px; font-style: normal; font-weight: 500; line-height: 16px; }
.status-card--stacked em { align-self: flex-start; width: max-content; }
.status-card--parental em { background: var(--green-16); color: var(--green); }
.status-card--parental .status-card__reason { color: var(--green); }
.status-card--sick em { background: var(--red-16); color: var(--red); }
.status-card--sick .status-card__reason { color: var(--red); }
.status-card--trip em { background: var(--tan-16); color: var(--tan); }
.status-card--trip .status-card__reason { color: var(--tan); }
a.news-card { color: inherit; text-decoration: none; }
.home-edit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.home-edit-bar span { color: var(--fiord); font-size: 13px; }
.home-edit-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.home-catalog {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.home-catalog__label { color: var(--fiord); font-size: 13px; margin-right: 4px; }
.home-grid.is-editing .home-main,
.home-grid.is-editing .home-side {
  position: relative;
  min-height: 180px;
  padding: 8px;
  border: 1px dashed var(--grey);
  border-radius: 12px;
}
.home-grid.is-editing .home-main.is-drop,
.home-grid.is-editing .home-side.is-drop { background: var(--dodger-blue-16); }
.home-grid.is-editing .home-main.is-drop-left::before,
.home-grid.is-editing .home-main.is-drop-right::before,
.home-grid.is-editing .home-main.is-drop-full::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  z-index: 3;
  border: 2px solid var(--dodger-blue);
  border-radius: 12px;
  background: rgba(56, 99, 172, .08);
  pointer-events: none;
}
.home-grid.is-editing .home-main.is-drop-left::before { left: 8px; width: calc(50% - 12px); }
.home-grid.is-editing .home-main.is-drop-right::before { right: 8px; width: calc(50% - 12px); }
.home-grid.is-editing .home-main.is-drop-full::before { left: 8px; right: 8px; }
.home-zone-empty { margin: 24px 8px; color: var(--fiord); text-align: center; }
.home-grid.is-editing .home-widget {
  position: relative;
  cursor: grab;
  overflow: visible;
}
.home-grid.is-editing .home-widget a,
.home-grid.is-editing .home-widget button:not(.home-widget__remove):not([data-widget-configure]) {
  pointer-events: none;
}
.home-widget__remove {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 5;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--grey);
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.home-widget__remove:hover { background: #fdecea; border-color: #f5c2c0; }
.home-widget__remove .icon { width: 14px; height: 14px; }
.home-widget.is-dragging { opacity: .45; cursor: grabbing; }
.weather-widget { display: flex; flex-direction: column; gap: 4px; }
.weather-widget__city { margin: 0; color: var(--fiord); font-size: 13px; }
.weather-widget__temp { margin: 0; font-size: 40px; font-weight: 600; line-height: 1; }
.weather-widget__label,
.weather-widget__range { margin: 0; color: var(--fiord); font-size: 13px; }
.home-cal {
  padding: 0;
}
.home-cal__nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.home-cal__weekdays,
.home-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.home-cal__weekdays { margin-bottom: 4px; }
.home-cal__weekdays span { text-align: center; color: var(--fiord); font-size: 11px; }
.home-cal__grid { overflow: visible; }
.home-cal__day {
  position: relative;
  z-index: 0;
  display: flex;
  min-height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px 6px;
  border-radius: 8px;
  color: inherit;
  font-size: 12px;
  text-decoration: none;
  cursor: default;
  transition: box-shadow .15s ease, background .15s ease;
}
a.home-cal__day { cursor: pointer; }
.home-cal__day.is-outside { color: var(--mirage-50); }
.home-cal__day.is-today {
  z-index: 1;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--dodger-blue), 0 2px 8px rgba(15, 22, 46, .12);
}
.home-cal__day:hover {
  z-index: 2;
  background: var(--white);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--dodger-blue), 0 3px 10px rgba(15, 22, 46, .14);
}
.home-cal__marks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 5px;
}
.home-cal__mark {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.home-cal__mark--tan { background: var(--tan); }
.home-cal__mark--blue { background: var(--dodger-blue); }
.home-cal__mark--green { background: var(--green); }
.home-cal__tip {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 8;
  width: max-content;
  max-width: 220px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--mirage);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: normal;
  text-align: left;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
}
.home-cal__grid > .home-cal__day:nth-child(7n) .home-cal__tip {
  left: auto;
  right: 0;
}
.home-cal__day:hover .home-cal__tip,
.home-cal__day:focus-visible .home-cal__tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.home-cal__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 0; color: var(--fiord); font-size: 12px; }
.home-cal__note { margin: 8px 0 0; color: var(--fiord); font-size: 11px; line-height: 1.35; }
.home-cal + .btn { margin-top: 0; }
.home-cal__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.home-cal__dot--tan { background: var(--tan); }
.home-cal__dot--blue { background: var(--dodger-blue); }
.home-cal__dot--green { background: var(--green); }
.side-widget__empty { margin: 0; color: var(--fiord); font-size: 13px; line-height: 1.35; }
.note-widget { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.note-widget .django-ckeditor-widget,
.note-widget .cke { width: 100% !important; }
.note-widget .cke_chrome { border-radius: 8px !important; }
.note-widget .cke_top { white-space: normal !important; }
.note-widget__status { margin: 0; color: var(--fiord); font-size: 12px; line-height: 1.35; }
.note-widget__preview { color: var(--mirage); font-size: 14px; line-height: 1.4; }
.note-widget__preview p,
.note-widget__preview ul,
.note-widget__preview ol { margin: 0 0 8px; }
.note-widget__preview ul,
.note-widget__preview ol { padding-left: 18px; }
.note-widget__preview a { color: var(--dodger-blue); text-decoration: underline; }

.my-app-widget__topbar { margin-bottom: 12px; }
.my-app-widget__frame {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 8px;
  background: var(--mirage-6);
}
.todo-widget { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.todo-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  margin: 0 -12px;
  border-radius: 10px;
}
.todo-item:hover { background: var(--mirage-6); }
.todo-item__label {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.todo-item__label input { margin-top: 2px; flex: none; }
.todo-item__text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.todo-item__title { min-width: 0; line-height: 18px; word-break: break-word; }
.todo-item.is-done .todo-item__title {
  color: var(--fiord);
  text-decoration: line-through;
}
.todo-item__time { color: var(--fiord); font-size: 11px; line-height: 14px; }
.todo-item__delete {
  display: grid;
  width: 24px;
  height: 24px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  opacity: .45;
}
.todo-item__delete:hover { background: var(--mirage-10); opacity: 1; }
.todo-widget__add { display: flex; gap: 8px; }
.todo-widget__add input {
  min-width: 0;
  flex: 1;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--grey);
  border-radius: 8px;
  background: var(--white);
}
.todo-widget__setting {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--fiord);
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}
.todo-widget__setting input { margin-top: 2px; flex: none; }
.favorites-picker { width: min(480px, 100%); }
.favorites-picker__search { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--grey); border-radius: 8px; }
.favorites-picker__list { max-height: 320px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.favorites-picker__item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.favorites-picker__item:hover { background: var(--mirage-6); }
.favorites-picker__item.is-hidden { display: none; }

.toolbar, .list-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.toolbar--documents { align-items: flex-start; }
.toolbar--documents .toolbar__actions:nth-child(2) { margin-left: auto; }
.toolbar__filters, .toolbar__actions, .toolbar__sub, .list-header > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar__sub { width: 100%; justify-content: space-between; }
.toolbar__sub-left { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; min-width: 0; }
.toolbar__sub-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.toolbar__exports { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: auto; }
.view-toggle {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--mirage-6);
}
.view-button { display: grid; width: 40px; height: 32px; place-items: center; border-radius: 8px; }
.view-button.is-active, .view-button:hover { background: var(--white); box-shadow: 0 1px 5px var(--mirage-10); }
.check-label { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 16px; cursor: pointer; }
.check-label .checkbox { flex: none; }
.toolbar__in-office-form { display: contents; }
.path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; color: var(--mirage); font-size: 12px; letter-spacing: .24px; }
.path__back { gap: 2px; min-height: 32px; padding: 4px 2px; border: 0; background: transparent; box-shadow: none; text-decoration: none; color: inherit; }
.path__back:hover { background: var(--mirage-6); }
.path__back.is-disabled { opacity: .35; pointer-events: none; }
.path__crumbs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.path__crumbs span,
.path__crumbs a { white-space: nowrap; color: inherit; text-decoration: none; }
.path__crumbs a:hover { color: var(--dodger-blue); }
.employee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.employee-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px; border-radius: 8px; background: var(--white);
  color: inherit; text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.employee-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.employee-card__head { display: flex; align-items: flex-start; justify-content: space-between; width: 100%; }
.employee-card__status,
.employee-table__status { display: flex; gap: 2px; align-items: center; flex: none; }
.employee-card__content { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.employee-card__main { display: flex; flex-direction: column; gap: 4px; }
.employee-card__main h3 { margin: 0; font-size: 16px; line-height: 18px; font-weight: 500; }
.employee-card__main p { margin: 0; color: rgba(15, 22, 46, .5); font-size: 12px; line-height: 14px; }
.employee-card__main .eyebrow { font-size: 12px; line-height: 14px; }
.employee-card h3 { margin: 0; font-size: 16px; line-height: 18px; font-weight: 500; }
.employee-card p { margin: 0; color: rgba(15, 22, 46, .5); font-size: 12px; line-height: 14px; }
.employee-card .eyebrow { font-size: 12px; line-height: 14px; }
.employee-card dl { display: flex; flex-direction: column; gap: 0; margin: 0; text-align: left; font-size: 12px; line-height: 14px; }
.employee-card dl div { display: flex; flex-wrap: wrap; gap: 2px 4px; align-items: center; padding: 2px 0; }
.employee-card dt { color: var(--mirage); line-height: 14px; }
.employee-card dd { margin: 0; color: var(--fiord); line-height: 14px; overflow: hidden; text-overflow: ellipsis; }
.employee-card__actions { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; flex-shrink: 0; }
.employee-card__actions .btn { flex: 1 1 124px; gap: 2px; }
.employee-card__actions .btn > span { padding: 0 2px; }
.toolbar__exports .btn { gap: 2px; }
.toolbar__exports .btn > span { padding: 0 2px; }
.eyebrow { color: var(--dodger-blue); }
.table-scroll { width: 100%; overflow-x: auto; border-radius: 12px; }
.data-table { width: 100%; min-width: 920px; border-collapse: separate; border-spacing: 0 4px; font-size: 12px; }
.data-table th {
  height: 40px;
  padding: 8px 12px;
  color: var(--mirage);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}
.data-table th .th-sort {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 24px;
}
.data-table th .icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}
.data-table td { height: 56px; padding: 8px 12px; background: var(--white); color: var(--fiord); white-space: nowrap; }
.data-table td:first-child { border-radius: 8px 0 0 8px; color: var(--mirage); }
.data-table td:last-child { border-radius: 0 8px 8px 0; }
.data-table tr.is-selected td { background: var(--dodger-blue-16); }
.employee-table {
  width: 100%;
  min-width: 1210px;
  table-layout: fixed;
}
.employee-table th,
.employee-table td { padding: 8px 12px; }
.employee-table th:nth-child(1),
.employee-table td:nth-child(1) { width: 176px; }
.employee-table th:nth-child(2),
.employee-table td:nth-child(2) { width: 280px; }
.employee-table th:nth-child(3),
.employee-table td:nth-child(3) { width: 220px; }
.employee-table th:nth-child(4),
.employee-table td:nth-child(4),
.employee-table th:nth-child(5),
.employee-table td:nth-child(5) { width: 124px; }
.employee-table th:nth-child(6),
.employee-table td:nth-child(6) { width: 92px; }
.employee-table th:nth-child(7),
.employee-table td:nth-child(7) { width: 100px; }
.employee-table th:nth-child(8),
.employee-table td:nth-child(8) {
  width: 92px;
  padding-left: 8px;
  padding-right: 8px;
}
.employee-table .person-cell { max-width: 100%; min-width: 0; overflow: hidden; }
.employee-table .person-cell strong {
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.employee-table td:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
}
.employee-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: none;
  width: max-content;
  min-width: 68px;
}
.employee-table .table-actions .icon-btn { flex: none; }
.person-cell { display: inline-flex; align-items: center; gap: 6px; color: var(--mirage); font-weight: 500; }
.document-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.document-table th,
.document-table td { padding: 8px; }
.document-table th:nth-child(1),
.document-table td:nth-child(1) { width: auto; }
.document-table th:nth-child(2),
.document-table td:nth-child(2) { width: 128px; }
.document-table th:nth-child(3),
.document-table td:nth-child(3) { width: 128px; }
.document-table th:nth-child(4),
.document-table td:nth-child(4) { width: 72px; }
.document-table th:nth-child(5),
.document-table td:nth-child(5) { width: 154px; }
.document-table .doc-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.document-table th .th-sort { gap: 8px; }
.document-table th .th-sort__label {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.document-table .doc-name a,
.document-table .doc-name strong {
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}
.document-table .doc-name a:hover { color: var(--dodger-blue); }
.document-table .person-cell {
  max-width: 100%;
  overflow: hidden;
}
.document-table .person-cell .avatar { flex: none; }
.document-table td:nth-child(5) {
  overflow: hidden;
  text-overflow: ellipsis;
}
.kebab {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}
.kebab .icon { width: 20px; height: 20px; }
.file-icon {
  display: inline-grid; width: 40px; height: 40px; flex: none; place-items: center;
  border-radius: 8px; background: var(--dodger-blue-16);
}
.file-icon .icon { width: 20px; height: 20px; }
.file-icon--sm { width: 32px; height: 32px; }
.file-icon--sm .icon { width: 16px; height: 16px; }
.file-icon--pdf,
.file-icon--doc,
.file-icon--file { background: var(--mirage-6); }
.contact-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--dodger-blue);
  font-size: 14px;
  line-height: 16px;
  text-decoration: none;
}
.contact-card__link-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: none;
  place-items: center;
  border-radius: 6px;
  background: var(--dodger-blue);
}
.contact-card__link-icon .icon { width: 12px; height: 12px; }
.info-list__pin { display: inline-flex; align-items: center; gap: 6px; }
.document-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.document-empty { margin: 24px 0; color: var(--fiord); text-align: center; }
.document-card {
  position: relative;
  display: flex;
  min-height: 126px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px 12px;
  border-radius: 10px;
  background: var(--white);
  text-align: center;
  box-shadow: 0 1px 4px var(--mirage-10);
  transition: background .15s ease, box-shadow .15s ease;
}
.document-card:hover,
.document-card.is-selected {
  background: var(--mirage-6);
  box-shadow: 0 2px 8px rgba(15, 22, 46, .1);
}
.document-card .checkbox { position: absolute; top: 12px; left: 12px; z-index: 2; }
.document-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.document-card h3 { margin: 0; font-size: 12px; line-height: 14px; font-weight: 500; }
.document-card p { margin: 0; color: var(--fiord); font-size: 12px; line-height: 14px; }
.request-toolbar { margin-bottom: 8px; }
.request-table-wrap { margin-top: 16px; }
.request-table { min-width: 1126px; }
.request-table th:nth-child(1),
.request-table td:nth-child(1) { width: 54px; }
.request-table td:nth-child(2) { max-width: 260px; white-space: normal; font-weight: 500; color: var(--mirage); }
.request-table .person-cell { width: 154px; }

.schedule-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.schedule-toolbar > div { display: flex; gap: 8px; align-items: center; }
.period-picker { position: relative; }
.period-picker.is-open > [data-period-toggle] { background: var(--dodger-blue-16); }
.period-picker__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
  width: 288px;
  padding: 12px;
  border: 1px solid var(--grey);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.period-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.period-picker__head strong {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
}
.period-picker__weekdays,
.period-picker__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.period-picker__weekdays span {
  height: 24px;
  color: var(--fiord);
  font-size: 12px;
  line-height: 24px;
  text-align: center;
}
.period-picker__day {
  display: grid;
  width: 100%;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--mirage);
  font: inherit;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
}
.period-picker__day:hover { background: var(--dodger-blue-16); }
.period-picker__day.is-outside { color: var(--mirage-50); }
.period-picker__day.is-today { box-shadow: inset 0 0 0 1px var(--dodger-blue); }
.period-picker__day.is-in-range { background: var(--dodger-blue-16); }
.period-picker__day.is-start,
.period-picker__day.is-end {
  background: var(--dodger-blue);
  color: var(--white);
  border-radius: 4px;
}
.period-picker__day.is-start.is-in-range { border-radius: 4px 0 0 4px; }
.period-picker__day.is-end.is-in-range { border-radius: 0 4px 4px 0; }
.period-picker__day.is-start.is-end { border-radius: 4px; }
.period-picker__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--mirage-10);
}
.period-picker__footer span {
  min-width: 0;
  color: var(--fiord);
  font-size: 12px;
  line-height: 16px;
}
.schedule { padding: 16px; }
.schedule__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mirage-10);
}
.schedule__nav { display: flex; align-items: center; gap: 4px; }
.schedule__nav .icon-btn { padding: 4px; }
.schedule__range {
  display: inline-flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border: 1px solid #bcc0cf;
  border-radius: 8px;
  color: var(--mirage);
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
}
.schedule__grid {
  display: grid;
  grid-template-columns: 160px minmax(600px, 1fr);
  gap: 0;
  overflow-x: auto;
}
.schedule__people {
  display: grid;
  grid-template-rows: 40px repeat(var(--rows, 0), 40px);
}
.schedule__people > strong {
  display: flex;
  align-items: center;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}
.schedule__people > a,
.schedule__people > span {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.schedule__people > a:hover { color: var(--dodger-blue); }
.schedule__empty-person { color: var(--fiord); font-weight: 400; }
.schedule__chart { min-width: calc(var(--cols, 7) * 72px); }
.timeline__days {
  display: grid;
  grid-template-columns: repeat(var(--cols, 7), 1fr);
  height: 40px;
  align-items: center;
  padding: 8px 0;
}
.timeline__days span {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 4px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}
.timeline__days .is-today { background: var(--dodger-blue); color: var(--white); }
.timeline {
  background: var(--black-haze);
  border: 1px solid var(--grey);
}
.timeline__row {
  position: relative;
  height: 40px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(100% / var(--cols, 7) - 1px),
    var(--grey) calc(100% / var(--cols, 7) - 1px),
    var(--grey) calc(100% / var(--cols, 7))
  );
  border-top: 1px solid var(--grey);
}
.timeline__row:first-child { border-top: 0; }
.schedule__empty { margin: 0; padding: 16px; color: var(--fiord); }
.absence-bar {
  position: absolute;
  top: 4px;
  display: inline-flex;
  height: 32px;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid var(--dodger-blue);
  border-radius: 4px;
  background: #dfe6f2;
  white-space: nowrap;
}
.absence-bar--annual { border-color: var(--dodger-blue); background: #dfe6f2; }
.absence-bar--parental { border-color: #4ab590; background: #e2f3ed; }
.absence-bar--sick { border-color: var(--red); background: #f8e4e3; }
.absence-bar--trip { border-color: #ec934b; background: #fbe9d8; }
.absence-bar__label {
  color: var(--mirage);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.absence-bar__dates {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--dodger-blue-16);
  color: var(--dodger-blue);
  font-size: 10px;
  font-weight: 500;
  line-height: 12px;
}
.absence-bar--parental .absence-bar__dates {
  background: rgba(74, 181, 144, 0.16);
  color: #4ab590;
}
.absence-bar--sick .absence-bar__dates {
  background: var(--red-16);
  color: var(--red);
}
.absence-bar--trip .absence-bar__dates {
  background: rgba(236, 147, 75, 0.16);
  color: #ec934b;
}

.news-list--full { gap: 8px; }
.news-list--full .news-card { min-height: 160px; padding: 16px; }
.news-list--full .news-card img { width: 228px; height: 128px; }
.news-list--full .news-card h3 { margin-top: 5px; font-size: 16px; }
.news-list--full .news-card p { -webkit-line-clamp: 3; }
.news-article { max-width: none; }
.news-article::after {
  content: "";
  display: block;
  clear: both;
}
.news-article__date {
  display: block;
  margin-bottom: 16px;
  color: var(--dodger-blue);
  font-size: 12px;
}
.news-article__cover {
  float: left;
  width: 240px;
  height: 148px;
  margin: 4px 24px 12px 0;
  border-radius: 8px;
  object-fit: cover;
}
.news-article__body { color: var(--fiord); font-size: 16px; line-height: 1.55; }
.news-article__body p { margin: 0 0 12px; }
.news-article__body img,
.news-article__photos img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 8px;
}
.news-article__photos { display: grid; gap: 12px; margin-top: 16px; clear: both; }
.news-article__back { margin-top: 24px; }

.album + .album { margin-top: 24px; }
.album { display: flex; flex-direction: column; gap: 16px; }
.album__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin: 0; }
.album__meta { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.album__head time { color: var(--dodger-blue); font-size: 14px; line-height: 16px; }
.album__title { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.album__title h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 24px; }
.album__title h2 a { color: inherit; text-decoration: none; }
.album__title h2 a:hover { color: var(--dodger-blue); }
.album__title .badge {
  background: var(--mirage-6);
  color: var(--mirage);
}
.album__actions { display: flex; gap: 4px; align-items: center; flex: none; }
.photo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.photo-grid__item {
  display: block; width: 100%; padding: 0; border: 0; border-radius: 8px;
  background: var(--black-haze); cursor: pointer; overflow: hidden;
}
.photo-grid__item:focus-visible { outline: 2px solid var(--dodger-blue); outline-offset: 2px; }
.photo-grid img,
.photo-grid__item img {
  width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 8px;
  background: var(--black-haze); object-fit: cover; display: block;
}
.show-more {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 4px; width: 100%; min-height: 100%; aspect-ratio: 4 / 3; padding: 16px;
  border: 0; border-radius: 8px; background: var(--white); color: var(--mirage); cursor: pointer;
  text-decoration: none; box-shadow: inset 0 0 0 1px var(--mirage-10);
}
.show-more .icon { width: 20px; height: 20px; }
.show-more span {
  width: 100%; font-size: 14px; font-weight: 600; line-height: 16px;
  letter-spacing: 0.02em; text-align: center;
}

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__backdrop {
  position: absolute; inset: 0; border: 0; background: rgba(15, 22, 46, .84); cursor: zoom-out;
}
.lightbox__panel {
  position: relative; z-index: 1; display: flex; width: min(1200px, 100%); max-height: calc(100vh - 48px);
  align-items: center; justify-content: center; pointer-events: none;
}
.lightbox__image {
  max-width: 100%; max-height: calc(100vh - 48px); border-radius: 8px; object-fit: contain;
  box-shadow: 0 16px 50px rgba(15, 22, 46, .32); pointer-events: auto;
}
.lightbox__close,
.lightbox__nav {
  position: absolute; z-index: 2; display: inline-grid; width: 40px; height: 40px; place-items: center;
  border: 0; border-radius: 8px; background: rgba(255, 255, 255, .92); color: var(--mirage); cursor: pointer;
  pointer-events: auto;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav:disabled { opacity: .35; cursor: default; }
.lightbox__counter {
  position: absolute; left: 50%; bottom: 16px; z-index: 2; transform: translateX(-50%);
  padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92);
  font-size: 14px; line-height: 20px; pointer-events: none;
}
.page-heading .breadcrumbs a { color: inherit; text-decoration: none; }
.page-heading .breadcrumbs a:hover { color: var(--mirage); }
.album--detail .album__head { margin-bottom: 0; }

.view-tabs {
  display: inline-flex; align-self: flex-start; gap: 4px; margin-bottom: 16px;
  padding: 4px; border-radius: 12px; background: var(--mirage-6); width: max-content;
}
.view-tabs a {
  display: inline-flex; align-items: center; gap: 4px; min-height: 32px;
  padding: 4px 8px; border-radius: 8px; color: var(--mirage); font-size: 14px; font-weight: 500; line-height: 24px;
}
.view-tabs a.is-active { background: white; box-shadow: 0 1px 3px var(--mirage-10); }

.badge--xs { min-height: 16px; padding: 2px 4px; font-size: 10px; line-height: 12px; }

.org-chart { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-chart__root { position: relative; z-index: 1; width: 296px; }
.org-branch {
  --org-cols: 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}
.org-connectors {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(var(--org-cols), minmax(0, 1fr));
  width: 100%;
  height: 40px;
  margin: 8px 0 16px;
}
.org-connectors::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 20px;
  margin-left: -2px;
  border-radius: 2px;
  background: #dadee3;
}
.org-connectors[data-count="1"]::before { height: 100%; }
.org-connectors__bar {
  position: absolute;
  top: 18px;
  left: calc(100% / var(--org-cols) / 2);
  right: calc(100% / var(--org-cols) / 2);
  height: 4px;
  border-radius: 2px;
  background: #dadee3;
}
.org-connectors__leg { position: relative; min-width: 0; }
.org-connectors__leg::after {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: #dadee3;
}
.org-connectors[data-count="1"] .org-connectors__leg::after { display: none; }
.org-columns {
  position: relative; display: grid; width: 100%;
  grid-template-columns: repeat(var(--org-cols, 3), minmax(296px, 1fr)); gap: 16px;
}
.org-columns--modal { justify-content: start; }
.org-column { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.org-column__title {
  display: flex; align-items: center; min-height: 40px; margin: 0; padding: 4px 12px;
  border: 1px solid var(--dodger-blue); border-radius: 8px; background: var(--dodger-blue-16);
  color: var(--dodger-blue); font-size: 16px; font-weight: 500; line-height: 24px;
}

.org-card { position: relative; display: flex; width: 100%; flex-direction: column; padding: 0; border: 0; background: transparent; text-align: left; }
.org-card__main {
  display: flex; width: 100%; flex-direction: column; gap: 12px;
  padding: 12px 12px 16px; border: 1px solid var(--fiord); border-radius: 12px; background: var(--black-haze);
}
.org-card__title {
  position: relative;
  display: flex; align-items: center; min-height: 40px; padding: 4px 12px;
  border-radius: 8px; background: var(--mirage-10); overflow: visible;
  cursor: default;
}
.org-card__title span {
  min-width: 0; flex: 1;
  overflow: hidden; color: var(--mirage); font-size: 16px; font-weight: 500; line-height: 24px;
  text-overflow: ellipsis; white-space: nowrap;
}
.org-card__title--blue { background: var(--dodger-blue); }
.org-card__title--blue span { color: var(--white); }
.org-card [data-tooltip] { position: relative; }
.org-card [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 6;
  width: max-content;
  max-width: 280px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--mirage);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: normal;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
}
.org-card [data-tooltip]:hover::after,
.org-card [data-tooltip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.org-person {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  width: 100%; padding: 8px; border-radius: 8px; background: var(--white);
}
.org-person__text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.org-person__text strong { font-size: 12px; font-weight: 500; line-height: 14px; color: var(--mirage); }
.org-person__text span {
  overflow: hidden; color: var(--mirage-50); font-size: 10px; line-height: 12px;
  text-overflow: ellipsis; white-space: nowrap;
}
.org-person__text [data-tooltip] {
  overflow: visible;
  display: block;
  min-width: 0;
}
.org-person__text [data-tooltip] > span {
  display: block;
}
.org-card__staff { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.org-card__staff-head { display: flex; gap: 3px; align-items: center; }
.org-card__staff-head > span:first-child { color: var(--dodger-blue); font-size: 12px; font-weight: 500; line-height: 14px; }
.org-card__avatars { display: flex; align-items: center; }
.org-card__avatar { margin-right: -6px; border: 1px solid var(--white); }
.org-card__avatar:last-child { margin-right: 0; }
.org-card__list { margin: 0; padding: 0 0 0 18px; color: var(--fiord); font-size: 14px; line-height: 22px; }
.org-card__staff-count { color: var(--dodger-blue); font-size: 12px; font-weight: 500; }
.org-card__bottom { position: relative; height: 16px; width: 100%; }
.org-card__bottom::before,
.org-card__bottom::after {
  position: absolute; left: 12px; right: 12px; height: 8px;
  border: 1px solid var(--fiord); border-top: 0; border-radius: 0 0 8px 8px; content: "";
}
.org-card__bottom::before { top: 0; }
.org-card__bottom::after { top: 8px; left: 26px; right: 26px; }
.org-card__subunits {
  position: absolute; top: 50%; left: 50%; z-index: 1; display: inline-flex; gap: 2px;
  align-items: center; justify-content: center; min-height: 32px; padding: 4px 8px;
  border: 1px solid var(--fiord); border-radius: 8px; background: var(--black-haze);
  color: var(--mirage); font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  transform: translate(-50%, -50%); white-space: nowrap; cursor: pointer;
}
.org-card__subunits .icon { width: 20px; height: 20px; }
.org-card:hover { z-index: 3; }
.org-card:hover .org-card__main { box-shadow: var(--shadow-sm); }

.structure-tree { position: relative; width: 100%; }
.structure-tree__root {
  display: flex; align-items: center; width: 296px; min-height: 40px; margin-bottom: 8px;
  padding: 4px 12px; border-radius: 8px; background: var(--dodger-blue);
  color: var(--white); font-size: 16px; font-weight: 500; line-height: 24px;
}
.structure-tree__body {
  position: relative; display: flex; flex-direction: column; gap: 0; padding: 0 0 0 46px;
}
.structure-tree__body::before {
  position: absolute; top: 0; bottom: 24px; left: 12px; width: 1px; background: var(--grey); content: "";
}
.structure-tree__branch { position: relative; margin: 0; padding: 16px 0 0; border: 0; }
.structure-tree__branch::before {
  position: absolute; top: 36px; left: -34px; width: 26px; height: 1px; background: var(--grey); content: "";
}
.structure-tree__category {
  display: flex; gap: 8px; align-items: center; min-height: 40px; padding: 4px 8px 4px 12px;
  border: 1px solid var(--dodger-blue); border-radius: 8px; background: var(--dodger-blue-16);
  color: var(--dodger-blue); font-size: 16px; font-weight: 500; line-height: 24px; cursor: pointer; list-style: none;
}
.structure-tree__category::-webkit-details-marker { display: none; }
.structure-tree__category > span:first-child { flex: 1; }
.structure-tree__toggle {
  display: grid; width: 24px; height: 24px; flex: none; place-items: center;
  border-radius: 6px; background: var(--white);
}
.structure-tree__icon { grid-area: 1 / 1; }
.structure-tree__icon--plus { display: none; }
.structure-tree__branch:not([open]) .structure-tree__icon--minus { display: none; }
.structure-tree__branch:not([open]) .structure-tree__icon--plus { display: block; }
.structure-tree__nodes { display: flex; flex-direction: column; padding-left: 24px; }
.structure-tree__item {
  padding: 4px 0; color: var(--mirage); font-size: 14px; font-weight: 500; line-height: 24px;
}
.structure-tree__leaves { margin: 0; padding: 0 0 0 24px; list-style: none; }
.structure-tree__leaves li {
  display: flex; gap: 12px; align-items: flex-start; padding: 4px 0;
  color: var(--fiord); font-size: 14px; font-weight: 400; line-height: 24px;
}
.structure-tree__leaves i {
  display: block; width: 6px; height: 6px; flex: none; margin-top: 10px;
  border-radius: 2px; background: var(--fiord);
}

.tree { padding-left: 0; }
.tree > h2 { width: 296px; padding: 10px 12px; border-radius: 8px; background: var(--dodger-blue); color: white; }
.tree details { margin: 8px 0 8px 12px; padding-left: 18px; border-left: 4px solid var(--grey); }
.tree summary { padding: 9px 12px; border: 1px solid var(--dodger-blue); border-radius: 8px; background: #dbe4f1; color: var(--dodger-blue); font-size: 16px; cursor: pointer; }
.tree ul { margin: 0; padding: 0 0 0 30px; list-style: none; }
.tree li { padding-top: 8px; }
.tree li li { color: var(--fiord); list-style: square; }
.tree__item { padding: 0; border: 0; background: transparent; font-weight: 500; text-align: left; }

.contacts-section + .contacts-section { margin-top: 24px; }
.contacts-section > h2 { margin-bottom: 16px; color: var(--dodger-blue); font-size: 18px; line-height: 24px; font-weight: 500; }
.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { display: flex; min-height: 310px; flex-direction: column; gap: 16px; padding: 16px; border-radius: 8px; background: white; }
.contact-card h3 { margin: 0; min-height: 36px; font-size: 16px; line-height: 18px; font-weight: 500; }
.contact-card dl { display: flex; flex: 1; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; line-height: 14px; }
.contact-card dt { margin: 0; padding-top: 2px; font-weight: 500; color: var(--mirage); }
.contact-card dd { margin: 0; padding-bottom: 2px; color: var(--fiord); }

.profile-layout { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.profile-card { position: sticky; top: 24px; display: flex; flex-direction: column; align-items: flex-start; padding: 16px; border-radius: 12px; background: white; }
.profile-card__photo { position: relative; display: flex; align-items: flex-start; justify-content: space-between; width: 100%; }
.profile-card__photo img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.profile-card__status { display: flex; gap: 2px; align-items: center; }
.profile-card .eyebrow { margin-top: 16px; }
.profile-card h1 { margin: 8px 0 4px; font-size: 18px; }
.profile-card > p { margin: 0 0 8px; color: var(--mirage-50); }
.profile-card > .badge { margin-bottom: 8px; }
.profile-card > .btn { width: 100%; margin-top: 4px; }
.profile-info { min-width: 0; }
.profile-info > .tab-panel { padding-top: 0; }
.profile-info > .tab-panel > h2:first-child { margin-top: 0; }
.profile-tabs {
  display: inline-flex; width: max-content; max-width: 100%; gap: 4px; padding: 4px;
  overflow-x: auto; border-radius: 12px; background: var(--mirage-6);
}
.profile-tabs button { min-height: 32px; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; white-space: nowrap; }
.profile-tabs button.is-active { background: white; }
.tab-panel { display: none; padding-top: 24px; }
.tab-panel.is-active { display: block; }
.tab-panel h2 { margin-bottom: 16px; }
.tab-panel h2:not(:first-child) { margin-top: 32px; }
.info-list { margin: 0; }
.info-list > div { display: grid; grid-template-columns: max-content 1fr; gap: 10px; min-height: 40px; align-items: center; border-top: 1px solid var(--mirage-10); }
.info-list dt { font-weight: 400; }
.info-list dd { min-width: 0; margin: 0; color: var(--fiord); }
.info-list a { color: var(--dodger-blue); text-decoration: underline; }
.info-list > div.info-list__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 0;
  padding: 8px 0;
}
.info-list__stack dt,
.info-list__stack dd { width: 100%; }
.info-list__person {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border-radius: 6px;
  background: var(--white);
  color: var(--fiord);
  text-decoration: none;
}
.info-list__person:hover { color: var(--mirage); }
.info-list__tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.info-list__path {
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}
.info-list__path a { flex: none; }
.tag--unit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 4px 6px;
  box-shadow: none;
  border: 1px solid var(--mirage-10);
}
.tag--unit .tag__label {
  max-width: 280px;
  overflow: hidden;
  color: var(--fiord);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vacation-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--dodger-blue-16);
}
.vacation-chip__label { color: var(--mirage); font-size: 14px; line-height: 16px; }
.vacation-chip__dates { color: var(--dodger-blue); font-size: 14px; font-weight: 500; line-height: 16px; }
.vacation-chip--parental { background: var(--green-16); }
.vacation-chip--parental .vacation-chip__dates { color: var(--green); }
.vacation-chip--sick { background: var(--red-16); }
.vacation-chip--sick .vacation-chip__dates { color: var(--red); }
.empty-state { min-height: 280px; padding: 64px 24px; border-radius: 12px; background: white; text-align: center; }

.search-page__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.global-search--page {
  flex: 1 1 320px;
  width: auto;
  max-width: none;
}
.search-page__summary {
  margin: 0 0 20px;
  color: var(--fiord);
  font-size: 14px;
}
.search-results {
  display: grid;
  gap: 20px;
}
.search-section {
  padding: 20px 24px;
  border-radius: 12px;
  background: white;
}
.search-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.search-section__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.search-section__head a {
  color: var(--dodger-blue);
  font-size: 14px;
  text-decoration: none;
}
.search-section__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.search-section__list li + li {
  border-top: 1px solid var(--athens-gray);
}
.search-hit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
}
.search-hit strong {
  font-size: 16px;
  font-weight: 500;
}
.search-hit span {
  color: var(--fiord);
  font-size: 14px;
}
.search-hit:hover strong {
  color: var(--dodger-blue);
}

.modal { position: fixed; z-index: 100; inset: 0; display: none; place-items: center; padding: 24px; }
.modal.is-open { display: grid; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 22, 46, .48); }
.modal__dialog { position: relative; z-index: 1; width: min(440px, 100%); max-height: calc(100vh - 48px); padding: 32px; overflow-y: auto; border-radius: 12px; background: white; box-shadow: 0 16px 50px rgba(15, 22, 46, .24); }
.modal__close {
  position: absolute; top: 12px; right: 12px; display: inline-grid; width: 20px; height: 20px;
  place-items: center; border: 0; background: transparent; padding: 0;
}
.modal__close .icon { width: 16px; height: 16px; }
.request-form { display: flex; flex-direction: column; gap: 24px; }
.request-form__head { display: flex; flex-direction: column; gap: 16px; }
.request-form__head h2 { margin: 0; font-size: 24px; font-weight: 600; line-height: .98; }
.request-form__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0; font-size: 14px; line-height: 16px;
}
.request-form__date { color: var(--dodger-blue); }
.request-form__meta strong { font-weight: 500; color: var(--mirage); }
.request-form__fields { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.request-form__fields > input,
.request-form__fields > textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--grey);
  border-radius: 8px;
  background: var(--white);
  color: var(--mirage);
  font: inherit;
  font-size: 14px;
  line-height: 24px;
}
.request-form__fields > input { min-height: 40px; }
.request-form__fields > input::placeholder,
.request-form__fields > textarea::placeholder { color: var(--fiord); }
.request-form__fields > textarea {
  min-height: 116px;
  resize: vertical;
}
.request-form__files { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.upload-list { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.upload-item {
  display: flex;
  width: 100%;
  height: 32px;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 4px;
  border-radius: 8px;
  background: var(--black-haze);
}
.upload-item__icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: none;
  place-items: center;
  border-radius: 4px;
  background: var(--mirage-6);
}
.upload-item__icon .icon { width: 16px; height: 16px; }
.upload-item__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--mirage);
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-item__remove {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}
.upload-item__remove .icon { width: 16px; height: 16px; }
.upload-button {
  align-self: flex-start;
  min-height: 32px;
  gap: 2px;
  padding: 4px 8px;
  font-size: 12px;
  letter-spacing: .24px;
}
.request-form > small,
.request-form__hint {
  margin: 0;
  color: var(--fiord);
  font-size: 12px;
  line-height: 14px;
}
.request-form .btn--block {
  min-height: 48px;
  padding: 12px 16px;
  font-size: 16px;
  letter-spacing: .32px;
}
.modal__dialog.request-form { overflow: visible; }
.request-form__category { width: 100%; position: relative; }
.request-form__category .filter-dropdown__menu {
  z-index: 120;
  width: 100%;
  min-width: 100%;
}
.request-form__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.request-form__field > span {
  font-size: 12px;
  color: var(--fiord);
}
.request-form__field select,
.request-form__field input,
.request-form__field textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--athens-gray);
  border-radius: 8px;
  font: inherit;
}
.request-form__error {
  color: #c0392b;
  font-size: 12px;
}
.request-table__link {
  color: inherit;
  text-decoration: none;
}
.request-table__link:hover strong {
  color: var(--dodger-blue);
}
.request-detail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.request-detail__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.request-detail__date {
  color: var(--fiord);
  font-size: 14px;
}
.request-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.request-detail__card {
  width: 100%;
  padding: 24px;
  border: 1px solid var(--athens-gray);
  border-radius: 12px;
  background: #fff;
}
.request-detail__card h2 {
  margin: 0 0 16px;
  font-size: 16px;
}
.request-detail__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0;
}
.request-detail__meta > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.request-detail__meta dt {
  margin: 0;
  color: var(--fiord);
  font-size: 13px;
}
.request-detail__meta dd {
  margin: 0;
}
.request-detail__text {
  line-height: 1.5;
  white-space: pre-wrap;
}
.request-detail__files {
  margin: 0;
  padding-left: 18px;
}
.request-detail__actions {
  padding: 24px;
  border: 1px solid var(--athens-gray);
  border-radius: 12px;
  background: #fff;
}
.request-detail__actions h2 {
  margin: 0 0 12px;
  font-size: 16px;
}
.request-detail__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.request-detail__back {
  align-self: flex-start;
}
@media (max-width: 1100px) {
  .request-detail__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .request-detail__meta { grid-template-columns: 1fr; }
}
.flash-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.flash-message {
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.flash-message--success,
.flash-message--info {
  background: #e8f7ee;
  color: #1e7a45;
}
.flash-message--error {
  background: #fdecea;
  color: #b42318;
}
.department-modal {
  width: min(984px, 100%);
  padding: 32px 32px 40px;
}
.department-modal .modal__close {
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
}
.org-chart--modal {
  align-items: center;
  width: 100%;
}
.org-chart--modal .org-chart__root { width: 296px; }
.org-chart--modal .org-branch--modal {
  align-items: center;
}
.org-chart--modal .org-connectors {
  width: min(100%, calc(var(--org-cols) * 296px + (var(--org-cols) - 1) * 16px));
  margin: 8px 0;
}
.org-chart--modal .org-columns--modal {
  width: min(100%, calc(var(--org-cols) * 296px + (var(--org-cols) - 1) * 16px));
  grid-template-columns: repeat(var(--org-cols, 3), minmax(0, 296px));
  justify-content: center;
  gap: 16px;
}
.toast { position: fixed; z-index: 200; right: 24px; bottom: 24px; max-width: 360px; padding: 12px 16px; border-radius: 8px; background: var(--mirage); color: white; opacity: 0; transform: translateY(20px); pointer-events: none; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: none; }

.birthday-layout {
  display: grid;
  width: 100%;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.calendar-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "cal birth abs"
    "events events events";
  gap: 16px;
  align-items: start;
}
.calendar-layout__cal { grid-area: cal; position: sticky; top: 24px; padding: 16px; }
.calendar-layout__cal:has(.home-cal__day:hover),
.calendar-layout__cal:has(.home-cal__day:focus-visible) { z-index: 30; }
.calendar-layout__birth { grid-area: birth; min-width: 0; }
.calendar-layout__abs { grid-area: abs; min-width: 0; }
.calendar-layout__events { grid-area: events; min-width: 0; }
.calendar-layout__cal-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mirage-10);
}
.calendar-layout__cal-head strong {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}
.calendar-layout__cal-head span {
  color: var(--fiord);
  font-size: 12px;
  line-height: 16px;
}
.calendar-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  scroll-margin-top: 24px;
}
.calendar-col .widget-head { margin-bottom: 0; padding-bottom: 12px; }
.calendar-col__lead {
  margin: 4px 0 0;
  color: var(--fiord);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}
.calendar-col .birthday-people { grid-template-columns: 1fr; }
.calendar-col .birthday-card { background: var(--black-haze); }
.calendar-col .birthday-today {
  padding: 0;
  background: transparent;
}
.calendar-col .status-list { gap: 4px; }
.calendar-col .status-card { margin: 0; background: var(--black-haze); }
.calendar-col .status-card.is-current { box-shadow: inset 0 0 0 1px rgba(56, 99, 172, .35); }
.calendar-col .status-card--parental.is-current { box-shadow: inset 0 0 0 1px rgba(74, 181, 144, .45); }
.calendar-col .btn--block { margin-top: auto; }
.calendar-events {
  padding: 16px;
  scroll-margin-top: 24px;
}
.calendar-events .widget-head { margin-bottom: 16px; }
.calendar-events__body {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.calendar-events__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calendar-events__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--fiord);
  font-size: 12px;
}
.calendar-events__field input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--grey);
  border-radius: 8px;
  background: var(--white);
  color: var(--mirage);
  font-size: 14px;
}
.calendar-events__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.calendar-event {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--black-haze);
}
.calendar-event.is-today { box-shadow: inset 0 0 0 1px rgba(74, 181, 144, .45); }
.calendar-event__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.calendar-event__body strong {
  font-weight: 500;
  line-height: 16px;
}
.calendar-event__meta {
  color: var(--fiord);
  font-size: 12px;
  line-height: 16px;
}
.birthday-cal {
  position: sticky;
  top: 24px;
  padding: 16px;
}
.birthday-cal__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mirage-10);
}
.birthday-cal__head strong {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}
.birthday-cal__head span {
  color: var(--fiord);
  font-size: 12px;
  line-height: 16px;
}
.birthday-cal__weekdays,
.birthday-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.birthday-cal__weekdays span {
  height: 24px;
  color: var(--fiord);
  font-size: 12px;
  line-height: 24px;
  text-align: center;
}
.birthday-cal__day {
  display: flex;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 8px;
  color: var(--mirage);
  font-size: 12px;
  line-height: 16px;
  text-decoration: none;
}
.birthday-cal__day::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  content: "";
}
.birthday-cal__day.has-events { font-weight: 500; cursor: pointer; }
.birthday-cal__day.has-events::after { background: var(--tan); }
a.birthday-cal__day:hover { background: var(--dodger-blue-16); }
.birthday-cal__day.is-outside { color: var(--mirage-50); }
.birthday-cal__day.is-today { box-shadow: inset 0 0 0 1px var(--dodger-blue); }
.birthday-cal__day.is-today.has-events {
  background: var(--tan);
  color: var(--white);
  box-shadow: none;
}
.birthday-cal__day.is-today.has-events::after { background: var(--white); }
a.birthday-cal__day.is-today.has-events:hover {
  background: var(--tan);
  color: var(--white);
}
.birthday-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.birthday-today {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  scroll-margin-top: 24px;
}
.birthday-today .widget-head { margin-bottom: 0; }
.birthday-today__lead {
  margin: 4px 0 0;
  color: var(--fiord);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}
.birthday-group { scroll-margin-top: 24px; }
.birthday-group:target .birthday-group__title { color: var(--dodger-blue); }
.birthday-group__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
}
.birthday-group__title.is-today { color: var(--tan); }
.birthday-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}
.birthday-card {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s ease, background .2s ease;
}
.birthday-card:hover { box-shadow: var(--shadow-sm); }
.birthday-today .birthday-card { background: var(--black-haze); }
.birthday-card.is-today { box-shadow: inset 0 0 0 1px rgba(236, 147, 75, .45); }
.birthday-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.birthday-card__name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.birthday-card__name strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-weight: 500;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.birthday-card__name .status-icon { margin-left: auto; }
.birthday-card__body small {
  overflow: hidden;
  color: var(--mirage-50);
  font-size: 12px;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.birthday-card__body .eyebrow {
  overflow: hidden;
  font-size: 12px;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.birthday-card__body em {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--dodger-blue-16);
  color: var(--dodger-blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
}
.birthday-card.is-today .birthday-card__body em {
  background: var(--tan-16);
  color: var(--tan);
}

.component-showcase { margin-bottom: 24px; padding: 24px; border-radius: 12px; background: white; }
.component-showcase h2 { margin-bottom: 20px; font-size: 24px; }
.component-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 16px; }
.input-grid textarea { min-height: 100px; }

@media (max-width: 1279px) {
  .portal { grid-template-columns: minmax(0, 1fr); width: min(920px, calc(100% - 32px)); margin: 16px auto; }
  .sidebar { position: fixed; top: 0; left: 0; z-index: 80; height: 100dvh; border-radius: 0 12px 12px 0; transform: translateX(-105%); box-shadow: var(--shadow-sm); }
  .sidebar.is-open { transform: none; }
  .sidebar-backdrop { position: fixed; z-index: 70; inset: 0; background: rgba(15, 22, 46, .4); }
  .sidebar.is-open + .sidebar-backdrop { display: block; }
  .mobile-menu { display: inline-grid; flex: none; }
  .topbar { gap: 12px; }
  .global-search { width: min(380px, 100%); }
  .home-grid { display: flex; flex-direction: column; gap: 16px; }
  .home-main, .home-side { width: 100%; }
  .home-main {
    display: flex;
    flex-direction: column;
  }
  .home-main > .home-widget[data-span="half"] { grid-column: auto; }
}

@media (max-width: 959px) {
  .portal { width: min(100% - 24px, 760px); }
  .employee-grid { grid-template-columns: repeat(2, 1fr); }
  .document-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
  .contacts-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .birthday-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .calendar-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "cal cal"
      "birth abs"
      "events events";
  }
  .calendar-layout__cal { position: static; }
  .org-chart { min-width: 820px; }
  body[data-page="structure"] .content { overflow-x: auto; }
}

@media (max-width: 767px) {
  body { font-size: 14px; }
  .portal { width: min(100% - 20px, 560px); margin: 10px auto; }
  .topbar { position: sticky; z-index: 40; top: 0; height: auto; padding: 8px 0; background: var(--black-haze); }
  .global-search { height: 44px; padding: 0 12px; }
  .global-search input { font-size: 14px; }
  .userbar { width: 44px; height: 44px; justify-content: center; padding: 6px; }
  .userbar__name, .userbar form { display: none; }
  .content { min-height: 500px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .home-grid { display: flex; flex-direction: column; gap: 16px; }
  .home-main, .home-side { width: 100%; }
  .home-main {
    display: flex;
    flex-direction: column;
  }
  .home-main > .home-widget[data-span="half"] { grid-column: auto; }
  .home-side { order: 2; }
  .news-list--compact .news-card { gap: 10px; }
  .news-list--compact .news-card img { width: 120px; height: auto; aspect-ratio: 16 / 9; }
  .news-list--full .news-card { flex-direction: column; }
  .news-list--full .news-card img { width: 100%; height: auto; aspect-ratio: 16 / 8; }
  .news-article__cover {
    float: none;
    width: 100%;
    height: auto;
    max-height: 220px;
    margin: 0 0 16px;
  }
  .employee-grid, .document-grid, .contacts-grid { grid-template-columns: 1fr; }
  .employee-card { min-height: auto; }
  .employee-card__actions { flex-direction: column; }
  .employee-card .avatar--card { width: 48px; height: 48px; }
  .toolbar, .list-header { align-items: stretch; flex-direction: column; }
  .toolbar__filters, .toolbar__actions, .toolbar__sub, .list-header > div { width: 100%; }
  .select-field { min-width: 0; flex: 1; width: auto; }
  .toolbar .btn { flex: 1; }
  .path { width: 100%; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .schedule-toolbar { flex-direction: column; }
  .schedule-toolbar > div { width: 100%; overflow-x: auto; }
  .schedule { padding: 8px; }
  .schedule__head { align-items: stretch; flex-direction: column; gap: 8px; }
  .schedule__grid { grid-template-columns: 125px minmax(560px, 1fr); }
  .schedule__people > a,
  .schedule__people > span { overflow: hidden; font-size: 11px; white-space: nowrap; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .album__head { align-items: stretch; flex-direction: column; }
  .album__actions { justify-content: flex-end; }
  .profile-layout { grid-template-columns: 1fr; }
  .birthday-layout { grid-template-columns: 1fr; }
  .birthday-cal { position: static; }
  .calendar-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cal"
      "birth"
      "abs"
      "events";
  }
  .calendar-events__body { grid-template-columns: 1fr; }
  .birthday-people { grid-template-columns: 1fr; }
  .profile-card { position: static; min-height: auto; }
  .profile-card__photo img { width: 88px; height: 88px; }
  .info-list > div { grid-template-columns: 1fr; gap: 4px; padding: 8px 0; }
  .info-list > div.info-list__stack { padding: 8px 0; }
  .org-columns { grid-template-columns: 1fr; justify-content: stretch; }
  .org-chart { min-width: 0; }
  .org-chart__root { width: 100%; }
  .org-connectors { display: none; }
  .org-card--root { width: 100%; margin-bottom: 16px; }
  .modal { padding: 0; }
  .modal__dialog { width: 100%; max-height: 100dvh; min-height: 100dvh; border-radius: 0; }
  .department-modal .org-columns { display: grid; grid-template-columns: 1fr; justify-content: stretch; }
  .org-chart--modal .org-chart__root { width: 100%; }
  .org-chart--modal .org-connectors { display: none; }
  .org-chart--modal .org-branch--modal,
  .org-chart--modal .org-columns--modal { width: 100%; }
  .input-grid { grid-template-columns: 1fr; }
  .component-showcase { padding: 16px; }
}

.about-page {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px;
}
.about-section { display: flex; flex-direction: column; gap: 16px; }
.about-section + .about-section {
  padding-top: 32px;
  border-top: 1px solid var(--mirage-10);
}
.about-section__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--mirage);
}
.about-subtitle {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--dodger-blue);
  text-align: center;
}
.about-lead { margin: 0; color: var(--fiord); line-height: 1.5; }
.about-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--mirage);
  line-height: 1.55;
}
.about-content p { margin: 0; }
.about-principles {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: about-principle;
}
.about-principle {
  counter-increment: about-principle;
  padding: 16px;
  border: 1px solid var(--mirage-10);
  border-radius: 12px;
  background: var(--white);
}
.about-principle h3 {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}
.about-principle h3::before {
  content: counter(about-principle) ".";
  flex: none;
  color: var(--dodger-blue);
}
.about-principle p { margin: 0; color: var(--fiord); line-height: 1.5; }
.about-advantages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-advantages li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--black-haze);
}
.about-advantages strong {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--mirage);
}
.about-advantages span { color: var(--fiord); font-size: 13px; line-height: 1.45; }
.about-brands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.about-brand {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--mirage-10);
  border-radius: 12px;
  background: var(--white);
}
.about-brand img {
  width: 120px;
  max-height: 80px;
  object-fit: contain;
  flex: none;
}
.about-brand span {
  color: var(--mirage);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}
.about-map {
  display: block;
  width: min(100%, 640px);
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.about-offices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.about-office {
  padding: 16px;
  border-radius: 12px;
  background: var(--black-haze);
}
.about-office h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--dodger-blue);
}
.about-office ul {
  margin: 0;
  padding-left: 18px;
  color: var(--fiord);
  line-height: 1.5;
}
.about-office li + li { margin-top: 6px; }
.about-rich ul,
.about-rich ol { margin: 0; padding-left: 18px; }
.about-rich p { margin: 0 0 12px; }
.about-rich p:last-child { margin-bottom: 0; }
.about-office .about-rich ul { color: var(--fiord); line-height: 1.5; }
.about-office .about-rich li + li { margin-top: 6px; }

@media (max-width: 959px) {
  .about-advantages,
  .about-brands,
  .about-offices { grid-template-columns: 1fr; }
  .about-brand { flex-direction: column; align-items: flex-start; }
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.login-card__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-card__brand strong {
  display: block;
  color: var(--dodger-blue);
  font-size: 18px;
  font-weight: 500;
  line-height: 18px;
}
.login-card__brand span {
  display: block;
  color: var(--fiord);
  font-size: 12px;
  line-height: 16px;
}
.login-card h1 { margin: 8px 0 0; }
.login-card__lead { margin: 0; color: var(--fiord); font-size: 14px; line-height: 20px; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.login-form input {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--grey);
  border-radius: 8px;
  background: transparent;
}
.login-form__google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
