@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin.woff2) format('woff2');
  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: 'Source Serif 4';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(/fonts/source-serif-4-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(/fonts/source-serif-4-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(/fonts/source-serif-4-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(/fonts/source-serif-4-latin.woff2) format('woff2');
  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;
}

:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  --ink: #16304f;
  --text: #1f2833;
  --muted: #4c5d70;
  --line: #c8d4e2;
  --rule: #c6cfda;
  --wash: #eaf0f5;
  --paper: #fff;
  --canvas: #fff;
  --accent: #b3282d;
  --heading: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --status-planned: #626262;
  --status-active: #356ee7;
  --status-review: #d88a28;
  --status-done: #2f8a6e;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: var(--ink); }
.workspace-toolbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; flex-wrap: wrap; gap: 6px clamp(12px, 2vw, 30px); padding: 11px max(clamp(16px, 4vw, 54px), calc((100% - 1592px) / 2)); background: var(--canvas); border-bottom: 1px solid var(--rule); }
.workspace-toolbar [hidden] { display: none; }
.main-nav, .workspace-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav-link { display: block; padding: 9px 10px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 650; border: 1px solid transparent; }
.nav-link:hover { background: var(--wash); }
.nav-link[aria-current], .reference-menu.active summary { color: var(--ink); border-bottom-color: var(--accent); }
.workspace-tools { margin-left: auto; gap: 8px; }
.current-role { color: var(--muted); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.main { width: 100%; padding: 38px clamp(16px, 4vw, 54px) 46px; max-width: 1700px; margin: auto; }
.main:focus { outline: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1 { font: 650 clamp(28px, 3.5vw, 46px)/1.08 var(--heading); letter-spacing: -.025em; margin-bottom: 0; overflow-wrap: anywhere; }
h2 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 15px; }
h3 { font-size: 16px; margin-bottom: 9px; }
p { line-height: 1.55; }
.page-head { position: relative; border-bottom: 1px solid var(--line); padding: 0 0 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.page-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 46px; height: 2px; background: var(--accent); }
.page-head p { margin: 8px 0 0; }
.page-head .actions { align-self: center; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 13px; }
.actions, .toolbar, .dialog-actions, .legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 7px 13px; gap: 7px; border: 1px solid var(--rule); background: #fff; color: var(--ink); font-size: 13px; font-weight: 650; text-decoration: none; }
.btn:hover { background: var(--wash); }
.primary { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.primary:hover { background: #25476b; }
.danger { border-color: var(--accent); border-style: dashed; color: var(--accent); }
.icon { min-height: 34px; padding: 5px 10px; }
.btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.panel { background: var(--paper); border: 1px solid var(--rule); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 20px; background: var(--line); border: 1px solid var(--rule); }
.stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; min-width: 0; min-height: 50px; background: var(--paper); }
.stat small { display: flex; align-items: center; gap: 7px; font-weight: 650; font-size: 13px; overflow-wrap: anywhere; }
.stat .dot { flex: 0 0 8px; }
.stat strong { font: 650 24px/1 var(--mono); }
.panel-head { padding: 16px 17px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--rule); }
.panel-head h2 { margin: 0; font: 650 19px/1.2 var(--heading); }
input, select, textarea { border: 1px solid var(--rule); background: #fff; padding: 8px 9px; color: var(--ink); min-width: 0; font-size: 14px; }
input:disabled, select:disabled { background-color: var(--wash); color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.toolbar input, .toolbar select { font-size: 13px; width: auto; max-width: 100%; }
.board { overflow: auto; scrollbar-color: var(--rule) var(--wash); }
.board-fixed-header { position: fixed; z-index: 2; overflow: hidden; pointer-events: none; background: var(--wash); }
.board-fixed-header[hidden] { display: none; }
.split-board { display: grid; grid-template-columns: var(--data-width, 55%) 12px minmax(0, 1fr); align-items: start; }
:root.board-resizing, :root.board-resizing * { -webkit-user-select: none; user-select: none; }
:root.board-resizing .split-board { cursor: col-resize; }
.split-board .data-pane { scroll-snap-type: x proximity; scroll-padding-left: var(--task-width, 178px); }
.split-board .plan-table { width: max-content; }
.split-board .plan-table tbody tr:first-child td:not(:first-child) { scroll-snap-align: start; }
.board-divider { align-self: stretch; display: grid; place-items: start center; border-inline: 1px solid var(--rule); background: var(--wash); cursor: col-resize; touch-action: none; }
.board-divider::after { content: ""; width: 4px; height: 22px; margin-top: 12px; border-inline: 1px solid var(--muted); }
.board-divider:hover, .board-divider:focus-visible { background: var(--line); }
.board-divider:focus-visible { outline: 1px solid var(--ink); outline-offset: -2px; }
.gantt-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.gantt-table th { padding: 0; vertical-align: bottom; background: var(--wash); border-bottom: 1px solid var(--rule); }
.gantt-table td { padding: 0; vertical-align: middle; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to right, var(--paper) 0, var(--paper) calc(var(--tick) - 1px), var(--line) calc(var(--tick) - 1px), var(--line) var(--tick)); }
.gantt-table tr:last-child td { border-bottom: 0; }
.plan-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.plan-table th, .plan-table td { padding: 0 12px; height: 48px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); background: #fff; }
.plan-table th { height: 42px; color: var(--ink); background: var(--wash); white-space: nowrap; font-weight: 650; }
.plan-table td { white-space: nowrap; }
.plan-table th + th, .plan-table td + td { border-left: 1px solid var(--line); }
.plan-table thead tr:last-child th { border-bottom-color: var(--rule); }
.plan-table th[rowspan] { border-bottom-color: var(--rule); }
.plan-table tbody tr:last-child td { border-bottom: 0; }
.plan-table time, .tick { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.plan-table thead tr:first-child th:first-child, .plan-table td:first-child { position: sticky; left: 0; z-index: 1; min-width: 178px; max-width: 240px; border-right: 1px solid var(--line); }
.task-name { color: var(--ink); border: 0; background: none; padding: 3px 0; text-align: left; font-weight: 650; white-space: normal; overflow-wrap: anywhere; }
.task-name:hover { text-decoration: underline; }
.task-meta { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.axis { position: relative; height: 42px; overflow: hidden; }
.tick { position: absolute; height: 100%; padding: 12px 7px 0; border-left: 1px solid var(--line); white-space: nowrap; font-size: 11px; }
.track { height: 36px; position: relative; }
.bar { position: absolute; top: 7px; height: 22px; border: 0; min-width: 3px; transition: filter .15s; }
.bar:hover { filter: brightness(.88); }
.bar.planned, .dot.planned { background: var(--status-planned); }
.bar.active, .dot.active { background: var(--status-active); }
.bar.review, .dot.review { background: var(--status-review); }
.bar.done, .dot.done { background: var(--status-done); }
.bar.template-bar { background: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; background: var(--wash); color: var(--ink); font-size: 11px; font-weight: 700; white-space: nowrap; }
.pill.active { background: #e6efff; color: #204eae; }
.pill.review { background: #fff0db; color: #824a0b; }
.pill.done { background: #e2f3eb; color: #14634a; }
.dot { width: 8px; height: 8px; display: inline-block; }
.legend { padding: 13px 16px; color: var(--muted); font-size: 12px; gap: 15px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.empty { padding: 32px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 8px; }
.empty p { margin-bottom: 14px; }
.project-grid, .settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.card { padding: 17px; overflow-wrap: anywhere; }
.card p { margin: 0 0 10px; font-size: 13px; }
.list { display: grid; gap: 10px; }
.list-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.list-row strong { font-size: 14px; }
dialog { width: min(650px, calc(100% - 24px)); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid var(--rule); background: var(--paper); color: inherit; }
dialog::backdrop { background: #16304f55; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--rule); background: var(--canvas); }
.dialog-heading h2 { margin: 0; font-family: var(--heading); font-weight: 650; overflow-wrap: anywhere; }
.dialog-body { padding: 16px 20px 20px; }
form { display: grid; gap: 12px; }
button, input, select, textarea, fieldset { border-radius: 0; }
select {
  appearance: none;
  padding-right: 25px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: right 13px center, right 8px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
input[type="search"] { appearance: none; }
input::file-selector-button { background: var(--wash); border: 1px solid var(--rule); border-radius: 0; color: var(--ink); padding: 4px 7px; }
label { display: grid; gap: 5px; font-size: 13px; font-weight: 650; }
.checkbox { display: flex; align-items: center; gap: 8px; }
input[type="checkbox"] {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rule);
}
input[type="checkbox"]:checked { background: var(--ink); }
input[type="checkbox"]:checked::after {
  content: "";
  width: 6px;
  height: 9px;
  border: solid var(--paper);
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
input[type="checkbox"]:disabled { opacity: .55; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dependency { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) 73px auto; gap: 6px; margin: 8px 0; align-items: end; }
.dependency select, .dependency input { width: 100%; }
.dialog-actions { justify-content: flex-end; margin-top: 7px; }
.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0 18px; font-size: 14px; overflow-wrap: anywhere; }
.details div { background: var(--wash); padding: 9px; }
.details dt { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
.details dd { margin: 0; }
.notice { padding: 10px; border-left: 2px solid var(--rule); background: var(--wash); font-size: 13px; overflow-wrap: anywhere; }
.error { color: var(--ink); border-left: 2px solid var(--rule); padding-left: 8px; font-size: 13px; margin: 0; }
#toast { position: fixed; z-index: 2; bottom: 15px; right: 15px; background: var(--ink); color: white; padding: 12px 15px; font-size: 14px; max-width: calc(100vw - 30px); }
#toast:empty, .error:empty { display: none; }
.loading { padding: 16px 0; }
@media (max-width: 610px) {
  .main { padding-top: 17px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dependency { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split-board .plan-table thead tr:first-child th:first-child, .split-board .plan-table td:first-child { min-width: 112px; max-width: 145px; }
}

.plan-table thead .date-group { text-align: center; background: var(--wash); border-left: 1px solid var(--rule); }
.plan-table tbody tr > td { vertical-align: top; padding-top: 9px; padding-bottom: 9px; }
.cell-edit { display: block; width: 100%; padding: 2px 0; border: 0; background: transparent; text-align: left; color: var(--ink); font-size: inherit; }
.cell-edit:hover { text-decoration: underline; }
.plan-table .assignment-cell { width: 145px; max-width: 145px; }
.plan-table .assignment-cell, .assignment-cell .cell-edit { white-space: normal; overflow-wrap: anywhere; }
.file-controls { display: flex; align-items: center; justify-content: center; gap: 3px; }
.cell-edit.file-edit { width: auto; min-width: 23px; text-align: center; }
.link-line { display: block; min-height: 19px; line-height: 19px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.file-cell { text-align: center !important; }
.file-mark { display: inline-grid; place-items: center; width: 27px; height: 27px; vertical-align: middle; }
.file-mark.missing { color: #b4233c; background: #fce9ed; }
.file-mark.attached { color: #18734e; background: #e2f3eb; }
.file-mark.attached:hover { background: #c4e8d7; }
.paperclip { display: block; position: relative; width: 10px; height: 17px; border: 1.7px solid currentColor; border-radius: 5px; transform: rotate(35deg); }
.paperclip::after { content: ""; position: absolute; top: 3px; left: 2px; width: 4px; height: 9px; border: 1.4px solid currentColor; border-radius: 3px; border-top-color: transparent; }
.schedule-fields { margin: 0; min-width: 0; border: 1px solid var(--line); padding: 9px; }
.schedule-fields legend { color: var(--ink); font-weight: 700; padding: 0 5px; font-size: 13px; }
.schedule-fields .checkbox { min-height: 30px; margin-bottom: 4px; }
.schedule-fields[data-task-mode="calculated"] > div { margin-top: 10px; }
.replacement-links > label + label { margin-top: 8px; }
.replacement-links legend { overflow-wrap: anywhere; max-width: 100%; }
.detail-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
.detail-table td, .detail-table th { text-align: left; padding: 7px; border-bottom: 1px solid var(--line); }
.detail-table th { color: var(--ink); background: var(--paper); }
.detail-scroll { max-height: 48vh; overflow: auto; }
.warning { color: var(--ink); }
.fact-check { margin-left: 4px; color: var(--ink); font-weight: 700; }
.column-list { display: grid; gap: 0; }
.column-option { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.column-option:has(.column-move) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; }
.column-move { display: flex; gap: 4px; }
.column-move .btn { min-height: 32px; padding: 3px 8px; }
.column-move-policy { grid-column: 1 / -1; }
.column-option small { color: var(--muted); font-weight: 500; }
@media (max-width: 500px) {
  .schedule-fields .form-grid { grid-template-columns: 1fr; }
}

.reference-catalog { margin-bottom: 16px; }
.reference-catalog .detail-table { margin: 0; }
.reference-catalog tbody tr:last-child > * { border-bottom: 0; }
.reference-catalog tbody th { background: var(--paper); }
.reference-catalog thead th { color: var(--ink); background: var(--wash); }
.catalog-options { min-width: 0; margin: 0; padding: 8px 10px; border: 1px solid var(--line); }
.catalog-options[hidden] { display: none; }
.catalog-options legend { padding: 0 5px; font-weight: 650; font-size: 13px; }
.catalog-options p { margin-bottom: 5px; }
.permission-group > label { padding: 4px 0; }
.permission-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.permission-copy p { grid-column: 1 / -1; margin: 0; }
.permission-copy p:empty { display: none; }
.permission-group input:indeterminate::after { content: ""; width: 7px; height: 2px; background: var(--ink); }
.graph-modes { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.graph-modes input[type="radio"] { accent-color: var(--ink); }
.catalog-choices { max-height: 220px; overflow: auto; }
.catalog-choices label { padding: 7px 3px; border-bottom: 1px solid var(--line); }
.catalog-choices label:last-child { border-bottom: 0; }
.catalog-choices small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.template-choice { border-bottom: 1px solid var(--line); }
.template-choice:last-child { border-bottom: 0; }
.template-choices .template-date { padding: 2px 3px 10px 26px; }
.template-date[hidden] { display: none; }
.catalog-options > label + h3 { margin-top: 12px; }

.settings-tabs, .section-actions { margin-bottom: 14px; }

.record-layout { display: grid; gap: 14px; }
.record-layout section > .panel + .panel { margin-top: 10px; }
.record-photo { display: block; width: min(100%, 720px); max-height: 440px; object-fit: contain; object-position: left center; }
.record-value { white-space: pre-wrap; overflow-wrap: anywhere; }
.company-contacts { white-space: pre-wrap; overflow-wrap: anywhere; }
.registration-panel { width: min(100%, 680px); margin: 0 auto; }
.registration-panel form { margin-top: 18px; }
.registration-status { display: grid; gap: 12px; }
.registration-status p { margin: 0; }
.auth-mode { color: var(--muted); font-size: 12px; }
.profile-panel { max-width: 760px; }
.profile-company { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.notification-events { display: grid; gap: 10px; margin: 14px 0 0; padding: 12px; border: 1px solid var(--line); }
.notification-events:disabled { opacity: .65; }
[data-other-function][hidden] { display: none; }
.project-company { margin: 8px 0; }
.project-company > .actions { margin-top: 8px; }
.settings-tabs .btn[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.reference-menu { position: relative; }
.reference-menu summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.reference-menu summary::-webkit-details-marker { display: none; }
.reference-menu summary::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}
.reference-menu[open] summary { border-bottom-color: var(--accent); }
.reference-menu[open] summary::after { transform: translateY(1px) rotate(225deg); }
.reference-menu-links {
  position: absolute;
  z-index: 10;
  top: calc(100% + 5px);
  left: 0;
  width: min(218px, calc(100vw - 112px));
  padding: 4px 0;
  background: var(--canvas);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px #16304f1a;
}
.reference-menu-links a, .reference-menu-index a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.reference-menu-links a {
  border-inline-start: 2px solid transparent;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}
.reference-menu-links a:hover, .reference-menu-links a:focus-visible, .reference-menu-index a:hover { background: var(--wash); }
.reference-menu-links a:focus-visible { outline-offset: -2px; }
.reference-menu-links a[aria-current="page"] {
  border-inline-start-color: var(--accent);
  background: var(--wash);
  font-weight: 650;
}
.reference-menu-index a { padding: 7px 9px; }

@media (max-width: 680px) {
  .workspace-toolbar { justify-content: space-between; }
  .workspace-tools { margin-left: 0; }
  .main-nav { order: 1; flex: 1 0 100%; }
  .page-head { padding-bottom: 15px; }
}

.panel, dialog, .reference-menu-links { border-radius: 14px; }
.btn, .nav-link, input, select, textarea, fieldset, input::file-selector-button { border-radius: 8px; }
.account-menu { position: relative; max-width: min(320px, 90vw); }
.account-menu summary { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 24px; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover, .account-menu[open] summary { background: var(--wash); }
.avatar { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--ink); color: white; font-size: 12px; }
#account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chevron { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.account-links { position: absolute; right: 0; top: calc(100% + 6px); width: min(240px, 90vw); padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 8px 24px #16304f1a; }
.account-links :is(a,button) { display: block; width: 100%; text-align: left; padding: 10px 12px; color: var(--ink); font: inherit; font-size: 14px; text-decoration: none; background: transparent; border: 0; border-radius: 7px; }
.account-links :is(a,button):hover, .account-links a[aria-current] { background: var(--wash); }
.account-links #logout { border-top: 1px solid var(--line); margin-top: 4px; }
@media (max-width: 680px) { .workspace-tools { margin-left: auto; } }
