/* The same standalone Basecoat bundle as the Argus client portal. */
@import url("/vendor/basecoat/basecoat.cdn.min.css");

:root {
  color-scheme: light;
  --canvas: #fbfcfa;
  --background: #fff;
  --foreground: #172f24;
  --primary: #215c44;
  --primary-foreground: #fff;
  --card: #fff;
  --card-foreground: var(--foreground);
  --popover: #fff;
  --popover-foreground: var(--foreground);
  --muted: #f3f6f1;
  --muted-foreground: #596a60;
  --accent: #e6efe4;
  --accent-foreground: #194b31;
  --destructive: #963e31;
  --border: #dbe2da;
  --input: #cdd7ce;
  --ring: #46785e;
  --sidebar: #f1f4ee;
  --radius: .58rem;
  --rail: 226px;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}
body { min-height: 100vh; background: var(--canvas); color: var(--foreground); }
a:where(:not(.btn)) { color: var(--primary); }
a:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
small, .hint, .facts dt { color: var(--muted-foreground); }
small { font-size: .82rem; }
b, strong { font-weight: 610; }
h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.12; font-weight: 640; letter-spacing: -.052em; }
h2 { font-size: 1.13rem; line-height: 1.35; font-weight: 630; letter-spacing: -.025em; }
h3 { font-size: 1rem; font-weight: 600; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.console-rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); overflow-y: auto;
  display: flex; flex-direction: column; padding: 25px 14px 15px;
  background: var(--sidebar); border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 9px; color: var(--foreground); font-size: 1.48rem; letter-spacing: -.055em; font-weight: 680; }
.brand img { width: 33px; height: 33px; }
.auth-screen { display: grid; place-items: center; padding: 24px; }
main.auth-panel { width: min(100%, 410px); padding: clamp(24px, 5vw, 36px); display: grid; gap: 22px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.auth-panel .brand { padding: 0; }
.auth-panel h1 { font-size: 1.9rem; }
.auth-panel .field { display: grid; }
.auth-panel p { font-size: .9rem; }
.auth-panel a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#auth-error { color: var(--destructive); }
.brand small, .nav-label, .mobile-nav { display: none; }
.console-rail nav { display: grid; gap: 5px; margin-top: 47px; }
.nav-group, .nav-group > div { display: contents; }
.nav-link, .account-link { display: flex; align-items: center; gap: 12px; color: #4e5e53; font-size: .94rem; text-decoration: none; }
.nav-link { border-radius: 7px; padding: 11px 13px; }
.nav-link:hover, .account-link:hover { background: #e6ece2; }
.nav-link[aria-current="page"] { background: #dfeadc; color: #194b31; font-weight: 620; }
.account-link { margin-top: auto; border-top: 1px solid var(--border); padding: 18px 7px 5px; }
#avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #dce8dc; color: #32583f; font-size: .8rem; font-weight: 650; }
.profile-label { display: grid; min-width: 0; gap: 2px; overflow-wrap: anywhere; }

.shell { margin-left: var(--rail); }
.top { height: 66px; display: flex; align-items: center; justify-content: space-between; padding-inline: clamp(20px, 4vw, 58px); background: #fafbf8; border-bottom: 1px solid var(--border); }
.console-title { font-size: .9rem; color: var(--muted-foreground); }
.environment { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: #516358; }
.environment::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7d9f7b; }
main { max-width: 1290px; margin-inline: auto; padding: clamp(25px,4vw,56px) clamp(20px,4vw,58px) 72px; }
.page-head, .section-head, .actions, .inline-input, .pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.page-head, .section-head { justify-content: space-between; }
.page-head { margin-bottom: 26px; }
.page-head p { color: var(--muted-foreground); margin-top: 8px; font-size: .94rem; }
.network-filter { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 17px; color: var(--muted-foreground); font-size: .88rem; }
.network-filter .select, .mobile-nav.select { width: auto; }
.watch-panel { background: var(--card); border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
.watch-panel > ul > li + li { border-top: 1px solid var(--border); }
.watch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.identity > div, .stack { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.coin { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; font-size: .75rem; font-weight: 660; letter-spacing: .02em; color: #465449; background: #ebefea; }
.coin.bitcoin { background: #f7edda; color: #7e571c; }
.coin.litecoin { background: #e7edf4; color: #435d78; }
.coin.dogecoin { background: #eee9d2; color: #736326; }

.activity-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 17px; }
.activity-filters .network-filter { min-width: 0; max-width: 100%; margin: 0; }
.activity-filters .select { min-width: 0; max-width: 32ch; }
.job-row { display: grid; grid-template-columns: minmax(0,1fr) auto 10px; width: 100%; text-align: left; cursor: pointer; }
.job-row:hover, .job-row[aria-expanded="true"] { background: var(--muted); }
.job-row:focus-visible { outline: 2px solid var(--ring); outline-offset: -3px; }
:is(.job-row, .key-row) .state { padding: 3px 9px; border-radius: 20px; color: var(--muted-foreground); background: #e9eeea; font-size: .78rem; font-weight: 550; }
.job-row .completed, .key-row .active { color: #295b3f; background: #e3efe4; }
.job-row .queued { color: #785518; background: #f9efd8; }
.job-row .syncing { color: #58487e; background: #eee9f7; }
.job-row .extracting { color: #335e7a; background: #e7f0f8; }
.job-row .failed { color: #883e32; background: #f9e7e1; }
.job-row .job-checkpoint { margin-top: 2px; font-weight: 500; color: var(--foreground); }
.job-row .job-error { color: var(--destructive); }
.jobs-section + .jobs-section { margin-top: 26px; }
.jobs-section > header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 9px; }
.job-chevron, .usage-daily summary::after { width: 7px; height: 7px; border: solid var(--muted-foreground); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
.job-row[aria-expanded="true"] .job-chevron, .usage-daily[open] summary::after { transform: rotate(45deg); }
.jobs-detail { display: grid; gap: 16px; padding: 18px 20px; border-top: 1px solid var(--border); }
.jobs-detail .facts { margin: 0; grid-template-columns: minmax(90px,155px) minmax(0,1fr); overflow-wrap: anywhere; }
#job-range:not([hidden]) { display: grid; gap: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.manifest { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; font: .8rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

.usage-dates { margin-left: auto; }
.usage-totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: var(--card); border: 1px solid var(--border); border-radius: 11px; }
.usage-totals > div { padding: 16px 20px; }
.usage-totals > div + div { border-left: 1px solid var(--border); }
.usage-totals dt { font-size: .85rem; color: var(--muted-foreground); }
.usage-totals dd { margin-top: 5px; font-size: clamp(1.5rem,3vw,2.1rem); line-height: 1.2; letter-spacing: -.035em; font-weight: 620; overflow-wrap: anywhere; }
.usage-section { margin-top: 26px; }
.usage-section h2 { margin-bottom: 10px; }
.usage-table { width: 100%; table-layout: fixed; }
.usage-table thead { background: var(--muted); }
.usage-table :is(th,td) { padding: 12px 16px; text-align: right; white-space: normal; overflow-wrap: anywhere; }
.usage-table :is(th,td):first-child { width: 52%; text-align: left; }
.usage-table tbody th { color: var(--foreground); font-weight: 500; }
.usage-table small { font-weight: 400; }
.usage-list-link { justify-self: start; text-align: left; color: var(--primary); font-weight: 600; cursor: pointer; }
.usage-list-link:hover { text-decoration: underline; }
.usage-list-link:focus-visible, .usage-daily summary:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.usage-daily { margin-top: 16px; }
.usage-daily summary { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 18px; cursor: pointer; font-weight: 550; }
.usage-daily summary::after { content: ""; }
.usage-daily[open] summary { border-bottom: 1px solid var(--border); }

.key-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px; }
.key-row .actions { flex: none; }
.key-name code { display: inline-block; margin-left: 4px; color: var(--muted-foreground); font: .8rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.key-value { min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
#key-scope { width: 100%; min-width: 0; }
#scope-help { font-weight: 400; }
#copy-feedback:empty { display: none; }

.subscription-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 18px; align-items: start; }
.plan-summary, .renewal { padding: clamp(16px,2vw,25px); }
.plan-summary { background: #f0f5ee; }
.plan-summary .facts { margin-top: 22px; grid-template-columns: auto minmax(0,1fr); }
.plan-summary .facts dd { text-align: right; overflow-wrap: anywhere; }
.monthly-rate { font-size: clamp(2rem,4vw,2.8rem); font-weight: 630; line-height: 1.1; letter-spacing: -.045em; }
.monthly-rate small { font-weight: 450; letter-spacing: normal; white-space: nowrap; }
.renewal, #quote { display: grid; gap: 12px; }
.renew-period, .renew-line, .plan-totals > div, .payment-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.renew-period { align-items: center; flex-wrap: wrap; }
.renew-period label, .renew-line, .plan-totals { font-size: .9rem; }
.renew-period .select { width: auto; max-width: 100%; }
.renew-line b { white-space: nowrap; }
.discount { color: var(--primary); }
.renew-amount { border-top: 1px solid var(--border); padding-top: 12px; }
.renew-amount strong, .renew-total { font-size: 1.45rem; letter-spacing: -.025em; }
.plan-totals { display: grid; gap: 6px; border-top: 1px solid var(--border); padding: 12px 16px; }
.payment-row { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto auto 9px; text-align: left; cursor: pointer; }
.payment-row:is(:hover,:focus-visible) { background: var(--muted); }
.payment-row:focus-visible { outline: 2px solid var(--ring); outline-offset: -3px; }
:is(.plan-summary,.payment-heading,.payment-row) .state { padding: 3px 9px; border-radius: 20px; color: var(--muted-foreground); background: #e8ede7; font-size: .78rem; font-weight: 550; }
:is(.plan-summary,.payment-heading,.payment-row) :is(.active,.confirmed) { color: #295b3f; background: #deecdf; }
:is(.payment-heading,.payment-row) .awaiting-payment { color: #785518; background: #f9efd8; }
:is(.payment-heading,.payment-row) .under-review { color: #335e7a; background: #e7f0f8; }
.payment-note { padding: 12px; border-radius: 7px; font-size: .88rem; background: var(--muted); }
.transfer-address { display: grid; gap: 8px; min-width: 0; }
.transfer-address label { font-size: .89rem; font-weight: 550; }
.transfer-address input, #transfer-form input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
#renew-form .facts, .payment-heading + .facts { margin: 0; }
.payment-heading + .facts dd { overflow-wrap: anywhere; }
#pay-method { width: 100%; min-width: 0; }

.editor { display: grid; gap: 18px; padding: 20px; border-top: 1px solid var(--border); background: #f9fbf7; }
.subsection { min-width: 0; padding-top: 17px; border-top: 1px solid var(--border); }
.section-head { margin-bottom: 14px; }
.inline-input { align-items: flex-end; }
.inline-input .field { flex: 1 1 150px; }
.field { min-width: 0; gap: 6px; font-size: .89rem; font-weight: 550; }
:is(input, select, textarea):is(.input, .select, .textarea) { background-color: var(--background); font-weight: 400; }
.form { display: grid; gap: 16px; }
.btn[data-variant=ghost].danger { color: var(--destructive); }
.space { margin-top: 14px; }
.tablewrap { overflow-x: auto; }
.table .address { white-space: normal; overflow-wrap: anywhere; }
.table th { color: var(--muted-foreground); }
.table td { padding-block: .625rem; }
.right { text-align: right; }
.pagination { justify-content: flex-end; margin-top: 12px; }
.facts { display: grid; grid-template-columns: minmax(95px,.9fr) minmax(0,1.2fr); gap: 9px 12px; margin-top: 14px; font-size: .9rem; }
.empty { text-align: center; padding: 27px 16px; color: var(--muted-foreground); font-size: .94rem; }
.grid3 { display: grid; gap: 10px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.metric { background: var(--accent); border-radius: 8px; padding: 12px; }
.metric strong { display: block; font-size: 1.5rem; }
.hint, .err { overflow-wrap: anywhere; font-size: .87rem; }
.err { color: var(--destructive); }
.err:empty { display: none; }
#dialog-body { width: min(560px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 32px); overflow-y: auto; gap: 16px; }
#dialog-body .section-head { margin: 0; }
#notice { position: fixed; z-index: 5; left: calc(var(--rail) + 20px); bottom: 20px; max-width: calc(100% - var(--rail) - 40px); padding: 12px 18px; border-radius: 7px; background: #203b2d; color: white; font-size: .9rem; }

@media (max-width: 960px) {
  :root { --rail: 188px; }
  .console-rail { padding-inline: 8px; }
}
@media (max-width: 900px) {
  .subscription-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
}
@media (max-width: 720px) {
  :root { --rail: 0px; }
  .console-rail { position: static; width: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { padding: 0; font-size: 1.3rem; }
  .brand img { width: 30px; height: 30px; }
  .console-rail nav, .profile-label small, .console-title { display: none; }
  .account-link { min-width: 0; border: 0; margin: 0; padding: 0; font-size: .85rem; }
  .top { min-height: 49px; height: auto; padding: 6px 15px; gap: 8px; }
  .top .mobile-nav { display: inline-flex; max-width: 58vw; }
  .environment { font-size: .75rem; }
  main { padding: 25px 15px 56px; }
  .watch-row, .editor { padding: 14px; }
  .identity { gap: 8px; }
  #notice { left: 12px; max-width: calc(100% - 24px); }
}

#editor-body {
  display: flex; flex-direction: column; width: min(880px, calc(100% - 32px)); max-width: none;
  height: min(780px, calc(100dvh - 40px)); max-height: calc(100dvh - 40px); padding: 0; gap: 0; overflow: hidden;
}
#editor-body > .editor-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center;
  text-align: left; gap: 12px; padding: 21px 24px 17px;
}
.editor-head > div:first-child { min-width: 0; overflow-wrap: anywhere; }
#editor-delete { gap: .25em; }
#editor-title { margin: 0; font-size: 1.35rem; }
#editor-summary { margin: 4px 0 0; font-size: .85rem; color: var(--muted-foreground); }
.editor-filters {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px;
  padding: 0 24px 17px;
}
#wallet-control { position: relative; min-width: 0; display: grid; gap: 6px; }
#wallet-caption { font-size: .89rem; font-weight: 550; }
#wallet-toggle { width: 100%; justify-content: space-between; font-weight: 400; }
#wallet-toggle .icon { width: 14px; height: 14px; color: var(--muted-foreground); }
#wallet-value { overflow: hidden; text-overflow: ellipsis; }
#wallet-popup {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 3; width: max(100%, 210px);
  max-width: calc(100vw - 60px); padding: 7px; background: var(--popover); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 5px 18px #172f2420;
}
#wallet-options { max-height: min(185px, 26dvh); overflow-y: auto; margin-top: 5px; }
#wallet-options small { display: block; padding: 6px 8px; }
.wallet-option { display: block; width: 100%; padding: 6px 8px; text-align: left; overflow-wrap: anywhere; border-radius: 4px; font-size: .875rem; }
.wallet-option:is(:hover,:focus-visible) { background: var(--muted); }
.wallet-option[aria-pressed="true"] { background: var(--accent); color: var(--accent-foreground); }
.address-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; flex: 1 1 auto; border-block: 1px solid var(--border); }
.address-table { width: 100%; table-layout: fixed; }
.address-table th { background: #f5f7f4; position: sticky; top: 0; z-index: 1; }
.address-table :is(th,td) { text-align: left; padding-inline: 16px; white-space: normal; overflow-wrap: anywhere; }
.address-table :is(th,td):first-child { width: 70%; padding-left: 24px; }
.address-table :is(th,td):last-child { padding-right: 24px; }
.address-cell { display: flex; align-items: center; gap: 10px; }
.address-cell code { min-width: 0; font: .81rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.address-cell input { flex: none; }
.address-table tr:has(:checked) { background: var(--accent); }
.address-table .table-message { text-align: center; color: var(--muted-foreground); padding: 20px; }
.unnamed, #address-range { color: var(--muted-foreground); }
.editor-pager {
  display: flex; flex-direction: row; align-items: center; flex-wrap: wrap;
  justify-content: space-between; gap: 8px; padding: 12px 24px;
}
#address-range { font-size: .83rem; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  #editor-body { width: calc(100% - 16px); height: min(780px, calc(100dvh - 16px)); max-height: calc(100dvh - 16px); }
  #editor-body > .editor-head { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 12px; }
  .editor-head .actions { grid-column: 1 / -1; grid-row: 2; gap: 6px; }
  .editor-head .actions .btn { padding-inline: .55rem; }
  .activity-filters { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); }
  .activity-filters .network-filter { display: grid; gap: 4px; }
  .activity-filters .select { width: 100%; max-width: none; }
  .usage-dates { grid-column: 1 / -1; margin: 0; }
  .usage-totals { grid-template-columns: minmax(0,1fr); }
  .usage-totals > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 10px 14px; }
  .usage-totals > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .usage-totals dd { margin: 0; font-size: 1.35rem; }
  .usage-table :is(th,td) { padding: 10px 8px; }
  .usage-table .coin { display: none; }
  .jobs-detail { padding: 14px; }
  #editor-close { grid-column: 2; grid-row: 1; }
  .editor-filters { padding: 0 12px 12px; gap: 8px; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); }
  .address-table :is(th,td), .address-table :is(th,td):first-child, .address-table :is(th,td):last-child { padding-inline: 9px; }
  .address-table :is(th,td):first-child { width: 63%; }
  .address-cell { gap: 5px; }
  .editor-pager { padding-inline: 12px; }
}
@media (max-height: 580px) {
  #editor-body { overflow-y: auto; }
  .address-scroll { min-height: 90px; }
}
@media (max-width: 480px) {
  .payment-row { grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; }
  .payment-row .stack { grid-column: 1; grid-row: 1 / 3; }
  .payment-row > strong, .payment-row .state { justify-self: end; }
  .payment-row .job-chevron { display: none; }
  .key-row { flex-wrap: wrap; padding: 14px; }
  .job-row { grid-template-columns: 36px minmax(0,1fr) auto 8px; gap: 4px 8px; }
  .job-row .identity, .job-row .stack { display: contents; }
  .job-row .coin { grid-area: 1 / 1 / 3 / 2; }
  .job-row b { grid-area: 1 / 2; }
  .job-row small { grid-area: 2 / 2 / 3 / -1; }
  .job-row .job-checkpoint { grid-area: 3 / 2 / 4 / -1; }
  .job-row .state { grid-area: 1 / 3; }
  .job-chevron { grid-area: 1 / 4; }
  .jobs-detail .facts { grid-template-columns: minmax(0,.85fr) minmax(0,1fr); }
}
@media (max-width: 400px) {
  #editor-body > .editor-head { padding-inline: 8px; }
  .editor-head .actions { gap: 4px; }
  #editor-body .editor-head .actions .btn { padding-inline: 6px; }
  #editor-delete .delete-object { display: none; }
}

.balance-card { display: grid; align-content: start; gap: 13px; }
.balance-card .monthly-rate { margin: 0; }
.network-count { font-size: 1.4rem; font-weight: 600; margin: 0; }
.billing-table { width: 100%; }
.billing-table thead, .choice-head { background: var(--muted); }
.billing-table :is(th,td) { text-align: left; padding: 12px 16px; }
.billing-table :is(th,td):last-child { text-align: right; }
.billing-table small, .network-choice small, .order-coverage small { display: block; color: var(--muted-foreground); font-weight: 400; }
.billing-table thead small { display: inline; }
.choice-head, .network-choice { display: grid; grid-template-columns: minmax(0,1fr) 7rem; gap: 10px; align-items: center; padding: 10px 12px; }
.choice-head { font-size: .8rem; color: var(--muted-foreground); }
.network-choice { border-bottom: 1px solid var(--border); }
.network-choice label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.network-choice .input { width: 100%; }
.order-coverage { display: grid; gap: 10px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
@media (max-width: 650px) {
  .billing-table :is(th,td) { padding: 9px 6px; white-space: normal; }
  .billing-table .coin { display: none; }
  .billing-table th:first-child { width: 37%; }
  .billing-table .btn { padding-inline: 6px; }
  .choice-head, .network-choice { grid-template-columns: minmax(0,1fr) 5.5rem; padding-inline: 4px; }
}
.pending-payment { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 13px 18px; margin-top: 15px; }
.pending-payment small { display: block; }
