.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.panel-main { padding-block: 32px 64px; }
.panel-title { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 20px; }
.auth-card { max-width: 420px; margin: clamp(16px, 8vh, 80px) auto 0; padding: 28px 24px; border-radius: 20px; background: var(--bg2); border: 1px solid var(--line2); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 4px; }

/* ---- professional login (login.html) ---- */
.auth-page { display: grid; place-items: start center; min-height: calc(100vh - 64px); padding-block: 24px 64px; }
.auth-page .auth-card {
  position: relative; width: 100%; margin: clamp(12px, 6vh, 56px) auto 0;
  padding: 34px 28px 24px; border-radius: 22px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(45,212,191,.06), var(--bg2) 46%);
  box-shadow: 0 26px 60px -26px rgba(2,8,20,.85);
  animation: auth-in .5s var(--ease) both;
}
@keyframes auth-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.auth-logo { position: relative; display: grid; place-items: center; margin-bottom: 12px; }
.auth-logo::before {
  content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 150px; height: 150px; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(45,212,191,.22), transparent 70%); filter: blur(10px);
}
.auth-logo img { position: relative; z-index: 1; filter: drop-shadow(0 6px 16px rgba(45,212,191,.28)); }
.auth-page .auth-card h1 { font-size: 1.55rem; margin: 0; letter-spacing: -.01em; }
.auth-tag { color: var(--muted); font-size: .92rem; margin-top: 3px; }
.auth-tag b { color: var(--teal); font-weight: 700; letter-spacing: .02em; }

.seg { display: flex; gap: 4px; margin: 20px 0 10px; padding: 5px; background: var(--bg); border: 1px solid var(--line2); border-radius: 14px; }
.seg-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 8px; border: 0; border-radius: 10px;
  background: none; color: var(--muted); font: 600 .95rem var(--sans); cursor: pointer;
  transition: background .2s var(--ease), color .2s, box-shadow .2s;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn[aria-selected="true"] { background: var(--grad-btn); color: #04201c; box-shadow: 0 6px 16px -4px rgba(45,212,191,.5); }
.seg-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.seg-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.auth-sub { font-size: .9rem; margin: 0; min-height: 1.3em; }
.auth-page .auth-card form { text-align: start; }
.field { display: grid; gap: 6px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.field-ic {
  position: absolute; inset-inline-start: 13px; width: 19px; height: 19px; pointer-events: none; z-index: 1;
  fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s;
}
.input-wrap input { padding-inline-start: 42px; }
.input-wrap.has-toggle input { padding-inline-end: 46px; }
.input-wrap:focus-within .field-ic { stroke: var(--teal); }
.pw-toggle {
  position: absolute; inset-inline-end: 8px; display: grid; place-items: center;
  width: 36px; height: 36px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer;
  transition: color .2s, background .2s;
}
.pw-toggle:hover { color: var(--ink); background: rgba(148,163,184,.1); }
.pw-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.pw-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-page .auth-card .btn-primary { width: 100%; margin-top: 10px; }
.auth-back {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 18px;
  color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s;
}
.auth-back:hover { color: var(--teal); }
.auth-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-card form, .card form { display: grid; gap: 8px; margin-top: 16px; }
label { font-weight: 500; font-size: .92rem; color: var(--muted); }
input, select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line2); font: 500 1rem var(--sans);
}
input:focus-visible, select:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.auth-card .btn, .card form .btn { margin-top: 8px; }
.msg { min-height: 1.4em; font-size: .92rem; color: var(--danger); }
.msg.ok { color: var(--green); }
.hint { color: var(--muted); font-size: .85rem; margin-top: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.card { padding: 24px; border-radius: 20px; background: var(--bg2); border: 1px solid var(--line2); min-width: 0; }
.card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.kv { margin: 0 0 18px; display: grid; gap: 10px; }
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line2); }
.kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { color: var(--muted); font-size: .92rem; }
.kv dd { margin: 0; font-weight: 600; text-align: end; min-width: 0; overflow-wrap: anywhere; }
.kv bdi { font-family: var(--mono); font-size: .95rem; font-variant-numeric: tabular-nums; }
.hw { display: inline-flex; align-items: center; gap: 8px; }
.icon-btn { min-height: 36px; padding: 4px 12px; border-radius: 10px; background: rgba(148,163,184,.08); color: var(--ink); border: 1px solid var(--line2); font: 500 .85rem var(--sans); cursor: pointer; }
.icon-btn:hover { border-color: var(--teal); }
.pill { display: inline-block; padding: 2px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; border: 1px solid currentColor; }
.pill.green { color: var(--green); background: rgba(34,197,94,.1); }
.pill.warn { color: var(--warn); background: rgba(251,191,36,.1); }
.pill.danger { color: var(--danger); background: rgba(244,63,94,.1); }
.pill.life { color: var(--teal); background: rgba(45,212,191,.1); }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.row-actions .btn { flex: 1 1 140px; }
.pill.trial { color: var(--teal); background: rgba(45,212,191,.1); }
.pill.activated { color: var(--green); background: rgba(34,197,94,.1); }
.pill.expired { color: var(--warn); background: rgba(251,191,36,.1); }
.pill.disabled { color: var(--danger); background: rgba(244,63,94,.1); }
.trial-note { margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; font-size: .88rem; line-height: 1.6; color: var(--teal); background: rgba(45,212,191,.08); border: 1px solid rgba(45,212,191,.25); }
.trial-note[hidden], .card form[hidden] { display: none; }
#pw-request { margin-top: 4px; }
.card > .btn { width: 100%; }
.ops { margin-top: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.filters > div { display: grid; gap: 4px; flex: 1 1 150px; }
.filters .grow { flex: 2 1 220px; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line2); }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line2); font-size: .93rem; }
th { color: var(--muted); font-weight: 600; background: var(--bg3); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.mono { font-family: var(--mono); direction: ltr; text-align: end; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.badge.ok { color: var(--green); background: rgba(34,197,94,.12); }
.badge.bad { color: var(--danger); background: rgba(244,63,94,.12); }
#ops-more { margin: 16px auto 0; display: flex; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
@media (max-width: 480px) {
  .card, .auth-card { padding: 18px 16px; }
  .grid { grid-template-columns: 1fr; }
}
