:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink); background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.45; }
:where(a:any-link) { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 36px; padding: .35rem .72rem; border-radius: 8px; border: 1px solid var(--line);
  color: var(--ink); background: var(--surface); font-weight: 620; font-size: .875rem; cursor: pointer; text-decoration: none;
}
button:hover, .button:hover { background: var(--field); }
button:disabled { cursor: not-allowed; opacity: .48; }
:is(button, input, select, a, textarea, summary):focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button.primary:hover, .button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.danger { color: var(--red); border-color: var(--red-line); }
button.compact { min-height: 34px; padding: .3rem .62rem; }
.icon-button { flex: none; width: 34px; min-height: 34px; padding: 0; font-size: 1.16rem; line-height: 1; }
.quiet-button { border-color: transparent; background: transparent; color: var(--accent); justify-content: start; }
.action-popover {
  position: fixed; inset: auto; margin: 0; min-width: 10rem; max-width: calc(100vw - 1rem);
  max-height: calc(100dvh - 1rem); overflow: auto; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); box-shadow: var(--pop-shadow); padding: .3rem;
}
.action-popover:popover-open { display: grid; gap: .16rem; }
.action-popover > :is(button, a) { justify-content: start; border-color: transparent; background: transparent; }
.action-popover > :is(button, a):hover { background: var(--field); }
input:not([type=checkbox]), textarea, select {
  width: 100%; min-width: 0; padding: .5rem .65rem; min-height: 38px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); border-radius: 8px;
}
input[type=checkbox] { accent-color: var(--focus); width: 18px; height: 18px; margin: 0; }
input[type=file]::file-selector-button {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: .22rem .46rem; margin-inline-end: .65rem; cursor: pointer;
}
label.field { display: grid; gap: .38rem; font-size: .94rem; font-weight: 600; min-width: 0; }
label.check { display: flex; align-items: center; gap: .66rem; font-size: .96rem; }
textarea { min-height: 5.8rem; resize: vertical; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.45rem, 1.25rem + .7vw, 1.9rem); line-height: 1.18; letter-spacing: -.035em; margin-bottom: 0; }
h2 { font-size: 1.16rem; line-height: 1.25; letter-spacing: -.02em; margin-bottom: .5rem; }
h3 { font-size: 1rem; margin-bottom: .48rem; }
p { line-height: 1.53; margin-bottom: .65rem; }
dl { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .84375rem; }
.brand { display: flex; align-items: center; gap: .66rem; font-weight: 730; letter-spacing: -.034em; white-space: nowrap; }
.loading { min-height: 100dvh; display: grid; place-items: center; color: var(--muted); }
.login {
  min-height: 100dvh; display: grid; place-items: center; padding: 1.3rem;
  background: var(--canvas);
}
.login-card {
  padding: clamp(1.25rem, 4vw, 1.9rem); width: min(100%, 390px); background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 24px var(--shadow);
}
.login-card > .brand, .login-card .flow-brand-row { margin-bottom: 1.25rem; }
.login-card h1 { margin-bottom: .65rem; }
.login-card .form-grid > button { justify-self: stretch; }
.login-downloads { display: inline-block; margin-bottom: .4rem; font-size: .875rem; }
.download-packages { display: grid; gap: .6rem; margin: 1rem 0; }
.download-packages p { margin-bottom: .4rem; }
.download-packages p:empty { display: none; }
.shell {
  --shell-gap: clamp(.5rem, .85vw, .85rem);
  height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr);
  gap: var(--shell-gap); padding: var(--shell-gap);
}
.section-header {
  position: relative; z-index: 3; min-width: 0; padding: .5rem .75rem;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand navigation actions" "context context context";
  align-items: center; column-gap: .7rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.header-brand { grid-area: brand; padding-inline-end: .75rem; border-inline-end: 1px solid var(--line); }
.section-nav { grid-area: navigation; display: flex; flex-wrap: wrap; gap: .2rem; }
.section-context {
  grid-area: context; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; min-width: 0;
  margin-block-start: .38rem; padding-block-start: .42rem; border-block-start: 1px solid var(--line);
}
.section-title { min-width: 0; padding-inline-end: .15rem; font-size: 1.08rem; font-weight: 690; letter-spacing: -.025em; overflow-wrap: anywhere; }
.section-tools { display: contents; }
.tool-group {
  display: flex; min-width: 0; max-width: 100%; flex-wrap: wrap; align-items: center; gap: .3rem;
  padding-inline-start: .6rem; border-inline-start: 1px solid var(--line);
}
.tool-group:empty, .tool-group:not(:has(> :not([hidden]))) { display: none; }
.tool-group input[type=search] { width: min(11rem, 100%); }
.tool-group label.field { flex: 0 1 auto; }
.tool-group select { max-width: min(17rem, 76vw); }
.tool-group .plan-select { width: auto; max-width: 100%; min-width: 0; }
.plan-select:empty { display: none; }
.tool-group .header-button { width: 36px; min-height: 36px; }
.header-actions {
  grid-area: actions; display: flex; align-items: center; justify-content: end; gap: .3rem;
  padding-inline-start: .62rem; border-inline-start: 1px solid var(--line);
}
.header-button {
  position: relative; flex: none; width: 38px; min-height: 38px; padding: 0;
  border-color: transparent; border-radius: 10px; color: var(--muted); background: transparent;
}
.header-button:hover { color: var(--ink); }
.header-button:is([aria-current=page], [aria-expanded=true]) {
  color: var(--accent); background: var(--selected); border-color: var(--selected-line);
}
.header-button[aria-current=true] { color: var(--accent); background: var(--selected); border-color: var(--selected-line); }
.header-button.primary { color: var(--on-accent); }
.header-icon {
  width: 20px; height: 20px; background: currentColor;
  mask: var(--header-glyph) center / contain no-repeat;
}
.header-button[data-page="projects"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 4.5h4.4l2 2H16a1.5 1.5 0 0 1 1.5 1.5V15a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 15V5.5a1 1 0 0 1 1-1Z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-page="data"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cellipse cx='10' cy='5' rx='6.5' ry='2.7'/%3E%3Cpath d='M3.5 5v10c0 1.5 2.9 2.7 6.5 2.7s6.5-1.2 6.5-2.7V5M3.5 10c0 1.5 2.9 2.7 6.5 2.7s6.5-1.2 6.5-2.7'/%3E%3C/g%3E%3C/svg%3E");
}
.header-button:is([data-page="jobs"], [data-icon="tasks"]) {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.8 5.1 1.4 1.4 2.6-2.6m-4 10 1.4 1.4 2.6-2.6M10 5.5h7.2M10 14.3h7.2'/%3E%3C/g%3E%3C/svg%3E");
}
.header-button[data-page="planner"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='14' height='13' rx='2'/%3E%3Cpath d='M6.5 2.5v4M13.5 2.5v4M3 8.5h14m-9 4.2 1.4 1.4 2.6-2.6'/%3E%3C/g%3E%3C/svg%3E");
}
.header-button:is([data-page="dispatch"], [data-icon="truck"]) {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 14.5H2.3V5.3h9.1v9.2M6.8 14.5h6m3.4 0h1.5v-4.1l-2.3-2.5h-4'/%3E%3Ccircle cx='5.2' cy='14.8' r='1.7'/%3E%3Ccircle cx='14.5' cy='14.8' r='1.7'/%3E%3C/g%3E%3C/svg%3E");
}
.header-button:is([data-page="admin"], [data-icon="settings"]) {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='m8.4 2.7-.5 2a6.1 6.1 0 0 0-1.5.9l-2-.6-1.6 2.8 1.4 1.5a6.3 6.3 0 0 0 0 1.5l-1.4 1.5 1.6 2.8 2-.6c.5.4 1 .7 1.5.9l.5 2h3.2l.5-2c.5-.2 1-.5 1.5-.9l2 .6 1.6-2.8-1.4-1.5a6.3 6.3 0 0 0 0-1.5l1.4-1.5-1.6-2.8-2 .6c-.5-.4-1-.7-1.5-.9l-.5-2Z'/%3E%3Ccircle cx='10' cy='10' r='2.4'/%3E%3C/g%3E%3C/svg%3E");
}
.header-button[data-icon="add"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3.5v13M3.5 10h13' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="upload"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 13V3m-3.6 3.6L10 3l3.6 3.6M3.3 12.4v3.5a1 1 0 0 0 1 1h11.4a1 1 0 0 0 1-1v-3.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="download"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2.8v10.3m-3.6-3.6 3.6 3.6 3.6-3.6m-10.3 3v3.5a1 1 0 0 0 1 1h11.4a1 1 0 0 0 1-1v-3.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="training"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m2.4 7.4 7.6-3.6 7.6 3.6-7.6 3.7-7.6-3.7Zm3.1 1.7v4.4c2.7 1.9 6.3 1.9 9 0V9.1m3.1-1.7v5.4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="point"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M15.5 8c0 3.8-5.5 8.8-5.5 8.8S4.5 11.8 4.5 8a5.5 5.5 0 0 1 11 0Zm-3.4 0a2.1 2.1 0 1 0-4.2 0 2.1 2.1 0 0 0 4.2 0Z' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="layers"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m2.7 7 7.3-4.1L17.3 7 10 11.1 2.7 7Zm0 3.4 7.3 4.1 7.3-4.1M2.7 14l7.3 4.1 7.3-4.1' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="user"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M13.2 6.6a3.2 3.2 0 1 1-6.4 0 3.2 3.2 0 0 1 6.4 0ZM3.3 16.6v-1.2c0-2 2.8-3.8 6.7-3.8s6.7 1.8 6.7 3.8v1.2Z' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="files"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.2 3h5.9l4 4v9A1.2 1.2 0 0 1 14 17.2H5.2A1.2 1.2 0 0 1 4 16V4.2A1.2 1.2 0 0 1 5.2 3Zm5.9 0v4h4M7 10.7h5.1M7 13.8h5.1' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="table"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 3.3h12c.6 0 1 .4 1 1v11.4c0 .6-.4 1-1 1H4c-.6 0-1-.4-1-1V4.3c0-.6.4-1 1-1ZM3 7.4h14M3 12h14M9 7.4v9.3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="map"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m3.2 4.5 4.5-1.8 4.6 1.8 4.5-1.8v12.8l-4.5 1.8-4.6-1.8-4.5 1.8V4.5Zm4.5-1.8v12.8m4.6-11v12.8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="history"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.2 9.2a7.1 7.1 0 1 1 1.3 5.4M2.6 5.6v4.5h4.5m3-4.8v5l3 1.9' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="edit"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 12.8-.8 4 4-.8 9.1-9.1a1.7 1.7 0 0 0 0-2.4l-.8-.8a1.7 1.7 0 0 0-2.4 0L4 12.8Zm7.7-7.7 3.2 3.2' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="save"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 3.1h10.5L17 5.6v10.3c0 .6-.4 1-1 1H4c-.6 0-1-.4-1-1V4.1c0-.6.4-1 1-1Zm2.2 13.8v-5.6h7.6v5.6M6.6 3.1v4.1h6.3V3.1' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="filter"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 5.6h14M3 14.1h14M6.8 3.4v4.4m6.4 4.1v4.4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="reload"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.9 7.4A7 7 0 1 0 17 12m0-8.5v4.4h-4.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="phone"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 2.7h6.2c.8 0 1.4.6 1.4 1.4V16c0 .8-.6 1.4-1.4 1.4H6c-.8 0-1.4-.6-1.4-1.4V4.1c0-.8.6-1.4 1.4-1.4Zm2 12.3h2.2m5.3-7.1h3.2M17.1 6.3v3.2' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="finance"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 4.2h12c.6 0 1 .4 1 1v9.6c0 .6-.4 1-1 1H4c-.6 0-1-.4-1-1V5.2c0-.6.4-1 1-1Zm-.8 3.1h13.6m-6.7 2.4v3.7M8.2 11.6h3.8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="reserve"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2.7 16.5 5v4.4c0 3.2-2.2 5.5-6.5 7.9-4.3-2.4-6.5-4.7-6.5-7.9V5L10 2.7Zm-2.7 7.1 1.8 1.8 3.7-3.7' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="undo"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.3 5.6 3 9.9l4.3 4.3M3 9.9h9.6c2.6 0 4.4 1.6 4.4 4.4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="calendar"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.6 4.5h10.8c.9 0 1.6.7 1.6 1.6v9.8c0 .9-.7 1.6-1.6 1.6H4.6c-.9 0-1.6-.7-1.6-1.6V6.1c0-.9.7-1.6 1.6-1.6ZM6.5 2.5v4M13.5 2.5v4M3 8.5h14' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="close"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 5.5 9 9m0-9-9 9' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="json"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.7 3.4H6c-1 0-1.6.5-1.6 1.5v2.6c0 1.6-.9 2.5-2 2.5 1.1 0 2 .9 2 2.5v2.6c0 1 .6 1.5 1.6 1.5h1.7m4.6-13.2H14c1 0 1.6.5 1.6 1.5v2.6c0 1.6.9 2.5 2 2.5-1.1 0-2 .9-2 2.5v2.6c0 1-.6 1.5-1.6 1.5h-1.7' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="play"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m7 4.5 8.3 5.5L7 15.5v-11Z' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-button[data-icon="back"] {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m11.8 4.6-5.4 5.4 5.4 5.4M6.4 10h10.1' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.header-help {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7.5'/%3E%3Cpath d='M8 7.4a2.1 2.1 0 0 1 4.1.6c0 1.8-2.1 1.9-2.1 3.5'/%3E%3C/g%3E%3Ccircle cx='10' cy='14' r='.9'/%3E%3C/svg%3E");
}
.alert-trigger {
  --header-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.1 8a4.9 4.9 0 1 1 9.8 0c0 4 1.5 4.4 1.5 5.3H3.6c0-.9 1.5-1.3 1.5-5.3Zm3.2 7.8a1.9 1.9 0 0 0 3.4 0' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.alert-count {
  position: absolute; inset-block-start: -.18rem; inset-inline-end: -.1rem; min-width: 1.2rem;
  padding-inline: .22rem; border-radius: 1rem; background: var(--amber-bg); color: var(--amber); font-size: .7rem;
}
@media (forced-colors: active) {
  .header-icon { forced-color-adjust: none; color: ButtonText; }
  .header-button:is([aria-current=page], [aria-expanded=true]) { border-color: Highlight; }
}
.alert-list-row { display: flex; align-items: start; justify-content: space-between; gap: .5rem; padding-block: .65rem; }
.alert-list-row + .alert-list-row { border-top: 1px solid var(--line); }
.account-menu { position: relative; min-width: 0; }
.account-menu > summary {
  display: flex; align-items: center; justify-content: center; cursor: pointer; list-style: none;
  border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface);
}
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:hover, .account-menu[open] > summary { background: var(--field); }
.account-menu > summary { min-height: 36px; padding: .35rem .66rem; gap: .4rem; font-size: .92rem; font-weight: 650; }
.section-header .account-menu > summary { width: 38px; min-height: 38px; padding: 0; border-radius: 50%; background: var(--selected); }
.account-menu > summary > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-popover {
  position: absolute; z-index: 2; top: calc(100% + .4rem); right: 0; display: grid;
  width: max-content; min-width: 11rem; max-width: calc(100vw - 1.4rem); gap: .35rem; padding: .55rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--pop-shadow);
  overflow-wrap: anywhere;
}
.account-popover :is(button, a.button) { justify-content: start; text-align: left; border-color: transparent; }
.workspace-layout { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; min-height: 0; }
.workspace-layout:has(> .knowledge:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) clamp(17rem, 23vw, 24rem); gap: var(--shell-gap);
}
.content {
  width: 100%; min-width: 0; min-height: 0; overflow: auto; container-type: inline-size;
}
.workspace-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem 1rem;
  min-width: 0; padding: .65rem .8rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px;
}
.workspace-title { font-size: 1.2rem; font-weight: 690; margin: 0; line-height: 1.25; }
.panel > .workspace-toolbar { padding: 0 0 .5rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.knowledge {
  display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0;
  padding: .7rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.knowledge-top { display: flex; justify-content: space-between; align-items: start; gap: .5rem; }
.knowledge-tabs button[aria-pressed=true] { background: var(--selected); }
.knowledge-body { overflow: auto; overscroll-behavior: contain; padding: .7rem .15rem .25rem; }
.knowledge-body:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 8px; }
.knowledge-article { max-width: 78ch; }
.knowledge-article h2 { margin: 0 0 .48rem; font-size: 1.03rem; }
.knowledge-article p { margin: 0 0 .5rem; }
.knowledge-article p:last-child { margin: 0; }
.plain-icon { width: 34px; min-height: 34px; padding: 0; font: inherit; font-size: 1.3rem; }
.knowledge-results { margin: 0; padding: 0; list-style: none; }
.knowledge-results > li + li { border-top: 1px solid var(--line); }
.knowledge-link, .link-button {
  justify-content: start; background: transparent; border-color: transparent; text-align: start;
}
.knowledge-link { width: 100%; }
.record-row { cursor: pointer; }
.record-row:hover, .record-row:focus-within { background: var(--field); }
.record-label {
  display: inline; min-height: 0; text-align: start; padding: 0; border: 0; border-radius: 3px;
  color: var(--ink); background: transparent; overflow-wrap: anywhere;
}
.record-label:hover { color: var(--accent); background: transparent; }
.record-meta { display: block; font-weight: 400; }
@media (pointer: coarse) {
  .record-row, .project-list > button { -webkit-touch-callout: none; user-select: none; }
}
.link-button { margin-bottom: .65rem; padding-inline: 0; text-decoration: underline; text-underline-offset: .2em; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(.75rem, 1.25vw, 1rem); min-width: 0; }
.stack { display: grid; align-content: start; gap: .75rem; }
.stack > :is(h2, h3), .actions > :is(h2, h3) { margin-bottom: 0; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.between { justify-content: space-between; }
.columns { display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(0, 2.2fr); gap: .9rem; align-items: start; }
.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid { display: grid; gap: .85rem; }
.form-grid > button { justify-self: start; }
.form-grid > [role=status]:empty {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
.dashboard-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .75rem; }
.stat { background: var(--field); border: 1px solid var(--line); border-radius: 9px; padding: .62rem .7rem; overflow-wrap: anywhere; }
.stat dt { color: var(--muted); font-size: .87rem; }
.stat dd { margin: .11rem 0 0; font-size: 1.35rem; font-weight: 720; font-variant-numeric: tabular-nums; }
.project-page { height: 100%; min-height: 380px; grid-template-rows: minmax(0, 1fr); }
.project-workspace {
  display: grid; grid-template-columns: clamp(15rem, 22vw, 19rem) minmax(0, 1fr);
  min-width: 0; min-height: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.project-sidebar {
  display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0;
  border-inline-end: 1px solid var(--line);
}
.section-tools > .project-search { width: min(12rem, 100%); }
select.project-mobile-picker { display: none; width: min(14rem, 100%); }
.project-list { display: grid; align-content: start; gap: .14rem; overflow: auto; padding: .35rem .45rem; }
.project-list > button {
  width: 100%; display: grid; justify-content: stretch; justify-items: start; gap: .12rem; text-align: left;
  padding: .54rem .67rem; border: 1px solid transparent; background: transparent;
}
.project-list > button:hover { background: var(--field); }
.project-list > button.selected { background: var(--selected); border-color: transparent; box-shadow: inset 2px 0 var(--accent); }
.project-row-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-list .small { font-weight: 400; }
.project-list .empty { padding-inline: .45rem; }
.project-sidebar-footer { display: grid; justify-items: start; gap: .2rem; padding: .55rem .85rem .7rem; border-top: 1px solid var(--line); }
.project-sidebar-footer p { margin: 0; }
.project-detail { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; }
.project-detail > .workspace-toolbar { border-width: 0 0 1px; border-radius: 0 12px 0 0; }
.project-identity { min-width: 0; overflow-wrap: anywhere; }
.project-description { margin: .24rem 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: min(45rem, 64vw); }
.project-map { min-height: 0; min-width: 0; }
.project-map .map-view { height: 100%; min-height: 270px; border: 0; border-radius: 0 0 12px; }
.limit-fields { display: grid; gap: .7rem; min-width: 0; margin: 0; padding: .75rem; border: 1px solid var(--line); border-radius: 8px; }
.limit-fields legend { padding: 0 .3rem; font-weight: 600; }
.limit-group { border-bottom: 1px solid var(--line); }
.limit-group > summary { padding-block: .45rem; cursor: pointer; font-weight: 650; }
.limit-group > .stack { padding-block: .25rem .75rem; }
.limit-group p { margin: 0; }
.project-changed {
  padding: .5rem .7rem; border: 1px solid var(--selected-line); border-radius: 8px; background: var(--selected);
}
.project-totals { display: flex; flex-wrap: wrap; gap: .2rem .8rem; margin-top: .25rem; }
.project-totals .stat { display: flex; align-items: baseline; gap: .35rem; padding: 0; border: 0; background: none; }
.project-totals .stat dd { margin: 0; font-size: .92rem; }
.workspace-project { min-width: 0; width: min(100%, 24rem); }
.section-toolbar { align-items: end; }
.section-toolbar .workspace-project { width: min(100%, 17rem); }
.workspace-sections { min-width: 0; }
.data-toolbar, .pagination {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; min-width: 0;
}
.data-section, .data-preview { min-width: 0; }
input.data-search { width: min(100%, 18rem); }
.data-preview { max-width: 100%; }
.data-metadata { color: var(--muted); font-size: .84375rem; overflow-wrap: anywhere; }
.workbook-list { display: grid; gap: .9rem; }
.workbook-row {
  display: grid; grid-template-columns: minmax(0, 30rem) max-content;
  align-items: end; gap: .35rem .6rem;
}
.workbook-row + .workbook-row { border-top: 1px solid var(--line); padding-top: .9rem; }
.workbook-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .35rem .6rem; }
.workbook-form > button { min-height: 38px; }
.workbook-form > [role=status], .workbook-file { grid-column: 1 / -1; }
.workbook-sample { justify-self: start; }
.exchange-actions { padding-top: .8rem; border-top: 1px solid var(--line); }
.planner-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: .75rem; }
.planner-options { border-block: 1px solid var(--line); }
.planner-options > summary { padding: .55rem .1rem; font-weight: 600; cursor: pointer; }
.planner-options > .stack { padding-block: .3rem .8rem; }
.planner-history td .actions { min-width: 10rem; }
.pagination { justify-content: flex-end; color: var(--muted); font-size: .875rem; }
.table-wrap { overflow: auto; max-height: min(540px, 65dvh); border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
:is(.data-section, .data-preview) table:has(th:nth-child(4)) { min-width: 28rem; }
th, td { text-align: left; padding: .5rem .65rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: middle; }
th { background: var(--field); position: sticky; z-index: 1; top: 0; white-space: nowrap; font-size: .83rem; color: var(--muted); }
:is(.data-section, .data-preview) table:has(th:nth-child(4)) td:nth-child(2) { white-space: nowrap; }
tbody tr:hover { background: var(--field); }
tbody tr:last-child td { border-bottom: 0; }
td .actions { min-width: max-content; }
table[aria-label="План и факт по сменам"] td:first-child button,
table[aria-label="Фактические показатели рейсов"] td:first-child { white-space: nowrap; }
table[aria-label="План и факт посещений"] td { overflow-wrap: normal; }
.tag { display: inline-flex; min-height: 25px; align-items: center; padding: .16rem .45rem; border-radius: 7px; background: var(--field); color: var(--ink); font-size: .8rem; font-weight: 650; white-space: nowrap; }
.tag.good { background: var(--green-bg); color: var(--green); }
.tag.bad { background: var(--red-bg); color: var(--red); }
.tag.wait { background: var(--amber-bg); color: var(--amber); }
.notice { border-radius: 9px; padding: .7rem .8rem; margin: 0; background: var(--green-bg); color: var(--green); overflow-wrap: anywhere; }
.notice.error { background: var(--red-bg); color: var(--red); }
.notice.warning { background: var(--amber-bg); color: var(--amber); }
.progress { width: 100%; height: .7rem; display: block; accent-color: var(--accent); }
.progress::-webkit-progress-bar { background: var(--field); border-radius: 20px; }
.progress::-webkit-progress-value { background: var(--accent); border-radius: 20px; }
.tabs { display: flex; gap: .2rem; flex-wrap: wrap; }
.tabs button { min-height: 34px; border-color: transparent; background: transparent; }
.tabs button:hover { background: var(--field); }
.tabs button.selected { background: var(--selected); border-color: transparent; }
.map-view { height: 350px; position: relative; border: 1px solid #c6cdc5; border-radius: 12px; background: #e9eee8; overflow: hidden; min-width: 0; }
.map-view canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.map-vehicle { position: absolute; top: -7px; left: -7px; width: 14px; height: 14px; background: var(--vehicle-color, #355a90); border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 2px var(--vehicle-color, #355a90); pointer-events: none; }
.map-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: .33rem; }
.map-caption { position: absolute; left: 12px; bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .35rem .5rem; pointer-events: none; font-size: .83rem; }
.map-attribution { position: absolute; bottom: 1px; right: 4px; padding: .1rem .3rem; background: #fffffff2; color: #304637; font-size: .66rem; }
.map-attribution a { color: inherit; }
.map-tools { flex-wrap: wrap; justify-content: end; max-width: calc(100% - 20px); }
.map-tools [aria-pressed=true] { border-color: var(--selected-line); background: var(--selected); }
dialog { padding: 0; border: 1px solid var(--line); border-radius: 12px; width: min(560px, calc(100vw - 1.6rem)); max-height: calc(100dvh - 2rem); box-shadow: 0 20px 56px #1114; color: var(--ink); background: var(--surface); }
.dialog-layout { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: calc(100dvh - 2rem); }
.dialog-heading {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding: .64rem 1rem; border-bottom: 1px solid var(--line);
}
.dialog-heading h2 { margin: 0; font-size: 1.08rem; }
.dialog-body { overflow: auto; overscroll-behavior: contain; min-height: 0; padding: 1rem; }
.dialog-close { background: transparent; border-color: transparent; }
dialog.wide-dialog { width: min(1040px, calc(100vw - 1.6rem)); }
dialog.route-editor-dialog { width: min(1480px, calc(100vw - 1.6rem)); }
dialog.calculation-key-dialog { width: min(680px, calc(100vw - 1.6rem)); }
.key-limit-details { margin-top: .35rem; color: var(--muted); font-size: .84rem; }
.key-limit-details summary { cursor: pointer; }
.key-limit-details > dl { margin-top: .3rem; }
.calculation-key-value { width: 100%; font-family: ui-monospace, Consolas, monospace; }
.calculation-api-connection { gap: .5rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.calculation-api-address, .calculation-api-example { overflow-wrap: anywhere; }
.calculation-api-example { margin: 0; padding: .75rem; border: 1px solid var(--line); border-radius: 8px; white-space: pre-wrap; }
.calculation-api-steps { margin: 0; padding-inline-start: 1.3rem; }
dialog.route-dialog { width: min(1290px, calc(100vw - 1.6rem)); }
dialog::backdrop { background: #1117; }
dialog .panel { border: 0; padding: 1.25rem; }
.empty { color: var(--muted); margin: 0; padding: .6rem 0; }
.toast { position: fixed; bottom: 1rem; right: 1rem; z-index: 4; max-width: min(440px,calc(100vw - 2rem)); box-shadow: 0 5px 18px var(--shadow); border: 1px solid var(--line); }
.route-metrics { display: flex; flex-wrap: wrap; gap: .45rem 1.15rem; }
.route-metrics > div { display: flex; align-items: baseline; gap: .38rem; }
.route-metrics dt { color: var(--muted); font-size: .875rem; }
.route-metrics dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.route-selectors > label { width: min(100%, 15rem); }
.route-selectors > label:has(input[type=date]) { width: min(100%, 10rem); }
.day-arrows { align-self: end; }
.route-filters { border-bottom: 1px solid var(--line); padding-bottom: .55rem; }
.route-filter-fields { align-items: end; margin-block: .6rem; }
.route-filter-fields > label { flex: 0 1 13rem; min-width: 0; }
.route-display-options { gap: .55rem 1rem; }
.route-inspector-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: .85rem; }
.route-inspection, .route-map-host { min-width: 0; }
.route-inspection .table-wrap { max-height: min(48dvh, 430px); }
.route-inspection table[aria-label="Рейсы выбранного дня"] td:last-child button { white-space: nowrap; }
.route-open { justify-content: start; text-align: left; }
.planning-toolbar { align-items: end; gap: .75rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.planning-toolbar .workspace-project { width: min(100%, 18rem); }
.plan-select { width: min(100%, 22rem); }
.planning-calculate { margin-left: auto; min-height: 38px; }
.planning-content, .route-plan-workspace { min-width: 0; }
.version-toolbar { margin-bottom: .6rem; }
.planner-empty { padding: 1.4rem .9rem; justify-items: start; }
.planner-map-grid { grid-template-columns: minmax(0, 1fr) minmax(19rem, 30rem); gap: .75rem; }
.result-summary { padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.planner-map-grid.planner-map-only { grid-template-columns: minmax(0, 1fr); }
.planner-map-grid .map-view { height: clamp(390px, 56dvh, 740px); border-radius: 9px; }
.playback-controls { display: grid; grid-template-columns: auto minmax(3rem, 1fr) auto minmax(4.2rem, auto); align-items: center; gap: .6rem; margin-top: .45rem; }
.playback-controls input[type=range] { accent-color: var(--focus); padding: 0; }
.playback-controls output { font-variant-numeric: tabular-nums; min-width: 3rem; }
.planner-map-grid .table-wrap { max-height: clamp(270px, 56dvh, 630px); }
.construction-tools { align-items: end; }
.construction-tools > label { flex: 0 1 19rem; min-width: 0; }
.construction-tools > [role=status] { align-self: center; }
.construction-feedback:empty { display: none; }
.history-toolbar { align-items: end; }
.history-toolbar .form-grid { display: flex; align-items: end; flex-wrap: wrap; }
.history-plan::before, .history-track::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin-right: .35rem; border-radius: 50%; background: #22635d; }
.history-track::before { background: #b66b36; }
.focus-stop { min-height: 0; padding: 0; border: 0; background: transparent; text-align: left; }
.focus-stop[aria-pressed=true] { color: var(--accent); text-decoration: underline; }
.stop-inspection { margin-top: .55rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 8px; }
.route-editor .route-selectors { align-items: end; }
.route-editor .editor-tables .table-wrap { max-height: min(58dvh, 570px); }
.route-editor .editor-tables button { min-width: 2.35rem; }
.task-picker { padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 8px; }
.task-picker > summary { cursor: pointer; font-weight: 600; }
.task-picker > .stack { margin-top: .45rem; }
.task-picker-list { display: grid; gap: .35rem; max-height: 16rem; overflow: auto; }
.task-editor { max-width: 52rem; }
.timeline-bar { display: flex; min-height: 12px; border-radius: 5px; overflow: hidden; background: var(--field); }
.timeline-bar > span { flex-basis: 0; }
.timeline-bar .road, .timeline-key .road { background: #336b8b; }
.timeline-bar .service, .timeline-key .service { background: #428574; }
.timeline-bar .wait, .timeline-key .wait { background: #c7a244; }
.timeline-key { display: inline-flex; align-items: center; gap: .35rem; }
.timeline-key i { width: 9px; height: 9px; border-radius: 2px; }
.result-checks { border-top: 1px solid var(--line); padding-top: .6rem; }
.result-checks summary { cursor: pointer; font-weight: 650; }
.result-checks > .stack { padding: .65rem 0 0; }
.result-warnings { margin: 0; padding-left: 1.25rem; }
@media (max-width: 900px) {
  .route-inspector-grid { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 49rem) {
  .columns { grid-template-columns: minmax(0,1fr); }
  .planner-map-grid { grid-template-columns: minmax(0, 1fr); }
  .planner-map-grid .map-view { height: min(54dvh, 440px); min-height: 270px; }
  .planning-calculate { margin-left: 0; }
}
@container (max-width: 43rem) {
  .project-page { height: auto; min-height: 0; }
  .project-workspace { grid-template-columns: minmax(0, 1fr); }
  .project-sidebar { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .project-sidebar:not(:has(.project-sidebar-footer p)), .project-list, .project-quota-summary { display: none; }
  .project-sidebar-footer {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    border-top: 0;
  }
  .project-detail > .workspace-toolbar { border-radius: 0; }
  .project-description { max-width: 100%; }
  .project-map .map-view { height: clamp(290px, 51dvh, 480px); border-radius: 0 0 12px 12px; }
}
@container (max-width: 35rem) {
  .workbook-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 44rem) {
  .section-tools > .project-search { display: none; }
  select.project-mobile-picker { display: block; }
}
@media (max-width: 61rem) {
  .workspace-layout:has(> .knowledge:not([hidden])) { position: relative; grid-template-columns: minmax(0, 1fr); }
  .knowledge {
    position: absolute; z-index: 2; inset: 0 0 0 auto; width: min(24rem, 100%);
    box-shadow: var(--pop-shadow);
  }
}
@media (max-width: 34rem) {
  .section-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "navigation actions" "context context";
    column-gap: .3rem; padding-inline: .5rem;
  }
  .header-brand { display: none; }
  .header-actions { padding-inline-start: .3rem; }
  .section-nav, .header-actions { gap: .15rem; }
  .header-button, .section-header .account-menu > summary { width: 36px; min-height: 40px; }
  .tool-group { padding-inline-start: .34rem; }
}
@media (max-width: 23rem) {
  .header-button, .section-header .account-menu > summary { width: 34px; }
  .section-header:has(.alert-trigger:not([hidden])) {
    grid-template-areas: "brand actions" "navigation navigation" "context context";
  }
  .section-header:has(.alert-trigger:not([hidden])) .header-brand { display: block; }
}
@media (max-width: 690px) {
  input:not([type=checkbox]), textarea, select { font-size: 1rem; }
  .map-view { height: 290px; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  dialog .panel { padding: .9rem; }
}

dialog.catalog-dialog { width: min(790px, calc(100vw - 1.6rem)); }
.catalog-fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.catalog-fieldset:disabled :is(input, select, textarea) { opacity: 1; }
.catalog-options { border-top: 1px solid var(--line); }
.catalog-options > summary { padding: .52rem 0; cursor: pointer; font-weight: 630; }
.catalog-options > .stack { padding: .28rem 0 .4rem; }
.catalog-picker-list { display: grid; gap: .42rem; max-height: min(360px, 45dvh); overflow: auto; padding: .25rem; }
.catalog-parameters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .36rem .82rem; }
.catalog-parameters dd { margin: 0; overflow-wrap: anywhere; }
.catalog-workbook-value { max-block-size: 14rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.data-toolbar :is(input.data-search, select) { width: auto; max-width: 100%; }
.data-toolbar label.field { display: flex; align-items: center; }
td .catalog-row-actions { min-width: max-content; }
.coordinate-picker-map { cursor: crosshair; }
.catalog-coordinates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .55rem; align-items: end; }
.catalog-coordinates > button { justify-self: start; }
.catalog-columns { position: relative; }
.catalog-columns > .panel { position: absolute; z-index: 2; left: 0; min-width: 11rem; width: max-content; max-width: 70vw; box-shadow: var(--pop-shadow); }
.catalog-columns > summary::-webkit-details-marker { display: none; }
