/* Настольный интерфейс. Подключается только на широком экране. */
body.app-shell {
  --desktop-gutter: clamp(24px, 3.6vw, 64px);
  --desktop-width: 1680px;
  --desktop-header: #263b33;
  --desktop-header-line: #52675c;
  font-size: 16px;
}

.app-shell .top {
  background: var(--desktop-header);
  border-bottom: 1px solid var(--desktop-header-line);
}

.app-shell .shift-compact,
.app-shell .tabs,
.app-shell .wrap {
  max-width: var(--desktop-width);
  padding-inline: var(--desktop-gutter);
}

.app-shell .shift-compact { padding-block: 22px 16px; }
.app-shell .shift-identity h1 { font-size: 26px; letter-spacing: -.02em; }
.app-shell .shift-identity > span { max-width: 240px; font-size: 13px; }
.app-shell .shift-date { font-size: 13px; }

.app-shell .header-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  overflow: visible;
}

.app-shell .header-navigation button {
  min-height: 42px;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 13px;
  border-color: transparent;
  border-radius: 7px;
  font-size: 14px;
}

.app-shell .header-navigation button svg { width: 19px; height: 19px; }
.app-shell .header-navigation button:hover { border-color: var(--desktop-header-line); }
.app-shell .header-navigation button[aria-current="page"] { border-color: #e2eacb; }
.app-shell .header-navigation .more-btn { display: none; }

.app-shell .header-navigation + .shift-header-stats:not(:empty) {
  margin-top: 16px;
  padding-top: 14px;
}
.app-shell .shift-header-numbers { max-width: 840px; gap: 0; }
.app-shell .shift-header-number { padding: 2px 18px 2px 0; }
.app-shell .shift-header-number + .shift-header-number {
  border-left: 1px solid var(--desktop-header-line);
  padding-left: 18px;
}
.app-shell .shift-header-number strong { font-variant-numeric: tabular-nums; }

.app-shell .tabs {
  background: transparent;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 0 14px;
}
.app-shell .tabs:empty { display: none; }
.app-shell #tabs button[data-view="docs"] { display: inline-flex; align-items: center; }
.app-shell .tabs button {
  min-height: 36px;
  border: 1px solid var(--desktop-header-line);
  color: #e5eddf;
  font: 600 13px var(--font);
  letter-spacing: 0;
  text-transform: none;
}
.app-shell .tabs button[aria-current="page"] {
  background: #e2eacb;
  border-color: #e2eacb;
  color: #26352d;
}

.app-shell .wrap {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-block: 26px 52px;
}
.app-shell .wrap > * { min-width: 0; }
.app-shell .wrap > h2 { font-size: 28px; text-transform: none; letter-spacing: -.015em; }
.app-shell .wrap .card { border-color: var(--line); border-radius: 12px; }
.app-shell .wrap .home-tiles {
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  max-width: none;
}
.app-shell .home-tiles button {
  flex-direction: row;
  justify-content: flex-start;
  min-height: 62px;
  padding: 12px 16px;
  border-width: 1px;
  border-radius: 10px;
  text-align: left;
  font-size: 15px;
}
.app-shell .home-tiles button svg { width: 23px; height: 23px; flex: none; }
.app-shell .wrap > input[type="search"] { width: min(100%, 520px); }
.app-shell .rd-item { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); align-items: center; }
.app-shell .rd-cipher { overflow-wrap: anywhere; text-align: right; }
.app-shell .scroll table { font-variant-numeric: tabular-nums; }
.app-shell .rd-item:hover, .app-shell .home-tiles button:not(:first-child):hover { background: var(--chip); }
.app-shell :is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid #dcae32;
  outline-offset: 2px;
}
