/* =========================================================
   PetScan — app styles: auth pages, dashboards, admin, reports
   (loads after style.css and reuses its --ps-* tokens)
   ========================================================= */

/* ---------- Small shared bits ---------- */
.ps-btn--xs { --h: 34px; padding: 0 14px; font-size: 13px; }
.ps-btn--danger { background: #fff; color: var(--ps-red); border-color: #f2c4bb; }
.ps-btn--danger:hover { background: var(--ps-red); color: #fff; border-color: var(--ps-red); }
.ps-alert { border-radius: 14px; font-size: 14.5px; border: 0; }
.alert-success.ps-alert { background: var(--ps-green-50); color: #11643f; }
.alert-danger.ps-alert { background: var(--ps-red-50); color: #9b2c1b; }
.alert-info.ps-alert { background: var(--ps-blue-50); color: #1f5bb0; }
.alert-warning.ps-alert { background: var(--ps-amber-50); color: #7a5205; }
.ps-alert code { color: inherit; background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 5px; }

.ps-input, .ps-auth .form-control, .ps-auth .form-select { border: 1.5px solid var(--ps-line-2); border-radius: 12px; min-height: 48px; font-size: 15px; color: var(--ps-ink); }
.ps-input:focus, .ps-auth .form-control:focus { border-color: var(--ps-teal); box-shadow: 0 0 0 4px rgba(15,159,143,.14); }
.form-label { font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--ps-ink); }
.ps-stack { display: grid; gap: 16px; }
.ps-inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.ps-inline-form .ps-input { flex: 1 1 200px; }

.ps-avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--ps-grad); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.ps-avatar--xs { width: 24px; height: 24px; font-size: 10px; background: rgba(255,255,255,.25); }
.ps-avatar--sm { width: 34px; height: 34px; font-size: 12px; }
.ps-avatar--lg { width: 56px; height: 56px; font-size: 19px; }

.ps-icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--ps-line); background: #fff; display: inline-grid; place-items: center; color: var(--ps-ink-2); transition: all .2s; flex: none; }
.ps-icon-btn:hover { color: var(--ps-teal-700); border-color: var(--ps-teal); }
.ps-icon-btn--danger:hover { color: var(--ps-red); border-color: var(--ps-red); background: var(--ps-red-50); }

.ps-mini-tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--ps-blue-50); color: #1f5bb0; vertical-align: middle; }

.ps-plan-chip { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #eef2f1; color: var(--ps-ink-2); }
.ps-plan-chip--pro { background: var(--ps-teal-50); color: var(--ps-teal-700); }
.ps-plan-chip--premium { background: linear-gradient(120deg, #fff2d6, #ffe6f0); color: #8a4b05; }

.ps-sev-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.ps-sev-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ps-sev-badge--low { background: var(--ps-green-50); color: #158352; }
.ps-sev-badge--moderate { background: var(--ps-amber-50); color: #a46b00; }
.ps-sev-badge--high { background: #fdf0e6; color: #c25a14; }
.ps-sev-badge--urgent { background: var(--ps-red-50); color: #c2361f; }

.ps-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.ps-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.ps-status--active { color: #158352; } .ps-status--active::before { background: var(--ps-green); }
.ps-status--suspended { color: var(--ps-red); } .ps-status--suspended::before { background: var(--ps-red); }

.ps-chip-static { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #f2f6f5; border: 1px solid var(--ps-line); font-size: 13.5px; font-weight: 700; color: var(--ps-ink-2); }
.ps-chip-static--blue { background: var(--ps-blue-50); color: #1f5bb0; border-color: transparent; }

.ps-meter { height: 8px; border-radius: 99px; background: rgba(13,36,33,.08); overflow: hidden; }
.ps-meter span { display: block; height: 100%; border-radius: inherit; background: var(--ps-grad); transition: width .6s var(--ps-ease); }
.ps-meter--lg { height: 10px; }

/* ---------- Analyzer additions ---------- */
.ps-quota { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ps-teal-50); color: var(--ps-teal-700); font-size: 14px; line-height: 1.45; }
.ps-quota__ic { font-size: 17px; line-height: 1.2; }
.ps-quota.is-empty { background: var(--ps-amber-50); color: #7a5205; }
.ps-gate-ic { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; font-size: 32px; margin-bottom: 18px; background: var(--ps-teal-50); box-shadow: var(--ps-sh); }
.ps-gate-ic--amber { background: var(--ps-amber-50); }
.ps-gate-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.ps-gate-note { font-size: 13px; color: var(--ps-muted) !important; margin-top: 14px; }
.ps-analyzer-wrap .ps-analyzer { box-shadow: var(--ps-sh); }

/* ---------- Auth pages ---------- */
.ps-auth-body { background: #fff; }
.ps-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ps-auth__side { position: relative; overflow: hidden; background: var(--ps-teal); }
.ps-auth__side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ps-auth__side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,60,55,0) 35%, rgba(6,48,44,.82)); }
.ps-auth__quote { position: absolute; left: 48px; right: 48px; bottom: 48px; z-index: 1; color: #fff; display: grid; gap: 12px; justify-items: start; }
.ps-auth__quote p { font-family: var(--ps-display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.ps-auth__quote small { opacity: .85; font-weight: 600; }
.ps-auth__main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: radial-gradient(60% 50% at 100% 0%, rgba(31,191,134,.08), transparent 70%), #fff; }
.ps-auth__box { width: 100%; max-width: 440px; }
.ps-auth__title { font-size: clamp(30px, 3vw, 38px); margin-bottom: 8px; }
.ps-auth__sub { color: var(--ps-ink-2); margin-bottom: 26px; }
.ps-auth-form { display: grid; gap: 18px; }
.ps-auth__alt { text-align: center; color: var(--ps-ink-2); font-size: 15px; }
.ps-auth__alt a, .ps-auth-form a { color: var(--ps-teal-600); font-weight: 700; }
.ps-auth__help { text-align: center; color: var(--ps-muted); font-size: 13px; margin-top: -6px; }
.ps-pass { position: relative; }
.ps-pass .form-control { padding-right: 70px; }
.ps-pass__toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--ps-teal-50); color: var(--ps-teal-700); font-size: 12.5px; font-weight: 800; padding: 6px 10px; border-radius: 8px; }
.ps-check { font-size: 13.5px; color: var(--ps-ink-2); }
.ps-check .form-check-input { margin-top: .2em; }
.ps-check .form-check-input:checked { background-color: var(--ps-teal); border-color: var(--ps-teal); }
.ps-install-step { display: flex; gap: 16px; }
.ps-install-step__num { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ps-grad); color: #fff; font-weight: 800; }
.ps-install-step h2 { font-size: 20px; margin-bottom: 8px; }
.ps-install-step p { color: var(--ps-ink-2); font-size: 14.5px; margin-bottom: 10px; }
.ps-code { background: #0d2421; color: #bff5e6; border-radius: 12px; padding: 14px 16px; font-size: 13px; }

@media (max-width: 991.98px) {
  .ps-auth { grid-template-columns: 1fr; }
  .ps-auth__side { display: none; }
}

/* ---------- App shell ---------- */
.ps-app-body { background: #f4f8f7; }
.ps-app { display: flex; min-height: 100vh; }
.ps-side { width: 268px; flex: none; background: #fff; border-right: 1px solid var(--ps-line); display: flex; flex-direction: column; padding: 20px 16px; }
@media (min-width: 992px) {
  .ps-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
@media (max-width: 991.98px) {
  .ps-side.offcanvas-lg { width: 290px; padding: 20px 16px; }
}
.ps-side__top { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; }
.ps-side__badge { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--ps-ink); color: #fff; }
.ps-side__nav { display: grid; gap: 4px; }
.ps-side__link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ps-ink-2); font-weight: 700; font-size: 15px; transition: background .2s, color .2s; }
.ps-side__link:hover { background: #f2f7f6; color: var(--ps-ink); }
.ps-side__link.is-active { background: var(--ps-teal-50); color: var(--ps-teal-700); }
.ps-side__link.is-active svg { color: var(--ps-teal); }
.ps-side__link--muted { font-weight: 600; color: var(--ps-muted); }
.ps-side__sep { height: 1px; background: var(--ps-line); margin: 12px 8px; }
.ps-side__plan { margin-top: auto; background: linear-gradient(160deg, #f1faf7, #eef5fd); border: 1px solid var(--ps-line); border-radius: 16px; padding: 14px; }
.ps-side__plan a { color: var(--ps-teal-600); }
.ps-side__plan-text { font-size: 13px; color: var(--ps-ink-2); margin-top: 8px; }
.ps-side__user { display: flex; align-items: center; gap: 10px; padding: 14px 6px 0; margin-top: 14px; border-top: 1px solid var(--ps-line); }
.ps-area-admin .ps-side__user { margin-top: auto; }
.ps-side__user-info { min-width: 0; flex: 1; line-height: 1.25; }
.ps-side__user-info strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-side__user-info span { display: block; font-size: 12px; color: var(--ps-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-side__user .ps-icon-btn { width: 36px; height: 36px; }

.ps-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ps-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 32px; background: rgba(244,248,247,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.ps-topbar .ps-logo { font-size: 19px; }
.ps-topbar .ps-logo__mark { width: 32px; height: 32px; font-size: 15px; }
.ps-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ps-content { padding: 28px 32px 40px; flex: 1; width: 100%; max-width: 1320px; }
.ps-app-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px 32px; font-size: 12.5px; color: var(--ps-muted); border-top: 1px solid var(--ps-line); }

.ps-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 10px 0 24px; }
.ps-page-title { font-size: clamp(26px, 2.6vw, 34px); }
.ps-page-sub { color: var(--ps-ink-2); margin-top: 6px; }
.ps-page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ps-back { display: inline-block; font-size: 14px; font-weight: 700; color: var(--ps-teal-600); margin-bottom: 6px; }

.ps-card { background: #fff; border: 1px solid var(--ps-line); border-radius: 22px; padding: 24px; box-shadow: var(--ps-sh-sm); }
.ps-card--flush { padding: 0; overflow: hidden; }
.ps-card--tip { background: linear-gradient(160deg, #f1faf7, #fff); }
.ps-card--tip h2 { font-size: 18px; }
.ps-card--danger { border-color: #f4d3cc; }
.ps-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.ps-card__head h2 { font-size: 19px; letter-spacing: -.01em; }
.ps-card__link { font-size: 14px; font-weight: 700; color: var(--ps-teal-600); }

.ps-welcome { position: relative; overflow: hidden; display: flex; align-items: stretch; border-radius: 26px; margin-bottom: 24px; color: #fff;
  background: radial-gradient(70% 90% at 0% 0%, #1cc39a 0%, transparent 60%), linear-gradient(125deg, #0b8e80 0%, #0e7f8f 60%, #1a6fa8 100%);
  box-shadow: 0 24px 50px -24px rgba(11,110,100,.55); }
.ps-welcome__copy { padding: 32px; flex: 1; position: relative; z-index: 1; max-width: 620px; }
.ps-welcome__copy h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin: 14px 0 8px; }
.ps-welcome__copy p { opacity: .92; }
.ps-welcome .ps-plan-chip { background: rgba(255,255,255,.18); color: #fff; }
.ps-welcome .ps-meter { background: rgba(255,255,255,.22); max-width: 380px; margin-top: 18px; }
.ps-welcome .ps-meter span { background: #fff; }
.ps-welcome__meta { font-size: 13px; margin-top: 8px; font-weight: 600; }
.ps-welcome__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.ps-welcome__link { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ps-welcome__link:hover { color: #fff; opacity: .85; }
.ps-welcome__img { width: 40%; flex: none; object-fit: cover; object-position: 30% 40%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }

.ps-stat { height: 100%; background: #fff; border: 1px solid var(--ps-line); border-radius: 20px; padding: 18px 20px; box-shadow: var(--ps-sh-sm); }
.ps-stat__ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; margin-bottom: 12px; }
.ps-stat__label { font-size: 13px; font-weight: 700; color: var(--ps-muted); }
.ps-stat__value { font-family: var(--ps-display); font-size: 30px; font-weight: 700; line-height: 1.15; margin-top: 2px; }
.ps-stat__value--sm { font-size: 18px; margin-top: 6px; font-family: var(--ps-body); }
.ps-stat__sub { font-size: 12.5px; color: var(--ps-muted); margin-top: 4px; }

.ps-empty { text-align: center; padding: 42px 20px; }
.ps-empty__ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; font-size: 28px; background: var(--ps-teal-50); }
.ps-empty h3 { font-size: 21px; margin-bottom: 6px; }
.ps-empty p { color: var(--ps-ink-2); max-width: 420px; margin: 0 auto; }

.ps-thumb { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--ps-grad-soft); font-size: 24px; }
.ps-thumb--sm { width: 40px; height: 40px; border-radius: 11px; font-size: 18px; }

.ps-report-list { display: grid; gap: 4px; }
.ps-report-row { display: flex; align-items: center; gap: 14px; padding: 10px; margin: 0 -10px; border-radius: 14px; color: var(--ps-ink); transition: background .2s; }
.ps-report-row:hover { background: #f4f8f7; color: var(--ps-ink); }
.ps-report-row__main { flex: 1; min-width: 0; display: grid; color: var(--ps-ink); }
.ps-report-row__main:hover { color: var(--ps-ink); }
.ps-report-row__main strong { font-size: 15px; }
.ps-report-row__main span { font-size: 13.5px; color: var(--ps-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-report-row__side { display: grid; justify-items: end; gap: 4px; flex: none; }
.ps-report-row__side small { color: var(--ps-muted); font-size: 12px; }

.ps-hbar { margin-bottom: 12px; }
.ps-hbar__label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 800; font-size: 14px; }
.ps-hbar__track { height: 8px; border-radius: 99px; background: #eef3f2; overflow: hidden; }
.ps-hbar__fill { display: block; height: 100%; border-radius: inherit; background: var(--ps-teal); }
.ps-hbar__fill--low { background: var(--ps-green); } .ps-hbar__fill--moderate { background: var(--ps-amber); }
.ps-hbar__fill--high { background: #e7792b; } .ps-hbar__fill--urgent { background: var(--ps-red); }
.ps-hbar__fill--plan-free { background: #b9c8c4; } .ps-hbar__fill--plan-pro { background: var(--ps-teal); } .ps-hbar__fill--plan-premium { background: #e3a43a; }

.ps-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.ps-filters .ps-input { width: auto; flex: 0 1 190px; background-color: #fff; }
.ps-filters input[type=search] { flex: 1 1 240px; }
.ps-filters__clear { font-weight: 700; font-size: 14px; color: var(--ps-muted); }

.ps-rep-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--ps-line); border-radius: 20px; overflow: hidden; color: var(--ps-ink); box-shadow: var(--ps-sh-sm); transition: transform .3s var(--ps-ease), box-shadow .3s; }
.ps-rep-card:hover { color: var(--ps-ink); transform: translateY(-3px); box-shadow: var(--ps-sh); }
.ps-rep-card__img { position: relative; height: 170px; background: var(--ps-grad-soft); }
.ps-rep-card__photo { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; font-size: 56px; }
.ps-rep-card__img .ps-sev-badge { position: absolute; left: 12px; top: 12px; box-shadow: var(--ps-sh-sm); }
.ps-rep-card__body { padding: 16px 18px 18px; display: grid; gap: 8px; flex: 1; }
.ps-rep-card__meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ps-muted); }
.ps-rep-card__body p { font-size: 14.5px; color: var(--ps-ink-2); }
.ps-rep-card__cta { margin-top: auto; font-weight: 800; font-size: 14px; color: var(--ps-teal-600); }

.ps-pager { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.ps-pager__item { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--ps-line); font-weight: 700; color: var(--ps-ink-2); }
.ps-pager__item.is-active { background: var(--ps-teal); border-color: var(--ps-teal); color: #fff; }
.ps-pager__gap { align-self: center; color: var(--ps-muted); }

/* tables */
.ps-table { --bs-table-bg: transparent; font-size: 14.5px; }
.ps-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--ps-muted); border-bottom: 1px solid var(--ps-line); padding: 14px 16px; white-space: nowrap; background: #fafcfb; }
.ps-table td { padding: 12px 16px; border-color: var(--ps-line); }
.ps-table tbody tr:hover { background: #f8fbfa; }
.ps-table__user { display: grid; line-height: 1.3; font-weight: 700; color: var(--ps-ink); }
.ps-table__user small { font-weight: 500; color: var(--ps-muted); }
.ps-table__usercell, .ps-table__scan { display: flex; align-items: center; gap: 10px; color: var(--ps-ink); font-weight: 700; }
.ps-table__text { max-width: 280px; color: var(--ps-ink-2); font-size: 13.5px; }
.ps-card:not(.ps-card--flush) .ps-table thead th { background: transparent; padding-top: 0; }
.ps-card:not(.ps-card--flush) .ps-table td, .ps-card:not(.ps-card--flush) .ps-table th { padding-left: 6px; padding-right: 6px; }

.ps-user-list { display: grid; gap: 2px; }
.ps-user-row { display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 -10px; border-radius: 14px; color: var(--ps-ink); }
.ps-user-row:hover { background: #f4f8f7; color: var(--ps-ink); }
.ps-user-row__main { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.ps-user-row__main small { color: var(--ps-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-user-row__side { display: grid; justify-items: end; gap: 3px; }
.ps-user-row__side small { color: var(--ps-muted); font-size: 12px; white-space: nowrap; }
.ps-pet-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* column chart */
.ps-cols { display: flex; align-items: flex-end; gap: 8px; height: 240px; padding-top: 10px; }
.ps-cols__col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.ps-cols__bar { width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: var(--ps-grad); min-height: 3px; transition: height .6s var(--ps-ease); }
.ps-cols__val { font-size: 12px; font-weight: 800; color: var(--ps-ink-2); min-height: 16px; }
.ps-cols__lbl { font-size: 11.5px; color: var(--ps-muted); font-weight: 700; }

/* plan page */
.ps-plan-now { font-size: 32px; }
.ps-plan-now small { font-size: 16px; color: var(--ps-muted); font-family: var(--ps-body); font-weight: 600; }
.ps-plan--want { outline: 3px solid rgba(15,159,143,.35); outline-offset: 4px; }
.ps-meter--teal span { background: var(--ps-grad); }

/* ---------- Report ---------- */
.ps-report { display: grid; gap: 16px; }
.ps-report__top { display: grid; grid-template-columns: 300px 1fr; gap: 24px; background: #fff; border: 1px solid var(--ps-line); border-radius: 24px; padding: 20px; box-shadow: var(--ps-sh-sm); }
.ps-report__photo { border-radius: 18px; overflow: hidden; background: var(--ps-grad-soft); aspect-ratio: 1; }
.ps-report__photo img { width: 100%; height: 100%; object-fit: cover; }
.ps-report__nophoto { width: 100%; height: 100%; display: grid; place-items: center; font-size: 90px; }
.ps-report__info { display: grid; gap: 16px; align-content: start; }
.ps-report__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ps-report__summary { font-family: var(--ps-display); font-size: 21px; font-weight: 600; line-height: 1.3; }
.ps-report__noticed { background: #f6f9f8; border-radius: 14px; padding: 12px 16px; }
.ps-report__noticed small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--ps-muted); margin-bottom: 4px; }
.ps-report__noticed p { color: var(--ps-ink-2); }
.ps-report-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.ps-print-only { display: none; }

/* ---------- Responsive ---------- */
@media (min-width: 992px) { .ps-topbar { display: none; } }
@media (max-width: 991.98px) {
  .ps-topbar { padding: 12px 18px; background: #fff; border-bottom-color: var(--ps-line); }
  .ps-content { padding: 12px 18px 32px; }
  .ps-app-foot { padding: 16px 18px; }
  .ps-report__top { grid-template-columns: 1fr; }
  .ps-report__photo { max-height: 340px; aspect-ratio: auto; height: 300px; }
}
@media (max-width: 575.98px) {
  .ps-welcome__img { display: none; }
  .ps-welcome__copy { padding: 24px 20px; }
  .ps-card { padding: 18px; border-radius: 18px; }
  .ps-card--flush { padding: 0; }
  .ps-stat { padding: 14px; }
  .ps-stat__value { font-size: 24px; }
  .ps-report-row__side .ps-sev-badge { font-size: 11px; padding: 3px 8px; }
  .ps-filters .ps-input { flex: 1 1 140px; }
  .ps-cols { gap: 3px; height: 180px; }
  .ps-cols__val { font-size: 10px; }
  .ps-page-head .ps-btn { width: 100%; }
}

/* ---------- Print (report → PDF) ---------- */
@media print {
  @page { margin: 14mm; }
  body, .ps-app-body { background: #fff !important; }
  .ps-side, .ps-topbar, .ps-app-foot, .ps-no-print, .ps-alert, .ps-toast { display: none !important; }
  .ps-content { padding: 0 !important; max-width: none; }
  .ps-print-only { display: flex !important; }
  .ps-print-head { justify-content: space-between; border-bottom: 2px solid #0f9f8f; padding-bottom: 8px; margin-bottom: 6px; font-size: 13px; }
  .ps-report__top { grid-template-columns: 200px 1fr; box-shadow: none; }
  .ps-rcard, .ps-report__top, .ps-disclaimer { break-inside: avoid; box-shadow: none !important; }
  .ps-report .col-md-6 { width: 50%; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; animation: none !important; }
}
