:root {
  --bg:#0b0b0d; --panel:#151519; --panel2:#1c1c22; --line:#2a2a31;
  --text:#f7f7f8; --muted:#9d9da8; --soft:#c8c8d0; --accent:#f3d250;
  --danger:#ff6b78; --good:#74d99f; --info:#7cb8ff; --radius:18px;
  font-family: Inter, Pretendard, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}
*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}
a{color:inherit;text-decoration:none}
body{min-height:100vh}.shell{max-width:1020px;margin:0 auto;padding:0 18px 96px}.topbar{position:sticky;top:0;z-index:20;background:rgba(11,11,13,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.05)}
.topbar-inner{max-width:1020px;margin:auto;height:70px;padding:0 18px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:10px;align-items:center;font-weight:900;font-size:20px;letter-spacing:-.4px}.brandmark{width:30px;height:30px;border-radius:10px;background:var(--accent);color:#111;display:grid;place-items:center;font-weight:1000}.nav{display:flex;gap:8px}.iconbtn,.btn{border:0;border-radius:13px;cursor:pointer}.iconbtn{background:transparent;color:var(--text);padding:10px 12px}.btn{background:#28282f;color:var(--text);padding:13px 16px;font-weight:800}.btn.primary{background:var(--accent);color:#16130a}.btn.ghost{border:1px solid var(--line);background:transparent}.btn.danger{background:#3a1b20;color:#ffc9cf}.btn.full{width:100%}.hero{padding:42px 0 24px}.eyebrow{color:var(--accent);font-weight:900;font-size:13px;letter-spacing:.08em;text-transform:uppercase}.hero h1{font-size:clamp(32px,7vw,58px);line-height:1.06;letter-spacing:-2px;margin:12px 0 14px;max-width:780px}.hero p{color:var(--soft);font-size:17px;line-height:1.7;max-width:680px}.searchbox{margin-top:26px;background:#fff;border-radius:18px;padding:5px;display:flex;box-shadow:0 18px 60px rgba(0,0,0,.28)}.searchbox input{flex:1;border:0;background:transparent;color:#151515;padding:15px 14px;outline:0;font-size:16px}.searchbox button{border:0;background:#111;color:#fff;border-radius:14px;padding:0 18px;font-weight:900}.chips{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 0}.chip{border:1px solid var(--line);background:var(--panel);color:var(--soft);border-radius:999px;padding:9px 12px;font-weight:800;font-size:14px;cursor:pointer}.chip.active{background:var(--text);color:#111;border-color:var(--text)}
.section{margin-top:34px}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:14px}.section h2{font-size:22px;margin:0;letter-spacing:-.6px}.section-sub{color:var(--muted);font-size:13px;margin-top:6px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.card{background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);border-radius:var(--radius);padding:18px}.card.click{cursor:pointer;transition:.16s transform,.16s border-color}.card.click:hover{transform:translateY(-2px);border-color:#44444d}.tag{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 9px;background:#24242a;color:var(--soft);font-size:12px;font-weight:900}.tag.refund{color:#9cc9ff}.tag.surcharge{color:#ffd982}.tag.contract{color:#96e6b7}.business-name{font-size:19px;font-weight:900;margin:13px 0 6px}.muted{color:var(--muted)}.metric{font-size:28px;font-weight:950;letter-spacing:-1px;margin:12px 0 3px}.metric .delta{color:var(--danger)}.micro{font-size:12px;color:var(--muted);line-height:1.5}.feed{display:grid;gap:12px}.feed-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px}.feed-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.feed-text{font-size:16px;line-height:1.68;margin:15px 0}.feed-metrics{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.pill{background:#232329;border-radius:12px;padding:10px 12px}.pill strong{display:block;font-size:17px}.feed-actions{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:13px;margin-top:14px}.actions{display:flex;gap:6px}.smallbtn{background:transparent;color:var(--muted);border:0;padding:8px;cursor:pointer}.notice{border:1px solid #3b3520;background:#1d1a10;border-radius:15px;padding:14px 15px;color:#e8db9b;font-size:13px;line-height:1.55;margin:16px 0}.notice.danger{border-color:#54262d;background:#1d1114;color:#ffb3bb}.notice.info{border-color:#243b56;background:#101824;color:#afd0ff}.pagehead{padding:32px 0 14px}.pagehead h1{margin:0 0 8px;font-size:32px;letter-spacing:-1px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.stat{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:14px}.stat strong{font-size:21px;display:block;margin-bottom:4px}.tabs{display:flex;gap:7px;overflow-x:auto;padding:4px 0 14px}.tab{white-space:nowrap;border:1px solid var(--line);background:var(--panel);color:var(--soft);border-radius:12px;padding:10px 12px;font-weight:800;cursor:pointer}.tab.active{background:var(--text);color:#111}.form{max-width:700px}.field{margin:18px 0}.field label{display:block;font-weight:900;margin-bottom:8px}.field .help{color:var(--muted);font-size:12px;margin:5px 0 0;line-height:1.5}.control{width:100%;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:13px;padding:14px;outline:0}.control:focus{border-color:#5a5a66}.split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.choice{border:1px solid var(--line);background:var(--panel);border-radius:13px;padding:13px;cursor:pointer}.choice input{margin-right:8px}.progress{height:5px;background:#202026;border-radius:999px;overflow:hidden;margin:10px 0 20px}.progress>div{height:100%;background:var(--accent);transition:.2s width}.resultbox{border:1px solid var(--line);border-radius:18px;padding:20px;background:var(--panel)}.recover{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:24px;letter-spacing:2px;background:#09090b;border:1px dashed #595964;border-radius:14px;padding:18px;text-align:center;margin:14px 0}.footer{border-top:1px solid var(--line);margin-top:55px;padding:24px 0;color:var(--muted);font-size:12px;line-height:1.7}.footer-links{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:8px}.empty{text-align:center;padding:44px 18px;border:1px dashed var(--line);border-radius:18px;color:var(--muted)}.devbadge{position:fixed;right:12px;bottom:12px;background:#5c2b00;color:#ffd5ad;border:1px solid #96511d;padding:8px 10px;border-radius:10px;font-size:11px;font-weight:900;z-index:40}.highlight{color:var(--accent)}.danger-text{color:var(--danger)}.good-text{color:var(--good)}
@media(max-width:760px){.nav .desktop{display:none}.grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}.hero{padding-top:30px}.hero h1{letter-spacing:-1.4px}.split{grid-template-columns:1fr}.choice-grid{grid-template-columns:1fr 1fr}.shell{padding-bottom:88px}.topbar-inner{height:62px}.card{padding:16px}}
@media(min-width:761px){.mobile-only{display:none}}
.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.owner-actions{display:flex;justify-content:flex-end;gap:8px;margin:-5px 0 18px}.attest{display:flex;align-items:flex-start;gap:9px;margin:16px 0;color:var(--soft);font-size:14px;line-height:1.5}.attest input{margin-top:3px}.business-response{margin-top:14px;padding:14px;border-radius:14px;border:1px solid #30523f;background:#112019;line-height:1.6}.response-head{font-size:12px;font-weight:900;color:var(--good);margin-bottom:6px}.status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 7px;font-size:10px;font-weight:900;background:#24242a;color:var(--muted)}.status-published{color:var(--good)}.status-held,.status-disputed{color:#ffd982}.status-hidden,.status-removed{color:var(--danger)}.policy-list{line-height:1.9}.admin-grid{display:grid;gap:22px;margin-bottom:24px}.admin-grid section{display:grid;gap:10px}.admin-grid h2{font-size:20px;margin:0}.admin-item{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:16px}.admin-title{font-weight:900;font-size:14px;word-break:break-all}.admin-body{color:var(--soft);font-size:14px;line-height:1.6;word-break:break-word}.empty.compact{padding:20px}.form details.card{margin:14px 0}.form details summary{cursor:pointer}.form details[open] summary{margin-bottom:10px}

/* Stage 4: public-ready mobile UX */
html{scroll-behavior:smooth}.brand{border:0;background:transparent;color:var(--text);padding:6px;cursor:pointer}.btn,.iconbtn,.smallbtn,.tab,.chip{min-height:44px}.btn:focus-visible,.iconbtn:focus-visible,.smallbtn:focus-visible,.tab:focus-visible,.chip:focus-visible,.control:focus-visible,.business-link:focus-visible{outline:3px solid rgba(243,210,80,.45);outline-offset:2px}.hero h1,.pagehead h1,.business-name,.feed-text,.policy-card,.admin-body{overflow-wrap:anywhere}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.trust-strip{display:flex;gap:12px;align-items:center;border:1px solid #293447;background:#111a29;border-radius:15px;padding:14px 16px;color:#c9dcfa}.trust-strip span{font-size:13px;line-height:1.5}.empty{display:flex;flex-direction:column;align-items:center;gap:10px}.empty strong{color:var(--text);font-size:18px}.empty span{max-width:420px;line-height:1.6}.business-link{max-width:100%;border:0;background:transparent;color:var(--text);font-weight:900;text-align:left;padding:6px 3px;cursor:pointer;overflow-wrap:anywhere}.feed-identity{min-width:0;display:flex;align-items:center;gap:4px;flex-wrap:wrap}.nowrap{white-space:nowrap}.feed-text{white-space:pre-wrap}.pill{min-width:112px;flex:1}.pill strong{font-variant-numeric:tabular-nums}.smallbtn{border-radius:10px;padding:9px 11px}.footer-title{color:var(--text);font-weight:900;font-size:16px;margin-bottom:10px}.footer-links a{min-height:32px;display:inline-flex;align-items:center}.policy-card{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:clamp(18px,4vw,28px);line-height:1.75}.policy-card h2{margin:28px 0 8px;font-size:19px}.policy-card h2:first-child{margin-top:0}.policy-card p,.policy-card li{color:var(--soft)}.policy-card ul{padding-left:20px}.mobile-nav{position:fixed;z-index:30;left:0;right:0;bottom:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);gap:6px;background:rgba(15,15,18,.96);backdrop-filter:blur(18px);border-top:1px solid var(--line)}.mobile-nav button{height:46px;border:0;border-radius:12px;background:transparent;color:var(--soft);font-weight:800}.mobile-nav .mobile-write{background:var(--accent);color:#16130a}.report-dialog{width:min(560px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow:auto;border:1px solid var(--line);border-radius:20px;background:var(--panel);color:var(--text);padding:20px}.report-dialog::backdrop{background:rgba(0,0,0,.72)}.dialog-head,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-head h2{margin:0}.dialog-actions{justify-content:flex-end}.toast{position:fixed;z-index:50;left:50%;bottom:90px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#f7f7f8;color:#111;border-radius:12px;padding:12px 16px;font-weight:800;transition:.18s}.toast.show{opacity:1;transform:translate(-50%,0)}.skeleton{height:32px;border-radius:10px;background:linear-gradient(90deg,#18181d,#25252c,#18181d);background-size:200% 100%;animation:pulse 1.1s infinite}.skeleton.wide{width:min(480px,90%)}.skeleton.short{width:180px;height:16px;margin-top:14px}.skeleton-card{height:190px;border-radius:18px;background:#151519;border:1px solid var(--line)}@keyframes pulse{to{background-position:-200% 0}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.control{min-height:50px;font-size:16px}.control::placeholder{color:#747480}.form{padding-bottom:24px}.attest{min-height:48px;padding:12px;border:1px solid var(--line);border-radius:13px}.attest input{width:20px;height:20px}.recover{overflow-wrap:anywhere;word-break:break-all;font-size:clamp(15px,4.5vw,24px)}
@media(max-width:760px){body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}.shell{padding-left:16px;padding-right:16px;padding-bottom:70px}.topbar-inner{padding:0 14px}.topbar .nav .btn.primary{padding:11px 13px}.hero{padding-top:26px}.hero h1{font-size:clamp(31px,9vw,42px);line-height:1.12}.hero p{font-size:16px}.searchbox{margin-top:20px}.searchbox input{min-width:0}.searchbox button{padding:0 16px}.section-head{align-items:center}.section-head>.btn{padding:10px 12px}.feed-card{padding:16px}.feed-top{align-items:flex-start}.feed-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pill{min-width:0}.pill:last-child:nth-child(3){grid-column:1/-1}.feed-actions{align-items:center}.pagehead{padding-top:26px}.pagehead h1{font-size:29px;line-height:1.2}.toolbar>.btn{flex:1 1 150px}.form .btn.full{min-height:52px}.form-cta{position:sticky;bottom:calc(64px + env(safe-area-inset-bottom));z-index:10;padding:10px 0;background:linear-gradient(transparent,var(--bg) 24%)}.report-dialog{max-height:calc(100dvh - 28px);overflow:auto}.footer{padding-bottom:30px}.admin-title{font-size:13px}.admin-item{padding:14px}}
@media(max-width:380px){.shell{padding-left:13px;padding-right:13px}.topbar-inner{padding:0 11px}.brand{font-size:18px}.topbar .nav .btn.primary{font-size:13px}.hero h1{font-size:30px}.searchbox input{padding-left:10px}.searchbox button{padding:0 13px}.feed-metrics{grid-template-columns:1fr}.pill:last-child:nth-child(3){grid-column:auto}.stats{grid-template-columns:1fr}.actions{gap:2px}}

/* Stage 4B: touch targets and keyboard-safe primary form actions */
.footer-links a{min-height:44px}
@media(max-width:760px){
  .form>.btn:last-child{
    position:sticky;
    bottom:calc(64px + env(safe-area-inset-bottom));
    z-index:10;
    width:100%;
    min-height:52px;
    margin-top:10px;
    box-shadow:0 10px 28px rgba(0,0,0,.35);
  }
}


/* Stage 4E: Korean readability + clear click affordances */
button,
a,
[onclick],
.click,
.business-link {
  cursor: pointer;
}

/* Keep Korean words and phrases intact; wrap at semantic spaces first. */
.hero h1,
.hero p,
.pagehead h1,
.pagehead .muted,
.section-head,
.section-sub,
.trust-strip,
.notice,
.empty,
.policy-card,
.footer,
.card:not(.feed-card),
.business-name {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Headings should balance across lines instead of splitting syllables/words awkwardly. */
.hero h1,
.pagehead h1,
.section h2,
.policy-card h2 {
  text-wrap: balance;
}

/* Body copy should form readable paragraphs. */
.hero p,
.pagehead .muted,
.policy-card p,
.policy-card li,
.notice,
.footer {
  text-wrap: pretty;
}

/* User-written content keeps intentional line breaks but avoids horizontal overflow. */
.feed-text,
.business-response,
.admin-body {
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Bottom navigation is an obvious interactive control on pointer devices. */
.mobile-nav button:hover,
.mobile-nav button:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.mobile-nav .mobile-write:hover,
.mobile-nav .mobile-write:focus-visible {
  color: #16130a;
  background: #ffe36f;
}


/* Stage 4F P0 UX hardening */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
input[type="number"] { -moz-appearance:textfield; appearance:textfield; }

.form-cta {
  position:sticky;
  bottom:16px;
  z-index:12;
  margin-top:14px;
  padding:10px 0;
  background:linear-gradient(transparent,var(--bg) 28%);
}
.business-tools {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:8px 0 18px;
}
.business-suggestions {
  display:grid;
  gap:8px;
  margin:10px 0 14px;
}
.suggestion {
  width:100%;
  text-align:left;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--text);
  border-radius:12px;
  padding:12px 14px;
  cursor:pointer;
}
.suggestion:hover { border-color:#555562; background:var(--panel2); }
.suggestion span { color:var(--muted); font-size:12px; }
.business-hint { margin:8px 0 12px; }
.blocked-mark {
  background:#5a2028;
  color:#ffd8dd;
  border-radius:5px;
  padding:1px 5px;
}
@media(min-width:761px){
  .mobile-nav.mobile-only { display:none !important; }
}
@media(max-width:760px){
  .form-cta { bottom:calc(64px + env(safe-area-inset-bottom)); }
  .business-tools { align-items:stretch; flex-direction:column; }
  .business-tools .btn { width:100%; }
  .suggestion { align-items:flex-start; flex-direction:column; }
}


/* Stage 4G: formatted numeric inputs + explicit validation */
.money-input{font-variant-numeric:tabular-nums;letter-spacing:.01em}
.control.invalid{border-color:var(--danger);box-shadow:0 0 0 2px rgba(255,107,120,.18)}
.field-error{margin-top:7px;color:#ff9ca6;font-size:12px;line-height:1.45;font-weight:700}
.attest-error{margin-top:-10px;margin-bottom:12px}


/* Stage 4H: help center + report guidance */
.help-fab{
  position:fixed;
  z-index:29;
  right:16px;
  top:88px;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#202027;
  color:var(--text);
  font-weight:950;
  font-size:20px;
  box-shadow:0 8px 28px rgba(0,0,0,.28);
  cursor:pointer;
}
.help-dialog{
  width:min(560px,calc(100% - 28px));
  max-height:calc(100dvh - 32px);
  overflow:auto;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--panel);
  color:var(--text);
  padding:20px;
}
.help-dialog::backdrop{background:rgba(0,0,0,.72)}
.help-sections{display:grid;gap:10px;margin-top:14px}
.help-sections details{border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:var(--panel2)}
.help-sections summary{cursor:pointer;font-weight:900}
.help-sections p,.help-sections li{color:var(--soft);line-height:1.65}
.help-example{margin-top:10px;padding:10px 12px;border-radius:12px;background:#111116;border:1px solid #292932}
.report-caution{display:grid;gap:5px;padding:12px 14px;border-radius:14px;border:1px solid #3b3520;background:#1d1a10;color:#e8db9b;font-size:12px;line-height:1.55}
.report-caution strong{color:#ffe58d}
@media(max-width:760px){
  .help-fab{
    top:auto;
    right:12px;
    bottom:calc(76px + env(safe-area-inset-bottom));
    width:40px;
    height:40px;
  }
}


/* Stage 4I: writer acknowledgement */
.writer-notice{
  margin:18px 0 12px;
  padding:15px 16px;
  border-radius:15px;
  border:1px solid #55431b;
  background:#1d180d;
  color:#eadca1;
  line-height:1.6;
  font-size:13px;
}
.writer-notice-title{
  color:#ffe58d;
  font-weight:950;
  margin-bottom:8px;
}
.writer-notice ul{
  margin:0;
  padding-left:18px;
}
.writer-notice li+li{margin-top:5px}
.writer-help{
  margin-top:10px;
  border:1px solid #62512a;
  color:#ffe58d;
}


/* Stage 4J: optional amount disclosure */
.amount-privacy{
  display:flex;
  align-items:flex-start;
  gap:9px;
  min-height:48px;
  margin:8px 0 0;
  padding:12px 14px;
  border:1px solid #3e3a2a;
  border-radius:13px;
  background:#17150f;
  color:#f0df9a;
  font-weight:850;
  line-height:1.5;
}
.amount-privacy input{width:20px;height:20px;margin-top:1px}
.amount-privacy-note{margin-top:7px!important;margin-bottom:16px!important}
.money-input:disabled{
  opacity:.48;
  cursor:not-allowed;
  background:#111116;
  color:#777783;
}


/* Stage 4K: clearer private amount display */
.private-value{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#d7d7df;
  font-size:15px;
  font-weight:850;
  line-height:1.35;
  word-break:keep-all;
}


/* Stage 4L: scalable browse UI */
.feed-card{border-color:#3c3c46;box-shadow:0 7px 22px rgba(0,0,0,.16)}
.compact-card{position:relative;padding:14px 16px 12px;border-color:#454550;overflow:hidden}
.compact-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#777}
.compact-card.type-refund::before{background:#7cb8ff}.compact-card.type-surcharge::before{background:#e9bd58}.compact-card.type-contract::before{background:#74d99f}
.compact-top,.compact-footer,.detail-meta{display:flex;justify-content:space-between;align-items:center;gap:10px}
.compact-business{display:flex;align-items:center;gap:6px;margin-top:5px;min-width:0}
.compact-label{color:var(--muted);font-size:11px;font-weight:800}
.compact-business .business-link{min-height:32px;padding:3px 2px;font-size:14px}
.compact-title{display:block;width:100%;border:0;background:transparent;color:var(--text);text-align:left;font-size:17px;font-weight:950;line-height:1.35;margin:4px 0 7px;padding:0;word-break:keep-all}
.compact-title:hover{text-decoration:underline}
.compact-metrics{color:var(--soft);font-size:12px;line-height:1.45;padding:7px 0 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compact-footer{border-top:1px solid #303038;padding-top:7px}
.compact-footer .smallbtn{min-height:34px;padding:5px 8px}
.detail-card{border-color:#4c4c57;padding:22px}
.detail-business{display:flex;gap:8px;align-items:center;margin-top:15px;color:var(--muted);font-size:12px}
.detail-business .business-link{font-size:16px}
.detail-title{font-size:28px;line-height:1.25;margin:8px 0 14px;word-break:keep-all}
.detail-section-label{font-size:12px;color:var(--muted);font-weight:900;margin-top:18px}
.detail-text{font-size:17px}
.browse-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:4px 0 14px}
.browse-selects{display:flex;gap:7px;flex-wrap:wrap}
.compact-control{width:auto;min-height:42px;padding:9px 30px 9px 11px;font-size:13px}
.layout-switch{display:flex;gap:5px;flex-shrink:0}
.active-view{background:var(--text)!important;color:#111!important}
.browse-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.browse-list{gap:10px}
.pager{display:flex;justify-content:center;align-items:center;gap:12px;margin:20px 0 8px;color:var(--soft);font-size:13px;font-weight:800}
.pager .btn:disabled{opacity:.35;cursor:not-allowed}
@media(max-width:760px){
  .browse-toolbar{align-items:stretch;flex-direction:column}
  .browse-selects{display:grid;grid-template-columns:1fr 1fr}
  .compact-control{width:100%}
  .layout-switch{justify-content:flex-end}
  .browse-grid{grid-template-columns:1fr}
  .compact-card{padding:12px 14px 10px}
  .compact-title{font-size:16px}
  .compact-metrics{font-size:11.5px}
  .detail-card{padding:17px}
  .detail-title{font-size:23px}
}


/* Stage 4M: mobile two-column home and browse grids */
@media(max-width:760px){
  /* Keep generic .grid single-column for forms/type pickers; only content browsing becomes 2-column. */
  .home-business-grid,
  .browse-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .home-business-grid .card{
    min-width:0;
    padding:12px;
  }
  .home-business-grid .business-name{
    margin:9px 0 5px;
    font-size:16px;
    line-height:1.3;
  }
  .home-business-grid .metric{
    margin:8px 0 3px;
    font-size:21px;
    line-height:1.25;
  }
  .home-business-grid .micro{
    font-size:10.5px;
  }

  .browse-grid .compact-card{
    min-width:0;
    padding:11px 10px 9px;
  }
  .browse-grid .compact-top,
  .browse-grid .compact-footer{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }
  .browse-grid .compact-business{
    margin-top:3px;
    gap:4px;
  }
  .browse-grid .compact-business .business-link{
    min-width:0;
    min-height:28px;
    padding:2px 1px;
    font-size:12.5px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .browse-grid .compact-label{
    font-size:10px;
  }
  .browse-grid .compact-title{
    margin:3px 0 6px;
    font-size:14px;
    line-height:1.35;
  }
  .browse-grid .compact-metrics{
    font-size:10.5px;
    line-height:1.45;
  }
  .browse-grid .compact-footer .micro{
    font-size:10px;
  }
  .browse-grid .compact-footer .actions{
    width:100%;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:2px;
  }
  .browse-grid .compact-footer .smallbtn{
    min-width:0;
    min-height:30px;
    padding:4px 1px;
    font-size:10.5px;
  }
}

@media(max-width:380px){
  .home-business-grid,
  .browse-grid{
    gap:6px;
  }
  .home-business-grid .card{
    padding:10px;
  }
  .home-business-grid .business-name{
    font-size:15px;
  }
  .home-business-grid .metric{
    font-size:19px;
  }
  .browse-grid .compact-card{
    padding:10px 8px 8px;
  }
  .browse-grid .compact-title{
    font-size:13px;
  }
}


/* Final UX: clear operational process guides */
.process-guide{
  margin:16px 0 20px;
  padding:16px 18px;
  border:1px solid #3d4658;
  border-radius:16px;
  background:#111722;
  color:var(--soft);
  line-height:1.62;
}
.process-title{
  margin-bottom:9px;
  color:var(--text);
  font-weight:950;
  font-size:15px;
}
.process-guide ol{
  margin:0;
  padding-left:20px;
}
.process-guide li+li{margin-top:6px}
.process-guide strong{color:#f2dd82}
.process-note{
  margin-top:11px;
  padding-top:10px;
  border-top:1px solid #30394a;
  color:#c7d3e8;
  font-size:12.5px;
}
@media(max-width:760px){
  .process-guide{padding:14px 15px}
}


/* Final mobile form behavior: do not let submit controls cover fields, errors, Turnstile, or guidance. */
@media(max-width:760px){
  .form-cta{
    position:static !important;
    bottom:auto !important;
    z-index:auto !important;
    width:100%;
    margin-top:16px;
    padding-top:0;
    padding-bottom:0;
    background:none !important;
    box-shadow:none !important;
  }
  .form>.btn:last-child{
    position:static !important;
    bottom:auto !important;
    z-index:auto !important;
    width:100%;
    min-height:54px;
    margin-top:16px;
    box-shadow:none !important;
  }
  .form>.btn.primary:last-child{
    background:var(--accent) !important;
    color:#16130a !important;
  }
  .form>.btn.danger:last-child{
    background:#3a1b20 !important;
    color:#ffc9cf !important;
  }
  .form-cta .btn{
    width:100%;
    min-height:54px;
  }
}

.footer-view-switch{display:none;margin:18px 0}
.footer-view-btn{min-width:110px}
@media(max-width:760px){.footer-view-switch{display:flex}}
html.force-desktop .footer-view-switch{display:flex}


/* Launch discovery: large, color-coded experience type actions */
.tag.other{color:#d8b7ff}
.compact-card.type-other::before{background:#b78cff}
.home-type-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:22px 0 0;
}
.home-type-card{
  min-height:98px;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px 17px;
  color:var(--text);
  text-align:left;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:7px;
  transition:transform .16s ease,border-color .16s ease,filter .16s ease;
}
.home-type-card strong{font-size:20px;font-weight:950;letter-spacing:-.4px}
.home-type-card span{font-size:12px;font-weight:750;line-height:1.4;color:#e7e7ec}
.home-type-card.refund{background:linear-gradient(145deg,#16263b,#111a26);border-color:#315b88}
.home-type-card.surcharge{background:linear-gradient(145deg,#392d13,#221c10);border-color:#735b22}
.home-type-card.contract{background:linear-gradient(145deg,#163426,#10231a);border-color:#2e6d4c}
.home-type-card.other{background:linear-gradient(145deg,#30203f,#1d1527);border-color:#67458a}
.home-type-card:hover,.home-type-card:focus-visible{transform:translateY(-2px);filter:brightness(1.09);outline:none}
.home-type-card:focus-visible{box-shadow:0 0 0 3px rgba(255,255,255,.12)}
@media(max-width:760px){
  .home-type-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .home-type-card{min-height:92px;padding:14px}
  .home-type-card strong{font-size:19px}
  .home-type-card span{font-size:11.5px}
}


/* Mobile QA: visible submit actions and reliable tap feedback */
.btn:disabled,.smallbtn:disabled{
  opacity:.55;
  cursor:not-allowed;
}
@media(max-width:760px){
  .toolbar{gap:10px}
  .toolbar>.btn{min-height:50px}
  .dialog-actions .btn{min-height:48px}
  .report-dialog{padding-bottom:18px}
}
