*[hidden] { display: none !important; }
:root {
  --bg: #0c0d10;
  --panel: #14151a;
  --panel-2: #191b21;
  --line: #262932;
  --text: #e5e7eb;
  --muted: #8d929b;
  --accent: #49bddc;
  --orange: #e3a45e;
  --red: #e15c5f;
  --green: #57b98d;
  color-scheme: dark;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .02em;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background:
  radial-gradient(50% 45% at 15% 0%, rgba(73, 189, 220, 0.18), transparent 70%),
  radial-gradient(42% 46% at 90% 4%, rgba(138, 124, 255, 0.14), transparent 72%),
  radial-gradient(55% 50% at 50% 105%, rgba(225, 92, 150, 0.06), transparent 72%),
  var(--bg); color: var(--text); }
button, input { font: inherit; }
button { cursor: pointer; }
h1 { font-size: 22px; margin: 0; letter-spacing: -0.3px; }
.muted { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.topbar { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(12,13,16,.56); backdrop-filter: blur(26px) saturate(135%); -webkit-backdrop-filter: blur(26px) saturate(135%); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 30px; height: 21px; color: var(--accent); flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-text strong { font-size: 13px; font-weight: 600; letter-spacing: -.1px; color: #f2f4f7; }
.brand-text small { font-size: 8.5px; letter-spacing: 1.7px; text-transform: uppercase; color: #7b828d; }
.top-actions { display: flex; gap: 8px; }
main { max-width: 1180px; margin: 0 auto; padding: 30px 24px 70px; }
.login-wrap { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; }
.login-card { width: min(420px, 100%); padding: 30px; border-radius: 22px; background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(26px) saturate(135%); -webkit-backdrop-filter: blur(26px) saturate(135%); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 30px 80px rgba(0,0,0,.4); }
.login-card h1 { margin-bottom: 5px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; font-size: 11px; color: #aeb3bc; }
.login-card input { width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid #30343d; background: #0b0c0f; color: var(--text); outline: none; }
.login-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(73,189,220,.12); }
.api-row input { font-size: 11px; }
.primary { width: 100%; margin-top: 20px; padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(126,227,247,.5); background: linear-gradient(180deg, rgba(104,211,235,.38), rgba(73,189,220,.18)); color: #eafcff; font-weight: 600; }
.ghost { padding: 7px 12px; border-radius: 9px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.04); color: #cfd3d8; }
.error { color: var(--red); font-size: 12px; min-height: 16px; margin: 12px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.stats { display: flex; gap: 8px; }
.stat { padding: 7px 11px; border-radius: 9px; background: rgba(20,22,28,.55); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 11px; color: var(--muted); }
.stat b { color: var(--text); }
.license-list { display: flex; flex-direction: column; gap: 12px; }
.orders-head { margin-top: 30px; }
.order { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.014)); backdrop-filter: blur(20px) saturate(130%); -webkit-backdrop-filter: blur(20px) saturate(130%); }
.order code { color: #d9dde3; font-family: ui-monospace, Menlo, monospace; font-size: 11px; }
.order .amount { color: #e9ecf0; font-size: 12px; }
.order .order-meta { color: var(--muted); font-size: 10.5px; margin-top: 4px; }
.order .key { color: var(--accent); font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; }
@media (max-width: 700px) { .order { grid-template-columns: 1fr; } }
.license { border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.014)); backdrop-filter: blur(20px) saturate(130%); -webkit-backdrop-filter: blur(20px) saturate(130%); overflow: hidden; }
.license-head { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 18px; align-items: center; }
.key { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 13px; color: #f0f3f6; letter-spacing: .6px; }
.meta { color: var(--muted); font-size: 11px; margin-top: 5px; display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 10px; letter-spacing: .5px; border: 1px solid; }
.badge.ACTIVE { color: var(--green); border-color: rgba(87,185,141,.4); background: rgba(87,185,141,.1); }
.badge.SUSPENDED { color: var(--orange); border-color: rgba(227,164,94,.4); background: rgba(227,164,94,.1); }
.badge.REVOKED { color: var(--red); border-color: rgba(225,92,95,.4); background: rgba(225,92,95,.1); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.actions button { padding: 6px 10px; border-radius: 8px; font-size: 11px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.04); color: #cdd1d7; }
.actions button.danger { color: #ffb9ba; border-color: rgba(225,92,95,.35); }
.devices { border-top: 1px solid var(--line); padding: 12px 18px 16px; }
.devices h3 { margin: 0 0 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: #747a84; }
.device { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 11px; }
.device:last-child { border-bottom: 0; }
.device .id { font-family: ui-monospace, Menlo, monospace; color: #c8ccd2; }
.device .info { flex: 1 1 auto; min-width: 0; color: var(--muted); }
.device button { padding: 5px 9px; border-radius: 7px; font-size: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #cdd1d7; }
.audit-panel { margin-top: 26px; }
.audit-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(16,18,23,.45); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.audit-row { display: grid; grid-template-columns: 170px 110px 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 11px; }
.audit-row:last-child { border-bottom: 0; }
.audit-row .time { color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.audit-row .event { color: var(--accent); }
.audit-row .detail { color: #a6abb4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 10px 16px; border-radius: 10px; background: rgba(20,21,26,.95); border: 1px solid #343842; color: #e7e9ed; font-size: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.toast.err { border-color: rgba(225,92,95,.5); color: #ffc2c3; }
.empty { padding: 40px; text-align: center; color: var(--muted); font-size: 12px; }
@media (max-width: 700px) {
  .license-head { grid-template-columns: 1fr; }
  .actions { justify-content: flex-start; }
  .audit-row { grid-template-columns: 1fr; gap: 3px; }
}

.api-test { display: flex; align-items: center; gap: 10px; margin: -4px 0 10px; }
.api-test .ghost { padding: 6px 10px; font-size: 10px; }
.api-status { color: #8a94a0; font-size: 10px; }
.api-status.ok { color: #58c092; }
.api-status.err { color: #e15c5f; }

.account-panel { margin-top: 26px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.account-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.014)); backdrop-filter: blur(20px) saturate(130%); -webkit-backdrop-filter: blur(20px) saturate(130%); }
.account-card h2 { font-size: 14px; margin: 0 0 6px; letter-spacing: -.2px; }
.account-card label { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 11px; color: #aeb3bc; }
.account-card input { width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid #30343d; background: #0b0c0f; color: var(--text); outline: none; }
.account-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(73,189,220,.12); }
.account-card .primary { margin-top: 16px; }
.account-msg { font-size: 11px; min-height: 15px; margin: 10px 0 0; color: var(--muted); }
.account-msg.ok { color: var(--green); }
.account-msg.err { color: var(--red); }
.secret-box { margin-top: 16px; padding: 13px; border-radius: 11px; border: 1px dashed rgba(73,189,220,.45); background: rgba(73,189,220,.07); font-size: 11px; }
.secret-box code { display: block; margin-top: 7px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; letter-spacing: 1.2px; word-break: break-all; color: #dffaff; }
.secret-box .otpauth { display: block; margin-top: 8px; font-size: 10px; color: var(--muted); word-break: break-all; }
@media (max-width: 800px) { .account-grid { grid-template-columns: 1fr; } }
.prices-card { max-width: 460px; }

.newsletter-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(16,18,23,.45); }
.newsletter-row { display: grid; grid-template-columns: 1fr 130px 160px auto; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 11.5px; align-items: center; }
.newsletter-row:last-child { border-bottom: 0; }
.newsletter-row .email { color: #e5e7eb; font-family: ui-monospace, Menlo, monospace; }
.newsletter-row .src { color: var(--muted); }
.newsletter-row .when { color: var(--muted); font-size: 10.5px; }
@media (max-width: 700px) { .newsletter-row { grid-template-columns: 1fr; gap: 3px; } }

.login-or { text-align: center; font-size: 10px; letter-spacing: 1px; color: var(--muted); margin: 14px 0 10px; text-transform: uppercase; }
.login-card .wide { width: 100%; margin-top: 0; }
.login-card #otpRow { margin-top: 12px; }

.system-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.system-counts div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; color: var(--muted); }
.system-counts b { display: block; color: var(--text); font-size: 18px; margin-top: 2px; }
.login-card #otpStep { display: grid; gap: 10px; margin-top: 16px; }
.login-card #otpStep .primary { margin-top: 0; }
.login-card #otpStep .ghost { margin-top: 0; }
.login-card #otpStep[hidden] { display: none; }

.conn-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); font-size: 10px; color: #aeb3bc; }
.conn-dot { width: 7px; height: 7px; border-radius: 50%; background: #8d929b; box-shadow: 0 0 0 3px rgba(141,146,155,.12); }
.conn-dot.ok { background: #57b98d; box-shadow: 0 0 0 3px rgba(87,185,141,.15), 0 0 10px rgba(87,185,141,.6); }
.conn-dot.err { background: #e15c5f; box-shadow: 0 0 0 3px rgba(225,92,95,.15), 0 0 10px rgba(225,92,95,.5); }

/* Split login */
.login-wrap { min-height: calc(100vh - 90px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-shell {
  width: min(1020px, 100%);
  height: min(620px, calc(100vh - 150px));
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(360px, 450px) 1fr;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(160deg, rgba(23,25,31,.82), rgba(10,11,14,.92));
  box-shadow: 0 40px 110px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.14);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
}
.login-pane { display: flex; flex-direction: column; padding: 36px 40px 30px; background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); }
.login-brand { display: flex; align-items: center; gap: 11px; }
.login-brand svg { width: 30px; height: 21px; color: #49bddc; flex: none; }
.login-wordmark { display: flex; flex-direction: column; gap: 5px; }
.login-wordmark strong { font-size: 13.5px; font-weight: 600; letter-spacing: -.2px; color: #f3f5f8; }
.login-wordmark small { font-size: 8px; letter-spacing: 1.9px; text-transform: uppercase; color: #79818d; }
.login-mark { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; display: grid; place-items: center; font-family: Georgia, serif; font-size: 18px; color: #fff; }
.login-pane h1 { font-family: inherit; font-weight: 400; font-size: 26px; letter-spacing: .06em; text-transform: uppercase; margin: 30px 0 0; color: #fff; line-height: 1.1; }
.login-sub { color: #8d949f; font-size: 11.5px; line-height: 1.65; margin: 9px 0 22px; max-width: 340px; }
.login-pane form { display: flex; flex-direction: column; gap: 12px; }
.login-pane label { display: flex; flex-direction: column; gap: 6px; font-size: 9px; letter-spacing: 1.15px; text-transform: uppercase; color: #8d949f; }
.login-pane input { height: 42px; padding: 0 14px; border-radius: 21px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.045); color: #eef1f5; outline: none; font-size: 12px; }
.login-pane input:focus { border-color: rgba(255,255,255,.42); box-shadow: 0 0 0 3px rgba(255,255,255,.06); }

.login-channel { display: flex; align-self: flex-end; width: fit-content; margin: 2px 0 4px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.03); }
.login-channel button {
  flex: 0 0 auto;
  width: 64px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #9aa1ac;
  font-family: inherit;
  font-size: 8.5px;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.login-channel button + button { border-left: 1px solid rgba(255,255,255,.14); }
.login-channel button.is-active { color: #0b0c0f; background: #f2f4f7; }
.login-channel button:disabled { opacity: .28; cursor: not-allowed; }



.login-channel-hint a { color: inherit; text-decoration: underline; }
.login-channel-hint { margin: 2px 0 0; color: #78837a; font-size: 9px; line-height: 1.6; letter-spacing: .03em; }

.login-submit { height: 42px; border-radius: 21px; border: 1px solid rgba(255,255,255,.22); background: #f2f4f7; color: #0b0c0f; font-size: 11px; font-weight: 600; letter-spacing: .5px; cursor: pointer; margin-top: 2px; }
.login-submit:hover { background: #fff; }
.login-resend { height: 38px; border-radius: 19px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #b9c0ca; font-size: 11px; cursor: pointer; }
#otpStep[hidden] { display: none; }
#otpStep .login-sub { margin-bottom: 24px; }
.login-back {
  border: 0;
  background: transparent;
  color: #8d949f;
  font-size: 10.5px;
  letter-spacing: .3px;
  padding: 2px 4px;
  align-self: center;
  cursor: pointer;
}
.login-back:hover { color: #e7ebf0; }
.login-pane .account-msg, .login-pane .error { font-size: 10.5px; }
.login-foot { margin-top: auto; padding-top: 18px; font-size: 8px; letter-spacing: 1.2px; text-transform: uppercase; color: #5d6570; }
.login-visual { position: relative; background: radial-gradient(80% 80% at 60% 40%, #1b1e24, #08090b 70%); overflow: hidden; }
.login-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.visual-caption { position: absolute; left: 24px; right: 24px; bottom: 18px; display: flex; justify-content: space-between; font-size: 8px; letter-spacing: 2px; color: rgba(255,255,255,.35); }
@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; height: auto; max-height: none; }
  .login-visual { min-height: 260px; }
  .login-pane { padding: 30px; }
}

/* Transparent login canvas */
body.login-mode { background: transparent !important; }
body.login-mode .topbar { display: none; }
body.login-mode main { max-width: none; padding: 0; }
body.login-mode .login-wrap { min-height: 100vh; padding: 0; }
.login-wrap { padding: 0; }
.login-shell {
  width: min(1024px, calc(100vw - 24px));
  height: min(625px, calc(100vh - 48px));
  min-height: 540px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: transparent;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}
.login-pane {
  position: relative;
  background: linear-gradient(165deg, rgba(20,22,27,.94), rgba(10,12,15,.86));
  backdrop-filter: blur(38px) saturate(150%);
  -webkit-backdrop-filter: blur(38px) saturate(150%);
}
.login-conn { position: absolute; top: 22px; right: 22px; display: inline-flex; }
.conn-pill { padding: 0; width: 24px; height: 24px; justify-content: center; border-color: transparent; background: transparent; }
.conn-pill .conn-dot { width: 8px; height: 8px; }
.login-conn .conn-dot { width: 8px; height: 8px; }
.conn-dot.checking { background: #e3a45e; box-shadow: 0 0 0 3px rgba(227,164,94,.15), 0 0 10px rgba(227,164,94,.45); animation: connPulse 1.2s ease-in-out infinite; }
@keyframes connPulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }

/* Fill the whole window on login: no outer frame */
body.login-mode .login-wrap { min-height: 100vh; height: 100vh; }
body.login-mode .login-shell {
  width: 100vw;
  height: 100vh;
  min-height: 0;
  max-height: none;
  border-radius: 14px;
  border: 0;
  box-shadow: none;
}
body.login-mode .login-pane { border-radius: 14px 0 0 14px; }
body.login-mode .login-visual { border-radius: 0 14px 14px 0; }

/* Fade the seam between the form and the ASCII field */
body.login-mode .login-visual::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 130px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(24, 27, 33, .96) 0%,
    rgba(24, 27, 33, .72) 28%,
    rgba(24, 27, 33, .28) 62%,
    rgba(24, 27, 33, 0) 100%);
}
body.login-mode .login-visual canvas { position: absolute; z-index: 1; }
body.login-mode .visual-caption { z-index: 4; }
body.login-mode .login-pane::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 34px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(24,27,33,0), rgba(24,27,33,.45));
  z-index: 2;
}


/* Seamless login/ASCII seam */
body.login-mode .login-pane::after { display: none !important; }
body.login-mode .login-visual::before {
  width: 220px;
  background: linear-gradient(90deg,
    rgba(20, 22, 28, .96) 0%,
    rgba(20, 22, 28, .78) 24%,
    rgba(20, 22, 28, .42) 52%,
    rgba(20, 22, 28, .14) 76%,
    rgba(20, 22, 28, 0) 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.7) 55%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.7) 55%, transparent 100%);
}

/* Black fade at the login/ASCII seam */
body.login-mode .login-visual { box-shadow: inset 34px 0 70px rgba(0,0,0,.75); }
body.login-mode .login-visual::before {
  background: linear-gradient(90deg,
    #000 0%,
    rgba(0,0,0,.9) 22%,
    rgba(0,0,0,.55) 50%,
    rgba(0,0,0,.18) 76%,
    rgba(0,0,0,0) 100%);
  -webkit-mask-image: none;
  mask-image: none;
}

.login-pane { overflow-y: auto; overflow-x: hidden; min-height: 0; scrollbar-width: none; }
.login-pane::-webkit-scrollbar { display: none; }

/* True seamless opacity fade at the pane/ASCII boundary */
body.login-mode .login-pane { background: linear-gradient(90deg, rgba(20,22,27,.94) 0%, rgba(20,22,27,.94) 76%, rgba(0,0,0,1) 100%); }
body.login-mode .login-visual { box-shadow: none; }
body.login-mode .login-visual::before {
  width: 210px;
  background: linear-gradient(90deg,
    #000 0%,
    rgba(0,0,0,.94) 18%,
    rgba(0,0,0,.68) 42%,
    rgba(0,0,0,.36) 64%,
    rgba(0,0,0,.12) 84%,
    rgba(0,0,0,0) 100%);
  -webkit-mask-image: none;
  mask-image: none;
}

/* Black left pane, fully transparent right pane */
body.login-mode .login-shell { background: transparent; border-color: transparent; }
body.login-mode .login-pane { background: rgba(0, 0, 0, .9); }
body.login-mode .login-visual { background: transparent; box-shadow: none; }
body.login-mode .login-visual::before {
  width: 230px;
  background: linear-gradient(90deg,
    #000 0%,
    rgba(0,0,0,.96) 16%,
    rgba(0,0,0,.72) 40%,
    rgba(0,0,0,.4) 62%,
    rgba(0,0,0,.14) 82%,
    rgba(0,0,0,0) 100%);
}
.login-conn { position: fixed; top: 22px; right: 22px; left: auto; z-index: 40; }

/* Right side black, left side transparent liquid glass */
body.login-mode .login-pane {
  background: linear-gradient(165deg, rgba(24, 27, 34, .82), rgba(10, 12, 16, .66));
  backdrop-filter: blur(38px) saturate(155%);
  -webkit-backdrop-filter: blur(38px) saturate(155%);
}
body.login-mode .login-visual { background: #050505; }
body.login-mode .login-visual::before {
  width: 180px;
  background: linear-gradient(90deg, rgba(20,22,27,.85) 0%, rgba(0,0,0,.55) 32%, rgba(0,0,0,.2) 64%, rgba(0,0,0,0) 100%);
}
.login-conn { position: absolute; top: 22px; right: 22px; left: auto; z-index: 10; }

/* Six-box email code */
.otp-boxes { display: flex; gap: 8px; }
.otp-box {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
.otp-box:focus { border-color: rgba(255,255,255,.42); box-shadow: 0 0 0 3px rgba(255,255,255,.06); }

/* ============================================================
   Dashboard — mirrors the website's monospace editorial style
   ============================================================ */
body:not(.login-mode) {
  background: #070907;
  color: #e8efe6;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

/* Transparent titlebar, content clears the macOS traffic lights */
body:not(.login-mode) .topbar {
  height: 70px;
  padding: 0 24px 0 92px;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  -webkit-app-region: drag;
}
body:not(.login-mode) .topbar .brand,
body:not(.login-mode) .topbar .top-actions { -webkit-app-region: no-drag; }
body:not(.login-mode) .brand svg { width: 26px; height: 18px; color: #e8efe6; }
body:not(.login-mode) .brand-text strong {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #e8efe6;
}
body:not(.login-mode) .brand-text small {
  font-size: 8px;
  letter-spacing: .16em;
  color: rgba(232,239,230,.32);
}
body:not(.login-mode) .top-actions { gap: 2px; align-items: center; }
body:not(.login-mode) .ghost {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 7px 9px;
  color: rgba(232,239,230,.5);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body:not(.login-mode) .ghost:hover { color: #e8efe6; }
body:not(.login-mode) .conn-pill {
  width: auto;
  height: auto;
  padding: 0 8px;
  border: 0;
  background: transparent;
}
body:not(.login-mode) .conn-pill .conn-dot { width: 6px; height: 6px; }

body:not(.login-mode) main { max-width: 1180px; padding: 26px 28px 90px; }

body:not(.login-mode) h1 {
  font-family: inherit;
  font-size: clamp(20px, 3.2vw, 34px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.15;
}
body:not(.login-mode) h2 {
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .12em;
}
body:not(.login-mode) .muted { color: rgba(232,239,230,.32); font-size: 10.5px; letter-spacing: .04em; margin-top: 8px; }
body:not(.login-mode) .section-head {
  border-bottom: 1px solid rgba(232,239,230,.14);
  padding-bottom: 18px;
  align-items: flex-end;
  margin-bottom: 0;
}
body:not(.login-mode) .stats { gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
body:not(.login-mode) .stat {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(232,239,230,.32);
}
body:not(.login-mode) .stat b { color: #e8efe6; font-weight: 400; margin-left: 4px; }

body:not(.login-mode) .license-list { gap: 0; }
body:not(.login-mode) .license {
  border: 0;
  border-bottom: 1px solid rgba(232,239,230,.14);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
body:not(.login-mode) .license-head { padding: 18px 0; }
body:not(.login-mode) .key { font-family: inherit; font-size: 12px; letter-spacing: .03em; color: #e8efe6; }
body:not(.login-mode) .meta {
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(232,239,230,.32);
  gap: 14px;
  margin-top: 8px;
}
body:not(.login-mode) .badge {
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 9px;
  letter-spacing: .12em;
  background: transparent;
}
body:not(.login-mode) .badge.ACTIVE { color: #b9eccd; }
body:not(.login-mode) .badge.SUSPENDED { color: #e8d3a8; }
body:not(.login-mode) .badge.REVOKED { color: #efb5b6; }

body:not(.login-mode) .actions { gap: 16px; align-items: center; }
body:not(.login-mode) .actions button {
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 5px 0;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(232,239,230,.6);
}
body:not(.login-mode) .actions button:hover { color: #e8efe6; border-bottom-color: currentColor; }
body:not(.login-mode) .actions button.danger { color: #efb5b6; border-color: transparent; }

body:not(.login-mode) .devices { border-top: 1px solid rgba(232,239,230,.08); padding: 16px 0 20px; }
body:not(.login-mode) .devices h3 { font-size: 8.5px; letter-spacing: .16em; color: rgba(232,239,230,.32); }
body:not(.login-mode) .device { border-bottom: 1px solid rgba(232,239,230,.06); font-size: 10px; padding: 10px 0; }
body:not(.login-mode) .device .id { font-family: inherit; color: #d7ddd4; }
body:not(.login-mode) .device .info { color: rgba(232,239,230,.32); }
body:not(.login-mode) .device button {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 4px 0;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(232,239,230,.55);
}
body:not(.login-mode) .device button:hover { color: #e8efe6; }

body:not(.login-mode) .orders-head { margin-top: 44px; }
body:not(.login-mode) .order {
  border: 0;
  border-bottom: 1px solid rgba(232,239,230,.14);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  padding: 16px 0;
}
body:not(.login-mode) .order code,
body:not(.login-mode) .order .key { font-family: inherit; letter-spacing: .04em; }
body:not(.login-mode) .order .amount { font-size: 11px; color: #e8efe6; }
body:not(.login-mode) .order .order-meta { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
body:not(.login-mode) .order .key { color: rgba(232,239,230,.55); }

body:not(.login-mode) .account-card,
body:not(.login-mode) .newsletter-list,
body:not(.login-mode) .audit-list,
body:not(.login-mode) .secret-box {
  border: 1px solid rgba(232,239,230,.14);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
body:not(.login-mode) .account-card { padding: 22px; }
body:not(.login-mode) .account-card label {
  font-size: 8.5px;
  letter-spacing: .12em;
  color: rgba(232,239,230,.32);
}
body:not(.login-mode) .account-card input {
  border-radius: 0;
  border: 1px solid rgba(232,239,230,.16);
  background: rgba(255,255,255,.02);
  font-size: 12px;
}
body:not(.login-mode) .account-card input:focus {
  border-color: rgba(232,239,230,.42);
  box-shadow: 0 0 0 3px rgba(232,239,230,.05);
}
body:not(.login-mode) .primary {
  border: 0;
  border-radius: 0;
  background: #e8efe6;
  color: #070907;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body:not(.login-mode) .primary:hover { background: #fff; }

body:not(.login-mode) .newsletter-row { border-bottom: 1px solid rgba(232,239,230,.08); font-size: 10px; }
body:not(.login-mode) .newsletter-row .email { font-family: inherit; }
body:not(.login-mode) .audit-row { border-bottom: 1px solid rgba(232,239,230,.08); font-size: 10px; }
body:not(.login-mode) .audit-row .time { font-family: inherit; }
body:not(.login-mode) .system-counts div { border: 1px solid rgba(232,239,230,.14); border-radius: 0; }
body:not(.login-mode) .toast {
  background: #070907;
  border: 1px solid rgba(232,239,230,.18);
  border-radius: 0;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: .04em;
}

/* Pricing editor + live website preview */
body:not(.login-mode) .pricing-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 18px;
  align-items: start;
}
body:not(.login-mode) .prices-card { max-width: none; }
body:not(.login-mode) .prices-card select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 0;
  border: 1px solid rgba(232,239,230,.16);
  background: rgba(255,255,255,.02);
  color: #e8efe6;
  font: inherit;
  font-size: 12px;
  outline: none;
}
body:not(.login-mode) .prices-card select:focus {
  border-color: rgba(232,239,230,.42);
  box-shadow: 0 0 0 3px rgba(232,239,230,.05);
}
body:not(.login-mode) .discount-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(232,239,230,.12);
}
body:not(.login-mode) .discount-block h3 {
  margin: 0;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(232,239,230,.55);
}
body:not(.login-mode) .discount-block > label { margin-top: 12px; }
body:not(.login-mode) .discount-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
body:not(.login-mode) .price-preview {
  border: 1px solid rgba(232,239,230,.14);
  padding: 24px;
  background: transparent;
}
body:not(.login-mode) .preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
body:not(.login-mode) .kicker,
body:not(.login-mode) .preview-kicker,
body:not(.login-mode) .preview-status {
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(232,239,230,.38);
}
body:not(.login-mode) .preview-status { color: #e8efe6; }
body:not(.login-mode) .preview-title {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
body:not(.login-mode) .preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
  border-top: 1px solid rgba(232,239,230,.14);
  border-bottom: 1px solid rgba(232,239,230,.14);
}
body:not(.login-mode) .preview-card {
  padding: 14px 12px 18px;
  border-right: 1px solid rgba(232,239,230,.14);
}
body:not(.login-mode) .preview-card:last-child { border-right: 0; }
body:not(.login-mode) .preview-card.popular { background: rgba(255,255,255,.03); }
body:not(.login-mode) .preview-price {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.2;
  color: #e8efe6;
  white-space: nowrap;
}
body:not(.login-mode) .preview-price s {
  display: block;
  color: rgba(232,239,230,.3);
  font-size: 11px;
  margin-bottom: 4px;
}
body:not(.login-mode) .preview-price span { font-size: 8px; color: rgba(232,239,230,.38); }
body:not(.login-mode) .preview-sub {
  margin-top: 8px;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(232,239,230,.38);
}
body:not(.login-mode) .preview-note {
  margin: 16px 0 0;
  font-size: 9.5px;
  line-height: 1.7;
  letter-spacing: .06em;
  color: rgba(232,239,230,.38);
}
body:not(.login-mode) .preview-note.err { color: #efb5b6; }
body:not(.login-mode) .discount-block .muted { margin-top: 10px; }
@media (max-width: 980px) {
  body:not(.login-mode) .pricing-layout { grid-template-columns: 1fr; }
  body:not(.login-mode) .preview-grid { grid-template-columns: 1fr 1fr; }
  body:not(.login-mode) .preview-card:nth-child(2) { border-right: 0; }
}

/* Integrations */
body:not(.login-mode) .integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
body:not(.login-mode) .integration-card {
  border: 1px solid rgba(232,239,230,.14);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
body:not(.login-mode) .integration-top { display: flex; align-items: center; gap: 12px; }
body:not(.login-mode) .integration-logo {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232,239,230,.18);
  color: #e8efe6;
}
body:not(.login-mode) .integration-logo svg { width: 19px; height: 19px; }
body:not(.login-mode) .integration-logo.github { color: #e8efe6; }
body:not(.login-mode) .integration-logo.vercel { color: #e8efe6; }
body:not(.login-mode) .integration-logo.railway { color: #c9b6ff; }
body:not(.login-mode) .integration-logo.gmail { color: #efc3b9; }
body:not(.login-mode) .integration-logo.velianpay { color: #9fd8ec; }
body:not(.login-mode) .integration-monogram { font-size: 10px; letter-spacing: .08em; }
body:not(.login-mode) .integration-identity { min-width: 0; }
body:not(.login-mode) .integration-identity h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body:not(.login-mode) .integration-account {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: .06em;
  color: rgba(232,239,230,.38);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body:not(.login-mode) .integration-dot { margin-left: auto; flex: none; }
body:not(.login-mode) .integration-detail {
  margin: 0;
  flex: 1 1 auto;
  font-size: 10px;
  line-height: 1.7;
  color: rgba(232,239,230,.38);
}
body:not(.login-mode) .integration-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(232,239,230,.1);
  padding-top: 12px;
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(232,239,230,.38);
}
body:not(.login-mode) .integration-state.ok { color: #b9eccd; }
body:not(.login-mode) .integration-state.warn { color: #e8d3a8; }
body:not(.login-mode) .integration-state.error { color: #efb5b6; }
body:not(.login-mode) .integration-foot a {
  color: #e8efe6;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}
body:not(.login-mode) .integration-foot a:hover { opacity: .6; }

/* Drag and drop installer */
body:not(.login-mode) .upload-zone {
  margin-top: 16px;
  padding: 18px 14px;
  border: 1px dashed rgba(232,239,230,.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
body:not(.login-mode) .upload-zone.drag {
  border-color: #e8efe6;
  background: rgba(255,255,255,.04);
}
body:not(.login-mode) .upload-zone strong {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body:not(.login-mode) .upload-zone > span { font-size: 9px; color: rgba(232,239,230,.38); }
body:not(.login-mode) .upload-zone .ghost {
  margin-top: 6px;
  border: 1px solid rgba(232,239,230,.18);
  padding: 6px 12px;
}
body:not(.login-mode) .upload-zone .account-msg { margin: 0; }

/* Mobile admin (web) */
@media (max-width: 700px) {
  body:not(.login-mode) .topbar {
    height: auto;
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  body:not(.login-mode) .top-actions {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }
  body:not(.login-mode) main { padding: 18px 16px 70px; }
  body:not(.login-mode) .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  body:not(.login-mode) .stats { justify-content: flex-start; }
  body:not(.login-mode) .pricing-layout { grid-template-columns: 1fr; }
  body:not(.login-mode) .preview-grid { grid-template-columns: 1fr 1fr; }
  body:not(.login-mode) .preview-card:nth-child(2) { border-right: 0; }
  body.login-mode .login-pane { padding: 28px 24px 24px; }
  body.login-mode .login-pane h1 { font-size: 24px; margin-top: 22px; }
  body.login-mode .login-visual { display: none; }
  body.login-mode .login-shell { border-radius: 0; }
}

/* Website editor textareas */
body:not(.login-mode) .account-card textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 0;
  border: 1px solid rgba(232,239,230,.16);
  background: rgba(255,255,255,.02);
  color: #e8efe6;
  font: inherit;
  font-size: 12px;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  min-height: 42px;
}
body:not(.login-mode) .account-card textarea:focus {
  border-color: rgba(232,239,230,.42);
  box-shadow: 0 0 0 3px rgba(232,239,230,.05);
}

body:not(.login-mode) .account-card label.check {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e8efe6;
}
body:not(.login-mode) .account-card label.check input {
  width: auto;
  height: auto;
  margin: 0;
  accent-color: #e8efe6;
}

/* Support tickets */
body:not(.login-mode) .ticket-list { display: flex; flex-direction: column; gap: 0; }
body:not(.login-mode) .ticket-card {
  border-bottom: 1px solid rgba(232,239,230,.14);
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
body:not(.login-mode) .ticket-card.resolved { opacity: .55; }
body:not(.login-mode) .ticket-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; width: 100%; }
body:not(.login-mode) .ticket-head b { font-size: 11px; font-weight: 400; letter-spacing: .06em; }
body:not(.login-mode) .ticket-state { font-size: 8.5px; letter-spacing: .12em; }
body:not(.login-mode) .ticket-state.open { color: #e8d3a8; }
body:not(.login-mode) .ticket-state.resolved { color: #b9eccd; }
body:not(.login-mode) .ticket-meta { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: rgba(232,239,230,.38); }
body:not(.login-mode) .ticket-message { margin: 0; font-size: 11px; line-height: 1.75; color: rgba(232,239,230,.72); white-space: pre-wrap; }
body:not(.login-mode) .ticket-card button {
  border: 1px solid rgba(232,239,230,.18);
  background: transparent;
  border-radius: 0;
  padding: 6px 10px;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e8efe6;
}

body:not(.login-mode) .integration-usage { display: flex; flex-direction: column; gap: 7px; }
body:not(.login-mode) .integration-bar {
  height: 2px;
  background: rgba(232,239,230,.12);
  overflow: hidden;
}
body:not(.login-mode) .integration-bar i {
  display: block;
  height: 100%;
  background: #b9eccd;
  transition: width .3s ease;
}
body:not(.login-mode) .integration-bar.warn i { background: #e8d3a8; }
body:not(.login-mode) .integration-bar.error i { background: #efb5b6; }
body:not(.login-mode) .integration-usage span {
  font-size: 8.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(232,239,230,.38);
}

body:not(.login-mode) .ticket-ai {
  width: 100%;
  border: 1px dashed rgba(232,239,230,.22);
  padding: 12px 14px;
  background: rgba(255,255,255,.02);
}
body:not(.login-mode) .ticket-ai strong {
  display: block;
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(232,239,230,.55);
  margin-bottom: 8px;
}
body:not(.login-mode) .ticket-ai pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 10.5px;
  line-height: 1.75;
  color: rgba(232,239,230,.72);
}

/* iPhone / narrow mobile */
@media (max-width: 480px) {
  html, body { -webkit-text-size-adjust: 100%; }
  body.login-mode .login-wrap { min-height: 100dvh; height: 100dvh; }
  body.login-mode .login-shell { width: 100vw; height: 100dvh; min-height: 0; border-radius: 0; }
  body.login-mode .login-visual { display: none; }
  body.login-mode .login-pane {
    border-radius: 0;
    padding: calc(24px + env(safe-area-inset-top)) 22px calc(18px + env(safe-area-inset-bottom));
  }
  body.login-mode .login-pane h1 { font-size: 22px; letter-spacing: .05em; margin-top: 20px; }
  body.login-mode .login-sub { font-size: 11px; margin: 8px 0 18px; }
  body.login-mode .login-brand svg { width: 26px; height: 18px; }
  body.login-mode .login-wordmark strong { font-size: 12px; }
  body.login-mode .login-wordmark small { font-size: 7px; letter-spacing: 1.5px; }
  body.login-mode .login-pane label { font-size: 8.5px; }
  body.login-mode .login-pane input { height: 44px; font-size: 16px; }
  body.login-mode .otp-box { height: 46px; font-size: 17px; }
  body.login-mode .login-submit { min-height: 46px; font-size: 11px; }
  body.login-mode .login-resend { min-height: 42px; }
  body.login-mode .login-foot { font-size: 7.5px; padding-top: 14px; }

  body:not(.login-mode) .topbar {
    height: auto;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  body:not(.login-mode) .brand { gap: 9px; }
  body:not(.login-mode) .brand-text strong { font-size: 10.5px; }
  body:not(.login-mode) .top-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    overflow: visible;
  }
  body:not(.login-mode) .ghost {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 6px 8px;
    font-size: 8px;
    letter-spacing: .1em;
  }
  body:not(.login-mode) .conn-pill { padding: 0 8px; }
  body:not(.login-mode) main { padding: 16px 14px calc(56px + env(safe-area-inset-bottom)); }
  body:not(.login-mode) h1 { font-size: 22px; }
  body:not(.login-mode) .muted { font-size: 10px; }
  body:not(.login-mode) .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 14px;
  }
  body:not(.login-mode) .stats { gap: 10px 14px; justify-content: flex-start; }
  body:not(.login-mode) .stat { font-size: 8px; }
  body:not(.login-mode) .actions { gap: 12px; }
  body:not(.login-mode) .license-head { grid-template-columns: 1fr; gap: 12px; }
  body:not(.login-mode) .order { grid-template-columns: 1fr; gap: 8px; }
  body:not(.login-mode) .newsletter-row { grid-template-columns: 1fr; gap: 6px; }
  body:not(.login-mode) .audit-row { grid-template-columns: 1fr; gap: 4px; }
  body:not(.login-mode) .account-grid { grid-template-columns: 1fr; }
  body:not(.login-mode) .pricing-layout { grid-template-columns: 1fr; }
  body:not(.login-mode) .preview-grid { grid-template-columns: 1fr 1fr; }
  body:not(.login-mode) .preview-card:nth-child(2) { border-right: 0; }
  body:not(.login-mode) .integration-grid { grid-template-columns: 1fr; }
  body:not(.login-mode) .ticket-head { flex-wrap: wrap; }
  body:not(.login-mode) .ticket-card button { min-height: 40px; }
  body:not(.login-mode) .account-card { padding: 18px; }
  body:not(.login-mode) .account-card input,
  body:not(.login-mode) .prices-card select,
  body:not(.login-mode) .account-card textarea { font-size: 16px; }
  body:not(.login-mode) .primary { min-height: 44px; }
  body:not(.login-mode) .toast {
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: none;
    text-align: center;
  }
}

/* Integration usage: icon + single label, no duplicated text */
body:not(.login-mode) .integration-card { padding: 22px; gap: 16px; }
body:not(.login-mode) .integration-usage { display: flex; align-items: center; gap: 11px; }
body:not(.login-mode) .integration-usage-icon {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232,239,230,.16);
  color: rgba(232,239,230,.55);
}
body:not(.login-mode) .integration-usage-icon svg { width: 14px; height: 14px; }
body:not(.login-mode) .integration-usage-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
body:not(.login-mode) .integration-usage-label {
  font-size: 8.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(232,239,230,.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body:not(.login-mode) .integration-usage .integration-bar { width: 100%; }
body:not(.login-mode) .integration-usage span { color: inherit; font-size: inherit; letter-spacing: inherit; text-transform: inherit; }

/* Grouped admin navigation */
.admin-sidebar {
  position: fixed;
  left: 0;
  top: 70px;
  bottom: 0;
  width: 200px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px 14px;
  overflow-y: auto;
  background: rgba(7, 9, 7, .62);
  border-right: 1px solid rgba(232, 239, 230, .1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  -webkit-app-region: no-drag;
}
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-group > span {
  padding: 0 10px 8px;
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(232, 239, 230, .3);
}
.side-link {
  text-align: left;
  border: 0;
  background: transparent;
  color: rgba(232, 239, 230, .55);
  padding: 9px 10px;
  font: inherit;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
}
.side-link:hover { color: #e8efe6; background: rgba(255, 255, 255, .03); }
.side-link.active { color: #070907; background: #e8efe6; }
body:not(.login-mode) main { margin: 0 0 0 200px; max-width: 1180px; }
.sidebar-toggle, .sidebar-backdrop { display: none !important; }

@media (max-width: 900px) {
  body:not(.login-mode) main { margin-left: 0; max-width: none; }
  .admin-sidebar {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 10px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(232, 239, 230, .1);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    scrollbar-width: none;
  }
  .admin-sidebar::-webkit-scrollbar { display: none; }
  .side-group { flex-direction: row; align-items: center; gap: 2px; flex: 0 0 auto; }
  .side-group > span { display: none; }
  .side-link { white-space: nowrap; padding: 8px 9px; font-size: 9px; }
}

/* Backup list */
body:not(.login-mode) .backup-list { margin-top: 12px; display: flex; flex-direction: column; gap: 0; }
body:not(.login-mode) .backup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(232,239,230,.08);
  font-size: 9.5px;
  letter-spacing: .04em;
}
body:not(.login-mode) .backup-row span:first-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body:not(.login-mode) .backup-meta { color: rgba(232,239,230,.38); white-space: nowrap; }
body:not(.login-mode) .backup-row button {
  border: 1px solid rgba(232,239,230,.18);
  background: transparent;
  color: #e8efe6;
  padding: 5px 8px;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Storage page */
body:not(.login-mode) .storage-heading {
  margin: 28px 0 6px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(232,239,230,.4);
}
body:not(.login-mode) .storage-list { display: flex; flex-direction: column; }
body:not(.login-mode) .storage-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(232,239,230,.08);
  font-size: 9.5px;
  letter-spacing: .04em;
}
body:not(.login-mode) .storage-row > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body:not(.login-mode) .storage-meta { color: rgba(232,239,230,.38); white-space: nowrap; }
body:not(.login-mode) .storage-row a,
body:not(.login-mode) .storage-row button {
  border: 1px solid rgba(232,239,230,.18);
  background: transparent;
  color: #e8efe6;
  padding: 5px 8px;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}


body:not(.login-mode) .storage-providers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
body:not(.login-mode) .storage-provider {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(232,239,230,.14);
  min-height: 150px;
}
body:not(.login-mode) .storage-provider.is-selected {
  border-color: rgba(232,239,230,.62);
  background: rgba(232,239,230,.045);
}
body:not(.login-mode) .storage-provider-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
body:not(.login-mode) .storage-provider h3 { margin: 0; font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
body:not(.login-mode) .storage-provider .capacity { color: rgba(232,239,230,.4); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
body:not(.login-mode) .storage-provider p { color: rgba(232,239,230,.42); font-size: 9px; line-height: 1.65; margin: 0; }
body:not(.login-mode) .storage-provider .selected-tag { color: #8fd6a8; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
body:not(.login-mode) .storage-provider-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
body:not(.login-mode) .storage-provider-actions button,
body:not(.login-mode) .storage-provider-actions a {
  border: 1px solid rgba(232,239,230,.18);
  background: transparent;
  color: #e8efe6;
  padding: 5px 8px;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
body:not(.login-mode) .storage-provider-actions button:disabled { opacity: .35; cursor: not-allowed; }
body:not(.login-mode) .storage-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body:not(.login-mode) .storage-heading-row .storage-heading { margin-bottom: 6px; }

/* Manual license generation */
body:not(.login-mode) .section-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
body:not(.login-mode) .license-gen {
  border: 1px solid rgba(232,239,230,.14);
  padding: 20px;
  margin-top: 16px;
}
body:not(.login-mode) .license-gen-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .5fr;
  gap: 12px;
}
body:not(.login-mode) .license-gen label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(232,239,230,.4);
}
body:not(.login-mode) .license-gen input,
body:not(.login-mode) .license-gen select {
  padding: 9px 11px;
  border-radius: 0;
  border: 1px solid rgba(232,239,230,.16);
  background: rgba(255,255,255,.02);
  color: #e8efe6;
  font: inherit;
  font-size: 12px;
}
body:not(.login-mode) .license-gen .primary { margin-top: 14px; width: auto; padding: 10px 16px; }
body:not(.login-mode) .gen-results { margin-top: 18px; border-top: 1px solid rgba(232,239,230,.1); padding-top: 14px; }
body:not(.login-mode) .gen-results-head { display: flex; align-items: center; justify-content: space-between; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(232,239,230,.4); }
body:not(.login-mode) .gen-key-list { margin-top: 10px; display: flex; flex-direction: column; }
body:not(.login-mode) .gen-key-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(232,239,230,.08);
  font-size: 10px;
}
body:not(.login-mode) .gen-key-row code { flex: 1 1 auto; font-family: inherit; color: #e8efe6; letter-spacing: .04em; }
body:not(.login-mode) .gen-key-row span { color: rgba(232,239,230,.38); font-size: 8.5px; text-transform: uppercase; }
body:not(.login-mode) .gen-key-row button { border: 1px solid rgba(232,239,230,.18); background: transparent; color: #e8efe6; padding: 5px 8px; font-size: 8px; text-transform: uppercase; }
@media (max-width: 700px) {
  body:not(.login-mode) .license-gen-grid { grid-template-columns: 1fr; }
  body:not(.login-mode) .section-tools { justify-content: flex-start; }
}

.email-card { max-width: 920px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.014)); backdrop-filter: blur(20px) saturate(130%); -webkit-backdrop-filter: blur(20px) saturate(130%); }
.email-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.email-card label { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 11px; color: #aeb3bc; }
.email-card input, .email-card select, .email-card textarea { width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid #30343d; background: #0b0c0f; color: var(--text); outline: none; font: inherit; }
.email-card textarea { resize: vertical; line-height: 1.55; }
.email-card input:focus, .email-card select:focus, .email-card textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(73,189,220,.12); }
.email-hint { margin: 14px 0 0; font-size: 10.5px; line-height: 1.6; color: var(--muted); }
.email-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.email-actions .primary { width: auto; margin-top: 0; padding: 10px 20px; }
.email-actions .ghost { padding: 10px 16px; }
.email-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; }
.email-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.email-modal-panel { position: relative; width: min(680px, 100%); max-height: 90vh; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.email-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.email-modal-head strong { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.email-modal iframe { width: 100%; height: 70vh; border: 0; background: #fff; }
@media (max-width: 700px) { .email-grid { grid-template-columns: 1fr; } }

/* Electron only: keep the titlebar strip transparent so the desktop shows
   through. The dashboard background starts below the traffic lights. */
html.is-electron,
html.is-electron body { background: transparent; }
html.is-electron body:not(.login-mode)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(50% 45% at 15% 0%, rgba(73, 189, 220, 0.18), transparent 70%),
    radial-gradient(42% 46% at 90% 4%, rgba(138, 124, 255, 0.14), transparent 72%),
    radial-gradient(55% 50% at 50% 105%, rgba(225, 92, 150, 0.06), transparent 72%),
    var(--bg);
}
html.is-electron body:not(.login-mode) .topbar {
  background: #070907;
  border-bottom: 1px solid rgba(232, 239, 230, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Dashboard loading skeleton */
.dashboard-shell { position: relative; min-height: 60vh; }
.dash-skeleton { padding: 0 0 40px; animation: dash-fade .32s ease both; }
.dash-skeleton[hidden] { display: none !important; }
.dashboard-shell.is-loading > *:not(.dash-skeleton) { display: none !important; }
.dashboard-shell:not(.is-loading) > *:not(.dash-skeleton) { animation: dash-fade .32s ease both; }
.sk-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sk-copy { display: flex; flex-direction: column; gap: 12px; }
.sk-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.045) 25%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.045) 75%); background-size: 200% 100%; animation: sk-shimmer 1.35s ease-in-out infinite; }
.sk-kicker { width: 72px; height: 8px; }
.sk-title { width: 250px; height: 34px; border-radius: 9px; }
.sk-title-lg { width: 320px; }
.sk-sub { width: 310px; height: 10px; }
.sk-pill { width: 74px; height: 28px; border-radius: 9px; }
.sk-card { height: 132px; margin-top: 22px; border-radius: 16px; background: linear-gradient(90deg, rgba(255,255,255,.035) 25%, rgba(255,255,255,.085) 50%, rgba(255,255,255,.035) 75%); background-size: 200% 100%; animation: sk-shimmer 1.35s ease-in-out infinite; }
.sk-card-order { height: 66px; margin-top: 12px; }
.sk-row-lower { margin-top: 40px; }
@keyframes sk-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes dash-fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
#dashboardView, .account-panel, .audit-panel { animation: dash-fade .3s ease both; }
@media (prefers-reduced-motion: reduce) { .sk, .sk-card { animation: none; } }
@media (max-width: 700px) {
  .sk-row { flex-direction: column; align-items: flex-start; }
  .sk-pills { justify-content: flex-start; }
  .sk-title { width: 180px; }
  .sk-sub { width: 220px; }
}

/* Scrolled titlebar gets a readable glass scrim while staying see-through. */
html.is-electron body:not(.login-mode) .topbar.is-scrolled {
  background: #070907;
  border-bottom: 1px solid rgba(232, 239, 230, 0.1);
}


.storage-usage { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.storage-usage-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: rgba(232,239,230,.46); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.storage-usage-top span:last-child { color: rgba(232,239,230,.72); text-align: right; }
.storage-usage-bar { height: 3px; background: rgba(232,239,230,.12); overflow: hidden; }
.storage-usage-bar span { display: block; height: 100%; background: #8fd6a8; transition: width .35s ease; }
.storage-usage-bar span.is-warn { background: #e3a45e; }
.storage-usage-bar span.is-high { background: #e15c5f; }

/* Client Drive */
.drive-create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drive-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.drive-project { border: 1px solid rgba(232,239,230,.14); padding: 16px; display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,.02); }
.drive-project h3 { margin: 0; font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.drive-project p { margin: 0; color: rgba(232,239,230,.44); font-size: 9.5px; line-height: 1.6; }
.drive-project .actions { margin-top: auto; padding-top: 10px; justify-content: flex-start; }
.drive-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.drive-detail-head h2 { margin: 0; font-size: 20px; font-weight: 400; text-transform: uppercase; letter-spacing: -.02em; }
.drive-share { display: flex; gap: 8px; margin-top: 16px; }
.drive-share input { flex: 1 1 auto; min-width: 0; padding: 10px 12px; border: 1px solid #30343d; background: #0b0c0f; color: #cfd3d8; font: inherit; font-size: 10px; }
.drive-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding: 14px; border: 1px dashed rgba(232,239,230,.24); }
.drive-file-list { margin-top: 18px; border: 1px solid rgba(232,239,230,.12); }
.drive-file { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 10px; }
.drive-file:last-child { border-bottom: 0; }
.drive-file .path { color: #dfe4de; word-break: break-word; }
.drive-file .size { color: rgba(232,239,230,.4); font-size: 9px; white-space: nowrap; }
.drive-file button { border: 1px solid rgba(255,255,255,.12); background: transparent; color: #cdd1d7; font: inherit; font-size: 8px; padding: 4px 7px; cursor: pointer; }
@media (max-width: 800px) { .drive-projects, .drive-create-grid { grid-template-columns: 1fr; } .drive-detail-head { flex-direction: column; } }

.drive-shell { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; margin-top: 8px; }
.drive-nav { border-right: 1px solid rgba(232,239,230,.12); padding-right: 12px; display: flex; flex-direction: column; gap: 2px; }
.drive-nav-link, .drive-nav-cat, .drive-add-category {
  border: 0; background: transparent; color: rgba(232,239,230,.55); font: inherit;
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase; text-align: left;
  padding: 7px 9px; cursor: pointer; border-radius: 0;
}
.drive-nav-link:hover, .drive-nav-cat:hover, .drive-add-category:hover { color: #e8efe6; background: rgba(255,255,255,.03); }
.drive-nav-link.is-active, .drive-nav-cat.is-active { color: #070907; background: #e8efe6; }
.drive-nav-cats { display: flex; flex-direction: column; gap: 1px; margin-top: 10px; }
.drive-nav-cat { padding-left: 18px; font-size: 8.5px; }
.drive-add-category { margin-top: 10px; color: rgba(232,239,230,.38); }
.drive-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 24px; margin-bottom: 12px; color: rgba(232,239,230,.4); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.drive-crumb button { border: 0; background: none; color: #e8efe6; font: inherit; cursor: pointer; padding: 0; }
.drive-categories { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.drive-category-card { border: 1px solid rgba(232,239,230,.14); padding: 18px 16px; cursor: pointer; text-align: left; color: inherit; background: rgba(255,255,255,.02); display: flex; flex-direction: column; gap: 8px; }
.drive-category-card:hover { border-color: rgba(232,239,230,.42); background: rgba(255,255,255,.045); }
.drive-category-card strong { font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; }
.drive-category-card span { color: rgba(232,239,230,.4); font-size: 9px; }
.drive-project .where { color: rgba(232,239,230,.32); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.drive-create { margin-bottom: 16px; }
@media (max-width: 820px) {
  .drive-shell { grid-template-columns: 1fr; }
  .drive-nav { border-right: 0; border-bottom: 1px solid rgba(232,239,230,.12); padding: 0 0 10px; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .drive-nav-cats { flex-direction: row; flex-wrap: wrap; margin-top: 0; }
  .drive-nav-cat { padding-left: 9px; }
  .drive-categories { grid-template-columns: 1fr; }
}

.drive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.drive-toolbar .drive-crumb { margin-bottom: 0; flex: 1 1 auto; }
.drive-new { position: relative; flex: none; }
.drive-new > button { padding: 7px 11px; }
.drive-new-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 200px; background: #11140f; border: 1px solid rgba(232,239,230,.18); padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.drive-new-menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: #dfe4de; font: inherit; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; padding: 9px 10px; cursor: pointer; }
.drive-new-menu button:hover { background: rgba(232,239,230,.08); }
.drive-usage { margin-top: 18px; padding: 12px 9px 0; border-top: 1px solid rgba(232,239,230,.12); display: flex; flex-direction: column; gap: 7px; }
.drive-usage span { color: rgba(232,239,230,.44); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.drive-usage-bar { height: 3px; background: rgba(232,239,230,.12); overflow: hidden; }
.drive-usage-bar span { display: block; height: 100%; width: 0; background: #8fd6a8; transition: width .3s ease; }
.drive-new-badge { display: inline-block; margin-left: 8px; color: #ff5d5d; font-size: 7.5px; letter-spacing: .14em; text-transform: uppercase; vertical-align: middle; }
.drive-project .drive-new-badge { margin-left: 6px; }

.drive-usage-bar span.is-warn { background: #e3a45e; }
.drive-usage-bar span.is-high { background: #e15c5f; }

.drive-drop { margin-top: 16px; border: 1px dashed rgba(232,239,230,.24); padding: 14px; transition: border-color .2s, background .2s; }
.drive-drop.is-over { border-color: #8fd6a8; background: rgba(143,214,168,.06); }
.drive-drop-hint { display: block; margin-bottom: 10px; color: rgba(232,239,230,.44); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.drive-drop .drive-upload { margin-top: 0; padding: 0; border: 0; }
.drive-upload-progress { height: 3px; margin-top: 12px; background: rgba(232,239,230,.1); overflow: hidden; }
.drive-upload-progress span { display: block; height: 100%; width: 0; background: #8fd6a8; transition: width .15s linear; }

.drive-prompt { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.72); display: grid; place-items: center; padding: 20px; }
.drive-prompt-box { width: min(420px,100%); background: #0d100d; border: 1px solid rgba(232,239,230,.2); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.drive-prompt-box label { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: rgba(232,239,230,.5); }
.drive-prompt-box input { width: 100%; padding: 10px 12px; border: 1px solid #30343d; background: #070907; color: #e8efe6; font: inherit; font-size: 12px; outline: none; }
.drive-prompt-box input:focus { border-color: #8fd6a8; }
.drive-prompt-actions { display: flex; justify-content: flex-end; gap: 8px; }
.drive-prompt-actions button { border: 1px solid rgba(255,255,255,.16); background: transparent; color: #e8efe6; font: inherit; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; cursor: pointer; }
.drive-prompt-actions button[data-save] { background: #e8efe6; color: #070907; border-color: #e8efe6; }

.drive-selection { display:flex; align-items:center; gap:8px; margin-top:16px; padding:8px 10px; background:rgba(232,239,230,.06); border:1px solid rgba(232,239,230,.14); }
.drive-selection[hidden] { display:none !important; }
.drive-selection strong { color:#e8efe6; font-size:9px; letter-spacing:.1em; text-transform:uppercase; font-weight:400; margin-right:auto; }
.drive-selection button { border:1px solid rgba(232,239,230,.18); background:transparent; color:#dfe4de; font:inherit; font-size:8px; letter-spacing:.1em; text-transform:uppercase; padding:6px 9px; cursor:pointer; }
.drive-sel-x { border:0 !important; font-size:16px !important; padding:0 4px !important; line-height:1; }
.drive-ctx { position:fixed; z-index:110; min-width:190px; background:#11140f; border:1px solid rgba(232,239,230,.18); padding:6px; box-shadow:0 20px 50px rgba(0,0,0,.55); }
.drive-ctx[hidden] { display:none !important; }
.drive-ctx button { display:block; width:100%; text-align:left; border:0; background:transparent; color:#dfe4de; font:inherit; font-size:9px; letter-spacing:.06em; padding:9px 10px; cursor:pointer; }
.drive-ctx button:hover { background:rgba(232,239,230,.08); }
.drive-file { grid-template-columns:18px 1fr auto auto; }
.drive-file input[type="checkbox"] { accent-color:#8fd6a8; width:12px; height:12px; }
