:root {
  color-scheme: light;
  --ink: #10172d;
  --muted: #68708a;
  --forest: #354374;
  --forest-2: #26345f;
  --cream: #f7f2cc;
  --paper: #fffdf0;
  --gold: #f7bd2d;
  --gold-soft: #fff0b8;
  --teal: #31b9b3;
  --navy-deep: #08172e;
  --red: #a33b35;
  --red-soft: #fae8e5;
  --line: #ded9ce;
  --shadow: 0 18px 55px rgba(22, 41, 35, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--forest); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

html { scroll-behavior: smooth; }
.landing-shell { min-height: 100vh; background: #fffdf0; color: var(--ink); }
.landing-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding: 14px clamp(20px,5vw,72px); border-bottom: 1px solid rgba(16,23,45,.08); background: rgba(255,253,240,.94); backdrop-filter: blur(16px); }
.landing-brand { color: var(--navy-deep); text-decoration: none; }
.landing-header nav { display: flex; gap: 28px; }
.landing-header nav a, .landing-signin { color: var(--forest); text-decoration: none; font-size: 14px; font-weight: 800; }
.landing-signin { justify-self: end; padding: 10px 18px; border: 1px solid var(--forest); border-radius: 999px; }
.landing-hero { min-height: 720px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(420px,.95fr); align-items: center; gap: clamp(40px,7vw,110px); padding: clamp(70px,9vw,130px) clamp(22px,7vw,110px); overflow: hidden; background: radial-gradient(circle at 80% 18%, rgba(49,185,179,.17), transparent 27%), radial-gradient(circle at 95% 70%, rgba(247,189,45,.24), transparent 32%), linear-gradient(145deg,#fffdf0,#f6f1c9); }
.landing-hero-copy { max-width: 720px; }
.landing-hero .eyebrow, .landing-section .eyebrow { color: #177d78; }
.landing-hero h1 { max-width: 680px; margin: 15px 0 22px; color: var(--navy-deep); font-size: clamp(58px,7.5vw,112px); line-height: .91; letter-spacing: -.075em; }
.landing-lead { max-width: 650px; color: #48516b; font-size: clamp(18px,2vw,23px); line-height: 1.55; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.landing-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 22px; border-radius: 14px; text-decoration: none; font-weight: 900; }
.landing-button.ghost { border: 1px solid rgba(53,67,116,.25); color: var(--forest); background: rgba(255,255,255,.45); }
.landing-note { display: flex; align-items: center; gap: 9px; margin-top: 22px; color: var(--muted); font-size: 13px; font-weight: 700; }
.landing-note span { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(49,185,179,.14); }
.landing-demo { position: relative; min-height: 550px; display: grid; place-items: center; }
.demo-phone { width: min(420px,85%); padding: 18px; border: 10px solid var(--navy-deep); border-radius: 38px; background: white; box-shadow: 0 38px 90px rgba(8,23,46,.25); transform: rotate(2deg); }
.demo-phone-bar { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; color: var(--muted); font-size: 11px; }
.demo-phone-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.demo-horse-head { display: flex; align-items: center; gap: 14px; padding: 19px; border-radius: 20px; color: white; background: linear-gradient(135deg,var(--forest),var(--navy-deep)); }
.demo-avatar { display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid var(--gold); border-radius: 18px; background: var(--cream); color: var(--forest); font-size: 28px; font-weight: 900; }
.demo-horse-head h2 { margin: 2px 0; font-size: 27px; }.demo-horse-head p,.demo-horse-head small { margin: 0; color: #d4dfed; }
.demo-alert { display: grid; gap: 6px; margin-top: 14px; padding: 15px; border-left: 5px solid var(--gold); border-radius: 12px; background: var(--gold-soft); color: #524019; font-size: 13px; line-height: 1.45; }
.demo-facts { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 18px 5px 4px; color: var(--muted); font-size: 12px; }.demo-facts strong { color: var(--forest); }
.demo-tag { position: absolute; right: 0; bottom: 45px; display: grid; place-items: center; width: 145px; height: 145px; border: 8px solid white; border-radius: 50%; background: var(--forest); color: white; box-shadow: 0 24px 55px rgba(8,23,46,.28); transform: rotate(-8deg); }
.demo-tag img { width: 69px; height: 69px; border-radius: 50%; object-fit: cover; }.demo-tag span { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }.demo-tag i { position: absolute; right: 8px; top: 49px; color: var(--gold); font-style: normal; font-weight: 900; }
.landing-section { padding: clamp(70px,9vw,125px) clamp(22px,7vw,110px); scroll-margin-top: 70px; }
.landing-section > h2, .purpose-section h2, .privacy-section h2, .signin-section h2 { margin: 9px 0 35px; color: var(--navy-deep); font-size: clamp(38px,5vw,68px); line-height: 1.02; letter-spacing: -.055em; }
.how-section { background: var(--navy-deep); color: white; }.how-section > h2 { color: white; }
.step-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }.step-grid article { padding: 30px; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: rgba(255,255,255,.055); }.step-grid span { color: var(--gold); font-weight: 900; }.step-grid h3 { margin: 42px 0 10px; font-size: 28px; }.step-grid p { color: #c8d4e3; line-height: 1.65; }
.purpose-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px,8vw,120px); background: white; }.purpose-copy { padding-top: 35px; color: #4f5870; font-size: 19px; line-height: 1.8; }.purpose-copy p:first-child { color: var(--forest); font-size: 25px; font-weight: 750; line-height: 1.55; }
.audience-section { background: #f4efc7; }.audience-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }.audience-grid article { min-height: 220px; padding: 25px; border-radius: 20px; background: rgba(255,255,255,.65); }.audience-grid b { color: var(--forest); font-size: 22px; }.audience-grid p { color: #566078; line-height: 1.65; }
.pricing-section { background: white; }
.pricing-heading { max-width: 850px; }
.pricing-heading > p:last-child { color: var(--muted); font-size: 18px; }
.pricing-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 34px; }
.price-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 12px 35px rgba(8,23,46,.08); }
.price-card.featured { border: 2px solid var(--teal); box-shadow: 0 18px 45px rgba(49,185,179,.17); }
.price-kicker { color: #177d78; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.price-card h3 { margin: 12px 0 8px; color: var(--navy-deep); font-size: 26px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 20px; }.price strong { color: var(--forest); font-size: 42px; letter-spacing: -.05em; }.price span { color: var(--muted); font-size: 13px; font-weight: 750; }
.price-card ul { display: grid; gap: 11px; margin: 0 0 26px; padding: 0; list-style: none; color: #4f5870; line-height: 1.45; }.price-card li::before { content: "✓"; margin-right: 9px; color: #177d78; font-weight: 900; }
.price-card .landing-button { margin-top: auto; }
.pricing-note { margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.price-card.coming-soon { position: relative; border-style: dashed; background: linear-gradient(180deg, #fff 0%, #faf8fc 100%); }
.disabled-button { display: inline-flex; justify-content: center; opacity: .7; cursor: default; pointer-events: none; }
.privacy-section { display: grid; grid-template-columns: auto minmax(0,760px); justify-content: center; align-items: center; gap: 35px; color: white; background: var(--forest); }.privacy-section h2 { margin-bottom: 18px; color: white; }.privacy-section p:last-child { color: #d8dfef; font-size: 18px; line-height: 1.7; }.privacy-mark { display: grid; place-items: center; width: 100px; height: 100px; border: 3px solid var(--teal); border-radius: 50%; color: var(--gold); font-size: 52px; font-weight: 900; }
.signin-section { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 55px; background: white; }.signin-section > div:first-child > p:last-child { color: var(--muted); line-height: 1.65; }.landing-auth .account-access { margin: 0; box-shadow: none; }.landing-auth .landing-button { margin-top: 30px; }
.landing-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 35px; padding: 28px clamp(22px,7vw,110px); color: #d5deeb; background: var(--navy-deep); }.landing-footer p { text-align: center; }.landing-footer a { color: var(--gold); font-weight: 850; }.footer-links { display: flex; gap: 14px; }

.shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center;
  justify-content: space-between; padding: 14px clamp(18px, 4vw, 52px);
  gap: 24px; background: rgba(8, 23, 46, 0.97); color: white; backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: 0 8px 24px rgba(3,12,27,.2);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -0.03em; font-size: 22px; }
.brand-logo { width: 38px; height: 38px; border: 2px solid var(--teal); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(247,189,45,.42); }
.nav-actions { display: grid; grid-template-columns: repeat(7, auto); gap: 4px; padding: 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.06); }
.topbar button { min-height: 38px; border: 0; border-radius: 10px; padding: 8px 14px; background: transparent; color: rgba(255,255,255,.72); white-space: nowrap; font-size: 13px; font-weight: 700; transition: background .18s ease, color .18s ease, transform .18s ease; }
.topbar button:hover { background: rgba(255,255,255,.08); color: white; }
.topbar button.active { background: var(--gold); color: var(--navy-deep); font-weight: 850; box-shadow: 0 3px 10px rgba(0,0,0,.2); }

.page { width: min(1160px, calc(100% - 32px)); margin: 28px auto 72px; }
.account-access { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 22px; padding: 22px 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: var(--navy-deep); color: white; box-shadow: var(--shadow); }
.account-access h2 { margin-bottom: 6px; }
.account-access p { margin-bottom: 0; color: #dfe7f3; }
.account-access.signed-in { border-left: 6px solid var(--teal); }
.login-form { width: min(520px, 100%); }
.login-form > label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.login-form > div { display: flex; gap: 8px; }
.login-form input { min-width: 0; flex: 1; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; padding: 12px 13px; background: white; color: var(--ink); }
.login-form small { display: block; margin-top: 8px; color: #bfcbe0; line-height: 1.4; }
.auth-forms { width: min(520px, 100%); }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: #9dabc2; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: rgba(255,255,255,.16); }
.otp-form input { max-width: 190px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; font-weight: 800; letter-spacing: .18em; text-align: center; }
.otp-form .secondary { border-color: rgba(255,255,255,.25); }
.account-buttons, .account-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.password-login-form { display: grid; }
.code-login { margin-top: 16px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 14px; }
.code-login summary { cursor: pointer; color: #dfe7f3; font-size: 13px; font-weight: 800; }
.code-login .login-form { margin-top: 14px; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--gold); text-decoration: underline; font: inherit; cursor: pointer; }
.account-profile-card { display: flex; align-items: center; gap: 24px; margin-bottom: 22px; padding: clamp(24px,5vw,44px); border-radius: 24px; color: white; background: radial-gradient(circle at 85% 10%, rgba(49,185,179,.32), transparent 34%), var(--navy-deep); box-shadow: var(--shadow); }
.account-profile-card h1 { margin: 0 0 5px; font-size: clamp(34px,5vw,54px); }
.account-profile-card > div > p:not(.eyebrow) { color: #dfe7f3; }
.account-avatar { display: grid; place-items: center; flex: 0 0 88px; width: 88px; height: 88px; border: 4px solid var(--teal); border-radius: 50%; background: white; color: var(--forest); font-size: 38px; font-weight: 900; }
.account-stats { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }.account-stats span { padding: 8px 11px; border-radius: 10px; background: rgba(255,255,255,.1); }.account-stats strong { color: var(--gold); }
.account-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }.account-settings-grid .panel { padding: 26px; }
.account-form { display: grid; gap: 9px; margin-top: 18px; }.account-form label { font-size: 13px; font-weight: 800; }.account-form input { border: 1px solid var(--line); border-radius: 12px; padding: 13px; }.account-form button { margin-top: 7px; }.account-form small { color: var(--muted); line-height: 1.45; }
.account-details { margin: 18px 0; }.account-details div { padding: 13px 0; border-bottom: 1px solid var(--line); }.account-details dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }.account-details dd { margin: 4px 0 0; font-weight: 800; }.danger-outline { border: 1px solid #b64b4b; border-radius: 12px; padding: 11px 15px; color: #9d3232; background: transparent; font-weight: 800; }
.button-link { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.danger-zone { display:flex; align-items:center; justify-content:space-between; gap:22px; margin-top:22px; padding:22px 24px; border:1px solid #dca8a2; border-radius:20px; background:var(--red-soft); }
.danger-zone h2,.danger-zone p { margin:4px 0; }
.onboarding-card,.scan-history,.admin-hero { margin-bottom:22px; padding:24px; border-radius:20px; background:var(--navy-deep); color:white; box-shadow:var(--shadow); }
.onboarding-card { display:grid; grid-template-columns:.8fr 1.2fr; gap:24px; border-left:6px solid var(--gold); }.onboarding-card.complete { border-left-color:var(--teal); }
.onboarding-card h2,.scan-history h2,.admin-hero h1 { margin:4px 0 8px; }.onboarding-card p,.scan-history p,.admin-hero p { color:#cbd7e7; }
.onboarding-list { display:grid; gap:8px; }.onboarding-list button { display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid rgba(255,255,255,.14); border-radius:12px; background:rgba(255,255,255,.06); color:white; text-align:left; font-weight:800; }.onboarding-list button.done { color:#a9eee8; }.onboarding-list i { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:rgba(49,185,179,.2); font-style:normal; }
.scan-history ul { display:grid; gap:8px; margin:16px 0 0; padding:0; list-style:none; }.scan-history li { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 15px; border-radius:12px; background:rgba(255,255,255,.08); }.scan-history li div { display:grid; gap:3px; }.scan-history li span,.scan-history time { color:#cbd7e7; font-size:12px; }
.feedback-widget { width:min(1160px,calc(100% - 32px)); margin:-42px auto 28px; display:grid; justify-items:end; }.feedback-widget > button { border:1px solid rgba(255,255,255,.24); border-radius:999px; padding:10px 15px; background:rgba(8,23,46,.72); color:white; font-size:13px; font-weight:850; box-shadow:none; }.feedback-widget > button:hover { border-color:var(--gold); color:var(--gold); }.feedback-widget form { width:min(420px,100%); margin:0 0 10px; padding:20px; border:1px solid rgba(255,255,255,.18); border-radius:18px; background:var(--navy-deep); color:white; box-shadow:0 20px 60px rgba(0,0,0,.25); }.feedback-widget h2 { margin:0 0 14px; }.feedback-widget label { display:block; margin:10px 0 5px; font-size:12px; font-weight:800; }.feedback-widget select,.feedback-widget textarea { width:100%; padding:11px; border:0; border-radius:10px; background:white; color:var(--ink); }.feedback-widget textarea { min-height:105px; resize:vertical; }.feedback-widget .primary { width:100%; margin-top:12px; }.feedback-widget small { display:block; margin-top:8px; color:#cbd7e7; }
.admin-hero h1 { font-size:clamp(38px,7vw,70px); }.metric-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:22px; }.metric-grid article { display:grid; gap:5px; padding:20px; border-radius:18px; background:var(--paper); box-shadow:var(--shadow); }.metric-grid strong { color:var(--forest); font-size:38px; }.metric-grid span { color:var(--muted); font-size:13px; font-weight:800; }.admin-feedback-list { display:grid; gap:10px; }.admin-feedback { display:grid; grid-template-columns:minmax(170px,.5fr) 1.3fr auto; gap:16px; align-items:center; padding:15px; border:1px solid var(--line); border-radius:14px; }.admin-feedback > div { display:grid; gap:4px; }.admin-feedback p { margin:0; line-height:1.5; }.admin-feedback select { padding:9px; border:1px solid var(--line); border-radius:10px; }.status-pill { width:max-content; padding:4px 7px; border-radius:999px; background:var(--gold-soft); color:#6a5214; font-size:10px; font-weight:900; text-transform:uppercase; }.status-pill.resolved { background:#d7f2ea;color:#176650; }
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; margin-bottom: 22px; }
.compact-hero { grid-template-columns: 1fr 340px; }
.compact-hero .hero-copy { padding: 30px 34px; }
.compact-hero .hero-copy h1 { font-size: clamp(36px, 5vw, 54px); }
.compact-hero .tag-card { padding: 18px; }
.compact-hero .tag-visual { min-height: 150px; padding: 18px; }
.compact-hero .tag-code { margin-top: 28px; }
.readiness-card { margin-bottom: 22px; padding: 24px; border: 1px solid rgba(255,255,255,.16); border-left: 6px solid var(--gold); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.readiness-card.ready { border-left-color: var(--teal); }
.readiness-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; }.readiness-summary h2 { margin-bottom: 5px; }.readiness-summary p:not(.eyebrow) { margin: 0; color: var(--muted); }.readiness-summary > strong { display: grid; place-items: center; flex: 0 0 72px; width: 72px; height: 72px; border: 6px solid var(--teal); border-radius: 50%; color: var(--forest); font-size: 19px; }
.readiness-checks { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 20px; }.readiness-checks span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #efede7; color: var(--muted); font-size: 13px; font-weight: 750; }.readiness-checks span.done { background: #ddf5f3; color: var(--forest); }.readiness-checks i { color: var(--teal); font-style: normal; font-weight: 900; }
.readiness-actions { display: flex; gap: 8px; margin-top: 16px; }
.hero-copy, .tag-card, .panel, .public-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.hero-copy { padding: clamp(26px, 5vw, 52px); background: radial-gradient(circle at 88% 8%, rgba(49,185,179,.35), transparent 32%), linear-gradient(135deg, var(--forest), var(--navy-deep)); color: white; border-bottom: 5px solid var(--teal); }
.eyebrow { margin: 0 0 10px; color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 850; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 14px; font-size: clamp(36px, 6vw, 67px); line-height: .98; letter-spacing: -.055em; }
.hero-copy p { max-width: 650px; color: #dfe9e5; font-size: 17px; line-height: 1.6; }
.tag-card { padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.tag-visual { min-height: 230px; border-radius: 21px; padding: 24px; background: linear-gradient(135deg, var(--gold), #ffcf57); color: var(--forest); position: relative; overflow: hidden; display: flex; gap: 18px; align-items: flex-start; }
.tag-visual img { width: 70px; height: 70px; border-radius: 18px; object-fit: cover; box-shadow: 0 8px 20px rgba(8,23,46,.28); }
.tag-visual::after { content: "NFC"; position: absolute; right: -14px; bottom: -37px; font-size: 110px; font-weight: 950; opacity: .09; }
.tag-visual strong { display: block; font-size: 32px; letter-spacing: -.04em; }
.tag-code { margin-top: 64px; font-family: ui-monospace, monospace; font-weight: 800; letter-spacing: .11em; }
.status { display: flex; align-items: center; gap: 9px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px #ddf5f3; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { padding: 26px; }
.panel.wide { grid-column: 1 / -1; }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 22px; }
.panel h2 { margin-bottom: 4px; font-size: 25px; letter-spacing: -.035em; }
.panel h3 { margin: 28px 0 14px; color: var(--forest); font-size: 16px; text-transform: uppercase; letter-spacing: .08em; }
.profile-section { padding: 0; overflow: hidden; }
.profile-section > summary { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; cursor: pointer; list-style: none; background: rgba(255,255,255,.5); }
.profile-section > summary::-webkit-details-marker { display: none; }
.profile-section > summary > span { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; }
.profile-section > summary i { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-soft); color: var(--forest); font-size: 13px; font-style: normal; font-weight: 900; }
.profile-section > summary strong { color: var(--forest); font-size: 18px; }
.profile-section > summary small { grid-column: 2; margin-top: 2px; color: var(--muted); }
.profile-section > summary::after { content: "+"; color: var(--forest); font-size: 25px; }
.profile-section[open] > summary { border-bottom: 1px solid var(--line); }
.profile-section[open] > summary::after { content: "−"; }
.section-content { padding: 24px; }
.carer-editor { border-top: 6px solid var(--teal); }
.carer-editor .eyebrow { color: #187f7b; }
.person-panel { border-top: 6px solid var(--gold); }
.subtle.profile-privacy-note { color: var(--red); font-weight: 700; }
.person-panel .eyebrow { color: #8b6424; }
.premium-link { border: 0; padding: 7px 0; background: transparent; color: var(--forest); font-weight: 850; text-decoration: underline; text-underline-offset: 4px; }
.member-preferences { margin-top: 24px; padding: 18px; border-radius: 15px; background: #f5f4e9; }
.member-preferences h3 { margin-top: 0; }
.member-preferences label { display: flex; align-items: center; gap: 11px; margin-top: 12px; }
.subtle { color: var(--muted); font-size: 14px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; background: white; color: var(--ink); outline: none; }
.field textarea { min-height: 94px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(32,82,70,.12); }
.visibility { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; color: var(--muted); font-size: 12px; }
.switch { appearance: none; width: 41px; height: 23px; padding: 0; border: 0; border-radius: 999px; background: #bbb; position: relative; transition: .2s; }
.field input.switch { width: 41px; min-width: 41px; flex: 0 0 41px; }
.switch::after { content: ""; position: absolute; width: 17px; height: 17px; border-radius: 50%; background: white; top: 3px; left: 3px; transition: .2s; }
.switch:checked { background: var(--teal); }
.switch:checked::after { transform: translateX(18px); }
.savebar { position: sticky; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 14px 16px; border-radius: 18px; background: var(--forest); color: white; box-shadow: var(--shadow); }
.savebar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.savebar-actions button { width: auto; min-width: 78px; white-space: nowrap; border-radius: 999px; padding: 10px 17px; line-height: 1.15; }
.primary { border: 0; border-radius: 12px; padding: 12px 18px; background: var(--gold); color: var(--forest); font-weight: 850; }
.secondary { border: 1px solid var(--line); border-radius: 12px; padding: 11px 16px; background: white; color: var(--forest); font-weight: 750; }

.public-wrap { width: min(680px, calc(100% - 28px)); margin: 22px auto 70px; }
.public-cover { position: relative; min-height: 280px; display: flex; align-items: end; padding: 24px; overflow: hidden; border-radius: 28px 28px 0 0; color: white; background: linear-gradient(130deg, var(--forest), var(--navy-deep)); border-bottom: 5px solid var(--teal); }
.public-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(49,185,179,.48), transparent 37%), radial-gradient(circle at 20% 0%, rgba(247,189,45,.26), transparent 30%); }
.public-brand-logo { position: absolute; z-index: 1; right: 22px; top: 22px; width: 78px; height: 78px; border: 2px solid var(--gold); border-radius: 22px; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.horse-avatar { position: relative; display: grid; place-items: center; width: 112px; height: 112px; margin-right: 18px; border: 4px solid rgba(255,255,255,.8); border-radius: 30px; background: var(--gold-soft); color: var(--forest); font-size: 48px; font-weight: 900; }
.public-title { position: relative; }
.public-title h1 { margin: 0 0 4px; font-size: 47px; }
.public-title p { margin: 0; color: #dce9e5; }
.public-card { border-radius: 0 0 28px 28px; overflow: hidden; }
.alert { margin: 20px; padding: 18px; border: 1px solid #edc1bc; border-radius: 16px; background: var(--red-soft); color: #6e2824; }
.alert strong { display: block; margin-bottom: 7px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.section { padding: 22px; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section h2 { margin-bottom: 15px; font-size: 19px; }
.fact-list { display: grid; gap: 13px; }
.fact { display: grid; grid-template-columns: 125px 1fr; gap: 12px; }
.fact span:first-child { color: var(--muted); font-size: 13px; font-weight: 750; }
.fact span:last-child { line-height: 1.5; white-space: pre-wrap; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-actions a { display: block; padding: 14px 18px; border-radius: 999px; text-align: center; text-decoration: none; font-weight: 850; }
.call { background: var(--forest); color: white; }
.vet { background: var(--gold-soft); color: var(--forest); }
.disclaimer { padding: 18px 22px; background: #efede7; color: var(--muted); font-size: 12px; line-height: 1.55; }
.journey-section { background: linear-gradient(145deg, #fffbed, #eefaf8); border-left: 5px solid var(--teal); }
.journey-section .eyebrow { color: #187f7b; margin-bottom: 6px; }
.journey-timeline { margin-top: 22px; padding-top: 18px; border-top: 1px solid #d8d6c8; }
.journey-timeline h3 { margin-bottom: 13px; color: var(--forest); }
.journey-timeline article { display: grid; grid-template-columns: 100px 1fr; gap: 3px 14px; margin-bottom: 10px; padding: 12px; border-left: 4px solid var(--teal); border-radius: 8px; background: rgba(255,255,255,.62); }
.journey-timeline time { grid-row: 1 / 3; color: var(--muted); font-size: 12px; font-weight: 800; }
.journey-timeline p { margin: 3px 0 0; line-height: 1.5; }
.empty { color: var(--muted); font-style: italic; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 20; padding: 13px 16px; border-radius: 12px; background: #102e27; color: white; box-shadow: var(--shadow); }

.carer-wrap { width: min(820px, calc(100% - 28px)); margin: 22px auto 72px; display: grid; gap: 15px; }
.carer-hero { position: relative; display: flex; justify-content: space-between; gap: 20px; min-height: 220px; padding: 30px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 26px; background: radial-gradient(circle at 78% 15%, rgba(49,185,179,.38), transparent 35%), var(--navy-deep); color: white; box-shadow: var(--shadow); }
.carer-hero h1 { max-width: 580px; margin-bottom: 10px; font-size: clamp(38px, 7vw, 62px); }
.carer-hero > div { align-self: end; position: relative; z-index: 1; }
.carer-hero img { width: 96px; height: 96px; border: 3px solid var(--gold); border-radius: 25px; object-fit: cover; }
.private-banner { display: flex; gap: 12px; align-items: center; padding: 15px 18px; border-radius: 15px; background: var(--gold); color: var(--forest); }
.private-banner span { font-size: 13px; }
.carer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.carer-actions a { padding: 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: var(--teal); color: var(--navy-deep); text-align: center; text-decoration: none; font-weight: 850; }
.carer-actions a:last-child { background: var(--gold); }
.carer-card { padding: 23px; border: 1px solid var(--line); border-radius: 21px; background: var(--paper); box-shadow: var(--shadow); }
.carer-card h2 { margin-bottom: 17px; color: var(--forest); font-size: 23px; }
.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.care-item { padding: 15px; border-left: 4px solid var(--teal); border-radius: 10px; background: #f5f4e9; }
.care-item.urgent { border-left-color: var(--red); background: var(--red-soft); }
.care-item span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.care-item p { margin: 0; line-height: 1.55; white-space: pre-wrap; }
.checklist-card { display: grid; gap: 11px; border-top: 6px solid var(--gold); }
.checklist-card .eyebrow { color: #8b6424; margin-bottom: -3px; }
.checklist-card label { display: flex; gap: 11px; align-items: center; padding: 12px; border-radius: 11px; background: #f5f4e9; }
.checklist-card input { width: 21px; height: 21px; accent-color: var(--teal); }
.carer-disclaimer { margin: 3px 10px; color: rgba(255,255,255,.74); font-size: 12px; line-height: 1.55; }

.notes-wrap { width: min(980px, calc(100% - 28px)); margin: 22px auto 72px; display: grid; gap: 16px; }
.notes-hero { min-height: 230px; display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 30px; border: 1px solid rgba(255,255,255,.15); border-radius: 26px; background: radial-gradient(circle at 80% 12%, rgba(247,189,45,.28), transparent 30%), radial-gradient(circle at 65% 35%, rgba(49,185,179,.3), transparent 35%), var(--navy-deep); color: white; box-shadow: var(--shadow); }
.notes-hero h1 { margin-bottom: 10px; font-size: clamp(38px, 7vw, 62px); }
.notes-hero > div { max-width: 720px; }
.notes-hero img { align-self: flex-start; width: 96px; height: 96px; border: 3px solid var(--teal); border-radius: 25px; object-fit: cover; }
.notes-form-card, .session-history { padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.notes-form-card .eyebrow, .session-history .eyebrow { color: #187f7b; }
.share-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #f5f4e9; }
.share-option input { width: 21px; height: 21px; accent-color: var(--teal); }
.share-option span { display: grid; gap: 3px; }
.share-option small { color: var(--muted); line-height: 1.4; }
.history-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 16px; }
.history-heading h2 { margin: 0; color: var(--forest); }
.history-heading > span { padding: 7px 11px; border-radius: 999px; background: var(--gold-soft); color: var(--forest); font-size: 12px; font-weight: 850; }
.session-history { display: grid; gap: 14px; }
.session-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.session-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.session-head time { color: var(--muted); font-size: 12px; font-weight: 800; }
.session-head h3 { margin: 4px 0 0; color: var(--forest); font-size: 21px; }
.session-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.session-badges span { height: fit-content; padding: 6px 8px; border-radius: 999px; background: #e9e7e0; color: var(--muted); font-size: 11px; font-weight: 800; }
.session-badges span.on { background: #d9f4f1; color: #146e69; }
.session-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.private-note { margin-top: 12px; padding: 14px; border: 1px dashed #a5a1b5; border-radius: 12px; background: #efedf4; }
.private-note strong { color: var(--forest); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.private-note p { margin: 7px 0 0; line-height: 1.5; }
.delete-session { margin-top: 13px; padding: 7px 0; border: 0; background: transparent; color: var(--red); font-size: 12px; font-weight: 800; }
.empty-history { padding: 30px; border: 1px dashed var(--line); border-radius: 15px; color: var(--muted); text-align: center; }

.premium-wrap { width: min(1040px, calc(100% - 28px)); margin: 22px auto 72px; display: grid; gap: 16px; }
.premium-hero { min-height: 330px; display: flex; align-items: end; justify-content: space-between; gap: 25px; padding: 36px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 28px; background: radial-gradient(circle at 77% 15%, rgba(247,189,45,.38), transparent 31%), radial-gradient(circle at 58% 40%, rgba(49,185,179,.3), transparent 36%), var(--navy-deep); color: white; box-shadow: var(--shadow); }
.premium-hero > div { max-width: 760px; }
.premium-hero h1 { margin-bottom: 13px; font-size: clamp(43px, 8vw, 77px); }
.premium-hero > div > p:not(.eyebrow) { max-width: 650px; color: #dfe7f3; font-size: 17px; line-height: 1.55; }
.premium-hero img { align-self: flex-start; width: 108px; height: 108px; border: 3px solid var(--gold); border-radius: 28px; object-fit: cover; }
.premium-status { display: inline-flex; align-items: center; gap: 9px; margin-top: 10px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #dfe7f3; font-size: 12px; }
.premium-status span { padding: 4px 7px; border-radius: 999px; background: var(--gold); color: var(--forest); font-weight: 900; }
.welcome-strip { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; border-radius: 17px; background: var(--teal); color: var(--navy-deep); }
.welcome-strip div { display: flex; gap: 7px; font-size: 20px; }
.welcome-strip a { color: var(--navy-deep); font-weight: 850; }
.premium-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.premium-card { position: relative; min-height: 270px; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.premium-card.feature-card { background: linear-gradient(145deg, #fff8dd, #fffdf0); border-top: 6px solid var(--gold); }
.premium-card .eyebrow { color: #187f7b; }
.premium-card h2 { margin-bottom: 11px; color: var(--forest); font-size: 28px; }
.premium-card > p:not(.eyebrow) { max-width: 480px; color: var(--muted); line-height: 1.6; }
.premium-card a, .premium-card button { display: inline-block; margin-top: 18px; padding: 10px 13px; border: 0; border-radius: 11px; background: var(--forest); color: white; text-decoration: none; font-weight: 800; }
.premium-card button:disabled { opacity: .68; cursor: default; }
.premium-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 23px; border-radius: 14px; background: var(--gold); color: var(--forest); font-family: Georgia, serif; font-size: 22px; font-weight: 900; }
.preference-state { display: flex; align-items: center; gap: 9px; margin-top: 24px; color: var(--forest); font-size: 13px; font-weight: 800; }
.website-links { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding: 27px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.website-links .eyebrow { color: #8b6424; }
.website-links h2 { color: var(--forest); }
.website-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.website-actions a { padding: 11px 13px; border-radius: 11px; background: var(--forest); color: white; text-decoration: none; font-weight: 800; }
.premium-disclaimer { margin: 4px 10px; color: rgba(255,255,255,.75); font-size: 12px; line-height: 1.55; }

.tag-manager { margin: 28px 0 72px; padding: 32px; border: 1px solid rgba(255,255,255,.28); border-radius: 28px; background: rgba(6,24,48,.86); color: white; box-shadow: 0 22px 48px rgba(3,13,31,.25); }
.tags-page { min-height: 75vh; }
.tag-manager.locked { text-align: center; }
.tag-count, .tag-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 12px; background: rgba(57,194,185,.16); color: #8ff0e7; font-weight: 800; }
.tag-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 18px; margin: 24px 0; }
.tag-item { padding: 20px; border-radius: 22px; background: #f9f5db; color: #101c34; }
.tag-item.disabled { opacity: .65; filter: grayscale(.35); }
.tag-item-head { display: flex; justify-content: space-between; gap: 16px; }
.tag-item h3 { margin: 10px 0 2px; font-size: 1.3rem; }
.tag-item p { margin: 0; }
.tag-item label { display: block; margin-top: 16px; font-weight: 800; }
.tag-qr { width: 142px; min-width: 142px; min-height: 142px; padding: 5px; background: #fff; border-radius: 10px; }
.tag-qr img, .tag-qr canvas { width: 132px !important; height: 132px !important; }
.tag-link { display: flex; gap: 8px; margin-top: 7px; }
.tag-link input { min-width: 0; background: #fff; color: #17233d; }
.tag-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tag-actions a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.danger { border: 0; border-radius: 15px; padding: 12px 16px; background: #9f2638; color: white; font-weight: 800; }
.empty-tags { display: flex; flex-direction: column; gap: 5px; padding: 22px; border: 1px dashed rgba(255,255,255,.28); border-radius: 18px; }
.new-tag-form { display: grid; grid-template-columns: minmax(220px,2fr) minmax(150px,1fr) auto; align-items: end; gap: 14px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); }
.new-tag-form .field { margin: 0; }
.new-tag-form select { width: 100%; padding: 15px; border: 0; border-radius: 14px; background: white; color: #17233d; font: inherit; }
.new-tag-form small { grid-column: 1/-1; color: #cad5e7; }
.nav-actions.public-tag-nav { display: flex; width: auto; }
.nav-actions.public-tag-nav button { min-width: 180px; }
.horse-switcher { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; background: rgba(6,24,48,.9); color: white; box-shadow: var(--shadow); }
.horse-switcher .eyebrow { margin-bottom: 7px; }
.horse-switcher select { min-width: min(360px,70vw); padding: 13px 42px 13px 14px; border: 2px solid rgba(49,185,179,.45); border-radius: 13px; background: white; color: var(--forest); font: inherit; font-weight: 850; }
.horse-switcher-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.shared-access-badge { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: 10px; padding: 7px 11px; border: 1px solid rgba(143,240,231,.35); border-radius: 999px; background: rgba(49,185,179,.16); color: #d9fffb; font-size: 12px; }
.shared-access-badge span { opacity: .82; }
.shared-horse-overview { display: grid; gap: 16px; padding: clamp(24px,5vw,48px); border: 1px solid rgba(255,255,255,.22); border-radius: 24px; background: radial-gradient(circle at 85% 10%, rgba(49,185,179,.28), transparent 35%), var(--navy-deep); color: white; box-shadow: var(--shadow); }
.shared-horse-overview h1 { margin: 0; font-size: clamp(36px,7vw,64px); }
.shared-horse-overview p { max-width: 680px; margin: 0; color: #d5deeb; line-height: 1.65; }
.shared-horse-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account-role { display: inline-flex; margin: 8px 0; padding: 6px 10px; border-radius: 999px; background: rgba(49,185,179,.18); color: #8ff0e7; font-size: 12px; font-weight: 900; letter-spacing: .03em; }
.notes-access-message { border-left: 6px solid var(--teal); }
.carer-access { margin-bottom: 18px; padding: 24px; border: 1px solid rgba(255,255,255,.22); border-radius: 22px; background: rgba(6,24,48,.9); color: white; box-shadow: var(--shadow); }
.carer-access.review { border-left: 6px solid var(--gold); }
.carer-access.active-access { border-left: 6px solid var(--teal); }
.carer-access-list { display: grid; gap: 10px; margin: 18px 0; }
.carer-access-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px; border-radius: 15px; background: var(--paper); color: var(--forest); }
.carer-access-row > div { display: grid; gap: 4px; }
.carer-access-row span { color: var(--muted); font-size: 12px; }
.carer-access-row.expired { opacity: .65; }
.carer-access-row.pending { border: 2px dashed rgba(9,108,120,.35); }
.invite-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.carer-access .new-tag-form { grid-template-columns: minmax(210px,2fr) minmax(145px,1fr) minmax(145px,1fr) auto; }

.admin-page { display: grid; gap: 18px; }
.admin-head, .admin-empty, .admin-panel { padding: 24px; border: 1px solid rgba(255,255,255,.22); border-radius: 22px; background: rgba(6,24,48,.94); color: white; box-shadow: var(--shadow); }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-head h1, .admin-panel h2, .admin-empty h1 { margin: 3px 0 6px; }
.admin-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; }
.subscription-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.subscription-grid article { display: grid; padding: 16px; border-radius: 15px; background: rgba(255,255,255,.08); }
.subscription-grid strong { font-size: 28px; }
.subscription-grid span { font-weight: 850; }
.subscription-grid small, #admin-tag-state { color: #a9bdd5; text-transform: capitalize; }
#admin-assign-tag { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#admin-assign-tag label { display: grid; gap: 6px; color: #cad5e7; font-size: 12px; font-weight: 850; }
#admin-assign-tag input, #admin-assign-tag select, #admin-search { width: 100%; padding: 13px 14px; border: 0; border-radius: 12px; background: white; color: var(--forest); font: inherit; }
#admin-assign-tag button, #admin-tag-state { align-self: end; }
.tag-code-field { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; grid-column: 1 / -1; }
.tag-code-field > label { min-width: 0; }
.generated-tag-url { grid-column: 1 / -1; padding: 14px; border: 1px solid rgba(143,240,231,.28); border-radius: 14px; background: rgba(49,185,179,.1); }
.generated-tag-url label { display: block; margin-bottom: 7px; color: #cad5e7; font-size: 12px; font-weight: 850; }
.generated-tag-url .tag-link { display: flex; gap: 8px; }
.generated-tag-url .tag-link input { min-width: 0; }
.assign-tag-button { min-height: 48px; }
.directory-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.directory-head #admin-search { max-width: 330px; }
.table-wrap { overflow-x: auto; border-radius: 15px; }
.directory-panel table { width: 100%; border-collapse: collapse; background: white; color: var(--forest); }
.directory-panel th, .directory-panel td { padding: 14px 16px; border-bottom: 1px solid #e4e9ef; text-align: left; }
.directory-panel th { background: #eef3f5; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.directory-panel td small { display: block; margin-top: 4px; color: var(--muted); }
.metric-grid .metric-accent { background: linear-gradient(145deg,var(--teal),#247f80); color: white; }
.metric-grid .metric-accent span, .metric-grid .metric-accent small { color: rgba(255,255,255,.82); }

@media (max-width: 780px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-head, .directory-head { align-items: stretch; flex-direction: column; }
  #admin-assign-tag { grid-template-columns: 1fr; }
  .admin-page { gap: 12px; }
  .admin-head, .admin-empty, .admin-panel { padding: 18px 14px; border-radius: 17px; }
  .admin-head button { width: 100%; }
  .metric-grid article { padding: 15px; }
  .metric-grid strong { font-size: 30px; }
  .subscription-grid { grid-template-columns: 1fr 1fr; }
  .tag-code-field { grid-template-columns: 1fr; }
  .tag-code-field button, .assign-tag-button { width: 100%; }
  .generated-tag-url .tag-link { flex-direction: column; }
  .directory-head #admin-search { max-width: none; }
  .landing-header { grid-template-columns: 1fr auto; padding: 10px 14px; }
  .landing-header nav { display: none; }
  .landing-brand { justify-content: flex-start; }
  .landing-signin { padding: 8px 14px; }
  .landing-hero { min-height: auto; grid-template-columns: 1fr; gap: 25px; padding: 65px 20px 70px; }
  .landing-hero h1 { font-size: clamp(55px,18vw,80px); }
  .landing-lead { font-size: 18px; }
  .landing-actions { display: grid; grid-template-columns: 1fr; }
  .landing-demo { min-height: 440px; }
  .demo-phone { width: 92%; transform: none; }
  .demo-tag { right: -4px; bottom: 8px; width: 115px; height: 115px; }
  .demo-tag img { width: 50px; height: 50px; }
  .demo-tag i { right: 4px; top: 39px; }
  .step-grid, .audience-grid, .purpose-section, .signin-section, .pricing-grid { grid-template-columns: 1fr; }
  .step-grid article { padding: 24px; }
  .step-grid h3 { margin-top: 24px; }
  .purpose-copy { padding-top: 0; }
  .audience-grid article { min-height: 0; }
  .privacy-section { grid-template-columns: 1fr; justify-items: start; }
  .privacy-mark { width: 78px; height: 78px; font-size: 40px; }
  .landing-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .hero, .grid { grid-template-columns: 1fr; }
  .panel.wide { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .hero-copy { padding: 30px 24px; }
  .compact-hero { grid-template-columns: 1fr; }
  .compact-hero .tag-card { display: none; }
  .topbar { position: relative; align-items: stretch; flex-direction: column; gap: 8px; padding: 10px 12px 11px; }
  .topbar .brand { justify-content: flex-start; gap: 8px; padding-inline: 3px; font-size: 17px; }
  .topbar .brand-logo { width: 31px; height: 31px; }
  .nav-actions { display: flex; width: 100%; overflow-x: auto; gap: 5px; padding: 4px; border-radius: 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .nav-actions::-webkit-scrollbar { display: none; }
  .nav-actions button { flex: 0 0 auto; min-width: 72px; padding: 8px 13px; scroll-snap-align: start; }
  .topbar button { min-height: 38px; overflow: visible; font-size: 12px; letter-spacing: 0; }
  .nav-actions .account-nav { min-width: 82px; }
  .nav-actions.public-tag-nav { width: 100%; }
  .nav-actions.public-tag-nav button { width: 100%; }
  .page { width: min(100% - 22px, 1160px); margin-top: 14px; }
  .readiness-summary { align-items: flex-start; }.readiness-summary > strong { flex-basis: 60px; width: 60px; height: 60px; border-width: 5px; font-size: 16px; }.readiness-checks { grid-template-columns: 1fr 1fr; }.readiness-actions { display: grid; grid-template-columns: 1fr; }
  .account-access { align-items: stretch; flex-direction: column; gap: 17px; padding: 19px 17px; }
  .account-settings-grid { grid-template-columns: 1fr; }
  .account-profile-card { align-items: flex-start; flex-direction: column; }
  .account-avatar { flex-basis: 68px; width: 68px; height: 68px; font-size: 30px; }
  .login-form > div { flex-direction: column; }
  .otp-form input { max-width: none; }
  .panel { padding: 20px 16px; }
  .profile-section { padding: 0; }
  .profile-section > summary { padding: 17px 16px; }
  .section-content { padding: 18px 15px; }
  .public-cover { min-height: 240px; padding: 20px; }
  .horse-avatar { width: 86px; height: 86px; border-radius: 23px; font-size: 38px; }
  .public-title h1 { font-size: 39px; }
  .public-brand-logo { width: 62px; height: 62px; right: 16px; top: 16px; border-radius: 17px; }
  .tag-visual img { width: 58px; height: 58px; border-radius: 15px; }
  .carer-hero { min-height: 210px; padding: 22px; }
  .carer-hero img { width: 68px; height: 68px; border-radius: 18px; }
  .care-grid { grid-template-columns: 1fr; }
  .session-grid { grid-template-columns: 1fr; }
  .session-head { flex-direction: column; }
  .session-badges { justify-content: flex-start; }
  .notes-hero { min-height: 220px; padding: 22px; }
  .notes-hero img { width: 66px; height: 66px; border-radius: 18px; }
  .notes-form-card, .session-history { padding: 18px 14px; }
  .journey-timeline article { grid-template-columns: 1fr; }
  .journey-timeline time { grid-row: auto; }
  .premium-hero { min-height: 330px; padding: 24px; }
  .premium-hero img { width: 70px; height: 70px; border-radius: 19px; }
  .premium-grid { grid-template-columns: 1fr; }
  .welcome-strip, .website-links { align-items: flex-start; flex-direction: column; }
  .website-actions { justify-content: flex-start; }
  .private-banner { align-items: flex-start; flex-direction: column; gap: 4px; }
  .fact { grid-template-columns: 105px 1fr; }
  .savebar { bottom: 8px; align-items: flex-end; padding: 13px 14px; }
  .savebar #save-state { min-width: 0; font-size: 14px; line-height: 1.3; }
  .savebar-actions button { min-width: 72px; padding: 9px 15px; }
  .tag-manager { padding: 22px 16px; }
  .tag-list { grid-template-columns: 1fr; }
  .tag-item-head { flex-direction: column; }
  .tag-qr { align-self: center; }
  .tag-link { flex-direction: column; }
  .new-tag-form { grid-template-columns: 1fr; }
  .carer-access .new-tag-form { grid-template-columns: 1fr; }
  .carer-access-row { align-items: stretch; flex-direction: column; }
  .horse-switcher { align-items: stretch; flex-direction: column; }
  .horse-switcher select { width: 100%; min-width: 0; }
  .horse-switcher-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .shared-access-badge { align-items: flex-start; flex-direction: column; gap: 2px; border-radius: 14px; }
  .shared-horse-actions { display: grid; grid-template-columns: 1fr; }
  .onboarding-card { grid-template-columns: 1fr; }
  .scan-history li, .danger-zone { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .admin-feedback { grid-template-columns: 1fr; }
  .feedback-widget { width:calc(100% - 22px); margin:-50px auto 20px; }
  .feedback-widget > button { padding:9px 13px; }
}

@media (max-width: 560px) {
  .metric-grid { grid-template-columns: 1fr; }
  .subscription-grid { grid-template-columns: 1fr; }
  .directory-panel table, .directory-panel tbody, .directory-panel tr, .directory-panel td { display: block; width: 100%; }
  .directory-panel thead { display: none; }
  .directory-panel tbody { display: grid; gap: 10px; padding: 10px; background: #eef3f5; }
  .directory-panel tr { overflow: hidden; border: 1px solid #dce4e8; border-radius: 13px; background: white; }
  .directory-panel td { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 8px; padding: 10px 12px; border-bottom: 1px solid #e8edf0; overflow-wrap: anywhere; }
  .directory-panel td:last-child { border-bottom: 0; }
  .directory-panel td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
  .directory-panel td small { grid-column: 2; }
}
