:root {
  color-scheme: dark;
  --bg-canvas: #07090f;
  --bg-subtle: #0b0e16;
  --surface-1: #10141e;
  --surface-2: #151a26;
  --surface-3: #1b2130;
  --surface-glass: rgba(16, 20, 30, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text-primary: #f5f7fb;
  --text-secondary: #b5becd;
  --text-tertiary: #8490a3;
  --accent: #64d5ff;
  --accent-strong: #35bdea;
  --accent-ink: #02141d;
  --success: #59dfa4;
  --warning: #ffd66b;
  --warning-text: #ffebb1;
  --danger: #ff738a;
  --danger-text: #ffc5cf;
  --info: #8dc9ff;
  --focus: #8de4ff;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 22px 70px rgba(0, 0, 0, 0.28);
  --shadow-menu: 0 18px 50px rgba(0, 0, 0, 0.5);
  --sidebar-width: 252px;
  --content-max: 1440px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--text-primary); background: var(--bg-canvas); }
body::before { position: fixed; inset: 0; z-index: -1; content: ""; pointer-events: none; background: radial-gradient(circle at 72% -20%, rgba(47, 152, 202, 0.16), transparent 38%), radial-gradient(circle at 18% 10%, rgba(92, 94, 220, 0.08), transparent 30%); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -64px; left: var(--space-4); z-index: 200; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--accent-ink); background: var(--focus); font-weight: 750; text-decoration: none; }
.skip-link:focus { top: var(--space-4); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { color: #fff; background: rgba(53, 189, 234, 0.45); }

h1, h2, h3 { color: var(--text-primary); letter-spacing: -0.035em; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.45rem); line-height: 1.04; font-weight: 760; }
h2 { margin: 0 0 var(--space-4); font-size: 1.25rem; line-height: 1.2; }
h3 { margin: 0 0 var(--space-3); font-size: 1rem; }
p { overflow-wrap: anywhere; }
code { color: #c0efff; overflow-wrap: anywhere; }
.eyebrow { margin: 0 0 var(--space-2); color: var(--accent); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.lead { max-width: 72ch; margin: var(--space-3) 0 0; color: var(--text-secondary); line-height: 1.65; }
.status-copy, .field-hint, .optional { color: var(--text-tertiary); font-size: 0.82rem; font-weight: 450; line-height: 1.5; }
.operational-summary { margin: var(--space-4) 0 0; padding: var(--space-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--text-secondary); overflow-wrap: anywhere; }
.field-hint { display: block; margin-top: 2px; }

.app-frame { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; width: var(--sidebar-width); flex-direction: column; padding: 22px 14px 16px; border-right: 1px solid var(--border-subtle); background: rgba(9, 12, 18, 0.96); backdrop-filter: blur(24px); }
.product-lockup { display: flex; min-width: 0; align-items: center; gap: var(--space-3); padding: 0 8px 22px; color: var(--text-primary); text-decoration: none; }
.product-lockup > span:last-child { min-width: 0; }
.product-lockup strong, .product-lockup small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-lockup strong { font-size: 0.9rem; letter-spacing: -0.015em; }
.product-lockup small { color: var(--text-tertiary); font-size: 0.72rem; }
.brand-mark { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: linear-gradient(145deg, #b6eeff, #3cc4ef); box-shadow: 0 10px 30px rgba(50, 191, 235, 0.18); }
.brand-mark img { width: 78%; height: auto; filter: brightness(0) saturate(100%); }
.brand-mark-small { width: 38px; height: 38px; border-radius: 12px; }
.brand-mark-mobile { width: 29px; height: 29px; margin-right: 7px; border-radius: 9px; }
.sidebar-nav { display: grid; gap: 3px; }
.nav-label { margin: 16px 12px 6px; color: #6f7b8e; font-size: 0.67rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.sidebar-nav a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 9px 11px; border: 1px solid transparent; border-radius: 11px; color: var(--text-secondary); font-size: 0.88rem; font-weight: 620; text-decoration: none; transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.sidebar-nav a span { width: 19px; color: var(--text-tertiary); text-align: center; }
.sidebar-nav a .nav-icon { display: block; height: 19px; flex: 0 0 19px; background: currentColor; -webkit-mask: var(--nav-icon) center / 19px 19px no-repeat; mask: var(--nav-icon) center / 19px 19px no-repeat; }
.nav-icon-users { --nav-icon: url("/static/icons/users.svg"); }
.nav-icon-invitations { --nav-icon: url("/static/icons/mail-plus.svg"); }
.nav-icon-system-health { --nav-icon: url("/static/icons/activity-heartbeat.svg"); }
.nav-icon-settings { --nav-icon: url("/static/icons/settings.svg"); }
.nav-icon-audit-log { --nav-icon: url("/static/icons/clipboard-list.svg"); }
.sidebar-nav a:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.045); }
.sidebar-nav a.is-current { border-color: rgba(100, 213, 255, 0.14); color: #e8faff; background: rgba(100, 213, 255, 0.09); }
.sidebar-nav a.is-current span { color: var(--accent); }
.sidebar-user { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: auto; padding: 13px 8px 0; border-top: 1px solid var(--border-subtle); }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(100, 213, 255, 0.24); border-radius: 50%; color: #dff8ff; background: rgba(100, 213, 255, 0.1); font-size: 0.75rem; font-weight: 800; }
.user-copy { min-width: 0; }
.user-copy strong, .user-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { font-size: 0.8rem; }
.user-copy small { color: var(--text-tertiary); font-size: 0.68rem; }
.user-menu { position: relative; }
.user-menu summary { padding: 8px 3px; color: var(--text-tertiary); cursor: pointer; list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.menu-popover { position: absolute; right: 0; bottom: calc(100% + 10px); width: 220px; padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface-2); box-shadow: var(--shadow-menu); }
.menu-popover > span { display: block; padding: 5px 7px 10px; color: var(--text-secondary); font-size: 0.75rem; overflow-wrap: anywhere; }
.menu-popover hr { height: 1px; margin: 7px 0; border: 0; background: var(--border-subtle); }
.menu-action { display: flex; width: 100%; align-items: center; gap: 9px; padding: 9px; border: 0; border-radius: var(--radius-sm); color: var(--text-primary); background: rgba(255, 255, 255, 0.06); cursor: pointer; font-size: 0.82rem; text-align: left; text-decoration: none; }
.menu-action + .menu-action, .menu-popover form { margin-top: 5px; }
.app-stage { min-height: 100vh; margin-left: var(--sidebar-width); }
.context-bar { display: flex; min-height: 50px; align-items: center; gap: 9px; padding: 0 clamp(22px, 4vw, 56px); border-bottom: 1px solid var(--border-subtle); color: var(--text-tertiary); background: rgba(7, 9, 15, 0.72); font-size: 0.78rem; backdrop-filter: blur(18px); }
.context-bar strong { color: var(--text-secondary); font-weight: 620; }
.mobile-bar, .nav-scrim { display: none; }
.language-form { display: flex; align-items: center; gap: 7px; }
.language-form select { width: auto; min-width: 68px; padding: 7px 28px 7px 10px; border-radius: 9px; color: var(--text-primary); background-color: var(--surface-2); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; }
.language-form-desktop { margin-left: auto; }
.language-submit { min-height: 34px; padding: 7px 10px; border: 1px solid var(--border-subtle); border-radius: 9px; color: var(--text-secondary); background: rgba(255, 255, 255, 0.05); cursor: pointer; font-size: 0.72rem; }
.public-language { position: fixed; top: 18px; right: 18px; z-index: 80; }
.public-language .language-form { padding: 5px; border: 1px solid var(--border-subtle); border-radius: 12px; background: rgba(10, 13, 20, 0.8); backdrop-filter: blur(18px); }
.js .language-submit { display: none; }

.app-shell { width: min(var(--content-max), calc(100% - clamp(36px, 6vw, 88px))); margin: 0 auto; padding: clamp(32px, 5vw, 64px) 0 90px; }
.page-shell { display: grid; min-height: 100vh; place-items: center; padding: 28px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-8); }
.page-header > div:first-child { min-width: 0; }
.page-header h1, .domain-title { overflow-wrap: anywhere; }
.page-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); }

.auth-page { background: radial-gradient(circle at 50% -20%, rgba(49, 156, 206, 0.23), transparent 42%), var(--bg-canvas); }
.auth-card { width: min(100%, 470px); padding: clamp(28px, 6vw, 48px); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); background: var(--surface-glass); box-shadow: var(--shadow-card); backdrop-filter: blur(24px); }
.auth-card .brand-mark { margin-bottom: 28px; }
.auth-card .eyebrow { margin-top: 0; }
.state-card { text-align: left; }
.state-icon { display: grid; width: 46px; height: 46px; margin-bottom: 24px; place-items: center; border-radius: 50%; font-size: 1.4rem; font-weight: 850; }
.state-success { color: #031910; background: var(--success); }
.state-danger { color: #240309; background: var(--danger); }

.panel { min-width: 0; padding: clamp(19px, 2.4vw, 28px); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(22, 27, 40, 0.92), rgba(14, 18, 27, 0.92)); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-header h2 { margin-bottom: 4px; }
.section-stack { display: grid; min-width: 0; gap: var(--space-5); }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.75fr); gap: var(--space-6); align-items: start; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-6); }
.stat { min-width: 0; padding: 19px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.025); }
.stat span, .stat small { display: block; color: var(--text-tertiary); font-size: 0.76rem; }
.stat strong { display: block; margin-top: 7px; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15; overflow-wrap: anywhere; }
.stat small { margin-top: 6px; line-height: 1.45; }
.stat-link { color: var(--text-primary); text-decoration: none; transition: border-color 160ms ease, background 160ms ease; }
.stat-link:hover { border-color: rgba(100, 213, 255, 0.3); background: rgba(100, 213, 255, 0.06); }
.stat-link-active { border-color: rgba(100, 213, 255, 0.34); background: rgba(100, 213, 255, 0.075); box-shadow: 0 0 0 1px rgba(100, 213, 255, 0.08) inset; }
.stat-link-warning:hover, .stat-link-warning.stat-link-active { border-color: rgba(255, 214, 107, 0.34); background: rgba(255, 214, 107, 0.07); }
.stat-link-danger:hover, .stat-link-danger.stat-link-active { border-color: rgba(255, 115, 138, 0.34); background: rgba(255, 115, 138, 0.07); }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 10px 15px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-weight: 720; line-height: 1.2; text-align: center; text-decoration: none; transition: transform 160ms ease, filter 160ms ease, background 160ms ease; }
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { color: var(--accent-ink); background: var(--accent); }
.button-secondary { border-color: var(--border-strong); color: var(--text-primary); background: rgba(255, 255, 255, 0.07); }
.button-danger { border-color: rgba(255, 115, 138, 0.3); color: #ffdce2; background: rgba(255, 115, 138, 0.13); }
.button-ghost { min-height: 36px; padding: 8px 11px; border-color: var(--border-subtle); color: var(--text-secondary); background: transparent; font-size: 0.82rem; }
.button-small { min-height: 34px; padding: 7px 10px; font-size: 0.78rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: var(--space-4); }
.text-link { display: inline-flex; margin-top: 20px; color: var(--accent); font-weight: 650; text-decoration: none; }
.compact-link { margin-top: 0; }
.icon-button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--border-subtle); border-radius: 11px; color: var(--text-primary); background: rgba(255, 255, 255, 0.04); cursor: pointer; }

.form-stack { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
label { display: grid; min-width: 0; gap: 7px; color: #dce3ed; font-size: 0.84rem; font-weight: 650; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid var(--border-strong); border-radius: 11px; padding: 11px 12px; color: var(--text-primary); background: #0a0d14; outline: none; }
input::placeholder, textarea::placeholder { color: #657084; }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, 0.22); }
input:focus, select:focus, textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(100, 213, 255, 0.14); }
input:disabled { color: var(--text-tertiary); background: rgba(255, 255, 255, 0.03); }
textarea { resize: vertical; }
.inline-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: var(--space-3); margin-top: var(--space-5); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.filters { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 0.35fr)) auto; align-items: end; gap: 10px; margin-bottom: 20px; }
.filters-wide { grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(125px, 0.4fr)) auto; }
.compact-filters { grid-template-columns: minmax(180px, 280px) auto; }
.user-filters { grid-template-columns: minmax(210px, 1fr) repeat(4, minmax(125px, 0.35fr)) auto; }
.confirm-check { grid-template-columns: 22px minmax(0, 1fr); align-items: start; }
.confirm-check input { width: 18px; margin-top: 2px; }
.input-with-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.danger-zone { border-color: rgba(255, 115, 138, 0.2); }

.alert, .notice, .toast { padding: 14px 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); line-height: 1.55; }
.alert { margin: 0 0 var(--space-5); }
.alert-error { border-color: rgba(255, 115, 138, 0.28); color: #ffd7de; background: rgba(255, 115, 138, 0.1); }
.alert-success { border-color: rgba(89, 223, 164, 0.27); color: #caffdf; background: rgba(89, 223, 164, 0.09); }
.alert-warning { border-color: rgba(255, 214, 107, 0.25); color: #ffebad; background: rgba(255, 214, 107, 0.08); }
.notice { color: var(--text-secondary); background: rgba(255, 255, 255, 0.025); }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; width: min(390px, calc(100% - 44px)); box-shadow: var(--shadow-menu); }

.badge { display: inline-flex; width: fit-content; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--border-subtle); border-radius: 999px; font-size: 0.72rem; font-weight: 760; line-height: 1.2; white-space: nowrap; }
.badge::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.badge-accent { border-color: rgba(100, 213, 255, 0.24); color: #bdefff; background: rgba(100, 213, 255, 0.1); }
.badge-success, .status-accepted { border-color: rgba(89, 223, 164, 0.24); color: #bff9da; background: rgba(89, 223, 164, 0.09); }
.badge-warning, .status-pending { border-color: rgba(255, 214, 107, 0.24); color: var(--warning-text); background: rgba(255, 214, 107, 0.09); }
.badge-danger, .status-expired, .status-revoked { border-color: rgba(255, 115, 138, 0.24); color: var(--danger-text); background: rgba(255, 115, 138, 0.09); }
.badge-muted, .status-superseded { color: var(--text-secondary); background: rgba(255, 255, 255, 0.045); }

.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.data-table th { padding: 11px 12px; color: var(--text-tertiary); font-size: 0.68rem; font-weight: 760; letter-spacing: 0.07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { max-width: 340px; padding: 14px 12px; border-top: 1px solid var(--border-subtle); color: var(--text-secondary); vertical-align: middle; overflow-wrap: anywhere; }
.data-table tbody tr { transition: background 140ms ease; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.018); }
.data-table a { color: var(--text-primary); font-weight: 670; text-decoration: none; }
.data-table form { margin: 0; }
.table-primary { color: var(--text-primary); font-weight: 690; }
.data-table .deadline-warning { color: var(--warning-text); font-weight: 720; }
.data-table .deadline-danger { color: var(--danger-text); font-weight: 760; }
.table-secondary { display: block; margin-top: 3px; color: var(--text-tertiary); font-size: 0.74rem; }
.domain-table th { line-height: 1.35; white-space: normal; }
.domain-table .expiry-heading { overflow-wrap: normal; letter-spacing: 0.055em; }
.domain-table .last-check-heading span { display: block; max-width: 11ch; text-wrap: balance; }
.domain-table td:nth-child(2), .domain-table td:nth-child(4), .domain-table th:nth-child(2), .domain-table th:nth-child(4) { padding-right: 5px; padding-left: 5px; }
.domain-table td:nth-child(2) time, .domain-table td:nth-child(4) time { white-space: nowrap; }
.domain-table td:nth-child(3), .domain-table th:nth-child(3) { padding-right: 8px; padding-left: 8px; }
.domain-table td:nth-child(5), .domain-table th:nth-child(5), .domain-table td:nth-child(9), .domain-table th:nth-child(9) { padding-right: 6px; padding-left: 6px; }
.domain-table td:nth-child(8), .domain-table th:nth-child(8) { padding-right: 4px; padding-left: 4px; }
.domain-table td:last-child, .domain-table th:last-child { padding-right: 4px; padding-left: 4px; }
.domain-table .badge { gap: 3px; padding-right: 3px; padding-left: 3px; }
.table-datetime { display: inline-grid; gap: 1px; width: fit-content; }
.table-datetime span { white-space: nowrap; }
.table-options { display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 4px; }
.table-option { position: relative; display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid var(--border-subtle); border-radius: 9px; background: transparent; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.table-option:hover { border-color: rgba(100, 213, 255, 0.35); background: rgba(100, 213, 255, 0.08); transform: translateY(-1px); }
.table-option img { width: 16px; height: 16px; }
.table-option::after { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 20; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 7px; color: var(--text-primary); background: var(--surface-3); box-shadow: var(--shadow-menu); content: attr(data-tooltip); font-size: 0.72rem; font-weight: 650; line-height: 1; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity 140ms ease, transform 140ms ease; white-space: nowrap; }
.table-option:hover::after, .table-option:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.domain-table td:last-child .table-option::after { top: 50%; right: calc(100% + 8px); bottom: auto; left: auto; transform: translate(4px, -50%); }
.domain-table td:last-child .table-option:hover::after, .domain-table td:last-child .table-option:focus-visible::after { transform: translate(0, -50%); }
.domain-pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; }
.pagination-size-form { display: flex; align-items: center; gap: 9px; color: var(--text-tertiary); font-size: 0.82rem; }
.pagination-size-form label { white-space: nowrap; }
.pagination-size-form select { width: auto; min-width: 76px; padding: 7px 30px 7px 10px; border-radius: var(--radius-sm); font-size: 0.82rem; }
.pagination-size-submit { min-height: 36px; padding: 7px 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); color: var(--text-secondary); background: rgba(255, 255, 255, 0.05); cursor: pointer; font-size: 0.78rem; }
.js .pagination-size-submit { display: none; }
.pagination { display: flex; align-items: center; gap: 12px; color: var(--text-tertiary); font-size: 0.82rem; }
.pagination-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pagination a, .pagination-current { display: grid; min-width: 34px; min-height: 34px; padding: 6px 9px; place-items: center; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); color: var(--text-secondary); text-decoration: none; }
.pagination a:hover { border-color: rgba(100, 213, 255, 0.35); color: var(--text-primary); background: rgba(100, 213, 255, 0.08); }
.pagination-current { border-color: rgba(100, 213, 255, 0.34); color: var(--accent); background: rgba(100, 213, 255, 0.1); font-weight: 780; }
.pagination-direction { padding-inline: 11px !important; }
.pagination-ellipsis { min-width: 20px; text-align: center; }

.meta-list { display: grid; gap: 0; margin: 0; }
.meta-list div { display: grid; grid-template-columns: minmax(120px, 150px) minmax(0, 1fr); gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.meta-list div:last-child { border-bottom: 0; }
.meta-list dt { color: var(--text-tertiary); }
.meta-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.empty-state { display: grid; min-height: 300px; place-items: center; align-content: center; gap: 8px; padding: 40px 22px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); text-align: center; background: rgba(255, 255, 255, 0.018); }
.empty-state h2 { margin: 10px 0 0; }
.empty-state p { max-width: 55ch; margin: 0; color: var(--text-tertiary); }
.empty-icon { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(100, 213, 255, 0.25); border-radius: 15px; color: var(--accent); background: rgba(100, 213, 255, 0.08); font-size: 1.2rem; }
.skeleton { overflow: hidden; border-radius: 7px; color: transparent; background: linear-gradient(90deg, #171c27 25%, #222938 50%, #171c27 75%); background-size: 200% 100%; animation: skeleton 1.3s infinite linear; }
@keyframes skeleton { to { background-position: -200% 0; } }

.tabs { display: flex; gap: 4px; margin: 0 0 22px; padding: 4px; overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.025); scrollbar-width: thin; }
.tab { flex: 0 0 auto; min-height: 38px; padding: 8px 13px; border: 0; border-radius: 10px; color: var(--text-tertiary); background: transparent; cursor: pointer; font-size: 0.82rem; font-weight: 680; }
.tab[aria-selected="true"] { color: var(--text-primary); background: var(--surface-3); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset; }
[role="tabpanel"] { min-width: 0; }
details { min-width: 0; }
details > summary { color: var(--text-secondary); cursor: pointer; font-weight: 650; }
.history-group { padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.history-group:last-child { border-bottom: 0; }
dialog { width: min(540px, calc(100% - 28px)); padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); color: var(--text-primary); background: var(--surface-2); box-shadow: var(--shadow-menu); }
dialog::backdrop { background: rgba(0, 0, 0, 0.68); backdrop-filter: blur(5px); }
.dialog-body { padding: 26px; }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(520px, 100%); padding: 26px; border-left: 1px solid var(--border-strong); background: var(--surface-1); box-shadow: var(--shadow-menu); }

.wizard { display: grid; gap: 20px; }
.wizard-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wizard-step-label { padding: 11px 12px; border: 1px solid var(--border-subtle); border-radius: 11px; color: var(--text-tertiary); background: rgba(255, 255, 255, 0.025); font-size: 0.78rem; }
.wizard-step-label.is-active { border-color: rgba(100, 213, 255, 0.36); color: var(--text-primary); background: rgba(100, 213, 255, 0.08); }
.domain-option { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(180px, 0.4fr); gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.domain-option input[type="checkbox"] { width: 18px; }
.domain-option label { min-width: 0; }
.domain-option label span { color: var(--text-tertiary); font-size: 0.75rem; font-weight: 450; }
.domain-list, .review-list { display: grid; gap: 10px; margin-top: 16px; }
.review-item { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.invite-card { width: min(100%, 680px); }
.invite-access { display: grid; gap: 8px; margin: 24px 0; }
.invite-access div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--border-subtle); }
.invite-access div > * { min-width: 0; overflow-wrap: anywhere; }
.invite-access span, .invite-access small { color: var(--text-tertiary); }
.invite-access small { display: block; max-width: 280px; margin-top: 4px; font-size: 0.75rem; }

.email-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.email-card { display: grid; min-height: 150px; align-content: space-between; padding: 18px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); color: var(--text-primary); background: rgba(255, 255, 255, 0.025); text-decoration: none; }
.email-card:hover { border-color: rgba(100, 213, 255, 0.3); }
.email-card small { color: var(--text-tertiary); }
.email-preview-frame { width: 100%; min-height: 760px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: #edf3f7; }
.code-block { max-width: 100%; padding: 16px; overflow: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); color: #d9e6f6; background: #080a10; white-space: pre-wrap; }
.profile-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.profile-avatar { display: grid; width: 84px; height: 84px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(100, 213, 255, 0.3); border-radius: 26px; color: #dff8ff; background: linear-gradient(145deg, rgba(100, 213, 255, 0.2), rgba(88, 83, 220, 0.12)); font-size: 1.4rem; font-weight: 850; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr); gap: var(--space-6); align-items: start; }
.locale-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.locale-fieldset legend { color: #dce3ed; font-size: 0.84rem; font-weight: 650; }
.locale-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.locale-option { position: relative; display: block; cursor: pointer; }
.locale-option input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); opacity: 0; }
.locale-option span { display: grid; min-height: 44px; place-items: center; border: 1px solid var(--border-strong); border-radius: 11px; color: var(--text-secondary); background: #0a0d14; font-weight: 800; }
.locale-option input:checked + span { border-color: rgba(100, 213, 255, 0.5); color: #dff8ff; background: rgba(100, 213, 255, 0.12); }
.locale-option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.profile-access-list { display: grid; gap: 8px; }
.profile-access-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border-subtle); border-radius: 11px; color: var(--text-primary); text-decoration: none; }
.profile-access-list strong { color: var(--text-tertiary); font-size: 0.76rem; }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters, .filters-wide, .user-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .email-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 701px) {
  .domain-table { min-width: 860px; table-layout: auto; }
  .domain-table .domain-col-name { width: 9.7%; }
  .domain-table .domain-col-expiry { width: 9.3%; }
  .domain-table .domain-col-ssl-type { width: 9.5%; }
  .domain-table .domain-col-ssl-expiry { width: 9.3%; }
  .domain-table .domain-col-ip { width: 1%; }
  .domain-table .domain-col-email { width: 10.75%; }
  .domain-table .domain-col-phone { width: 10.25%; }
  .domain-table .domain-col-status { width: 13%; }
  .domain-table .domain-col-last-check { width: 10%; }
  .domain-table .domain-col-options { width: 1%; }
  .domain-table .domain-ip-value { white-space: nowrap; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-105%); transition: transform 180ms ease; }
  .app-stage { margin-left: 0; }
  .mobile-bar { position: sticky; top: 0; z-index: 35; display: grid; grid-template-columns: auto 1fr auto; min-height: 58px; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--border-subtle); background: rgba(7, 9, 15, 0.86); backdrop-filter: blur(18px); }
  .mobile-brand { display: flex; align-items: center; color: var(--text-primary); font-size: 0.84rem; font-weight: 750; text-decoration: none; }
  .avatar-small { width: 32px; height: 32px; }
  .context-bar { min-height: 42px; padding: 0 18px; }
  .context-bar .language-form { display: none; }
  .nav-scrim { position: fixed; inset: 0; z-index: 45; border: 0; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(3px); }
  .nav-open .sidebar { transform: translateX(0); }
  .nav-open .nav-scrim { display: block; }
  .nav-open { overflow: hidden; }
  .split-layout { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .app-shell { width: min(100% - 32px, var(--content-max)); padding-top: 32px; }
}

@media (max-width: 700px) {
  .page-header { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
  .page-actions { justify-content: flex-start; }
  .filters, .filters-wide, .user-filters, .inline-form, .form-grid { grid-template-columns: 1fr; }
  .wizard-progress { grid-template-columns: 1fr; }
  .domain-option { grid-template-columns: 26px minmax(0, 1fr); }
  .domain-option select { grid-column: 2; }
  .email-catalog { grid-template-columns: 1fr; }
  .domain-table thead { display: none; }
  .domain-table, .domain-table tbody, .domain-table tr, .domain-table td { display: block; width: 100%; }
  .domain-table tbody { display: grid; gap: 12px; }
  .domain-table tr { padding: 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.02); }
  .domain-table td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; max-width: none; padding: 8px 0; border: 0; }
  .domain-table td::before { color: var(--text-tertiary); content: attr(data-label); font-size: 0.68rem; font-weight: 760; letter-spacing: 0.06em; text-transform: uppercase; }
  .domain-table td:first-child { display: block; padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle); }
  .domain-table td:first-child::before { display: none; }
  .domain-pagination-bar, .pagination { align-items: flex-start; flex-direction: column; }
  .pagination-links { justify-content: flex-start; }
}

@media (max-width: 430px) {
  .app-shell { width: min(100% - 24px, var(--content-max)); padding: 26px 0 70px; }
  .page-shell { padding: 14px; }
  .auth-card { padding: 26px 22px; border-radius: 22px; }
  .stats-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px 15px; border-radius: 17px; }
  .button-row .button { width: 100%; }
  .page-actions { width: 100%; }
  .page-actions .button, .page-actions form { width: 100%; }
  .page-actions form .button { width: 100%; }
  .meta-list div { grid-template-columns: 1fr; gap: 3px; }
  .review-item, .invite-access div { align-items: flex-start; flex-direction: column; }
  .profile-hero { align-items: flex-start; }
  .profile-avatar { width: 68px; height: 68px; border-radius: 21px; }
  .domain-table td { grid-template-columns: 92px minmax(0, 1fr); }
  .tabs { margin-inline: -3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
