:root {
  --engpro-shell-height: 64px;
  --engpro-mail-native-header-height: 80px;
  --engpro-shell-ink: #103548;
  --engpro-shell-muted: #587183;
  --engpro-shell-bg: #ffffff;
  --engpro-shell-bg-strong: #f3f7f9;
  --engpro-shell-line: #d7e2e9;
  --engpro-shell-focus: #1575ff;
}

html.engpro-shell-mounted {
  box-sizing: border-box !important;
  height: 100% !important;
  min-height: 100% !important;
  padding-top: var(--engpro-shell-height) !important;
}

html.engpro-shell-mounted body {
  box-sizing: border-box !important;
  height: 100% !important;
  min-height: 100% !important;
}

/* RCG: общая шапка остаётся видимой и доступной внутри редактора. */
html.engpro-shell-editor-open {
  padding-top: var(--engpro-shell-height) !important;
}

html.engpro-shell-editor-open .engpro-shell {
  display: grid !important;
}

html.engpro-shell-editor-open.engpro-service--drive
  .MuiDialog-root:has(iframe[src*="onlyoffice.rcg.kg"]) {
  top: var(--engpro-shell-height) !important;
  bottom: 0 !important;
  height: auto !important;
}

html.engpro-shell-editor-open:not(.engpro-service--drive) #onlyoffice-editor {
  height: calc(100dvh - var(--engpro-shell-height)) !important;
}

.engpro-shell,
.engpro-shell * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.engpro-shell {
  position: fixed;
  z-index: 2147483000;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  height: var(--engpro-shell-height);
  grid-template-columns: minmax(154px, auto) 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--engpro-shell-line);
  color: var(--engpro-shell-ink);
  background: var(--engpro-shell-bg);
  box-shadow: 0 8px 24px rgba(20, 54, 72, 0.1);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.2;
}

html.engpro-shell-mounted.engpro-service--mail #engpro-mail-flutter-host {
  top: calc(var(--engpro-shell-height) - var(--engpro-mail-native-header-height)) !important;
}

.engpro-shell--mail {
  grid-template-columns: 220px minmax(280px, 625px) minmax(0, 1fr);
  gap: 0;
}

.engpro-shell--drive {
  grid-template-columns: 220px minmax(280px, 625px) minmax(0, 1fr);
  gap: 0;
}

.engpro-shell__drive-search {
  grid-template-columns: 48px minmax(0, 1fr);
}

.engpro-shell__mail-search,
.engpro-shell__drive-search {
  display: grid;
  width: 100%;
  height: 52px;
  min-width: 0;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #607788;
  background: #e5edf4;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out, background-color 160ms ease-out;
}

.engpro-shell__mail-search:hover,
.engpro-shell__drive-search:hover {
  background: #e0eaf2;
}

.engpro-shell__mail-search:focus-within,
.engpro-shell__drive-search:focus-within {
  border-color: #7eb8ff;
  background: #edf4f9;
  box-shadow: 0 0 0 3px rgba(21, 117, 255, 0.16);
}

.engpro-shell__mail-search-input,
.engpro-shell__drive-search-input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 8px;
  border: 0;
  outline: 0;
  color: #29485b;
  background: transparent;
  font: 400 16px/1.2 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.engpro-shell__mail-search-input::placeholder,
.engpro-shell__drive-search-input::placeholder {
  color: #8092a0;
  opacity: 1;
}

.engpro-shell__mail-search-input::-webkit-search-cancel-button,
.engpro-shell__drive-search-input::-webkit-search-cancel-button {
  cursor: pointer;
}

.engpro-shell__mail-search-submit,
.engpro-shell__mail-filter,
.engpro-shell__drive-search-submit {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #667f90;
  background: transparent;
  cursor: pointer;
}

.engpro-shell__mail-search-submit:hover,
.engpro-shell__mail-filter:hover,
.engpro-shell__drive-search-submit:hover {
  color: #194f70;
  background: rgba(255, 255, 255, 0.62);
}

.engpro-shell__mail-search-submit:focus-visible,
.engpro-shell__mail-filter:focus-visible,
.engpro-shell__drive-search-submit:focus-visible {
  outline: 3px solid var(--engpro-shell-focus);
  outline-offset: -3px;
}

.engpro-shell__mail-search-submit svg,
.engpro-shell__mail-filter svg,
.engpro-shell__drive-search-submit svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.engpro-shell a {
  color: inherit;
  text-decoration: none;
}

.engpro-shell button {
  font: inherit;
}

.engpro-shell__brand {
  display: inline-flex;
  width: fit-content;
  height: 54px;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
}

.engpro-shell__brand-text {
  display: block;
  color: var(--engpro-shell-ink);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1;
  white-space: nowrap;
}

.engpro-shell__actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}

.engpro-shell__notification-toggle,
.engpro-shell__account,
.engpro-shell__launcher {
  height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--engpro-shell-ink);
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
}

.engpro-shell__notifications {
  position: relative;
  flex: 0 0 auto;
}

.engpro-shell__notification-toggle {
  position: relative;
  display: grid;
  width: 42px;
  place-items: center;
  padding: 0;
  color: #647b89;
}

.engpro-shell__notification-toggle svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.engpro-shell__notification-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: #c83939;
  box-shadow: 0 3px 8px rgba(123, 25, 25, 0.28);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.engpro-shell__notification-badge[hidden] {
  display: none;
}

.engpro-shell__account {
  display: flex;
  width: auto;
  max-width: 280px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
}

.engpro-shell__launcher {
  display: grid;
  width: 42px;
  place-items: center;
  padding: 0;
}

.engpro-shell__notification-toggle:hover,
.engpro-shell__account:hover,
.engpro-shell__launcher:hover,
.engpro-shell__notification-toggle[aria-expanded="true"],
.engpro-shell__account[aria-expanded="true"],
.engpro-shell__launcher[aria-expanded="true"],
.engpro-shell__account[data-current="page"] {
  border-color: var(--engpro-shell-line);
  background: var(--engpro-shell-bg-strong);
}

.engpro-shell__notification-toggle:active,
.engpro-shell__account:active,
.engpro-shell__launcher:active {
  transform: translateY(1px);
}

.engpro-shell__notification-toggle:focus-visible,
.engpro-shell__account:focus-visible,
.engpro-shell__launcher:focus-visible,
.engpro-shell__brand:focus-visible,
.engpro-shell__service:focus-visible,
.engpro-shell__account-menu-item:focus-visible,
.engpro-shell__linked-account:focus-visible {
  outline: 3px solid var(--engpro-shell-focus);
  outline-offset: 2px;
}

.engpro-shell__notification-panel {
  position: absolute;
  top: calc(100% + 11px);
  right: 0;
  display: flex;
  width: 380px;
  height: min(520px, calc(100vh - var(--engpro-shell-height) - 24px));
  min-height: 240px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9e5ec;
  border-radius: 10px;
  color: #173246;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(8, 35, 51, 0.22);
  transform-origin: top right;
  animation: engpro-shell-menu-in 160ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.engpro-shell__notification-panel[hidden] {
  display: none;
}

.engpro-shell__notification-header {
  display: flex;
  min-height: 70px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #e3ebf0;
  background: #ffffff;
}

.engpro-shell__notification-header h2,
.engpro-shell__notification-header p,
.engpro-shell__notification-loading p,
.engpro-shell__notification-error p,
.engpro-shell__notification-empty p,
.engpro-shell__notification-copy,
.engpro-shell__notification-meta,
.engpro-shell__notification-overflow {
  margin: 0;
}

.engpro-shell__notification-header h2 {
  color: #173246;
  font-size: 16px;
  font-weight: 780;
  line-height: 1.2;
}

.engpro-shell__notification-header p {
  margin-top: 3px;
  color: #6b8290;
  font-size: 11px;
}

.engpro-shell__notification-read-all,
.engpro-shell__notification-error button {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #b9d8e8;
  border-radius: 7px;
  color: #075a8f;
  background: #f4fbff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}

.engpro-shell__notification-read-all:hover:not(:disabled),
.engpro-shell__notification-error button:hover {
  border-color: #77bfe3;
  background: #e9f7ff;
}

.engpro-shell__notification-read-all:disabled {
  cursor: default;
  opacity: 0.48;
}

.engpro-shell__notification-read-all:focus-visible,
.engpro-shell__notification-error button:focus-visible,
.engpro-shell__notification-item:focus-visible,
.engpro-shell__notification-copy a:focus-visible {
  outline: 3px solid var(--engpro-shell-focus);
  outline-offset: 2px;
}

.engpro-shell__notification-loading,
.engpro-shell__notification-error,
.engpro-shell__notification-empty {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  place-content: center;
  justify-items: center;
  gap: 9px;
  padding: 28px;
  color: #607887;
  text-align: center;
}

.engpro-shell__notification-loading[hidden],
.engpro-shell__notification-error[hidden],
.engpro-shell__notification-empty[hidden],
.engpro-shell__notification-list[hidden],
.engpro-shell__notification-overflow[hidden] {
  display: none;
}

.engpro-shell__notification-loading > span {
  width: 26px;
  height: 26px;
  border: 3px solid #dcebf3;
  border-top-color: #1681b8;
  border-radius: 50%;
  animation: engpro-shell-spin 700ms linear infinite;
}

.engpro-shell__notification-error strong,
.engpro-shell__notification-empty strong {
  color: #29485b;
  font-size: 14px;
}

.engpro-shell__notification-error p,
.engpro-shell__notification-empty p {
  max-width: 280px;
  font-size: 12px;
  line-height: 1.45;
}

.engpro-shell__notification-error button {
  margin-top: 4px;
}

.engpro-shell__notification-empty > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: #5d8295;
  background: #edf5f8;
}

.engpro-shell__notification-empty svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.engpro-shell__notification-list {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.engpro-shell__notification-item {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 16px 14px 13px;
  border-bottom: 1px solid #e9eff3;
  background: #ffffff;
  cursor: default;
  transition: background-color 160ms ease-out;
}

.engpro-shell__notification-item:hover {
  background: #f6fafc;
}

.engpro-shell__notification-item--unread {
  background: #edf8fe;
}

.engpro-shell__notification-item--unread:hover {
  background: #e5f4fb;
}

.engpro-shell__notification-marker {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: transparent;
}

.engpro-shell__notification-item--unread .engpro-shell__notification-marker {
  background: #1681b8;
  box-shadow: 0 0 0 3px rgba(22, 129, 184, 0.13);
}

.engpro-shell__notification-content {
  min-width: 0;
}

.engpro-shell__notification-copy {
  overflow-wrap: anywhere;
  color: #29485b;
  font-size: 13px;
  line-height: 1.45;
}

.engpro-shell__notification-copy a {
  color: #075f96 !important;
  font-weight: 740;
  text-decoration: underline;
  text-decoration-color: rgba(7, 95, 150, 0.3);
  text-underline-offset: 2px;
}

.engpro-shell__notification-copy a:hover {
  color: #034f7e !important;
  text-decoration-color: currentColor;
}

.engpro-shell__notification-meta {
  margin-top: 6px;
  color: #728894;
  font-size: 10px;
  line-height: 1.3;
}

.engpro-shell__notification-object--revoked {
  color: #6d7d86;
  font-weight: 680;
}

.engpro-shell__notification-item--revoked {
  background: #f7f9fa;
}

.engpro-shell__notification-overflow {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-top: 1px solid #e3ebf0;
  color: #667d8b;
  text-align: center;
  background: #f7fafb;
  font-size: 11px;
}

.engpro-shell__account-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
}

.engpro-shell__account-icon img {
  display: none;
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
}
.engpro-shell__account-icon--photo { width: 32px; height: 32px; }
.engpro-shell__account-icon--photo img { display: block; }
.engpro-shell__account-icon.engpro-shell__account-icon--photo svg { display: none; }

.engpro-shell__identity {
  display: grid;
  min-width: 0;
  max-width: 190px;
  gap: 2px;
  text-align: left;
}

.engpro-shell__identity strong,
.engpro-shell__identity span,
.engpro-shell__menu-identity strong,
.engpro-shell__menu-identity span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engpro-shell__identity strong,
.engpro-shell__menu-identity strong {
  color: #173246;
  font-size: 13px;
  font-weight: 750;
}

.engpro-shell__identity span,
.engpro-shell__menu-identity span {
  color: var(--engpro-shell-muted);
  font-size: 11px;
}

.engpro-shell__account-icon svg,
.engpro-shell__launcher svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.engpro-shell__account-menu {
  position: absolute;
  top: calc(100% + 11px);
  right: 48px;
  display: grid;
  width: 348px;
  max-height: min(720px, calc(100vh - var(--engpro-shell-height) - 24px));
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #d9e5ec;
  border-radius: 8px;
  color: #173246;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(8, 35, 51, 0.2);
  transform-origin: top right;
  animation: engpro-shell-menu-in 160ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.engpro-shell__account-summary {
  min-width: 0;
  padding: 8px 8px 12px;
  border-bottom: 1px solid #e4edf2;
}

.engpro-shell__menu-identity {
  display: grid;
  min-width: 0;
  gap: 3px;
  margin-bottom: 14px;
}

.engpro-shell__account-summary h2 {
  margin: 0 0 11px;
  color: #173246;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

.engpro-shell__account-switcher {
  display: grid;
  min-width: 0;
  gap: 7px;
  margin-bottom: 0;
}

.engpro-shell__linked-accounts {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.engpro-shell__accounts-empty {
  margin: 0;
  padding: 8px 6px;
  color: #587386;
  font-size: 12px;
  line-height: 1.4;
}

.engpro-shell__linked-account {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #173246;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}

.engpro-shell__linked-account:hover:not(:disabled) {
  border-color: #d8e8f1;
  background: #f4f9fc;
}

.engpro-shell__linked-account--active {
  border-color: #addcf5;
  background: #edf8fe;
  cursor: default;
}

.engpro-shell__linked-account--stale {
  border-color: #efd6aa;
  background: #fff9ee;
}

.engpro-shell__linked-account-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #075a8f;
  font-size: 11px;
  font-weight: 800;
  background: #dff3fd;
}

.engpro-shell__linked-account-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.engpro-shell__linked-account-copy strong,
.engpro-shell__linked-account-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engpro-shell__linked-account-copy strong {
  color: #173246;
  font-size: 12px;
  font-weight: 750;
}

.engpro-shell__linked-account-copy span {
  color: #587386;
  font-size: 10px;
}

.engpro-shell__linked-account-status {
  color: #2d687f;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.engpro-shell__linked-account--stale .engpro-shell__linked-account-status {
  color: #9c6511;
}

.engpro-shell__account-menu[hidden] {
  display: none;
}

.engpro-shell__account-menu-item {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  color: #173246 !important;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease-out, background-color 160ms ease-out;
}

.engpro-shell__account-menu-item[hidden] {
  display: none;
}

.engpro-shell__account-menu-item:disabled,
.engpro-shell__linked-account:disabled {
  cursor: wait;
  opacity: 0.65;
}

.engpro-shell__account-menu-item:hover,
.engpro-shell__account-menu-item[aria-current="page"] {
  color: #075a8f !important;
  background: #edf7fc;
}

.engpro-shell__account-menu-item svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.engpro-shell__account-menu-item--logout {
  margin-top: 3px;
  border-top: 1px solid #e4edf2;
  border-radius: 0 0 6px 6px;
}

.engpro-shell__account-menu-item--add {
  width: 100%;
  min-height: 44px;
  padding: 7px 8px;
  font-size: 12px;
}

.engpro-shell__account-menu-item--logout-all {
  color: #8b2f2f !important;
}

.engpro-shell__account-menu-item--logout-all:hover {
  color: #712020 !important;
  background: #fff1f1;
}

.engpro-shell__menu {
  position: absolute;
  top: calc(100% + 11px);
  right: 0;
  display: grid;
  width: 372px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 12px;
  border: 1px solid #d9e5ec;
  border-radius: 8px;
  color: #173246;
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(8, 35, 51, 0.24);
  transform-origin: top right;
  animation: engpro-shell-menu-in 180ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.engpro-shell__menu[hidden] {
  display: none;
}

.engpro-shell__service {
  display: grid;
  min-width: 0;
  min-height: 92px;
  grid-template-rows: 48px auto;
  place-items: center;
  gap: 7px;
  padding: 9px 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #28475b !important;
  text-align: center;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}

.engpro-shell__service:hover {
  border-color: #d8e8f1;
  background: #f1f8fc;
}

.engpro-shell__service[aria-current="page"] {
  border-color: #9ed8f8;
  color: #075a8f !important;
  background: #e9f7ff;
}

.engpro-shell__service img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.engpro-shell__service span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The shared EngPro shell owns branding, service navigation and Drive search. */
.coz-bar-container > :first-child,
.coz-bar-container > nav {
  display: none !important;
}

.coz-bar-container > .u-flex-grow {
  flex: 1 1 100% !important;
  min-width: 0 !important;
}

/* Drive's native toolbar has a broken key handler in this build. The shared
   shell provides the accessible replacement search field above the app. */
html.engpro-service--drive #cozy-bar {
  display: none !important;
}

/* Calendar already sits below the shared EngPro account entry. Hide only the
   duplicate native profile button and keep the rest of its toolbar intact. */
html.engpro-service--calendar button[aria-label="Профиль"],
html.engpro-service--calendar button[aria-label="Profile"] {
  display: none !important;
}

/* Фиксированная панель Calendar должна помещаться между его menubar и низом
   viewport. Иначе menubar перекрывает кнопку, а низ панели уходит за экран. */
html.engpro-service--calendar .sidebar.MuiDrawer-paper {
  top: 60px !important;
  bottom: 0 !important;
  height: auto !important;
}

/* LinShare's upstream community footer advertises an external vendor and
   enterprise offer. The EngPro service shell owns this public surface. */
html.engpro-service--linshare .ant-layout-footer.footer {
  display: none !important;
}

@keyframes engpro-shell-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes engpro-shell-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  :root {
    --engpro-shell-height: 58px;
  }

  /* Cozy does not render the search input at this breakpoint, so its native
     bar would otherwise remain as an empty strip below the shared shell. */
  .coz-target--browser,
  .coz-bar-container {
    display: none !important;
  }

  main[class*="o-layout-main-topbar"]::before {
    display: none !important;
    content: none !important;
  }

  .engpro-shell {
    grid-template-columns: minmax(118px, auto) 1fr;
    gap: 8px;
    padding: 0 9px;
  }

  .engpro-shell--mail {
    grid-template-columns: 108px minmax(0, 1fr) auto;
    gap: 6px;
  }

  .engpro-shell--drive {
    grid-template-columns: 108px minmax(0, 1fr) auto;
    gap: 6px;
  }

  .engpro-shell__mail-search,
  .engpro-shell__drive-search {
    height: 42px;
    grid-template-columns: minmax(0, 1fr) 36px;
    border-radius: 10px;
  }

  .engpro-shell__mail-search-submit,
  .engpro-shell__drive-search-submit {
    display: none;
  }

  .engpro-shell__mail-search-input,
  .engpro-shell__drive-search-input {
    height: 40px;
    padding: 0 4px 0 12px;
    font-size: 13px;
  }

  .engpro-shell__mail-filter {
    width: 36px;
    height: 36px;
  }

  .engpro-shell__mail-filter svg {
    width: 19px;
    height: 19px;
  }

  .engpro-shell__brand {
    height: 50px;
    padding: 0 4px;
  }

  .engpro-shell__brand-text {
    font-size: 20px;
    letter-spacing: -0.045em;
  }

  .engpro-shell__notification-toggle,
  .engpro-shell__account,
  .engpro-shell__launcher {
    width: 40px;
    height: 40px;
  }

  .engpro-shell__account {
    justify-content: center;
    padding: 0;
  }

  .engpro-shell__identity {
    display: none;
  }

  .engpro-shell__notification-panel {
    position: fixed;
    top: calc(var(--engpro-shell-height) + 8px);
    right: 8px;
    left: 8px;
    width: auto;
    height: min(520px, calc(100vh - var(--engpro-shell-height) - 16px));
    min-height: 220px;
  }

  .engpro-shell__menu {
    position: fixed;
    top: calc(var(--engpro-shell-height) + 8px);
    right: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100vh - var(--engpro-shell-height) - 16px);
    overflow-y: auto;
  }

  .engpro-shell__account-menu {
    position: fixed;
    top: calc(var(--engpro-shell-height) + 8px);
    right: 56px;
    width: min(348px, calc(100vw - 64px));
  }

  .engpro-shell__service {
    min-height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .engpro-shell *,
  .engpro-shell *::before,
  .engpro-shell *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* EngPro Meet Call Duration Timer */
[data-engpro-call-timer] {
  position: fixed;
  z-index: 2147482000;
  bottom: 18px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(23, 32, 43, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  user-select: none;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-engpro-call-timer][hidden] {
  display: none !important;
}

.engpro-call-timer__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #37b26c;
  display: inline-block;
  box-shadow: 0 0 6px rgba(55, 178, 108, 0.6);
  animation: engpro-timer-pulse 2s infinite ease-in-out;
}

@keyframes engpro-timer-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.engpro-call-timer__time {
  display: inline-block;
}

@media (max-width: 600px) {
  [data-engpro-call-timer] {
    bottom: auto;
    top: calc(var(--engpro-shell-height, 64px) + 12px);
    left: 12px;
    font-size: 12px;
    padding: 6px 10px;
    gap: 6px;
  }
}

/* RCG mobile Drive padding 20261018 */
/* Нижняя навигация и Create не перекрывают меню последнего файла. */
@media (max-width: 700px) {
  html.engpro-service--drive:not(.engpro-shell-editor-open)
  [class*="fil-content-body--withFabActive-"] {
    padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Мобильное предложение почтового приложения находится под общей шапкой. */
html.engpro-service--mail .smart-banner {
  position: fixed !important;
  top: calc(var(--engpro-shell-height) + 8px) !important;
}
