@font-face { font-family: Inter; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }
:root { color-scheme: dark; font-family: Inter, sans-serif; background: #000; color: #f4f4f4; font-synthesis: none; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-height: 100vh; background: #000; }
:focus-visible { outline: 2px solid #eee; outline-offset: 3px; }
::selection { background: #ddd; color: #111; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
.shell { max-width: 1240px; margin: 0 auto; padding: 48px 36px 80px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.brand { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.04em; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.muted { color: #777777; }
.eyebrow { margin: 0 0 10px; color: #777777; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.06em; font-weight: 500; }
.gateway-list { display: flex; flex-flow: row wrap; gap: 12px; }
.gateway-card { display: inline-flex; align-items: center; gap: 13px; min-height: 54px; max-width: 100%; border: 1px solid #262626; border-radius: 999px; padding: 0 18px; background: #0b0b0b; transition: border-color .15s, background .15s; }
.gateway-card:hover { border-color: #666666; background: #111; }
.gateway-card code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; font-size: 13px; }
.gateway-card.deleted { opacity: .4; }
.dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #ddd; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #333; border-radius: 999px; padding: 11px 17px; background: #111; color: #eee; font-size: 13px; font-weight: 500; transition: .15s; }
.button:hover { border-color: #777; background: #191919; }
.button.primary { border-color: #eee; background: #eee; color: #111; }
.button.primary:hover { background: #fff; }
.button.danger { color: #ddd; }
.button.quiet { border-color: transparent; background: transparent; color: #999; }
.button.small { padding: 8px 12px; font-size: 12px; }
.empty { border: 1px dashed #292929; border-radius: 20px; padding: 34px; color: #777; font-size: 13px; }
.overlay { position: fixed; z-index: 3; inset: 0; background: rgb(0 0 0 / 70%); }
.drawer { position: fixed; z-index: 4; top: 0; right: 0; display: flex; flex-direction: column; width: min(540px, 94vw); height: 100dvh; border-left: 1px solid #262626; background: #080808; box-shadow: -30px 0 90px #0009; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 26px; border-bottom: 1px solid #202020; }
.drawer-head h2 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.03em; }
.drawer-body { flex: 1; overflow: auto; padding: 24px 26px; }
.drawer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 26px; border-top: 1px solid #202020; }
.field { display: grid; gap: 9px; margin-bottom: 24px; }
.field > label, .section-label { color: #aaaaaa; font-size: 12px; font-weight: 500; }
input, textarea { width: 100%; border: 1px solid #2b2b2b; border-radius: 11px; background: #0d0d0d; color: #eee; padding: 12px 13px; font-size: 13px; }
input:focus, textarea:focus { border-color: #797979; }
input::placeholder, textarea::placeholder { color: #555555; }
.kv-list { display: grid; gap: 8px; }
.kv-row { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(100px, 1.2fr) 34px; align-items: center; gap: 8px; }
.kv-row input { min-width: 0; padding: 10px; font-size: 12px; }
.remove-row { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #777; }
.remove-row:hover { background: #222; color: #eee; }
.section { margin: 30px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-head h3 { margin: 0; font-size: 13px; font-weight: 500; }
.code-button { display: flex; width: 100%; justify-content: space-between; text-align: left; border: 1px solid #292929; border-radius: 13px; background: #0c0c0c; padding: 15px; }
.code-button:hover { border-color: #555; }
.code-button strong { font-size: 12px; font-weight: 500; }
.code-button span { color: #777; font-size: 11px; }
.code-drawer { position: fixed; z-index: 5; top: 5vh; right: 5vw; display: flex; flex-direction: column; width: 70vw; height: 90vh; border: 1px solid #303030; border-radius: 18px; background: #090909; box-shadow: 0 30px 120px #000; }
.code-drawer .drawer-head { border-radius: 18px 18px 0 0; }
.code-drawer .drawer-body { display: flex; flex-direction: column; gap: 14px; }
.code-drawer textarea { flex: 1; min-height: 220px; resize: none; padding: 18px; border-radius: 13px; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; tab-size: 2; }
.code-meta { display: flex; justify-content: space-between; gap: 14px; color: #777; font-size: 11px; }
.code-meta a { color: #ccc; text-underline-offset: 3px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(390px, 100%); }
.login-card .brand { margin-bottom: 46px; }
.login-card h1 { margin-bottom: 10px; font-size: 30px; }
.login-card p { margin: 0 0 26px; color: #777; font-size: 13px; }
.login-card .button { width: 100%; margin-top: 8px; }
.error { color: #ddd; font-size: 12px; min-height: 18px; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 26px; transform: translateX(-50%); border: 1px solid #353535; border-radius: 999px; background: #151515; padding: 12px 17px; font-size: 12px; box-shadow: 0 8px 35px #000; }
.hidden { display: none !important; }
@media (max-width: 700px) {
  .shell { padding: 26px 18px 60px; }
  .topbar { margin-bottom: 24px; gap: 12px; }
  .gateway-list { flex-direction: column; gap: 8px; }
  .gateway-card { width: 100%; justify-content: flex-start; border-radius: 13px; }
  .drawer { width: 100%; border-left: 0; }
  .drawer-head, .drawer-body { padding-left: 20px; padding-right: 20px; }
  .drawer-foot { padding: 15px 20px; }
  .code-drawer { inset: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .code-drawer .drawer-head { border-radius: 0; }
  .kv-row { grid-template-columns: minmax(80px, .8fr) minmax(80px, 1.2fr) 32px; }
}
