/* СГЕНЕРИРОВАНО из app.css командой `python3 manage.py build_public_css` — не править руками.
   Подмножество правил app.css для гостевых страниц (аудит 09.2026, F-11); правила кабинета
   правьте в app.css и пересоберите этот файл. Свежесть проверяет тест PublicCssTests. */
:root {
  --bg: #f6f6f4;
  --panel: #ffffff;
  --text: #1f2328;
  --muted: #5f6469;
  --line: #dedbd3;
  --accent: #8b5e18;
  --accent-2: #2e6957;
  --danger: #c73838;
  --radius: 8px;
  --shadow: 0 16px 38px rgba(45, 39, 28, .08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
.guest-shell .main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.nav a.is-active { background: rgba(240,180,58,.18); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 #f0b43a; }
.main { min-width: 0; }
h1, h2 { margin: 0; letter-spacing: 0; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 18px; }
p { line-height: 1.55; }
.button {
  border: 0;
  border-radius: 7px;
  padding: 10px 14px;
  min-height: 40px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  font-size: 14px;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}
.button.primary { background: var(--accent); color: white; }
.button.secondary { background: #fff3d7; color: #855b10; }
.button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.button.danger { background: #fff1f1; color: var(--danger); border: 1px solid #ffd0d0; }
.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(46, 105, 87, .24);
  outline-offset: 2px;
}
.metric-card.is-active {
  border-color: #b78324;
  box-shadow: 0 0 0 2px rgba(183, 131, 36, .12), var(--shadow);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 700; background: #f8fafc; }
.status {
  display: inline-block;
  border-radius: 999px;
  background: #e9f4ef;
  color: #21624f;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}
.feature-card .button,
.feature-card .feature-pay-form { justify-self: start; }
.evidence-link {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.evidence-link strong,
.evidence-link span { overflow-wrap: anywhere; }
.filter-chip.is-active {
  background: #e9f4ef;
  border-color: #c8eadf;
  color: #21624f;
}
.builder-actions .button { width: 100%; }
.preset-card:hover,
.preset-card.is-active {
  border-color: #d7b66d;
  background: #fff8e8;
}
.control-setup-actions .button { padding: 9px 12px; }
.bulk-toolbar .button { min-height: 42px; }
label { color: #3a4558; font-size: 13px; font-weight: 700; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 11px;
  font: inherit;
  background: white;
}
input[type="checkbox"] { width: auto; }
.field-error, .field-errors { color: var(--danger); }
.notice.warning { background: #fff8e8; color: #8a631a; border-color: #f1d79c; }
.auth-card .field-errors ul {
  margin: 0;
  padding-left: 18px;
}
.requisites-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #f1d79c;
  border-radius: 7px;
  background: #fffaf0;
}
.requisites-row .button { white-space: nowrap; }
.requisites-box small { color: var(--muted); }
.messages { padding: 16px 30px 0; display: grid; gap: 8px; }
.message { padding: 12px 14px; border-radius: 7px; background: #eef7f4; color: #21624f; border: 1px solid #c8eadf; }
.message.error { background: #fff1f1; color: var(--danger); border-color: #ffd0d0; }
.pwa-banner-actions .button { flex: 1 1 120px; justify-content: center; min-height: 44px; }
.pwa-banner-actions .button.ghost { color: #ece7de; border-color: rgba(255,255,255,.3); }
.ai-assistant {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  width: min(390px, calc(100vw - 44px));
  pointer-events: none;
}
.ai-assistant-toggle,
.ai-assistant-panel { pointer-events: auto; }
.ai-assistant-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-left: auto;
  border: 0;
  border-radius: 18px;
  background: #1f2924;
  color: #fff;
  padding: 13px 16px;
  box-shadow: 0 18px 42px rgba(31, 41, 36, .24);
  cursor: pointer;
  text-align: left;
}
.ai-assistant-toggle span {
  font-weight: 900;
  font-size: 15px;
}
.ai-assistant-toggle small {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.25;
}
.ai-assistant-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 100%;
  max-height: min(720px, calc(100vh - 120px));
  display: grid;
  grid-template-rows: auto minmax(160px, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(46, 37, 23, .2);
}
.ai-assistant-panel[hidden],
.ai-assistant.is-open .ai-assistant-toggle { display: none; }
.ai-assistant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf7;
}
.ai-assistant-head strong {
  display: block;
  font-size: 17px;
  color: var(--text);
}
.ai-assistant-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.ai-assistant-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.ai-assistant-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  overflow: auto;
}
.ai-message {
  width: fit-content;
  max-width: 92%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 14px;
  padding: 11px 13px;
  color: var(--text);
  line-height: 1.45;
  font-size: 14px;
}
.ai-message-bot {
  background: #f5f3ee;
  border: 1px solid #ebe5da;
}
.ai-message-user {
  margin-left: auto;
  background: #eaf6f0;
  border: 1px solid #cfe8dc;
}
.ai-assistant-chips,
.ai-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ai-assistant-chips button,
.ai-action-links a {
  border: 1px solid #edd29a;
  border-radius: 999px;
  background: #fff8e8;
  color: #8a631a;
  padding: 8px 11px;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.ai-assistant-form {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.ai-assistant-form label {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
}
.ai-assistant-form textarea {
  min-height: 76px;
  resize: vertical;
}
.ai-assistant-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ai-assistant-actions small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}
.ai-assistant-actions .button { white-space: nowrap; }
.tariff-route-card.is-primary {
  border-color: #cfa65d;
  background: #fff8e7;
}
.tech-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(300px, .5fr);
  gap: 18px;
  align-items: start;
  padding: 0 30px 30px;
}
.tech-ingredient-editor {
  display: grid;
  gap: 14px;
}
.tech-ingredient-row.is-selected {
  border-color: #cda35d;
  background: #fffdf7;
}
.tech-ingredient-row.is-manual {
  border-color: #efd49b;
  background: #fffdf7;
}
.tech-ingredient-row.is-deleted { opacity: .45; }
.tech-calc-card.is-empty .tech-calc-stats { display: none; }
.tech-calc-card:not(.is-empty) .tech-calc-empty { display: none; }
.tech-actions .button { width: 100%; }
.wallet-package .button {
  margin-top: 10px;
  width: 100%;
}
.create-choose-card > .button {
  justify-self: start;
  margin-top: 4px;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }
.button.is-loading {
  pointer-events: none;
  opacity: .92;
}
.btn-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 9px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  animation: ai-spin .7s linear infinite;
}
.site-mode-techcards.is-authenticated .page-head,
.site-mode-techcards.is-authenticated .content-grid,
.site-mode-techcards.is-authenticated .tech-form-layout,
.site-mode-techcards.is-authenticated .metrics,
.site-mode-techcards.is-authenticated .main > .panel,
.site-mode-techcards.is-authenticated .main > .form-card,
.site-mode-techcards.is-authenticated .tech-workflow-panel,
.site-mode-techcards.is-authenticated .wide-form,
.site-mode-techcards.is-authenticated .narrow-card,
.site-mode-techcards.is-authenticated .main > .notice,
.site-mode-techcards.is-authenticated .site-footer {
  width: 100%;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}
.site-mode-techcards.is-authenticated .main > .panel,
.site-mode-techcards.is-authenticated .main > .form-card,
.site-mode-techcards.is-authenticated .wide-form,
.site-mode-techcards.is-authenticated .narrow-card { width: calc(100% - 60px); }
.site-mode-techcards.is-authenticated .main > .notice {
  width: calc(100% - 60px);
  max-width: 980px;
}
.site-mode-techcards.is-authenticated .page-head {
  padding-top: 36px;
  padding-bottom: 20px;
}
.site-mode-techcards.is-authenticated .page-head p {
  max-width: 860px;
  margin-bottom: 0;
}
.site-mode-techcards.is-authenticated .page-head > .button-row { max-width: 440px; }
.site-mode-techcards.is-authenticated .form-card,
.site-mode-techcards.is-authenticated .panel { border-color: #e2ded5; }
.site-mode-techcards.is-authenticated .form-card h2,
.site-mode-techcards.is-authenticated .panel h2 { font-size: 20px; }
.site-mode-techcards.is-authenticated .toolbar-panel { margin-bottom: 18px; }
@media (max-width: 1500px) {
  .tech-form-layout,
  .site-mode-techcards.is-authenticated .tech-form-layout { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .56fr); }
}
@media (max-width: 1180px) {
  .tech-hero,
  .tech-form-layout,
  .tech-ai-grid,
  .tech-ai-result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar.is-open .nav { display: grid; }
  .nav-account .button.ghost { color: #ece7de; border-color: rgba(255,255,255,.3); flex: 0 0 auto; }
  .page-head > .button-row .button { flex: 1 1 180px; }
  .ai-assistant {
    right: 14px;
    bottom: 14px;
    width: auto;
  }
  .ai-assistant-toggle {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 16px 34px rgba(31, 41, 36, .22);
  }
  .ai-assistant-toggle span { font-size: 0; }
  .ai-assistant-toggle span::after {
    content: "ИИ";
    font-size: 15px;
    font-weight: 900;
  }
  .ai-assistant-toggle small { display: none; }
  .ai-assistant-panel {
    right: 0;
    bottom: 70px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 96px);
    border-radius: 16px;
  }
  .ai-assistant-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .ai-assistant-actions .button { width: 100%; }
}
@media (max-width: 700px) {
  h1 { font-size: 26px; }
  .content-grid,
  .tech-form-layout,
  .metrics,
  .control-board {
    padding-left: 16px;
    padding-right: 16px;
  }
  .page-head > .button-row .button { width: 100%; }
  .auth-card .button, .requisites-row .button { width: 100%; }
  .public-nav > div a:not(.button) {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
  .public-nav .button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
  }
  .public-nav .button.primary { grid-column: 1 / -1; }
  .button {
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }
  .button-row .button,
  .button-row button {
    min-width: 0;
    max-width: 100%;
  }
  .public-hero .button-row .button,
  .public-hero .button-row button,
  .catalog-empty-state .button-row .button,
  .catalog-empty-state .button-row button,
  .public-cta-panel .button-row .button,
  .public-cta-panel .button-row button {
    justify-content: center;
    min-width: 0;
    width: 100%;
  }
  .ai-assistant:not(.is-open) {
    display: block;
    right: 12px;
    bottom: 12px;
  }
  .ai-assistant.is-open {
    display: block;
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
  .ai-assistant.is-open .ai-assistant-panel { bottom: 0; }
  .site-mode-techcards.is-authenticated .page-head { overflow: hidden; }
  .site-mode-techcards.is-authenticated .main { overflow-x: hidden; }
  .site-mode-techcards.is-authenticated .page-head > .button-row {
    flex-direction: column;
    max-width: none;
    width: 100%;
  }
  .site-mode-techcards.is-authenticated .page-head > .button-row .button,
  .site-mode-techcards.is-authenticated .page-head > .button-row form,
  .site-mode-techcards.is-authenticated .page-head > .button-row button {
    flex: 0 0 auto;
    min-height: 44px;
    width: 100%;
  }
  .site-mode-techcards.is-authenticated .page-head h1,
  .site-mode-techcards.is-authenticated .tech-ai-hero h2,
  .site-mode-techcards.is-authenticated .tech-ai-hero p {
    overflow-wrap: break-word;
    word-break: normal;
  }
  .site-mode-techcards.is-authenticated .main > .panel,
  .site-mode-techcards.is-authenticated .main > .form-card,
  .site-mode-techcards.is-authenticated .wide-form,
  .site-mode-techcards.is-authenticated .narrow-card,
  .site-mode-techcards.is-authenticated .main > .notice { width: calc(100% - 32px); }
  .public-assist-strip .button { width: 100%; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr {
    border: 1px solid var(--line);
    border-radius: 7px;
    margin-bottom: 12px;
    background: white;
    overflow: hidden;
  }
  td {
    border-bottom: 1px solid #ece8df;
    display: grid;
    grid-template-columns: minmax(110px, .45fr) minmax(0, 1fr);
    gap: 10px;
  }
  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 700;
  }
}
.expert-filter-bar .button { min-height: 42px; }
@media (max-width: 900px) {
  .expert-action-actions .button,
  .expert-action-actions button { width: 100%; }
}
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  :root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #454545;
    --line: #cfcfcf;
    --shadow: none;
  }
  body {
    background: #ffffff;
    color: #111111;
    font-size: 10pt;
  }
  .app-shell,
  .guest-shell,
  .guest-shell .main {
    display: block;
    min-height: 0;
  }
  .sidebar,
  .topbar,
  .site-footer,
  .messages,
  .back-link { display: none !important; }
  .main {
    width: auto;
    min-width: 0;
  }
}
.entry-field .field-error { color: var(--danger); }
.entry-verdict.is-bad { background: #fbeaea; color: var(--danger); }
.entry-setup-row .button { white-space: nowrap; min-height: 48px; }
.entry-actions .button { min-height: 50px; display: inline-flex; align-items: center; }
.main { padding-bottom: 96px; }
@media (max-width: 560px) {
  .entry-actions .button { width: 100%; justify-content: center; }
  .entry-setup-row .button { width: 100%; justify-content: center; }
}
.directory-main-inputs .button { white-space: nowrap; min-height: 48px; }
.directory-field .field-error, .directory-main-row .field-error { display: block; margin-top: 5px; color: var(--danger); font-size: 13px; }
@media (max-width: 560px) {
  .directory-main-inputs .button { width: 100%; justify-content: center; }
}
.phone-prompt-row .button { min-height: 48px; white-space: nowrap; }
.message a { color: inherit; font-weight: 800; }
@media (max-width: 700px) {
  .phone-prompt-row .button { flex: 1 1 45%; justify-content: center; }
}
.message.first-step {
  background: #fff8e8;
  color: #6b4b0f;
  border-color: #f1d79c;
  font-weight: 700;
}
.journal-empty-state .button { margin-top: 6px; min-height: 48px; padding: 10px 22px; }
.tariff-compare tfoot .button { width: 100%; justify-content: center; }
.signup-steps li.is-active { color: var(--text); }
.signup-steps li.is-active span { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.signup-requisites {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}
.signup-requisites summary {
  padding: 12px 14px;
  color: #8a631a;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.signup-requisites summary::-webkit-details-marker { display: none; }
.signup-requisites summary::before { content: "+"; display: inline-block; width: 18px; }
.signup-requisites[open] summary::before { content: "–"; }
.signup-requisites summary .muted { font-weight: 600; }
@media (max-width: 700px) {
  .tariff-compare tfoot .button { white-space: normal; }
}
@media (max-width: 700px) {
  .tariff-compare-mobile-head > div.is-paid { background: #fff8e7; border-color: #f1d79c; }
}
.kitchen-who .button.ghost { color: #fff; border-color: rgba(255, 255, 255, .35); min-height: 40px; padding: 0 12px; }
.kitchen-journal.is-done { opacity: .8; }
.kitchen-journal-actions .button { min-height: 48px; display: inline-flex; align-items: center; }
@media (max-width: 640px) {
  .kitchen-journal-actions .button { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 640px) {
  .tg-link-text .button { width: 100%; text-align: center; }
}
