/* Hemlis Drive web app, in the Hemlis world: sky, frosted glass, the Comfortaa wordmark, one sea-blue accent.
   The same look as the desktop app and hemlis.cloud. */
@font-face { font-family: "DM Sans"; src: url(fonts/dmsans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dmsans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dmsans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
:root {
  --ink: #13202e; --ink-2: #3c4a58; --muted: #5b6876; --faint: #8a95a1;
  --cloud: #f3f5f8; --cloud-2: #e8ecf1; --white: #fff; --line: rgba(19, 32, 46, .09);
  --red: #a3382c; --red-2: #8c2e24; --err: #b3261e;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { color: var(--ink); background: var(--white); font: 400 15px/1.45 "DM Sans", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.i { display: inline-block; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.i-folder { --i: url(icons/folder-simple.svg); } .i-folder-plus { --i: url(icons/folder-simple-plus.svg); }
.i-upload { --i: url(icons/upload-simple.svg); } .i-download { --i: url(icons/download-simple.svg); }
.i-link { --i: url(icons/link-simple.svg); } .i-trash { --i: url(icons/trash.svg); }
.i-card { --i: url(icons/credit-card.svg); } .i-user { --i: url(icons/user-circle.svg); } .i-key { --i: url(icons/key.svg); } .i-phone { --i: url(icons/device-mobile.svg); } .i-desktop { --i: url(icons/desktop.svg); } .i-send-to { --i: url(icons/paper-plane-tilt.svg); }
.i-file { --i: url(icons/file-text.svg); } .i-image { --i: url(icons/image.svg); } .i-video { --i: url(icons/film-strip.svg); }

/* gate: sign in, set up, unlock */
.gate { min-height: 100%; display: grid; place-items: center; padding: 24px; background: var(--cloud); }
.gate-card { width: min(400px, 100%); background: var(--white); border-radius: 16px; padding: 32px; display: grid; gap: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(19, 32, 46, .4); }
.gate-card h1 { margin: 6px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.gate-card p { margin: 0; color: var(--ink-2); }
#gate-fields { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.field input { height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--cloud-2); background: var(--cloud); font-size: 15px; color: var(--ink); }
.field input[type=file] { padding: 9px 10px; height: auto; font-size: 14px; }
.field input:focus { outline: none; border-color: var(--red); background: var(--white); }
.field input.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 16px; letter-spacing: .06em; text-align: center; color: var(--ink); }
.field:has(input[type=checkbox]) { grid-template-columns: auto 1fr; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.field:has(input[type=checkbox]) span { order: 2; }
.field input[type=checkbox] { height: 18px; width: 18px; margin: 0; accent-color: var(--red); }
#gate-go { height: 44px; border: 0; border-radius: 99px; background: var(--red); color: #fff; font-weight: 600; margin-top: 4px; }
#gate-go:hover { background: var(--red-2); }
#gate-go:disabled { opacity: .6; cursor: default; }
.gate-alt { margin: 2px 0 0; text-align: center; font-size: 14px; color: var(--ink-2); }
.gate-alt .link { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.msg { min-height: 1.4em; font-size: 14px; }

/* app frame */
.app { height: 100%; display: grid; grid-template-columns: 232px 1fr; }
.side { background: var(--cloud); padding: 18px 12px; display: flex; flex-direction: column; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink); }
.side nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.side nav a.on { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(19, 32, 46, .08); }
.side nav a.on .i { color: var(--red); }
.meter { margin-top: auto; padding: 0 10px 6px; }
.meter .bar { height: 5px; border-radius: 99px; background: var(--cloud-2); overflow: hidden; }
.meter .bar span { display: block; height: 100%; background: var(--red); }
.meter p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.meter .meter-trial .link { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.main { position: relative; overflow: auto; padding: 18px 28px 40px; }
.bar-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-bottom: 14px; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.crumbs li + li::before { content: "/"; color: var(--faint); margin-right: 4px; font-weight: 400; }
.crumbs button { border: 0; background: none; padding: 2px 4px; border-radius: 6px; color: var(--muted); font-weight: 500; }
.crumbs button:hover { background: var(--cloud); color: var(--ink); }
.actions { display: flex; gap: 8px; }
.actions .ghost, .actions .primary { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px; font-weight: 500; font-size: 14px; white-space: nowrap; }
.ghost { border: 1px solid var(--cloud-2); background: var(--white); }
.ghost:hover { background: var(--cloud); }
.primary { background: var(--red); color: #fff; cursor: pointer; border: 0; }
.primary:hover { background: var(--red-2); }

.list-head, .row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 120px 116px; align-items: center; gap: 12px; }
.list-head { padding: 0 10px 8px; font-size: 12px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); }
.list { list-style: none; margin: 0; padding: 0; }
.row { height: 46px; padding: 0 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
.row:hover { background: var(--cloud); }
.row .name { display: flex; align-items: center; gap: 12px; min-width: 0; border: 0; background: none; padding: 0; text-align: left; font-weight: 500; height: 100%; }
.row .name .i { color: var(--muted); }
.row .name .i-folder { color: var(--red); }
.row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .name input { height: 32px; padding: 0 8px; border: 1px solid var(--red); border-radius: 6px; width: min(320px, 100%); }
.sz, .dt { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sz { text-align: right; }
.row-actions { display: flex; justify-content: flex-end; gap: 2px; opacity: 0; transition: opacity .12s; }
.row:hover .row-actions, .row:focus-within .row-actions { opacity: 1; }
.icon { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; color: var(--muted); }
.icon:hover { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.share-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 12px 10px 14px 40px; background: var(--cloud); border-bottom: 1px solid var(--line); }
.share-row input { height: 34px; padding: 0 10px; border: 1px solid var(--cloud-2); border-radius: 8px; background: var(--white); font: 13px ui-monospace, "SF Mono", Menlo, monospace; }
.share-row .ghost { height: 34px; padding: 0 12px; border-radius: 99px; font-size: 13px; }
.share-row p { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }
.empty { margin: 48px 0; text-align: center; color: var(--muted); }
.dropzone { position: absolute; inset: 8px; border: 2px dashed var(--red); border-radius: 14px; background: rgba(255, 255, 255, .88); display: grid; place-items: center; font-weight: 600; font-size: 17px; pointer-events: none; }

.tray { position: fixed; left: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 10; width: min(340px, calc(100% - 32px)); }
.toast { background: var(--ink); color: #fff; border-radius: 10px; padding: 11px 14px; font-size: 14px; box-shadow: 0 14px 30px -14px rgba(19, 32, 46, .6); }
.toast p { margin: 0; }
.toast.err { background: var(--err); }
.prog { margin-top: 8px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.prog span { display: block; height: 100%; width: 0; background: #fff; transition: width .2s; }

@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { flex-direction: row; align-items: center; padding: 10px 14px; gap: 12px; }
  .meter { display: none; }
  .side nav { display: flex; gap: 4px; margin-left: auto; } .side nav a { height: 34px; padding: 0 10px; font-size: 14px; }
  .main { padding: 14px 14px 40px; }
  .bar-top { flex-wrap: wrap; }
  .list-head { display: none; }
  .row { grid-template-columns: minmax(0, 1fr) auto; height: 54px; }
  .row .dt { display: none; }
  .row .sz { display: none; }
  .row-actions { opacity: 1; }
  .actions .ghost span:not(.i) { display: none; }
}

/* plan: location, plan, space, billing, how to pay; the total and one button */
.plan { max-width: 620px; padding-top: 6px; }
.plan h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.plan-now { margin: 0 0 22px; color: var(--muted); }
.plan-note { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; background: #fbeeec; color: var(--red-2); font-weight: 500; }
.pf { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 14px; margin-bottom: 14px; }
.pf > span, .pf > label { color: var(--muted); font-weight: 500; font-size: 14px; }
.pf select { height: 40px; padding: 0 34px 0 12px; border-radius: 10px; border: 1px solid var(--cloud-2); font: 500 15px "DM Sans", system-ui, sans-serif; color: var(--ink); appearance: none;
  background: var(--cloud) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2313202e' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 11px; background: var(--cloud); }
.seg button { height: 36px; border: 0; border-radius: 9px; background: none; font-weight: 500; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.seg button[aria-checked=true] { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(19,32,46,.1); }
.seg button:active { transform: scale(.97); }
.seg em { font-style: normal; font-size: 12px; color: #2c7a4b; margin-left: 4px; }
.link-code { height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--cloud-2); background: var(--white); font: 500 18px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; width: 100%; color: var(--ink); }
.link-code:focus { outline: none; border-color: var(--red); }
.plan-pay { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.plan-pay b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; } .plan-pay small { color: var(--muted); }
.pay { margin-left: auto; height: 44px; padding: 0 22px; border: 0; border-radius: 99px; background: var(--red); color: #fff; font-weight: 600; }
.pay:hover { background: var(--red-2); } .pay:active { transform: scale(.97); } .pay:disabled { opacity: .6; cursor: default; }
.plan-fine { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .pf { grid-template-columns: 1fr; gap: 6px; } .seg button { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .seg button { transition: none; } }

/* ---- Hemlis world: overrides the plain base above ---- */
@font-face { font-family: Comfortaa; font-weight: 700; font-display: swap; src: url(fonts/comfortaa-700.woff2) format("woff2"); }
:root {
  --ink: #1c2b38; --ink-2: #4b5a66; --muted: #5d6c78; --faint: #8794a0;
  --cloud: rgba(28,43,56,.06); --cloud-2: rgba(28,43,56,.12); --white: #fff; --line: rgba(28,43,56,.08);
  --red: #2f6fb3; --red-2: #245c97; --err: #b3261e;
  --glass: rgba(255,255,255,.62); --glass-edge: rgba(255,255,255,.92);
}
body { font: 400 15px/1.45 -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif; background: linear-gradient(180deg, #a9cbe8 0%, #e6eff7 46%, #f4f8fb 100%) fixed; }
.brand { font: 700 26px/1 Comfortaa, sans-serif; letter-spacing: -.01em; color: #1c2b38; text-decoration: none; padding: 0 10px; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.gate { background: none; }
.gate-card { background: var(--glass); backdrop-filter: blur(18px) saturate(140%); box-shadow: inset 0 0 0 1px var(--glass-edge), 0 30px 60px -36px rgba(31,70,110,.55); }
.gate-card .brand { padding: 0; font-size: 30px; }
.field input { background: rgba(255,255,255,.75); border-color: rgba(28,43,56,.12); }
#gate-go, .primary, .pay { background: linear-gradient(#4f8fd0, #2f6fb3); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 8px -3px rgba(31,84,145,.6); }
#gate-go:hover, .primary:hover, .pay:hover { background: linear-gradient(#4a88c8, #2a66a6); }
.app { background: none; }
.side { background: none; padding: 22px 14px; }
.side nav a { color: var(--ink); }
.side nav a.on { background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge), 0 1px 2px rgba(28,43,56,.06); }
.meter { margin: auto 0 0; padding: 12px; border-radius: 12px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge); }
.meter .bar span { background: linear-gradient(90deg, #5d9bd9, #2f6fb3); }
.main { margin: 14px 14px 0 0; border-radius: 18px 18px 0 0; background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px var(--glass-edge), 0 -1px 0 rgba(28,43,56,.04); }
.ghost { background: rgba(255,255,255,.7); border-color: rgba(28,43,56,.1); }
.row:hover { background: rgba(47,111,179,.05); }
.toast { background: rgba(28,43,56,.92); backdrop-filter: blur(10px); }
.seg { background: rgba(28,43,56,.06); }
.seg em { color: #2c7a4b; }
.pf select { background-color: rgba(255,255,255,.8); }
.plan-note { background: rgba(232,116,59,.12); color: #9a4a1f; }
@media (max-width: 760px) {
  .side { padding: 12px 14px; }
  .brand { font-size: 24px; padding: 0; }
  .side nav { display: grid; grid-auto-flow: column; gap: 0; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.45); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
  .side nav a { height: 34px; padding: 0 12px; border-radius: 9px; font-size: 14px; gap: 6px; }
  .side nav a.on { background: #fff; }
  .main { margin: 0; border-radius: 18px 18px 0 0; }
}

/* file viewer: PDFs as pictures, pictures without hidden data, risky files explained */
.safeview { position: fixed; inset: 0; z-index: 20; display: grid; grid-template-rows: auto 1fr; background: linear-gradient(180deg, rgba(169,203,232,.92), rgba(230,239,247,.92)); backdrop-filter: blur(12px); }
.sv-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: rgba(255,255,255,.75); backdrop-filter: blur(16px); box-shadow: inset 0 -1px 0 rgba(28,43,56,.08); }
.sv-head > div { flex: 1; min-width: 0; } .sv-head b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.sv-head .ghost, .sv-head .pay { height: 36px; padding: 0 16px; border-radius: 99px; font-weight: 500; font-size: 14px; white-space: nowrap; }
.sv-head .pay { margin: 0; color: #fff; border: 0; font-weight: 600; } .sv-head button:active { transform: scale(.97); }
.sv-pages { overflow: auto; padding: 24px 16px 60px; display: grid; justify-items: center; align-content: start; gap: 18px; }
.sv-page, .sv-img { max-width: min(100%, 900px); height: auto; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px rgba(28,43,56,.06), 0 24px 50px -24px rgba(31,70,110,.45); }
.sv-text { max-width: 900px; width: 100%; margin: 0; padding: 20px; background: rgba(255,255,255,.85); border-radius: 12px; white-space: pre-wrap; font: 13px/1.5 ui-monospace, Menlo, monospace; }
@media (max-width: 640px) { .sv-head { flex-wrap: wrap; } .sv-head > div { flex-basis: 100%; } }

/* send: pick files, choose how long and how often, get one link */
.i-send { --i: url(icons/paper-plane-tilt.svg); }
.send h3.send-h3 { margin: 34px 0 8px; font-size: 16px; font-weight: 600; }
.send-drop { display: flex; align-items: center; gap: 12px; padding: 22px 18px; margin-bottom: 12px; border: 1.5px dashed rgba(47,111,179,.45); border-radius: 14px; background: rgba(255,255,255,.55); color: var(--ink-2); cursor: pointer; }
.send-drop:hover { background: rgba(255,255,255,.85); border-color: var(--red); }
.send-drop .i { width: 22px; height: 22px; color: var(--red); }
.send-drop b { color: var(--red); font-weight: 600; }
.send-files, .send-list { list-style: none; margin: 0 0 18px; padding: 0; }
.send-files li, .send-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 10px; border-bottom: 1px solid var(--line); }
.send-files .i, .send-list .i { color: var(--muted); }
.send-files .nm, .send-list .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.send-list .sd { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.send-list .ghost { height: 30px; padding: 0 12px; border-radius: 99px; font-size: 13px; }
.s-input { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--cloud-2); background: rgba(255,255,255,.8); font-size: 15px; color: var(--ink); max-width: 320px; width: 100%; }
.s-input:focus { outline: none; border-color: var(--red); background: #fff; }
.send-done { padding: 18px; border-radius: 14px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--glass-edge), 0 10px 30px -20px rgba(31,70,110,.4); }
.send-ready { margin: 0 0 10px; font-weight: 600; overflow-wrap: anywhere; }
.send-link { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.send-link input { height: 38px; min-width: 0; padding: 0 10px; border: 1px solid var(--cloud-2); border-radius: 8px; background: #fff; font: 13px ui-monospace, "SF Mono", Menlo, monospace; }
.send-link .ghost { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 14px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.send-again { margin-top: 14px; height: 34px; padding: 0 14px; border-radius: 99px; }
.gate-more { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .send-link { grid-template-columns: 1fr 1fr; } .send-link input { grid-column: 1 / -1; }
  .send-list li { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 0; padding: 6px 4px 6px 10px; }
  .send-list .sd { grid-column: 2; grid-row: 2; }
  .send-list .ghost { grid-column: 3; grid-row: 1 / 3; }
}

/* sign-in: headline on the sky, panel at right */
.gate { position: relative; }
.gate-top { position: absolute; left: clamp(20px, 6vw, 80px); top: 26px; padding: 0; }
.gate.split { grid-template-columns: minmax(0, 560px) 400px; justify-content: space-between; gap: 48px; padding: 24px clamp(20px, 6vw, 80px); }
.gate-hero h2 { margin: 0 0 14px; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; font-weight: 500; letter-spacing: -.02em; color: #1c2b38; }
.gate-hero p { margin: 0; font-size: 18px; color: #3d5266; max-width: 26em; }
.gate-card > .brand { display: none; }
.gate-or { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 13px; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; height: 1px; background: rgba(31,70,110,.15); }
.gate-pm { height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; border: 1px solid #3f4c57;
  background: linear-gradient(#73838f, #4c5a66); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-shadow: 0 -1px 0 rgba(0,0,0,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 3px 8px -3px rgba(40,52,62,.6); }
.gate-pm:hover { background: linear-gradient(#6a7a86, #44525d); }
.gate-pm img { height: 30px; margin-top: -2px; }
@media (max-width: 900px) { .gate.split { grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 28px; padding: 90px 16px 24px; } .gate.split .gate-card { padding: 24px; } .gate-hero { text-align: center; } .gate-hero h2 { font-size: 32px; } }

/* mailbox in the plan */
.mbox { margin-top: 28px; display: grid; gap: 12px; }
.mbox .send-h3 { margin: 0; }
.mb-addr { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.mb-addr input { flex: 1; min-width: 0; }
.mb-addr span { color: var(--ink-2); font-weight: 600; }
.mb-addr select { max-width: 45%; }

/* your devices: nearby ones in the sidebar, all of them where you send a file */
.near { margin: 18px 0 0; }
.near b { display: block; padding: 0 12px 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.near ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.near li { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.near li .dot { width: 8px; height: 8px; border-radius: 50%; background: #3f9a6b; box-shadow: 0 0 0 3px rgba(63,154,107,.18); flex: none; }
.near li.arrive { animation: near-in 420ms cubic-bezier(.23,1,.32,1); }
.near li.drop { background: rgba(63,154,107,.14); box-shadow: inset 0 0 0 1.5px #3f9a6b; }
@keyframes near-in { from { opacity: 0; transform: translateX(-8px); } }
@media (prefers-reduced-motion: reduce) { .near li.arrive { animation: none; } }
.send-to { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 0 10px 44px; }
.send-to p { margin: 0; color: var(--ink-2); font-size: 13px; }
.send-to button { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 99px; border: 1px solid rgba(31,70,110,.18);
  background: linear-gradient(#fff, #f1f5f9); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.send-to button .dot { width: 7px; height: 7px; border-radius: 50%; background: #3f9a6b; }
.send-to button.far .dot { background: #b8c3cc; }
.send-to button:disabled { opacity: .55; cursor: default; }
.toast button.open { margin-top: 6px; border: 0; background: none; padding: 0; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* the recovery words: numbered because the order matters */
.words-field { display: grid; gap: 8px; }
.words { list-style: none; margin: 0; padding: 12px 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px;
  counter-reset: w; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.words li { counter-increment: w; font: 500 15px/1.4 "DM Sans", system-ui, sans-serif; color: var(--ink); white-space: nowrap; }
.words li::before { content: counter(w); display: inline-block; width: 1.6em; color: var(--faint); font-variant-numeric: tabular-nums; font-size: 13px; }
.words-field .link { justify-self: start; border: 0; background: none; padding: 4px 0; font: 600 14px "DM Sans", system-ui, sans-serif; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 420px) { .words { grid-template-columns: repeat(2, 1fr); } }

/* account: passkeys and linked apps */
.acct-list { list-style: none; margin: 8px 0 22px; padding: 0; display: grid; gap: 8px; }
.acct-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.acct-list li div { display: grid; gap: 2px; min-width: 0; }
.acct-list li b { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-list li small { color: var(--muted); font-size: 13px; }
.acct-list li.none { color: var(--muted); font-size: 14px; background: none; box-shadow: none; padding: 4px 0; }
.acct-list button[data-sure="1"] { color: var(--err); }
#a-rec-new { margin: 12px 0; }
.acct-add { margin: -10px 0 24px; }
.acct .ghost { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px; font: 500 14px "DM Sans", system-ui, sans-serif; color: var(--ink); cursor: pointer; white-space: nowrap; }
.acct .ghost:disabled { opacity: .55; cursor: default; }
.acct .ghost .i { width: 16px; height: 16px; }
.acct-add { margin: -10px 0 26px; }
/* on this page the note is mostly good news: calm, not a warning */
.acct .plan-note { background: rgba(63,154,107,.12); color: #22613f; }
.acct .plan-note.bad { background: rgba(232,116,59,.12); color: #9a4a1f; }
.acct .plan-pay b { font-size: 17px; }

.acct .pay.danger { background: linear-gradient(#d0573f, #b23f2a); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 3px 8px -3px rgba(145,45,31,.6); }
.acct-close-h { margin-top: 40px; }
.acct-close .s-input { max-width: 220px; }
.closed .pay { display: inline-flex; align-items: center; margin: 0; text-decoration: none; }
.closed { max-width: 520px; margin: 18vh auto 0; padding: 0 24px; }
.closed h1 { font-size: 28px; margin: 0 0 12px; } .closed p { color: #555; line-height: 1.55; margin: 0 0 24px; }
/* wide windows: the sign-in page keeps the site's 1120px column instead of drifting to the edges */
@media (min-width: 901px) {
  .gate.split { padding-inline: max(clamp(20px, 6vw, 80px), calc((100% - 1120px) / 2)); }
  .gate-top { left: max(clamp(20px, 6vw, 80px), calc((100% - 1120px) / 2)); }
}
/* "Finish setup": a device put off in the guided setup */
.resume { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px; padding: 14px 18px; border-radius: 14px; background: var(--glass, #fff); box-shadow: inset 0 0 0 1px var(--line); }
.resume p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.resume button { border: 0; border-radius: 10px; padding: 9px 16px; background: var(--ink); color: #fff; font-weight: 600; }
