/* The life audit page (/audit): the game's look, not the website's (the owner's brief,
   2026-10-12: «те же цвета колеса, шрифты, кнопки»). Its tokens are the game's
   (apps/web/src/styles.css): the cream page, white cards, the green way on, the
   Critic's gold for the wheel and the terracotta of a sphere scored low. */
@font-face{font-family:"Unbounded";font-style:normal;font-weight:200 900;font-display:swap;src:url(/fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:200 900;font-display:swap;src:url(/fonts/unbounded-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Manrope";font-style:normal;font-weight:200 800;font-display:swap;src:url(/fonts/manrope-cyrillic-wght-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Manrope";font-style:normal;font-weight:200 800;font-display:swap;src:url(/fonts/manrope-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root {
  --cream: #fbf6ee;
  --paper: #ffffff;
  --ink: #2a2836;
  --ink-soft: #63607a;
  --ink-faint: #716d7b;
  --line: #e7dfcf;
  --action: #637e55;
  --link: #5c764e;
  --critic: #f5e3a6;
  --critic-deep: #d6ae3e;
  --wash-critic: #fcf6e3;
  --wash-realist: #e8efe4;
  --wheel-low: #b8654a;
  --wheel-low-text: #a5543b;
  --wheel-rim: #e2cf7e;
  --display: "Unbounded", "Verdana", sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body.audit-page {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

/* The website's name, home, and the language. */
.audit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 16px 0;
}
.audit-logo {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}
/* The Russian name is the owner's logo (2026-10-15), the word alone at this size. */
.audit-logo img {
  display: block;
  height: 28px;
  width: auto;
}
.audit-lang { position: relative; }
.audit-lang summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.audit-lang summary::-webkit-details-marker { display: none; }
.audit-lang summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.audit-lang[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.audit-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 25, 50, 0.14);
}
.audit-lang-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.audit-lang-menu a:hover { background: var(--cream); }
.audit-lang-menu a[aria-current="page"] { background: var(--ink); color: var(--cream); }
/* «Посмотреть колесо» under the last sphere, with how many are left beside it. */
.audit-see-row { align-items: center; }
.audit-see-left { color: var(--ink-soft); font-size: 0.9rem; }

.audit-main { max-width: 760px; margin: 0 auto; padding: 16px 16px 48px; }
.audit-main[data-view="rate"] { max-width: 960px; }
.audit-main h1 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.audit-main h1:focus { outline: none; }
.audit-lead { max-width: 62ch; margin: 0 0 12px; }
.audit-group {
  margin: 4px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--wash-critic);
  font-size: 0.95rem;
}

/* Buttons, as the game's: the way on green, the way back quiet. */
.audit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.audit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--action);
  border-radius: 14px;
  background: var(--action);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.audit-btn:hover:not(:disabled) { filter: brightness(1.06); }
.audit-btn.ghost { border-color: var(--line); background: var(--paper); color: var(--ink); }
.audit-btn:disabled { cursor: not-allowed; opacity: 0.45; }
.audit-btn:focus-visible,
.audit-pip:focus-visible,
.audit-chip:focus-visible,
.audit-link:focus-visible,
.audit-other:focus-visible,
.audit-others summary:focus-visible,
.audit-lang summary:focus-visible,
.audit-lang-menu a:focus-visible,
.audit-logo:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.audit-link {
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* The wheel, as the game draws it. */
.wheel { display: block; width: 100%; height: auto; overflow: visible; }
.wheel-bg { fill: var(--critic); }
.wheel-fill { fill: var(--critic-deep); }
.wheel-low { fill: var(--wheel-low); }
.wheel-grid { fill: none; stroke: rgba(42, 40, 54, 0.16); stroke-width: 1; }
.wheel-spoke { stroke: #ffffff; }
.wheel-rim { fill: none; stroke: var(--wheel-rim); stroke-width: 2; }
/* An earlier audit, after the game: its outline over the new wheel. */
.wheel-before { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 4; }
.wheel-label { font-family: var(--body); font-size: 14px; font-weight: 800; fill: var(--ink); }
.wheel.is-narrow .wheel-label { font-size: 17px; }
.wheel-score { font-weight: 700; fill: var(--ink-soft); }
.wheel-score.is-low { fill: var(--wheel-low-text); }

/* The scale, 0 to 10. */
.audit-scale { display: flex; flex-direction: column; gap: 6px; }
.audit-scale-row { display: flex; flex-wrap: wrap; gap: 4px; }
.audit-pip {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
.audit-pip.is-in { border-color: var(--critic-deep); background: var(--critic); color: var(--ink); }
.audit-pip.is-on { border-color: var(--critic-deep); background: var(--critic-deep); color: var(--ink); }
.audit-pip:hover { border-color: var(--critic-deep); background: var(--critic); color: var(--ink); }
.audit-ends {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* A larger screen: the eight in a list, the wheel filling beside them. */
.audit-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}
.audit-spheres { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.audit-sphere-head { display: flex; justify-content: space-between; gap: 10px; }
.audit-sphere-name { font-weight: 800; }
.audit-sphere-score { font-size: 0.88rem; font-weight: 700; }
.audit-sphere-score.is-empty { font-weight: 500; color: var(--ink-faint); }
.audit-sphere-sub { margin: 2px 0 8px; font-size: 0.85rem; line-height: 1.4; color: var(--ink-soft); }
.audit-live {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.audit-live .wheel { max-width: 220px; }
.audit-counter { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* A phone: one sphere a screen, the scale in two rows of fingertip buttons. */
.audit-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.audit-bar { height: 6px; overflow: hidden; border-radius: 999px; background: var(--line); }
.audit-bar i { display: block; height: 100%; border-radius: inherit; background: var(--critic-deep); }
.audit-one-sub { margin: 0 0 22px; color: var(--ink-soft); }
.audit-scale.is-rows { gap: 10px; }
.audit-scale.is-rows .audit-scale-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.audit-scale.is-rows .audit-pip {
  width: 100%;
  height: auto;
  min-height: 48px;
  aspect-ratio: 1;
  font-size: 1.05rem;
}
.audit-step { justify-content: space-between; margin-top: 28px; }
.audit-step .audit-btn { flex: 1; }

/* The result. */
.audit-wheel { max-width: 640px; margin: 4px auto 16px; }
.audit-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.audit-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
.audit-legend .is-fill { background: var(--critic-deep); }
.audit-legend .is-low { background: var(--wheel-low); }
.audit-legend .is-bg { background: var(--critic); }
.audit-legend .is-before { border: 1.5px dashed var(--ink); background: none; }
.audit-was { font-weight: 700; }
.audit-return-actions { flex-direction: column; align-items: stretch; max-width: 420px; }
.audit-compare { padding: 12px 14px; border-left: 3px solid var(--critic-deep); border-radius: 0 12px 12px 0; background: var(--wash-critic); }
.audit-take { margin-top: 8px; }
.audit-sug { margin: 16px 0 0; }
.audit-sug h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.audit-chips { display: flex; flex-direction: column; gap: 8px; }
.audit-chip {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.audit-chip:hover { background: var(--wash-realist); }
.audit-others {
  margin: 24px 0 0;
  padding: 4px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.audit-others summary { min-height: 44px; display: flex; align-items: center; font-weight: 800; cursor: pointer; }
.audit-note { margin: 0 0 8px; font-size: 0.88rem; color: var(--ink-soft); }
.audit-others-list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.audit-other {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.audit-other::after { content: "+"; color: var(--ink-soft); }
.audit-other.is-open::after { content: "−"; }
.audit-others-list .audit-sug { margin: 8px 0 10px; }

/* The request. */
.audit-label { display: block; margin: 18px 0 6px; font-weight: 800; }
.audit-request {
  width: 100%;
  min-height: 7.5em;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.02rem;
  line-height: 1.5;
  resize: vertical;
}
.audit-request:focus { outline: 3px solid var(--wheel-rim); outline-offset: 0; border-color: var(--critic-deep); }
.audit-hint { margin: 6px 0 0; font-size: 0.86rem; color: var(--ink-soft); }
.audit-play { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 24px 0 8px; padding: 18px 20px; border-radius: 16px; background: var(--paper); border: 2px solid var(--line); }
.audit-play-text { flex: 1 1 260px; margin: 0; font-size: 0.98rem; }
.audit-play .audit-btn { flex: 0 0 auto; text-decoration: none; }
.audit-after { max-width: 62ch; margin: 12px 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.audit-toast { min-height: 1.4em; margin: 0; font-weight: 700; color: var(--link); opacity: 0; transition: opacity 0.2s; }
.audit-toast.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .audit-toast { transition: none; }
}

/* Small, at the foot of the wheel and the request (the brief, §5). */
.audit-foot {
  margin-top: 36px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.audit-foot p { margin: 0 0 6px; }
.audit-foot a { color: var(--link); font-weight: 700; }

/* A phone: buttons across the width. */
@media (max-width: 599px) {
  .audit-actions .audit-btn { flex: 1 1 auto; }
}
