/*
  File role: VOGO eBS Mobile — the look of the mobile app (ebs/app-m/index.php, NOTAR-ASIST D-034): a native-app shell
  (top bar, screens, bottom navigation) on the portal's notary palette (the --nb-* tokens of
  ebs/portal/services/office.css, repeated here as --am-* because the app does not load the portal's stylesheets).
  Mobile first, 320–600 px; on a wider screen the app stays a phone-wide column in the middle.
  @file_version 1.1.0
*/

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  --am-ink: #0B2545;        /* --nb-ink */
  --am-ink-2: #133A66;      /* --nb-ink-2 */
  --am-blue: #0F6CBD;       /* --nb-blue, the VOGO blue */
  --am-sky: #8EC3F0;        /* --nb-sky */
  --am-ice: #EAF3FC;        /* --nb-ice */
  --am-paper: #F4F6F9;      /* --nb-paper */
  --am-text: #1B2A3D;       /* --nb-text */
  --am-muted: #5B6B7F;      /* --nb-muted */
  --am-line: #E2E8F0;
  --am-ok: #15803D;
  --am-bad: #B91C1C;
  --am-radius: 16px;
  --am-radius-s: 12px;
  --am-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 14px rgba(16, 24, 40, 0.06);
  --am-top-h: 60px;
  --am-nav-h: 64px;
  --am-safe-top: env(safe-area-inset-top, 0px);
  --am-safe-bottom: env(safe-area-inset-bottom, 0px);
  --am-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --am-font-display: "Inter Tight", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.appm {
  background: var(--am-paper); color: var(--am-text); font: 400 16px/1.45 var(--am-font);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none; overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--am-blue); }
svg { display: block; }
:focus-visible { outline: 3px solid var(--am-sky); outline-offset: 2px; }
[hidden] { display: none !important; }
.am-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── The shell ────────────────────────────────────────────────────────────── */
.appm-shell {
  position: relative; height: 100%; max-width: 600px; margin: 0 auto; overflow: hidden;
  display: flex; flex-direction: column; background: var(--am-paper);
}
@media (min-width: 601px) {
  body.appm { background: #dfe5ee; }
  .appm-shell { box-shadow: 0 0 40px rgba(16, 24, 40, 0.18); }
}

/* The top bar: back, the office's logo and name. */
.appm-top {
  flex: none; display: flex; align-items: center; gap: 6px;
  min-height: calc(var(--am-top-h) + var(--am-safe-top)); padding: var(--am-safe-top) 14px 0;
  background: var(--am-ink); color: #fff; z-index: 3;
}
.appm-top__back {
  flex: none; width: 44px; height: 44px; margin-left: -8px; border: 0; border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer;
}
.appm-top__back svg { width: 26px; height: 26px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.appm-top__back:active { background: rgba(255, 255, 255, 0.12); }
.appm-top__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.appm-top__brand img { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.appm-top__text { display: flex; flex-direction: column; min-width: 0; }
.appm-top__kicker { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--am-sky); }
.appm-top__title {
  font: 700 1.02rem/1.2 var(--am-font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* The screens' area: the only part that scrolls. */
.appm-view {
  flex: 1; position: relative; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(var(--am-nav-h) + var(--am-safe-bottom) + 24px);
  outline: none;
}
.appm-view.is-flush { padding: 0 0 calc(var(--am-nav-h) + var(--am-safe-bottom)); overflow: hidden; }
.am-screen { animation: am-in 0.22s ease-out both; }
.am-screen.is-back { animation-name: am-in-back; }
@keyframes am-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes am-in-back { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .am-screen { animation: none; } }

/* The bottom navigation. */
.appm-nav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--am-nav-h) + var(--am-safe-bottom)); padding-bottom: var(--am-safe-bottom);
  background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-top: 1px solid var(--am-line);
}
.appm-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--am-muted); text-decoration: none; font-size: 0.7rem; font-weight: 600;
}
.appm-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.appm-nav a.is-active { color: var(--am-blue); }
.appm-nav a.is-active svg { stroke-width: 2.2; }
.appm-nav a.is-active::before {
  content: ""; position: absolute; width: 56px; height: 30px; margin-top: -21px; border-radius: 15px; background: var(--am-ice); z-index: -1;
}
.appm-nav a { position: relative; z-index: 0; }
.appm.is-task .appm-nav { display: none; }
.appm.is-task .appm-view { padding-bottom: calc(var(--am-safe-bottom) + 24px); }

/* The toast. */
.appm-toast {
  position: absolute; left: 16px; right: 16px; bottom: calc(var(--am-nav-h) + var(--am-safe-bottom) + 14px); z-index: 5;
  padding: 14px 16px; border-radius: var(--am-radius-s); background: var(--am-ink); color: #fff; font-weight: 500;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.3); animation: am-toast 0.2s ease-out;
}
.appm-toast.is-bad { background: var(--am-bad); }
@keyframes am-toast { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Building blocks (js/ui.js) ───────────────────────────────────────────── */
.am-h1 { margin: 4px 0 4px; font: 800 1.6rem/1.15 var(--am-font-display); letter-spacing: -0.01em; color: var(--am-ink); }
.am-h2 { margin: 22px 0 10px; font: 700 1.08rem/1.3 var(--am-font-display); color: var(--am-ink); }
.am-h2:first-child { margin-top: 4px; }
.am-lead { margin: 0 0 14px; color: var(--am-muted); }
.am-muted { color: var(--am-muted); }
.am-small { font-size: 0.86rem; }

.am-card {
  display: block; margin: 0 0 12px; padding: 16px; border-radius: var(--am-radius); background: #fff;
  box-shadow: var(--am-shadow); color: inherit; text-decoration: none;
}
a.am-card, button.am-card { width: 100%; border: 0; text-align: left; cursor: pointer; transition: transform 0.12s ease; }
a.am-card:active, button.am-card:active { transform: scale(0.98); }

/* An act in a list. */
.am-act { display: flex; gap: 14px; align-items: center; }
.am-act__icon {
  flex: none; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--am-ice); color: var(--am-blue);
}
.am-act__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.am-act__body { flex: 1; min-width: 0; }
.am-act__title { margin: 0 0 3px; font-weight: 700; line-height: 1.3; color: var(--am-ink); }
.am-act__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.82rem; color: var(--am-muted); }
/* A long deadline or price (the city hall's catalog) stays on one line, as the notary cards read (AGENTPRIM). */
.am-act__meta span { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.am-chev { flex: none; width: 20px; height: 20px; fill: none; stroke: #9aa8b8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The search field. */
.am-search {
  display: flex; align-items: center; gap: 10px; height: 52px; margin: 0 0 16px; padding: 0 16px; border-radius: 26px;
  background: #fff; box-shadow: var(--am-shadow);
}
.am-search svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--am-muted); stroke-width: 2; stroke-linecap: round; }
.am-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 1rem; outline: none; }
button.am-search { width: 100%; border: 0; color: var(--am-muted); text-align: left; cursor: pointer; }

/* The categories: icons in a grid (home) and chips (catalog). */
.am-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 8px; }
.am-cat {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px; border: 0; border-radius: var(--am-radius-s);
  background: #fff; box-shadow: var(--am-shadow); color: var(--am-ink); font-size: 0.72rem; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
}
.am-cat:active { transform: scale(0.96); }
.am-cat__icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; background: var(--am-ice); color: var(--am-blue); }
.am-cat__icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 360px) { .am-cats { grid-template-columns: repeat(3, 1fr); } }

.am-chips { display: flex; gap: 8px; margin: 0 -16px 14px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.am-chips::-webkit-scrollbar { display: none; }
.am-chip {
  flex: none; height: 38px; padding: 0 16px; border: 1px solid var(--am-line); border-radius: 19px; background: #fff;
  color: var(--am-ink); font-size: 0.88rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.am-chip.is-on { border-color: var(--am-blue); background: var(--am-blue); color: #fff; }

/* The office card (home, messages). */
.am-office {
  position: relative; overflow: hidden; margin: 0 0 18px; padding: 20px 18px; border-radius: var(--am-radius); color: #fff;
  background:
    repeating-radial-gradient(circle at 88% 20%, transparent 0 22px, rgba(255, 255, 255, 0.06) 22px 23px),
    linear-gradient(160deg, var(--am-ink) 0%, var(--am-ink-2) 100%);
}
.am-office__kicker { margin: 0 0 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--am-sky); }
.am-office__name { margin: 0 0 6px; font: 800 1.45rem/1.15 var(--am-font-display); }
.am-office__text { margin: 0; font-size: 0.93rem; color: rgba(255, 255, 255, 0.86); }

/* Contact rows. */
.am-rows { margin: 0 0 12px; padding: 4px 0; border-radius: var(--am-radius); background: #fff; box-shadow: var(--am-shadow); }
.am-row { display: flex; gap: 14px; align-items: center; min-height: 60px; padding: 10px 16px; color: inherit; text-decoration: none; }
.am-row + .am-row { border-top: 1px solid var(--am-line); }
.am-row__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: var(--am-ice); color: var(--am-blue); }
.am-row__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.am-row__body { flex: 1; min-width: 0; }
.am-row__label { display: block; font-size: 0.78rem; color: var(--am-muted); }
.am-row__value { display: block; font-weight: 600; color: var(--am-ink); overflow-wrap: anywhere; }
button.am-row { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
a.am-row:active, button.am-row:active { background: var(--am-paper); }

/* Buttons. */
.am-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; margin: 0 0 10px;
  padding: 0 20px; border: 0; border-radius: 14px; background: var(--am-blue); color: #fff; font-size: 1.02rem; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: transform 0.12s ease, opacity 0.12s ease;
}
.am-btn:active { transform: scale(0.98); }
.am-btn[disabled] { opacity: 0.55; pointer-events: none; }
.am-btn--ghost { background: #fff; color: var(--am-blue); box-shadow: inset 0 0 0 1.5px var(--am-blue); }
.am-btn--soft { background: var(--am-ice); color: var(--am-blue); }
.am-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.am-btn.is-busy::after {
  content: ""; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; border-radius: 50%;
  animation: am-spin 0.7s linear infinite;
}
@keyframes am-spin { to { transform: rotate(360deg); } }

/* The bar of a task (request steps): stays at the bottom. */
.am-actionbar {
  position: sticky; bottom: calc(-1 * (var(--am-safe-bottom) + 24px)); z-index: 2; margin: 18px -16px 0;
  padding: 12px 16px calc(12px + var(--am-safe-bottom)); background: linear-gradient(180deg, rgba(244, 246, 249, 0), var(--am-paper) 28%);
}
.am-actionbar .am-btn { margin: 0; }
.am-actionbar .am-btn + .am-btn { margin-top: 10px; }

/* Skeleton loading. */
.am-skel { border-radius: var(--am-radius); background: #fff; box-shadow: var(--am-shadow); margin: 0 0 12px; padding: 16px; }
.am-skel i {
  display: block; height: 12px; margin: 0 0 10px; border-radius: 6px;
  background: linear-gradient(90deg, #edf1f6 0%, #f7f9fb 50%, #edf1f6 100%); background-size: 200% 100%; animation: am-shimmer 1.2s infinite;
}
.am-skel i:nth-child(1) { width: 60%; height: 15px; }
.am-skel i:nth-child(2) { width: 90%; }
.am-skel i:nth-child(3) { width: 40%; margin: 0; }
@keyframes am-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Empty and error states. */
.am-empty { padding: 36px 20px; text-align: center; color: var(--am-muted); }
.am-empty__icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: var(--am-ice); color: var(--am-blue); }
.am-empty__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.am-empty h3 { margin: 0 0 6px; color: var(--am-ink); font-size: 1.05rem; }
.am-empty p { margin: 0 0 18px; }
.am-alert { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--am-radius-s); background: #FEF2F2; color: var(--am-bad); font-size: 0.92rem; }
.am-alert ul { margin: 6px 0 0; padding-left: 18px; }

/* ── The act (screen-service.js) ──────────────────────────────────────────── */
.am-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
.am-fact { padding: 12px 14px; border-radius: var(--am-radius-s); background: #fff; box-shadow: var(--am-shadow); }
.am-fact span { display: block; font-size: 0.75rem; color: var(--am-muted); }
.am-fact strong { display: block; margin-top: 2px; font-size: 0.92rem; color: var(--am-ink); line-height: 1.3; }
.am-rich { color: var(--am-text); }
.am-rich p { margin: 0 0 10px; }
/* 22.10.2026 (AGENTPRIM): a long description in three lines; "Citește tot" opens it. */
.am-rich.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.am-rich.is-clamped p { display: inline; }
.am-rich.is-clamped p::after { content: ' '; }
.am-acc p { white-space: pre-line; }
.am-more { margin: -4px 0 8px; padding: 4px 0; border: 0; background: none; color: var(--am-blue); font: inherit; font-weight: 600; cursor: pointer; }
.am-doc { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.am-doc + .am-doc { border-top: 1px solid var(--am-line); }
.am-doc__dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--am-sky); }
.am-doc__dot.is-req { background: var(--am-blue); }
.am-doc__title { font-weight: 600; color: var(--am-ink); }
.am-doc__note { display: block; font-size: 0.85rem; color: var(--am-muted); }
.am-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: var(--am-ice); color: var(--am-blue); font-size: 0.72rem; font-weight: 700; vertical-align: 2px; }
details.am-acc { margin: 0 0 10px; border-radius: var(--am-radius-s); background: #fff; box-shadow: var(--am-shadow); }
details.am-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 12px 16px; font-weight: 600; color: var(--am-ink); cursor: pointer; list-style: none; }
details.am-acc summary::-webkit-details-marker { display: none; }
details.am-acc summary::after { content: "+"; flex: none; font-size: 1.4rem; font-weight: 400; color: var(--am-blue); }
details.am-acc[open] summary::after { content: "–"; }
details.am-acc > div { padding: 0 16px 14px; color: var(--am-text); font-size: 0.94rem; }

/* ── The request (screen-request.js) ──────────────────────────────────────── */
.am-progress { height: 6px; margin: 2px 0 18px; border-radius: 3px; background: #dde4ed; overflow: hidden; }
.am-progress i { display: block; height: 100%; border-radius: 3px; background: var(--am-blue); transition: width 0.25s ease; }
.am-step__count { margin: 0 0 4px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--am-blue); }
.am-field { margin: 0 0 18px; }
.am-field__label { display: block; margin: 0 0 8px; font: 700 1.3rem/1.25 var(--am-font-display); color: var(--am-ink); }
/* Several fields on a page (screen-request.js, pages): smaller labels, closer fields. */
.am-field--compact { margin-bottom: 16px; }
.am-field--compact .am-field__label { margin-bottom: 6px; font-size: 1.02rem; }
.am-field--compact .am-textarea { min-height: 110px; }
.am-field__hint { margin: -2px 0 10px; font-size: 0.88rem; color: var(--am-muted); }
.am-input, .am-select, .am-textarea {
  display: block; width: 100%; min-height: 56px; padding: 14px 16px; border: 1.5px solid #cdd6e1; border-radius: 14px;
  background: #fff; font-size: 1.05rem; outline: none; transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.am-textarea { min-height: 150px; resize: vertical; line-height: 1.45; }
.am-input:focus, .am-select:focus, .am-textarea:focus { border-color: var(--am-blue); box-shadow: 0 0 0 4px rgba(15, 108, 189, 0.14); }
.am-input.is-bad, .am-textarea.is-bad, .am-select.is-bad { border-color: var(--am-bad); }
.am-field__error { margin: 8px 0 0; color: var(--am-bad); font-size: 0.88rem; font-weight: 600; }
.am-choices { display: flex; flex-direction: column; gap: 10px; }
.am-choice {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 16px; border: 1.5px solid #cdd6e1; border-radius: 14px;
  background: #fff; font-weight: 600; text-align: left; cursor: pointer;
}
.am-choice::before { content: ""; flex: none; width: 22px; height: 22px; border: 2px solid #b7c3d1; border-radius: 50%; }
.am-choice.is-on { border-color: var(--am-blue); background: var(--am-ice); color: var(--am-ink); }
.am-choice.is-on::before { border: 7px solid var(--am-blue); }
/* A check box row (the consent of "Creează cont"): a square, a tick when on. */
.am-choice--check { font-weight: 500; font-size: 0.92rem; line-height: 1.4; }
.am-choice--check::before { border-radius: 6px; }
.am-choice--check.is-on::before { border: 2px solid var(--am-blue); background: var(--am-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* Documents: a row per document, camera and gallery. */
.am-upload { margin: 0 0 12px; padding: 14px 16px; border-radius: var(--am-radius); background: #fff; box-shadow: var(--am-shadow); }
.am-upload__head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.am-upload__title { font-weight: 700; color: var(--am-ink); line-height: 1.3; }
.am-upload__note { display: block; margin-top: 2px; font-size: 0.84rem; color: var(--am-muted); }
.am-upload__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.am-upload__btns .am-btn { min-height: 46px; margin: 0; font-size: 0.92rem; }
.am-upload__file { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 10px; border-radius: var(--am-radius-s); background: var(--am-paper); }
.am-upload__thumb { flex: none; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #dde4ed; }
.am-upload__name { flex: 1; min-width: 0; font-size: 0.88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-upload__remove { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--am-bad); font-size: 1.3rem; cursor: pointer; }
.am-upload.is-done { box-shadow: inset 0 0 0 2px var(--am-ok), var(--am-shadow); }
.am-upload.is-missing { box-shadow: inset 0 0 0 2px var(--am-bad), var(--am-shadow); }
.am-ok { color: var(--am-ok); font-weight: 700; font-size: 0.8rem; white-space: nowrap; }

/* The signature pad. */
.am-sign { position: relative; border-radius: var(--am-radius); background: #fff; box-shadow: inset 0 0 0 1.5px #cdd6e1; touch-action: none; }
.am-sign canvas { display: block; width: 100%; height: 240px; border-radius: var(--am-radius); }
.am-sign__line { position: absolute; left: 24px; right: 24px; bottom: 54px; border-top: 1.5px dashed #b7c3d1; pointer-events: none; }
.am-sign__hint { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 0.82rem; color: var(--am-muted); pointer-events: none; }

/* The review. */
.am-review dl { margin: 0; }
.am-review div { padding: 10px 0; }
.am-review div + div { border-top: 1px solid var(--am-line); }
.am-review dt { font-size: 0.8rem; color: var(--am-muted); }
.am-review dd { margin: 2px 0 0; font-weight: 600; color: var(--am-ink); white-space: pre-line; overflow-wrap: anywhere; }
.am-review img { max-width: 220px; max-height: 90px; }

/* The confirmation. */
.am-done { padding: 26px 18px; border-radius: var(--am-radius); background: #fff; box-shadow: var(--am-shadow); text-align: center; }
.am-done__check { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: #DCFCE7; color: var(--am-ok); animation: am-pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.am-done__check svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes am-pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.am-done__label { margin: 0; font-size: 0.86rem; color: var(--am-muted); }
.am-done__number { margin: 4px 0 6px; font: 800 1.8rem/1.1 var(--am-font-display); color: var(--am-ink); letter-spacing: 0.01em; }

/* ── The requests (screen-requests.js) ────────────────────────────────────── */
.am-req__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.am-req__num { font: 700 1rem/1.2 var(--am-font-display); color: var(--am-ink); }
.am-req__date { font-size: 0.8rem; color: var(--am-muted); white-space: nowrap; }
.am-req__title { margin: 6px 0 10px; font-weight: 600; line-height: 1.35; }
.am-stage {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 700;
  color: var(--stage, #64748b); background: color-mix(in srgb, var(--stage, #64748b) 12%, #fff);
}
.am-stage::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ── Messages: the assistant in the screen ────────────────────────────────── */
.am-msgs { display: flex; flex-direction: column; height: 100%; }
.am-msgs__bar { flex: none; display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--am-line); overflow-x: auto; }
.am-msgs__bar a, .am-msgs__bar button {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 20px;
  background: var(--am-ice); color: var(--am-blue); font-size: 0.86rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.am-msgs__bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.am-msgs iframe { flex: 1; width: 100%; border: 0; background: #f5f6f8; }

/* ── Profile ──────────────────────────────────────────────────────────────── */
.am-avatar { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 0 12px; border-radius: 50%; background: var(--am-blue); color: #fff; font: 800 1.5rem/1 var(--am-font-display); }
.am-about { margin: 22px 0 0; text-align: center; font-size: 0.8rem; color: var(--am-muted); }
.am-about strong { display: block; color: var(--am-ink); }

/* ── The page without an app ──────────────────────────────────────────────── */
.appm-missing { max-width: 520px; margin: 0 auto; padding: 60px 24px; text-align: center; }
.appm-missing h1 { font: 700 1.3rem/1.3 var(--am-font-display); color: var(--am-ink); }
body.appm:has(.appm-missing) { overflow: auto; }
