[hidden] { display: none !important; }
.agent-page { background: var(--cream); color: var(--forest); }
.agent-page button, .agent-page input, .agent-page select { font: inherit; }
.agent-page button { cursor: pointer; }
.agent-page button:disabled { cursor: progress; opacity: .65; }
.workspace { padding-block: clamp(28px,5vw,72px); }
.headline h1, #launch-title { font: 500 clamp(3.2rem,7vw,6.6rem)/1 Fredoka,sans-serif; letter-spacing: -.055em; margin: 8px 0 24px; }
.work-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(260px,1fr); gap: clamp(14px,2vw,24px); align-items: start; }
.card,.scout-card { border-radius: 24px; padding: clamp(20px,3vw,36px); }
.card { background: #fffbee; border: 1px solid #d6ceba; min-width: 0; }
.card h2,.scout-card h2,legend { font: 550 1.65rem/1.15 Fredoka,sans-serif; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend { margin-bottom: 14px; }
.mode-list { display: flex; gap: 8px; flex-wrap: wrap; }
.mode-list label { padding: 10px 12px; display: flex; align-items:center; gap:6px; border:1px solid #c3c6ae; border-radius:12px; cursor:pointer; }
.mode-list label:has(:checked) { color: #fff9df; background: var(--forest); border-color:var(--forest); }
.mode-list input { accent-color:#c18e36; width:14px; height:14px; }
.mode-list .unavailable { cursor:default; color:#666b60; background:#f2f0e5; }
.mode-list small { font-size:.74rem; }
.agent-page fieldset > label, .split label, #matches-wrap label { display:block; margin-bottom:6px; font-size:.91rem; font-weight:650; }
.agent-page input:not([type=radio]), .agent-page select { background:#fffdf5; color:var(--forest); border:1px solid #a7ad97; border-radius:12px; padding:12px; width:100%; min-height:46px; }
.split { display:grid; grid-template-columns:1.3fr 1fr; gap:12px; margin-top:18px; }
#matches-wrap { margin-top:15px; }
.hint,.desk-note,#launch-rule { line-height:1.55; color:#4d594a; }
.hint { font-size:.9rem; margin-top:8px; }
.address,.agent-row,.alert-row,#launch-rule { overflow-wrap:anywhere; }
.action,.back,#show-alerts,.small-action { border:0; border-radius:99px; font-weight:650; padding:11px 20px; }
.action { background:var(--forest); color:var(--cream); }
.action:hover { background:#344e3b; }
.message:empty { display:none; }
.message { margin-bottom:14px; color:#813d22; }
.scout-card { color:var(--cream); background:var(--forest); }
.scout-card img { display:block; margin-bottom:15px; }
.scout-card p { margin-top:12px; max-width:32ch; line-height:1.55; color:#e1e8cd; }
.desk-head,.agent-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.desk-note { margin:0 0 20px; }
.agent-row,.alert-row { padding:18px 0; border-bottom:1px solid #d6d2bf; }
.agent-row:last-child,.alert-row:last-child { padding-bottom:0; border-bottom:0; }
.agent-row h3,.alert-row h3 { font-size:1.05rem; }
.sub { color:#52604d; font-size:.87rem; margin-top:6px; line-height:1.5; }
.small-action { padding:7px 13px; font-size:.83rem; color:var(--forest); background:#e4ead6; }
.inbox { background:#e5ebd7; }
.alert-row a { display:inline-block; margin-top:6px; text-decoration:underline; }
#launch { inset:0; position:fixed; margin:0; border:0; width:100%; max-width:none; height:100%; max-height:none; color:var(--forest);
  background:radial-gradient(ellipse 100% 45% at 80% 118%, #87a87a 99%, transparent 100%),radial-gradient(ellipse 85% 42% at 13% 112%,#b7cb9e 99%,transparent 100%),#fae6ad; }
body:has(#launch[open]) { overflow:hidden; }
.launch-content { display:flex; min-height:100%; flex-direction:column; align-items:center; justify-content:center; gap:clamp(12px,3vh,28px); padding:70px 18px 36px; text-align:center; }
.back { position:absolute; left:20px; top:18px; background:#fff8e8; color:var(--forest); }
#launch-title { margin:9px 0 12px; }
#launch-scout { position:relative; background:transparent; border:0; width:min(55vw,38vh,295px); padding:0; border-radius:45%; touch-action:manipulation; }
#launch-scout:disabled { opacity:1; }
#launch-scout img { width:100%; display:block; transform-origin:50% 88%; }
.scout-signal { position:absolute; inset:-12.5%; width:125%; height:125%; overflow:visible; pointer-events:none; }
.antenna-waves, .launch-sparks { opacity:0; transform-origin:100px 100px; }
#launch-scout:disabled .antenna-waves { opacity:1; }
@media (prefers-reduced-motion:no-preference) {
  #launch-scout img { animation:scout-idle 2s ease-in-out infinite; }
  #launch-scout:disabled img { animation:scout-hop 700ms ease-in-out; }
  #launch-scout:disabled .launch-sparks { animation:scout-sparks 500ms 100ms ease-out both; }
  #launch-scout:disabled .antenna-waves { animation:scout-broadcast 1.1s 260ms ease-out infinite both; }
  @keyframes scout-idle { 50% { transform:translateY(-6px) rotate(-2deg); } }
  @keyframes scout-hop {
    15% { transform:scale(1.13,.83) rotate(-5deg); }
    38% { transform:translateY(-15%) scale(.94,1.07) rotate(8deg); }
    55% { transform:translateY(-13%) rotate(-4deg); }
    74% { transform:scale(1.08,.91) rotate(2deg); }
    88% { transform:translateY(-2%) scale(.98,1.02); }
  }
  @keyframes scout-sparks {
    0% { opacity:0; transform:scale(.68); }
    30% { opacity:1; }
    100% { opacity:0; transform:scale(1.15); }
  }
  @keyframes scout-broadcast {
    0% { opacity:0; transform:translateY(5px); }
    30% { opacity:1; }
    100% { opacity:0; transform:translateY(-8px); }
  }
}
#launch-status { max-width:480px; min-height:1.5em; }
#toast { position:fixed; bottom:18px; right:18px; max-width:min(360px,calc(100% - 36px)); z-index:6; background:var(--forest); color:var(--cream); padding:18px; border-radius:18px; box-shadow:0 6px 30px #17291e30; }
#toast span { display:block; margin:5px 0 10px; overflow-wrap:anywhere; }
#show-alerts { background:var(--butter); color:var(--forest); padding:7px 12px; }
@media(max-width:720px){.work-grid{grid-template-columns:1fr}.scout-card img{width:78px;height:78px}.desk-head{flex-wrap:wrap;margin-bottom:14px}.desk-head h1{margin-bottom:0}.workspace{padding-top:24px}.mode-list{display:grid}.split{grid-template-columns:1fr 1fr}.agent-page .nav-action{font-size:.88rem}}
.trial-count { font-weight: 650; color: #3d5c42; margin-bottom: 14px; }
#view-access { margin-bottom: 18px; }
#paid-access { width: min(470px, calc(100% - 32px)); margin: auto; border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 36px); color: var(--forest); background: var(--cream); }
#paid-access::backdrop { background: rgb(24 46 37 / .55); }
#access-title { margin: 8px 0 14px; font: 550 2.4rem/1.05 Fredoka,sans-serif; }
#paid-access p { line-height: 1.5; }
.billing-note { background: #e5ebd7; padding: 12px 15px; border-radius: 12px; margin: 16px 0; }
#paid-access select { margin-block: 5px 12px; }
#wallet-status:not(:empty) { margin: 0 0 12px; }
.access-actions { display: flex; flex-wrap: wrap; gap: 8px; }
