﻿/* ================================================================
   Profile Audit - bold sticker-shadow design system
   ================================================================ */
:root {
  --ink: #1B1730;
  --paper: #FAF7F2;
  --paper-raised: #FFFFFF;
  --coral: #FF4470;
  --indigo: #4B3AFF;
  --lime: #C6FF3D;
  --gold: #FFD23F;
  --amber: #FFB23D;
  --danger: #FF4470;
  --muted: #8A8478;
  --font-head: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --sticker: 6px 6px 0 var(--ink);
  --sticker-sm: 4px 4px 0 var(--ink);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- top bar / footer ---------- */
.au-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-raised);
}

.au-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.au-logo span { color: var(--coral); }

.au-topbar-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  font-weight: 600;
  font-size: 0.9rem;
}

.au-footer {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

.au-footer a { color: var(--ink); font-weight: 600; }

/* ---------- shell + typography ---------- */
.au-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.au-screen:is([hidden]) { display: none; }

.au-headline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.au-headline em {
  font-style: normal;
  color: var(--coral);
  position: relative;
  white-space: nowrap;
}

.au-headline em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  background: var(--gold);
  z-index: -1;
}

.au-subhead {
  font-size: 1.08rem;
  color: #4d4761;
  max-width: 560px;
  margin: 0 0 36px;
}

/* ---------- sticker device ---------- */
.sticker {
  box-shadow: var(--sticker);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.sticker:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }

.sticker:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }

/* ---------- buttons ---------- */
.au-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 14px 28px;
  cursor: pointer;
  background: var(--paper-raised);
  color: var(--ink);
}

.au-btn-big {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 28px 0 10px;
  background: var(--coral);
  color: #fff;
  font-size: 1.15rem;
  padding: 18px 28px;
  border-radius: 14px;
}

.au-btn-big:disabled {
  background: #e6e1d8;
  color: var(--muted);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
  border-color: var(--muted);
}

.au-privacy-line {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 460px;
}

/* ---------- error banner ---------- */
.au-error {
  border: 2px solid var(--danger);
  background: #fff0f3;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 28px;
}

.au-error-title {
  color: var(--danger);
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
}

.au-error-msg { margin: 0; color: #7a2140; font-size: 0.95rem; }

.au-drop-error {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 12px 0 0;
}

/* ---------- dropzone ---------- */
.au-dropzone {
  border: 3px dashed var(--ink);
  border-radius: 18px;
  background: var(--paper-raised);
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.au-dropzone:hover,
.au-dropzone.au-dropzone--over {
  border-color: var(--indigo);
  background: #f4f2ff;
}

.au-dropzone-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--indigo);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 14px;
  box-shadow: var(--sticker-sm);
}

.au-dropzone-line { margin: 0 0 6px; font-weight: 700; font-size: 1.05rem; }

.au-dropzone-browse {
  color: var(--indigo);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.au-dropzone-hint { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* ---------- thumbnails ---------- */
.au-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.au-thumb {
  position: relative;
  width: 110px;
}

.au-thumb img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--ink);
  display: block;
}

.au-thumb-x {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--coral);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.au-thumb-x:hover { background: var(--ink); }

/* category tag under each thumbnail */
.au-thumb-type {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-raised);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 3px 2px;
  cursor: pointer;
}

/* ---------- what-to-upload help ---------- */
.au-what-to-upload {
  margin-top: 18px;
  font-size: 0.92rem;
  color: #4d4761;
}
.au-what-to-upload summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}
.au-what-to-upload ul { margin: 10px 0 0; padding-left: 20px; }
.au-what-to-upload li { margin-bottom: 4px; }

/* ---------- analyzing screen ---------- */
.au-think {
  background: var(--paper-raised);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 48px 32px;
  max-width: 560px;
  margin: 24px auto 0;
}

.au-think-bar {
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #efe9df;
  overflow: hidden;
}

.au-think-bar span {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: 999px;
  background: repeating-linear-gradient(
    -45deg,
    var(--coral),
    var(--coral) 12px,
    var(--indigo) 12px,
    var(--indigo) 24px
  );
  animation: au-slide 1.1s ease-in-out infinite alternate;
}

@keyframes au-slide {
  from { margin-left: 0; }
  to { margin-left: 62%; }
}

.au-think-status {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  text-align: center;
  margin: 26px 0 0;
  min-height: 1.6em;
}

.au-think-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 14px;
}

/* ================================================================
   RESULTS SCREEN
   ================================================================ */

/* Banner above the results hero: says what the scores were built from.
   Deliberately a flat strip with a hard edge, not another rounded card. */
.au-banner {
  border-left: 6px solid var(--indigo);
  background: #F1EFFF;
  color: var(--ink);
  padding: 16px 20px;
  margin: 0 0 30px;
  max-width: 780px;
  font-size: 15px;
  line-height: 1.6;
}
.au-banner-warn { border-left-color: var(--coral); background: #FFEDF2; }

/* hero: score ring + summary */
.au-hero {
  display: flex;
  gap: 36px;
  align-items: center;
  margin-bottom: 44px;
}

.au-ring-wrap {
  flex: 0 0 auto;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-raised);
  box-shadow: var(--sticker);
  padding: 10px;
}

.au-ring {
  display: block;
  width: 168px;
  height: 168px;
}

.au-ring-track { fill: none; stroke: #efe9df; stroke-width: 12; }

.au-ring-fill {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.au-ring-num {
  font-family: var(--font-head);
  font-weight: 700;
  fill: var(--ink);
}

.au-ring-label {
  fill: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
}

.au-ring-caption {
  text-align: center;
  font-weight: 700;
  margin-top: 14px;
  font-size: 1.05rem;
}

.au-hero-copy h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.au-hero-summary { margin: 0 0 14px; color: #4d4761; }

.au-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.au-fact {
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--paper-raised);
}

.au-fact.au-fact-niche { background: var(--lime); }

/* category breakdown */
.au-breakdown { margin-bottom: 44px; }

.au-section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.au-section-sub { color: var(--muted); margin: 0 0 20px; font-size: 0.92rem; }

.au-bar-item { border-bottom: 2px solid #e8e2d6; }

.au-bar-item:last-child { border-bottom: none; }

.au-bar-head {
  display: grid;
  grid-template-columns: 170px 1fr 52px 22px;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  color: var(--ink);
}

.au-bar-name { font-weight: 700; font-size: 0.95rem; }

.au-bar-track {
  height: 14px;
  background: #efe9df;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}

.au-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.au-bar-num { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; text-align: right; }

.au-bar-caret {
  transition: transform 0.2s ease;
  color: var(--muted);
  font-size: 0.75rem;
}

.au-bar-item.au-open .au-bar-caret { transform: rotate(90deg); color: var(--ink); }

.au-bar-body {
  display: none;
  padding: 0 4px 16px;
  color: #4d4761;
  font-size: 0.95rem;
  max-width: 640px;
}

.au-bar-item.au-open .au-bar-body { display: block; }

/* two-column: strengths / problems */
.au-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 44px;
}

.au-panel {
  border-radius: 16px;
  padding: 24px 24px 18px;
}

.au-panel-strengths {
  background: #f2ffd4;
  border: 2px solid var(--ink);
}

.au-panel-problems {
  background: #fff0f3;
  border: 2px solid var(--ink);
}

.au-panel h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 16px;
}

.au-list { list-style: none; margin: 0; padding: 0; }

.au-list li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.95rem;
  color: #3d3852;
}

.au-check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--lime);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.au-num-badge {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 8px;
  background: var(--coral);
  border: 2px solid var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* recommendations checklist */
.au-reco { margin-bottom: 44px; }

.au-reco-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper-raised);
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}

.au-reco-item.au-done { background: #f2ffd4; }

.au-reco-box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 6px;
  border: 2px solid var(--ink);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
}

.au-reco-item.au-done .au-reco-box { background: var(--lime); }

.au-reco-item.au-done .au-reco-text { text-decoration: line-through; color: var(--muted); }

.au-reco-text { font-size: 0.95rem; }

/* chips */
.au-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}

.au-chip {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--paper-raised);
}

.au-chip:nth-child(3n + 1) { background: var(--gold); }
.au-chip:nth-child(3n + 2) { background: #d9d2ff; }
.au-chip:nth-child(3n) { background: #c8f8ff; }

/* content ideas */
.au-ideas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 44px;
}

.au-idea {
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper-raised);
  padding: 16px;
  font-size: 0.93rem;
  color: #3d3852;
}

.au-idea-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 10px;
  background: var(--indigo);
  color: #fff;
}

.au-idea-tag.au-tag-reel { background: var(--coral); }
.au-idea-tag.au-tag-carousel { background: var(--indigo); }
.au-idea-tag.au-tag-static { background: #1b8a5a; }

/* bio suggestions */
.au-bios { margin-bottom: 44px; }

.au-bio {
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper-raised);
  padding: 16px 16px 14px;
  margin-bottom: 12px;
}

.au-bio p {
  margin: 0 0 12px;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.au-bio-copy {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--gold);
  padding: 6px 14px;
  cursor: pointer;
}

.au-bio-copy.au-copied { background: var(--lime); }

/* bottom actions */
.au-again {
  border-top: 2px solid var(--ink);
  padding-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.au-again p { margin: 0; color: var(--muted); font-size: 0.9rem; margin-right: auto; }

/* ---------- link option ---------- */
.au-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 18px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.au-or::before,
.au-or::after {
  content: '';
  flex: 1;
  height: 2px;
  background: rgba(27, 23, 48, 0.12);
}

.au-linkpanel {
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper-raised);
  padding: 16px;
}

.au-linkrow { display: flex; gap: 10px; }

.au-linkinput {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid rgba(27, 23, 48, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
}

.au-linkinput::placeholder { color: var(--muted); }

.au-linkinput:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
  border-color: var(--indigo);
}

.au-linkadd {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  white-space: nowrap;
}

.au-linkadd:hover { background: var(--indigo); border-color: var(--indigo); }

.au-links {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.au-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 8px 6px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 100%;
}

.au-link-platform {
  background: var(--indigo);
  color: #fff;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 700;
}

.au-link-handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 190px;
}

.au-link-x {
  width: 22px;
  height: 22px;
  flex: none;
  border: none;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.au-link-x:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }

.au-linkhint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ================================================================
   PROFESSIONAL REPORT HEADER + EXPORT ACTIONS
   ================================================================ */
.au-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 16px;
  margin-bottom: 28px;
}

.au-report-id { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }

.au-report-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.au-report-brand span { color: var(--coral); }

.au-report-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.au-report-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.au-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 40px;
}

.au-pdf-btn {
  background: var(--indigo);
  color: #fff;
  border-color: var(--ink);
}
.au-pdf-btn:hover { background: #3a2be0; }

/* WhatsApp share button */
.au-wa-btn {
  background: #1faf54;
  color: #fff;
  border-color: #1faf54;
}
.au-wa-btn:hover { background: #178f44; border-color: #178f44; }

/* Previous audits panel */
.au-history {
  margin-top: 28px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--ink-15, rgba(20, 20, 40, 0.15));
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20, 20, 40, 0.05);
}
.au-history-title {
  margin: 0 0 12px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}
.au-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.au-history-item {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.au-history-open {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--paper, #FAF7F2);
  border: 1px solid rgba(20, 20, 40, 0.12);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.au-history-open:hover { border-color: var(--indigo, #4f46e5); transform: translateY(-1px); }
.au-history-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--indigo, #4f46e5);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.au-history-meta { display: flex; flex-direction: column; gap: 2px; }
.au-history-meta strong { font-size: 0.95rem; }
.au-history-meta span { font-size: 0.8rem; color: rgba(20, 20, 40, 0.6); }
.au-history-del {
  width: 34px;
  border: 1px solid rgba(20, 20, 40, 0.12);
  border-radius: 10px;
  background: transparent;
  color: rgba(20, 20, 40, 0.5);
  font-size: 1.1rem;
  cursor: pointer;
}
.au-history-del:hover { color: #c02626; border-color: #c02626; background: #fdf1f1; }
.au-history-note { margin: 12px 0 0; font-size: 0.78rem; color: rgba(20, 20, 40, 0.55); }

@media (max-width: 600px) {
  .au-actions { flex-direction: column; }
  .au-actions .au-btn { width: 100%; }
  .au-history { padding: 14px; }
}

/* ================================================================ */
/* responsive */
@media (max-width: 640px) {
  .au-shell { padding: 32px 16px 64px; }

  .au-hero { flex-direction: column; align-items: flex-start; gap: 20px; }

  .au-ring { width: 140px; height: 140px; }

  .au-bar-head { grid-template-columns: 1fr 44px 20px; }

  .au-bar-track { grid-column: 1 / -1; grid-row: 2; }

  .au-duo { grid-template-columns: 1fr; }

  .au-ideas { grid-template-columns: 1fr; }

  .au-dropzone { padding: 32px 16px; }

  .au-thumb { width: 88px; }
  .au-thumb img { height: 88px; }

  .au-linkrow { flex-direction: column; }

  .au-linkadd { width: 100%; }

  .au-link-handle { max-width: 140px; }

  .au-report-head { flex-direction: column; align-items: flex-start; gap: 6px; }

  .au-banner { font-size: 14px; padding: 14px 16px; }

  .au-hero-copy h2 { font-size: 1.35rem; }

  .au-actions .au-btn { flex: 1 1 100%; text-align: center; }

  .au-panel { padding: 18px 16px 14px; }

  .au-reco-item { padding: 11px 12px; }
}

/* ================================================================
   PDF / PRINT STYLESHEET
   Produces a clean, professional report when the user chooses
   "Save as PDF" from the print dialog.
   ================================================================ */
@media print {
  @page {
    size: A4;
    margin: 14mm 12mm;
  }

  html, body {
    background: #fff !important;
    color: #111 !important;
    font-size: 12px;
    line-height: 1.5;
  }

  /* chrome that makes no sense on paper */
  .au-topbar,
  .au-footer,
  .au-banner,
  .au-actions,
  .au-again,
  .au-bio-copy,
  .au-bar-caret,
  .au-section-sub,
  #au-error {
    display: none !important;
  }

  .au-shell { max-width: 100%; padding: 0; margin: 0; }

  .au-report-head {
    border-bottom: 2px solid #111;
    margin-bottom: 14px;
    padding-bottom: 8px;
  }

  .au-report-title { color: #555; }
  .au-report-date { color: #555; }

  /* hero reads as a compact summary block on paper */
  .au-hero {
    display: flex;
    gap: 24px;
    align-items: center;
    page-break-inside: avoid;
    margin-bottom: 20px;
  }

  .au-ring-wrap { box-shadow: none; border-width: 2px; padding: 6px; }
  .au-ring { width: 120px; height: 120px; }

  /* the ring fill is animated from JS; on paper force the final state */
  .au-ring-fill { transition: none !important; }

  .au-section-title { font-size: 16px; margin-bottom: 6px; }

  .au-breakdown { page-break-inside: auto; }

  .au-bar-item {
    border-bottom: 1px solid #ccc;
    page-break-inside: avoid;
  }

  /* expand every score's reasoning so nothing is lost in the PDF */
  .au-bar-body {
    display: block !important;
    padding: 2px 4px 10px;
    font-size: 11.5px;
    color: #333 !important;
  }

  .au-bar-fill { transition: none !important; }

  .au-duo { gap: 16px; margin-bottom: 20px; }

  .au-panel { border-width: 1.5px; page-break-inside: avoid; }

  .au-list li { font-size: 11.5px; }

  .au-reco { page-break-inside: auto; }
  .au-reco-item {
    border-width: 1.5px;
    page-break-inside: avoid;
    margin-bottom: 6px;
    padding: 8px 10px;
  }
  /* unchecked boxes print empty, checked ones keep the lime fill */
  .au-reco-box { border-width: 1.5px; }

  .au-idea, .au-bio {
    border-width: 1.5px;
    page-break-inside: avoid;
  }

  .au-chip { border-width: 1.5px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* keep brand colors in the PDF */
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}