/* Floyse cabinet — Linear/Vercel styling, light theme, matching the plugin's
   design language (tight tracking, hairline borders, green accent, tabular
   numerals). Deliberately light-only: the account is a white surface. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --sunken: #f6f6f7;
  --line: #ececee;
  --line-2: #e0e0e3;
  --line-3: #d0d0d5;
  --fg: #08080a;
  --fg-2: #60606a;
  --fg-3: #8f8f99;
  --fg-4: #b6b6be;
  --green: #16a34a;
  --green-soft: rgba(22,163,74,.10);
  --amber: #b45309;
  --red: #dc2626;
  --brand: #0FB5FF;
  --primary-bg: #08080a;
  --primary-fg: #ffffff;
  --shadow-sm: 0 1px 2px rgba(8,8,10,.04);
  --shadow: 0 1px 3px rgba(8,8,10,.06), 0 8px 24px -12px rgba(8,8,10,.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 400 14px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100vh;
}
h1 { letter-spacing: -0.03em; line-height: 1.15; font-weight: 600; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 5px; }

.wrap { width: 100%; max-width: 660px; margin: 0 auto; padding: 0 24px; }

/* ---- top bar ---- */
.top { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.8);
       backdrop-filter: saturate(180%) blur(8px); position: sticky; top: 0; z-index: 5; }
.top__inner { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo__mark { display: block; border-radius: 6px; }
.logo__word { font-size: 16px; font-weight: 640; letter-spacing: -0.035em; }

.main { flex: 1; padding: 44px 24px 72px; }
.loading { color: var(--fg-3); text-align: center; padding: 72px 0; font-size: 14px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent;
  font: 500 13.5px/1 inherit; letter-spacing: -0.006em; cursor: pointer;
  transition: background-color .13s, border-color .13s, opacity .13s, transform .05s;
  font-family: inherit;
}
.btn:active { transform: translateY(.5px); }
.btn--primary { background: var(--primary-bg); color: var(--primary-fg); width: 100%; }
.btn--primary:hover { opacity: .86; }
.btn--primary:disabled { opacity: .45; cursor: default; }
.btn--ghost { background: var(--bg); color: var(--fg); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--sunken); border-color: var(--line-3); }
.btn--sm { height: 32px; padding: 0 12px; border-radius: 7px; font-size: 12.5px; }
.btn--lg { height: 46px; font-size: 14.5px; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; box-shadow: var(--shadow);
}

/* ---- auth ---- */
.auth { max-width: 372px; margin: 32px auto 0; }
.auth__title { font-size: 24px; }
.auth__lead { margin-top: 8px; color: var(--fg-2); font-size: 14px; line-height: 1.5; }
.form { margin-top: 22px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span {
  font-size: 11px; font-weight: 500; color: var(--fg-3);
  letter-spacing: 0.02em; text-transform: uppercase;
}
.field input {
  height: 42px; padding: 0 13px; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--fg);
  font: 400 14.5px/1 inherit; box-shadow: var(--shadow-sm);
  transition: border-color .13s, box-shadow .13s;
}
.field input::placeholder { color: var(--fg-4); }
.field input:focus { outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15,181,255,.14); }
.err { color: var(--red); font-size: 13px; }
.auth__switch { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--fg-3); }
.auth__switch a { color: var(--fg); font-weight: 550; text-decoration: none;
  border-bottom: 1px solid var(--line-3); padding-bottom: 1px; }
.auth__switch a:hover { border-color: var(--fg); }

/* ---- account ---- */
.account__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.account__title { font-size: 22px; }
.account__email { margin-top: 5px; color: var(--fg-3); font-size: 13.5px; }
.licenses { margin-top: 26px; display: grid; gap: 14px; }

.lic__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lic__key {
  font: 600 15px/1.2 ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.01em;
}
.lic__status {
  margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.lic__status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fg-4);
}
.lic__status.ok { color: var(--green); }
.lic__status.ok::before { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.lic__status.warn { color: var(--amber); } .lic__status.warn::before { background: var(--amber); }
.lic__status.bad { color: var(--red); } .lic__status.bad::before { background: var(--red); }

.keybtn {
  flex: 0 0 auto; height: 30px; padding: 0 11px; border-radius: 7px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--fg-2);
  font: 500 12px/1 inherit; cursor: pointer; box-shadow: var(--shadow-sm);
  letter-spacing: -0.005em; transition: background-color .13s, color .13s, border-color .13s;
}
.keybtn:hover { background: var(--sunken); color: var(--fg); border-color: var(--line-3); }

.lic__facts {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.lic__facts dt {
  font-size: 10.5px; font-weight: 500; color: var(--fg-3);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.lic__facts dd { margin-top: 5px; font-size: 14px; font-weight: 550; font-variant-numeric: tabular-nums; }

.devices { margin-top: 16px; display: grid; gap: 8px; }
.device {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; background: var(--sunken); border: 1px solid var(--line); border-radius: 10px;
}
.device__name { font-size: 13.5px; font-weight: 550; }
.device__meta { font-size: 11.5px; color: var(--fg-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.device__empty { font-size: 13px; color: var(--fg-3); padding: 2px; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 22px 0; margin-top: auto; }
.foot .wrap { display: flex; gap: 22px; font-size: 13px; color: var(--fg-3); }
.foot a:hover { color: var(--fg); }

/* ---- toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(6px);
  background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 560px) {
  .lic__facts { grid-template-columns: 1fr; gap: 12px; }
  .account__head { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
