:root {
  color-scheme: light;
  --bg: #eef3f8;
  --ink: #17202a;
  --muted: #667085;
  --faint: #8b98a8;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.76);
  --glass-line: rgba(255, 255, 255, 0.72);
  --line: rgba(38, 56, 80, 0.12);
  --blue: #0969da;
  --blue-strong: #0057c2;
  --cyan: #15b8a6;
  --cyan-dark: #0d9488;
  --amber: #f59e0b;
  --red: #ff5a5f;
  --shadow: 0 24px 70px rgba(35, 55, 80, 0.14);
  --soft-shadow: 0 12px 34px rgba(35, 55, 80, 0.10);
  font-family: "Avenir Next", "SF Pro Display", "SF Pro Text", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[x-cloak] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.95), transparent 24%),
    radial-gradient(circle at 82% 6%, rgba(9, 105, 218, 0.18), transparent 26%),
    radial-gradient(circle at 68% 72%, rgba(21, 184, 166, 0.14), transparent 30%),
    linear-gradient(145deg, #edf4fb 0%, #f7f9fc 48%, #eaf0f7 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
}

body::before {
  width: 360px;
  height: 360px;
  left: -80px;
  top: 140px;
  background: rgba(21, 184, 166, 0.14);
}

body::after {
  width: 420px;
  height: 420px;
  right: -90px;
  bottom: 80px;
  background: rgba(9, 105, 218, 0.12);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.48;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid rgba(38, 56, 80, 0.12);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

input:focus,
select:focus {
  border-color: rgba(9, 105, 218, 0.42);
  box-shadow: 0 0 0 4px rgba(9, 105, 218, 0.10);
}

label {
  display: grid;
  gap: 7px;
}

label span,
.eyebrow,
.sidebar-label,
dt,
.header-title small,
.sidebar-status p,
.sidebar-status small,
.page-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.header-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 74px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(238, 243, 248, 0.64);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-title strong,
.header-title small {
  display: block;
}

.header-title strong {
  letter-spacing: -0.03em;
}

.header-title small {
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-dot {
  width: 40px;
  height: 40px;
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), transparent 38%),
    linear-gradient(150deg, #0ea5e9, #15b8a6);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.26);
}

.header-actions,
.action-row,
.card-actions,
.email-actions,
.pager-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

button,
.status-pill {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(38, 56, 80, 0.10);
  border-radius: 13px;
  color: #304156;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.48));
  box-shadow: 0 8px 20px rgba(35, 55, 80, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 680;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

button:hover {
  border-color: rgba(38, 56, 80, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58));
  box-shadow: 0 10px 24px rgba(35, 55, 80, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

button:active {
  transform: translateY(1px);
}

.primary {
  color: #08776f;
  border-color: rgba(21, 184, 166, 0.18);
  background:
    linear-gradient(180deg, rgba(230, 255, 250, 0.88), rgba(204, 251, 241, 0.62));
  box-shadow: 0 8px 20px rgba(21, 184, 166, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.primary:hover {
  border-color: rgba(21, 184, 166, 0.26);
  background:
    linear-gradient(180deg, rgba(229, 255, 250, 0.96), rgba(190, 242, 232, 0.72));
}

.create-primary {
  min-height: 40px;
  padding: 0 16px;
  color: #075ca8;
  border-color: rgba(9, 105, 218, 0.18);
  background:
    linear-gradient(180deg, rgba(239, 248, 255, 0.96), rgba(219, 234, 254, 0.68));
  box-shadow: 0 10px 24px rgba(9, 105, 218, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 760;
  text-shadow: none;
}

.create-primary:hover {
  color: #064f91;
  border-color: rgba(9, 105, 218, 0.25);
  background:
    linear-gradient(180deg, rgba(239, 248, 255, 1), rgba(191, 219, 254, 0.72));
  box-shadow: 0 12px 28px rgba(9, 105, 218, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.secondary,
.icon-button {
  color: #304156;
}

.secondary:hover,
.icon-button:hover {
  color: #17202a;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--faint);
}

.status-pill.ready i {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(21, 184, 166, 0.12);
}

.status-pill.syncing i {
  background: var(--amber);
}

.layout-shell {
  width: min(1440px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  margin: 14px auto 38px;
}

.sidebar-menu {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 12px;
}

.sidebar-card,
.sidebar-status,
.create-panel,
.alias-card,
.filter-bar,
.email-card,
.empty-state {
  border: 1px solid var(--glass-line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.46)),
    var(--glass);
  box-shadow: var(--soft-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(175%);
  -webkit-backdrop-filter: blur(24px) saturate(175%);
}

.sidebar-card,
.sidebar-status {
  border-radius: 22px;
  padding: 12px;
}

.sidebar-label,
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-card button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  color: #28384d;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.sidebar-card button small {
  max-width: 86px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-card button.active {
  color: #0b3b73;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 24px rgba(35, 55, 80, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.sidebar-status {
  display: grid;
  gap: 7px;
}

.sidebar-status p,
.sidebar-status strong,
.sidebar-status small {
  margin: 0;
}

.sidebar-status strong {
  font-size: 14px;
  line-height: 1.45;
}

.activity-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  background: linear-gradient(180deg, #12161d, #090b10);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.20);
}

.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.log-head span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.log-head button {
  min-height: 28px;
  padding: 0 9px;
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  font-size: 12px;
}

.log-head button:hover {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.10);
}

.log-list {
  max-height: 520px;
  display: grid;
  gap: 2px;
  overflow: auto;
  padding: 10px 12px 12px;
}

.log-line {
  display: grid;
  grid-template-columns: 76px 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 6px 8px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-family: Menlo, Monaco, "SF Mono", "Lucida Console", monospace;
  font-size: 11px;
  line-height: 1.5;
}

.log-line:hover {
  background: rgba(255, 255, 255, 0.05);
}

.log-line time {
  color: rgba(255, 255, 255, 0.42);
}

.log-line span {
  color: rgba(255, 255, 255, 0.52);
}

.log-line p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.log-line.warning span,
.log-line.warning p {
  color: #fdb022;
}

.log-line.error span,
.log-line.error p {
  color: var(--red);
}

.log-empty {
  margin: 0;
  padding: 12px 4px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  text-align: center;
}

.content-area {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.page-head {
  min-height: 82px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.page-head h1 {
  margin: 0 0 6px;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.055em;
}

.latest-code-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 5px 4px 12px;
  border: 1px solid rgba(21, 184, 166, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.latest-code-pill span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.latest-code-pill strong {
  color: #08776f;
  font-family: Menlo, Monaco, "SF Mono", "Lucida Console", monospace;
  letter-spacing: 0.08em;
}

.latest-code-pill button {
  min-height: 32px;
  border-radius: 999px;
  color: #08776f;
  background: rgba(21, 184, 166, 0.10);
}

.create-panel,
.filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(180px, 260px) minmax(180px, 1fr);
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 22px;
}

.cdk-tools {
  width: min(360px, 42vw);
  padding: 9px 11px;
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.46)),
    var(--glass);
  box-shadow: var(--soft-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(175%);
}

.cdk-tools input {
  min-height: 34px;
  border-radius: 12px;
}

.list-tools {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin: -2px 0 14px;
}

.pager-actions {
  justify-content: flex-end;
  padding: 4px;
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(18px);
}

.page-size {
  width: 104px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px;
}

.page-size select,
.pager-actions button {
  min-height: 34px;
  border-radius: 12px;
}

.preview-token {
  min-height: 42px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 7px 12px;
  border: 1px solid rgba(21, 184, 166, 0.16);
  border-radius: 14px;
  background: rgba(21, 184, 166, 0.08);
}

.preview-token span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.preview-token strong,
.code-badge {
  font-family: Menlo, Monaco, "SF Mono", "Lucida Console", monospace;
}

.alias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
}

.cdk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}

.alias-card,
.cdk-card {
  min-height: 245px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 24px;
}

.alias-card.selected {
  border-color: rgba(21, 184, 166, 0.36);
  box-shadow: 0 20px 44px rgba(21, 184, 166, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.cdk-card {
  border: 1px solid var(--glass-line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.46)),
    var(--glass);
  box-shadow: var(--soft-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(175%);
}

.cdk-card.cdk-used {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(145deg, rgba(255, 251, 235, 0.94), rgba(254, 243, 199, 0.54));
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.cdk-card.cdk-disabled {
  opacity: 0.72;
  background: linear-gradient(145deg, rgba(241, 245, 249, 0.82), rgba(255, 255, 255, 0.42));
}

.cdk-card.cdk-alias-disabled {
  border-color: rgba(225, 29, 72, 0.48);
  background: linear-gradient(145deg, rgba(255, 228, 230, 0.96), rgba(254, 205, 211, 0.64));
  box-shadow: 0 18px 42px rgba(225, 29, 72, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.cdk-value {
  font-family: Menlo, Monaco, "SF Mono", "Lucida Console", monospace;
  font-size: 20px;
  letter-spacing: 0.03em;
}

.cdk-card p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-chip,
.alias-tag,
.code-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
}

.service-chip {
  color: #08776f;
  background: rgba(21, 184, 166, 0.10);
}

.service-chip.service-openai {
  color: #08776f;
  background: rgba(21, 184, 166, 0.12);
  border: 1px solid rgba(21, 184, 166, 0.18);
}

.service-chip.service-github {
  color: #f8fafc;
  background: linear-gradient(180deg, #24292f, #0d1117);
  border: 1px solid rgba(13, 17, 23, 0.22);
  box-shadow: 0 8px 18px rgba(13, 17, 23, 0.14);
}

.service-chip.service-google {
  color: #0b57d0;
  background: rgba(66, 133, 244, 0.12);
  border: 1px solid rgba(66, 133, 244, 0.18);
}

.service-chip.service-discord {
  color: #3f46ad;
  background: rgba(88, 101, 242, 0.13);
  border: 1px solid rgba(88, 101, 242, 0.18);
}

.service-chip.service-generic {
  color: #475467;
  background: rgba(71, 84, 103, 0.10);
  border: 1px solid rgba(71, 84, 103, 0.14);
}

.alias-card h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.card-actions {
  gap: 8px;
}

.card-actions button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
}

.card-actions .primary {
  box-shadow: 0 8px 18px rgba(21, 184, 166, 0.16);
}

.card-actions .secondary {
  color: #35445a;
}

dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
}

dt,
dd {
  margin: 0;
}

dd {
  overflow-wrap: anywhere;
}

.switch {
  display: inline-flex;
  align-items: center;
}

.switch input {
  display: none;
}

.switch span {
  width: 46px;
  height: 28px;
  position: relative;
  border-radius: 999px;
  background: rgba(38, 56, 80, 0.22);
  transition: background 0.15s ease;
}

.switch span::after {
  content: "";
  width: 24px;
  height: 24px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
  transition: transform 0.15s ease;
}

.switch input:checked + span {
  background: var(--cyan);
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

.mail-timeline {
  display: grid;
  gap: 12px;
}

.email-card {
  overflow: hidden;
  border-radius: 24px;
}

.email-main {
  width: 100%;
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 16px;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mail-from {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.email-main h2 {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.alias-tag {
  color: #3c526e;
  background: rgba(255, 255, 255, 0.54);
}

.mail-meta {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.code-badge {
  color: #08776f;
  background: rgba(21, 184, 166, 0.12);
  font-size: 15px;
}

.email-actions {
  justify-content: flex-end;
  padding: 0 16px 16px;
}

.mail-body {
  max-height: 360px;
  margin: 0 16px 16px;
  padding: 14px;
  overflow: auto;
  color: #27364a;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
  white-space: pre-wrap;
  line-height: 1.6;
}

.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  border-radius: 24px;
  text-align: center;
}

.empty-state strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  max-width: min(460px, calc(100vw - 48px));
  padding: 13px 16px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.86);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.site-footer {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 20;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 7px 12px;
  color: rgba(102, 112, 133, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 30px rgba(35, 55, 80, 0.10);
  backdrop-filter: blur(18px) saturate(175%);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: -0.01em;
  transform: translateX(-50%);
  white-space: nowrap;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(48, 65, 86, 0.78);
  text-decoration: none;
  transition: color 0.14s ease, transform 0.14s ease;
}

.site-footer a:hover {
  color: #17202a;
  transform: translateY(-1px);
}

.site-footer svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.toast.success {
  color: #063f3b;
  border-color: rgba(21, 184, 166, 0.20);
  background: rgba(229, 255, 250, 0.90);
}

.toast.error {
  color: #9f1239;
  border-color: rgba(255, 90, 95, 0.30);
  background: rgba(255, 241, 242, 0.95);
  box-shadow: 0 20px 54px rgba(159, 18, 57, 0.16);
}

.user-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 24px 70px;
}

.layout-shell {
  padding-bottom: 58px;
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 24px 70px;
}

.user-card {
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--glass-line);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.48)),
    var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(28px) saturate(175%);
}

.user-brand-mark {
  display: flex;
  align-items: center;
  gap: 11px;
}

.user-brand-mark > span {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), transparent 42%),
    linear-gradient(150deg, #0ea5e9, #15b8a6);
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.22);
}

.user-brand-mark strong,
.user-brand-mark small {
  display: block;
}

.user-brand-mark strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.user-brand-mark small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 740;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-login-card {
  width: min(480px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--glass-line);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.50)),
    var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(28px) saturate(175%);
}

.user-card h1 {
  margin: 0;
  font-size: clamp(38px, 8vw, 64px);
  letter-spacing: -0.06em;
}

.admin-login-card h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 58px);
  letter-spacing: -0.06em;
}

.user-subtitle,
.user-message,
.admin-login-card p {
  margin: 0;
  color: var(--muted);
}

.user-signal-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.user-signal-row span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  color: #3c526e;
  border: 1px solid rgba(38, 56, 80, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.user-message {
  min-height: 20px;
  font-size: 13px;
  font-weight: 720;
}

.user-message.success {
  color: #08776f;
}

.user-message.error {
  color: #b42318;
  padding: 10px 12px;
  border: 1px solid rgba(255, 90, 95, 0.26);
  border-radius: 14px;
  background: rgba(255, 241, 242, 0.86);
}

.user-action {
  width: 100%;
}

.user-code-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(21, 184, 166, 0.18);
  border-radius: 22px;
  background: rgba(236, 253, 245, 0.58);
  text-align: center;
}

.user-code-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.user-code-card strong {
  color: #08776f;
  font-family: Menlo, Monaco, "SF Mono", "Lucida Console", monospace;
  font-size: clamp(48px, 12vw, 82px);
  letter-spacing: 0.08em;
}

.user-code-card p {
  margin: 0;
  color: var(--muted);
}

.user-code-card .user-code-email {
  color: #27364a;
  font-size: 13px;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.admin-link {
  justify-self: center;
  font-size: 13px;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .header-bar {
    grid-template-columns: 1fr;
    height: auto;
  }

  .layout-shell {
    grid-template-columns: 1fr;
  }

  .sidebar-menu {
    position: static;
  }

  .sidebar-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .sidebar-label {
    grid-column: 1 / -1;
  }

  .sidebar-card button {
    margin-top: 0;
  }

  .log-list {
    max-height: 170px;
  }
}

@media (max-width: 760px) {
  .header-bar {
    padding: 10px 12px;
  }

  .log-line {
    grid-template-columns: 56px 38px minmax(0, 1fr);
    gap: 7px;
    font-size: 9.5px;
  }

  .layout-shell {
    width: min(100vw - 16px, 1440px);
    margin-top: 10px;
  }

  .page-head,
  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .action-row > *,
  .card-actions > *,
  .email-actions > *,
  .pager-actions > * {
    flex: 1 1 140px;
  }

  .cdk-tools {
    width: 100%;
    flex: 1 1 100%;
  }

  .create-panel,
  .filter-bar,
  .email-main,
  .sidebar-card {
    grid-template-columns: 1fr;
  }

  .alias-grid {
    grid-template-columns: 1fr;
  }

  .mail-meta {
    justify-items: start;
  }

  .user-shell {
    min-height: 100svh;
    align-items: start;
    padding: 14px 14px 58px;
  }

  .user-card {
    width: min(100%, 430px);
    gap: 12px;
    padding: 18px;
    border-radius: 26px;
  }

  .user-brand-mark > span {
    width: 34px;
    height: 34px;
    border-radius: 13px;
  }

  .user-card h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .user-subtitle {
    font-size: 13px;
    line-height: 1.45;
  }

  .user-signal-row {
    gap: 6px;
  }

  .user-signal-row span {
    min-height: 28px;
    padding: 0 6px;
    font-size: 11px;
  }

  .user-code-card {
    gap: 5px;
    padding: 14px;
    border-radius: 18px;
  }

  .user-code-card strong {
    font-size: clamp(40px, 14vw, 58px);
  }

  .site-footer {
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 7px 11px;
  }
}
