@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sidebar: #0b1220;
  --sidebar-hover: #162033;
  --sidebar-active: #1c2940;
  --sidebar-text: #94a3b8;
  --sidebar-strong: #f8fafc;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-border: #bfdbfe;
  --page: #f6f8fb;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #f8fafc;
  --surface-hover: #f3f6fa;
  --text: #111827;
  --text-2: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --success: #15803d;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --warning: #a16207;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --purple: #7c3aed;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 8px 24px rgba(15, 23, 42, .06);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --sidebar-width: 268px;
  --topbar-height: 72px;
}

html[data-theme="dark"] {
  --sidebar: #080d17;
  --sidebar-hover: #111a29;
  --sidebar-active: #172238;
  --sidebar-text: #8da0b9;
  --sidebar-strong: #f8fafc;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-soft: #10233f;
  --accent-border: #1e4f83;
  --page: #0b111b;
  --surface: #111925;
  --surface-raised: #141e2c;
  --surface-soft: #0d1521;
  --surface-hover: #182333;
  --text: #e8eef7;
  --text-2: #c1ccda;
  --muted: #94a3b8;
  --faint: #6f8299;
  --border: #243247;
  --border-strong: #33445d;
  --success: #4ade80;
  --success-bg: #0d2418;
  --success-border: #205e3a;
  --warning: #facc15;
  --warning-bg: #271e08;
  --warning-border: #665212;
  --danger: #f87171;
  --danger-bg: #291115;
  --danger-border: #6d2831;
  --purple: #a78bfa;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .18);
  --shadow: 0 10px 30px rgba(0, 0, 0, .18);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--page); }
body { margin: 0; min-height: 100vh; font-family: var(--font); background: var(--page); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
svg { display: block; }

/* Application frame */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); z-index: 50;
  display: flex; flex-direction: column; padding: 20px 14px 16px;
  background: var(--sidebar); color: var(--sidebar-text); border-right: 1px solid rgba(255,255,255,.045);
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 8px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(145deg,#3b82f6,#1d4ed8); box-shadow: 0 5px 18px rgba(37,99,235,.24); }
.brand-mark span { color: #fff; font-size: 18px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong { color: var(--sidebar-strong); font-size: 14px; font-weight: 750; letter-spacing: -.01em; white-space: nowrap; }
.brand-copy small { margin-top: 3px; color: #61738c; font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.sidebar-close { display: none; width: 34px; height: 34px; border: 0; border-radius: 8px; color: #94a3b8; background: transparent; font-size: 24px; cursor: pointer; }
.sidebar-close:hover { background: var(--sidebar-hover); color: #fff; }

.workspace-badge { margin: 20px 7px 8px; padding: 10px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(148,163,184,.11); border-radius: 11px; background: rgba(255,255,255,.035); }
.workspace-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 30px; background: #172554; color: #93c5fd; font-size: 10px; font-weight: 800; }
.workspace-badge > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.workspace-badge strong { color: #e2e8f0; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-badge small { color: #61738c; font-size: 9px; margin-top: 3px; white-space: nowrap; }

.nav { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 4px 5px 10px; scrollbar-width: thin; scrollbar-color: #28374e transparent; }
.nav-label { padding: 18px 10px 7px; color: #53657e; font-size: 9px; line-height: 1; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 10px; margin: 1px 0; border-radius: 9px; color: var(--sidebar-text); font-size: 12px; font-weight: 550; transition: background .15s ease, color .15s ease; }
.nav a svg { width: 17px; height: 17px; flex: 0 0 17px; fill: currentColor; opacity: .9; }
.nav a:hover { background: var(--sidebar-hover); color: #e2e8f0; }
.nav a.active { background: var(--sidebar-active); color: #fff; box-shadow: inset 0 0 0 1px rgba(96,165,250,.08); }
.nav a.active::before { content: ""; position: absolute; left: -5px; width: 3px; height: 20px; border-radius: 0 4px 4px 0; background: #60a5fa; }
.sidebar-foot { margin-top: auto; padding: 14px 9px 2px; border-top: 1px solid rgba(148,163,184,.1); display: flex; flex-direction: column; gap: 8px; }
.sidebar-foot small { color: #53657e; font-size: 9px; }
.system-status { display: inline-flex; align-items: center; gap: 7px; color: #7f91a8; font-size: 9.5px; }
.system-status i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.08); }

.main-area { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar-height); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 30px; background: color-mix(in srgb, var(--surface) 94%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.topbar-left, .top-actions { display: flex; align-items: center; }
.topbar-left { gap: 12px; min-width: 0; }
.page-context { display: flex; flex-direction: column; min-width: 0; }
.page-context strong { font-size: 12px; font-weight: 700; color: var(--text); }
.page-context span { margin-top: 3px; font-size: 9.5px; color: var(--faint); }
.top-actions { gap: 8px; }
.top-icon, .currency-button, .user-chip { border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; }
.top-icon { position: relative; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 10px; color: var(--muted); }
.top-icon:hover, .currency-button:hover, .user-chip:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.top-icon svg { width: 17px; height: 17px; fill: currentColor; }
.menu { display: none; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 5px; height: 5px; background: #ef4444; border: 1.5px solid var(--surface); border-radius: 50%; }
.theme-toggle .theme-moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-sun { display: none; }
html[data-theme="dark"] .theme-toggle .theme-moon { display: block; }

.currency-menu, .user-menu-wrap { position: relative; }
.currency-button { height: 38px; min-width: 76px; padding: 0 10px 0 11px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-2); }
.currency-code { font-size: 11px; font-weight: 750; letter-spacing: .02em; }
.chevron { color: var(--faint); font-size: 11px; transition: transform .15s ease; }
.currency-menu.open .currency-button .chevron, .user-menu-wrap.open .user-chip .chevron { transform: rotate(180deg); }
.currency-popover, .user-popover { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 7px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); z-index: 80; }
.currency-menu.open .currency-popover, .user-menu-wrap.open .user-popover { display: block; animation: pop .12s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.popover-title { padding: 7px 9px 9px; font-size: 9px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.currency-popover a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; padding: 0 9px; border-radius: 8px; }
.currency-popover a:hover, .currency-popover a.selected { background: var(--surface-hover); }
.currency-popover a span { font-size: 11px; font-weight: 700; }
.currency-popover a small { color: var(--faint); font-size: 9px; }

.user-chip { min-height: 42px; padding: 4px 9px 4px 4px; border-radius: 11px; display: flex; align-items: center; gap: 8px; text-align: left; }
.avatar { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; }
.user-meta { display: flex; flex-direction: column; min-width: 92px; max-width: 140px; }
.user-meta strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; color: var(--text); font-weight: 700; }
.user-meta small { margin-top: 2px; font-size: 8.5px; color: var(--faint); }
.user-popover { min-width: 200px; }
.user-popover-head { padding: 10px 10px 11px; display: flex; flex-direction: column; border-bottom: 1px solid var(--border); margin-bottom: 5px; }
.user-popover-head strong { font-size: 11px; }
.user-popover-head small { margin-top: 3px; font-size: 9px; color: var(--faint); }
.user-popover a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--text-2); font-size: 10.5px; }
.user-popover a:hover { background: var(--surface-hover); color: var(--text); }
.user-popover .danger-link { color: var(--danger); }

.content { width: 100%; max-width: 1500px; margin: 0 auto; padding: 30px 32px 54px; }
.mobile-backdrop { display: none; }

/* Page heading */
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 0 0 24px; }
.hero-row.compact { align-items: center; }
.kicker { display: block; margin: 0 0 7px; color: var(--accent); font-size: 9px; line-height: 1; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-row h1 { margin: 0 0 7px; color: var(--text); font-size: clamp(23px, 2vw, 29px); line-height: 1.17; letter-spacing: -.035em; font-weight: 750; }
.hero-row p, .muted { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Buttons */
.btn { min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; font-size: 10.5px; font-weight: 700; transition: background .15s ease, border .15s ease, transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 3px 10px rgba(37,99,235,.16); }
html[data-theme="dark"] .btn-primary { color: #06101f; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.btn-small { min-height: 31px; padding: 0 10px; border-radius: 7px; font-size: 9.5px; }
.full { width: 100%; }
.text-link { color: var(--accent); font-size: 10px; font-weight: 700; }
.text-link:hover { text-decoration: underline; }

/* Cards and dashboard */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.client-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
.metric-card, .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.metric-card { min-width: 0; padding: 17px 18px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.metric-top > span:first-child, .metric-card > span:first-child { color: var(--muted); font-size: 10px; font-weight: 650; }
.metric-card strong { display: block; margin-top: 10px; color: var(--text); font-size: 25px; line-height: 1.1; font-weight: 750; letter-spacing: -.03em; }
.metric-card strong.metric-word { font-size: 21px; }
.metric-card small { display: block; margin-top: 6px; color: var(--faint); font-size: 9px; line-height: 1.45; }
.metric-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.health-pill { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 999px; background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); font-size: 8.5px; font-weight: 750; }
.card { min-width: 0; padding: 19px; }
.card-head { min-height: 36px; margin: -1px 0 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-head h2 { margin: 0; font-size: 13px; line-height: 1.3; font-weight: 720; letter-spacing: -.01em; }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 16px; margin-bottom: 16px; }
.dashboard-grid.equal { grid-template-columns: repeat(2,minmax(0,1fr)); }
.span-2 { min-width: 0; }
.quick-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.quick-grid > * { min-width: 0; }

/* Tables */
.table-wrap { width: calc(100% + 38px); margin: 0 -19px -19px; overflow-x: auto; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 12px 19px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background: var(--surface-soft); color: var(--faint); font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
td { color: var(--text-2); font-size: 10.5px; }
td b { color: var(--text); font-weight: 650; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-hover) 55%, transparent); }
.table-sub { display: block; margin-top: 3px; color: var(--faint); font-size: 8.5px; }
.empty-cell { padding: 34px 20px; text-align: center; color: var(--faint); }

.tag { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 999px; font-size: 8.5px; font-weight: 750; white-space: nowrap; background: var(--surface-soft); color: var(--muted); border: 1px solid var(--border); }
.tag.green { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
.tag.amber { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning); }
.tag.blue { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }
.tag.purple { color: var(--purple); }

/* Activity */
.activity-list { display: flex; flex-direction: column; }
.activity-list > div { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.activity-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px var(--surface-soft); }
.activity-dot.green { background: #22c55e; }.activity-dot.blue { background: #3b82f6; }.activity-dot.amber { background: #f59e0b; }.activity-dot.purple { background: #8b5cf6; }
.activity-list p { display: flex; flex-direction: column; margin: 0; }
.activity-list b { color: var(--text); font-size: 10.5px; font-weight: 650; }
.activity-list small { margin-top: 3px; color: var(--faint); font-size: 9px; }

/* Forms */
.stack-form { display: flex; flex-direction: column; gap: 11px; }
.stack-form label, .auth-card label { display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: 9.5px; font-weight: 650; }
.stack-form input, .stack-form select, .stack-form textarea, .auth-card input, .domain-search input, .restore-inline input { width: 100%; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); outline: none; transition: border .15s ease, box-shadow .15s ease; }
.stack-form input, .stack-form select, .auth-card input { min-height: 39px; padding: 0 11px; }
.stack-form textarea { padding: 10px 11px; resize: vertical; line-height: 1.5; }
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus, .auth-card input:focus, .domain-search input:focus, .restore-inline input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.markup-row { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10px; }
.top-gap { margin-top: 14px; }.top-gap-sm { margin-top: 9px; }
.form-footer { display: flex; justify-content: flex-end; margin: 14px -19px -19px; padding: 14px 19px; border-top: 1px solid var(--border); background: var(--surface-soft); border-radius: 0 0 var(--radius) var(--radius); }
.check-row { display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: 9px !important; cursor: pointer; }
.check-row input { width: auto !important; min-height: auto !important; margin: 2px 0 0; }
.check-row span { display: flex; flex-direction: column; }
.check-row small { margin-top: 2px; color: var(--muted); font-size: 8.5px; font-weight: 400; }

.notice { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 10px; line-height: 1.45; }
.notice.success { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
.notice.error { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
.notice.info { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }

/* WHOIS */
.lookup-card { padding: 20px; }
.domain-search { display: flex; align-items: stretch; gap: 9px; }
.search-prefix { min-width: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-soft); color: var(--faint); font-size: 10px; }
.domain-search input { flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; }
.result-head { padding: 18px 0 12px; }
.result-head h2 { margin: 8px 0 4px; font-size: 19px; letter-spacing: -.02em; }
.result-head p { margin: 0; color: var(--faint); font-size: 9px; }
.whois-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.whois-grid > div { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-soft); display: flex; flex-direction: column; }
.whois-grid span { color: var(--faint); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.whois-grid b { margin-top: 5px; color: var(--text); font-size: 10px; word-break: break-word; }
.raw-details { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 11px; }
.raw-details summary { color: var(--accent); cursor: pointer; font-size: 9.5px; font-weight: 700; }
.raw-details pre, .code-sample { background: #08111f; color: #dbeafe; border: 1px solid #15243a; border-radius: 9px; padding: 13px; overflow: auto; font-size: 9.5px; line-height: 1.65; }
.empty-state { padding: 48px 20px; text-align: center; }
.empty-state > span { color: var(--faint); font-size: 30px; }
.empty-state h3 { margin: 9px 0 4px; font-size: 12px; }
.empty-state p { margin: 0; color: var(--faint); font-size: 9.5px; }

/* Settings / gateways / updater */
.fx-grid .metric-card strong { font-size: 20px; }
.policy-list > div { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--border); }
.policy-list > div:last-child { border-bottom: 0; }
.policy-list b { font-size: 10.5px; }.policy-list span { margin-top: 3px; color: var(--faint); font-size: 9px; }
.gateway-list { display: flex; flex-direction: column; }
.gateway-row { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.gateway-row:last-child { border-bottom: 0; }
.gateway-logo { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 800; }
.gateway-row > div:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.gateway-row b { font-size: 10.5px; }.gateway-row small { margin-top: 3px; color: var(--faint); font-size: 8.8px; }
.toggle { appearance: none; width: 36px; height: 20px; border: 0; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .18s ease; }
.toggle::after { content: ""; position: absolute; width: 16px; height: 16px; top: 2px; left: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform .18s ease; }
.toggle:checked { background: var(--accent); }.toggle:checked::after { transform: translateX(16px); }
.version-badge { padding: 8px 11px; border: 1px solid var(--accent-border); border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 750; }
.safe-update-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 4px 0 6px; padding: 12px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 9px; }
.safe-update-list span { color: var(--text-2); font-size: 9.5px; }
.migration-list { display: flex; flex-direction: column; gap: 7px; }
.migration-list > div { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--border); border-radius: 8px; }
.migration-list code { color: var(--text-2); font-size: 9.5px; }
.empty-mini { padding: 20px 0; text-align: center; }.empty-mini p { margin: 0; color: var(--muted); font-size: 9.5px; }
.update-flow { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.update-flow span { padding: 8px 10px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 8px; color: var(--text-2); font-size: 9.5px; font-weight: 650; }
.update-flow b { color: var(--faint); }
.restore-inline { display: flex; align-items: center; gap: 6px; }.restore-inline input { width: 100px; min-height: 31px; padding: 0 8px; font-size: 9px; }

/* Auth */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 43%) 1fr; background: var(--surface); }
.auth-side { min-height: 100vh; padding: 42px clamp(40px,7vw,110px); display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 20% 20%, #172554 0, transparent 38%), linear-gradient(145deg,#08111f,#0b172a 68%,#10213b); color: #fff; }
.auth-brand { display: flex; align-items: center; gap: 11px; }
.auth-brand > span:last-child { display: flex; flex-direction: column; }
.auth-brand small { margin-top: 3px; color: #7185a0; font-size: 9px; }
.auth-copy { max-width: 480px; }.kicker.light { color: #7db5ff; }
.auth-copy h1 { margin: 10px 0 17px; font-size: clamp(34px,4vw,48px); line-height: 1.04; letter-spacing: -.05em; }
.auth-copy p { margin: 0; color: #9aacbf; font-size: 12.5px; line-height: 1.75; }
.auth-side > small { color: #60748e; font-size: 9px; }
.auth-form-wrap { display: grid; place-items: center; padding: 34px; background: var(--surface); }
.auth-card { width: min(390px,100%); }
.auth-card h2 { margin: 0 0 6px; font-size: 23px; letter-spacing: -.03em; }
.auth-card > p { margin: 0 0 23px; color: var(--muted); font-size: 10.5px; }
.auth-card label { margin-top: 12px; }.auth-card .full { margin-top: 18px; }
.auth-note { display: block; margin-top: 18px; text-align: center; color: var(--faint); font-size: 8.5px; }

/* Responsive */
@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .client-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dashboard-grid, .dashboard-grid.equal { grid-template-columns: 1fr; }
  .whois-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(0,0,0,.22); }
  body.nav-open { overflow: hidden; }
  body.nav-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: grid; place-items: center; }
  .mobile-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(2,6,23,.46); backdrop-filter: blur(2px); }
  body.nav-open .mobile-backdrop { display: block; }
  .main-area { margin-left: 0; }
  .menu { display: grid; }
  .topbar { padding: 0 20px; }
  .content { padding: 25px 20px 44px; }
}

@media (max-width: 720px) {
  :root { --topbar-height: 64px; }
  .topbar { padding: 0 14px; }
  .page-context span, .user-meta, .user-chip .chevron { display: none; }
  .user-chip { min-height: 38px; padding: 2px; border: 0; background: transparent; box-shadow: none; }
  .user-chip:hover { background: transparent; border-color: transparent; }
  .avatar { width: 34px; height: 34px; }
  .content { padding: 21px 14px 36px; }
  .hero-row { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 19px; }
  .hero-row.compact { align-items: flex-start; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .metric-grid, .client-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quick-grid { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .table-wrap { width: calc(100% + 32px); margin: 0 -16px -16px; }
  th, td { padding-left: 16px; padding-right: 16px; }
  .form-footer { margin: 14px -16px -16px; padding: 13px 16px; }
  .safe-update-list { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }.auth-side { display: none; }.auth-form-wrap { min-height: 100vh; padding: 24px; }
}

@media (max-width: 520px) {
  .page-context { display: none; }
  .currency-button { min-width: 58px; padding: 0 8px; }
  .top-actions { gap: 5px; }
  .top-icon { width: 36px; height: 36px; }
  .metric-grid, .client-metrics { grid-template-columns: 1fr; }
  .metric-card { padding: 15px 16px; }
  .domain-search { flex-direction: column; }.domain-search .btn { width: 100%; }
  .whois-grid { grid-template-columns: 1fr; }
  .markup-row { grid-template-columns: 1fr; }
  .gateway-row { grid-template-columns: 36px minmax(0,1fr) auto; }
  .currency-popover { position: fixed; top: 61px; right: 10px; }
  .user-popover { position: fixed; top: 61px; right: 10px; }
}

/* v2.3 readability + administration modules */
html { font-size: 16px; }
body { font-size: 14px; line-height: 1.55; }
.nav a { font-size: 13px; min-height: 42px; }
.nav-label { font-size: 10.5px; }
.brand-copy strong { font-size: 14px; }
.brand-copy small, .workspace-badge small, .sidebar-foot small { font-size: 11px; }
.workspace-badge strong { font-size: 12.5px; }
.page-context strong { font-size: 13px; }
.page-context span { font-size: 11.5px; }
.currency-code { font-size: 13px; }
.user-meta strong { font-size: 12px; }.user-meta small { font-size: 10.5px; }
.hero-row h1 { font-size: clamp(28px, 2.25vw, 36px); }
.kicker { font-size: 11px; }
.hero-row p, .muted { font-size: 14px; }
.btn { min-height: 42px; font-size: 13px; padding-inline: 16px; }
.btn-small { min-height: 34px; font-size: 12px; }
.metric-top > span:first-child, .metric-card > span:first-child { font-size: 12.5px; }
.metric-card strong { font-size: 30px; }.metric-card strong.metric-word { font-size: 23px; }
.metric-card small { font-size: 12px; }
.health-pill, .tag { font-size: 11px; min-height: 25px; }
.card-head h2 { font-size: 16px; }.card-head p { font-size: 12.5px; }
th { font-size: 10.5px; } td { font-size: 13px; }.table-sub { font-size: 11px; }
.activity-list b { font-size: 13px; }.activity-list small { font-size: 11.5px; }
.text-link { font-size: 12.5px; }
label > span, .field-label { font-size: 12.5px !important; }
input, select, textarea { min-height: 44px; font-size: 14px !important; }
textarea { min-height: 120px; padding-top: 12px; }
.field-help { display:block; margin-top:5px; color:var(--faint); font-size:10.5px; }
.alert { font-size: 13px; line-height: 1.55; }
.system-warning { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 18px; margin-bottom:18px; border:1px solid var(--warning-border); background:var(--warning-bg); border-radius:var(--radius); }
.system-warning > div:first-child { display:flex; flex-direction:column; gap:4px; }.system-warning strong { font-size:14px; }.system-warning span { color:var(--muted); font-size:12.5px; }
.health-pill.attention { background:var(--warning-bg); border-color:var(--warning-border); color:var(--warning); }
.module-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.module-card { display:flex; flex-direction:column; gap:18px; }
.module-head { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.module-head > div:first-child { display:flex; gap:12px; align-items:center; }.module-head h2 { margin:0; font-size:17px; }.module-head p { margin:3px 0 0; font-size:12px; color:var(--muted); }
.module-logo { width:42px; height:42px; border-radius:11px; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent); font-weight:800; font-size:12px; }
.module-toggle { display:flex; align-items:center; gap:10px; padding:11px 12px; background:var(--surface-soft); border:1px solid var(--border); border-radius:10px; }.module-toggle small { font-size:12px; color:var(--muted); }
.switch { position:relative; width:42px; height:24px; flex:0 0 42px; }.switch input { opacity:0; position:absolute; width:1px; height:1px; }.switch span { position:absolute; inset:0; border-radius:99px; background:var(--border-strong); transition:.2s; }.switch span:after { content:""; position:absolute; width:18px; height:18px; left:3px; top:3px; border-radius:50%; background:white; box-shadow:0 1px 3px rgba(0,0,0,.2); transition:.2s; }.switch input:checked + span { background:var(--accent); }.switch input:checked + span:after { transform:translateX(18px); }
.module-actions { display:flex; flex-wrap:wrap; gap:8px; }.module-actions form { margin:0; }
.module-foot { display:flex; justify-content:space-between; gap:16px; padding-top:10px; border-top:1px solid var(--border); font-size:11.5px; }.module-foot span { color:var(--muted); }.module-foot b { color:var(--text-2); font-weight:650; text-align:right; }
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }.settings-grid .card { height:100%; }
.sticky-save { position:sticky; bottom:14px; display:flex; justify-content:flex-end; margin-top:18px; padding:12px; background:color-mix(in srgb,var(--surface) 90%,transparent); border:1px solid var(--border); border-radius:12px; backdrop-filter:blur(12px); z-index:10; }
.command-code { display:block; max-width:420px; white-space:normal; overflow-wrap:anywhere; font-size:11px; line-height:1.45; color:var(--text-2); }
.ok-text { color:var(--success) !important; }
@media (max-width: 980px) { .module-grid,.settings-grid { grid-template-columns:1fr; }.system-warning{align-items:flex-start;flex-direction:column;} }
@media (max-width: 640px) { body{font-size:14px}.hero-row h1{font-size:28px}.content{padding:22px 16px 42px}.card{padding:17px}.table-wrap{width:calc(100% + 34px);margin-left:-17px;margin-right:-17px}.module-actions{flex-direction:column}.module-actions form,.module-actions .btn{width:100%}.system-warning .hero-actions{width:100%}.system-warning .btn{flex:1;} }

/* =========================================================
   v2.4 UI refinement — forms, readability and client portal
   ========================================================= */

:root {
  --control-height: 48px;
  --content-max: 1540px;
}

/* More comfortable global reading scale */
body { font-size: 15px; line-height: 1.6; }
.content { width: 100%; max-width: var(--content-max); margin: 0 auto; padding-top: 32px; }
.hero-row p, .client-hero p { font-size: 14.5px; line-height: 1.7; max-width: 790px; }
.card { border-radius: 15px; }
.card-head h2, .config-card h2, .client-dashboard-grid h2 { font-size: 18px; letter-spacing: -.02em; }
.card-head p { font-size: 13.5px; line-height: 1.55; }
.alert, .notice { font-size: 13.5px; }
th { font-size: 11.5px; letter-spacing: .045em; }
td { font-size: 13.5px; }
.table-sub { font-size: 11.5px; }

/* Sitewide form system: labels above controls, never squeezed beside them */
.stack,
.stack-form,
.config-fields { display: grid; gap: 18px; }
.stack > label,
.stack-form > label,
.config-field,
.auth-card label {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100%;
  min-width: 0;
  color: var(--text-2);
}
.stack > label > span:first-child,
.stack-form > label > span:first-child,
.config-label,
.auth-card label > span:first-child {
  display: block;
  font-size: 13px !important;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}
.stack input:not([type="checkbox"]):not([type="radio"]),
.stack select,
.stack textarea,
.stack-form input:not([type="checkbox"]):not([type="radio"]),
.stack-form select,
.stack-form textarea,
.config-field input,
.config-field select,
.config-field textarea,
.auth-card input {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  min-height: var(--control-height) !important;
  padding: 0 14px !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  font-size: 14px !important;
  line-height: 1.4;
  outline: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.stack textarea,
.stack-form textarea,
.config-field textarea { min-height: 126px !important; padding-top: 12px !important; padding-bottom: 12px !important; resize: vertical; }
.stack input:focus,
.stack select:focus,
.stack textarea:focus,
.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus,
.config-field input:focus,
.config-field select:focus,
.config-field textarea:focus,
.auth-card input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent) !important;
}
.field-help { margin-top: 0; font-size: 10.5px !important; line-height: 1.35; color: var(--faint); font-weight: 650; letter-spacing: .035em; overflow-wrap: anywhere; }

/* Configuration page */
.config-hero { margin-bottom: 18px; }
.config-notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.config-notice .notice-icon { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.config-notice > div:last-child { display: flex; flex-direction: column; gap: 3px; }
.config-notice b { color: var(--text); font-size: 13.5px; }
.config-notice span { color: var(--text-2); font-size: 13px; line-height: 1.6; }
.settings-grid-polished { gap: 20px; }
.config-card { height: auto !important; padding: 22px; overflow: hidden; }
.config-card-head { display: flex; align-items: flex-start; gap: 13px; padding-bottom: 18px; margin-bottom: 19px; border-bottom: 1px solid var(--border); }
.config-section-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent); font-size: 13px; font-weight: 800; }
.config-card-head h2 { margin: 0; color: var(--text); }
.config-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.config-control-wrap { position: relative; display: block; width: 100%; }
.config-control-wrap input { padding-right: 86px !important; }
.secret-indicator { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; min-height: 25px; padding: 0 8px; border-radius: 7px; background: var(--surface-soft); border: 1px solid var(--border); color: var(--muted); font-size: 10.5px; font-weight: 700; pointer-events: none; }
.polished-save { bottom: 16px; padding: 14px 15px; align-items: center; gap: 20px; }
.polished-save > div { margin-right: auto; display: flex; flex-direction: column; gap: 2px; }
.polished-save > div strong { font-size: 13.5px; }
.polished-save > div span { color: var(--muted); font-size: 11.5px; }

/* Ensure long endpoints and credentials are usable everywhere */
input, select, textarea { text-overflow: ellipsis; }
input:focus { text-overflow: clip; }
code { overflow-wrap: anywhere; }

/* Customer dashboard */
.client-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.55fr); gap: 32px; align-items: center;
  margin-bottom: 22px; padding: clamp(26px,3.2vw,42px); border: 1px solid var(--border); border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb,var(--accent-soft) 82%,var(--surface)) 0%, var(--surface) 52%, var(--surface-soft) 100%);
  box-shadow: var(--shadow-sm);
}
.client-hero:after { content:""; position:absolute; width:280px; height:280px; right:-100px; top:-140px; border-radius:50%; background:color-mix(in srgb,var(--accent) 7%,transparent); pointer-events:none; }
.client-hero-copy { position: relative; z-index: 1; }
.client-hero h1 { margin: 8px 0 10px; max-width: 720px; font-size: clamp(31px,3.2vw,46px); line-height: 1.05; letter-spacing: -.045em; }
.client-hero p { margin: 0; color: var(--muted); }
.client-hero-actions { margin-top: 21px; }
.client-hero-panel { position: relative; z-index:1; padding: 19px; border: 1px solid color-mix(in srgb,var(--border) 88%,transparent); border-radius: 14px; background: color-mix(in srgb,var(--surface) 92%,transparent); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.client-hero-panel-label { display:block; margin-bottom: 9px; color:var(--faint); font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.snapshot-row { display:flex; align-items:center; justify-content:space-between; min-height:42px; border-bottom:1px solid var(--border); }
.snapshot-row span { color:var(--text-2); font-size:13px; }.snapshot-row strong { font-size:18px; }
.snapshot-status { display:flex; align-items:center; gap:8px; padding-top:13px; color:var(--muted); font-size:11.5px; }.snapshot-status i { width:8px;height:8px;border-radius:50%;background:var(--success);box-shadow:0 0 0 4px color-mix(in srgb,var(--success) 12%,transparent); }
.client-metrics-polished { margin-bottom:22px; }
.client-stat-card { min-height: 178px; display:flex; flex-direction:column; }
.client-stat-icon { width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:var(--accent-soft);color:var(--accent);font-size:16px; }
.client-stat-card > strong { margin-top:8px; }.client-stat-card > small { line-height:1.5; }
.client-stat-card > a { margin-top:auto; padding-top:14px; color:var(--accent); font-size:12.5px; font-weight:700; }
.client-stat-card > a span { margin-left:4px; }
.client-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(300px,.6fr); gap:20px; margin-bottom:20px; }
.section-eyebrow { display:block; margin-bottom:6px; color:var(--accent); font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.09em; }
.client-action-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.client-action-card { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:12px; align-items:center; min-height:88px; padding:14px; border:1px solid var(--border); border-radius:12px; background:var(--surface); transition:transform .15s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease; }
.client-action-card:hover { transform:translateY(-1px); border-color:var(--accent-border); background:var(--surface-hover); box-shadow:var(--shadow-sm); }
.client-action-icon { width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:var(--accent-soft);color:var(--accent);font-size:19px;font-weight:700; }
.client-action-card > span:nth-child(2) { display:flex;flex-direction:column;min-width:0; }.client-action-card b { font-size:13.5px; }.client-action-card small { margin-top:3px;color:var(--muted);font-size:11.5px;line-height:1.45; }.client-action-card > i { color:var(--faint);font-style:normal;font-size:16px; }
.account-help-card { display:flex; flex-direction:column; }
.account-help-card > h2 { margin:0 0 7px; }.account-help-card > p { margin:0 0 14px;color:var(--muted);font-size:12.5px;line-height:1.65; }
.help-options { display:flex;flex-direction:column;margin:3px 0 18px; }.help-options > div { display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid var(--border); }.help-options > div > span { width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:var(--surface-soft);color:var(--accent);font-weight:800; }.help-options p { margin:0;display:flex;flex-direction:column; }.help-options b{font-size:12.5px}.help-options small{margin-top:2px;color:var(--muted);font-size:10.5px}.full-width{width:100%;justify-content:center;margin-top:auto;}
.client-account-strip { display:flex;align-items:center;justify-content:space-between;gap:24px; }.client-account-strip h2{margin:0 0 5px;font-size:17px}.client-account-strip p{margin:0;max-width:760px;color:var(--muted);font-size:12.5px;line-height:1.6}.client-account-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.client-account-badges span{padding:7px 9px;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft);color:var(--text-2);font-size:10.5px;font-weight:700;white-space:nowrap}

/* Dark theme tuning for new panels */
html[data-theme="dark"] .client-hero { background: linear-gradient(135deg, #10213a 0%, var(--surface) 52%, var(--surface-soft) 100%); }

@media (max-width: 1180px) {
  .client-hero { grid-template-columns: 1fr minmax(280px,.55fr); }
  .client-dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .client-hero { grid-template-columns:1fr; }
  .client-hero-panel { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 16px; }
  .client-hero-panel-label,.snapshot-status { grid-column:1/-1; }
  .snapshot-row { flex-direction:column; align-items:flex-start; justify-content:center; border-bottom:0; border-right:1px solid var(--border); }
  .snapshot-row:nth-of-type(4) { border-right:0; }
  .settings-grid-polished { grid-template-columns:1fr; }
}
@media (max-width: 720px) {
  .content { padding-top:22px; }
  .config-card { padding:18px; }
  .config-card-head { margin-bottom:16px; padding-bottom:15px; }
  .polished-save { position:static; flex-direction:column; align-items:stretch; }
  .polished-save > div { margin-right:0; }
  .polished-save .btn { width:100%; }
  .client-hero { padding:22px 18px; border-radius:15px; }
  .client-hero h1 { font-size:32px; }
  .client-action-grid { grid-template-columns:1fr; }
  .client-account-strip { flex-direction:column;align-items:flex-start; }.client-account-badges{justify-content:flex-start}
}
@media (max-width: 520px) {
  .client-hero-panel { grid-template-columns:1fr; }
  .snapshot-row { flex-direction:row;align-items:center;justify-content:space-between;border-right:0;border-bottom:1px solid var(--border); }
  .client-hero-actions { width:100%; }.client-hero-actions .btn { flex:1; }
  .config-control-wrap input { padding-right:14px !important; }
  .secret-indicator { position:static; transform:none; margin-top:7px; width:max-content; }
}

/* v2.5 mailer + protected registrar credentials */
.config-control-wrap select { width:100%; min-height:46px; padding:0 13px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--text); font:inherit; outline:none; }
.config-control-wrap select:focus { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent); }
.registrar-secret-wrap { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:stretch; }
.registrar-secret-wrap input { min-width:0; }
.btn-secret-view { white-space:nowrap; min-width:66px; }
.module-disabled { border-style:dashed; }
.module-disabled .module-actions { opacity:.7; }
.module-disabled .module-actions .btn:disabled { cursor:not-allowed; opacity:.55; }
.disabled-module-note { margin:12px 0 4px; padding:10px 12px; border:1px solid var(--border); border-radius:9px; background:var(--surface-soft); color:var(--muted); font-size:10px; line-height:1.5; }
.modal-open { overflow:hidden; }
.modal-backdrop { position:fixed; inset:0; z-index:200; display:grid; place-items:center; padding:20px; background:rgba(2,6,23,.58); backdrop-filter:blur(4px); }
.modal-backdrop[hidden] { display:none; }
.secret-modal { width:min(520px,100%); max-height:calc(100vh - 40px); overflow:auto; padding:22px; border:1px solid var(--border); border-radius:16px; background:var(--surface); color:var(--text); box-shadow:0 25px 80px rgba(2,6,23,.32); }
.secret-modal-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.secret-modal-head h2 { margin:5px 0 0; font-size:20px; }
.secret-modal > p { margin:13px 0 18px; color:var(--muted); line-height:1.6; font-size:11px; }
.modal-close { width:34px; height:34px; border:1px solid var(--border); border-radius:9px; background:var(--surface-soft); color:var(--text); cursor:pointer; font-size:20px; }
.secret-modal .config-field input { width:100%; min-height:44px; padding:0 12px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--text); outline:none; }
.secret-modal .config-field input:focus { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent); }
.secret-error { margin-top:10px; padding:10px 12px; border-radius:9px; background:var(--danger-bg); border:1px solid var(--danger-border); color:var(--danger); font-size:10px; }
.secret-result { margin-top:14px; padding:12px; border:1px solid var(--border); border-radius:10px; background:var(--surface-soft); }
.secret-result > span { display:block; margin-bottom:8px; color:var(--muted); font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.secret-result > div { display:flex; align-items:center; gap:8px; }
.secret-result code { flex:1; min-width:0; overflow-wrap:anywhere; color:var(--text); font-size:11px; }
.secret-modal-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }
@media(max-width:620px){.registrar-secret-wrap{grid-template-columns:1fr}.btn-secret-view{width:100%}.secret-modal{padding:18px}.secret-modal-actions{flex-direction:column-reverse}.secret-modal-actions .btn{width:100%}}

/* ankora-friendly-setting-captions */
.field-key,.setting-key,.form-key,.field-help-key{
  text-transform:none!important;
  letter-spacing:0!important;
  font-size:.78rem!important;
  font-weight:500!important;
  opacity:.68;
}
