
:root {
  --bg: #070d16; --surface: #0e1826; --raised: #142235; --line: #1c2c40; --line-2: #27405a;
  --text: #e8eef4; --soft: #9db1c4; --faint: #63788d;
  --cinder: #ef6a24; --cinder-2: #ff9a3d; --cinder-soft: rgba(239, 106, 36, 0.16);
  --steel: #3fa9f5; --steel-soft: rgba(63, 169, 245, 0.15);
  --green: #2fd18b; --green-soft: rgba(47, 209, 139, 0.14); --amber: #e8b84a; --amber-soft: rgba(232, 184, 74, 0.14); --chalk: #f3ede4;
  --panel: linear-gradient(180deg, #112035 0%, #0c1622 100%);
  --r: 10px;
  --sans: Roboto, Calibri, "Segoe UI", Arial, sans-serif; --mono: "Roboto Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scrollbar-color: var(--line-2) var(--bg); }
body { min-height: 100vh; background: radial-gradient(1200px 600px at 8% -10%, rgba(63, 169, 245, 0.10), transparent 60%), radial-gradient(900px 500px at 100% 110%, rgba(239, 106, 36, 0.08), transparent 60%), var(--bg); background-attachment: fixed; color: var(--text); font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
svg.i { width: 14px; height: 14px; flex: none; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* top bar, as the homepage */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 13, 22, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand svg { width: 32px; height: 32px; }
.brand span { font-size: 17px; font-weight: 300; }
.brand b { font-weight: 400; color: var(--cinder); }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(108px, max-content); border: 1px solid var(--line); border-radius: var(--r); justify-self: center; overflow: hidden; }
.tabs a { display: flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; font-size: 13px; color: var(--soft); white-space: nowrap; border-left: 1px solid var(--line); }
.tabs a:first-child { border-left: 0; }
.tabs a:hover { background: var(--raised); color: var(--text); }
.acts { display: grid; grid-template-columns: repeat(2, 140px); gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r); font: 400 13px var(--sans); white-space: nowrap; border: 1px solid var(--line-2); background: var(--raised); color: var(--text); width: 100%; cursor: pointer; }
.btn:hover { border-color: var(--soft); }
.btn.ghost { background: none; }
.btn.go { background: var(--cinder); border-color: var(--cinder); color: #fff; }
.btn.go:hover { background: #d85c1c; border-color: #d85c1c; }
.btn.warn { color: #ffb08a; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.who { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px; border: 1px solid var(--line); border-radius: var(--r); white-space: nowrap; font-size: 13px; color: var(--soft); }
.who i { width: 28px; height: 28px; border-radius: 8px; background: var(--steel-soft); color: var(--steel); display: grid; place-items: center; font-style: normal; font-size: 12px; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r); background: none; color: var(--text); align-items: center; justify-content: center; cursor: pointer; justify-self: end; }

/* account shell: rail and page */
.acc { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 64px; }
.rail { position: sticky; top: 88px; align-self: start; display: grid; gap: 14px; }
.rail .card { padding: 14px; }
.rail nav { display: grid; gap: 4px; }
.rail nav a { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: var(--r); color: var(--soft); white-space: nowrap; font-size: 13.5px; cursor: pointer; }
.rail nav a:hover { background: var(--raised); color: var(--text); }
.rail nav a.on { background: var(--raised); color: var(--text); box-shadow: inset 2px 0 0 var(--cinder); }
.rail nav a.on svg { color: var(--cinder-2); }
.rail nav a small { font: 400 11px var(--mono); color: var(--faint); }
.rail .plan-mini { display: grid; gap: 6px; }
.rail .plan-mini .k { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; }
.rail .plan-mini .v { font-size: 18px; font-weight: 300; }
.rail .plan-mini .v em { font-style: normal; color: var(--cinder-2); }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--steel), #6cc3ff); transition: width 0.8s ease; }
.bar.hot i { background: linear-gradient(90deg, var(--amber), #f5d27a); }
.rail .plan-mini .s { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.page-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-h h1 { font: 400 12.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cinder-2); }
.page-h .t { display: block; margin-top: 10px; font-size: 26px; font-weight: 300; letter-spacing: -0.01em; }
.page-h .t em { font-style: normal; color: var(--soft); }
.page-h .hacts { display: grid; grid-template-columns: repeat(2, 150px); gap: 8px; }
.panel { display: none; }
.panel.on { display: block; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* overview tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { padding: 16px; display: grid; gap: 8px; min-height: 128px; align-content: start; }
.tile .k { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); white-space: nowrap; }
.tile .v { font: 400 26px/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.tile .v small { font-size: 13px; color: var(--faint); }
.tile .s { font-size: 12px; color: var(--faint); }
.tile .s b { font-weight: 400; color: var(--green); }
.spark { width: 100%; height: 34px; }

.two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.box-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.box-h h2 { font-size: 14px; font-weight: 400; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.box-h .note { font-size: 12px; color: var(--faint); white-space: nowrap; }
.box-b { padding: 16px; }

/* the key */
.key { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, 120px); gap: 8px; align-items: center; }
.keyval { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: #0a131f; font: 400 13.5px var(--mono); color: var(--text); white-space: nowrap; overflow: hidden; }
.keyval .dots { color: var(--faint); letter-spacing: 0.08em; }
.kfacts { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); border: 1px solid var(--line); border-radius: var(--r); }
.kfacts div { padding: 10px 12px; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.kfacts div:first-child { border-left: 0; }
.kfacts .k { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.kfacts .v { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); background: #0a131f; }
.code .ct { display: grid; grid-template-columns: repeat(4, 96px); border-bottom: 1px solid var(--line); }
.code .ct button { height: 32px; background: none; border: 0; border-right: 1px solid var(--line); color: var(--faint); font-size: 12px; cursor: pointer; white-space: nowrap; }
.code .ct button.on { color: var(--text); background: var(--raised); box-shadow: inset 0 -2px 0 var(--cinder); }
.code pre { padding: 12px 14px; font: 400 12.5px/1.6 var(--mono); color: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.code pre .s { color: #8fd18f; }
.code pre .k { color: var(--steel); }

/* day-grouped log */
.log .day { padding: 10px 16px 6px; font: 400 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.log .ev { display: grid; grid-template-columns: 52px 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid rgba(28, 44, 64, 0.6); font-size: 13px; }
.log .ev:hover { background: rgba(20, 34, 53, 0.6); }
.log .ev .t { font: 400 12px var(--mono); color: var(--faint); }
.log .ev .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.log .ev .ic.b { background: var(--steel-soft); color: var(--steel); }
.log .ev .ic.o { background: var(--cinder-soft); color: var(--cinder-2); }
.log .ev .ic.g { background: var(--green-soft); color: var(--green); }
.log .ev .ic.a { background: var(--amber-soft); color: var(--amber); }
.log .ev .d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--soft); }
.log .ev .d em { font-style: normal; color: var(--text); }
.log .ev .m { font: 400 12px var(--mono); color: var(--faint); white-space: nowrap; }

/* tables */
table { width: 100%; border-collapse: collapse; }
th { position: sticky; top: 64px; background: #0f1b2b; text-align: left; font-weight: 400; font-size: 12px; color: var(--faint); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; }
th.r, td.r { text-align: right; }
th:hover { color: var(--soft); }
td { padding: 11px 14px; border-bottom: 1px solid rgba(28, 44, 64, 0.6); white-space: nowrap; font-size: 13px; vertical-align: middle; }
tr:hover td { background: rgba(20, 34, 53, 0.55); }
td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; }
td code { font: 400 12.5px var(--mono); color: var(--text); }
td .sub { display: block; font-size: 11.5px; color: var(--faint); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11.5px; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: currentColor; }
.chip.ok { background: var(--green-soft); color: var(--green); }
.chip.wait { background: var(--amber-soft); color: var(--amber); }
.chip.off { background: rgba(99, 120, 141, 0.16); color: var(--faint); }
.tick { color: var(--green); display: inline-flex; }
.rowacts { display: grid; grid-template-columns: repeat(3, 84px); gap: 6px; justify-content: end; }
.rowacts .btn { height: 30px; font-size: 12px; padding: 0 8px; }
.share { display: grid; grid-template-columns: 90px 44px; align-items: center; gap: 8px; justify-content: end; }
.share .bar { height: 5px; }

/* usage chart */
.chart { position: relative; height: 210px; padding: 16px 16px 26px 46px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .yl { position: absolute; left: 0; width: 40px; text-align: right; font: 400 11px var(--mono); color: var(--faint); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--faint); white-space: nowrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.seg2 { display: grid; grid-template-columns: repeat(3, 72px); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seg2 button { height: 28px; background: none; border: 0; border-left: 1px solid var(--line); color: var(--faint); font-size: 12px; cursor: pointer; }
.seg2 button:first-child { border-left: 0; }
.seg2 button.on { background: var(--raised); color: var(--text); }

/* billing */
.cyc { display: grid; grid-template-columns: repeat(2, 140px); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cyc button { height: 34px; background: none; border: 0; border-left: 1px solid var(--line); color: var(--soft); cursor: pointer; font-size: 13px; white-space: nowrap; }
.cyc button:first-child { border-left: 0; }
.cyc button.on { background: var(--raised); color: var(--text); box-shadow: inset 0 -2px 0 var(--cinder); }
.cyc button small { color: var(--green); margin-left: 6px; font-size: 11px; }
.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.plan { padding: 16px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; min-height: 300px; position: relative; }
.plan.cur { border-color: var(--cinder); box-shadow: 0 0 0 1px var(--cinder) inset; }
.plan .tag { position: absolute; top: -10px; left: 14px; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--cinder); color: #fff; font-size: 11px; display: flex; align-items: center; }
.plan .nm { font-size: 15px; white-space: nowrap; }
.plan .pr { font: 400 26px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan .pr small { font: 400 12px var(--sans); color: var(--faint); margin-left: 4px; }
.plan ul { list-style: none; display: grid; gap: 7px; align-content: start; font-size: 12.5px; color: var(--soft); }
.plan li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; }
.plan li svg { color: var(--green); margin-top: 3px; }
.plan .btn { height: 34px; }
.bill-facts { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bill-facts div { padding: 14px 16px; border-left: 1px solid var(--line); display: grid; gap: 3px; }
.bill-facts div:first-child { border-left: 0; }
.bill-facts .k { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.bill-facts .v { font-size: 13.5px; white-space: nowrap; }
.bill-facts a { color: var(--steel); }

/* sign in and first key */
.solo { display: grid; place-items: center; padding: 64px 16px 96px; }
.sign { width: min(440px, 100%); padding: 32px 28px; display: grid; gap: 18px; text-align: center; }
.sign .kw { font: 400 12.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cinder-2); }
.sign .t { font-size: 26px; font-weight: 300; }
.sign p { color: var(--soft); font-size: 13.5px; }
.fallback { font-size: 12.5px; color: var(--faint); }
.fallback a { color: var(--steel); }
.gets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: left; }
.gets div { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; font-size: 12px; color: var(--soft); display: grid; gap: 4px; }
.gets div b { font-weight: 400; color: var(--text); font-size: 13px; }
.once { width: min(680px, 100%); padding: 28px; display: grid; gap: 18px; }
.once .warnline { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--amber-soft); color: #f2d48f; font-size: 13px; }
.once .keyval { height: 48px; font-size: 14.5px; }
.once .key { grid-template-columns: minmax(0, 1fr) 130px; }
.saved { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 12.5px; color: var(--soft); }
.saved svg { color: var(--green); margin-top: 2px; }
.next3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(3, 7, 12, 0.72); display: none; place-items: center; z-index: 50; padding: 16px; }
.modal.on { display: grid; animation: fade 0.2s ease; }
.mbox { width: min(480px, 100%); padding: 22px; display: grid; gap: 14px; }
.mbox h3 { font-size: 17px; font-weight: 300; }
.mbox p { font-size: 13px; color: var(--soft); }
.mbox .warnline { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--amber-soft); color: #f2d48f; font-size: 12.5px; }
.tickrow { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 12.5px; color: var(--soft); cursor: pointer; }
.tickrow input { accent-color: var(--cinder); margin-top: 2px; }
.tickrow a { color: var(--steel); }
.macts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--raised); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 16px; font-size: 13px; display: none; z-index: 60; white-space: nowrap; }
.toast.on { display: block; animation: fade 0.2s ease; }

.foot { border-top: 1px solid var(--line); padding: 22px 0; font-size: 12px; color: var(--faint); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--soft); }

@media (max-width: 1180px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .tabs, .acts, .who { display: none; } .burger { display: inline-flex; } .top .wrap { grid-template-columns: auto minmax(0, 1fr) auto; }
  .acc { grid-template-columns: minmax(0, 1fr); } .rail { position: static; } .rail .card { display: none; }
  .rail nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rail nav a { grid-template-columns: 16px minmax(0, 1fr); justify-content: center; } .rail nav a small { display: none; }
  .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .plans, .gets, .next3, .bill-facts, .kfacts { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tile { padding: 12px; min-height: 0; } .tile .v { font-size: 21px; } .tile .spark { display: none; }
  .kfacts div, .bill-facts div { border-left: 0; border-top: 1px solid var(--line); } .kfacts div:first-child, .bill-facts div:first-child { border-top: 0; }
  .key { grid-template-columns: repeat(2, minmax(0, 1fr)); } .key .keyval { grid-column: 1 / -1; }
  .page-h { flex-direction: column; align-items: stretch; } .page-h .hacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-s { display: none; } .rowacts { grid-template-columns: repeat(3, 72px); }
  .code .ct { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Google's own button, shown only once its script has drawn it; the plain link stays otherwise */
.gsi-box { display: none; min-height: 44px; justify-content: center; }
html.g-ready .gsi-box { display: flex; }
html.g-ready .gsi-link { display: none; }
.gsi-link .btn { height: 44px; border-radius: 22px; background: #fff; color: #1f1f1f; border-color: #dadce0; font-family: Roboto, Arial, sans-serif; font-size: 14px; }
.flash { margin-bottom: 14px; padding: 12px 14px; border-radius: var(--r); font-size: 13px; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.flash.ok { background: var(--green-soft); color: #9ce8c4; }
.flash.warn { background: var(--amber-soft); color: #f2d48f; }
.empty { padding: 28px 16px; text-align: center; color: var(--faint); font-size: 13px; }
.who img { width: 28px; height: 28px; border-radius: 8px; }
.menu { position: relative; }
.menu .pop { display: none; position: absolute; right: 0; top: 44px; width: 200px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px; z-index: 30; }
.menu.open .pop { display: grid; }
.menu .pop a { height: 34px; display: flex; align-items: center; padding: 0 10px; border-radius: 8px; color: var(--soft); font-size: 13px; }
.menu .pop a:hover { background: var(--raised); color: var(--text); }
button.who { background: none; cursor: pointer; font: inherit; }
.fallback.g-only { display: none; } html.g-ready .fallback.g-only { display: block; }
