:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #14231f;
  background: #eef5f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #0b6b4b;
  font-weight: 900;
  text-decoration: none;
}

.account-card {
  border: 1px solid #d5e2de;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 50px rgba(12, 30, 25, .09);
  padding: 24px;
}

#authView {
  width: min(520px, 100%);
  margin: 5vh auto 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.brand {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: #0b6b4b;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.eyebrow {
  color: #66736f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

button,
input {
  min-height: 42px;
  border: 1px solid #cbd8d3;
  border-radius: 9px;
  padding: 0 12px;
  font: inherit;
}

button {
  border-color: #0b6b4b;
  background: #0b6b4b;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

button.secondary,
.tabs button {
  background: #eef5f2;
  color: #0b6b4b;
}

.tabs button.active {
  background: #0b6b4b;
  color: #fff;
}

button.danger {
  border-color: #efb4b9;
  background: #fff2f3;
  color: #b0121e;
}

.stack {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: #66736f;
  font-size: 12px;
  font-weight: 900;
}

small {
  color: #66736f;
  font-weight: 700;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
}

.hero-card {
  grid-row: span 2;
}

.wide {
  grid-column: 1 / -1;
}

.license-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #d7e2de;
  border-radius: 12px;
  background: #f7fbfa;
  margin: 16px 0;
}

.license-box strong {
  font-size: 22px;
}

.license-box.active {
  border-color: #a8d9c8;
  background: #effaf6;
}

.license-box.warn {
  border-color: #efd1a2;
  background: #fff8ec;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sessions-list {
  display: grid;
  gap: 10px;
}

.session-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe6e2;
  border-radius: 10px;
  background: #fbfdfc;
}

.session-row small {
  display: block;
  margin-top: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eaf6f1;
  color: #0b6b4b;
  font-size: 12px;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 430px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #10231d;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 40px rgba(12, 30, 25, .24);
}

@media (max-width: 760px) {
  .profile-grid,
  .session-row {
    grid-template-columns: 1fr;
  }
}
