/* Canonical shell geometry; module-specific controls belong to the tools row.
   «Проявка»: шапка — тёмный остров фотолаборатории в любой теме, поэтому токены контуров переопределены внутри. */
.bylo-shell.bylo-shell {
  --bg: #120E0C; --bg2: #1B1512; --bg3: #2A201B; --col-bg: #1B1512; --card-bg: #2A201B;
  --border: rgba(255, 232, 220, .13); --border2: rgba(255, 232, 220, .24);
  --text: #F4ECE5; --text2: #BBAEA4; --text3: #8E8077; --hover: rgba(255, 255, 255, .06);
  --accent: #FF4F1A; --accent2: #FF7A4D;
  --color-bg: #120E0C; --color-surface: #1B1512; --color-surface-muted: #2A201B;
  --color-border: rgba(255, 232, 220, .13); --color-border-strong: rgba(255, 232, 220, .24);
  --color-text: #F4ECE5; --color-text-muted: #BBAEA4; --color-text-soft: #8E8077;
  --color-primary: #FF4F1A; --color-primary-hover: #FF7A4D; --color-on-primary: #15120E;
  --color-primary-soft: rgba(255, 79, 26, .16); --color-primary-border: rgba(255, 122, 77, .42);
  --external-bg: #120E0C; --external-surface: #1B1512; --external-surface-muted: #2A201B; --external-surface-soft: #221A16;
  --external-border: rgba(255, 232, 220, .13); --external-border-strong: rgba(255, 232, 220, .24);
  --external-text: #F4ECE5; --external-muted: #BBAEA4; --external-soft: #8E8077;
  --external-primary: #FF4F1A; --external-primary-hover: #FF7A4D;
  --external-primary-soft: rgba(255, 79, 26, .16); --external-primary-border: rgba(255, 122, 77, .42);
  --shell-surface: #120E0C;
  --shell-edge: var(--border);
  --shell-ink: var(--text);
  --shell-soft: var(--bg3);
  color-scheme: dark;
  font-family: "Golos Text", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  display: block; flex: 0 0 auto; width: 100%; height: auto; min-height: 64px;
  padding: 0; margin: 0; border: 0; border-bottom: 1px solid var(--shell-edge);
  border-radius: 0; background: var(--shell-surface); color: var(--shell-ink);
  box-sizing: border-box; box-shadow: none; overflow: visible; z-index: 100;
}
.bylo-shell *, .bylo-shell *::before, .bylo-shell *::after { box-sizing: border-box; }
.bylo-shell__row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 16px; height: 63px; padding: 9px 24px 10px;
}
.bylo-shell__start, .bylo-shell__actions {
  display: flex; align-items: center; gap: 12px; min-width: 0; height: 44px;
}
.bylo-shell .bylo-shell__brand {
  position: relative; display: flex; align-items: center; justify-content: flex-start;
  /* Старые правила .logo-button (92px и обрезка) знак «Проявки» не зажимают: кнопка по ширине знака */
  flex: 0 0 auto; flex-direction: row; width: auto; min-width: 116px; max-width: none; height: 44px; min-height: 44px; overflow: visible;
  margin: 0; padding: 0 4px; border: 0; border-radius: 4px;
  background: none; color: var(--shell-ink); font-size: 15px;
  transform: none; line-height: 1; box-shadow: none; text-decoration: none; cursor: pointer;
}
.bylo-shell__brand :is(.logo-button-subtitle, .external-brand-subtitle, .brand-subtitle) { display: none; }
.bylo-shell__brand > .pv-logo { font-size: inherit; }
/* Старое .logo span красило слова акцентом: у знака цвет только от шапки, сигнал — у квадрата */
.bylo-shell__brand :is(.pv-logo, .pv-logo span) { color: inherit; }
.bylo-shell__brand :is(.logo-button-title, img, svg) {
  position: static; display: block; width: 90px; max-width: 100%; height: 18px;
  margin: 0; padding: 0; transform: none; object-fit: contain;
}
.bylo-shell .bylo-shell__menu { position: relative; flex: 0 0 44px; margin: 0; height: 44px; }
.bylo-shell .bylo-shell__menu-control {
  display: grid; place-items: center; width: 44px; min-width: 44px; max-width: 44px;
  height: 44px; min-height: 44px; padding: 0; margin: 0; border: 1px solid var(--shell-edge);
  border-radius: 12px; background: var(--shell-soft); color: var(--shell-ink);
  line-height: 1; transform: none; box-shadow: none;
}
.bylo-shell .bylo-shell__menu-control > :is(.section-current-icon, .external-icon, .bylo-shell__menu-mark),
.bylo-shell .bylo-shell__menu-control svg {
  position: static; display: block; width: 20px; min-width: 20px; height: 20px; min-height: 20px;
  margin: 0; padding: 0; transform: none; line-height: 1; flex: none;
}
.bylo-shell__context { min-width: 0; text-align: center; overflow: hidden; }
.bylo-shell__context > :is(.external-header-context, .external-order-context, .board-switcher, .project-pill) {
  position: static; display: block; min-width: 0; width: 100%; max-width: 100%; margin: 0; padding: 0;
  border: 0; background: none; transform: none; text-align: center;
  font-size: 14px; font-weight: 600; line-height: 20px; color: inherit;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bylo-shell .bylo-shell__account-action {
  min-height: 44px; height: 44px; margin: 0; flex-shrink: 0;
  border-radius: 12px; align-items: center; justify-content: center;
}
.bylo-shell .header-icon-control.bylo-shell__account-action { width: 44px; min-width: 44px; }
.bylo-shell .btn-theme .icon-sun { display: none; }
[data-theme="dark"] .bylo-shell .btn-theme .icon-sun { display: block; }
[data-theme="dark"] .bylo-shell .btn-theme .icon-moon { display: none; }
.bylo-shell :is(.external-profile-pill, .header-profile-control) {
  display: flex; gap: 8px; max-width: 220px; min-width: 44px; padding: 5px 12px 5px 6px;
  border: 1px solid var(--shell-edge); background: var(--shell-soft); box-shadow: none;
  font-size: 14px; line-height: 20px; font-weight: 600;
}
.bylo-shell :is(.external-profile-avatar, .account-avatar) {
  display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px;
  padding: 0; margin: 0; border-radius: 8px; font-size: 13px; line-height: 1;
}
.bylo-shell :is(.external-profile-name, .account-handle) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bylo-shell__tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 8px 24px; border-top: 1px solid var(--shell-edge); }
.bylo-shell__tools:not([data-module-tools]):not(:has(> .header-right > :not([hidden]), > .board-header-context:not([hidden]))) { display: none; }
.bylo-shell[hidden] { display: none; }
.bylo-shell__tools > .header-right { margin: 0 0 0 auto; min-width: 0; flex-wrap: wrap; }
.bylo-shell__tools > .board-header-context { margin: 0; }
.bylo-shell :is(button, a):focus-visible { outline: 2px solid #FF4F1A; outline-offset: 3px; }
@media (max-width: 900px) {
  .bylo-shell .header-profile-control { width: 44px; padding: 0; justify-content: center; }
  .bylo-shell .header-profile-control > i { display: none; }
}
@media (max-width: 600px) {
  .bylo-shell__row { gap: 8px; padding-inline: 12px; }
  .bylo-shell__start, .bylo-shell__actions { gap: 8px; }
  .bylo-shell .bylo-shell__brand { min-width: 0; padding-inline: 2px; }
  .bylo-shell :is(.external-profile-pill, .header-profile-control) { width: 44px; padding: 6px; }
  .bylo-shell :is(.external-profile-name, .account-handle, .header-profile-control > i) { display: none; }
  .bylo-shell__context > :is(.external-header-context, .external-order-context, .board-switcher) { font-size: 12px; }
  .bylo-shell__tools { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { .bylo-shell * { transition: none; animation: none; } }
