.auth-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 80px 1fr;
  max-width: 1600px;
  margin: auto;
  padding: 0 40px 28px;
  gap: 0 28px;
}
.auth-header {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-header > a:last-child {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 18px;
}
.intro {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 13px;
  background: #1a141e;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}
.intro:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/client-hud.webp") 58% center/cover no-repeat;
  opacity: 0.65;
}
.intro:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0c0c1020, #0c0c1050 50%, #0c0c10eb);
}
.intro-copy,
.intro-footer {
  position: relative;
  z-index: 1;
}
.intro-copy h1 {
  font-family: var(--display);
  font-size: clamp(72px, 7vw, 118px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 1.15;
  margin: 0 0 15px;
}
.intro-copy h1 span {
  color: var(--accent);
}
.intro-description {
  font-size: 14px;
  color: #c3bbcd;
  margin: 0;
}
.intro-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  margin-top: 35px;
  border-top: 1px solid #ffffff20;
  font-size: 11px;
  color: #ada3b8;
}
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 35px 45px;
  position: relative;
}
.auth-content {
  width: 100%;
  max-width: 370px;
}
.tabs {
  display: flex;
  gap: 27px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 34px;
}
.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 0 0 14px;
  min-width: 42px;
  min-height: 38px;
  font-size: 13px;
  position: relative;
  bottom: -1px;
}
.tabs button[aria-selected="true"] {
  color: var(--text);
  border-color: var(--accent);
}
.auth-form h2 {
  font-weight: 500;
  font-size: 29px;
  letter-spacing: -0.05em;
  line-height: 1.4;
  margin: 0 0 11px;
}
.form-description {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 30px;
}
.auth-form label {
  margin-top: 20px;
}
.auth-form .primary {
  width: 100%;
  margin-top: 28px;
  justify-content: space-between;
}
.form-footnote {
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0 0;
  text-align: center;
}
.form-footnote button {
  font-size: 12px;
  margin-left: 8px;
}
.auth-bottom {
  position: absolute;
  bottom: 10px;
  width: calc(100% - 90px);
  max-width: 370px;
  display: flex;
  justify-content: space-between;
  color: #6e687a;
  font-size: 10px;
  letter-spacing: 0.02em;
}
.code-input {
  font-family: var(--display);
  letter-spacing: 0.4em;
  font-size: 19px;
}
.verify-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}
.verify-actions button {
  font-size: 12px;
}
.console {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  border-right: 1px solid var(--border);
  padding: 33px 20px 22px;
  display: flex;
  flex-direction: column;
  background: #101015;
}
.sidebar .brand {
  margin-left: 10px;
  font-size: 25px;
}
.sidebar .brand-small {
  font-size: 10px;
  letter-spacing: 0;
}
.sidebar .brand svg {
  width: 29px;
  height: 29px;
}
.nav-caption {
  color: #716c7d;
  font-size: 10px;
  margin: 45px 13px 12px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  min-height: 43px;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  border-radius: 7px;
  padding: 0 13px;
  font-size: 13px;
}
.nav-item span {
  font-size: 15px;
  color: #80758e;
}
.nav-item.selected {
  color: var(--text);
  background: #b7a5f510;
  border-color: #b7a5f514;
}
.nav-item.selected span {
  color: var(--accent);
}
.nav-item:hover {
  background: #ffffff05;
  color: var(--text);
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #787180;
  font-size: 11px;
  padding: 22px 12px 0;
  border-top: 1px solid var(--border);
}
.logout {
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: 0;
  text-align: left;
  padding: 0;
  min-height: 30px;
}
.logout:hover {
  color: var(--text);
}
.workspace {
  padding: 0 46px;
  min-width: 0;
  max-width: 1440px;
  width: 100%;
  margin: auto;
}
.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 86px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
  margin-bottom: 38px;
}
.workspace-header > .eyebrow {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0;
  color: #8b8498;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #b7a5f518;
  color: var(--accent);
  font-family: var(--display);
  font-size: 12px;
}
.badge,
.pill,
.state,
.license-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border: 1px solid #ffffff1a;
  padding: 4px 9px;
  line-height: 1.5;
  border-radius: 5px;
  color: var(--muted);
  white-space: nowrap;
}
.badge,
.admin-pill {
  color: var(--accent);
  background: #b7a5f510;
  border-color: #b7a5f520;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 27px;
}
.page-title h1 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.05em;
  margin: 0;
}
.page-title .eyebrow {
  display: none;
}
.page-title > .subtle {
  font-size: 12px;
  margin: 0;
}
.license-panel {
  display: flex;
  position: relative;
  overflow: hidden;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 28px;
}
.license-main {
  flex: 1;
  min-width: 0;
}
.license-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 25px;
}
.license-top .pill {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.02em;
  border: 0;
  padding: 0;
  color: #9e95b0;
}
.license-status {
  padding: 3px 8px;
}
.license-status.active,
.state.available {
  color: #b5cec3;
  background: #b5cec308;
  border-color: #b5cec324;
}
.license-main h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.05em;
  margin: 0 0 8px;
}
.license-main > p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.license-meta {
  display: flex;
  gap: 58px;
  margin-top: 26px;
}
.license-meta > span {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: #91899e;
}
.license-meta strong {
  font-size: 14px;
  color: #d6d0e1;
  font-weight: 400;
}
.license-mark {
  width: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid var(--border);
  margin: 4px 0 4px 30px;
  color: #a59abf;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -0.05em;
}
.license-mark svg {
  width: 68px;
  height: 68px;
  fill: none;
  stroke: #b7a5f577;
  stroke-width: 0.65;
}
.account-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
.section-block {
  background: #121217;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 25px 27px;
  margin-bottom: 24px;
  min-width: 0;
}
.section-heading,
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
  justify-content: flex-start;
}
.section-heading h2,
.section-title h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
}
.section-heading > button {
  margin-left: auto;
  font-size: 12px;
}
.section-heading .count {
  margin-left: auto;
}
.section-number {
  display: none;
}
.section-block > .subtle {
  font-size: 12px;
  margin: 0 0 22px;
}
.redeem-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
}
.redeem-form input {
  font-size: 12px;
}
.redeem-form button {
  flex-shrink: 0;
  min-height: 44px;
  padding-inline: 18px;
}
.activation-input {
  font-family: var(--display);
  font-size: 11px !important;
  letter-spacing: 0.02em;
}
.device-block .secondary {
  min-height: 40px;
  font-size: 12px;
}
.device-block .subtle {
  line-height: 1.9;
}
.history-block {
  padding-bottom: 8px;
}
.count {
  font-family: var(--display);
  font-size: 10px;
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 23px;
  padding: 2px 7px;
  background: #ffffff07;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 5px;
}
.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}
table {
  border-collapse: collapse;
  white-space: nowrap;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  color: #8f879c;
  font-weight: 400;
  font-size: 11px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #ffffff02;
}
td {
  color: #c7c0d1;
  padding: 16px;
  border-bottom: 1px solid #ffffff09;
}
th:first-child,
td:first-child {
  padding-left: 0;
}
th:last-child,
td:last-child {
  padding-right: 0;
}
tr:last-child td {
  border-bottom: 0;
}
td .text-button {
  font-size: 11px;
}
.empty-state {
  color: #787080;
  min-height: 115px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  text-align: center;
  padding: 20px;
  margin: 0;
}
.empty-state > span {
  display: none;
}
.empty-state p {
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.stats > div {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 22px 26px;
  background: var(--surface);
}
.stats span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.stats strong {
  font-family: var(--display);
  font-size: 29px;
  font-weight: 400;
  color: #ded8eb;
  letter-spacing: -0.04em;
}
.generate-form {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  flex-wrap: wrap;
}
.generate-form > div {
  flex: 1;
  min-width: 110px;
}
.generate-form > div:has(#generate-expiry) {
  flex: 1.5;
  min-width: 190px;
}
.generate-form .primary {
  flex-shrink: 0;
}
.generate-form label {
  font-size: 11px;
}
.generated-panel {
  background: #b7a5f507;
  border: 1px solid #b7a5f522;
  border-radius: 8px;
  padding: 19px;
  margin-top: 22px;
}
.generated-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.generated-heading h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}
.generated-heading > div {
  display: flex;
  gap: 16px;
}
.generated-heading .text-button {
  font-size: 11px;
}
.generated-panel textarea {
  margin-top: 14px;
  min-height: 115px;
  font-family: Consolas, monospace;
  font-size: 12px;
}
.state.redeemed {
  color: #aaa1c2;
  background: #b7a5f508;
}
.state.revoked,
.state.expired {
  color: #ad8396;
  background: #ad839608;
}
.irc-grid {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.irc-presence {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #121217;
  padding: 23px;
}
.irc-presence .section-title {
  justify-content: space-between;
}
.irc-presence h2 {
  font-size: 14px;
}
.irc-presence .empty-state {
  min-height: 70px;
  padding: 10px 0;
  font-size: 11px;
}
.irc-presence .input-hint {
  font-size: 10px;
  line-height: 1.8;
}
.irc-online {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.irc-online-user {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 5px;
  border: 1px solid #ffffff12;
  font-size: 11px;
  color: #c9c2d6;
  background: #ffffff03;
}
.irc-online-user:before {
  content: "";
  width: 5px;
  height: 5px;
  display: block;
  background: #b0c7bd;
  border-radius: 50%;
}
.irc-chat {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #121217;
  overflow: hidden;
  min-width: 0;
}
.irc-chat > .subtle {
  padding: 17px 22px;
  margin: 0;
  font-size: 11px;
  border-bottom: 1px solid var(--border);
}
.irc-messages {
  padding: 0 22px;
  max-height: 540px;
  min-height: 180px;
  overflow-y: auto;
}
.irc-message {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.irc-message:last-child {
  border: 0;
}
.irc-message > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.irc-message strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}
.irc-message time {
  font-size: 10px;
  color: #7e758e;
}
.irc-message p {
  font-size: 13px;
  color: #d0c9dc;
  line-height: 1.9;
  margin: 9px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.irc-compose {
  padding: 20px 22px;
  border-top: 1px solid var(--border);
  background: #ffffff01;
}
.irc-compose label {
  font-size: 11px;
}
.irc-compose textarea {
  min-height: 88px;
  font-size: 13px;
}
.irc-compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 13px;
}
.irc-compose-footer .input-hint {
  font-size: 10px;
  margin: 0;
}
.irc-compose .primary {
  min-height: 38px;
  font-size: 12px;
  padding-inline: 17px;
}
.irc-chat > #irc-older {
  display: flex;
  margin: 17px 22px;
  min-height: 36px;
  font-size: 11px;
}
.console-footer {
  border-top: 1px solid var(--border);
  margin-top: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 28px;
  font-size: 10px;
  color: #6f687b;
  gap: 20px;
}
@media (min-width: 1500px) {
  .auth-layout {
    padding: 0 60px 40px;
    grid-template-rows: 100px 1fr;
    gap: 0 50px;
  }
  .auth-panel {
    padding: 45px 70px;
  }
  .intro {
    padding: 60px;
  }
}
@media (max-width: 1100px) {
  .auth-layout {
    padding: 0 25px 25px;
    gap: 0 18px;
    grid-template-columns: 0.9fr 1fr;
  }
  .intro {
    min-height: 580px;
    padding: 30px;
  }
  .auth-panel {
    padding-inline: 35px;
  }
  .console {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .workspace {
    padding-inline: 30px;
  }
  .sidebar {
    padding-inline: 14px;
  }
  .account-columns {
    grid-template-columns: 1fr;
  }
  .license-mark {
    width: 140px;
  }
  .license-meta {
    gap: 35px;
  }
  .irc-grid {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
  }
  .irc-presence {
    padding: 18px;
  }
  .stats {
    gap: 14px;
  }
  .stats > div {
    padding: 20px;
  }
}
@media (max-width: 760px) {
  .auth-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 76px 1fr;
    padding: 0 24px 22px;
  }
  .intro {
    display: none;
  }
  .auth-panel {
    padding: 27px 10px 70px;
    min-height: 650px;
  }
  .auth-content {
    max-width: 390px;
  }
  .auth-bottom {
    width: calc(100% - 20px);
    max-width: 390px;
    bottom: 20px;
  }
  .auth-header .brand {
    font-size: 25px;
  }
  .console {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 22px 24px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .sidebar .brand {
    margin: 0;
    font-size: 24px;
  }
  .sidebar .brand-small {
    display: none;
  }
  .nav-caption {
    display: none;
  }
  .sidebar nav {
    grid-column: 1/-1;
    grid-row: 2;
    flex-direction: row;
    gap: 7px;
    overflow: auto;
  }
  .nav-item {
    min-height: 40px;
    white-space: nowrap;
    font-size: 12px;
    padding-inline: 13px;
  }
  .nav-item span {
    font-size: 13px;
  }
  .sidebar-bottom {
    padding: 0;
    margin: 0;
    border: 0;
    font-size: 0;
    align-self: center;
  }
  .sidebar-bottom > span {
    display: none;
  }
  .logout {
    font-size: 11px;
    text-align: right;
  }
  .workspace {
    padding: 0 24px;
  }
  .workspace-header {
    height: 68px;
    margin-bottom: 28px;
  }
  .workspace-header > .eyebrow {
    font-size: 11px;
  }
  .identity {
    font-size: 11px;
    gap: 7px;
  }
  .avatar {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
  .badge {
    font-size: 9px;
    padding: 3px 7px;
  }
  .page-title {
    margin-bottom: 22px;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .page-title h1 {
    font-size: 25px;
  }
  .page-title > .subtle {
    font-size: 11px;
  }
  .license-panel {
    padding: 24px;
  }
  .license-mark {
    display: none;
  }
  .license-main h2 {
    font-size: 24px;
  }
  .license-main > p {
    font-size: 12px;
    line-height: 1.9;
  }
  .license-meta {
    gap: 30px;
  }
  .license-meta strong {
    font-size: 12px;
  }
  .license-meta > span {
    font-size: 10px;
  }
  .section-block {
    padding: 22px;
    margin-bottom: 20px;
  }
  .history-block {
    padding-bottom: 8px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .section-block > .subtle {
    font-size: 12px;
  }
  .account-columns {
    gap: 0;
  }
  .redeem-form {
    flex-wrap: wrap;
  }
  .redeem-form input {
    flex: 1;
    min-width: 170px;
  }
  .redeem-form .primary {
    padding-inline: 15px;
    gap: 10px;
  }
  .redeem-form button {
    font-size: 12px;
  }
  .stats {
    gap: 8px;
  }
  .stats > div {
    padding: 16px 12px;
  }
  .stats span {
    font-size: 10px;
  }
  .stats strong {
    font-size: 24px;
  }
  .generate-form {
    gap: 15px 12px;
  }
  .generate-form > div {
    min-width: calc(50% - 12px);
  }
  .generate-form .primary {
    width: 100%;
    margin-top: 5px;
  }
  .generated-heading {
    align-items: flex-start;
  }
  .generated-heading h3 {
    font-size: 12px;
  }
  .generated-heading > div {
    gap: 10px;
  }
  .generated-panel {
    padding: 15px;
  }
  .irc-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .irc-presence,
  .irc-chat {
    width: 100%;
  }
  .irc-presence {
    padding: 20px;
  }
  .irc-presence .empty-state {
    min-height: 30px;
  }
  .irc-presence .input-hint {
    font-size: 10px;
  }
  .irc-message > div {
    align-items: flex-start;
    gap: 10px;
  }
  .irc-message time {
    font-size: 9px;
  }
  .irc-messages {
    padding-inline: 18px;
    max-height: 450px;
  }
  .irc-compose {
    padding: 18px;
  }
  .irc-chat > .subtle {
    padding: 15px 18px;
  }
  .console-footer {
    font-size: 9px;
    margin-top: 28px;
    padding-block: 22px;
    gap: 12px;
  }
}
@media (max-width: 380px) {
  .auth-layout {
    padding-inline: 20px;
  }
  .workspace {
    padding-inline: 18px;
  }
  .sidebar {
    padding-inline: 18px;
  }
  .section-block {
    padding: 18px;
  }
  .redeem-form .primary {
    width: 100%;
  }
  .license-panel {
    padding: 21px;
  }
  .license-meta {
    gap: 18px;
  }
  .stats > div {
    padding: 15px 9px;
  }
  .console-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}
