:root {
  --app-bg: #f3f5f1;
  --surface: #ffffff;
  --surface-muted: #f8faf5;
  --border: #dde5dc;
  --text: #17211f;
  --muted: #64736f;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --brand-soft: #dff5ef;
  --ink: #11231f;
  --ink-2: #17342f;
  --aqua: #34d399;
  --success: #15803d;
  --warning: #b45309;
  --danger: #b91c1c;
  --amber: #f59e0b;
  --coral: #ef6f61;
  --shadow: 0 18px 46px rgba(24, 39, 34, 0.09);
}

body {
  min-width: 320px;
  color: var(--text);
  background: var(--app-bg);
}

a {
  color: var(--brand);
}

.btn {
  border-radius: 7px;
  font-weight: 600;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

.btn-outline-primary {
  color: var(--brand);
  border-color: rgba(15, 118, 110, 0.38);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.form-control,
.form-select {
  border-color: #cbd5e1;
  border-radius: 7px;
  min-height: 42px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.14);
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(239, 111, 97, 0.12), transparent 26rem),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.16), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 245, 241, 0.94)),
    var(--app-bg);
}

.app-content {
  flex: 1 0 auto;
  padding: 2rem;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(221, 229, 220, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 245, 0.92));
  box-shadow: 0 12px 34px rgba(24, 39, 34, 0.07);
  backdrop-filter: blur(12px);
}

.topbar-kicker {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar-title {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.topbar-account {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 360px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #42524f;
  font-size: 0.9rem;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--aqua);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.65);
}

.app-footer {
  display: block;
  flex: 0 0 auto;
  padding: 38px clamp(20px, 5vw, 72px) 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #c8d4e3;
  background: #11231f;
  font-size: 0.92rem;
}

.app-footer strong {
  color: #ffffff;
}

.app-admin-header {
  flex: 0 0 auto;
}

.app-admin-footer {
  flex: 0 0 auto;
}

.app-mailbox-header {
  flex: 0 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.sidebar {
  width: 260px;
  flex: 0 0 260px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.16), transparent 16rem),
    linear-gradient(180deg, #11231f 0%, #17342f 52%, #0f2420 100%);
}

.sidebar-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
}

.brand-image-mark,
.login-brand-icon {
  overflow: hidden;
}

.brand-image-mark,
.login-brand-icon:has(img) {
  background: transparent;
  box-shadow: none;
}

.brand-image-mark img,
.login-brand-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar .nav-link {
  border-radius: 7px;
  color: #d9e8df;
  font-weight: 600;
}

.sidebar .nav-link:hover {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.14);
}

.sidebar .nav-link:focus,
.sidebar .nav-link.active {
  color: #ffffff;
  background: rgba(15, 118, 110, 0.32);
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  align-items: stretch;
  gap: 2rem;
  min-height: calc(100vh - 4rem);
}

.auth-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 5rem);
  color: #fff;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(6, 19, 33, 0.94), rgba(11, 104, 255, 0.76)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16'%3E%3Cpath d='M20 48h140v84H20z'/%3E%3Cpath d='m20 48 70 52 70-52'/%3E%3Cpath d='M20 132 72 86M160 132l-52-46'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover, 180px 180px;
}

.auth-copy h1 {
  max-width: 640px;
  margin: 2rem 0 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
}

.auth-copy p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.1rem;
}

.auth-card,
.surface-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card {
  align-self: center;
}

.account-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.account-option {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 86px;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  background: var(--surface-muted);
}

.btn-check:checked + .account-option {
  color: var(--brand-strong);
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.account-option-title {
  font-weight: 800;
}

.account-option-subtitle {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.login-site {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 4rem);
  margin: -2rem;
  color: #162536;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(245, 247, 242, 0.74)),
    radial-gradient(circle at 12% 8%, rgba(242, 107, 94, 0.13), transparent 24rem),
    radial-gradient(circle at 86% 12%, rgba(14, 143, 131, 0.16), transparent 26rem),
    #f5f7f2;
}

.login-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 64px;
  padding: 0.65rem clamp(1rem, 5vw, 4.5rem);
  border-bottom: 1px solid #dbe4ec;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(32, 45, 58, 0.08);
  backdrop-filter: blur(14px);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #10202f;
  font-weight: 900;
  line-height: 1.05;
  text-decoration: none;
}

.login-brand span:last-child {
  display: grid;
}

.login-brand small {
  color: #667789;
  font-size: 0.7rem;
  font-weight: 700;
}

.login-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #10202f, #086a62);
  box-shadow: 0 12px 28px rgba(16, 32, 47, 0.18);
}

.login-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.35rem);
  margin-left: auto;
}

.login-links a,
.login-more summary {
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  color: #405168;
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
}

.login-links a:hover,
.login-more summary:hover {
  color: #086a62;
  border-color: #0e8f83;
}

.login-more {
  position: relative;
}

.login-more summary {
  cursor: pointer;
  list-style: none;
}

.login-more summary::-webkit-details-marker {
  display: none;
}

.login-more summary::after {
  display: inline-block;
  margin-left: 0.4rem;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  vertical-align: middle;
  content: "";
}

.login-more div {
  position: absolute;
  top: calc(100% + 0.85rem);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 180px;
  padding: 0.5rem;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 32, 47, 0.14);
}

.login-more:not([open]) div {
  display: none;
}

.login-more div a {
  padding: 0.65rem 0.75rem;
  border-bottom: 0;
  border-radius: 7px;
}

.login-more div a:hover {
  background: #f8faf5;
}

.login-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1.15rem;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #0e8f83, #086a62);
  box-shadow: 0 16px 36px rgba(14, 143, 131, 0.24);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.login-secondary-action {
  color: #10202f;
  border: 1px solid #cfdceb;
  background: #fff;
  box-shadow: none;
}

.register-hero {
  grid-template-columns: minmax(0, 1fr) minmax(500px, 0.9fr);
}

.login-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  max-width: 1440px;
  min-height: auto;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 2.8rem) clamp(1rem, 5vw, 4.5rem);
}

.login-copy {
  max-width: 780px;
}

.login-kicker,
.login-card-head span {
  color: #0e8f83;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-copy h1 {
  max-width: 680px;
  margin: 0.85rem 0;
  color: #10202f;
  font-size: clamp(2.5rem, 4.7vw, 4.35rem);
  line-height: 1;
}

.login-copy p {
  max-width: 620px;
  color: #506377;
  font-size: 1.08rem;
  line-height: 1.75;
}

.login-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.login-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(14, 143, 131, 0.2);
  border-radius: 999px;
  color: #086a62;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(16, 32, 47, 0.08);
  font-weight: 900;
}

.login-trust svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.login-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.login-proof-grid article {
  min-height: 132px;
  padding: 1rem;
  border: 1px solid rgba(16, 32, 47, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(16, 32, 47, 0.07);
}

.login-proof-grid strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #10202f;
  font-weight: 950;
}

.login-proof-grid p {
  margin: 0;
  color: #667789;
  font-size: 0.92rem;
  line-height: 1.55;
}

.login-flow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.login-flow-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(14, 143, 131, 0.18);
  border-radius: 7px;
  color: #086a62;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.auth-email-panel {
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid rgba(16, 32, 47, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 46px rgba(16, 32, 47, 0.08);
}

.auth-panel-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  color: #fff;
  background: #10202f;
}

.auth-panel-top span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: #f4b740;
}

.auth-panel-top strong {
  margin-left: auto;
  font-size: 0.86rem;
}

.auth-email-list {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.auth-email-list article {
  padding: 0.95rem 1rem;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: #fff;
}

.auth-email-list article.is-priority {
  border-color: rgba(14, 143, 131, 0.34);
  background:
    linear-gradient(135deg, rgba(184, 243, 228, 0.38), rgba(255, 255, 255, 0.96)),
    #fff;
}

.auth-email-list small {
  display: block;
  margin-bottom: 0.35rem;
  color: #086a62;
  font-weight: 950;
}

.auth-email-list strong {
  display: block;
  color: #10202f;
}

.auth-email-list p,
.auth-ai-note p {
  margin: 0.4rem 0 0;
  color: #667789;
  line-height: 1.55;
}

.auth-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 1rem;
}

.auth-address-grid span {
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #dbe4ec;
  border-radius: 7px;
  color: #086a62;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.auth-ai-note {
  margin: 0 1rem 1rem;
  padding: 1rem;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #10202f, #086a62);
}

.auth-ai-note strong {
  display: block;
  color: #fff;
}

.auth-ai-note p {
  color: #d7f0ea;
}

.login-card {
  width: 100%;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 32px 80px rgba(16, 32, 47, 0.16);
}

.login-card-head {
  padding: 1.65rem 2rem 0.85rem;
}

.login-card-head h2 {
  margin: 0.45rem 0 0.35rem;
  color: #10202f;
  font-size: 1.85rem;
  font-weight: 900;
}

.login-card-head p {
  margin: 0;
  color: #667789;
}

.signup-sync-note {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(14, 143, 131, 0.2);
  border-radius: 8px;
  background: #f8faf5;
}

.signup-sync-note strong {
  color: #10202f;
}

.signup-sync-note span {
  color: #667789;
  line-height: 1.5;
}

.login-card form {
  display: grid;
  gap: 1rem;
  padding: 0.85rem 2rem 1.6rem;
}

.register-hero .login-card form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-switch {
  margin-bottom: 0.25rem;
}

.login-field {
  display: grid;
  gap: 0.45rem;
}

.login-field.full-span,
.login-check.full-span,
.login-card form .login-submit {
  grid-column: 1 / -1;
}

.login-field span {
  color: #10202f;
  font-weight: 850;
}

.login-field small {
  color: #667789;
  font-size: 0.78rem;
  font-weight: 700;
}

.login-field input,
.login-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cfdceb;
  border-radius: 7px;
  color: #10202f;
  background: #fff;
  outline: none;
}

.login-field textarea {
  resize: vertical;
  line-height: 1.5;
}

.login-field input:focus,
.login-field textarea:focus {
  border-color: #0e8f83;
  box-shadow: 0 0 0 4px rgba(14, 143, 131, 0.12);
}

.password-control {
  position: relative;
  display: block;
}

.password-control input {
  padding-right: 3.2rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #dbe4ec;
  border-radius: 7px;
  color: #086a62;
  background: #f8faf5;
  transform: translateY(-50%);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.password-toggle .eye-closed,
.password-toggle.is-visible .eye-open {
  display: none;
}

.password-toggle.is-visible .eye-closed {
  display: block;
}

.login-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: #10202f;
  font-weight: 800;
  line-height: 1.45;
}

.login-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.12rem;
  accent-color: #0e8f83;
}

.login-check.muted-check {
  color: #667789;
  font-weight: 700;
}

.login-submit {
  min-height: 50px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #0e8f83, #086a62);
  box-shadow: 0 16px 36px rgba(14, 143, 131, 0.24);
  font-weight: 900;
}

.login-card-foot {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid #dbe4ec;
  color: #667789;
}

.login-card-foot a {
  color: #086a62;
  font-weight: 850;
  text-decoration: none;
}

.login-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 5vw, 4.5rem);
  color: #aebdca;
  background: #101b27;
}

.login-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.login-footer strong {
  color: #fff;
}

.site-footer {
  padding: 28px clamp(20px, 5vw, 72px) 18px;
  color: #c8d4e3;
  background: #101b27;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(150px, 0.6fr));
  gap: clamp(20px, 4vw, 48px);
  max-width: 1440px;
  margin: 0 auto;
}

.footer-brand {
  display: grid;
  gap: 16px;
  align-content: start;
}

.footer-brand p {
  max-width: 420px;
  margin: 0;
  color: #aebdca;
  line-height: 1.7;
}

.footer-logo {
  color: #fff;
}

.footer-logo small {
  color: #aebdca;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 11px;
}

.site-footer strong {
  color: #fff;
}

.footer-col a,
.footer-col span {
  color: #aebdca;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8fa1b1;
  font-size: 14px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1px solid rgba(221, 229, 220, 0.92);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 245, 0.92));
  box-shadow: 0 14px 36px rgba(24, 39, 34, 0.06);
}

.page-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 950;
}

.page-header p {
  margin: 0;
  color: var(--muted);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.content-grid {
  display: grid;
  gap: 1.25rem;
}

.section-card {
  border: 1px solid rgba(221, 229, 220, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.policy-page {
  max-width: 1040px;
  margin: 0 auto;
}

.public-page-nav {
  width: 100%;
  margin: 0;
}

.policy-hero {
  margin-bottom: 1rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid rgba(221, 229, 220, 0.95);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 245, 0.92));
  box-shadow: var(--shadow);
}

.policy-hero span {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.policy-hero h1 {
  margin: 0.5rem 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  font-weight: 950;
}

.policy-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.policy-body {
  display: grid;
  gap: 0.85rem;
}

.policy-body article {
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(221, 229, 220, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(24, 39, 34, 0.05);
}

.policy-body h2 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.policy-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.docs-page .policy-body article {
  scroll-margin-top: 6rem;
}

.docs-settings {
  display: grid;
  gap: 0.35rem;
  margin: 0.85rem 0 0;
}

.docs-settings div {
  display: grid;
  grid-template-columns: minmax(140px, 0.28fr) minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(221, 229, 220, 0.95);
}

.docs-settings dt {
  color: var(--ink);
  font-weight: 900;
}

.docs-settings dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  .docs-settings div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.section-card-body {
  padding: 1.25rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 800;
}

.info-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.placeholder-panel {
  padding: 1.5rem;
  border: 1px dashed #b8c4d6;
  border-radius: 8px;
  background: #fbfdff;
}

.placeholder-panel p:last-child {
  margin-bottom: 0;
}

.config-value {
  margin-top: 0.35rem;
  color: #0f172a;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.surface-panel {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: #334155;
}

.check-list li {
  position: relative;
  padding-left: 1.55rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--success);
  color: var(--success);
  font-weight: 800;
  content: "";
}

.metric-card {
  min-height: 120px;
  padding: 1rem;
  border: 1px solid rgba(221, 229, 220, 0.95);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 245, 0.92));
  box-shadow: 0 12px 28px rgba(24, 39, 34, 0.06);
}

.metric-card .display-6 {
  color: var(--ink);
  font-weight: 900;
}

.overview-metric-card {
  min-height: 150px;
}

.overview-metric-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.action-dot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 36px;
  min-height: 34px;
  padding: 0;
}

.action-dot-btn::after {
  display: none;
}

.action-dot-btn span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.dashboard-user-actions .dropdown-menu {
  min-width: 150px;
  padding: 0.35rem;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.dashboard-user-actions .dropdown-item {
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-weight: 700;
}

.dashboard-users-table-wrap {
  min-height: 430px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.dashboard-users-table-wrap .app-table {
  min-width: 900px;
}

.dashboard-users-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.dashboard-users-table-wrap th:first-child,
.dashboard-users-table-wrap td:first-child {
  min-width: 320px;
}

.dashboard-users-table-wrap .app-table td,
.dashboard-users-table-wrap .app-table th {
  padding: 1rem 1.1rem;
}

.dashboard-users-table-wrap .mail-identity {
  gap: 1rem;
}

.dashboard-users-table-wrap .mail-avatar {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  font-size: 1.05rem;
}

.dashboard-users-table-wrap .mail-identity .fw-semibold {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.dashboard-users-table-wrap .mail-identity .small {
  margin-top: 0.2rem;
  font-size: 0.88rem;
}

.usage-table-wrap .app-table {
  min-width: 1040px;
}

.usage-progress {
  width: min(180px, 100%);
}

.usage-increase-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 190px;
}

.usage-increase-form .form-control {
  width: 96px;
}

.billing-invoice {
  display: grid;
  gap: 1.25rem;
}

.invoice-document {
  display: grid;
  gap: 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.invoice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid #10202f;
}

.invoice-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.invoice-brand strong {
  display: block;
  color: #10202f;
  font-size: 1.25rem;
  font-weight: 950;
}

.invoice-brand small {
  color: var(--muted);
}

.invoice-title {
  text-align: right;
}

.invoice-title span,
.invoice-meta-grid span {
  color: #0e8f83;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.invoice-title h2 {
  margin: 0.35rem 0 0;
  color: #10202f;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.invoice-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.invoice-meta-grid > div {
  min-height: 170px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8faf5;
}

.invoice-meta-grid strong {
  display: block;
  margin: 0.55rem 0;
  color: #10202f;
  font-weight: 950;
}

.invoice-meta-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.invoice-meta-grid dl {
  display: grid;
  gap: 0.55rem;
  margin: 0.65rem 0 0;
}

.invoice-meta-grid dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.invoice-meta-grid dt {
  color: var(--muted);
  font-weight: 700;
}

.invoice-meta-grid dd {
  margin: 0;
  color: #10202f;
  font-weight: 900;
  text-align: right;
}

.invoice-table th:nth-child(n+2),
.invoice-table td:nth-child(n+2) {
  text-align: right;
}

.invoice-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 1rem;
}

.invoice-terms {
  padding: 1.25rem;
}

.invoice-terms p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.65;
}

.invoice-terms p:last-child {
  margin-bottom: 0;
}

.invoice-pay {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.billing-invoice-head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #10202f, #086a62);
  box-shadow: var(--shadow);
}

.billing-invoice-head span,
.billing-metrics span {
  color: #b8f3e4;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.billing-invoice-head h2 {
  margin: 0.55rem 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.billing-invoice-head p {
  margin: 0;
  color: #d7f0ea;
}

.billing-due-box {
  display: grid;
  align-content: center;
  min-width: 240px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.billing-due-box strong {
  color: #fff;
  font-size: 2rem;
  line-height: 1.1;
}

.billing-due-box small {
  color: #d7f0ea;
}

.billing-metrics,
.billing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.billing-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.billing-metrics article,
.billing-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.billing-metrics article {
  min-height: 150px;
  padding: 1.15rem;
}

.billing-metrics span {
  color: #0e8f83;
}

.billing-metrics strong {
  display: block;
  margin: 0.65rem 0 0.45rem;
  color: #10202f;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
}

.billing-metrics p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.billing-panel {
  overflow: hidden;
}

.billing-panel-head {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.billing-panel-head h3 {
  margin: 0 0 0.35rem;
  color: #10202f;
  font-size: 1.15rem;
  font-weight: 950;
}

.billing-panel-head span {
  color: var(--muted);
}

.billing-summary {
  margin: 0;
}

.billing-summary div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.billing-summary div:last-child {
  border-bottom: 0;
}

.billing-summary dt {
  color: var(--muted);
  font-weight: 700;
}

.billing-summary dd {
  margin: 0;
  color: #10202f;
  font-weight: 900;
}

.billing-summary .billing-total {
  background: #f8faf5;
}

.billing-summary .billing-total dt,
.billing-summary .billing-total dd {
  color: #086a62;
  font-size: 1.1rem;
}

.billing-coupon-form {
  display: flex;
  gap: 0.65rem;
  padding: 1.25rem;
}

.billing-coupon-note {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
}

.invoice-title span,
.invoice-meta-grid span,
.billing-metrics span {
  color: var(--brand);
}

.invoice-brand strong,
.invoice-title h2,
.invoice-meta-grid strong,
.invoice-meta-grid dd,
.billing-metrics strong,
.billing-panel-head h3,
.billing-summary dd {
  color: var(--ink);
}

.billing-summary .billing-total dt,
.billing-summary .billing-total dd {
  color: var(--brand-strong);
}

.invoice-meta-grid > div,
.billing-metrics article,
.billing-panel {
  border-color: rgba(221, 229, 220, 0.95);
}

.app-table thead th {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
  background: #f8faf5;
}

.app-table td,
.app-table th {
  padding: 0.9rem 1rem;
  border-color: #e3ebe2;
}

.mail-identity,
.webmail-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.mail-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 8px;
  color: #115e59;
  background: #dff5ef;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-active {
  color: #166534;
  background: #dcfce7;
}

.status-muted {
  color: #92400e;
  background: #fef3c7;
}

.empty-state {
  padding: 1.25rem !important;
  color: var(--muted);
  text-align: center;
}

.usage-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8faf5, #e7f7ef);
  text-align: center;
}

.usage-ring strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.usage-ring span {
  color: var(--muted);
}

.progress {
  height: 0.55rem;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-bar {
  background: linear-gradient(90deg, var(--brand), var(--amber));
}

.detail-list {
  display: grid;
  gap: 0.7rem;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.detail-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 600;
}

.detail-list dd {
  margin: 0;
  text-align: right;
  word-break: break-word;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

code {
  white-space: pre-wrap;
  word-break: break-word;
}

.dns-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dns-input {
  flex: 1 1 auto;
  min-width: 220px;
}

.dns-copy-btn {
  flex: 0 0 auto;
}

.webmail-shell {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: calc(100vh - 340px);
  overflow: visible;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.app-content:has(.webmail-shell) {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  padding-bottom: 14rem;
}

.app-content:has(.webmail-shell) .webmail-shell {
  flex: 1 1 auto;
}

.webmail-sidebar {
  display: flex;
  flex: 0 0 250px;
  flex-direction: column;
  width: 250px;
  overflow: visible;
  border: 1px solid rgba(221, 229, 220, 0.95);
  border-radius: 8px;
  background: #f7faf5;
  box-shadow: 0 16px 38px rgba(24, 39, 34, 0.07);
}

.webmail-account {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(221, 229, 220, 0.95);
}

.webmail-sidebar-panel {
  display: grid;
  gap: 0.7rem;
  padding: 0.8rem;
}

.webmail-ai-card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.22), transparent 8rem),
    #ffffff;
}

.webmail-ai-card span {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.webmail-ai-card strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.webmail-ai-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.webmail-quick-links {
  display: grid;
  gap: 0.35rem;
}

.webmail-quick-links a {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-radius: 7px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 750;
}

.webmail-quick-links a:hover {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.webmail-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.webmail-quota {
  margin-top: auto;
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(221, 229, 220, 0.95);
  color: var(--muted);
  font-size: 0.9rem;
}

.webmail-folder-panel {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid rgba(221, 229, 220, 0.9);
  border-radius: 8px;
  background: #ffffff;
}

.webmail-folder-head {
  display: grid;
  gap: 0.5rem;
}

.webmail-folder-head span {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.webmail-folder-head strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.webmail-folder-create {
  display: flex;
  gap: 0.4rem;
  min-width: 0;
}

.webmail-folder-list {
  display: grid;
  gap: 0.22rem;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.webmail-folder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  border-radius: 7px;
  background: transparent;
}

.webmail-folder-item.is-dragging {
  opacity: 0.48;
}

.webmail-default-folder {
  cursor: default;
}

.webmail-custom-folder {
  cursor: grab;
}

.webmail-folder-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-height: 38px;
  min-width: 0;
  padding: 0.52rem 0.65rem;
  border-radius: 7px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.folder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #52625e;
}

.folder-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.webmail-folder-link.active-webmail .folder-icon {
  color: var(--brand-strong);
}

.folder-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.webmail-folder-link.active-webmail {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.folder-drag-handle {
  color: currentColor;
  opacity: 0.5;
  cursor: grab;
}

.webmail-folder-remove {
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  color: #7f1d1d;
  background: rgba(239, 111, 97, 0.13);
  font-size: 1rem;
  line-height: 1;
}

.webmail-folder-remove:hover {
  color: #ffffff;
  background: #dc2626;
}

.active-webmail {
  color: var(--brand-strong);
  border-radius: 7px;
  background: var(--brand-soft);
  font-weight: 700;
}

.mail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(221, 229, 220, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(24, 39, 34, 0.06);
}

.mail-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mail-toolbar-actions .btn {
  min-height: 36px;
}

.webmail-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.webmail-title-row h1 {
  margin: 0;
}

.mail-total-count {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.webmail-search {
  flex: 1 1 420px;
  max-width: 680px;
}

.webmail-search .form-control {
  min-height: 40px;
  padding-left: 2.6rem;
  border-color: rgba(221, 229, 220, 0.95);
  border-radius: 999px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2364756f' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 0.9rem center,
    #f7faf5;
}

.mail-list-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
}

.mail-list-form .table-responsive {
  width: 100%;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
}

.mail-bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.58rem 0.8rem;
  border-bottom: 1px solid #e3ebe2;
  background: #ffffff;
}

.mail-bulk-left,
.mail-bulk-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mail-bulk-actions {
  justify-content: flex-end;
}

.mail-selected-count {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  white-space: nowrap;
}

.mail-check,
.mail-select-col {
  width: 38px;
  min-width: 38px;
  text-align: center;
}

.mail-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.mail-select-col-width {
  width: 38px;
}

.mail-from-col-width {
  width: 205px;
}

.mail-date-col-width {
  width: 190px;
}

.mail-table td,
.mail-table th {
  padding: 0.72rem 0.8rem;
}

.mail-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ffffff;
}

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

.mail-table tbody tr:hover {
  background: #eef4fb;
  box-shadow: inset 0 1px 0 #d6e0ea, inset 0 -1px 0 #d6e0ea;
}

.mail-message-link {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.mail-subject {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mail-preview {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-attachment-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
  min-height: 22px;
  padding: 0.1rem 0.45rem;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 999px;
  color: var(--brand-strong);
  background: #edf8f4;
  font-size: 0.76rem;
  font-weight: 800;
}

.mail-attachment-hint svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.message-from {
  max-width: 205px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
}

.mail-table tr.table-active .mail-subject,
.mail-table tr.table-active .message-from {
  font-weight: 900;
}

.message-date {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: end;
  min-width: 190px;
  min-height: 48px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  text-align: right;
  white-space: nowrap;
}

.mail-date-primary {
  display: block;
  color: var(--muted);
  font-weight: 750;
}

.mail-date-secondary {
  display: block;
  color: #8a9792;
  font-size: 0.78rem;
  font-weight: 700;
}

.mail-row-actions {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  display: none;
  align-items: center;
  gap: 0.25rem;
  transform: translateY(-50%);
}

.mail-table tbody tr:hover .mail-date-primary {
  visibility: hidden;
}

.mail-table tbody tr:hover .mail-row-actions {
  display: inline-flex;
}

.mail-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-height: 28px;
  padding: 0;
  border: 1px solid #d7e2dc;
  border-radius: 6px;
  color: var(--ink-2);
  background: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.mail-row-action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.mail-row-action:hover {
  color: var(--brand-strong);
  border-color: rgba(15, 118, 110, 0.28);
  background: #f7faf5;
}

.mail-row-action.danger:hover {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.24);
  background: #fff5f5;
}

.message-text {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
}

.compose-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dbe5dd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(24, 39, 34, 0.1);
}

.compose-page-toolbar {
  visibility: hidden;
  min-height: 44px;
}

.compose-window {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  width: min(620px, calc(100vw - 2rem));
  height: min(720px, calc(100vh - 7rem));
}

.compose-window.is-maximized {
  inset: 5.5rem 1.5rem 1.5rem 1.5rem;
  width: auto;
  height: auto;
}

.compose-window.is-minimized {
  width: min(360px, calc(100vw - 2rem));
  height: auto;
}

.compose-window.is-minimized .compose-form {
  display: none;
}

.compose-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ink), var(--brand-strong));
}

.compose-panel-head div {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.compose-panel-head strong {
  font-size: 0.98rem;
  font-weight: 900;
}

.compose-panel-head span {
  overflow: hidden;
  color: #cfe2dd;
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compose-window-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.compose-window-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.compose-window-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.compose-window-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.compose-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.compose-fields {
  display: grid;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 1rem;
}

.compose-recipient-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  border-bottom: 1px solid #e3ebe2;
}

.compose-recipient-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
}

.compose-recipient-row > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.compose-recipient-control {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.compose-recipient-control input[type="text"] {
  flex: 1 1 120px;
  min-width: 120px;
  min-height: 30px;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: 0.94rem;
}

.compose-ccbcc {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.compose-ccbcc button {
  min-height: 28px;
  padding: 0.1rem 0.45rem;
  border: 0;
  border-radius: 999px;
  color: var(--brand);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 850;
}

.compose-ccbcc button:hover,
.compose-ccbcc button.is-active {
  background: rgba(15, 118, 110, 0.14);
}

.compose-advanced {
  display: grid;
  border-bottom: 1px solid #e3ebe2;
}

.compose-advanced[hidden] {
  display: none;
}

.compose-advanced .compose-recipient-row {
  border-bottom: 1px solid #edf2ee;
}

.compose-advanced .compose-recipient-row:last-child {
  border-bottom: 0;
}

.compose-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  margin: 0;
  border-bottom: 1px solid #e3ebe2;
}

.compose-line span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.compose-line input,
.compose-body {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
}

.compose-line input {
  min-height: 42px;
  font-size: 0.94rem;
}

.compose-line input:focus,
.compose-body:focus {
  box-shadow: none;
}

.compose-split-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  border-bottom: 1px solid #e3ebe2;
}

.compose-split-line .compose-line {
  border-bottom: 0;
}

.compose-body {
  min-height: 260px;
  padding: 1rem 0;
  resize: vertical;
  font-size: 0.98rem;
  line-height: 1.6;
}

.compose-attachments {
  padding-bottom: 0.75rem;
}

.compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid #e3ebe2;
  background: #fbfcfb;
}

.compose-footer-left {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.compose-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #60716b;
  cursor: pointer;
}

.compose-tool:hover {
  color: var(--ink);
  background: #eaf0ea;
}

.compose-tool svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.compose-hint {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.compose-attachment-list {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.65rem;
}

.compose-attachment-list[hidden] {
  display: none;
}

.compose-attachment-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 0.6rem;
  max-width: 560px;
  padding: 0.55rem 0.65rem;
  border: 1px solid #dbe5dd;
  border-radius: 8px;
  background: #f7faf7;
}

.compose-attachment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--brand);
  background: var(--brand-soft);
}

.compose-attachment-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.compose-attachment-info {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.compose-attachment-info strong,
.compose-attachment-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compose-attachment-info strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.compose-attachment-info small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.compose-attachment-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #60716b;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
}

.compose-attachment-remove:hover {
  color: var(--danger);
  background: #fff1f1;
}

.message-frame {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.message-detail-card {
  position: relative;
  overflow: hidden;
}

.message-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.message-detail-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.22;
}

.message-attachment-count {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-size: 0.78rem;
  font-weight: 850;
}

.message-sender-bar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.message-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #5b7cfa, #72b8ff);
  font-weight: 900;
}

.message-sender-main {
  min-width: 0;
}

.message-sender-line {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}

.message-sender-line strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-sender-email {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-recipient-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  max-width: 100%;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
}

.message-recipient-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.message-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.message-time {
  color: var(--muted);
  display: grid;
  justify-items: end;
  gap: 0.05rem;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.message-time-primary {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.message-time-secondary {
  color: #8a9792;
  font-size: 0.76rem;
  font-weight: 700;
}

.message-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #52625e;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.message-header-icon:hover {
  color: var(--ink);
  background: #eef4ef;
}

.message-header-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.message-action-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  border: 1px solid #d8e2db;
  border-radius: 999px;
  color: #52625e;
  background: #ffffff;
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.message-action-button:hover {
  color: var(--ink);
  border-color: #bfd1c3;
  background: #f3f8f4;
}

.message-action-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.message-meta {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  font-size: 0.9rem;
}

.message-meta div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 1rem;
}

.message-meta dt {
  color: var(--muted);
  font-weight: 700;
}

.message-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.message-body {
  padding: 1rem;
  border: 1px solid #e3ebe2;
  border-radius: 8px;
  background: #ffffff;
}

.message-body-attachments {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e3ebe2;
}

.message-thread {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e3ebe2;
}

.message-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ink);
}

.message-thread-head strong {
  font-size: 0.95rem;
  font-weight: 900;
}

.message-thread-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.message-thread-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid #e3ebe2;
  border-radius: 8px;
  background: #fbfcfb;
}

.message-thread-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  font-size: 0.9rem;
  font-weight: 900;
}

.message-thread-main {
  min-width: 0;
}

.message-thread-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.message-thread-meta div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.message-thread-meta strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-thread-meta span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.message-thread-time {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.message-thread-time small {
  display: block;
  color: #8a9792;
  font-size: 0.74rem;
}

.message-thread-body {
  margin-top: 0.65rem;
  color: #293733;
  font-size: 0.92rem;
  line-height: 1.55;
}

.message-thread-body .message-text {
  max-height: 280px;
  overflow: auto;
}

.message-thread-parent-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #60716b;
  background: transparent;
  cursor: pointer;
}

.message-thread-parent-toggle:hover,
.message-thread-parent-toggle[aria-expanded="true"] {
  color: var(--ink);
  background: #eaf0ea;
}

.message-thread-parent-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.message-thread-parent-panel {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.45rem;
  padding: 0.75rem;
  border: 1px solid #d9e2db;
  border-radius: 8px;
  background: #ffffff;
}

.message-thread-parent-panel[hidden] {
  display: none;
}

.message-thread-parent-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.message-thread-parent-meta strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.message-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e3ebe2;
}

.message-more-menu {
  position: absolute;
  top: 4.5rem;
  right: 1rem;
  z-index: 5;
  display: grid;
  min-width: 180px;
  padding: 0.35rem;
  border: 1px solid #dbe5dd;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(18, 28, 22, 0.14);
}

.message-more-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 700;
}

.message-more-menu button:hover {
  background: #f3f8f4;
}

.message-attachment-inline {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #e3ebe2;
  border-radius: 8px;
  background: #fbfcfa;
}

.message-attachment-inline .attachment-info strong {
  font-size: 0.92rem;
}

.message-attachment-inline .attachment-info span {
  font-size: 0.8rem;
}

.message-attachment-inline .attachment-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.reply-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.reply-modal[hidden] {
  display: none;
}

.reply-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 22, 0.42);
  backdrop-filter: blur(1px);
}

.reply-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(900px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  padding: 0;
  border: 1px solid #dbe5dd;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(17, 33, 22, 0.24);
}

.reply-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid #e3ebe2;
}

.reply-modal-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.reply-modal-header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.reply-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #60716b;
  background: #eef3ef;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.reply-modal-close:hover {
  color: var(--ink);
  background: #e2ebe4;
}

.reply-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem 1.1rem 0.9rem;
}

.reply-modal-meta {
  display: grid;
  gap: 0.8rem;
}

.reply-modal-meta div {
  display: grid;
  gap: 0.25rem;
}

.reply-modal-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.reply-modal-from {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.reply-modal-from-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border: 1px solid #dbe5dd;
  border-radius: 999px;
  color: var(--ink);
  background: #f7faf7;
  font-weight: 800;
}

.reply-modal-recipient-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

.reply-modal-recipient-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0.1rem 0.45rem;
  border: 1px solid #d9e2db;
  border-radius: 8px;
  background: #fbfcfb;
}

.reply-modal-inline-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.reply-modal-recipient-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 22px;
  padding: 0.08rem 0.1rem;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.94rem;
  color: var(--ink);
}

.reply-modal-recipient-control {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  width: 100%;
}

.reply-modal-chip-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-width: 0;
}

.reply-modal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 260px;
  min-height: 24px;
  padding: 0.22rem 0.42rem 0.22rem 0.55rem;
  border-radius: 999px;
  color: var(--ink);
  background: #eaf6f0;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
}

.reply-modal-chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-modal-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #52625e;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1;
}

.reply-modal-chip-remove:hover {
  color: var(--danger);
  background: #ffffff;
}

.reply-modal-recipient-input[readonly] {
  cursor: default;
}

.reply-modal-ccbcc {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  white-space: nowrap;
}

.reply-modal-ccbcc button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 850;
}

.reply-modal-mini-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 22px;
  padding: 0.1rem 0.35rem;
  border: 0;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.08);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.reply-modal-mini-toggle:hover {
  background: rgba(15, 118, 110, 0.14);
}

.reply-modal-advanced {
  display: grid;
  gap: 0.45rem;
}

.reply-modal-advanced-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.18rem 0.35rem;
  border: 1px solid #d9e2db;
  border-radius: 8px;
  background: #fbfcfb;
}

.reply-modal-advanced-input {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
}

.reply-modal-subject {
  display: grid;
  gap: 0.35rem;
}

.reply-modal-subject-input {
  min-height: 42px;
  border-color: #d9e2db;
  background: #fbfcfb;
  font-size: 0.95rem;
}

.reply-modal-input {
  min-height: 40px;
  border-color: #d9e2db;
  background: #fbfcfb;
  font-size: 0.92rem;
}

.reply-modal-input[readonly] {
  background: #fbfcfb;
}

.reply-modal-body {
  display: grid;
  gap: 0.45rem;
  flex: 1 1 auto;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 320px;
}

.reply-modal-editor {
  position: relative;
  display: flex;
  min-height: 320px;
}

.reply-modal-textarea {
  flex: 1 1 auto;
  min-height: 320px;
  resize: vertical;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  padding: 0 0 2.1rem;
  font-size: 0.96rem;
  line-height: 1.55;
}

.reply-modal-textarea:focus {
  border: 0;
  box-shadow: none;
}

.reply-modal-body-more {
  position: absolute;
  left: 0;
  bottom: 0.1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #60716b;
  background: transparent;
  cursor: pointer;
}

.reply-modal-body-more:hover,
.reply-modal-body-more[aria-expanded="true"] {
  color: var(--ink);
  background: #eaf0ea;
}

.reply-modal-body-more svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.reply-modal-parent-panel {
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem;
  border: 1px solid #d9e2db;
  border-radius: 8px;
  background: #f7faf7;
}

.reply-modal-parent-panel[hidden] {
  display: none;
}

.reply-modal-parent-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.reply-modal-parent-head span,
.reply-modal-parent-meta span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.reply-modal-parent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.reply-modal-parent-body {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  max-height: 180px;
  overflow: auto;
}

.reply-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0 1.1rem 1rem;
}

.reply-modal-footer-left {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.reply-modal-send-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0 999px 999px 0;
  background: #f7faf7;
  color: #60716b;
}

.reply-modal-send-toggle svg,
.reply-modal-tool svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.reply-modal-footer-tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.reply-modal-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #60716b;
  cursor: pointer;
}

.reply-modal-tool:hover,
.reply-modal-send-toggle:hover {
  color: var(--ink);
  background: #eaf0ea;
}

.reply-close-sheet {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(1px);
}

.reply-close-sheet-card {
  width: min(420px, 100%);
  padding: 1rem;
  border: 1px solid #dbe5dd;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(17, 33, 22, 0.18);
}

.reply-close-sheet-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.reply-close-sheet-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.reply-close-sheet-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.message-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.message-section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.message-section-title span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.attachment-grid {
  display: grid;
  gap: 0.65rem;
}

.attachment-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #f8faf5;
}

.attachment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.attachment-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.attachment-info {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.attachment-info strong,
.attachment-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-info strong {
  color: var(--ink);
  font-weight: 850;
}

.attachment-info span {
  color: var(--muted);
  font-size: 0.85rem;
}

.attachment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.attachment-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
}

.attachment-action-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.landing-page {
  color: #ffffff;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(6, 19, 33, 0.92);
  box-shadow: var(--shadow);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.landing-brand:hover {
  color: #ffffff;
}

.landing-nav nav {
  display: flex;
  gap: 1rem;
}

.landing-nav nav a {
  color: #c8d4e3;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.landing-nav nav a:hover {
  color: #ffffff;
}

.landing-actions,
.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  gap: 2rem;
  min-height: calc(100vh - 12rem);
  padding: clamp(2rem, 5vw, 5rem);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 18%, rgba(34, 211, 238, 0.22), transparent 22rem),
    radial-gradient(circle at 8% 10%, rgba(11, 104, 255, 0.28), transparent 24rem),
    linear-gradient(135deg, #061321, #0b1f33 48%, #062856);
  overflow: hidden;
}

.landing-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 780px;
}

.landing-eyebrow,
.section-kicker,
.section-heading span,
.landing-strip span,
.landing-final span {
  color: #8bdcf0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-hero h1 {
  margin: 1rem 0;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.98;
}

.landing-hero p {
  max-width: 660px;
  color: #c8d4e3;
  font-size: 1.12rem;
}

.landing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.landing-proof span {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #dce8f6;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-mail-panel {
  align-self: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.hero-mail-top {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.hero-mail-top span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: #8bdcf0;
}

.hero-inbox-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-inbox-header p {
  margin: 0;
  color: #b7c7d9;
  font-size: 0.9rem;
}

.hero-message {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(6, 19, 33, 0.62);
}

.hero-message.is-active {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.13);
}

.hero-message span {
  color: #8bdcf0;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-ai-chip {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #061321;
  background: linear-gradient(135deg, #ffffff, #8bdcf0);
  font-weight: 900;
  text-align: center;
}

.landing-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.landing-strip > div,
.landing-section,
.landing-final {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.landing-strip > div {
  padding: 1.25rem;
}

.landing-strip strong {
  display: block;
  margin: 0.45rem 0;
  font-size: 1.15rem;
}

.landing-strip p,
.section-heading p,
.landing-section p,
.landing-final p {
  color: var(--muted);
}

.landing-section {
  margin-top: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.landing-section h2,
.landing-final h2 {
  margin: 0.5rem 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.landing-feature-grid article,
.landing-map-card,
.security-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfdff;
}

.landing-feature-grid h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 2rem;
}

.landing-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.landing-list li {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  font-weight: 700;
}

.landing-map-card,
.security-card {
  min-height: 280px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 12rem),
    #f8fbff;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.map-grid span {
  padding: 0.9rem;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ink), var(--brand-strong));
  font-weight: 800;
  text-align: center;
}

.security-meter {
  height: 0.85rem;
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe7f5;
}

.security-meter span {
  display: block;
  width: 86%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--aqua));
}

.landing-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

@media (max-width: 991.98px) {
  .login-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-links,
  .login-signup {
    width: 100%;
  }

  .login-links {
    flex-wrap: wrap;
    margin-left: 0;
  }

  .login-more div {
    right: auto;
    left: 0;
  }

  .login-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-proof-grid,
  .login-flow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .billing-invoice-head,
  .billing-coupon-form {
    flex-direction: column;
  }

  .billing-metrics,
  .billing-grid,
  .invoice-meta-grid,
  .invoice-bottom-grid {
    grid-template-columns: 1fr;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .landing-strip,
  .landing-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-copy {
    min-height: 320px;
  }

  .sidebar {
    width: 220px;
    flex-basis: 220px;
  }

.webmail-shell {
    flex-direction: column;
  }

  .webmail-sidebar {
    width: 100%;
    flex-basis: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 767.98px) {
  .compose-window {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100vw - 1.5rem);
    height: min(680px, calc(100vh - 5.5rem));
  }

  .compose-window.is-maximized {
    inset: 4.75rem 0.75rem 0.75rem;
  }

  .compose-recipient-line {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
    padding: 0.35rem 0;
  }

  .compose-ccbcc {
    justify-content: flex-end;
  }

  .login-site {
    margin: -1rem;
  }

  .login-hero {
    padding: 2rem 1rem;
  }

  .login-copy h1 {
    font-size: clamp(2.4rem, 13vw, 3.8rem);
  }

  .login-trust,
  .login-footer,
  .footer-bottom,
  .login-card-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .login-proof-grid,
  .login-flow-strip,
  .auth-address-grid {
    grid-template-columns: 1fr;
  }

  .login-trust span,
  .login-signup {
    width: 100%;
  }

  .login-card-head,
  .login-card form {
    padding-right: 1.2rem;
    padding-left: 1.2rem;
  }

  .register-hero .login-card form {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .app-content {
    padding: 1rem;
  }

  .app-topbar,
  .app-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .topbar-account {
    max-width: 100%;
  }

  .d-flex.min-vh-100 {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-basis: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .sidebar .nav {
    flex-direction: row !important;
    overflow-x: auto;
    white-space: nowrap;
  }

  .page-header,
  .mail-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .page-actions,
  .table-actions {
    justify-content: flex-start;
  }

  .account-switch {
    grid-template-columns: 1fr;
  }

  .landing-nav nav,
  .landing-actions,
  .landing-cta-row,
  .landing-proof,
  .landing-final {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-nav nav {
    width: 100%;
    gap: 0.45rem;
  }

  .landing-strip,
  .landing-feature-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding: 1.25rem;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 9mm;
  }

  html,
  body {
    background: #fff;
    width: 100%;
    height: 100%;
    font-size: 9.5px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .d-flex.min-vh-100,
  .app-main {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
  }

  .sidebar,
  header,
  footer,
  .app-topbar,
  .app-footer,
  .app-admin-header,
  .app-admin-footer,
  .app-mailbox-header,
  .login-nav,
  .site-footer,
  .billing-no-print,
  .btn {
    display: none !important;
  }

  .app-content {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .app-main,
  .section-card,
  .billing-panel,
  .billing-metrics article,
  .billing-invoice-head,
  .invoice-document,
  .invoice-meta-grid > div {
    box-shadow: none !important;
  }

  .invoice-document {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(297mm - 18mm);
    gap: 5px;
    padding: 6mm;
    border: 1px solid #cfd8d3;
    border-radius: 0;
    box-sizing: border-box;
    align-content: start;
    page-break-after: avoid;
    break-after: avoid;
  }

  .invoice-header {
    align-items: center;
    padding-bottom: 7px;
    border-bottom: 2px solid #0f766e;
  }

  .invoice-title h2 {
    margin-top: 2px;
    font-size: 17px;
  }

  .invoice-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .invoice-meta-grid > div {
    min-height: auto;
    padding: 6px 7px;
    border-radius: 4px;
    background: #f8fbf8;
  }

  .invoice-meta-grid p {
    line-height: 1.22;
  }

  .invoice-meta-grid > div:nth-child(3) {
    grid-column: 1 / -1;
  min-height: calc(100vh - 96px);
  }

  .invoice-meta-grid > div:nth-child(3) dl {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px 10px;
  }

  .invoice-meta-grid > div:nth-child(3) dl div {
    display: grid;
    gap: 1px;
  }

  .invoice-meta-grid > div:nth-child(3) dd {
    text-align: left;
  }

  .invoice-meta-grid > div,
  .billing-panel {
    break-inside: avoid;
  }

  .invoice-bottom-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 5px;
  }

  .billing-invoice,
  .invoice-document {
    gap: 5px;
  }

  .billing-metrics.invoice-facts {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .billing-panel-head {
    padding: 5px 7px;
  }

  .billing-panel-head h3 {
    margin-bottom: 0;
    font-size: 11px;
  }

  .billing-panel-head span {
    display: block;
    margin-top: 1px;
  }

  .billing-panel-head span,
  .invoice-terms p,
  .billing-summary dt,
  .billing-summary dd,
  .app-table td,
  .app-table th {
    font-size: 9px;
  }

  .app-table td,
  .app-table th {
    padding: 4px 6px;
    line-height: 1.18;
  }

  .billing-summary div {
    padding: 4px 7px;
  }

  .invoice-terms {
    padding: 6px 7px;
  }

  .invoice-terms p {
    margin-bottom: 2px;
    line-height: 1.22;
  }

  .invoice-brand .brand-mark {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .invoice-brand strong {
    font-size: 13px;
  }

  .invoice-brand small,
  .invoice-meta-grid span,
  .invoice-title span {
    font-size: 8px;
  }

  .invoice-meta-grid strong {
    margin: 2px 0;
    font-size: 10px;
  }

  .billing-metrics article {
    min-height: 0;
    padding: 6px 7px;
    border-radius: 4px;
  }

  .billing-metrics span {
    font-size: 8px;
  }

  .billing-metrics strong {
    margin: 2px 0;
    font-size: 14px;
  }

  .billing-metrics p {
    font-size: 8.5px;
    line-height: 1.2;
  }

  .billing-summary .billing-total dt,
  .billing-summary .billing-total dd {
    font-size: 11px;
  }

  .billing-invoice-head {
    color: #10202f;
    background: #fff;
  }

  .billing-invoice-head h2,
  .billing-due-box strong {
    color: #10202f;
  }

  .billing-invoice-head p,
  .billing-due-box small {
    color: #334155;
  }
}

/* Public landing page refresh */
.landing-page {
  --landing-ink: #07111f;
  --landing-panel: #0c1b2d;
  --landing-blue: #0b68ff;
  --landing-cyan: #23d5ee;
  --landing-text: #102033;
  --landing-muted: #66768a;
  color: var(--landing-text);
}

.landing-page .btn-primary {
  border-color: #0b68ff;
  background: linear-gradient(135deg, #0b68ff, #0747b6);
  box-shadow: 0 14px 30px rgba(11, 104, 255, 0.26);
}

.landing-page .btn-outline-light {
  color: #e8f4ff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.landing-nav {
  position: sticky;
  top: 1rem;
  z-index: 10;
  max-width: 1180px;
  margin: 0 auto 1.25rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(215, 227, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(16, 32, 51, 0.08);
  backdrop-filter: blur(14px);
}

.landing-brand,
.landing-brand:hover {
  color: #07111f;
}

.landing-nav nav {
  padding: 0.35rem;
  border-radius: 8px;
  background: #f2f6fb;
}

.landing-nav nav a {
  padding: 0.48rem 0.7rem;
  border-radius: 7px;
  color: #405168;
  font-size: 0.88rem;
}

.landing-nav nav a:hover {
  color: #07111f;
  background: #ffffff;
}

.landing-nav .btn-outline-light {
  color: #102033;
  border-color: #cfdceb;
  background: #ffffff;
}

.landing-hero {
  position: relative;
  max-width: 1180px;
  min-height: 690px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.75rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.95), rgba(7, 17, 31, 0.58) 58%, rgba(7, 17, 31, 0.22)),
    radial-gradient(circle at 88% 18%, rgba(35, 213, 238, 0.36), transparent 19rem),
    radial-gradient(circle at 12% 88%, rgba(11, 104, 255, 0.38), transparent 20rem),
    linear-gradient(135deg, #07111f 0%, #0c1b2d 48%, #0b2f6f 100%);
  box-shadow: 0 34px 80px rgba(7, 17, 31, 0.28);
}

.landing-hero::after {
  position: absolute;
  inset: auto 2.25rem 2.25rem auto;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.12) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, 0.12) 50%, transparent 51%);
  opacity: 0.45;
  content: "";
}

.landing-hero-copy {
  position: relative;
  z-index: 1;
}

.landing-eyebrow,
.section-kicker,
.section-heading span,
.landing-strip span,
.landing-final span {
  color: #0b68ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.landing-hero .landing-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(35, 213, 238, 0.26);
  border-radius: 999px;
  color: #9beeff;
  background: rgba(35, 213, 238, 0.1);
}

.landing-hero h1 {
  max-width: 760px;
  margin: 1.25rem 0 1rem;
  color: #ffffff;
  font-size: clamp(3rem, 6.5vw, 5.7rem);
  line-height: 0.98;
}

.landing-hero p {
  max-width: 620px;
  color: #c9d8e8;
  font-size: 1.16rem;
  line-height: 1.7;
}

.landing-proof {
  max-width: 760px;
  margin-top: 2rem;
}

.landing-proof span {
  border-color: rgba(255, 255, 255, 0.15);
  color: #f2f8ff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-mail-panel {
  position: relative;
  z-index: 1;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.hero-inbox-header,
.hero-message {
  border-radius: 8px;
}

.hero-message {
  background: rgba(8, 20, 35, 0.72);
}

.hero-message.is-active {
  background: linear-gradient(135deg, rgba(11, 104, 255, 0.24), rgba(35, 213, 238, 0.14));
}

.hero-ai-chip {
  box-shadow: 0 18px 36px rgba(35, 213, 238, 0.22);
}

.landing-strip {
  max-width: 1180px;
  margin: 1.25rem auto;
}

.landing-strip > div {
  padding: 1.35rem;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(16, 32, 51, 0.07);
}

.landing-section,
.landing-final {
  max-width: 1180px;
  margin: 1.25rem auto 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(16, 32, 51, 0.07);
}

.section-heading h2,
.landing-section h2,
.landing-final h2 {
  color: #07111f;
}

.landing-feature-grid article {
  position: relative;
  min-height: 220px;
  padding: 1.35rem;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 14px 34px rgba(16, 32, 51, 0.06);
}

.landing-feature-grid article::before {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, #ffffff 0 18%, transparent 19%),
    linear-gradient(135deg, #0b68ff, #23d5ee);
  content: "";
}

.landing-feature-grid h3 {
  color: #07111f;
}

.landing-feature-grid p {
  color: var(--landing-muted);
  line-height: 1.65;
}

.split-section {
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.landing-list li {
  border-color: #dce6f2;
  background: #f7fbff;
}

.landing-map-card,
.security-card {
  min-height: 320px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(35, 213, 238, 0.32), transparent 13rem),
    linear-gradient(135deg, #07111f, #0b2f6f);
  box-shadow: 0 24px 60px rgba(7, 17, 31, 0.18);
}

.landing-map-card p,
.security-card p {
  color: #c9d8e8;
}

.map-grid span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-final {
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 20%, rgba(35, 213, 238, 0.24), transparent 16rem),
    linear-gradient(135deg, #07111f, #0b2f6f);
}

.landing-final h2,
.landing-final p {
  color: #ffffff;
}

.landing-final p {
  opacity: 0.78;
}

@media (max-width: 991.98px) {
  .landing-nav {
    position: static;
    max-width: none;
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-hero::after {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .landing-page .btn-lg {
    width: 100%;
  }

  .landing-nav nav {
    padding: 0;
    background: transparent;
  }

  .landing-nav nav a {
    background: #f2f6fb;
  }

  .landing-hero h1 {
    font-size: clamp(2.4rem, 13vw, 3.5rem);
  }

  .hero-mail-panel {
    min-width: 0;
  }
}
