:root {
  --bg-1: #f6f8fc;
  --bg-2: #eff3f8;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --panel-dark: rgba(21, 31, 41, 0.92);
  --surface: #ffffff;
  --surface-soft: #f7faff;
  --surface-muted: #eef3fb;
  --line: rgba(116, 132, 156, 0.16);
  --line-strong: rgba(116, 132, 156, 0.22);
  --text: #1b2432;
  --muted: #748396;
  --primary: #233248;
  --primary-soft: rgba(35, 50, 72, 0.05);
  --accent: #4d8dff;
  --accent-soft: rgba(77, 141, 255, 0.12);
  --accent-alt: #7faeff;
  --warn: #a8834c;
  --warn-soft: rgba(154, 123, 67, 0.12);
  --danger: #d06767;
  --danger-soft: rgba(208, 103, 103, 0.12);
  --shadow-lg: 0 24px 56px rgba(42, 65, 102, 0.08);
  --shadow-md: 0 14px 32px rgba(42, 65, 102, 0.055);
  --shadow-sm: 0 8px 18px rgba(42, 65, 102, 0.04);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --sans:
    "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
    "Noto Sans SC", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at 12% -2%, rgba(255, 255, 255, 0.98), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(157, 196, 255, 0.18), transparent 26%),
    radial-gradient(circle at 72% 18%, rgba(214, 229, 255, 0.3), transparent 24%),
    radial-gradient(circle at 52% -10%, rgba(232, 238, 248, 0.92), transparent 30%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 34vw;
  height: 34vw;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(48px);
  opacity: 0.22;
}

body::before {
  top: -10vw;
  right: -8vw;
  background: rgba(137, 183, 255, 0.18);
}

body::after {
  bottom: -14vw;
  left: -10vw;
  background: rgba(188, 216, 255, 0.15);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

code,
pre {
  font-family: var(--mono);
}

.hidden {
  display: none !important;
}

.page-shell {
  position: relative;
  width: min(1620px, calc(100% - 20px));
  margin: 0 auto;
  padding: 10px 0 16px;
}

.app-shell {
  display: grid;
  gap: 12px;
}

.page-header-card,
.workspace-card,
.table-tools-card,
.modal-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at 86% 18%, rgba(147, 196, 255, 0.16), transparent 24%),
    radial-gradient(circle at 18% -8%, rgba(255, 255, 255, 0.94), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(249, 251, 255, 0.98) 100%);
  color: var(--text);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -14% auto auto 62%;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(170, 205, 255, 0.3), transparent 62%);
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto auto 0 16px;
  width: 104px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(77, 141, 255, 0.94) 0%, rgba(77, 141, 255, 0.22) 100%);
  pointer-events: none;
}

.workspace-card {
  padding: 10px;
  background: rgba(255, 255, 255, 0.76);
}

.table-tools-card {
  padding: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
}

.page-heading {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.page-heading h1,
.table-tools-top h2,
.modal-top h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-panel .page-heading h1 {
  font-size: 24px;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-panel .eyebrow {
  color: rgba(20, 99, 216, 0.62);
  margin-bottom: 2px;
}

.page-subtitle,
.dashboard-message,
.mail-meta,
.modal-subtitle,
.js-mail-meta,
.js-mail-preview,
.channel-meta {
  color: var(--muted);
}

.hero-panel .page-subtitle,
.hero-panel .header-note {
  color: rgba(23, 36, 51, 0.72);
}

.page-subtitle {
  margin: 0;
  max-width: 1120px;
  font-size: 12px;
  line-height: 1.55;
}

.eyebrow,
.section-label,
.summary-label,
.toolbar-block-title,
.stat-label {
  display: block;
  margin: 0 0 8px;
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
}

.channel-legend,
.page-header-actions,
.toolbar-actions,
.channel-filter-list,
.row-actions,
.table-tools-meta,
.code-strip,
.mail-card-code {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(20, 99, 216, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(30, 49, 69, 0.05);
}

.legend-pill strong {
  font-weight: 800;
}

.legend-pill-link {
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease;
}

.legend-pill-link:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 141, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.94));
  color: rgba(20, 64, 133, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 24px rgba(30, 49, 69, 0.08);
}

.legend-pill-link:focus-visible {
  outline: 0;
  border-color: rgba(77, 141, 255, 0.28);
  box-shadow:
    0 0 0 3px rgba(77, 141, 255, 0.14),
    0 12px 24px rgba(30, 49, 69, 0.08);
}

.header-note {
  margin: 0;
  max-width: 1120px;
  padding: 8px 10px;
  border: 1px solid rgba(20, 99, 216, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  line-height: 1.45;
}

.channel-access-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 1120px;
  padding: 16px;
  border: 1px solid rgba(20, 99, 216, 0.09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(151, 194, 255, 0.14), transparent 28%),
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.98), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.985), rgba(244, 249, 255, 0.955));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 20px 40px rgba(30, 49, 69, 0.065);
}

.channel-access-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(77, 141, 255, 0.42), rgba(77, 141, 255, 0.08), transparent 82%);
}

.channel-access-card::after {
  content: "";
  position: absolute;
  top: -42px;
  right: -14px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 188, 255, 0.2), transparent 68%);
  pointer-events: none;
}

.channel-access-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.channel-access-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.channel-access-mark {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(77, 141, 255, 0.2), rgba(77, 141, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 26px rgba(77, 141, 255, 0.12);
}

.channel-access-mark::before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: rgba(32, 76, 150, 0.94);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 21px 21px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 21px 21px;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E");
}

.channel-access-heading {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.channel-access-bar-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}

.channel-access-kicker {
  display: block;
  margin: 0;
  color: rgba(23, 36, 51, 0.56);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.channel-access-title {
  display: block;
  color: var(--primary);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.channel-access-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(77, 141, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(39, 87, 167, 0.88);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(77, 141, 255, 0.08);
}

.channel-access-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(35, 50, 72, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: rgba(27, 36, 50, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 20px rgba(35, 50, 72, 0.05);
}

.channel-access-note {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 860px;
  color: rgba(23, 36, 51, 0.72);
  font-size: 12px;
  line-height: 1.6;
}

.channel-access-highlights {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.channel-access-highlight {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 72px;
  padding: 12px 13px;
  border: 1px solid rgba(20, 99, 216, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 24px rgba(30, 49, 69, 0.04);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.channel-access-highlight:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 141, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 28px rgba(30, 49, 69, 0.06);
}

.channel-access-highlight-icon {
  position: relative;
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(77, 141, 255, 0.15), rgba(77, 141, 255, 0.07));
}

.channel-access-highlight-icon::before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: rgba(39, 87, 167, 0.9);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 14px 14px;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 14px 14px;
}

.channel-access-highlight-icon.direct::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13 4l7 8h-4v8H10v-8H6zm-8 9h3v7h11v2H5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13 4l7 8h-4v8H10v-8H6zm-8 9h3v7h11v2H5z'/%3E%3C/svg%3E");
}

.channel-access-highlight-icon.backend::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5c0-1.1.9-2 2-2h12c1.1 0 2 .9 2 2v3c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2zm2 9h12c1.1 0 2 .9 2 2v3c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2v-3c0-1.1.9-2 2-2m1-8v1h3V6zm0 11v1h3v-1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5c0-1.1.9-2 2-2h12c1.1 0 2 .9 2 2v3c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2zm2 9h12c1.1 0 2 .9 2 2v3c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2v-3c0-1.1.9-2 2-2m1-8v1h3V6zm0 11v1h3v-1z'/%3E%3C/svg%3E");
}

.channel-access-highlight-icon.api::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8.59 16.59L4 12l4.59-4.59L10 8.82 6.83 12 10 15.18zm6.82 0L14 15.18 17.17 12 14 8.82l1.41-1.41L20 12zm-4.4 2.41h-2l4-14h2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8.59 16.59L4 12l4.59-4.59L10 8.82 6.83 12 10 15.18zm6.82 0L14 15.18 17.17 12 14 8.82l1.41-1.41L20 12zm-4.4 2.41h-2l4-14h2z'/%3E%3C/svg%3E");
}

.channel-access-highlight-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.channel-access-highlight-copy strong {
  color: var(--primary);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.channel-access-highlight-copy span {
  color: rgba(23, 36, 51, 0.62);
  font-size: 11px;
  line-height: 1.45;
}

.channel-access-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.channel-access-item {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 122px;
  padding: 14px;
  border: 1px solid rgba(20, 99, 216, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(246, 250, 255, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 12px 28px rgba(30, 49, 69, 0.055);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.channel-access-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(77, 141, 255, 0.82), rgba(77, 141, 255, 0.18));
  opacity: 0.72;
}

.channel-access-item:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 141, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 34px rgba(30, 49, 69, 0.08);
}

.channel-access-item.api {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 247, 255, 0.95));
}

.channel-access-icon {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(77, 141, 255, 0.16), rgba(77, 141, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.channel-access-icon::before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: rgba(39, 87, 167, 0.92);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 18px 18px;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 18px 18px;
}

.channel-access-icon.direct::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13 4l7 8h-4v8H10v-8H6zm-8 9h3v7h11v2H5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13 4l7 8h-4v8H10v-8H6zm-8 9h3v7h11v2H5z'/%3E%3C/svg%3E");
}

.channel-access-icon.backend::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5c0-1.1.9-2 2-2h12c1.1 0 2 .9 2 2v3c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2zm2 9h12c1.1 0 2 .9 2 2v3c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2v-3c0-1.1.9-2 2-2m1-8v1h3V6zm0 11v1h3v-1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5c0-1.1.9-2 2-2h12c1.1 0 2 .9 2 2v3c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2zm2 9h12c1.1 0 2 .9 2 2v3c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2v-3c0-1.1.9-2 2-2m1-8v1h3V6zm0 11v1h3v-1z'/%3E%3C/svg%3E");
}

.channel-access-icon.api::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8.59 16.59L4 12l4.59-4.59L10 8.82 6.83 12 10 15.18zm6.82 0L14 15.18 17.17 12 14 8.82l1.41-1.41L20 12zm-4.4 2.41h-2l4-14h2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8.59 16.59L4 12l4.59-4.59L10 8.82 6.83 12 10 15.18zm6.82 0L14 15.18 17.17 12 14 8.82l1.41-1.41L20 12zm-4.4 2.41h-2l4-14h2z'/%3E%3C/svg%3E");
}

.channel-access-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.channel-access-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.channel-access-label {
  display: block;
  color: rgba(23, 36, 51, 0.54);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.channel-access-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.channel-access-tag.direct {
  background: rgba(77, 141, 255, 0.11);
  color: rgba(39, 87, 167, 0.9);
}

.channel-access-tag.backend {
  background: rgba(35, 50, 72, 0.08);
  color: rgba(27, 36, 50, 0.72);
}

.channel-access-tag.api {
  background: rgba(134, 165, 228, 0.12);
  color: rgba(57, 92, 170, 0.88);
}

.channel-access-value {
  display: block;
  color: var(--primary);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 850;
  letter-spacing: -0.015em;
  word-break: break-word;
}

.channel-access-item.api .channel-access-value {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
}

.channel-access-meta {
  display: block;
  color: rgba(23, 36, 51, 0.62);
  font-size: 11px;
  line-height: 1.5;
}

.hero-actions {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  justify-content: flex-end;
  min-width: 240px;
  padding-top: 2px;
}

.header-btn,
.ghost-btn,
.secondary-btn,
.primary-btn,
.danger-btn,
.filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.hero-actions .header-btn {
  min-height: 34px;
  border-color: rgba(20, 99, 216, 0.08);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.ghost-btn:hover,
.secondary-btn:hover,
.primary-btn:hover,
.danger-btn:hover,
.filter-chip:hover,
.header-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.header-btn.is-loading,
.ghost-btn.is-loading,
.secondary-btn.is-loading,
.primary-btn.is-loading,
.danger-btn.is-loading {
  opacity: 1;
  cursor: progress;
}

.header-btn.is-loading::before,
.ghost-btn.is-loading::before,
.secondary-btn.is-loading::before,
.primary-btn.is-loading::before,
.danger-btn.is-loading::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  background-color: currentColor;
  opacity: 0.92;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21 12a9 9 0 1 1-2.64-6.36L21 8V2h-6l2.29 2.29A11 11 0 1 0 23 12z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21 12a9 9 0 1 1-2.64-6.36L21 8V2h-6l2.29 2.29A11 11 0 1 0 23 12z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  animation: button-spin 0.9s linear infinite;
}

.primary-btn {
  border-color: transparent;
  background: linear-gradient(135deg, #5a99ff 0%, #3f82fb 100%);
  color: #ffffff;
}

.hero-actions .primary-btn {
  border-color: rgba(77, 141, 255, 0.14);
  background: linear-gradient(135deg, #5a99ff 0%, #3f82fb 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(77, 141, 255, 0.2);
}

.secondary-btn {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.danger-btn {
  color: var(--danger);
  background: rgba(255, 255, 255, 0.92);
}

.small-btn {
  min-height: 30px;
  padding: 0 10px;
}

@keyframes button-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid rgba(37, 62, 92, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 251, 255, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 28px rgba(24, 48, 86, 0.05);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(20, 99, 216, 0.92), rgba(15, 155, 138, 0.18));
  opacity: 0.68;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: -26px -10px auto auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(20, 99, 216, 0.12), rgba(20, 99, 216, 0));
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 99, 216, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 36px rgba(24, 48, 86, 0.08);
}

.stat-card:nth-child(2) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(243, 251, 248, 0.98) 100%);
}

.stat-card:nth-child(2)::after {
  background: radial-gradient(circle, rgba(15, 155, 138, 0.12), rgba(15, 155, 138, 0));
}

.stat-card:nth-child(3) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 250, 244, 0.98) 100%);
}

.stat-card:nth-child(3)::after {
  background: radial-gradient(circle, rgba(191, 147, 74, 0.12), rgba(191, 147, 74, 0));
}

.stat-card:nth-child(4) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 248, 252, 0.98) 100%);
}

.stat-card:nth-child(4)::after {
  background: radial-gradient(circle, rgba(22, 50, 75, 0.12), rgba(22, 50, 75, 0));
}

.stat-value {
  display: block;
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat-value.success {
  color: var(--accent);
}

.stat-value.warn {
  color: var(--warn);
}

.stat-value.muted {
  color: var(--primary);
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.table-tools-top,
.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.selection-pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(77, 141, 255, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(246, 250, 255, 0.98));
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 24px rgba(24, 48, 86, 0.05);
}

.selection-pill::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 44px;
  background: linear-gradient(90deg, rgba(77, 141, 255, 0.08), rgba(77, 141, 255, 0));
  pointer-events: none;
}

.table-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) minmax(280px, 320px);
  gap: 12px;
  margin-bottom: 10px;
  align-items: start;
}

.toolbar-block {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(37, 62, 92, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 26px rgba(24, 48, 86, 0.04);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.toolbar-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(77, 141, 255, 0.14), rgba(77, 141, 255, 0.04));
  pointer-events: none;
}

.toolbar-block:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 141, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 16px 30px rgba(24, 48, 86, 0.06);
}

.toolbar-create-block {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 290px;
  border-color: rgba(77, 141, 255, 0.14);
  background:
    radial-gradient(circle at 86% 18%, rgba(146, 191, 255, 0.22), transparent 28%),
    radial-gradient(circle at 12% 4%, rgba(224, 235, 255, 0.6), transparent 26%),
    linear-gradient(140deg, rgba(255, 255, 255, 1) 0%, rgba(244, 249, 255, 0.99) 52%, rgba(239, 245, 255, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 34px rgba(77, 141, 255, 0.08);
}

.toolbar-create-block::after {
  content: "";
  position: absolute;
  inset: auto -54px -64px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(77, 141, 255, 0.12), rgba(77, 141, 255, 0));
  pointer-events: none;
}

.toolbar-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.toolbar-inline-caption {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.toolbar-inline-meta {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(77, 141, 255, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 248, 255, 0.98));
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.toolbar-create-head,
.toolbar-create-foot {
  position: relative;
  z-index: 1;
}

.toolbar-create-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.toolbar-create-caption {
  margin: 0;
  color: rgba(23, 36, 51, 0.86);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.toolbar-create-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(90, 153, 255, 0.98), rgba(63, 130, 251, 0.96));
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(77, 141, 255, 0.2);
}

.toolbar-create-btn {
  position: relative;
  z-index: 1;
  min-height: 42px;
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(135deg, #5a99ff 0%, #3f82fb 100%);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: -0.02em;
  box-shadow:
    0 18px 34px rgba(77, 141, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.toolbar-create-btn:hover {
  box-shadow:
    0 22px 38px rgba(77, 141, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.toolbar-create-note {
  margin: 0;
  color: rgba(23, 36, 51, 0.7);
  font-size: 11px;
  line-height: 1.45;
}

.toolbar-create-foot {
  display: grid;
  gap: 8px;
}

.toolbar-create-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(77, 141, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(24, 48, 86, 0.05);
}

.toolbar-create-meta.is-empty {
  border-color: rgba(37, 62, 92, 0.08);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

.toolbar-block.grow {
  min-width: 0;
  background:
    radial-gradient(circle at 98% 0%, rgba(162, 201, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.96));
}

.action-block {
  min-width: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(180, 207, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.96));
}

.toolbar-block-title {
  margin-bottom: 4px;
  color: var(--muted);
}

.toolbar-actions {
  gap: 8px;
  justify-content: flex-start;
}

.filter-block .channel-filter-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.filter-chip {
  width: 100%;
  gap: 8px;
  min-width: 0;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 251, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.filter-chip.active {
  border-color: rgba(77, 141, 255, 0.24);
  background: linear-gradient(135deg, rgba(240, 246, 255, 1), rgba(231, 241, 255, 1));
  color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 24px rgba(77, 141, 255, 0.1);
}

.filter-chip-title {
  font-weight: 800;
}

.filter-chip-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.filter-chip-route {
  color: rgba(23, 36, 51, 0.54);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-chip-meta {
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(77, 141, 255, 0.08);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.filter-chip.active .filter-chip-meta {
  background: rgba(77, 141, 255, 0.12);
  color: var(--accent);
}

.filter-chip.active .filter-chip-route {
  color: rgba(63, 130, 251, 0.76);
}

.dashboard-message {
  display: flex;
  align-items: center;
  min-height: 38px;
  margin: 0 0 10px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 1.5;
}

.dashboard-message.idle {
  border-color: rgba(24, 58, 88, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.dashboard-message.loading {
  border-color: rgba(20, 99, 216, 0.12);
  background: rgba(239, 247, 255, 0.94);
  color: var(--primary);
}

.dashboard-message.success {
  border-color: rgba(15, 155, 138, 0.14);
  background: rgba(15, 155, 138, 0.08);
  color: #137a6f;
}

.dashboard-message.error {
  border-color: rgba(180, 84, 77, 0.18);
  background: rgba(180, 84, 77, 0.08);
  color: var(--danger);
}

.toast-viewport {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 80;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.toast-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: start;
  padding: 14px 14px 16px;
  border: 1px solid rgba(116, 132, 156, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary);
  box-shadow:
    0 20px 48px rgba(42, 65, 102, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(18px) translateY(-4px) scale(0.985);
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

.toast-card.show {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

.toast-card.is-leaving {
  opacity: 0;
  transform: translateX(14px) translateY(-4px) scale(0.985);
}

.toast-card.success {
  border-color: rgba(77, 141, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.98));
}

.toast-card.error {
  border-color: rgba(208, 103, 103, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 246, 0.98));
  color: var(--danger);
}

.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(90, 153, 255, 0.16), rgba(90, 153, 255, 0.08));
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.toast-card.error .toast-icon {
  background: linear-gradient(180deg, rgba(208, 103, 103, 0.16), rgba(208, 103, 103, 0.08));
  color: var(--danger);
}

.toast-copy {
  min-width: 0;
}

.toast-title {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.toast-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
  color: inherit;
  opacity: 0.86;
  word-break: break-word;
}

.toast-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(116, 132, 156, 0.08);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.toast-close:hover {
  background: rgba(116, 132, 156, 0.12);
  color: var(--primary);
  box-shadow: none;
}

.toast-progress {
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(90, 153, 255, 0.9), rgba(90, 153, 255, 0.28));
  transform-origin: left center;
  animation: toast-progress var(--toast-duration, 2800ms) linear forwards;
}

.toast-card.error .toast-progress {
  background: linear-gradient(90deg, rgba(208, 103, 103, 0.9), rgba(208, 103, 103, 0.28));
}

@keyframes toast-progress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.list-toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.list-toolbar-group.align-right {
  justify-content: flex-end;
}

.list-size-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(116, 132, 156, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 251, 255, 0.97));
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 8px 18px rgba(42, 65, 102, 0.04);
}

.list-size-control select {
  min-width: 92px;
  height: 30px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(116, 132, 156, 0.18);
  border-radius: 10px;
  background: #ffffff;
  color: var(--primary);
  outline: none;
}

.list-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(116, 132, 156, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.table-wrap {
  position: relative;
  overflow: auto;
  border: 1px solid rgba(116, 132, 156, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 255, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 28px rgba(24, 48, 86, 0.04);
}

.table-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(77, 141, 255, 0.14), rgba(77, 141, 255, 0.03));
  pointer-events: none;
}

.mailbox-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1080px;
}

.mailbox-table th,
.mailbox-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(116, 132, 156, 0.12);
  vertical-align: top;
  text-align: left;
}

.mailbox-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.99), rgba(245, 248, 252, 0.98));
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 -1px 0 rgba(37, 62, 92, 0.08);
}

.mailbox-table tbody tr {
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.mailbox-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(77, 141, 255, 0.05), rgba(255, 255, 255, 0.92) 72%);
}

.mailbox-table tbody tr.is-current-mailbox {
  background: linear-gradient(90deg, rgba(77, 141, 255, 0.06), rgba(255, 255, 255, 0.94) 72%);
}

.mailbox-table tbody tr.is-selected-mailbox {
  background: linear-gradient(90deg, rgba(77, 141, 255, 0.09), rgba(255, 255, 255, 0.96) 76%);
  box-shadow:
    inset 2px 0 0 rgba(77, 141, 255, 0.92),
    inset 0 0 0 1px rgba(77, 141, 255, 0.08);
}

.mailbox-table tbody tr.is-selected-mailbox:hover {
  background: linear-gradient(90deg, rgba(77, 141, 255, 0.11), rgba(255, 255, 255, 0.97) 76%);
}

.mailbox-table tbody tr.is-selected-mailbox.is-current-mailbox {
  background: linear-gradient(90deg, rgba(77, 141, 255, 0.13), rgba(255, 255, 255, 0.97) 76%);
  box-shadow:
    inset 2px 0 0 rgba(77, 141, 255, 0.96),
    inset 0 0 0 1px rgba(77, 141, 255, 0.11);
}

.mailbox-table tbody tr.is-expired-mailbox {
  opacity: 0.72;
}

.cell-select {
  width: 48px;
}

.table-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
}

.channel-cell {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(242, 247, 255, 0.98), rgba(232, 241, 255, 0.94));
  color: rgba(77, 141, 255, 0.9);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.channel-copy,
.stack-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.channel-copy strong,
.js-mail-subject {
  font-size: 12px;
  line-height: 1.35;
}

.channel-meta,
.js-mail-meta,
.js-mail-preview,
.mail-meta,
.modal-subtitle {
  font-size: 11px;
  line-height: 1.4;
}

.js-mail-preview,
.mail-body,
.email-link {
  word-break: break-all;
}

.email-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.email-link:hover {
  color: var(--accent);
}

.code-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(20, 99, 216, 0.07);
  background: linear-gradient(180deg, rgba(244, 249, 255, 1), rgba(233, 243, 252, 0.98));
  color: var(--primary);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(24, 48, 86, 0.04);
}

.code-pill.muted {
  background: rgba(53, 69, 82, 0.08);
  color: var(--muted);
}

.compact-actions {
  justify-content: flex-start;
}

.empty-table-row td {
  padding: 22px 14px;
  border-bottom: 0;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: rgba(247, 251, 255, 0.96);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 18, 20, 0.34);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 18px));
  max-height: calc(100vh - 20px);
  margin: 10px auto;
  padding: 14px;
  overflow: auto;
  background: var(--panel-strong);
}

.modal-subtitle {
  margin: 4px 0 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.summary-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.summary-label {
  color: var(--muted);
}

.summary-value,
.detail-email-btn {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}

.detail-email-btn {
  max-width: 100%;
}

.mail-list {
  display: grid;
  gap: 8px;
}

.mail-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-sm);
}

.mail-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mail-title {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.35;
}

.mail-meta {
  margin: 0;
}

.mail-body {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(29, 29, 31, 0.04);
  color: var(--text);
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 1180px) {
  .hero-panel {
    flex-direction: column;
  }

  .channel-access-head {
    display: grid;
  }

  .channel-access-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-access-grid {
    grid-template-columns: 1fr;
  }

  .channel-access-brand {
    width: 100%;
  }

  .channel-access-bar-meta {
    justify-content: flex-start;
  }

  .hero-actions {
    min-width: 0;
    justify-content: flex-start;
  }

  .stats-grid,
  .detail-summary,
  .table-toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    justify-content: flex-start;
  }

  .list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .list-toolbar-group.align-right {
    justify-content: flex-start;
  }

  .toolbar-create-block,
  .action-block {
    min-width: 0;
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100%, calc(100% - 16px));
    padding: 10px 0 18px;
  }

  .hero-panel,
  .workspace-card,
  .table-tools-card,
  .modal-dialog {
    border-radius: 20px;
  }

  .hero-panel {
    padding: 14px;
  }

  .page-heading h1,
  .table-tools-top h2,
  .modal-top h2 {
    font-size: 20px;
  }

  .hero-panel .page-heading h1 {
    font-size: 22px;
  }

  .page-header-actions,
  .toolbar-actions,
  .channel-filter-list {
    gap: 6px;
  }

  .toolbar-block-head {
    flex-direction: column;
  }

  .channel-access-highlights {
    grid-template-columns: 1fr;
  }

  .header-btn,
  .ghost-btn,
  .secondary-btn,
  .primary-btn,
  .danger-btn,
  .filter-chip {
    width: 100%;
  }

  .filter-chip {
    justify-content: space-between;
  }

  .toolbar-create-head {
    flex-direction: column;
  }

  .toolbar-create-meta {
    width: 100%;
  }

  .toolbar-inline-meta,
  .list-meta-pill,
  .list-size-control {
    width: 100%;
  }

  .filter-block .channel-filter-list {
    grid-template-columns: 1fr;
  }

  .toast-viewport {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .mailbox-table {
    min-width: 940px;
  }
}
