/* ==========================================================================
   LetResolve Help Centre — styles layered on top of site.css
   Uses the same brand tokens. The "am-" classes reproduce the app's own look
   (web/styles.css in the LetResolve repo) for the small screen illustrations.
   ========================================================================== */

/* ---------- Help Centre hero (home) ---------- */
.help-hero {
  position: relative; color: #fff;
  padding-block: clamp(44px, 7vw, 92px) clamp(56px, 8vw, 100px);
  background:
    radial-gradient(700px 420px at 10% 0%, rgb(25 216 74 / .18), transparent 60%),
    radial-gradient(900px 520px at 100% 100%, rgb(1 141 197 / .45), transparent 60%),
    linear-gradient(120deg, #012B5D 0%, #00509B 58%, #016E79 100%);
}
/* The rings sit on their own clipped layer, so the search results can hang below the banner. */
.help-hero-rings { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.help-hero-rings::before, .help-hero-rings::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .1); left: 50%; top: 58%; translate: -50% -50%;
}
.help-hero-rings::before { width: 640px; height: 640px; }
.help-hero-rings::after { width: 980px; height: 980px; border-color: rgb(255 255 255 / .06); }
.help-hero-inner { position: relative; z-index: 2; max-width: 880px; margin-inline: auto; text-align: center; }
.help-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.1rem); letter-spacing: -0.03em; margin: 4px 0 14px; }
.help-hero .lead { color: rgb(255 255 255 / .86); max-width: 38em; margin-inline: auto; }
.help-hero .eyebrow { color: var(--green-bright); }
.crumbs-light { justify-content: center; color: rgb(255 255 255 / .72); }
.crumbs-light a { color: rgb(255 255 255 / .85); }
.crumbs-light a:hover { color: #fff; }
.help-popular {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
  margin-top: 20px; font-size: .9375rem; color: rgb(255 255 255 / .78);
}
.help-popular a {
  color: #fff; text-decoration: none; font-weight: 500; padding: 6px 13px; border-radius: 999px;
  background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .22); transition: background .15s, border-color .15s;
}
.help-popular a:hover { background: rgb(255 255 255 / .18); border-color: rgb(255 255 255 / .4); }

/* ---------- Search ---------- */
.help-search { position: relative; text-align: left; z-index: 20; }
.hs-box {
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s;
}
.hs-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(1 141 197 / .18), var(--shadow-sm); }
.hs-box > .icon { color: var(--muted); width: 19px; height: 19px; }
.hs-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 0;
  font: 500 1rem/1.4 var(--font-body); color: var(--navy); -webkit-appearance: none; appearance: none;
}
.hs-input::placeholder { color: #6E87A1; }
.hs-input:focus-visible { outline: none; }
.hs-input::-webkit-search-decoration { -webkit-appearance: none; }
.hs-kbd {
  flex: none; font: 600 .75rem/1.4 var(--font-body); color: var(--muted); background: var(--cloud);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px;
}
.hs-box:focus-within .hs-kbd { visibility: hidden; }
.help-search-hero { max-width: 680px; margin: 30px auto 0; }
.help-search-hero .hs-box { border-radius: 18px; padding: 0 18px; border-color: transparent; box-shadow: 0 22px 50px -18px rgb(0 0 0 / .5); }
.help-search-hero .hs-box:focus-within { box-shadow: 0 0 0 4px rgb(25 216 74 / .35), 0 22px 50px -18px rgb(0 0 0 / .5); }
.help-search-hero .hs-input { font-size: 1.125rem; padding: 18px 0; }
.help-search-hero > .hs-box > .icon { width: 22px; height: 22px; color: var(--blue-deep); }

.hs-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  max-height: min(70vh, 540px); overflow-y: auto; overscroll-behavior: contain;
}
.hs-list { list-style: none; margin: 0; padding: 6px; }
.hs-item { margin: 0; }
.hs-item a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 11px; text-decoration: none; color: var(--navy); }
.hs-item.is-active a, .hs-item a:hover { background: var(--tint-blue); }
.hs-page { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.hs-title { font-weight: 600; font-size: .96875rem; line-height: 1.35; }
.hs-snippet { font-size: .875rem; color: var(--slate); line-height: 1.45; }
.hs-panel mark { background: #FFEFA8; color: inherit; border-radius: 3px; padding: 0 1px; }
.hs-heading { margin: 0; padding: 10px 14px 4px; font-size: .71875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.hs-empty { margin: 0; padding: 16px; color: var(--slate); font-size: .9375rem; }
.hs-status {
  margin: 0; padding: 9px 16px; font-size: .78125rem; color: var(--slate);
  border-top: 1px solid var(--line-soft); background: var(--cloud);
}
.hs-status:empty { display: none; }

/* ---------- Home: start card ---------- */
.help-start { padding-block: clamp(48px, 7vw, 80px) clamp(40px, 6vw, 72px); }
.start-card {
  position: relative; overflow: hidden; display: grid; gap: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px);
}
.start-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand); }
@media (min-width: 980px) { .start-card { grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); align-items: center; gap: 48px; } }
.start-card h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.start-card p { color: var(--muted); }
.start-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.start-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .start-path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.start-path li { margin: 0; }
.start-path a {
  display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 16px; border-radius: 16px;
  background: var(--cloud); border: 1px solid var(--line-soft); text-decoration: none; color: var(--navy);
  transition: translate .2s, box-shadow .2s, border-color .2s;
}
.start-path a:hover { translate: 0 -2px; border-color: #A9C6DE; box-shadow: var(--shadow-sm); color: var(--navy); }
.sp-num {
  flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  font: 900 1rem var(--font-display); color: #fff; background: var(--grad-cta);
}
.start-path li:nth-child(4) .sp-num { background: linear-gradient(135deg, #017681, #039762); }
.start-path b { display: block; font-size: 1rem; }
.sp-text { display: block; color: var(--slate); font-size: .90625rem; margin-top: 2px; }

/* ---------- Home: topic cards ---------- */
.cat-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat-card {
  position: relative; display: flex; flex-direction: column; padding: 26px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm);
  transition: translate .2s, box-shadow .2s, border-color .2s;
}
.cat-card:hover { translate: 0 -3px; box-shadow: var(--shadow); border-color: #C6D8E9; }
.cat-card h3 { margin: 16px 0 6px; font-size: 1.25rem; }
.cat-card h3 a { color: var(--navy); text-decoration: none; }
.cat-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cat-card h3 a:focus-visible { outline: none; }
.cat-card:has(h3 a:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.cat-card p { margin: 0 0 16px; color: var(--muted); font-size: .96875rem; }
.cat-links { position: relative; z-index: 1; list-style: none; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 7px; }
.cat-links li { margin: 0; }
.cat-links a { display: inline-flex; align-items: center; gap: 6px; font-size: .90625rem; font-weight: 500; color: var(--blue-deep); text-decoration: none; }
.cat-links a:hover { text-decoration: underline; }
.cat-links .icon { width: 14px; height: 14px; flex: none; }
.cat-card .who-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }

/* ---------- Roles ---------- */
.role-chip {
  display: inline-flex; align-items: center; padding: 1px 10px; border-radius: 999px; white-space: nowrap;
  font-size: .78125rem; font-weight: 700; letter-spacing: .01em; line-height: 1.6; vertical-align: 1px;
}
.role-chip.landlord { background: var(--tint-blue); color: var(--blue-deep); border: 1px solid #BFE2F2; }
.role-chip.user { background: var(--tint-teal); color: var(--teal); border: 1px solid #BCDFE2; }
.role-chip.everyone { background: var(--tint-green); color: var(--green-ink); border: 1px solid #CBEAD9; }
.roles-wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 980px) { .roles-wrap { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; } }
.roles-wrap .lead { margin-bottom: 18px; }
.roles-table {
  width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: .9375rem;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm);
}
.roles-table th, .roles-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; color: var(--ink-soft); }
.roles-table thead th { background: var(--cloud); color: var(--navy); font-weight: 700; }
.roles-table tr:last-child td { border-bottom: 0; }
.roles-table .c { text-align: center; width: 104px; }
.roles-table .yes .icon { color: var(--green-ink); width: 20px; height: 20px; stroke-width: 2.5; }
.roles-table .no { color: #9AACBF; font-weight: 600; }
.legal .roles-table { margin: 16px 0 24px; box-shadow: none; }

/* ---------- Home: "we're listening" cards ---------- */
.listen-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .listen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .listen-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.listen-grid .cat-card { padding: 24px; }
.listen-grid .cat-card h3 { font-size: 1.125rem; }

/* ---------- Article header ---------- */
.help-article-head { display: grid; gap: 24px; align-items: end; }
@media (min-width: 1024px) { .help-article-head { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; } }
.help-title-row { display: flex; align-items: center; gap: 16px; }
.help-title-row .ic { width: 56px; height: 56px; border-radius: 16px; }
.help-title-row .ic .icon { width: 28px; height: 28px; }
.help-title-row h1 { margin: 0; font-size: clamp(2rem, 4.4vw, 3rem); }
.help-hero-article .lead { margin-top: 16px; }
.help-hero-article .meta span { gap: 6px; }
@media (max-width: 560px) { .help-title-row .ic { display: none; } }

/* ---------- Sidebar navigation ---------- */
.help-nav { align-self: start; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.help-nav summary {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
  cursor: pointer; list-style: none; font-weight: 600; color: var(--navy);
}
.help-nav summary::-webkit-details-marker { display: none; }
.help-nav summary .icon { color: var(--muted); transition: rotate .2s; }
.help-nav[open] summary .icon { rotate: 180deg; }
.help-nav-inner { padding: 4px 10px 14px; }
@media (min-width: 1024px) {
  .help-nav {
    position: sticky; top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; overscroll-behavior: contain;
    border: 0; background: transparent;
  }
  .help-nav summary { display: none; }
  .help-nav-inner { padding: 0 4px 0 0; }
}
.hn-group + .hn-group { margin-top: 18px; }
.hn-label { margin: 0 0 6px 12px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.hn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.hn-list > li { margin: 0; }
.hn-list > li > a {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  color: var(--ink-soft); font-size: .9375rem; font-weight: 500; line-height: 1.3;
}
.hn-list > li > a .icon { width: 17px; height: 17px; color: #7D93AB; }
.hn-list > li > a:hover { background: var(--cloud); color: var(--navy); }
.hn-list > li > a[aria-current="page"] { background: var(--tint-blue); color: var(--navy); font-weight: 700; }
.hn-list > li > a[aria-current="page"] .icon { color: var(--blue-deep); }
.hn-toc { list-style: none; margin: 4px 0 8px 20px; padding: 0 0 0 10px; border-left: 2px solid var(--line); display: grid; gap: 1px; }
.hn-toc li { margin: 0; }
.hn-toc a {
  display: block; margin-left: -12px; padding: 5px 10px 5px 12px; border-left: 2px solid transparent;
  font-size: .875rem; line-height: 1.35; color: var(--slate); text-decoration: none; border-radius: 0 8px 8px 0;
}
.hn-toc a:hover { color: var(--navy); background: var(--cloud); }
.hn-toc a.is-active { color: var(--navy); font-weight: 600; border-left-color: var(--blue); background: linear-gradient(90deg, var(--tint-blue), transparent); }

/* ---------- Article body ---------- */
.help-article h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
.help-article h3 { scroll-margin-top: calc(var(--header-h) + 20px); }
.anchor { display: inline-grid; place-items: center; margin-left: 4px; color: var(--muted); opacity: 0; transition: opacity .15s; border-radius: 6px; }
.anchor .icon { width: 18px; height: 18px; }
h2:hover > .anchor, h3:hover > .anchor, .anchor:focus-visible { opacity: 1; }
@media (hover: none) { .anchor { display: none; } }

.glance { list-style: none; padding: 0 !important; margin: 18px 0 0; display: grid; gap: 12px; }
.glance li { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: var(--ink-soft); }
.glance .tick { margin-top: 2px; }

/* Numbered steps */
.legal ol.steps-list { list-style: none; counter-reset: step; padding: 0; margin: 18px 0 24px; }
.steps-list > li { position: relative; counter-increment: step; margin: 0; padding: 4px 0 18px 50px; }
.steps-list > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font: 800 .9375rem/1 var(--font-display); color: #fff;
  background: var(--grad-cta); box-shadow: 0 6px 14px -8px rgb(0 80 155 / .7);
}
.steps-list > li::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--line); border-radius: 2px; }
.steps-list > li:last-child { padding-bottom: 0; }
.steps-list > li:last-child::after { display: none; }
.steps-list > li > p { margin: 6px 0 0; }

/* Callouts */
.callout-tip { background: var(--tint-green); border-color: #CBEAD9; }
.callout-tip .callout-head .icon { color: var(--green-ink); }
.callout-note { background: var(--tint-blue); border-color: #BFE2F2; }
.callout-note .callout-head .icon { color: var(--blue-deep); }
.callout-warn { background: var(--tint-amber); border-color: #F2E0BB; }
.callout-warn .callout-head .icon { color: var(--amber-ink); }
.callout ul { margin-bottom: 0; }

/* References to the app's own controls and messages */
.ui-btn {
  display: inline-flex; align-items: center; padding: 0 8px; border-radius: 6px; white-space: nowrap; vertical-align: 1px;
  border: 1px solid #BFD5E6; background: #fff; color: var(--navy); box-shadow: 0 1px 0 #D8E6F1;
  font-weight: 600; font-size: .875em; line-height: 1.75;
}
.ui-btn.primary { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; box-shadow: none; }
.ui-field { font-weight: 600; color: var(--navy); background: var(--cloud); border-radius: 4px; padding: 0 3px; white-space: nowrap; }
.ui-msg { font-style: normal; color: var(--navy); background: var(--cloud); border-left: 3px solid var(--blue); border-radius: 0 6px 6px 0; padding: 1px 8px; }
.ui-msg::before, .ui-msg::after { content: ""; }
kbd {
  font: 600 .8125em/1.4 var(--font-body); color: var(--navy); background: var(--cloud);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px;
}

/* Two cards side by side ("where files live") */
.duo { display: grid; gap: 16px; margin: 20px 0 24px; }
@media (min-width: 640px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.duo-card { padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.duo-card h3 { margin: 14px 0 6px; font-size: 1.125rem; }
.duo-card p { margin: 0; font-size: .96875rem; }

/* End of article */
.help-improve {
  display: grid; gap: 16px; align-items: center; margin-top: 8px; padding: 26px 28px; border-radius: 22px;
  background: linear-gradient(135deg, #EAF5FC, #E9F6F0); border: 1px solid var(--line-soft);
}
@media (min-width: 720px) { .help-improve { grid-template-columns: minmax(0, 1fr) auto; } }
.help-improve h2 { font-size: 1.25rem; margin: 0 0 4px; }
.help-improve p { margin: 0; color: var(--ink-soft); }
.help-improve .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.prev-next { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 640px) { .prev-next { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prev-next a {
  display: grid; gap: 2px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff;
  text-decoration: none; color: var(--navy); transition: border-color .15s, box-shadow .15s, translate .15s;
}
.prev-next a:hover { border-color: #A9C6DE; box-shadow: var(--shadow-sm); translate: 0 -2px; }
.prev-next small { display: inline-flex; align-items: center; gap: 6px; font-size: .78125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.prev-next small .icon { width: 14px; height: 14px; }
.prev-next b { font-family: var(--font-display); font-size: 1.0625rem; }
.prev-next .next { text-align: right; justify-items: end; }
.prev-next .next:only-child { grid-column: 2; }

/* Contact cards */
.contact-grid { display: grid; gap: 14px; margin: 18px 0 24px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.contact-card h3 { margin: 0 0 2px; font-size: 1.0625rem; }
.contact-card p { margin: 0 0 6px; font-size: .9375rem; }
.contact-card a { font-weight: 600; word-break: break-word; }

/* ==========================================================================
   Screen illustrations: a faithful, simplified copy of the app's look
   ========================================================================== */
.shot { margin: 22px 0 28px; }
.shot-frame {
  position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-soft);
  padding: clamp(14px, 3.4vw, 30px);
  background:
    radial-gradient(360px 220px at 100% 0%, rgb(1 141 197 / .12), transparent 70%),
    radial-gradient(360px 220px at 0% 100%, rgb(3 151 98 / .1), transparent 70%),
    linear-gradient(150deg, #EAF4FB 0%, #EEF7F3 100%);
}
.shot figcaption { margin-top: 10px; text-align: center; font-size: .875rem; color: var(--slate); }

.am {
  --am-primary: #018DC5; --am-border: #D8E6F1; --am-border-strong: #BFD5E6; --am-panel2: #F7FBFD; --am-bg: #EDF4FA;
  --am-muted: #46617F; --am-faint: #7791AC;
  font: 400 13px/1.45 var(--font-body); color: var(--navy); text-align: left;
}
.am b, .am strong { font-weight: 600; }
.am-modal {
  max-width: 560px; margin: 0 auto; overflow: hidden; background: #fff;
  border: 1px solid var(--am-border); border-radius: 16px; box-shadow: 0 24px 60px -24px rgb(1 43 93 / .35);
}
.am-modal.narrow { max-width: 440px; }
.am-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--am-border); }
.am-h b { font: 800 16px/1.3 var(--font-display); }
.am-h .sub { color: var(--am-faint); font-size: 12px; }
.am-x { color: var(--am-faint); font-size: 14px; }
.am-body { padding: 16px 18px; }
.am-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.am-field { display: grid; gap: 4px; min-width: 0; }
.am-field.wide { grid-column: 1 / -1; }
.am-label { font-size: 11.5px; font-weight: 600; color: var(--am-muted); }
.am-inp {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 32px; padding: 6px 10px;
  border: 1px solid var(--am-border-strong); border-radius: 6px; background: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.am-inp.ph { color: var(--am-faint); }
.am-inp.area { min-height: 52px; align-items: flex-start; white-space: normal; }
.am-inp.sel::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 2px solid var(--am-faint); border-bottom: 2px solid var(--am-faint); rotate: 45deg; translate: 0 -2px; }
.am-inp.ro { background: #EDF3F9; color: var(--am-muted); }
.am-note { margin: 12px 0 0; font-size: 11.5px; color: var(--am-muted); }
.am-f { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--am-border); background: var(--am-panel2); }
.am-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; white-space: nowrap;
  border: 1px solid var(--am-border-strong); background: #fff; font-weight: 600; font-size: 12.5px; color: var(--navy);
}
.am-btn.primary { background: var(--am-primary); border-color: var(--am-primary); color: #fff; }
.am-btn .icon { width: 14px; height: 14px; }
.am-btn.hl { box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgb(25 216 74 / .65); }

.am-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid; }
.am-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.am-chip.open { color: #01608A; background: #E5F3FA; border-color: #BFE2F2; }
.am-chip.prog { color: #01565E; background: #E4F2F3; border-color: #BCDFE2; }
.am-chip.hold { color: #46617F; background: #EDF3F9; border-color: #DBE7F1; }
.am-chip.done { color: #026B46; background: #E6F6EF; border-color: #BFE6D4; }
.am-pri { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font: 700 11.5px var(--font-display); border: 1px solid; flex: none; }
.am-pri.H { color: #93221A; background: #FCEBE9; border-color: #F4CFCA; }
.am-pri.M { color: #86600B; background: #FDF4E3; border-color: #F2E0BB; }
.am-pri.L { color: #46617F; background: #EDF3F9; border-color: #DBE7F1; }
.am-flag { display: inline-flex; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 600; border: 1px solid; }
.am-flag.damp { color: #01565E; background: #E4F2F3; border-color: #BCDFE2; }
.am-flag.out { color: #46617F; background: #EDF3F9; border-color: #DBE7F1; }

/* legend: chips with explanations */
.legend { display: grid; gap: 10px; }
@media (min-width: 640px) { .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.legend > div { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--am-border, #D8E6F1); border-radius: 12px; }
.legend > div > span:first-child { flex: none; min-width: 92px; }
.legend p { margin: 0; font-size: 12.5px; color: var(--am-muted, #46617F); line-height: 1.4; }

/* app frame: sidebar + top bar + content */
.am-app { display: grid; grid-template-columns: 178px minmax(0, 1fr); overflow: hidden; background: var(--am-bg); border: 1px solid var(--am-border); border-radius: 14px; box-shadow: 0 24px 60px -24px rgb(1 43 93 / .35); }
.am-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; background: #fff; border-right: 1px solid var(--am-border); }
.am-side img { width: 120px; height: auto; margin: 2px 6px 10px; }
.am-nav { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--am-muted); font-weight: 500; font-size: 12px; }
.am-nav .icon { width: 15px; height: 15px; }
.am-nav.on { background: #E5F3FA; color: #01608A; font-weight: 600; }
.am-nav .count { margin-left: auto; font-size: 11px; color: var(--am-faint); font-weight: 600; }
.am-navlabel { padding: 10px 8px 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--am-faint); }
.am-acct { margin-top: auto; padding: 10px 8px 2px; border-top: 1px solid var(--am-border); font-size: 11px; color: var(--am-muted); }
.am-acct b { display: block; color: var(--navy); font-size: 12px; }
.am-acct u { text-decoration: underline; color: #01608A; }
.am-main { min-width: 0; }
.am-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--am-border); }
.am-top .crumb { display: block; font-size: 10.5px; color: var(--am-faint); }
.am-top .title { font: 800 15px/1.2 var(--font-display); }
.am-search { margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 5px 10px; min-width: 150px; border: 1px solid var(--am-border-strong); border-radius: 6px; color: var(--am-faint); font-size: 11.5px; background: #fff; }
.am-search .icon { width: 12px; height: 12px; }
.am-content { padding: 12px 14px 14px; }
.am-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.am-kpi { position: relative; overflow: hidden; padding: 8px 10px; background: #fff; border: 1px solid var(--am-border); border-radius: 10px; }
.am-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--k, #46617F); }
.am-kpi.info { --k: #018DC5; } .am-kpi.hi { --k: #BC2C22; } .am-kpi.med { --k: #CE9412; } .am-kpi.prog { --k: #017681; } .am-kpi.ok { --k: #039762; }
.am-kpi small { display: block; font-size: 10px; font-weight: 600; color: var(--am-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-kpi b { display: block; font: 800 20px/1.2 var(--font-display); }
.am-kpi i { display: block; font-style: normal; font-size: 9.5px; color: var(--am-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) {
  .am-app { grid-template-columns: 1fr; }
  .am-side { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--am-border); }
  .am-side img { width: 100%; max-width: 110px; margin: 0 6px 6px; flex-basis: 100%; }
  .am-navlabel, .am-acct, .am-nav .count { display: none; }
  .am-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-search { display: none; }
}

/* tables inside illustrations */
.am-card { background: #fff; border: 1px solid var(--am-border); border-radius: 12px; overflow: hidden; }
.am-card + .am-card { margin-top: 10px; }
.am-card-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--am-border); }
.am-card-h b { font: 800 14px var(--font-display); }
.am-card-h .sub { color: var(--am-faint); font-size: 11.5px; }
.am-card-h .end { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.am-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.am-table th { padding: 7px 10px; text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--am-faint); background: var(--am-panel2); border-bottom: 1px solid var(--am-border); white-space: nowrap; }
.am-table td { padding: 8px 10px; border-bottom: 1px solid var(--am-border); vertical-align: middle; }
.am-table tr:last-child td { border-bottom: 0; }
.am-table .ref { color: #01608A; font-weight: 700; }
.am-table .dim { color: var(--am-muted); }
.am-table tr.row-hi td:first-child { box-shadow: inset 3px 0 0 #BC2C22; }
.am-table tr.row-overdue td:first-child { box-shadow: inset 3px 0 0 #CE9412; }
.am-scroll { overflow-x: auto; }
.am-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--am-border); }
.am-filters .am-inp { min-height: 28px; padding: 3px 9px; font-size: 11.5px; }

/* audit diff, as the app shows it */
.am-diff { display: grid; gap: 2px; margin-top: 5px; padding: 6px 9px; font-size: 11.5px; background: var(--am-panel2); border: 1px solid var(--am-border); border-radius: 8px; }
.am-diff s { color: var(--am-faint); }
.am-diff em { font-style: normal; font-weight: 600; color: #026B46; }

/* attachments */
.am-att-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.am-att { border: 1px solid var(--am-border); border-radius: 10px; overflow: hidden; background: #fff; }
.am-att .pic { height: 92px; }
.am-att .doc { height: 92px; display: grid; place-items: center; color: var(--am-faint); background: var(--am-panel2); }
.am-att .doc .icon { width: 30px; height: 30px; }
.am-att .cap { padding: 8px 10px; }
.am-att .cap p { margin: 0; font-size: 12px; font-weight: 600; color: var(--navy); }
.am-att .cap small { display: block; font-size: 10.5px; color: var(--am-faint); line-height: 1.4; margin-top: 2px; }
.am-att .acts { display: flex; gap: 6px; margin-top: 8px; }
.am-att .acts .am-btn { padding: 3px 9px; font-size: 11px; }
.am-drop { margin-top: 10px; padding: 12px; border: 2px dashed var(--am-border-strong); border-radius: 10px; text-align: center; color: var(--am-faint); font-size: 12px; }
.am-describe { display: grid; gap: 8px; }
.am-describe > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: center; }
.am-describe .name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-describe .name small { display: block; font-weight: 400; color: var(--am-faint); font-size: 10.5px; }
@media (max-width: 560px) { .am-describe > div { grid-template-columns: 1fr; gap: 4px; } .am-fields { grid-template-columns: 1fr; } }

/* reports */
.am-rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .am-rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.am-rcard { display: grid; gap: 2px; padding: 10px 12px; background: #fff; border: 1px solid var(--am-border); border-radius: 10px; }
.am-rcard b { font-size: 12.5px; }
.am-rcard span { font-size: 11px; color: var(--am-faint); line-height: 1.35; }
.am-rcard.on { border-color: var(--am-primary); box-shadow: 0 0 0 1px var(--am-primary); background: #F2F9FD; }

/* Ask LetResolve */
.am-chat { display: grid; gap: 12px; padding: 14px; }
.am-msg { display: flex; gap: 8px; align-items: flex-start; }
.am-msg.me { flex-direction: row-reverse; }
.am-av { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; background: #01608A; }
.am-msg.ai .am-av { background: linear-gradient(135deg, #00509B, #017681); }
.am-bubble { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; border: 1px solid var(--am-border); background: #fff; }
.am-msg.me .am-bubble { background: #E5F3FA; border-color: #BFE2F2; }
.am-bubble p { margin: 0 0 6px; }
.am-bubble ul { margin: 0 0 6px; padding-left: 18px; }
.am-cite { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--am-border); }
.am-cite > span:not(.am-src) { font-size: 10.5px; font-weight: 600; color: var(--am-faint); text-transform: uppercase; letter-spacing: .06em; }
.am-src { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #01608A; background: #E5F3FA; border: 1px solid #BFE2F2; }
.am-src.prop { color: #026B46; background: #E6F6EF; border-color: #BFE6D4; }
.am-ask { display: flex; align-items: center; gap: 8px; margin: 0 14px 12px; padding: 6px 6px 6px 12px; border: 1px solid var(--am-border-strong); border-radius: 10px; color: var(--am-faint); font-size: 12px; }
.am-ask .am-btn { margin-left: auto; }
.am-meter { display: grid; justify-items: end; gap: 3px; font-size: 10.5px; color: var(--am-faint); }
.am-meter i { display: block; width: 120px; height: 5px; border-radius: 999px; background: #EDF3F9; overflow: hidden; }
.am-meter i::before { content: ""; display: block; width: 18%; height: 100%; background: var(--am-primary); }

/* invitation link window */
.am-link { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--am-border-strong); border-radius: 6px; background: #fff; font-size: 11.5px; color: var(--navy); white-space: nowrap; overflow: hidden; }

/* the painted photo used in attachment illustrations (reuses site.css .photo-art) */
.am-att .pic.photo-art { position: relative; }

@media print {
  .help-nav, .help-search, .help-improve, .prev-next, .help-popular { display: none !important; }
  .shot-frame { background: none; }
}

/* small helpers used by the illustrations and pages */
.am-mt { margin-top: 10px; }
.am-plain { margin: 0 0 12px; font-size: 12.5px; }
.am-open-days { color: #93221A; font-weight: 700; white-space: nowrap; }
.am-foot-note { border-top: 1px solid var(--am-border); border-bottom: 0; }
.cta-link { color: #fff; font-weight: 600; text-decoration-color: rgb(255 255 255 / .5); }
.cta-link:hover { color: var(--green-bright); }
.help-hero .eyebrow .icon, .start-card .eyebrow .icon { width: 16px; height: 16px; }
