/* Общий стиль в духе страницы ошибки Chrome: используется и клиентом, и админкой. */
:root { color-scheme: light dark; }

body {
  --bg: #fff;
  --text: #5f6368;
  --heading: #202124;
  --error-code: #5f6368;
  --line: #dadce0;
  --btn-fill: #1a73e8;
  --btn-fill-active: #1967d2;
  --btn-text: #fff;
  --sec-border: #9aa0a6;
  --sec-hover-border: #80868b;
  --sec-fill: #fff;
  --sec-hover-fill: #f8f9fa;
  --sec-text: #5f6368;
  --danger: #d93025;
  --ok: #1e8e3e;

  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, system-ui, -apple-system, Roboto, sans-serif;
  font-size: 75%;
  word-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}
html { font-size: 125%; }

@media (prefers-color-scheme: dark) {
  body {
    --bg: #202124;
    --text: #9aa0a6;
    --heading: #9aa0a6;
    --error-code: #9aa0a6;
    --line: #3c4043;
    --btn-fill: #8ab4f8;
    --btn-fill-active: #81a2d0;
    --btn-text: #202124;
    --sec-border: #5f6368;
    --sec-fill: #202124;
    --sec-hover-fill: #303339;
    --sec-text: #8ab4f8;
    --danger: #f28b82;
    --ok: #81c995;
  }
  .icon { filter: invert(1); }  /* так делает и сам Chrome */
}

.hidden { display: none !important; }

.interstitial-wrapper {
  box-sizing: border-box;
  max-width: 600px;
  width: 100%;
  margin: 14vh auto 0;
  padding: 0 24px;
  font-size: 1em;
  line-height: 1.6em;
}

.icon {
  width: 72px;
  height: 72px;
  margin: 0 0 40px;
  background-repeat: no-repeat;
  background-size: 100%;
}
.icon-generic {
  content: image-set(url(../img/generic@1x.png) 1x, url(../img/generic@2x.png) 2x);
}

h1 {
  color: var(--heading);
  font-size: 1.6em;
  font-weight: normal;
  line-height: 1.25em;
  margin: 0 0 16px;
}
#main-message > p { display: inline; }

.error-code {
  color: var(--error-code);
  font-size: .8em;
  margin-top: 12px;
  text-transform: uppercase;
}
.error-code + .error-code { margin-top: 0; }

.nav-wrapper { margin-top: 51px; display: flex; gap: 10px; flex-wrap: wrap; }

button { font-family: inherit; }
.primary-button, .secondary-button, .danger-button {
  border: 0;
  border-radius: 8px;
  box-sizing: border-box;
  cursor: pointer;
  font-size: .875em;
  margin: 0;
  padding: 8px 14px;
  user-select: none;
  transition: box-shadow 150ms cubic-bezier(.4, 0, .2, 1);
}
.primary-button { background: var(--btn-fill); color: var(--btn-text); }
.primary-button:active { background: var(--btn-fill-active); outline: 0; }
.primary-button:focus-visible, .secondary-button:focus-visible, .danger-button:focus-visible {
  outline: 2px solid var(--btn-fill); outline-offset: 2px;
}
.primary-button:disabled { opacity: .6; cursor: default; }

.secondary-button { background: var(--sec-fill); border: 1px solid var(--sec-border); color: var(--sec-text); }
.secondary-button:hover { background: var(--sec-hover-fill); border-color: var(--sec-hover-border); }
.secondary-button:active { border-color: #fff; box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15); }

.danger-button { background: var(--sec-fill); border: 1px solid var(--danger); color: var(--danger); }
.danger-button:hover { background: var(--sec-hover-fill); }

@media (max-width: 420px) {
  .interstitial-wrapper { margin-top: 8vh; }
  .icon { margin-bottom: 24px; }
}
