
@font-face {
  font-family: Manrope;
  src: url('/manrope-lat.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: Manrope;
  src: url('/manrope-cyr.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
:root {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #201c30;
  background: #f7f7fb;
  font-synthesis: none;
  --text: #201c30;
  --muted: #625e73;
  --faint: #716b83;
  --accent: #6540d6;
  --accent-dark: #5431bc;
  --background: #f7f7fb;
  --border: #ebe8f1;
  --soft: #faf9fc;
  --radius: 17px;
  --rail: 246px;
  font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
h1, h2, p { margin: 0; }
strong, b { font-weight: 750; }
svg { flex-shrink: 0; display: inline-block; vertical-align: middle; }
:focus-visible { outline: 2px solid #6c49df; outline-offset: 3px; }
#content:focus { outline: 0; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; top: 8px; left: 8px; background: white; z-index: 20; padding: 10px 16px; border-radius: 8px; }

.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); display: flex; flex-direction: column;
  border-right: 1px solid var(--border); background: #fff; padding: 27px 14px 18px; z-index: 6;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 41px; min-width: 0; }
.brand-icon {
  width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0;
  color: white; border-radius: 13px; background: linear-gradient(145deg,#8363f4,#633ed5);
  box-shadow: 0 5px 11px #6d4ae72d;
}
.brand strong { display: block; font-size: 23px; line-height: 1.12; letter-spacing: -.055em; font-weight: 800; }
.brand small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 650; margin-top: 5px; white-space: nowrap; }
.nav-group { margin: 0 0 23px; }
.nav-group p { color: var(--faint); font-size: 9.5px; font-weight: 800; letter-spacing: .085em; margin: 0 12px 8px; }
.nav-item {
  min-height: 43px; border-radius: 9px; display: flex; align-items: center; gap: 11px; position: relative;
  color: #565066; font-weight: 700; font-size: 13px; padding: 8px 11px; margin: 2px 0;
}
.nav-item svg { color: #716984; }
.nav-item:hover { background: #f6f3fd; }
.nav-item.selected { color: #5d37c8; background: #efe9fd; font-weight: 800; }
.nav-item.selected svg { color: #6540d6; }
.nav-item.selected::after { content: ''; width: 3px; height: 17px; position: absolute; right: 0; border-radius: 4px 0 0 4px; background: #7d58ec; }
.sidebar-bottom {
  display: flex; align-items: center; gap: 9px; padding: 10px 8px; background: #f8f6fc; border: 1px solid #f1edf6;
  border-radius: 12px; margin-top: auto;
}
.sidebar-bottom strong, .sidebar-bottom small { display: block; }
.sidebar-bottom strong { font-size: 11px; }
.sidebar-bottom small { font-size: 9.6px; color: var(--muted); margin-top: 2px; }
.sidebar-bottom .tile { width: 30px; height: 30px; border-radius: 8px; color: #675488; background: #eee8f8; }

.workspace { margin-left: var(--rail); min-width: 0; }
.topbar {
  height: 70px; padding: 0 32px; border-bottom: 1px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.global-search {
  display: flex; align-items: center; gap: 9px; width: min(390px, 100%); min-width: 0;
  padding: 0 10px 0 12px; height: 40px; border-radius: 9px; background: #f8f7fb; border: 1px solid #efecf4;
  color: var(--faint);
}
.global-search:focus-within { border-color: #b7a4ee; }
.global-search input { height: 100%; min-width: 0; width: 100%; border: 0; background: transparent; padding: 0; outline: 0; font-size: 12px; }
::placeholder { color: #726d81; opacity: 1; }
.global-search kbd { font: inherit; font-size: 11px; color: #695f7d; flex: 0 0 auto; border: 1px solid #e8e3f0; border-radius: 5px; padding: 1px 5px; background: #fff; }
.top-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 13px; }
.simple-shell .workspace { margin-left: 0; }
.simple-shell .sidebar, .simple-shell .global-search, .simple-shell .mobile-menu { display: none; }
.simple-shell .topbar { height: auto; min-height: 64px; }
.simple-shell .top-actions { width: 100%; gap: 10px 14px; flex-wrap: wrap; padding-block: 9px; }
.simple-shell .content { max-width: 1140px; margin-inline: auto; }
.employee-brand { display: inline-flex; align-items: center; gap: 8px; }
.employee-brand .brand-icon { width: 34px; height: 34px; border-radius: 9px; }
.employee-name { margin-left: auto; font-weight: 750; overflow-wrap: anywhere; min-width: 0; }
.simple-shell .top-actions > .button { white-space: normal; }
.access-card { width: min(100%, 410px); margin: clamp(24px, 9vh, 85px) auto 0; }
.access-card h1 { font-size: 23px; }
.access-card .panel-head { padding-bottom: 4px; }
.access-card .button { justify-self: start; }
.access-actions { display: grid; gap: 12px; }
.access-actions label { display: grid; gap: 5px; font-weight: 800; }
.icon-button { border: 0; background: transparent; color: var(--muted); min-width: 37px; min-height: 37px; border-radius: 9px; display: inline-grid; place-items: center; padding: 0; }
.icon-button:hover { background: #f1ecfb; color: var(--accent); }
.icon-button.subtle { background: #f7f5fb; color: #6f5a97; }
.icon-button.subtle:hover { background: #eee7fb; }
.bell-wrap { position: relative; }
.bell { position: relative; border: 1px solid #eeeaf4; }
.bell-dot { position: absolute; width: 8px; height: 8px; background: #805bed; border: 1.5px solid white; border-radius: 50%; inset: 7px 7px auto auto; }
.top-divider { height: 30px; width: 1px; background: var(--border); }
.account { border: 0; background: none; padding: 0; display: flex; align-items: center; text-align: left; gap: 9px; border-radius: 8px; }
.account strong, .account small { display: block; }
.account strong { font-size: 12px; }
.account small { font-size: 10px; color: var(--muted); margin-top: 2px; }
.account > svg { color: var(--faint); margin-left: 1px; }
.mobile-menu, .mobile-close, .veil { display: none; }
.popover { position: absolute; inset: 45px 0 auto auto; z-index: 8; width: 340px; border: 1px solid var(--border); background: white; border-radius: 14px; box-shadow: 0 12px 45px #25194821; }
.popover-head { padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--border); }
.popover-head h2 { font-size: 15px; }
.popover-head h2 span { color: var(--accent); margin-left: 4px; }
.popover-items { max-height: 360px; overflow: auto; }
.notice-row { border: 0; width: 100%; background: white; text-align: left; display: flex; align-items: center; gap: 12px; padding: 11px 15px; }
.notice-row + .notice-row { border-top: 1px solid var(--border); }
.notice-row:hover { background: var(--soft); }
.notice-row svg { color: var(--accent); }
.notice-row strong, .notice-row small { display: block; font-size: 12px; }
.notice-row small { color: var(--muted); margin-top: 3px; }

.content { width: min(100%, 1590px); margin: 0 auto; padding: 31px 32px 38px; min-width: 0; }
h1 { font-size: clamp(29px, 3vw, 39px); line-height: 1.14; letter-spacing: -.045em; font-weight: 800; }
h2 { font-size: 17px; line-height: 1.35; letter-spacing: -.027em; font-weight: 800; }
.subtitle, .page-intro p { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.5; font-weight: 550; }
.greeting, .page-intro { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 25px; }
.date-line { display: flex; gap: 7px; align-items: center; color: #675683; font-size: 12px; font-weight: 750; margin: 0 0 10px; }
.date-line svg { color: #785db4; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 41px;
  border: 1px solid #ebe6f3; background: white; color: #433950; border-radius: 9px; padding: 8px 13px;
  text-align: center; font-weight: 780; font-size: 12px; line-height: 1.22;
}
.button:hover { background: #f7f4fd; border-color: #ded3f3; }
.button.primary { color: #fff; background: #6c46df; border-color: #6c46df; box-shadow: 0 3px 8px #6c46df25; padding-inline: 15px; }
.button.primary:hover { background: #5d37cd; }
.button.danger-quiet { color: #a12e46; border-color: transparent; background: none; }
.button.danger-quiet:hover { background: #fff0f2; }
.button.danger { background: #a82743; color: #fff; border-color: #a82743; }
.button.danger:hover { background: #8c2038; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); font-weight: 800; }
.text-link:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.text-link svg { flex: 0 0 auto; }
.card { background: #fff; border: 1px solid #eae7f0; border-radius: var(--radius); min-width: 0; box-shadow: 0 2px 4px #38245c04; }
.tile { width: 39px; height: 39px; display: inline-grid; place-items: center; border-radius: 11px; flex: 0 0 auto; }
.tile.violet { background: #efe8ff; color: #6a40d4; }
.tile.amber { background: #fff3dc; color: #a36212; }
.tile.red { background: #ffeaed; color: #bc3652; }
.tile.green { background: #e6f7ee; color: #247654; }
.tile.blue { background: #e9f1ff; color: #3a65b2; }
.tile.neutral { background: #f3eff8; color: #766390; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.metric { display: block; padding: 16px 16px 14px; }
.metric:hover { border-color: #cab9ef; box-shadow: 0 4px 16px #6749af13; }
.metric-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 11px; }
.metric-arrow { color: #786e90; padding: 2px; }
.metric-value { font-size: 32px; line-height: 1; font-weight: 800; letter-spacing: -.065em; margin-bottom: 7px; font-variant-numeric: tabular-nums; }
.metric-label { font-size: 13px; line-height: 1.35; font-weight: 800; }
.metric-note { font-size: 10.8px; color: var(--muted); margin-top: 4px; line-height: 1.38; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, .445fr); gap: 18px; align-items: start; }
.dashboard-main, .dashboard-side, .stack { display: grid; gap: 18px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 17px 15px; min-width: 0; }
.panel-head p { color: var(--muted); font-size: 11.5px; margin-top: 4px; font-weight: 550; }
.panel-head .text-link { flex: 0 0 auto; }
.table-wrap { overflow-x: auto; }
.task-list-wrap { container: task-list / inline-size; }
.task-table { width: 100%; border-collapse: collapse; table-layout: auto; text-align: left; font-size: 12px; }
.task-table th { font-size: 10.5px; line-height: 1.3; color: #655e76; text-align: left; font-weight: 800; background: #f8f7fb; padding: 10px 11px; border-block: 1px solid #f0edf4; }
.task-table td { min-width: 0; padding: 10px 11px; height: 54px; vertical-align: middle; border-bottom: 1px solid #f0edf4; }
.task-table tr:last-child td { border-bottom-color: transparent; }
.task-table th:first-child, .task-table td:first-child { padding-left: 17px; }
.task-table th:last-child, .task-table td:last-child { padding-right: 17px; }
.task-table tbody tr:hover { background: #fdfcff; }
[data-task-row] { cursor: pointer; }
[data-task-row]:hover .plain-title { color: var(--accent); }
.task-table .task-name { width: 34%; }
.task-table.summary .task-name { width: 32%; }
.task-table.summary .assignee-cell { width: 21%; }
.task-table.summary .status-cell { width: 18%; }
.task-last-action { color: #554d64; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.last-action-label { display: none; }
.task-table .row-control { text-align: right; }
.plain-title {
  border: 0; background: transparent; padding: 2px 0; font-weight: 800; text-align: left; line-height: 1.38;
  display: inline-flex; gap: 8px; align-items: baseline; max-width: 100%;
}
.plain-title:hover { color: var(--accent); }
.plain-title span { overflow-wrap: anywhere; min-width: 0; }
.task-marker { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; background: #b1a3ca; display: inline-block; vertical-align: middle; }
.task-marker.high { background: #d84c65; }
.task-marker.normal { background: #a083d9; }
.task-marker.low { background: #7196a7; }
.priority-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--muted); font-size: 11px; font-weight: 750; }
.priority-label.high { color: #a32e48; }
.name-with-avatar { display: inline-flex; min-width: 0; align-items: center; gap: 6px; color: #5e566d; font-size: 11px; font-weight: 750; }
.name-with-avatar span:last-child { overflow-wrap: anywhere; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; width: 34px; height: 34px; font-size: 11px; font-weight: 800; letter-spacing: -.04em; }
.avatar.small { width: 25px; height: 25px; font-size: 9px; }
.avatar.large { width: 46px; height: 46px; font-size: 14px; }
.avatar.lavender { color: #5d3fa1; background: #eee6fb; }
.avatar.peach { color: #994731; background: #fcebdd; }
.avatar.sky { color: #2f56a0; background: #e7effe; }
.avatar.rose { color: #a43e64; background: #fae9f1; }
.avatar.mint { color: #246f59; background: #def4ec; }
.avatar.sand { color: #8b5a25; background: #f6eddb; }
.due { white-space: nowrap; color: #554d64; font-size: 11.5px; font-weight: 750; }
.due.late { color: #b42e4c; }
.badge { display: inline-flex; gap: 5px; align-items: center; font-size: 10px; font-weight: 800; padding: 5px 7px; border-radius: 7px; white-space: nowrap; }
.badge > span { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.badge.new { color: #5f4b87; background: #f0ebf9; }
.badge.progress { color: #3f56a6; background: #eaf0ff; }
.badge.done { color: #247050; background: #e7f6ed; }
.status-control { position: relative; display: inline-flex; align-items: center; gap: 2px; cursor: pointer; }
.status-control svg { color: #706483; }
.status-control select { opacity: 0; position: absolute; inset: 0; width: 100%; min-height: 100%; cursor: pointer; }
.status-control:focus-within { outline: 2px solid #8e6feb; outline-offset: 3px; border-radius: 7px; }
.status-control:hover .badge { filter: saturate(1.7); }
.task-panel { overflow: hidden; }

.deadline-list { padding: 0 14px; }
.deadline-row { width: 100%; border: 0; border-bottom: 1px solid #f0edf4; background: #fff; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; text-align: left; gap: 9px; min-height: 62px; padding: 8px 2px; }
.deadline-row:last-child { border-bottom: 0; }
.deadline-row:hover { background: #fbf8ff; }
.deadline-row .tile { width: 34px; height: 34px; border-radius: 9px; }
.deadline-row strong { display: block; overflow-wrap: anywhere; font-size: 11.5px; line-height: 1.35; }
.deadline-row small { display: block; color: var(--muted); font-weight: 800; font-size: 10px; margin-top: 3px; }
.deadline-row small.red { color: #b8324d; }
.deadline-row small.amber { color: #91570f; }
.deadline-row small.violet { color: #65548c; }
.deadline-row > svg, .quick-actions > * > svg { color: #7d728d; }
.panel-foot { padding: 12px 16px 14px; border-top: 1px solid #f0edf4; }
.quick-panel .panel-head { padding-bottom: 7px; }
.quick-actions { padding: 0 15px 10px; }
.quick-actions > * { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px 1px; min-height: 45px; text-align: left; background: none; border: 0; font-size: 11.5px; font-weight: 800; }
.quick-actions > *:hover { color: var(--accent); }
.quick-actions .tile { width: 32px; height: 32px; border-radius: 8px; }
.advice-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.advice-panel .tile { width: 36px; height: 36px; }
.advice-list { padding: 0 16px 10px; }
.advice-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #f0edf4; padding: 10px 2px; }
.advice-list a:hover strong { color: var(--accent); }
.advice-list strong, .advice-list small { display: block; }
.advice-list strong { font-size: 12px; }
.advice-list small { font-size: 11px; color: var(--muted); margin-top: 3px; }
.advice-list svg { color: var(--accent); }
.empty { padding: 30px 16px; color: var(--muted); text-align: center; font-size: 13px; }
.empty p { margin-top: 10px; }
.loading { padding: 20px; color: var(--muted); }

.page-intro { margin-top: 5px; }
.filters { display: flex; padding: 14px 16px; align-items: center; justify-content: space-between; gap: 10px 15px; flex-wrap: wrap; }
.filter-links { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-links a { border-radius: 8px; padding: 8px 9px; color: var(--muted); font-weight: 750; font-size: 11.5px; }
.filter-links a:hover { background: #f7f3fc; }
.filter-links a.active { background: #efe8fd; color: #613ac9; }
.select-filter select { max-width: 100%; }
select, .modal-form input, .modal-form textarea, .local-search {
  border: 1px solid #e6e1ee; border-radius: 9px; min-height: 39px; padding: 8px 10px;
  background: #fff; font-size: 12px;
}
select { padding-right: 21px; }
.task-table .status-control select { padding: 0; }
.list-foot { border-top: 1px solid var(--border); padding: 12px 17px; color: var(--muted); font-size: 11px; }
.count-tag { font-size: 10px; color: #675488; background: #f1ecf8; padding: 4px 7px; border-radius: 7px; vertical-align: middle; font-weight: 800; white-space: nowrap; letter-spacing: 0; }
.people-tools { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.local-search { display: flex; align-items: center; color: var(--faint); gap: 8px; min-width: 0; width: min(335px, 100%); }
.local-search:focus-within { border-color: #9c81eb; }
.local-search input { min-width: 0; width: 100%; border: 0; outline: 0; padding: 0; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 204px), 1fr)); gap: 14px; }
.people-grid .empty { grid-column: 1 / -1; }
.person-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 15px; }
.person-card:hover { border-color: #cbb9ee; }
.person-card-top { display: flex; width: 100%; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 10px; }
.person-card-top .icon-button { min-width: 30px; min-height: 30px; }
.person-card strong, .person-card > span { overflow-wrap: anywhere; max-width: 100%; }
.person-card strong { font-size: 14px; }
.person-card > span:not(.person-card-top) { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.person-card .department { background: #f1ecf8; color: #665286; border-radius: 6px; padding: 3px 7px; margin-top: 10px !important; }
.search-subhead { margin: 0 0 11px; }
.org-panel { padding-bottom: 16px; max-width: 960px; }
.org-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.org-actions .button { min-height: 35px; }
.org-tree { overflow-x: auto; padding: 0 17px 7px; }
.org-tree ul { margin: 0; padding: 0; list-style: none; }
.org-tree ul ul { padding-left: 21px; margin-left: 16px; border-left: 1px solid #e4dcef; }
.org-tree li { position: relative; }
.org-tree ul ul > li::before { content: ''; position: absolute; top: 28px; left: -21px; width: 18px; height: 1px; background: #e4dcef; }
.org-row { display: flex; align-items: center; gap: 3px; margin: 6px 0; min-width: 180px; }
.org-spacer { flex: 0 0 37px; }
.org-person { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1 1 auto; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; background: #fcfbfe; text-align: left; }
.org-person:hover { background: #f4effd; border-color: #d3c4f1; }
.org-person > span:nth-child(2) { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.org-person strong, .org-person small { display: block; font-size: 12px; }
.org-person small { color: var(--muted); font-size: 10.5px; margin-top: 3px; }
.org-person > svg { color: var(--faint); }
.history-list { list-style: none; padding: 0 16px; margin: 0; }
.history-list li { display: grid; align-items: start; grid-template-columns: auto minmax(0, 1fr) max-content; gap: 11px; padding: 13px 1px; border-top: 1px solid var(--border); }
.history-list .tile { width: 35px; height: 35px; }
.history-list strong, .history-action { display: block; }
.history-list strong { font-size: 13px; overflow-wrap: anywhere; }
.history-action { font-size: 10.5px; color: var(--accent); margin: 0 0 4px; font-weight: 800; }
.history-list p { color: var(--muted); font-size: 11.5px; margin-top: 4px; overflow-wrap: anywhere; }
.history-list time { color: var(--muted); font-size: 11px; }
.settings-card { max-width: 760px; }
.settings-row { display: flex; gap: 12px; justify-content: space-between; align-items: center; cursor: pointer; border-top: 1px solid var(--border); padding: 15px 17px; }
.settings-row strong, .settings-row small { display: block; }
.settings-row strong { font-size: 13px; }
.settings-row small { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.switch { display: inline-flex; position: relative; }
.switch input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.switch > span { width: 42px; height: 24px; background: #e2dce9; border-radius: 15px; pointer-events: none; }
.switch > span::before { content: ''; background: white; width: 18px; height: 18px; position: absolute; left: 3px; top: 3px; border-radius: 50%; box-shadow: 0 1px 3px #20193622; }
.switch input:checked + span { background: #7249e3; }
.switch input:checked + span::before { left: 21px; }
.switch input:focus-visible + span { outline: 2px solid #7249e3; outline-offset: 3px; }
.settings-foot { padding: 13px 17px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }

dialog { border: 1px solid #e8dfef; border-radius: 19px; width: min(525px, calc(100vw - 26px)); max-height: min(720px, calc(100dvh - 26px)); padding: 0; color: var(--text); box-shadow: 0 20px 70px #20153733; overflow: auto; }
dialog::backdrop { background: #211b3c70; }
.modal-head { padding: 17px 18px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 20px; overflow-wrap: anywhere; }
.modal-head p { color: var(--muted); font-size: 11px; margin-top: 3px; }
.modal-head .icon-button { min-width: 32px; min-height: 32px; }
.modal-body { padding: 17px 18px; }
.modal-body > p { overflow-wrap: anywhere; }
.modal-form .modal-body { display: grid; gap: 13px; }
.modal-form label { display: block; min-width: 0; font-size: 12px; font-weight: 800; }
.modal-form label > input, .modal-form label > select, .modal-form textarea { display: block; width: 100%; max-width: 100%; min-width: 0; margin-top: 5px; font-weight: 550; }
.modal-form textarea { resize: vertical; }
.modal-form .optional { color: var(--muted); font-size: 10px; font-weight: 550; margin-left: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.modal-foot { border-top: 1px solid var(--border); padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.modal-buttons { display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; margin-left: auto; }
.form-error { color: #a82743; background: #fff2f4; border-radius: 7px; padding: 8px; font-size: 12px; }
.detail-chips, .detail-person { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.detail-person small { color: var(--muted); display: block; margin-top: 4px; }
.details { margin: 0; font-size: 12px; }
.details div { padding: 8px 0; border-top: 1px solid var(--border); }
.details dt { color: var(--muted); font-size: 11px; font-weight: 750; }
.details dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.details dd a { margin-left: 3px; }
.details .message { white-space: pre-wrap; line-height: 1.55; }
.toast { z-index: 15; position: fixed; right: 24px; bottom: 20px; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 30px); padding: 11px 15px; color: #245c47; background: #f2fbf6; border: 1px solid #d6ebde; border-radius: 10px; box-shadow: 0 5px 25px #21163720; font-size: 12px; font-weight: 800; }
.toast.error { color: #9b2b47; background: #fff0f3; border-color: #f3d9e1; }

@media (min-width: 1350px) {
  .content { padding-inline: 37px; }
  .topbar { padding-inline: 37px; }
  .metric { padding-inline: 18px; }
  .panel-head { padding-inline: 19px; }
}
@media (max-width: 1180px) {
  :root { --rail: 214px; }
  .content, .topbar { padding-inline: 23px; }
  .sidebar { padding-inline: 11px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) minmax(240px, .445fr); gap: 14px; }
  .dashboard-main, .dashboard-side { gap: 14px; }
  .task-table.summary td, .task-table.summary th { padding-inline: 7px; }
  .task-table.summary td:first-child, .task-table.summary th:first-child { padding-left: 12px; }
  .task-table.summary td:last-child, .task-table.summary th:last-child { padding-right: 10px; }
}
@media (max-width: 1060px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-side { grid-row: 2; grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 840px) {
  .sidebar { visibility: hidden; transform: translateX(-100%); width: min(276px, calc(100vw - 35px)); padding: 21px 12px 13px; }
  .menu-open .sidebar { transform: none; visibility: visible; }
  .mobile-close { display: inline-grid; position: absolute; top: 21px; right: 12px; min-width: 40px; min-height: 44px; }
  .menu-open .veil { position: fixed; inset: 0; z-index: 5; border: 0; background: #211b3c69; display: block; }
  .menu-open { overflow: clip; }
  .mobile-menu { display: inline-grid; margin-left: -6px; }
  .workspace { margin-left: 0; }
  .topbar { gap: 9px; height: 59px; }
  .global-search { margin-right: auto; }
  .content { padding-top: 24px; }
}
@media (max-width: 590px) {
  .topbar, .content { padding-inline: 14px; }
  .content { padding-top: 19px; }
  .topbar { gap: 6px; }
  .top-actions { gap: 6px; }
  .top-divider, .account > span:not(.avatar), .account > svg, .global-search kbd { display: none; }
  .mobile-menu { min-height: 42px; min-width: 37px; }
  .global-search { height: 37px; min-width: 65px; padding-inline: 6px; gap: 5px; }
  .global-search input { font-size: 16px; }
  .global-search input::placeholder { font-size: 12px; }
  .global-search svg { width: 16px; }
  .popover { position: fixed; inset: 55px 11px auto auto; width: min(330px, calc(100vw - 22px)); }
  .greeting, .page-intro { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .greeting h1, .page-intro h1 { font-size: 29px; }
  .subtitle, .page-intro p { margin-top: 7px; font-size: 12px; }
  .greeting .button, .page-intro .button { min-height: 44px; }
  .date-line { margin-bottom: 7px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 13px; }
  .metric { padding: 11px 10px; border-radius: 13px; }
  .metric .tile { width: 33px; height: 33px; border-radius: 8px; }
  .metric .tile svg { width: 18px; }
  .metric-top { margin-bottom: 8px; }
  .metric-value { font-size: 28px; }
  .metric-label { font-size: 12px; }
  .metric-note { font-size: 10px; }
  .dashboard-side { grid-template-columns: minmax(0, 1fr); }
  .dashboard-main, .dashboard-side { display: contents; }
  .task-panel { grid-row: 1; }
  .deadline-panel { grid-row: 2; }
  .quick-panel { grid-row: 3; }
  .advice-panel { grid-row: 4; }
  .panel-head { padding: 13px 12px; }
  .panel-head .text-link { font-size: 10.5px; gap: 3px; }
  .panel-head .text-link svg { width: 14px; }
  .task-table thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .task-table, .task-table tbody { display: block; }
  .task-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; padding: 9px 12px; border-top: 1px solid var(--border); }
  .task-table td, .task-table.summary td, .task-table td:first-child, .task-table td:last-child { display: block; border: 0; padding: 0; height: auto; width: auto !important; }
  .task-table .task-name { grid-column: 1 / -1; }
  .task-table .due-cell { grid-column: 2; grid-row: 2; justify-self: end; }
  .task-table .status-cell { grid-column: 1; grid-row: 3; }
  .task-table.employee-table .status-cell { grid-row: 2; }
  .task-table .priority-cell { grid-column: 2; grid-row: 3; justify-self: end; }
  .task-table .task-last-action { grid-column: 1 / -1; }
  .task-table.employee-table .task-last-action { grid-column: 1; grid-row: 3; overflow-wrap: anywhere; }
  .task-last-action .last-action-label { display: inline; margin-right: 7px; color: var(--muted); font-weight: 750; }
  .task-table .row-control { display: none; }
  .task-table .plain-title { font-size: 13px; min-height: 29px; align-items: baseline; }
  .task-table .status-control { min-height: 35px; }
  .task-table .status-control select { font-size: 16px; }
  .filters { padding: 10px; gap: 6px; }
  .filter-links a { padding-inline: 7px; line-height: 1.3; }
  .org-panel .panel-head { align-items: flex-start; flex-direction: column; }
  .org-toggle { min-width: 30px; }
  .org-spacer { flex-basis: 30px; }
  .org-tree ul ul { margin-left: 12px; padding-left: 9px; }
  .org-tree ul ul > li::before { left: -9px; width: 8px; }
  .org-person .count-tag { display: none; }
  .org-person .avatar { width: 30px; height: 30px; }
  .history-list li { grid-template-columns: auto minmax(0, 1fr); gap: 5px 9px; }
  .history-list time { grid-column: 2; }
  .modal-form input, .modal-form textarea, .modal-form select, .local-search input, .select-filter select { font-size: 16px; }
  .toast { right: 10px; bottom: 12px; }
}
@media (max-width: 350px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .topbar, .content { padding-inline: 9px; }
  .greeting h1 { font-size: 25px; }
}
@media (min-width: 591px) {
  @container task-list (max-width: 660px) {
    .task-table:not(.summary) :is(th, td) { padding-inline: 5px; }
    .task-table:not(.summary) .task-name { width: 27%; }
  }
}

.due { display: inline-flex; flex-direction: column; gap: 2px; }
.due small { font-size: 10px; font-weight: 650; color: var(--muted); }
.due.late small { color: inherit; }
.task-marker.urgent { background: #b42442; width: 7px; height: 7px; }
.priority-label.urgent { color: #a82342; font-weight: 850; }
.task-tag { display: inline-block; border-radius: 6px; background: #f0ebfb; color: #69469d; font-size: 10px; font-weight: 800; padding: 3px 6px; line-height: 1.4; }
.task-tag.urgent { background: #ffe9ee; color: #9c2140; }
.task-name .task-tag { margin: 3px 5px 0 14px; }
.deadline-links { display: flex; flex-wrap: wrap; gap: 7px 12px; }

.deadline-fields { display: block; min-width: 0; border: 1px solid var(--border); border-radius: 10px; margin: 0; padding: 8px 10px 10px; }
.deadline-fields legend { color: #584375; padding: 0 4px; font-size: 12px; font-weight: 800; }
.deadline-fields small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.main-task-details .exact-due { color: #39265a; font-size: 15px; }
.exact-due strong { font-weight: 850; white-space: nowrap; }
.main-task-details dt .task-tag { vertical-align: middle; margin-left: 4px; }
.task-toolbar, .task-primary-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.task-toolbar { justify-content: space-between; margin-bottom: 7px; }
.task-toolbar .detail-chips { margin: 0; gap: 6px; }
.task-primary-actions .button, .task-view { min-height: 34px; }
.task-view { max-width: 100%; padding: 4px 6px; background: #f7f4fb; font-weight: 650; }
.main-task-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.main-task-details .task-description { grid-column: 1 / -1; }
.main-task-details > div { min-width: 0; padding-block: 6px; }
.main-task-details dt, .main-task-details dd { overflow-wrap: anywhere; }
.task-section { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--border); }
.section-note { color: var(--muted); font-size: 12px; margin: 0 0 8px; }
.activity-form { display: grid; gap: 8px; min-width: 0; }
.activity-form > .button { justify-self: start; }
.activity-form label:not(.inline-check) { display: block; font-size: 12px; font-weight: 800; }
.activity-form input:not([type=hidden], [type=checkbox]), .activity-form textarea {
  display: block; width: 100%; min-width: 0; max-width: 100%; margin-top: 3px; border: 1px solid #e6e1ee;
  border-radius: 8px; padding: 8px 9px; min-height: 39px; background: white; font-size: 12px; font-weight: 550;
}
.activity-form textarea { resize: vertical; }
.extension-details summary { color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 800; padding: 7px 0; }
.extension-details[open] summary { margin-bottom: 5px; }
.extension-record { padding: 10px; border-radius: 9px; background: var(--soft); margin-bottom: 8px; }
.extension-record.pending { background: #fff8eb; }
.extension-record.pending .task-tag { background: #ffedc9; color: #874c09; }
.extension-record.approved .task-tag { background: #e6f7ee; color: #247050; }
.extension-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; font-size: 12px; }
.extension-record p { font-size: 12px; margin: 6px 0; }
.extension-record small, .step-list small, .step-list time, .comment-list time { color: var(--muted); font-size: 10.5px; }
.decision-actions, .step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.decision-actions { margin-top: 8px; }
.inline-check, .step-list label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.inline-check { font-size: 11px; color: var(--muted); margin-right: 5px; }
.inline-check input, .step-list input { accent-color: var(--accent); width: 17px; height: 17px; flex: 0 0 auto; margin: 0; }
.step-list, .comment-list { list-style: none; padding: 0; margin: 0 0 9px; }
.step-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 6px 0; }
.step-list time { max-inline-size: 17ch; text-align: right; font-variant-numeric: tabular-nums; }
.step-list strong, .step-list small { display: block; overflow-wrap: anywhere; }
.step-list strong { font-size: 12px; }
.step-list input:checked + span strong { text-decoration: line-through; color: var(--muted); }
.comment-list li { border-radius: 8px; background: var(--soft); padding: 8px; margin-bottom: 5px; font-size: 12px; }
.comment-list li > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 7px; margin-bottom: 4px; }
.task-section .message { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 590px) {
  .due { align-items: flex-end; }
  .activity-form input:not([type=hidden], [type=checkbox]), .activity-form textarea, .task-view { font-size: 16px; }
  .task-section .button { min-height: 42px; }
}

.deadline-presets { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.duration-button {
  background: #f7f3fc; border: 1px solid #ece4f6; border-radius: 7px; color: #5a3d8d;
  font-size: 11.5px; font-weight: 800; padding: 5px 9px; min-height: 32px;
}
.duration-button:hover { border-color: #ba9de8; background: #f2eafb; }
.duration-button[aria-pressed=true] { border-color: #aa8adf; background: #ecddfb; color: #4a2d7b; }
.deadline-feedback { margin-top: 6px; }

dialog:has(.task-details) { width: min(850px, calc(100vw - 26px)); height: min(585px, calc(100dvh - 26px)); }
dialog:has(.task-details) .modal-head { position: sticky; top: 0; z-index: 2; background: #fff; padding-top: 11px; padding-bottom: 10px; }
.task-details { padding-top: 9px; }
.task-sections, .task-section-column { display: grid; gap: 7px; min-width: 0; align-content: start; }
.task-sections { margin-top: 5px; }
@media (min-width: 650px) {
  .task-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.task-section { margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 9px; min-width: 0; }
.task-section > summary, .task-section-heading {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  min-height: 41px; padding: 8px 10px; font-size: 12.5px; font-weight: 800;
}
.task-section > summary { cursor: pointer; list-style: none; }
.task-section-heading h3 { margin: 0; font-size: inherit; overflow-wrap: anywhere; }
.task-section > summary::-webkit-details-marker { display: none; }
.task-section > summary:hover { background: var(--soft); border-radius: 9px; }
.task-section > summary > span:first-child { margin-right: auto; }
.task-section > summary small, .task-section-heading small { color: #68518b; font-size: 10px; font-weight: 800; }
.task-section > summary svg { color: var(--muted); }
.task-section[open] > summary svg { transform: rotate(180deg); }
.task-section-body { padding: 2px 10px 10px; }
.task-section-body .comment-list, .extension-records {
  max-height: 185px; overflow-y: auto; overflow-x: hidden;
}
.extension-records .extension-record:last-child { margin-bottom: 3px; }
.history-actor { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.task-log { list-style: none; padding: 0; margin: 0; }
.task-log li { border-top: 1px solid #efecf4; padding: 7px 0 7px 10px; position: relative; }
.task-log li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%; background: #a298b1; position: absolute; top: 13px; left: 0;
}
.task-log .log-event-step::before { background: #8062ad; }
.task-log .log-event-extension::before { background: #a97732; }
.log-event-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; font-size: 11.5px; font-weight: 650; }
.log-event-head strong { font-weight: 800; }
.log-tag { border-radius: 5px; padding: 2px 5px; background: #f1ebf8; color: #604286; font-size: 9px; font-weight: 800; }
.log-event-extension .log-tag { background: #fbf0df; color: #805617; }
.log-event-meta { display: flex; gap: 3px 8px; flex-wrap: wrap; color: var(--muted); font-size: 10.5px; margin-top: 3px; }
.task-log p { color: #514762; font-size: 11.5px; margin-top: 4px; overflow-wrap: anywhere; white-space: pre-wrap; }
.log-expand > summary { cursor: pointer; color: var(--accent); font-weight: 800; font-size: 11.5px; padding: 7px 0; }
.task-log-older { max-height: 245px; overflow: auto; }
.legacy-history { font-size: 11px; margin: 5px 0 0; }
@media (max-width: 590px) {
  .duration-button { min-height: 38px; padding-inline: 8px; }
  .task-section > summary { min-height: 44px; }
}

.telegram-body { display: grid; gap: 12px; border-top: 1px solid var(--border); padding: 16px 17px 18px; font-size: 13px; }
.telegram-body p { line-height: 1.5; }
.telegram-form { display: grid; justify-items: start; gap: 10px; }
.telegram-form label { display: grid; width: min(100%, 410px); gap: 5px; font-size: 12px; font-weight: 800; }
.telegram-form input { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #e6e1ee; border-radius: 9px; background: #fff; }
.telegram-instructions { padding-left: 19px; margin: 0; line-height: 1.6; }
.telegram-instructions li + li { margin-top: 4px; }
.telegram-instructions code { color: #604286; font-size: 12px; font-weight: 700; }
.telegram-state, .telegram-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.telegram-state strong { overflow-wrap: anywhere; }
.telegram-body blockquote { margin: 0; padding: 10px 12px; border-radius: 8px; background: #f6f2fd; color: #503771; font-weight: 700; line-height: 1.5; }
@media (max-width: 590px) {
  .telegram-form input { font-size: 16px; }
}

.assistant-inbox { display: grid; width: min(100%, 840px); gap: 12px; }
.assistant-filters { gap: 6px; }
.assistant-filters a { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--border); }
.assistant-case .panel-head { gap: 7px; }
.assistant-case .panel-head > div { min-width: 0; overflow-wrap: anywhere; }
.assistant-case .panel-head .task-tag { flex: 0 0 auto; max-width: 42%; }
.task-tag.resolved { color: #295e4d; background: #e9f4ef; }
.assistant-body { display: grid; gap: 12px; border-top: 1px solid var(--border); padding: 14px 17px 16px; }
.assistant-deadlines { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
.assistant-deadlines div { padding: 7px 10px; border-radius: 8px; background: var(--soft); }
.assistant-deadlines dt { color: var(--muted); font-size: 11px; }
.assistant-deadlines dd { margin: 3px 0 0; color: #39265a; font-size: 13px; font-weight: 800; }
.assistant-reason { font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-recommendation { display: grid; gap: 6px; background: #f5f0fc; border: 1px solid #ece3f8; border-radius: 10px; padding: 10px 12px; }
.assistant-recommendation div { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; align-items: center; }
.assistant-recommendation h3 { margin: 0; color: #523480; font-size: 13px; font-weight: 850; }
.assistant-recommendation span, .assistant-recommendation small { color: #68518b; font-size: 10.5px; overflow-wrap: anywhere; }
.assistant-recommendation p, .assistant-last-reply p { font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-controls, .assistant-links { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.assistant-links .plain-title, .assistant-controls .plain-title { color: var(--accent); font-size: 12px; }
.assistant-draft, .assistant-last-reply { background: var(--soft); border: 1px solid var(--border); border-radius: 9px; padding: 10px; }
.assistant-draft label { display: grid; gap: 6px; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.assistant-draft textarea { width: 100%; resize: vertical; padding: 8px; border: 1px solid #e6e1ee; border-radius: 8px; font-weight: 550; background: white; }
.assistant-last-reply strong { font-size: 11.5px; }
.assistant-last-reply p { margin-top: 4px; }
.assistant-reply-source { padding-bottom: 4px; font-size: 12px; }
.assistant-reply-source p { padding: 7px 9px; margin-top: 4px; border-radius: 8px; background: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-reply-preview { border-top: 1px solid var(--border); }
.assistant-question { color: #79500d; background: #fff5e3; border-radius: 7px; padding: 8px; font-size: 12px; }
.comment-list li > .comment-reply { display: grid; gap: 3px; margin: 6px 0 0 7px; padding: 5px 0 0 8px; border-left: 2px solid #d5c7e9; }
.comment-reply > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; }
@media (max-width: 590px) {
  .assistant-body { padding-inline: 12px; }
  .assistant-draft textarea { font-size: 16px; }
}
.nav-count { margin-left: auto; padding: 2px 6px; border-radius: 6px; color: #604286; background: #f0e9fa; font-size: 10px; font-weight: 850; }

.telegram-review { display: grid; gap: 9px; border-top: 1px solid var(--border); padding-top: 12px; }
.telegram-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.telegram-review-head h3 { margin: 0; font-size: 13px; font-weight: 850; }

.report-count { font-weight: 850; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.report-mobile-label { display: none; }
@media (max-width: 550px) {
  .team-deadlines tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
  .team-deadlines tr td:first-child { grid-column: 1 / -1; }
  .team-deadlines .report-mobile-label { display: block; color: var(--muted); font-size: 10px; }
}

.team-report-tabs { margin: 0 0 12px; }
.curator-manager { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; margin-bottom: 12px; }
.curator-manager select { max-width: 100%; }
.curator-report { display: grid; gap: 11px; }
.curator-asof { color: var(--muted); font-size: 12px; line-height: 1.5; }
.curator-section { border-top: 1px solid var(--border); padding: 11px 16px 13px; }
.curator-counts { display: flex; flex-wrap: wrap; gap: 4px 11px; color: var(--muted); font-size: 11px; }
.curator-counts strong { color: var(--text); }
.curator-task-list { margin: 8px 0 0; padding: 0; list-style: none; }
.curator-task-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; padding: 4px 0; border-top: 1px solid var(--border); }
.curator-task-list button { font-size: 12px; max-width: 100%; overflow-wrap: anywhere; }
.curator-task-list small { color: var(--muted); font-size: 10.5px; }
.telegram-form .report-enable { display: flex; width: auto; align-items: center; gap: 7px; }
.telegram-form .report-enable input { width: auto; min-height: 0; margin: 0; }
.report-times { display: grid; width: min(100%, 410px); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.report-times label { min-width: 0; }
.report-times input { width: 100%; }
@media (max-width: 390px) {
  .report-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .curator-section { padding-inline: 12px; }
}
.curator-urgent { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.curator-urgent h2 { font-size: 15px; }
.curator-urgent p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.curator-list { margin-top: 8px; }
.curator-list summary { cursor: pointer; color: var(--accent); font-size: 12px; font-weight: 800; }

.notes-layout { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(0, 1.65fr); align-items: start; gap: 16px; }
.notes-compose, .notes-toolbar, .note { padding: 16px; }
.notes-compose, .notes-form, .notes-library, .notes-list { display: grid; gap: 12px; min-width: 0; }
.notes-compose h2 { font-size: 17px; }
.notes-compose label { display: grid; gap: 5px; font-size: 12px; font-weight: 800; }
.notes-compose textarea, .notes-filters input {
  width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 9px;
  padding: 9px 10px; background: white; font-weight: 550;
}
.notes-compose textarea { resize: vertical; }
.notes-compose .button { justify-self: start; }
.notes-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.notes-tabs, .notes-filters, .note-meta, .note-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.notes-tabs [aria-pressed="true"] { border-color: #e2d9ff; background: #f1ecff; color: var(--accent-dark); }
.notes-filters { flex: 1 1 270px; }
.notes-filters input { flex: 1; width: auto; }
.note-meta time { color: var(--muted); font-size: 12px; }
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; margin: 8px 0; }
.note-text a { color: var(--accent-dark); text-decoration: underline; }
@media (max-width: 800px) {
  .notes-layout { grid-template-columns: minmax(0, 1fr); }
  .notes-compose textarea, .notes-compose select, .notes-filters input, .notes-filters select { font-size: 16px; }
}
@media (max-width: 390px) {
  .notes-filters input { flex-basis: 100%; }
}
