:root { color-scheme: light; font-family: system-ui, -apple-system, "PingFang SC", sans-serif; color: #173d37; background: #f3f6f2; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.card { width: min(100%, 520px); padding: clamp(28px, 6vw, 48px); background: #fff; border: 1px solid #dce8e1; border-radius: 24px; box-shadow: 0 16px 50px #143d3710; }
.mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #143d37; color: #fff; font-size: 30px; font-weight: 700; }
.eyebrow { margin: 24px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #40806e; }
h1 { margin: 0; font-size: clamp(28px, 6vw, 36px); line-height: 1.2; }
.intro { margin: 16px 0 28px; color: #526a61; line-height: 1.7; }
button { width: 100%; border: 0; border-radius: 12px; padding: 14px 20px; background: #143d37; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
button:hover { background: #225e52; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #77bca1; outline-offset: 2px; }
button:disabled { opacity: .6; cursor: wait; }
.status { min-height: 1.5em; margin: 16px 0 0; color: #225e52; line-height: 1.5; }
.hint { margin: 28px 0 0; font-size: 13px; color: #71847b; line-height: 1.6; }
.ad-slot { margin-top: 24px; overflow-x: auto; }
.ad-slot .hint { margin: 0 0 8px; }
.recommendations { margin-top: 28px; border-top: 1px solid #dce8e1; padding-top: 24px; }
.recommendations h2 { margin: 0; font-size: 20px; }
.recommendations .hint { margin: 8px 0 16px; color: #526a61; }
.recommendations ul { display: grid; justify-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.recommendations li { width: 300px; max-width: 100%; }
.recommendations iframe { display: block; width: 300px; max-width: 100%; height: 250px; margin-bottom: 8px; border: 1px solid #bdcec4; border-radius: 10px; }
.recommendations .tool-card { height: 250px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid #bdcec4; border-radius: 10px; background: #f3f6f2; }
.recommendations h3 { margin: 0; font-size: 20px; }
.recommendations .tool-card p { margin: 12px 0; color: #526a61; line-height: 1.6; }
.recommendations a { display: block; padding: 12px 16px; border: 1px solid #bdcec4; border-radius: 10px; color: #173d37; font-weight: 600; text-decoration: none; }
.recommendations a:hover { background: #f3f6f2; }
.recommendations a:focus-visible { outline: 3px solid #77bca1; outline-offset: 2px; }
form { display: grid; gap: 10px; }
label { margin-top: 10px; font-weight: 600; }
input, textarea { width: 100%; padding: 12px; border: 1px solid #bdcec4; border-radius: 10px; color: inherit; font: inherit; }
textarea { resize: vertical; }
form button { margin-top: 18px; }
.admin-body { display: block; max-width: 1200px; margin: 0 auto; padding: 32px 20px 64px; }
.admin-shell { display: grid; gap: 20px; }
.admin-shell .intro { margin-bottom: 0; }
.panel, .stats > div { background: #fff; border: 1px solid #dce8e1; border-radius: 18px; padding: 24px; }
.panel h2 { margin: 0; font-size: 22px; }
.panel .hint { margin: 10px 0 18px; }
.panel form { max-width: 560px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; }
.stats > div { display: grid; gap: 10px; }
.stats span { color: #526a61; font-size: 13px; }
.stats strong { font-size: 28px; line-height: 1; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
button.secondary { width: auto; padding: 8px 12px; border: 1px solid #bdcec4; background: #fff; color: #173d37; font-size: 13px; white-space: nowrap; }
button.secondary:hover { background: #f3f6f2; }
.traffic-controls { display: flex; align-items: center; gap: 8px; }
.traffic-controls label { margin: 0; font-size: 13px; }
.traffic-controls select { width: auto; padding: 8px; border: 1px solid #bdcec4; border-radius: 8px; color: inherit; background: #fff; font: inherit; font-size: 13px; }
.traffic-stats { margin: 16px 0; }
.traffic-stats > div { padding: 16px; }
.traffic-stats strong { font-size: 23px; }
.panel h3 { margin: 24px 0 8px; font-size: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 10px; border-bottom: 1px solid #e7eee9; text-align: left; vertical-align: top; white-space: nowrap; }
th { color: #526a61; font-weight: 600; }
.message-title { max-width: 220px; overflow-wrap: anywhere; white-space: normal; }
.device-agent { max-width: 260px; overflow-wrap: anywhere; white-space: normal; }
.traffic-click-id { max-width: 190px; overflow-wrap: anywhere; white-space: normal; }
.traffic-detail { min-width: 230px; max-width: 360px; white-space: normal; }
.traffic-detail summary { color: #225e52; cursor: pointer; }
.traffic-detail dl { margin: 10px 0 0; }
.traffic-detail dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; margin: 6px 0; }
.traffic-detail dt { color: #526a61; }
.traffic-detail dd { margin: 0; overflow-wrap: anywhere; }
.device-detail-value { max-width: 220px; overflow-wrap: anywhere; white-space: normal; }
.device-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 20px 0; }
.device-facts > div { min-width: 0; padding: 12px; border: 1px solid #e7eee9; border-radius: 10px; }
.device-facts dt { color: #526a61; font-size: 13px; }
.device-facts dd { margin: 6px 0 0; overflow-wrap: anywhere; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; font-size: 13px; }
#moreMessages, #moreDevices, #moreTrafficClicks { margin-top: 16px; }

/* Landing page only; existing admin styles above remain shared. */
.landing-body { display: block; padding: 0; background: #f7f8f2; color: #173d37; }
.landing-body [hidden] { display: none !important; }
.landing-shell { width: min(1120px, calc(100% - 80px)); margin: auto; }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 12px; background: #143d37; color: white; z-index: 5; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 32px 0; border-bottom: 1px solid #dce2d7; }
.brand { display: flex; align-items: center; gap: 9px; color: #173d37; text-decoration: none; font-size: 25px; font-weight: 750; letter-spacing: -.9px; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; background: #143d37; color: #f5f7ed; border-radius: 10px; font-size: 20px; }
.brand-dot { margin-left: -9px; color: #68862f; }
.header-note { font-size: 13px; color: #58675e; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; padding: 68px 0 62px; }
.landing-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; color: #526a45; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.landing-eyebrow > span { width: 6px; height: 6px; border-radius: 100%; background: #68862f; }
.landing-body h1 { font-size: clamp(40px, 4.4vw, 62px); line-height: 1.08; letter-spacing: -2.7px; font-weight: 650; }
.landing-body h1 span { color: #627e3b; }
.hero-intro { max-width: 450px; margin: 24px 0 26px; color: #52645b; font-size: 17px; line-height: 1.65; }
.opt-in { max-width: 430px; }
.landing-body #enable { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 16px 22px; border-radius: 10px; font-size: 16px; }
.landing-body #enable:hover:not(:disabled) { background: #22594c; }
.landing-body #enable:disabled { opacity: .7; }
.consent-note { margin: 12px 0 0; color: #59695d; font-size: 12px; line-height: 1.6; }
.landing-body .status { min-height: 40px; margin: 12px 0 0; color: #59695d; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.landing-body .status[data-state="success"] { color: #22594c; font-weight: 650; }
.landing-body .status[data-state="error"] { color: #825021; }
.browse-link { display: inline-flex; gap: 18px; align-items: center; margin-top: 10px; padding: 6px 0; color: #173d37; text-underline-offset: 5px; font-size: 14px; }
.landing-body a:focus-visible, .landing-body summary:focus-visible { outline: 3px solid #68862f; outline-offset: 5px; }
.hero-visual { position: relative; min-height: 420px; display: flex; align-items: center; flex-direction: column; justify-content: center; overflow: hidden; border-radius: 28px; background: #e9eddd; }
.visual-orbit { position: absolute; width: 350px; height: 350px; top: 10px; border: 1px solid #cfd9b9; border-radius: 50%; }
.visual-orbit::after { content: ''; position: absolute; inset: 30px; border: 1px solid #d7dfc6; border-radius: 50%; }
.find-symbol { z-index: 1; display: grid; place-items: center; width: 125px; height: 125px; margin-bottom: 24px; background: #143d37; color: #e7f1c8; border-radius: 30px; transform: rotate(-8deg); box-shadow: 0 12px 24px #173d3715; }
.find-symbol svg { width: 95px; height: 95px; }
.example-alert { position: relative; width: calc(100% - 56px); padding: 20px; border: 1px solid #d7dfca; border-radius: 16px; background: #fdfef9; box-shadow: 0 12px 25px #173d3709; }
.example-header { display: flex; gap: 7px; align-items: center; font-size: 9px; letter-spacing: .08em; }
.example-header > span:last-child { margin-left: auto; color: #667660; }
.mini-mark { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 6px; background: #143d37; color: white; font-size: 12px; }
.example-alert h2 { margin: 15px 0 7px; font-size: 19px; letter-spacing: -.4px; }
.example-alert p { margin: 0; color: #58675e; font-size: 13px; line-height: 1.5; }
.visual-caption { position: relative; margin: 18px 0 0; font-size: 10px; color: #64715c; }
.partner-section { padding: 34px 0; border-top: 1px solid #dce2d7; scroll-margin-top: 20px; }
.partner-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.partner-heading .landing-eyebrow { margin-bottom: 12px; }
.partner-heading h2 { margin: 0; font-size: 27px; font-weight: 650; letter-spacing: -.8px; }
.partner-heading > p { margin: 0; color: #59695d; font-size: 13px; line-height: 1.6; }
.partner-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.partner-list a { display: flex; gap: 12px; align-items: center; min-height: 87px; padding: 17px; border: 1px solid #dce2d7; border-radius: 12px; background: #fdfef9; color: #173d37; text-decoration: none; }
.partner-list a:hover { border-color: #91a77a; background: #f0f3e8; }
.partner-monogram { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; background: #e9eddd; border-radius: 10px; font-size: 18px; font-weight: 600; }
.partner-list strong { display: block; font-size: 15px; }
.partner-list small { display: block; margin-top: 5px; font-size: 11px; color: #59695d; }
.partner-arrow { margin-left: auto; font-size: 20px; }
.referral-note { margin: 17px 0 0; font-size: 12px; color: #59695d; line-height: 1.6; }
.alert-details { border-top: 1px solid #dce2d7; }
.alert-details details { border-bottom: 1px solid #dce2d7; padding: 20px 0; }
.alert-details summary, .ios-help summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.alert-details p, .ios-help p { max-width: 720px; margin: 14px 0 0; color: #52645b; font-size: 14px; line-height: 1.7; }
.ios-help { padding: 18px; margin-top: 16px; border: 1px solid #dce2d7; border-radius: 10px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; padding: 28px 0 36px; font-size: 12px; color: #59695d; }
.site-footer > span { font-size: 17px; font-weight: 700; color: #173d37; letter-spacing: -.7px; }
.site-footer p { margin: 0; }
@media (max-width: 800px) {
  .landing-shell { width: calc(100% - 40px); }
  .hero { gap: 30px; }
  .landing-body h1 { font-size: 42px; letter-spacing: -1.8px; }
  .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-header { padding: 22px 0; }
  .brand { font-size: 23px; }
  .header-note { font-size: 11px; }
  .hero { grid-template-columns: 1fr; padding: 38px 0 34px; }
  .landing-eyebrow { margin-bottom: 18px; font-size: 10px; }
  .landing-body h1 { font-size: clamp(36px, 10.5vw, 48px); letter-spacing: -1.8px; }
  .hero-intro { margin: 20px 0 24px; font-size: 16px; line-height: 1.6; }
  .hero-visual { display: none; }
  .partner-heading { display: block; }
  .partner-heading > p { margin-top: 12px; }
  .partner-heading h2 { font-size: 25px; }
  .partner-list { grid-template-columns: 1fr; }
  .partner-list a { min-height: 78px; padding: 15px; }
  .partner-section { padding: 28px 0; }
  .site-footer { padding-bottom: 28px; }
}

.marketing-choice { display:flex; align-items:flex-start; gap:10px; margin:0 0 16px; font-weight:400; color:#52645b; font-size:13px; line-height:1.6; }
.marketing-choice input { width:20px; height:20px; flex:none; margin-top:2px; accent-color:#143d37; }
.ops-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.ops-grid label { font-size:13px; }
.ops-grid input, .ops-grid select, #send select { display:block; width:100%; margin-top:8px; padding:10px; border:1px solid #bdcec4; background:white; border-radius:8px; color:#173d37; font:inherit; }
.ops-preview { padding:16px; background:#f3f6f2; border:1px solid #dce8e1; border-radius:10px; line-height:1.7; white-space:pre-wrap; }
.ops-groups { margin:20px 0; } .ops-groups pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; background:#f3f6f2; padding:16px; }
.ops-jobs { display:grid; gap:10px; } .ops-jobs p { margin:0; padding:12px; border:1px solid #dce8e1; border-radius:8px; line-height:1.6; }
#send { max-width:100%; }
.offer-card { max-width:720px; margin:48px auto; padding:36px; border:1px solid #dce8e1; border-radius:20px; background:#fff; }
.offer-card .primary-link { display:inline-block; margin:16px 0; padding:15px 22px; background:#143d37; color:white; border-radius:10px; text-decoration:none; font-weight:650; }
.offer-card h1 { font-size:36px; } .offer-card p { line-height:1.7; color:#52645b; } .offer-card a { color:#173d37; } .offer-card .primary-link { color:white; }
@media(max-width:700px){ .ops-grid { grid-template-columns:1fr; } .offer-card{margin:20px;padding:24px;} .offer-card h1{font-size:30px;} }

/* Branded invitation; browser permission remains controlled by the browser. */
.alert-invitation { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid #ccdcd3; border-radius: 24px; padding: clamp(24px, 5vw, 36px); color: #173d37; background: #fff; box-shadow: 0 24px 90px #143d3733; }
.alert-invitation::backdrop { background: #102f2bcc; }
.invitation-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.invitation-brand { font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.invitation-close { width: 44px; min-width: 44px; height: 44px; padding: 0; font-size: 26px; background: #eef3ef; color: #173d37; border-radius: 50%; }
.alert-invitation h2 { margin: 20px 0 12px; font-size: clamp(24px, 5vw, 32px); line-height: 1.2; letter-spacing: -.03em; }
.alert-invitation p { line-height: 1.6; }
.invitation-note, .invitation-manage { font-size: 13px; color: #526a61; }
.invitation-later { margin-top: 14px; min-height: 48px; }
.alert-invitation .marketing-choice { margin: 22px 0 18px; font-size: 14px; }
.alert-invitation .status { font-size: 14px; }
.alert-invitation [hidden] { display: none !important; }
@media (max-width: 420px) { .alert-invitation { padding: 24px 20px; border-radius: 20px; } }

/* Challenger: the same voluntary consent and browser permission flow, less visual competition. */
.variant-challenger .hero { grid-template-columns: 1fr; max-width: 850px; margin-inline: auto; }
.variant-challenger .hero-visual { display: none; }
.variant-challenger .hero-copy { max-width: 720px; }
.variant-challenger .hero h1 { font-size: clamp(42px, 7vw, 72px); }
.variant-challenger .alert-invitation { width: min(480px, calc(100vw - 32px)); }
.variant-challenger .alert-invitation h2 { font-size: clamp(24px, 5vw, 29px); }
.variant-challenger #enable:disabled { opacity: .55; cursor: not-allowed; }
.variant-challenger .alert-invitation .marketing-choice { padding: 14px; border: 1px solid #cddbd3; border-radius: 12px; background: #f5f8f5; }
