:root{
  --bg:#f6f9fc;
  --card:#ffffff;
  --ink:#0f172a;
  --muted:#5f6b7a;
  --soft:#eef6ff;
  --soft2:#effdf8;
  --line:#dbe6f2;
  --primary:#155eef;
  --primary2:#0ea5a4;
  --orange:#f59e0b;
  --green:#10b981;
  --shadow:0 24px 70px rgba(17,24,39,.10);
  --shadow2:0 18px 42px rgba(21,94,239,.18);
  --radius:30px;
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--bg);-webkit-text-size-adjust:100%}
body{margin:0;min-height:100%;font-family:"Plus Jakarta Sans",Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ink);background:
  radial-gradient(circle at 12% 6%,rgba(21,94,239,.10),transparent 26%),
  radial-gradient(circle at 88% 0%,rgba(14,165,164,.11),transparent 30%),
  linear-gradient(180deg,#ffffff 0%,#f6f9fc 56%,#f7fbff 100%);}
a{color:inherit;text-decoration:none}.bg-glow{position:fixed;inset:0;pointer-events:none;background:linear-gradient(120deg,rgba(255,255,255,.78),transparent 44%);z-index:-2}.app-shell{width:100%;max-width:480px;margin:0 auto;padding:18px 16px 42px;position:relative}
.topbar{display:flex;justify-content:space-between;align-items:center;margin:8px 0 18px;gap:12px}.brand{display:inline-flex;align-items:center;gap:12px;font-weight:900;letter-spacing:-.05em;font-size:23px}.brand-mark{width:46px;height:46px;border-radius:18px;background:linear-gradient(135deg,var(--primary),var(--primary2));display:grid;place-items:center;color:#fff;box-shadow:0 16px 32px rgba(124,58,237,.24);font-size:18px;line-height:1;transform:rotate(45deg)}.brand-mark::first-letter{transform:rotate(-45deg)}.top-actions{display:flex;align-items:center;gap:8px}.tiny-link{font-size:12px;color:#155eef;font-weight:900;padding:9px 12px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.92);box-shadow:0 10px 28px rgba(17,24,39,.05)}
.hero-card{background:linear-gradient(180deg,#fff,#fbfdff);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:38px;padding:28px 24px 24px;margin-bottom:16px;position:relative;overflow:hidden}.hero-card::before{content:"";position:absolute;right:-90px;top:-90px;width:240px;height:240px;border-radius:50%;background:linear-gradient(135deg,rgba(21,94,239,.14),rgba(14,165,164,.14));filter:blur(2px)}.hero-card::after{content:"";position:absolute;left:22px;bottom:0;width:120px;height:5px;border-radius:999px;background:linear-gradient(90deg,var(--primary),var(--primary2));opacity:.9}.kicker{font-size:11px;text-transform:uppercase;letter-spacing:.22em;color:#0f766e;font-weight:900;margin-bottom:14px;position:relative;z-index:1}h1{font-size:42px;line-height:1.08;letter-spacing:-.012em;margin:0 0 14px;font-weight:900;position:relative;z-index:1}h2{font-size:21px;line-height:1.16;letter-spacing:-.02em;margin:0 0 14px;font-weight:900}.hero-card p,.muted{color:var(--muted);font-weight:700;margin:0;letter-spacing:-.025em}.hero-card p{font-size:17px;line-height:1.62;position:relative;z-index:1}.large-text{font-size:16px;line-height:1.75}
.panel{background:rgba(255,255,255,.95);backdrop-filter:blur(18px);border:1px solid var(--line);border-radius:var(--radius);padding:21px;box-shadow:0 18px 52px rgba(15,23,42,.06);margin-bottom:14px}.panel.compact{padding:16px}.panel.center{text-align:center}.create-panel{padding:24px}.success-panel{padding:31px 22px}.private-box{border-color:#cfe5ea;background:linear-gradient(180deg,#fff,#f7fbfc)}
label{display:block;font-weight:900;margin:0 0 10px;letter-spacing:-.035em;color:#1b1628}.field-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:22px 0 10px}.field-head label{margin:0}.field-head small{color:#688093;font-size:12px;font-weight:850;text-align:right}.input,.textarea{width:100%;border:1.6px solid #d7e2ee;border-radius:24px;background:#fff;color:var(--ink);outline:none;padding:18px 19px;font-family:"Plus Jakarta Sans",Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-weight:700;font-size:16px;letter-spacing:-.01em;box-shadow:inset 0 1px 0 rgba(255,255,255,.7);transition:.18s ease}.input:focus,.textarea:focus{border-color:var(--primary);box-shadow:0 0 0 5px rgba(124,58,237,.10), inset 0 1px 0 rgba(255,255,255,.7)}.input::placeholder,.textarea::placeholder{color:#98a6b5}.textarea{min-height:146px;resize:vertical;line-height:1.6}
.mode-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}.choice{border:1.6px solid var(--line);border-radius:24px;background:linear-gradient(180deg,#fff,#fbfdff);padding:16px 12px;display:flex;flex-direction:column;gap:6px;cursor:pointer;transition:.18s ease;min-height:108px;justify-content:center}.choice input{display:none}.choice span{font-weight:900;font-size:18px;letter-spacing:-.05em}.choice small{color:var(--muted);font-size:12px;font-weight:850;line-height:1.25}.choice:has(input:checked),.choice.selected{border-color:#155eef;box-shadow:0 0 0 4px rgba(21,94,239,.08),0 14px 36px rgba(21,94,239,.10);background:linear-gradient(180deg,#fff,#f7fbff)}
.btn{border:0;border-radius:24px;padding:17px 18px;font-weight:900;font-size:16px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:58px;transition:.18s ease;letter-spacing:-.03em}.btn.primary{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;box-shadow:0 18px 36px rgba(21,94,239,.20), inset 0 1px 0 rgba(255,255,255,.18)}.btn.primary:hover{transform:translateY(-1px);box-shadow:0 22px 48px rgba(21,94,239,.26)}.btn.ghost{background:#fff;border:1px solid var(--line);color:var(--primary);margin-top:10px}.btn.full{width:100%}.footer{display:flex;gap:16px;justify-content:center;color:#82788f;font-size:13px;font-weight:800;padding:12px}.footer a{padding:7px}
.link-list{display:grid;gap:9px}.mini-profile{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--line);border-radius:20px;background:#fff;padding:14px 15px;box-shadow:0 10px 24px rgba(55,31,98,.05)}.mini-profile b{display:block;font-weight:950}.mini-profile small{display:block;color:var(--muted);font-weight:800;margin-top:3px}.mini-profile>span:last-child{color:var(--primary);font-weight:900}
.copy-box{display:flex;align-items:center;gap:8px;border:1.5px solid #dfd5ee;background:#fff;border-radius:21px;padding:7px;margin-bottom:10px}.copy-box input{min-width:0;flex:1;border:0;background:transparent;outline:none;padding:10px 8px;font-family:"Plus Jakarta Sans",Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-weight:700;color:#3c344b}.copy-box button{border:0;background:#eef4ff;color:var(--primary);border-radius:15px;padding:10px 13px;font-weight:950;cursor:pointer}.share-grid{display:flex;gap:10px}.share-chip{border:1px solid var(--line);background:#fff;border-radius:18px;padding:12px 14px;font-weight:900;color:var(--primary);cursor:pointer}.mini-note{font-size:12px;color:#57798c;font-weight:850;margin:8px 0 0}.icon-badge{width:64px;height:64px;border-radius:24px;background:linear-gradient(135deg,var(--green),#7dd3fc);display:grid;place-items:center;color:#fff;font-weight:950;font-size:28px;margin:0 auto 15px;box-shadow:0 18px 32px rgba(16,185,129,.22)}.icon-badge.danger{background:linear-gradient(135deg,#ef4444,#f97316)}.notice,.form-error{padding:14px 15px;border-radius:20px;background:#fff1f2;color:#9f1239;border:1px solid #fecdd3;font-weight:850;margin-bottom:14px;text-align:left}
.profile-hero{text-align:center;padding:17px 10px 13px}.profile-hero .avatar{width:88px;height:88px;border-radius:32px;margin:0 auto 16px;background:linear-gradient(135deg,var(--primary),var(--primary2));display:grid;place-items:center;color:#fff;font-weight:950;font-size:38px;box-shadow:var(--shadow2)}.profile-hero h1{font-size:31px;line-height:1.16;letter-spacing:-.006em;margin-bottom:10px}.profile-hero p{color:var(--muted);font-weight:800;margin:0}.type-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-bottom:16px}.type-card{border:1.6px solid var(--line);border-radius:23px;padding:15px 13px;background:#fff;min-height:114px;display:flex;flex-direction:column;justify-content:center;cursor:pointer;transition:.18s ease}.type-card input{display:none}.type-card span{font-size:25px;margin-bottom:7px}.type-card b{font-size:14px;font-weight:950;letter-spacing:-.035em}.type-card small{font-size:11px;color:var(--muted);font-weight:850;margin-top:5px}.type-card:has(input:checked){border-color:#155eef;box-shadow:0 0 0 4px rgba(21,94,239,.08),0 14px 34px rgba(21,94,239,.10);background:linear-gradient(180deg,#fff,#f7fbff)}.prompt-row{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 16px}.prompt-row button{border:1px solid var(--line);background:#fff;color:#496273;border-radius:999px;padding:10px 12px;font-size:12px;font-weight:900;cursor:pointer;box-shadow:0 8px 18px rgba(55,31,98,.04)}
.inbox-head{display:flex;justify-content:space-between;align-items:center;margin:4px 0 14px}.inbox-head h1{font-size:43px;margin:0 0 3px}.inbox-head p{margin:0;color:var(--muted);font-weight:850}.count-pill{width:108px;height:78px;border-radius:24px;background:linear-gradient(135deg,#fff,#f6fbff);border:1px solid var(--line);box-shadow:0 10px 30px rgba(21,94,239,.08);display:flex;flex-direction:column;justify-content:center;align-items:center}.count-pill b{font-size:28px;line-height:1;font-weight:950}.count-pill span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:900}.stats-row{display:flex;gap:9px;overflow:auto;padding-bottom:8px;margin:2px 0 12px}.stat-chip{min-width:108px;border:1px solid var(--line);background:#fff;border-radius:20px;padding:12px;box-shadow:0 8px 22px rgba(72,46,110,.06)}.stat-chip span{font-size:20px}.stat-chip b{display:block;font-size:22px;font-weight:950;margin:4px 0 0}.stat-chip small{color:var(--muted);font-size:11px;font-weight:850}.messages{display:grid;gap:12px}.message-card{background:#fff;border:1px solid var(--line);border-radius:26px;padding:17px;box-shadow:0 12px 34px rgba(72,46,110,.07)}.message-card.pinned{border-color:#c4b5fd;box-shadow:0 18px 42px rgba(124,58,237,.12)}.message-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#edf5ff;color:#155eef;padding:8px 10px;font-size:12px;font-weight:950}.message-top small{color:var(--muted);font-weight:800}.message-card p{font-size:17px;line-height:1.58;letter-spacing:-.02em;font-weight:750;color:#231d33;margin:14px 0 15px}.message-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.message-actions a,.message-actions button{border:1px solid var(--line);background:#fff;border-radius:14px;padding:8px 10px;font-size:12px;font-weight:900;color:#6d5d83;cursor:pointer}.message-actions form{display:inline}.empty-card{text-align:center;background:#fff;border:1px dashed #d8c9ef;border-radius:27px;padding:29px 19px}.empty-card p{color:var(--muted);font-weight:750;margin:0 0 16px}.card-preview{background:#fff;border:1px solid var(--line);border-radius:30px;padding:12px;box-shadow:var(--shadow);margin-bottom:14px}.card-preview svg{display:block;width:100%;height:auto;border-radius:24px;max-height:72vh}.center .btn{margin-top:18px}
@media (min-width:760px){body{background:radial-gradient(circle at 22% 10%,rgba(21,94,239,.10),transparent 26%),radial-gradient(circle at 78% 16%,rgba(14,165,164,.10),transparent 30%),linear-gradient(180deg,#fff,#f6f9fc)}.app-shell{padding-top:34px}.app-shell:before{content:"";position:fixed;left:50%;top:18px;bottom:18px;width:502px;transform:translateX(-50%);border:1px solid rgba(21,94,239,.10);border-radius:46px;pointer-events:none;box-shadow:0 30px 100px rgba(15,23,42,.08);z-index:-1}}
@media (max-width:430px){.app-shell{padding-left:14px;padding-right:14px}.mode-row{gap:8px}.choice{min-height:96px;padding:13px 10px}.choice span{font-size:16px}.choice small{font-size:11px}.hero-card{border-radius:34px;padding:25px 22px 23px}h1{font-size:38px}.panel{padding:20px}.create-panel{padding:22px}.field-head{align-items:flex-start;flex-direction:column;gap:2px}.field-head small{text-align:left}.type-card{min-height:106px}}
@media (max-width:350px){h1{font-size:33px}.type-grid{grid-template-columns:1fr}.brand{font-size:20px}.brand-mark{width:41px;height:41px}.mode-row{grid-template-columns:1fr}.choice{min-height:auto}.share-grid{flex-direction:column}.inbox-head h1{font-size:36px}}

.image-frame{padding:14px;background:linear-gradient(180deg,#fff,#fffcff)}
.image-frame img{display:block;width:100%;height:auto;border-radius:24px;max-height:72vh;box-shadow:0 18px 52px rgba(95,61,149,.16)}
.card-actions-panel{display:grid;gap:12px}
.dual-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.center-note{margin-top:2px;font-size:12px;line-height:1.5;text-align:center;color:#7b7288}
.wide-card .panel.center h1{margin-bottom:10px}
@media (max-width:430px){.dual-actions{grid-template-columns:1fr}}

.top3-builder{position:sticky;top:10px;z-index:5;background:rgba(255,255,255,.97);box-shadow:0 18px 46px rgba(15,23,42,.08)}
.top3-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.top3-title h2{margin:0 0 4px;font-size:20px}
.top3-title p{margin:0;color:var(--muted);font-size:12px;font-weight:850;line-height:1.35}
#top3Counter{min-width:52px;height:38px;border-radius:999px;background:#eef4ff;color:#155eef;display:grid;place-items:center;font-weight:950;border:1px solid #dbe6f2}
#top3Submit:disabled{opacity:.48;filter:saturate(.55);cursor:not-allowed;box-shadow:none}
.pick-wrap{display:flex;align-items:center;gap:8px;margin:0 0 12px;padding:10px 12px;border-radius:18px;background:#f7fbff;border:1px solid #dbe6f2;color:#155eef;font-size:12px;font-weight:950;cursor:pointer}
.pick-wrap input{accent-color:#7c3aed;width:18px;height:18px}
.message-card.picked{border-color:#155eef;box-shadow:0 0 0 4px rgba(21,94,239,.08),0 18px 44px rgba(21,94,239,.12)}
.message-card.picked .pick-wrap{background:linear-gradient(135deg,#155eef,#0ea5a4);color:#fff;border-color:transparent}

.footer{margin-top:4px;flex-wrap:wrap}.footer a{padding:8px 10px;border-radius:12px}.footer a:hover{background:#eef4ff;color:#155eef}.brand-mark{background:linear-gradient(135deg,var(--primary),var(--primary2));box-shadow:0 16px 32px rgba(21,94,239,.22)}

.inbox-head-actions{display:flex;align-items:center;gap:10px}.refresh-link{white-space:nowrap}
.bottom-builder{margin-top:14px;position:relative;top:auto}
.message-card .pick-wrap{margin-top:4px;margin-bottom:14px}

.message-top small[data-local-time]{white-space:nowrap;font-variant-numeric:tabular-nums}

.clean-profile{padding-top:28px}
.clean-profile .avatar,.clean-profile .profile-chip{display:none!important}
.message-top small.js-time{white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--muted);font-weight:850}
.page-status{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  margin:2px 0 12px;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.pagination{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:10px;
  align-items:center;
  margin:16px 0 2px;
  padding:14px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:0 12px 34px rgba(15,23,42,.06);
}
.pagination a,.pagination span{
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  font-weight:950;
  font-size:13px;
}
.pagination a{
  color:var(--primary);
  background:#eef4ff;
  border:1px solid #dbe6f2;
}
.pagination span{
  color:var(--muted);
  background:#f8fafc;
  padding:0 12px;
  white-space:nowrap;
}
.pagination a.disabled{
  opacity:.42;
  pointer-events:none;
}
@media (max-width:390px){
  .pagination{grid-template-columns:1fr;gap:8px}
  .page-status{flex-direction:column;align-items:flex-start}
}

.make-card-action{
  background:linear-gradient(135deg,var(--primary),var(--primary2))!important;
  color:#fff!important;
  border:0!important;
  box-shadow:0 12px 28px rgba(21,94,239,.16);
}
.single-card-ready .message-actions{
  padding-top:2px;
}
.top3-builder,.pick-wrap{display:none!important}

.blocked-message{
  background:#f8fafc;
  border-style:dashed;
  opacity:.92;
}
.blocked-message p{
  color:#64748b;
}
.blocked-note{
  display:inline-flex;
  margin-top:12px;
  padding:8px 10px;
  border-radius:999px;
  background:#fff7ed;
  color:#c2410c;
  font-size:12px;
  font-weight:950;
  border:1px solid #fed7aa;
}
.message-actions .unblock-action{
  background:#ecfdf5!important;
  color:#047857!important;
  border-color:#bbf7d0!important;
}

.stats-row{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  overflow:visible!important;
  padding-bottom:0!important;
}
.stat-chip{
  min-width:0!important;
}
@media (min-width:640px){
  .stats-row{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:430px){
  .stats-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .stat-chip{
    padding:10px;
    border-radius:18px;
  }
  .stat-chip b{font-size:20px}
  .stat-chip small{font-size:10px}
}


.private-warning{
  margin-top:12px;
  border:1.5px solid #fecaca;
  background:#fff1f2;
  color:#991b1b;
  border-radius:18px;
  padding:13px 14px;
  line-height:1.45;
  font-weight:850;
}
.private-warning b{
  display:block;
  margin-bottom:5px;
  color:#7f1d1d;
  font-weight:950;
}
.private-warning span{
  display:block;
  font-size:13px;
}
.browser-gate{
  position:fixed;
  inset:0;
  z-index:80;
  background:rgba(15,23,42,.46);
  backdrop-filter:blur(10px);
  display:none;
  align-items:flex-end;
  justify-content:center;
  padding:18px;
}
.browser-gate.show{
  display:flex;
}
.browser-gate-card{
  width:min(100%,520px);
  background:#fff;
  border:1px solid var(--line);
  border-radius:30px;
  padding:22px;
  box-shadow:0 28px 80px rgba(15,23,42,.25);
  animation:gateUp .22s ease both;
}
@keyframes gateUp{
  from{transform:translateY(18px);opacity:.4}
  to{transform:translateY(0);opacity:1}
}
.gate-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:20px;
  background:#fff1f2;
  color:#dc2626;
  font-weight:950;
  font-size:26px;
  margin-bottom:14px;
}
.browser-gate-card h2{
  margin:0 0 8px;
  letter-spacing:-.02em;
}
.browser-gate-card p{
  margin:0 0 12px;
  color:var(--muted);
  font-weight:800;
  line-height:1.55;
}
.gate-close{
  width:100%;
  border:0;
  background:transparent;
  color:var(--muted);
  font-weight:900;
  padding:12px 0 0;
  cursor:pointer;
}
@media (min-width:540px){
  .browser-gate{align-items:center}
}

.danger-zone{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  border-color:#fecaca;
  background:linear-gradient(180deg,#fff,#fff7f7);
}
.danger-zone label{color:#7f1d1d}
.danger-link-btn{
  border:1px solid #fecaca;
  background:#fff1f2;
  color:#b91c1c;
  border-radius:18px;
  padding:12px 15px;
  font-weight:950;
  cursor:pointer;
  white-space:nowrap;
}
.danger-link-btn.small{
  padding:9px 12px;
  border-radius:14px;
  font-size:12px;
}
.link-manage-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.link-manage-actions form{margin:0}
.delete-link-gate{
  position:fixed;
  inset:0;
  z-index:90;
  background:rgba(15,23,42,.46);
  backdrop-filter:blur(10px);
  display:none;
  align-items:flex-end;
  justify-content:center;
  padding:18px;
}
.delete-link-gate.show{
  display:flex;
}
.delete-link-card{
  width:min(100%,520px);
  background:#fff;
  border:1px solid var(--line);
  border-radius:30px;
  padding:22px;
  box-shadow:0 28px 80px rgba(15,23,42,.25);
  animation:gateUp .22s ease both;
}
.delete-link-card h2{
  margin:0 0 8px;
  letter-spacing:-.02em;
}
.delete-link-card p{
  margin:0 0 16px;
  color:var(--muted);
  font-weight:800;
  line-height:1.55;
}
.delete-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.btn.danger{
  background:linear-gradient(135deg,#ef4444,#b91c1c);
  color:#fff;
  border:0;
  box-shadow:0 16px 34px rgba(185,28,28,.18);
}
@media (min-width:540px){
  .delete-link-gate{align-items:center}
}
@media (max-width:430px){
  .danger-zone{align-items:flex-start;flex-direction:column}
  .danger-link-btn{width:100%}
  .link-manage-actions{align-items:flex-start;flex-direction:column}
  .link-manage-actions form,.link-manage-actions .danger-link-btn{width:100%}
  .delete-actions{grid-template-columns:1fr}
}

.message-action-gate{
  position:fixed;
  inset:0;
  z-index:92;
  background:rgba(15,23,42,.46);
  backdrop-filter:blur(10px);
  display:none;
  align-items:flex-end;
  justify-content:center;
  padding:18px;
}
.message-action-gate.show{
  display:flex;
}
.message-action-card{
  width:min(100%,520px);
  background:#fff;
  border:1px solid var(--line);
  border-radius:30px;
  padding:22px;
  box-shadow:0 28px 80px rgba(15,23,42,.25);
  animation:gateUp .22s ease both;
}
.message-action-card h2{
  margin:0 0 8px;
  letter-spacing:-.02em;
}
.message-action-card p{
  margin:0 0 16px;
  color:var(--muted);
  font-weight:800;
  line-height:1.55;
}
@media (min-width:540px){
  .message-action-gate{align-items:center}
}
@media (max-width:430px){
  .message-action-gate .delete-actions{grid-template-columns:1fr}
}

.four-modes{
  grid-template-columns:1fr;
}
.live-line{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.live-line.small{
  justify-content:flex-start;
  margin:8px 0 0;
}
.live-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  border-radius:999px;
  padding:7px 11px;
  background:#ecfdf5;
  color:#047857;
  border:1px solid #bbf7d0;
  font-weight:950;
  font-size:12px;
}
.timer-chip{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:7px 11px;
  background:#f8fafc;
  color:#334155;
  border:1px solid var(--line);
  font-weight:950;
  font-size:12px;
}
.live-badge.expired,.timer-chip.expired{
  background:#fff1f2;
  border-color:#fecaca;
  color:#b91c1c;
}
@media (min-width:620px){
  .four-modes{
    grid-template-columns:1fr 1fr;
  }
}

.mode-guide{
  margin-bottom:20px;
  padding:18px;
  border-radius:24px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  border:1px solid var(--line);
}
.mode-guide h2{
  margin:0 0 6px;
  font-size:22px;
  letter-spacing:-.02em;
  color:var(--ink);
}
.mode-guide p{
  margin:0;
  color:var(--muted);
  font-weight:850;
  line-height:1.45;
}
@media (max-width:430px){
  .mode-guide{
    padding:15px;
    border-radius:20px;
  }
  .mode-guide h2{
    font-size:20px;
  }
}

/* V30 mobile mode grid fix */
.mode-row.four-modes{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  align-items:stretch;
}
.mode-row.four-modes .choice{
  min-width:0;
  width:100%;
  min-height:132px;
  padding:16px 14px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:flex-start;
  gap:8px;
  overflow:hidden;
}
.mode-row.four-modes .choice span{
  display:block;
  width:100%;
  font-size:20px;
  line-height:1.15;
  letter-spacing:-0.02em;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.mode-row.four-modes .choice small{
  display:block;
  width:100%;
  font-size:12px;
  line-height:1.35;
  color:var(--muted);
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}
@media (max-width:430px){
  .mode-row.four-modes{
    gap:10px;
  }
  .mode-row.four-modes .choice{
    min-height:124px;
    padding:14px 12px;
    border-radius:22px;
  }
  .mode-row.four-modes .choice span{
    font-size:18px;
  }
  .mode-row.four-modes .choice small{
    font-size:11px;
  }
}

/* V32 inline emoji mode titles */
.mode-row.four-modes .choice .mode-title{
  display:flex;
  align-items:center;
  gap:7px;
  width:100%;
  font-size:18px;
  line-height:1.15;
  letter-spacing:-0.02em;
  font-weight:950;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
}
.mode-row.four-modes .choice .mode-title .mode-emoji{
  display:inline-flex;
  width:auto;
  flex:0 0 auto;
  font-size:20px;
  line-height:1;
}
.mode-row.four-modes .choice .mode-title span:last-child{
  min-width:0;
  overflow-wrap:anywhere;
}
@media (max-width:430px){
  .mode-row.four-modes .choice .mode-title{
    font-size:16px;
    gap:6px;
  }
  .mode-row.four-modes .choice .mode-title .mode-emoji{
    font-size:19px;
  }
}

/* V33 mode card text/order fix */
.mode-row.four-modes{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
}
.mode-row.four-modes .choice{
  min-width:0 !important;
  width:100% !important;
  min-height:126px !important;
  padding:16px 14px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:10px !important;
}
.mode-row.four-modes .choice .mode-title{
  display:flex !important;
  align-items:flex-start !important;
  gap:7px !important;
  width:100% !important;
  max-width:100% !important;
  font-size:20px !important;
  line-height:1.12 !important;
  letter-spacing:-0.02em !important;
  font-weight:950 !important;
  white-space:normal !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
}
.mode-row.four-modes .choice .mode-title .mode-name{
  min-width:0 !important;
  max-width:100% !important;
  white-space:normal !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
}
.mode-row.four-modes .choice .mode-title .mode-emoji{
  flex:0 0 auto !important;
  width:auto !important;
  font-size:20px !important;
  line-height:1.05 !important;
  margin-top:1px !important;
}
.mode-row.four-modes .choice small{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  font-size:12px !important;
  line-height:1.35 !important;
  color:var(--muted) !important;
  white-space:normal !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  letter-spacing:0 !important;
  word-spacing:0.08em !important;
}
@media (max-width:430px){
  .mode-row.four-modes{
    gap:10px !important;
  }
  .mode-row.four-modes .choice{
    min-height:122px !important;
    padding:14px 12px !important;
    border-radius:22px !important;
  }
  .mode-row.four-modes .choice .mode-title{
    font-size:18px !important;
    line-height:1.15 !important;
    gap:6px !important;
  }
  .mode-row.four-modes .choice .mode-title .mode-emoji{
    font-size:18px !important;
  }
  .mode-row.four-modes .choice small{
    font-size:11px !important;
    line-height:1.35 !important;
  }
}
@media (max-width:360px){
  .mode-row.four-modes .choice .mode-title{
    font-size:16px !important;
  }
  .mode-row.four-modes .choice small{
    font-size:10.5px !important;
  }
}

/* V35 Spill-only inbox filters */
.spill-filter-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:18px 0 14px;
}
.spill-filter{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  text-decoration:none;
  color:var(--muted);
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:12px 13px;
  box-shadow:0 12px 26px rgba(15,23,42,.04);
  font-weight:950;
}
.spill-filter span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
}
.spill-filter b{
  flex:0 0 auto;
  color:var(--ink);
  font-size:16px;
}
.spill-filter.active{
  border-color:#2563eb;
  color:#2563eb;
  background:linear-gradient(180deg,#ffffff,#eff6ff);
  box-shadow:0 16px 34px rgba(37,99,235,.12);
}
@media (max-width:560px){
  .spill-filter-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .spill-filter{
    padding:12px;
    border-radius:18px;
  }
}

/* V37 inbox mode second line */
.inbox-title-block p{
  margin:0;
}
.inbox-mode-line{
  margin-top:2px !important;
  color:var(--muted);
  font-weight:950;
  line-height:1.18;
}
@media (max-width:430px){
  .inbox-mode-line{
    font-size:24px;
    max-width:190px;
  }
}

/* V38 home created links mode badge */
.link-history-item{
  align-items:center;
}
.history-main{
  min-width:0;
}
.history-main b,
.history-main small,
.history-main em{
  display:block;
}
.history-mode{
  margin-top:5px;
  font-style:normal;
  width:max-content;
  max-width:100%;
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#2563eb;
  border-radius:999px;
  padding:5px 9px;
  font-size:11px;
  line-height:1;
  font-weight:950;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.history-open{
  flex:0 0 auto;
}
@media (max-width:430px){
  .history-mode{
    font-size:10.5px;
    padding:5px 8px;
  }
}

/* V39 inbox header tune */
.inbox-head-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:flex-start;
  gap:14px;
}
.inbox-head-actions .count-pill{
  order:1;
}
.inbox-head-actions .refresh-link{
  order:2;
}
.inbox-mode-line{
  font-size:clamp(18px, 4.8vw, 24px) !important;
  line-height:1.12 !important;
  letter-spacing:-0.02em;
}
@media (max-width:430px){
  .inbox-head{
    align-items:flex-start;
    gap:14px;
  }
  .inbox-head-actions{
    width:100%;
    flex-direction:row-reverse;
    justify-content:space-between;
    align-items:flex-start;
  }
  .inbox-head-actions .count-pill{
    min-width:134px;
  }
  .inbox-head-actions .refresh-link{
    align-self:center;
  }
  .inbox-mode-line{
    font-size:18px !important;
    max-width:none !important;
  }
}

/* V40 proper inbox header fix */
.inbox-head-v40{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:start !important;
  gap:14px !important;
}
.inbox-head-v40 .inbox-title-block{
  min-width:0 !important;
}
.inbox-head-v40 .inbox-title-block h1{
  margin-bottom:2px !important;
}
.inbox-head-v40 .inbox-title-block > p{
  margin:0 !important;
}
.inbox-head-v40 .inbox-mode-line{
  font-size:clamp(18px,4.8vw,24px) !important;
  line-height:1.08 !important;
  letter-spacing:-0.02em !important;
  max-width:100% !important;
}
.inbox-head-v40 .inbox-live-row{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  flex-wrap:nowrap !important;
  margin-top:12px !important;
  margin-bottom:0 !important;
}
.inbox-head-v40 .inbox-live-row .live-badge,
.inbox-head-v40 .inbox-live-row .timer-chip{
  white-space:nowrap !important;
  flex:0 0 auto !important;
}
.inbox-actions-v40{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:10px !important;
  width:152px !important;
}
.inbox-actions-v40 .count-pill{
  order:1 !important;
  width:100% !important;
}
.inbox-actions-v40 .refresh-link{
  order:2 !important;
  width:100% !important;
  text-align:center !important;
  display:block !important;
  box-sizing:border-box !important;
}
@media (max-width:430px){
  .inbox-head-v40{
    grid-template-columns:minmax(0,1fr) 138px !important;
    gap:10px !important;
  }
  .inbox-actions-v40{
    width:138px !important;
    gap:8px !important;
  }
  .inbox-head-v40 .inbox-mode-line{
    font-size:20px !important;
  }
  .inbox-head-v40 .inbox-live-row{
    gap:7px !important;
    margin-top:10px !important;
  }
  .inbox-head-v40 .inbox-live-row .live-badge,
  .inbox-head-v40 .inbox-live-row .timer-chip{
    padding:7px 10px !important;
    font-size:12px !important;
  }
}
@media (max-width:370px){
  .inbox-head-v40{
    grid-template-columns:1fr !important;
  }
  .inbox-actions-v40{
    width:100% !important;
    max-width:160px !important;
  }
}

/* V41 inbox username safe size */
.inbox-head-v40 .inbox-title-block > p:first-of-type{
  font-size:clamp(18px,4.4vw,24px) !important;
  line-height:1.1 !important;
  font-weight:950 !important;
  color:var(--muted) !important;
  max-width:100% !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.inbox-head-v40 .inbox-title-block{
  overflow:hidden !important;
}
@media (max-width:430px){
  .inbox-head-v40 .inbox-title-block > p:first-of-type{
    font-size:18px !important;
    max-width:190px !important;
  }
}
@media (max-width:370px){
  .inbox-head-v40 .inbox-title-block > p:first-of-type{
    max-width:100% !important;
  }
}

/* V42 final inbox username + mode spacing fix */
.inbox-head-v40 .inbox-title-block > p:first-of-type{
  font-size:16px !important;
  line-height:1.18 !important;
  font-weight:900 !important;
  color:var(--muted) !important;
  max-width:185px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  margin:4px 0 8px !important;
  display:block !important;
}
.inbox-head-v40 .inbox-mode-line{
  font-size:18px !important;
  line-height:1.12 !important;
  font-weight:950 !important;
  color:var(--muted) !important;
  max-width:190px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  margin:0 0 0 !important;
  display:block !important;
  letter-spacing:-0.01em !important;
}
.inbox-head-v40 .inbox-live-row{
  margin-top:12px !important;
}
@media (max-width:430px){
  .inbox-head-v40 .inbox-title-block > p:first-of-type{
    font-size:15px !important;
    max-width:170px !important;
    margin:3px 0 7px !important;
  }
  .inbox-head-v40 .inbox-mode-line{
    font-size:17px !important;
    max-width:170px !important;
  }
  .inbox-head-v40 .inbox-live-row{
    margin-top:11px !important;
  }
}
@media (max-width:370px){
  .inbox-head-v40 .inbox-title-block > p:first-of-type{
    max-width:100% !important;
  }
  .inbox-head-v40 .inbox-mode-line{
    max-width:100% !important;
  }
}

/* V44 home hero + inbox mode size fix */
.home-hero h1{
  font-size:clamp(38px,8.5vw,58px) !important;
  line-height:1.08 !important;
  letter-spacing:-0.045em !important;
  max-width:780px !important;
}
@media (max-width:430px){
  .home-hero h1{
    font-size:36px !important;
    line-height:1.1 !important;
    letter-spacing:-0.04em !important;
  }
}
@media (max-width:370px){
  .home-hero h1{
    font-size:32px !important;
  }
}

/* Final smaller inbox mode text under username */
.inbox-head-v40 .inbox-title-block > p:first-of-type{
  font-size:14px !important;
  line-height:1.2 !important;
  font-weight:900 !important;
  max-width:180px !important;
  margin:4px 0 8px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.inbox-head-v40 .inbox-mode-line{
  font-size:15px !important;
  line-height:1.2 !important;
  font-weight:950 !important;
  max-width:180px !important;
  margin:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
@media (max-width:430px){
  .inbox-head-v40 .inbox-title-block > p:first-of-type{
    font-size:13px !important;
    max-width:160px !important;
    margin:3px 0 7px !important;
  }
  .inbox-head-v40 .inbox-mode-line{
    font-size:14px !important;
    max-width:160px !important;
  }
}

/* V45 compact homepage hero fix */
.home-hero{
  padding:28px 28px 34px !important;
  min-height:auto !important;
}
.home-hero .kicker{
  margin-bottom:14px !important;
}
.home-hero h1{
  font-size:clamp(28px,6vw,46px) !important;
  line-height:1.06 !important;
  letter-spacing:-0.04em !important;
  max-width:620px !important;
  margin-bottom:0 !important;
}
@media (max-width:430px){
  .home-hero{
    padding:24px 22px 28px !important;
  }
  .home-hero h1{
    font-size:30px !important;
    line-height:1.08 !important;
    max-width:100% !important;
  }
}
@media (max-width:370px){
  .home-hero{
    padding:22px 20px 26px !important;
  }
  .home-hero h1{
    font-size:27px !important;
  }
}

/* V46 final smaller homepage hero */
.home-hero{
  padding:24px 28px 28px !important;
  min-height:0 !important;
}
.home-hero .kicker{
  margin-bottom:12px !important;
  font-size:13px !important;
  letter-spacing:0.22em !important;
}
.home-hero h1{
  font-size:clamp(26px,4.2vw,38px) !important;
  line-height:1.08 !important;
  letter-spacing:-0.04em !important;
  max-width:620px !important;
  margin:0 !important;
}
@media (max-width:430px){
  .home-hero{
    padding:22px 20px 26px !important;
  }
  .home-hero .kicker{
    font-size:12px !important;
    margin-bottom:10px !important;
  }
  .home-hero h1{
    font-size:28px !important;
    line-height:1.09 !important;
    max-width:100% !important;
  }
}
@media (max-width:370px){
  .home-hero h1{
    font-size:25px !important;
  }
}

/* V47 homepage hero 2-line final fix */
.home-hero{
  padding:22px 28px 26px !important;
}
.home-hero .kicker{
  margin-bottom:10px !important;
  font-size:12px !important;
  letter-spacing:0.2em !important;
}
.home-hero h1{
  font-size:clamp(22px,3.5vw,30px) !important;
  line-height:1.1 !important;
  letter-spacing:-0.035em !important;
  max-width:760px !important;
  margin:0 !important;
  text-wrap:balance !important;
}
@media (max-width:430px){
  .home-hero{
    padding:20px 18px 24px !important;
  }
  .home-hero .kicker{
    font-size:11px !important;
    margin-bottom:9px !important;
    letter-spacing:0.17em !important;
  }
  .home-hero h1{
    font-size:24px !important;
    line-height:1.12 !important;
    max-width:100% !important;
  }
}
@media (max-width:370px){
  .home-hero h1{
    font-size:22px !important;
  }
}

/* V48 mobile hero glow clip fix */
@media (max-width:560px){
  .home-hero{
    overflow:hidden !important;
    position:relative !important;
    isolation:isolate !important;
  }
  .home-hero::before,
  .home-hero::after{
    max-width:100% !important;
  }
}

/* V49 mobile hero blob hard fix */
@media (max-width:560px){
  .home-hero{
    overflow:hidden !important;
    position:relative !important;
    border-radius:38px !important;
    clip-path:inset(0 round 38px) !important;
    -webkit-clip-path:inset(0 round 38px) !important;
    background-clip:padding-box !important;
  }
  .home-hero::before{
    display:none !important;
    content:none !important;
  }
  .home-hero::after{
    left:20px !important;
    right:auto !important;
    max-width:120px !important;
  }
}
@media (max-width:430px){
  .home-hero{
    border-radius:34px !important;
    clip-path:inset(0 round 34px) !important;
    -webkit-clip-path:inset(0 round 34px) !important;
  }
}
