* { box-sizing: border-box }
:root {
    --ink: #172941; --text: #26384b; --mute: #52657a;
    --accent: #205da6; --line: #d7e0e9; --surface: #fff;
    font: 15px/1.45 "Segoe UI", Arial, sans-serif;
    background: #edf2f7; color: var(--text);
}
body { margin: 0 }
a { color: var(--accent); text-underline-offset: .2em }
button, .button, input, select, textarea { font: inherit }
button, .button { display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:8px 13px; border:1px solid #bfccdc; border-radius:8px; color:#304c72; background:white; text-decoration:none; font-weight:600; cursor:pointer; min-height:37px }
button:hover, .button:hover { background:#eef3fa; border-color:#93a8c3 }
button:active, .button:active { background:#dfe9f5 }
.primary, .primary:hover { color: white; background: linear-gradient(#397bc4,#1e559c); border: 1px solid #215497; box-shadow: inset 0 1px #ffffff38, 0 3px 8px #183e6b23 }
.primary:hover { background: #225ca3 }
:focus-visible { outline: 2px solid #566487; outline-offset: 2px }
:is(input:not([type=checkbox],[type=radio]),select,textarea):focus { border-color:#586e92; outline:none }
@media (forced-colors:active) { :is(input,textarea,select):focus-visible { outline:2px solid Highlight !important } }
.skip { position: absolute; z-index: 20; background: white; padding: 8px; top: -60px; left: 10px }.skip:focus { top: 8px }
[hidden] { display: none !important }
.workspace { display: grid; grid-template-columns: 196px minmax(0,1fr); gap: 20px; max-width: 1960px; margin: auto; padding: 16px 20px 24px }
.workspace main { min-width: 0 }
.shell-head, .pagehead, .panel, .sidecard, .loginwrap { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 3px 9px #25394e06 }
.shell-head { display: flex; flex-direction: column; align-self: start; padding: 15px 12px; min-height: calc(100dvh - 32px); position: sticky; top: 16px }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 5px 16px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; line-height: 1.15; color: var(--ink); text-decoration: none }
.brandmark { display: grid; place-items: center; height: 34px; width: 34px; flex: none; background: linear-gradient(145deg,#448cdf,#154d99); color: white; border-radius: 11px; font-size: 22px; box-shadow: inset 0 1px 2px #ffffff55 }
nav { display: grid; gap: 4px; padding: 18px 0 }
nav a { display: flex; align-items: center; gap: 10px; padding: 10px; text-decoration: none; color: var(--mute); border-radius: 8px; font-size: 14px; font-weight: 550 }
nav a:hover, nav a[aria-current] { background: #e7eff9; color: #174f91 }
.ui-icon { display:block; flex:none; width:18px; height:18px }
.mobile-label { display:none }
.filter-box { border-top: 1px solid var(--line); padding: 15px 2px }
.filter-box summary { cursor: pointer; color: var(--mute); font-size: 13px; font-weight: 600 }
.filters { display: grid; gap: 11px; margin-top: 14px }.filters label { font-size: 12px }.filters select { font-size: 13px; min-width: 0 }.filters a { font-size: 13px }
.account { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 3px 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line) }
.account strong, .account small { display: block }.account strong { font-size: 13px }.account small { font-size: 12px; color: var(--mute) }
.account form { grid-column: 2 }.quiet { border: 0; padding: 4px 0; background: none; min-height: 24px; color: var(--accent); font-size: 13px }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #dce8f8; color: #1b5396; font-weight: 650 }
.pagehead { padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.18; letter-spacing: -.025em; overflow-wrap: anywhere }
h1 { font-size: clamp(24px,2.4vw,36px); font-weight: 650 }h2 { font-size: 21px }h3 { font-size: 17px }
.pagehead p { margin: 4px 0 0 }.head-date { font-size: 13px; color: var(--mute) }.head-date::first-letter { text-transform: uppercase }
.dashboard { display: grid; grid-template-columns: minmax(0,1fr) clamp(250px,22vw,335px); align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 7px 22px #233e5710 }
.board { min-width: 0; padding: clamp(13px,1.5vw,25px); color: var(--ink); color-scheme: light }
.switch, .day-controls { display: flex; gap: 7px; align-items: center }.day-heading { justify-content: space-between }
.caltools { display: grid; width: fit-content; max-width: 100%; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center }
.caltools h2 { margin: 0; text-align: center; font-size: clamp(21px,2vw,29px); text-transform: capitalize; font-weight: 600 }
.board button, .day-controls button { min-height: 32px; font-size: 13px; padding: 5px 12px }
#prev,#next,.day-controls button { display:grid; place-items:center; gap:0; border-radius:50%; width:32px; height:32px; padding:0 }
.switch { display: inline-flex; gap: 1px; background: #edf2f8; padding: 3px; border: 1px solid #dce5ef; border-radius: 10px; margin: 16px 0 12px }
.switch button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; font-weight: 500; color: #53647b }
.switch button[aria-pressed=true] { color: #194f89; background: white; box-shadow: 0 1px 4px #2039542b }
.feedback { color: var(--mute); font-size: 13px }.feedback:empty { display: none }
#calendar { --fc-border-color: transparent; --fc-neutral-bg-color: #edf3fa; --fc-page-bg-color: white; --fc-today-bg-color: transparent; --fc-list-event-hover-bg-color: #edf5fd; font-size: 14px; margin: 0 -3px }
#calendar .fc-scrollgrid, #calendar .fc-list { border: 0 }
.fc .fc-col-header-cell { text-align: left; font-weight: 600 }.fc .fc-col-header-cell-cushion { padding: 6px 10px; text-transform: capitalize; font-size: 12px }
.fc .fc-daygrid-body { isolation: isolate }.fc .fc-daygrid-day-frame { min-height: clamp(84px,10.5vh,125px); padding: 4px 0 5px; cursor: pointer }
#calendar .fc-daygrid-day-frame::before { content: ''; display: block; position: absolute; z-index: -1; inset: 2px; border-radius: 11px; background: linear-gradient(145deg,#fff 20%,#f2f6fa); border: 1px solid #d6e0e9; box-shadow: 0 1px 2px #28445f09 }
#calendar .fc-day-other .fc-daygrid-day-frame::before { background: #f0f3f6; border-color: #e3e8ed }
#calendar .fc-day-today .fc-daygrid-day-frame::before { background: linear-gradient(135deg,#d9ebff,#eff7ff); border-color: #8db9e6 }
#calendar .fc-day-today .fc-daygrid-day-top { align-items: center; flex-wrap: wrap }
#calendar .fc-day-today .fc-daygrid-day-top::after {
    content: "Сегодня"; margin: 0 8px 0 auto; color: #174e87;
    font-size: 12px; line-height: 1.3; font-weight: 700; pointer-events: none;
}
@media (max-width: 760px) {
    #calendar .fc-day-today .fc-daygrid-day-top::after { margin: 0 3px 2px; font-size: 10px }
}
#calendar .chosen .fc-daygrid-day-frame::before { border: 2px solid #427bb6 }
#calendar .fc-daygrid-day:hover .fc-daygrid-day-frame::before { box-shadow: inset 0 0 0 1px #89a9c5 }
#calendar .fc-col-header-cell-cushion,#calendar .fc-list-day a { color: #445a70 }
.fc .fc-daygrid-day-top { flex-direction: row }.fc .fc-daygrid-day-number { color: var(--ink); padding: 5px 10px; font-size: 15px; font-variant-numeric: tabular-nums }
.fc .fc-day-other .fc-daygrid-day-top { opacity: .70 }
.event-planned,.planned { --dot: #519ced; --tint: #e3effd; --type: #235a97 }
.event-active,.active { --dot: #3ab895; --tint: #ddf3eb; --type: #205942 }
.event-done,.done { --dot: #a795df; --tint: #efebf9; --type: #5a4883 }
.event-cancelled,.cancelled { --dot: #e58f63; --tint: #fcece3; --type: #88462b }
.fc .fc-h-event { border: 0; border-left: 3px solid var(--dot); border-radius: 5px; background: var(--tint); box-shadow: 0 1px 3px #25496017 }
.fc .fc-daygrid-block-event { margin: 1px 6px 2px }#calendar .fc-event-main { color: var(--type) }
.eventtext { display: block; min-width: 0; padding: 5px 7px; font-size: 12px; line-height: 1.45 }
.entry-org { font-weight: 690 }.entry-staff { font-weight: 580 }
.fc-h-event .eventtext { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
#calendar .fc-list-table,#calendar .fc-list-table tbody,#calendar .fc-list-day,#calendar .fc-list-day th { display: block; width: 100% }
#calendar .fc-list-event { display: grid; grid-template-columns: 16px minmax(0,1fr); align-items: stretch }
#calendar .fc-list-event-graphic { display: flex; align-items: center; padding: 0 2px 0 4px }
#calendar .fc-list-event-dot { border-width: 4px }
#calendar .fc-list-event-title { padding: 0; vertical-align: middle }
#calendar .fc-list-event-title a { display: block; text-decoration: none }
.fc-list-event .eventtext { padding: 11px 8px; line-height: 1.65; color: var(--mute); overflow-wrap: anywhere; white-space: normal; font-size: 14px }
.fc-list-event .entry-org,.fc-list-event .entry-staff { color: var(--ink) }
.fc-list-event .entry-state { display: inline-block; font-size: .85em; font-weight: 650; color: var(--type); background: var(--tint); padding: 0 6px; border-radius: 5px }
.fc .fc-daygrid-more-link { color: var(--accent); font-size: 12px }.fc .fc-list-day-cushion { border-radius: 8px }.fc .fc-list-event-dot { border-color: var(--dot) }.fc .fc-list-event-time { display: none }.fc .fc-list-event-title a { color: var(--ink) }.fc .fc-list-event td { border-bottom: 1px solid var(--line) }.fc .fc-list-empty { background: transparent }
.day-panel { min-width: 0; padding: 19px 16px; border-left: 1px solid var(--line); background: linear-gradient(160deg,#f6f9fd,#ecf2f8); border-radius: 0 18px 18px 0 }
.day-heading { display: flex; align-items: center; gap: 7px }.day-heading h2 { font-size: 19px }.day-controls { gap: 4px }.day-controls button { width: 28px; height: 28px; min-height: 28px }
.day-panel input[type=date] { width: auto; margin: 7px 0 13px; padding: 4px 7px; min-height: 30px; color: #405b78; border-color: #d3deea }
.timeline-label { display: flex; align-items: center; gap: 10px; margin: 17px 0 8px; color: #496079; font-size: 12px; font-weight: 600 }
.timeline-label::after { content: ''; height: 1px; flex: 1; background: #cedae6 }
.day-card,.next-audit { display: block; background: white; padding: 13px; border: 1px solid #d7e1eb; border-radius: 11px; box-shadow: 0 2px 6px #243e5b0a; overflow-wrap: anywhere }
.day-card::before,.next-audit::before { content: ''; display: block; height: 5px; border-radius: 5px; background: var(--dot); margin-bottom: 10px }
.day-status { color: var(--type); font-weight: 600; font-size: 12px }.day-card h3 { margin: 4px 0; font-size: 18px }.day-card h3 a,.next-audit { color: var(--ink); text-decoration: none }.day-card h3 a:hover,.next-audit:hover strong { text-decoration: underline }
.day-card p,.next-audit span { color: var(--mute); font-size: 13px; margin: 2px 0 9px }.day-period,.day-team { padding: 9px 0; border-bottom: 1px dashed #d4dfeb; font-size: 13px }
.day-period { border-top: 1px dashed #d4dfeb }.day-team { display: flex; align-items: center; gap: 9px }.day-team small { display: block; color: var(--mute) }
.faces { display: flex; padding-left: 3px }.faces span { width: 24px; height: 24px; margin-left: -3px; display: grid; place-items: center; background: #cee3f6; color: #234a74; border: 1px solid white; border-radius: 50%; font-size: 11px }.faces span:nth-child(2) { background: #e9dff8; color: #574573 }
.agenda-link { font-size: 13px; font-weight: 600 }.day-card dl { font-size: 13px }.next-audit span { display: block; margin: 4px 0 0 }.day-empty { color: var(--mute) }
.agenda-jump { display: none }
label, legend { font-weight: 600; color: var(--ink); font-size: 14px }input:not([type=checkbox]), select, textarea { display: block; width: 100%; padding: 9px 10px; margin-top: 5px; background: white; color: var(--text); border: 1px solid #bfcbd8; border-radius: 7px; min-height: 38px }textarea { resize: vertical }
.sectionline { font-size: 12px; color: var(--accent); font-weight: 600 }.muted, dt { color: var(--mute) }.badge { color: var(--type); background: var(--tint); display: inline-block; padding: 3px 9px; font-size: 12px; border-radius: 6px }
.detailgrid, .channelgrid, .fields { display: grid; gap: 16px }.detailgrid { grid-template-columns: 1.35fr 1fr }.channelgrid { grid-template-columns: repeat(3,minmax(0,1fr)) }.fields { grid-template-columns: repeat(2,minmax(0,1fr)) }
.panel { padding: 22px; min-width: 0 }.panel h2 { margin: 0 0 15px }.panel h3 { margin-bottom: 8px }.history { margin-top: 16px }.history summary { padding: 9px 0; cursor: pointer }.history dl { padding-left: 14px; border-left: 2px solid var(--line) }
dl { margin: 0 0 12px }dt { margin-top: 10px; font-size: 13px }dd { margin: 2px 0; overflow-wrap: anywhere }.pre { white-space: pre-wrap }.back { display: inline-block; margin: 5px 0 12px }
.stack, .edit { display: grid; gap: 16px }.edit { max-width: 860px }.edit h2 { margin: 6px 0 0 }.edit button { justify-self: start }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; min-width: 0 }fieldset p { margin: 0 0 6px }.tick { display: inline-flex; align-items: center; gap: 5px; margin: 4px 12px 4px 0 }.tick input { accent-color: var(--accent) }
.notice, .alert { padding: 12px 15px; border-radius: 8px; background: #e1edf9; color: #184676; overflow-wrap: anywhere }.alert { background: #fff0d6; color: #744b15 }.alert p { margin: 4px 0 }
.tablewrap { overflow: auto }.tablewrap table { border-collapse: collapse; width: 100%; font-size: 14px }.tablewrap th,.tablewrap td { text-align: left; padding: 9px; border-bottom: 1px solid var(--line) }.tablewrap th { color: var(--mute) }.tablewrap small { display: block }.pager { display: flex; gap: 15px; margin-top: 10px }
.entrance { padding: 22px }.entrance .shell-head { position: static; min-height: auto; width: max-content; background: transparent; border: 0; box-shadow: none; padding: 0 }.entrance .brand { border: 0 }
.guest { max-width: 880px; margin: 8vh auto }.loginwrap { display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden }.loginpanel { padding: clamp(25px,4vw,54px) }.loginpanel h1 { margin-top: 8px }.loginpanel form { margin-top: 25px }
.loginart { display: grid; place-items: center; background: radial-gradient(ellipse at 100% 100%,#2d5477,transparent 70%),#273343 }.paper { width: 160px; padding: 18px; border: 1px solid #5780a0; border-radius: 17px; background: radial-gradient(at 15% 0%,#307db3,#31465d 73%); color: white; transform: rotate(-6deg); box-shadow: 8px 12px 0 #1d2c3d }.paperdate { text-transform: uppercase; letter-spacing: .1em; font-size: 12px }.paper strong { font: 74px/1.2 Georgia,serif }.rule { height: 2px; margin-top: 8px; background: #7692ac }.short { width: 60% }
@media (min-width: 1600px) { .workspace { grid-template-columns: 218px minmax(0,1fr) }.fc .fc-daygrid-day-frame { min-height: 116px } }
@media (min-width: 761px) and (max-width: 1190px) {
    .workspace { grid-template-columns: 170px minmax(0,1fr); padding: 12px; gap: 12px }
    .dashboard { grid-template-columns: 1fr }.day-panel { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 18px 18px }
}
@media (max-width: 760px) {
    .workspace { display: block; padding: 9px }.shell-head { min-height: 0; position: static; margin-bottom: 10px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 9px }
    .brand { border: 0; padding: 0; font-size: 13px }.brandmark { width: 30px; height: 30px }.account { grid-area: 1/2; display: flex; padding: 0; margin: 0; border: 0; gap: 6px }.avatar { display: none }.account small { font-size: 10px }.account strong { font-size: 11px }
    nav { grid-column: 1/-1; display: flex; padding: 0 }.filter-box { grid-column: 1/-1; padding: 8px 0 0 }nav a { padding: 7px 10px }.pagehead { padding: 13px; flex-wrap: wrap; margin-bottom: 10px }.pagehead h1 { font-size: 25px }.head-date { font-size: 12px }
    .board { padding: 13px 10px }.dashboard, .rightpanels, .detailgrid, .channelgrid, .fields, .loginwrap { grid-template-columns: 1fr }.caltools h2 { font-size: 20px }
    .fc .fc-daygrid-day-frame { min-height: 72px }.fc .fc-daygrid-day-frame::before { inset: 1px; border-radius: 6px }.fc .fc-daygrid-day-number { padding: 4px 6px; font-size: 13px }.fc .fc-daygrid-block-event { margin: 1px 2px }.eventtext { padding: 3px }.fc-list-event .eventtext b { font-size: 15px }.fc-list-event .eventtext small { font-size: 12px }.caltools { gap: 8px }
    .panel, .day-panel { padding: 15px }.day-panel { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 18px 18px }.guest { margin-top: 5vh }.loginart { display: none }
}
@media (max-width: 1190px) { .agenda-jump { display: block; width: fit-content; margin-bottom: 8px; font-size: 13px } }
@media (max-width: 760px) {
    .workspace { padding: 10px 10px calc(81px + env(safe-area-inset-bottom)); max-width: 100% }
    .workspace nav { position: fixed; z-index: 15; inset: auto 0 0; justify-content: center; gap: 8px; border-top: 1px solid var(--line); background: #fff; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -3px 14px #2137500c }
    .workspace nav a { min-height: 44px; flex: 1; justify-content: center; max-width: 230px; font-size: 13px }
    .workspace .shell-head { padding: 8px 12px; gap: 5px; box-shadow: none }
    .workspace .quiet { min-height: 44px; padding-inline: 5px }
    .filter-box { padding-top: 0 }.filter-box summary { padding: 11px 0; min-height: 44px }.filters { margin: 0 0 10px }
    .filters select,.filters button,.edit input,.edit select,.edit button,.day-panel input[type=date] { min-height: 44px; font-size: 16px }
    .pagehead { background: transparent; border: 0; box-shadow: none; padding: 5px 2px; gap: 8px }
    .pagehead h1 { font-size: clamp(21px,5vw,26px) }.pagehead .primary { min-height: 44px; font-size: 13px }
    .board { padding: 14px 12px }.caltools h2 { font-size: clamp(17px,4.6vw,22px) }
    #prev,#next,.day-controls button { width: 44px; min-height: 44px }
    .board .switch { display: flex; margin: 10px 0 4px }.switch button { flex: 1; min-height: 44px }
    .agenda-jump { margin: 0 0 4px auto; padding: 10px 2px; min-height: 40px }
    #calendar .fc-list-day-cushion { padding: 8px 9px; font-size: 12px }
    #calendar .fc-list-day a { display: inline-block; padding-block: 4px }
    .fc-list-event .eventtext { padding: 10px 4px; min-height: 44px }
    .day-panel { scroll-margin-top: 8px }.agenda-link,.next-audit { display: inline-flex; min-height: 44px; align-items: center }.next-audit { display: block }
    .workspace { scroll-padding-bottom: 72px }
    html { scroll-padding-bottom: calc(70px + env(safe-area-inset-bottom)) }
}
.nav-caption { display:block; padding:4px 10px 7px; color:#565575; font-size:10px; text-transform:uppercase; letter-spacing:.12em; font-weight:700 }
.day-card dd { overflow-wrap:anywhere }
.other-contacts summary { cursor:pointer; padding:8px 0; color:var(--accent); font-size:13px }
@media(min-width:761px) {
    .workspace { column-gap:18px; padding-left:0; padding-top:0 }
    .workspace main { padding-top:16px }
    .workspace .shell-head { min-height:100dvh; max-height:100dvh; overflow-y:auto; top:0; padding:24px 12px 18px; background:#f8f9fc; border-radius:0; border:0; border-right:1px solid #e1e3ef; box-shadow:none }
    .shell-head .brand { letter-spacing:.08em; text-transform:uppercase; font-weight:650; font-size:13px; border-bottom:0; color:#26294f }
    .shell-head .brandmark { width:28px; background:transparent; color:#353963; border:0; box-shadow:none }
    .brandmark .ui-icon { width:25px; height:25px }
    .shell-head nav { padding:18px 0; gap:3px }
    .shell-head nav a { position:relative; border-radius:6px; color:#3e4268; min-height:38px; gap:12px }
    .shell-head nav a[aria-current] { background:#e9ecf7; color:#232750 }
    .shell-head nav a+.nav-caption { margin-top:17px }
    .shell-head nav a[aria-current]::before { content:''; position:absolute; inset:9px auto 9px -12px; width:3px; border-radius:0 2px 2px 0; background:#34315c }
    .filter-box { padding:18px 4px; border-color:#e4e4ee }.account { border-color:#e4e4ee }
}
.board-options { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin:12px 0 }
.board-options .switch { margin:0 }.display-options { position:relative; margin-left:auto; font-size:13px }
.display-options summary { cursor:pointer; padding:7px; color:var(--accent); font-weight:600 }
.display-options>div { position:absolute; z-index:12; top:100%; right:0; min-width:215px; background:white; border:1px solid var(--line); padding:7px; border-radius:10px; box-shadow:0 6px 18px #21375020 }
.display-options label { display:flex; gap:7px; align-items:center; padding:7px; font-size:13px; font-weight:500; cursor:pointer }
.hide-city .entry-city,.hide-staff .entry-staff,.hide-state .entry-state,.hide-format .entry-format { display:none !important }
.eventtext > span + span::before { content:'·'; margin-inline:.3em; color:#596678 }
.fc-daygrid-event .entry-staff span { color:hsl(var(--member-hue) 46% 28%) }
#calendar { --record-fill:#edf3fa; --record-ink:#324b68; --record-edge:#53779c }
#calendar .fc-list-day:not(:first-child) { margin-top:12px }
#calendar .fc-daygrid-event { --record-fill:hsl(var(--person-hue,215) 58% 93%); --record-ink:hsl(var(--person-hue,215) 43% 30%); --record-edge:hsl(var(--person-hue,215) 48% 47%) }
#calendar .fc-h-event { border:0; margin-top:3px; margin-bottom:3px; background:var(--record-fill); box-shadow:none }
#calendar .fc-event-main { color:var(--record-ink) }
#calendar .fc-list-event { margin:4px 1px; border-radius:6px; background:#fff; overflow:hidden; transition:background-color 140ms ease-out }
#calendar .fc-list-event:is(:hover,:focus-within,:active) { background:var(--fc-list-event-hover-bg-color) }
#calendar .fc-list-event td,#calendar .fc-list-event:hover td,#calendar .fc-list-event-title a { background:transparent }
#calendar .fc-list-event .entry-state { margin-inline-start:.4em }
#calendar .fc-list-event .entry-state::before { content:none }
@media(prefers-reduced-motion:reduce) { #calendar .fc-list-event { transition:none } }
#calendar .fc-event:hover,#calendar .fc-event:focus-within,#calendar a.fc-event:focus-visible { box-shadow:inset 0 0 0 2px var(--record-edge) }
#calendar .fc-list-event:focus-within { outline:2px solid var(--record-edge); outline-offset:0 }
@media(max-width:760px) { .nav-caption { display:none }.display-options label { min-height:44px }.board-options .switch { flex:1 }.display-options summary { min-height:44px; display:flex; align-items:center } }
.display-options summary,.filter-box summary,.other-contacts summary,.quiet,.back,.agenda-link,.filters a,.pager a {
    display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:7px 11px; min-height:34px;
    background:white; border:1px solid #bfccdc; border-radius:8px; color:#304c72; text-decoration:none; font-weight:600; cursor:pointer;
}
.display-options summary::-webkit-details-marker,.filter-box summary::-webkit-details-marker,.other-contacts summary::-webkit-details-marker { display:none }
.display-options summary::after,.filter-box summary::after,.other-contacts summary::after {
    content:''; width:6px; height:6px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:translateY(-2px) rotate(45deg);
}
details[open] > summary:is(.display-options summary,.filter-box summary,.other-contacts summary)::after { transform:translateY(2px) rotate(225deg) }
.display-options[open] summary,.display-options summary:hover,.filter-box summary:hover,.back:hover,.agenda-link:hover,.quiet:hover { background:#eef3fa; border-color:#93a8c3 }
.filter-box summary { width:100%; justify-content:space-between; text-align:left }
.board .switch button { border:1px solid #ccd7e4; background:white }
.board .switch button[aria-pressed=true] { border-color:#92a8c8; background:#eaf1fa; color:#244b7d }
.team-directory { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:10px }
.team-member { display:flex; align-items:center; gap:12px; min-width:0; padding:14px; border:1px solid var(--line); border-radius:10px; text-decoration:none; color:var(--ink) }
.team-member:hover { background:#f3f6fb; border-color:#a9bace }
.team-member small { display:block; color:var(--mute); margin-top:3px }
.team-member .ui-icon { margin-left:auto; width:16px }
@media(max-width:760px) {
    .mobile-label { display:inline }.desktop-label { display:none }
    .workspace nav { padding-inline:4px; gap:2px }
    .workspace nav a { flex-direction:column; gap:3px; padding:4px 1px; font-size:11px; min-width:0 }
    .display-options summary,.filter-box summary,.other-contacts summary,.back,.agenda-link { min-height:44px }
    .workspace .account .quiet { padding-inline:8px }
}

/* Общий кабинет: центральная страница меняется между двумя панелями. */
html { scrollbar-gutter:stable }
.workspace { grid-template-columns:196px minmax(0,1fr) clamp(250px,20vw,320px); grid-template-areas:"menu content agenda" }
.workspace > .shell-head { grid-area:menu }
.workspace > main { grid-area:content }
.workspace > .day-panel { grid-area:agenda; position:sticky; top:16px; max-height:calc(100dvh - 32px); overflow:auto; align-self:start; margin-top:16px; border:1px solid var(--line); border-radius:14px }
.agenda-toggle { display:none }
.board { border:1px solid var(--line); border-radius:16px; background:white }
.auditor-profile { overflow:hidden; background:white; border:1px solid var(--line); border-radius:16px }
.profile-head { display:flex; gap:18px; align-items:center; flex-wrap:wrap; padding:24px; background:#e9f0f7; border-bottom:1px solid #d5e0eb }
.profile-head h1 { font-size:clamp(23px,2.1vw,34px) }
.profile-head p { margin:5px 0 0; color:#4b6176 }
.profile-head .button { margin-left:auto }
.profile-initials { display:grid; place-items:center; width:66px; height:66px; background:#314960; color:white; border-radius:19px; font-size:24px; font-weight:650; letter-spacing:.03em }
.profile-info { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding:24px }
.profile-info h2,.profile-next h2,.profile-assignments h2 { font-size:18px }
.profile-info dd { font-weight:550 }
.profile-channels { list-style:none; margin:9px 0; padding:0 }
.profile-channels li { display:flex; gap:10px; align-items:center; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--line); font-size:13px }
.profile-channels span { color:var(--mute) }.profile-channels .on { color:#23664c }
.profile-next { background:#f7f9fc; padding:16px 24px; border-top:1px solid var(--line) }
.profile-next a,.profile-audit { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:6px 12px; text-decoration:none }
.profile-next a { margin-top:8px }.profile-next a span,.profile-audit small { font-size:13px; color:var(--mute) }
.profile-next p { margin:.5em 0 0 }.profile-assignments { margin-top:15px }
.profile-assignments h2 small { margin-left:6px; color:var(--mute); font-weight:500 }
.profile-audit { border-top:1px solid var(--line); padding:12px 0 }
.profile-audit small { display:block; margin-top:3px }
.profile-audit:hover strong,.profile-next a:hover strong { text-decoration:underline }
@media(min-width:1101px) and (max-width:1320px) {
    .workspace { grid-template-columns:176px minmax(0,1fr) 248px; gap:12px }
    .workspace .assignment-top { grid-template-columns:1fr }
}
@media(min-width:761px) and (max-width:1100px) {
    .workspace { grid-template-columns:170px minmax(0,1fr); grid-template-areas:"menu agenda" "menu content"; grid-template-rows:auto 1fr }
    .workspace > main { padding-top:0 }
}
@media(max-width:1100px) {
    .workspace > .day-panel { position:static; margin:0 0 10px; padding:8px; max-height:none; background:#f6f9fc }
    .agenda-toggle { display:flex; width:100%; min-height:40px; justify-content:flex-start; border:0; background:transparent }
    .agenda-toggle span { margin-left:auto; width:8px; height:8px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(225deg) }
    .folded .agenda-toggle span { transform:rotate(45deg) }
    .folded .agenda-body { display:none }.agenda-body { padding:2px 6px 8px }
    .agenda-body .day-heading { justify-content:flex-end }.agenda-body .day-heading h2 { display:none }
}
@media(max-width:760px) {
    .profile-info { grid-template-columns:1fr; padding:16px; gap:14px }
    .profile-head { padding:16px; gap:12px }.profile-head .button { margin-left:0 }
    .profile-initials { width:48px; height:48px; border-radius:14px; font-size:19px }
    .profile-next { padding:16px }
}
