/* INNERNET app, v0.10: the Vercel / Dokploy / Resend family. Black and white, Geist, thin borders, small radii.
   Buttons are black with a white outline and turn white only while pressed or chosen. Status is told in white and
   grey only. Loaded after registry.css: it restyles the same elements, so nothing the pages do changes. */
:root {
  --bg: #000; --surface: #0A0A0A; --surface-2: #111; --surface-3: #1A1A1A;
  --border: #1F1F1F; --border-2: #2E2E2E; --border-3: #454545; --frame: #454545;
  --text: #EDEDED; --muted: #A1A1A1; --dim: #737373;
  --r: 8px; --r-lg: 12px; --side: 244px;
}
body { font: 400 14.5px/1.55 "Geist", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1 { font-weight: 600; letter-spacing: -0.035em; }
h2 { font-weight: 600; letter-spacing: -0.015em; }
h3 { font-weight: 500; }
p { color: var(--muted); }
::selection { background: #fff; color: #000; }

/* ---- surfaces: one card style, no bracket corners ---- */
.frame::before, .frame::after { display: none !important; }
.card, .frame, .step { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.card.frame.step { padding: 22px; }
.notice { border-radius: var(--r); }

/* ---- buttons ---- */
.btn { height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--border-2); background: transparent; color: var(--text);
  font: 500 13.5px "Geist", sans-serif; transition: background .12s, border-color .12s, color .12s; }
.btn:hover:not(:disabled) { background: rgba(255,255,255,.05); border-color: var(--border-3); color: var(--text); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn-light, .btn-primary, .btn.btn-light, #go, #q-go, #send, #lk-go, #new-go, #hc-go, .hero-acts .btn-light, #ask #go, #done .share-bar .btn-light {
  background: transparent !important; color: var(--text) !important; border: 1px solid var(--text) !important; font-weight: 500; }
.btn-light:hover:not(:disabled), .btn-primary:hover:not(:disabled), #go:hover:not(:disabled), #hc-go:hover:not(:disabled), #send:hover:not(:disabled) {
  background: rgba(255,255,255,.08) !important; }
.btn:active:not(:disabled), .btn[aria-pressed="true"], .btn.on, .btn-light:active:not(:disabled), #go:active:not(:disabled), #hc-go:active:not(:disabled) {
  background: #fff !important; color: #000 !important; border-color: #fff !important; }
.btn:disabled { opacity: .45; }
.btn.danger { border-color: #ff6166 !important; color: #ff6166 !important; }

/* ---- fields and choices ---- */
.field, input.field, select.field, textarea.field { border-radius: var(--r); background: var(--bg); border: 1px solid var(--border-2); color: var(--text); }
.field:focus, .field:focus-visible { border-color: var(--text); outline: 0; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.seg { border-radius: var(--r); border: 1px solid var(--border-2); overflow: hidden; display: inline-flex; background: transparent; gap: 0; }
.seg label { margin: 0; }
.seg span { border: 0 !important; border-right: 1px solid var(--border-2) !important; border-radius: 0; color: var(--muted); }
.seg label:last-child span { border-right: 0 !important; }
.seg input:checked + span { background: var(--surface-3) !important; color: var(--text) !important; box-shadow: none !important; }
.addon { border-radius: var(--r); }
.check input[type=checkbox], .check input[type=radio] { accent-color: #fff; }
.drop { border-radius: var(--r-lg); border: 1px dashed var(--border-3); }

/* ---- header (signed out), footer ---- */
.top { background: rgba(0,0,0,.78); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.app-nav a { border-bottom: 0; padding: 6px 10px; border-radius: 6px; font-size: 13.5px; }
.app-nav a.on { color: var(--text); background: var(--surface-3); }
.app-nav a:hover { color: var(--text); }
.acct-btn.on-acct { border-color: var(--border-3); }
.nav-n { background: var(--surface-3); border: 1px solid var(--border-2); color: var(--text); border-radius: 999px; }
.app-foot { border-top: 1px solid var(--border); }

/* ---- home: headline and the send box ---- */
.hero-x { position: relative; text-align: center; padding: 56px 0 8px; }
.hero-x::before { content: ""; position: absolute; left: 50%; top: -60px; width: 120vw; max-width: 1400px; height: 620px; transform: translateX(-50%); z-index: -1;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 18%, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse 55% 60% at 50% 18%, #000 25%, transparent 72%); opacity: .75; }
.hero-x::after { content: ""; position: absolute; left: 50%; top: -240px; width: 820px; height: 460px; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,.11), transparent); }
.pillbadge { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 11px; border: 1px solid var(--border-2); border-radius: 999px; font-size: 12.5px; color: var(--muted); background: rgba(10,10,10,.8); }
.hero-x h1 { margin-top: 22px; font-size: clamp(2.4rem, 7vw, 4.1rem); line-height: 1.02; letter-spacing: -0.045em; color: #fff; }
.hero-x h1 span { background: linear-gradient(180deg, #d9d9d9 10%, #6f6f6f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-x > p { max-width: 540px; margin: 16px auto 0; font-size: 1.05rem; line-height: 1.55; }
.composer { max-width: 640px; margin: 32px auto 0; text-align: left; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-lg);
  box-shadow: 0 0 0 6px rgba(255,255,255,.02), 0 30px 80px -24px rgba(0,0,0,.9); }
.composer .c-tabs { margin: 10px 10px 0; }
.composer .c-tabs span { padding: 5px 14px; font-size: 13px; }
.c-drop { display: flex; align-items: center; gap: 14px; margin: 10px; padding: 26px 18px; border: 1px dashed var(--border-3); border-radius: var(--r); cursor: pointer; }
.c-drop:hover, .c-drop.over { border-color: var(--text); background: var(--surface-2); }
.c-drop.has { border-style: solid; }
.c-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.c-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--border-2); border-radius: var(--r); }
.c-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.c-dt { flex: 1; min-width: 0; }
.c-dt b { display: block; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-dt span { color: var(--dim); font-size: 12.5px; }
#hc-text { display: block; width: calc(100% - 20px); margin: 10px; min-height: 104px; }
#hc-text[hidden] { display: none; }
.c-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); }
.c-lbl { width: 96px; flex: none; color: var(--dim); font-size: 12.5px; margin: 0; }
.c-row .field { flex: 1; height: 36px; margin: 0; }
.c-who span { padding: 6px 11px; font-size: 12.5px; }
.c-foot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.c-price { flex: 1; font-size: 12.5px; color: var(--muted); }
.c-price b { color: var(--text); font-weight: 500; }
.c-price a { color: var(--text); }
#hc-msg { padding: 0 14px 10px; }
#hc-msg:empty { display: none; }
@media (max-width: 620px) {
  .c-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .c-lbl { width: auto; }
  .c-who { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .c-who span { padding: 7px 4px; text-align: center; font-size: 12px; }
  .c-foot { flex-direction: column; align-items: stretch; }
  .c-foot .btn { width: 100%; }
}
h2.start-from { text-align: center; margin: 46px 0 14px; color: var(--dim); font-size: .85rem; font-weight: 500; letter-spacing: 0; }
.uses { gap: 10px; background: transparent; border: 0; }
.use { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 14px 16px; }
.use:hover:not(:disabled) { background: var(--surface-2); border-color: var(--border-3); }
.use.on { background: var(--surface-3); border-color: var(--text); }
.use.on strong { color: var(--text); } .use.on span { color: var(--muted); }
.more-uses > summary { border-radius: var(--r); border-color: var(--border-2); }
.more-uses { text-align: center; } .more-uses .uses, .more-uses h2 { text-align: left; }
.acct-offer { border-radius: var(--r-lg); border-color: var(--border); background: var(--surface); margin-top: 36px; }
.tally { border-radius: var(--r-lg); }
.tally strong { font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; }

/* ---- new send: wizard ---- */
.usebar a { color: var(--muted); }
.levels .lv { border-radius: var(--r-lg); border-color: var(--border); }
.levels .lv-rows { border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; }
.wz-nav { border: 0; gap: 6px; background: transparent; }
.wz-nav button, .wz-dot { border-radius: var(--r); border: 1px solid var(--border) !important; background: var(--surface) !important; color: var(--muted) !important; box-shadow: none !important; }
.wz-dot.on, .wz-nav button.on, .wz-nav [aria-current] { background: var(--surface-3) !important; color: var(--text) !important; border-color: var(--border-3) !important; }
.plan.periods .pc { border-radius: var(--r); }
.plan.periods .pc.on, .chip.on { background: var(--surface-3) !important; color: var(--text) !important; box-shadow: inset 0 0 0 1px var(--text) !important; }
.chip { border-radius: 999px; }
.more-opts { border-top-color: var(--border); }

/* ---- the result ---- */
.done-tick { background: transparent; border: 1px solid var(--border-3); color: #fff; }
.share-box { border: 1px solid var(--border-2) !important; border-radius: var(--r-lg); background: var(--bg); }
#done .copyable code#link { font-size: 12.5px; color: var(--muted); }
.pin-cells { display: flex; gap: 6px; margin: 4px 0 10px; }
.pin-cells span { width: 44px; height: 54px; display: grid; place-items: center; border: 1px solid var(--border-2); border-radius: var(--r); background: var(--bg);
  font: 500 24px var(--mono); color: var(--text); }
.pin-cells.long span { width: 30px; height: 42px; font-size: 17px; }
#done .copyable:has(.pin-cells span) #pin { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.senderkey.private { border-radius: var(--r-lg); }
.keys { border-radius: var(--r-lg); overflow: hidden; }

/* ---- the receiver's page ---- */
#ask #pin.code-input { font: 500 26px var(--mono); letter-spacing: .55em; text-align: center; height: 58px; padding-left: .55em; }
.ad-slot { border: 1px solid var(--border) !important; border-radius: var(--r-lg); padding: 12px; max-width: 100%; }
.ad-slot iframe { border-radius: var(--r); }
.ad-label { letter-spacing: 0; }
.badges { color: var(--dim); }

/* ---- status: white and grey only ---- */
.sdot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--dim); display: inline-block; flex: none; }
.sdot.on { background: #fff; border-color: #fff; box-shadow: 0 0 8px rgba(255,255,255,.55); }
.sdot.wait { border-color: var(--muted); border-style: dashed; }
.sbadge { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border: 1px solid var(--border-2); border-radius: 999px; font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---- tables ---- */
table.adm { border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
table.adm th { background: var(--surface-2); color: var(--dim); font-weight: 500; font-size: 12px; border-bottom: 1px solid var(--border); }
table.adm td { border-top: 1px solid var(--border); }
table.adm tr:first-child td { border-top: 0; }
.tbl-wrap { border-radius: var(--r-lg); }
.cmd-line { border-radius: var(--r); }

/* ---- signed in: overview cards ---- */
.launch { gap: 10px; }
.lt { border-radius: var(--r-lg); border-color: var(--border); min-height: 116px; }
.lt svg { width: 20px; height: 20px; margin-bottom: 14px; color: var(--muted); stroke: var(--muted); }
.lt span { font-family: "Geist", sans-serif; color: var(--text); font-size: .95rem; line-height: 1.4; margin-top: 2px; }
.lt strong { color: var(--muted); font-weight: 500; font-size: .85rem; }
.lt:hover { border-color: var(--border-3) !important; }
.ac-who { border-radius: var(--r-lg); }

/* ---- signed in: the shell. A sidebar on wide screens, a tab bar on phones ---- */
.side, .tabbar { display: none; }
body.signed .side { position: fixed; inset: 0 auto 0 0; width: var(--side); display: flex; flex-direction: column; gap: 2px; padding: 16px 12px;
  border-right: 1px solid var(--border); background: var(--bg); z-index: 20; overflow-y: auto; }
.side-brand { display: block; padding: 6px 8px 18px; }
.side-brand img { width: 84px; height: auto; display: block; }
.side-who { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 14px; color: var(--text); text-decoration: none; }
.side-who:hover { border-color: var(--border-3); color: var(--text); }
.side-av { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--border-2);
  background: linear-gradient(135deg, #3a3a3a, #0d0d0d); font-weight: 600; font-size: 12.5px; }
.side-who b { display: block; font-weight: 500; font-size: 13px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.side-who span span { font-size: 11.5px; color: var(--dim); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a, .side-set { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 13.5px; }
.side-nav a[hidden] { display: none; }
.side-nav a:hover, .side-set:hover { color: var(--text); background: var(--surface-2); }
.side-nav a.on, .side-set.on { color: var(--text); background: var(--surface-3); }
.side svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.side-nav b { margin-left: auto; font: 500 11px var(--mono); color: var(--dim); }
.side-grp { font-size: 11px; color: var(--dim); padding: 14px 9px 6px; }
.side .spacer { flex: 1; }
.side-foot { display: flex; gap: 12px; padding: 10px 9px 0; font-size: 12px; }
.side-foot a { color: var(--dim); text-decoration: none; }
@media (min-width: 960px) {
  body.signed .app-top { display: none; }
  body.signed main { margin-left: var(--side); }
  body.signed .app-foot { display: none; }
  body.signed main { padding-top: 12px; }
}
@media (max-width: 959px) {
  body.signed .side { display: none; }
  body.signed .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr);
    height: calc(62px + env(safe-area-inset-bottom)); padding: 8px 0 env(safe-area-inset-bottom); background: rgba(0,0,0,.92);
    backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--dim); text-decoration: none; }
  .tabbar a.on { color: var(--text); }
  .tabbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  body.signed { padding-bottom: 72px; }
  body.signed .app-nav { display: none; }
}
#ac-machines > .note { margin-bottom: 14px; }
.ac-who .ac-who-row { align-items: center; }

/* Harmony with the logo. The wordmark is one even stroke with mitred corners and square ends, so the UI follows it:
   square corners everywhere, the same light even weight for headings, no gradients or soft glows, square markers,
   and "Send" set at the logo's cap height and stroke weight. The logo file itself is untouched. */
:root { --r: 0px; --r-lg: 0px; }
*, *::before, *::after { border-radius: 0 !important; }
h1, h2, h3 { font-weight: 400; }
h1 { letter-spacing: -0.02em; }
h2 { letter-spacing: -0.01em; }
.hero-x h1 { font-weight: 300; letter-spacing: -0.025em; line-height: 1.06; }
.hero-x h1 span { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--dim); }
.hero-x::after { display: none; }
.hero-x::before { opacity: .45; }
.logo img, .side-brand img { image-rendering: auto; }
.app-top .logo span, .top .logo span { font-weight: 300; font-size: 17px; line-height: 1; color: var(--text);
  letter-spacing: .01em; padding-left: 12px; margin-left: 0; border-left: 1px solid var(--border-3); height: 16px; display: inline-flex; align-items: center; }
.btn, button { font-weight: 400; letter-spacing: .005em; }
.sdot { border-width: 1.5px; }
.done-tick { font-weight: 300; }
svg [stroke], svg[stroke] { stroke-linejoin: miter; stroke-linecap: square; }
.pin-cells span { font-weight: 300; }
.top .logo-app { margin-left: 12px; }
