/* Mixnet Portal: frontend/src/design-system/tokens/tokens.stylex.ts */
:root {
  --canvas: #f5f6f8; --surface: #fff; --layer: #f8fafc;
  --text: #20242b; --secondary: #465161; --muted: #626b78;
  --border: #dce1e7; --border-subtle: #edf0f4; --border-strong: #a5afbc;
  --primary: #1a64b2; --primary-hover: #183a95; --selected: #eef6fd;
  --nav-text: #394252; --nav-active: rgba(26,100,178,.10);
  --success: #067451; --error: #c92a2a; --focus: #1c87cb;
  --gutter: 16px; --sidebar: 272px; --topbar: 64px;
  --font: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong { font-weight: 600; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: rgba(28,135,203,.18); }
[hidden] { display: none !important; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.skip-link { position: fixed; top: -90px; left: 16px; z-index: 100; background: var(--surface); color: var(--primary); padding: 12px 18px; border: 1px solid var(--border); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.portal-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0,1fr); min-height: 100dvh; align-items: start; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; width: var(--sidebar); height: 100dvh; background: var(--surface); border-right: 1px solid var(--border); }
.brand { display: grid; place-items: center; height: var(--topbar); flex-shrink: 0; border-bottom: 1px solid var(--border-subtle); }
.brand img { width: 176px; height: 40px; object-fit: contain; }
.sidebar-content { flex: 1; overflow-y: auto; padding: 24px 12px; }
.workspace-label { font-size: 11px; font-weight: 600; letter-spacing: .07em; color: var(--muted); padding: 0 12px; margin-bottom: 10px; }
.section-navigation { display: grid; gap: 4px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 10px; min-height: 42px; border-radius: 6px; padding: 9px 12px; color: var(--nav-text); font-weight: 500; font-size: 13px; transition: background-color 120ms, color 120ms; }
.nav-link > span { flex: 1; }
.nav-link > .icon { width: 16px; height: 16px; flex-basis: 16px; }
.nav-link:hover { color: var(--primary); background: #eef4f9; }
.nav-link[aria-current] { background: var(--nav-active); color: var(--primary); }
.nav-link[aria-current]::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: 0; width: 2px; background: var(--primary); }
.nav-arrow { visibility: hidden; }
.nav-link[aria-current] .nav-arrow { visibility: visible; }
.sidebar-divider { height: 1px; margin: 22px 12px; background: var(--border-subtle); }
.sidebar-footer { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-top: 1px solid var(--border-subtle); }
.sidebar-footer strong { display: block; font-size: 12px; }
.sidebar-footer span:not(.footer-mark) { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.footer-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; background: var(--selected); color: var(--primary); }
.main-shell { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--topbar); padding: 0 var(--gutter); background: var(--surface); border-bottom: 1px solid var(--border-subtle); box-shadow: 0 1px 2px rgba(20,28,40,.03); }
.topbar-location, .breadcrumb { display: flex; align-items: center; gap: 10px; min-width: 0; }
.breadcrumb { font-size: 12px; white-space: nowrap; }
.breadcrumb [aria-current] { font-weight: 600; }
.home-icon { color: var(--primary); width: 16px; height: 16px; flex-basis: 16px; }
.crumb-parent { color: var(--muted); }
.separator { margin: 0 9px; color: var(--border-strong); }
.topbar-help { display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--secondary); font-size: 12px; }
.topbar-help:hover { color: var(--primary); }
.content { max-width: 1920px; margin: 0 auto; padding: 26px var(--gutter) 0; }
.overview, .page-section, .settings-card, .guide-card { scroll-margin-top: 88px; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.page-heading { border-left: 2px solid var(--primary); padding-left: 14px; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .09em; margin-bottom: 5px; }
h1 { font-size: 24px; line-height: 1.3; }
.page-heading > p:last-child { max-width: 660px; color: var(--secondary); font-size: 12px; margin-top: 8px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--secondary); font-size: 12px; font-weight: 500; line-height: 20px; transition: background-color 120ms, border-color 120ms; text-align: center; }
.button:hover:not(:disabled) { border-color: var(--border-strong); background: #f2f8fc; }
.button .icon { width: 16px; height: 16px; flex-basis: 16px; }
.button.primary { background: var(--primary); border-color: var(--primary); color: white; }
.button.primary:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); }
.page-header > .button { flex-shrink: 0; }
.connection-summary { display: flex; align-items: center; gap: 26px; min-height: 80px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 1px 2px rgba(42,34,34,.03); }
.summary-identity { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.summary-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1px solid #dceaf7; border-radius: 6px; color: var(--primary); background: var(--selected); }
.meta-label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.summary-identity strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.summary-detail { padding-left: 22px; border-left: 1px solid var(--border-subtle); }
.summary-detail strong { font-size: 12px; white-space: nowrap; }
.version { color: var(--muted); font-weight: 400; margin-left: 4px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 12px; font-weight: 500; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link .icon { width: 15px; height: 15px; flex-basis: 15px; }
.summary-link { flex-shrink: 0; }
.page-section { margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 14px; }
.section-heading h2 { font-size: 16px; line-height: 24px; }
.section-heading p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.section-meta { color: var(--muted); font-size: 11px; white-space: nowrap; }
.download-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.card { min-width: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 1px 2px rgba(42,34,34,.04); }
.card-body { padding: 20px; }
.download-card { display: flex; flex-direction: column; }
.download-card .card-body { display: flex; flex-direction: column; flex: 1; }
.platform-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.platform-heading h3 { font-size: 16px; line-height: 24px; }
.platform-heading p { color: var(--muted); font-size: 11px; margin-top: 2px; }
.platform-symbol { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; background: var(--selected); color: var(--primary); border-radius: 8px; }
.mac-symbol { background: #f2f4f7; color: var(--secondary); }
.mac-symbol .icon { width: 27px; height: 27px; }
.badge { display: inline-flex; align-items: center; border: 1px solid var(--border-subtle); border-radius: 4px; background: var(--layer); padding: 3px 7px; font-size: 10px; font-weight: 500; line-height: 16px; color: var(--secondary); }
.platform-heading .badge { margin-left: auto; white-space: nowrap; }
.info-badge { color: #24639b; background: #edf6fc; border-color: #dceaf7; }
.card-description { color: var(--secondary); font-size: 12px; line-height: 1.8; max-width: 600px; }
.feature-list { display: grid; gap: 7px; margin: 16px 0 20px; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--secondary); }
.feature-list .icon { width: 14px; height: 14px; flex-basis: 14px; color: var(--success); }
.download-button { align-self: flex-start; margin-top: auto; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.card-foot { display: flex; align-items: flex-start; gap: 8px; min-height: 49px; padding: 13px 20px; color: var(--muted); background: var(--layer); border-top: 1px solid var(--border-subtle); border-radius: 0 0 8px 8px; font-size: 10px; line-height: 1.8; }
.card-foot .icon { width: 14px; height: 14px; flex-basis: 14px; margin-top: 2px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); align-items: start; gap: 20px; margin-top: 24px; }
.card-header { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 14px 20px; border-bottom: 1px solid var(--border-subtle); }
.card-header > .icon { color: var(--primary); width: 16px; height: 16px; flex-basis: 16px; }
.card-header h2 { font-size: 14px; line-height: 22px; }
.card-header .badge { margin-left: auto; }
.section-description { color: var(--secondary); font-size: 12px; line-height: 1.9; }
.copy-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding: 16px; background: var(--layer); border: 1px solid var(--border); border-radius: 6px; }
.copy-panel-icon { color: var(--primary); }
.copy-panel > div { flex: 1; min-width: 160px; }
.copy-panel strong { display: block; font-size: 12px; }
.copy-panel span:not(.copy-panel-icon) { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.copy-panel > .button { flex-shrink: 0; }
.status { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 12px; min-height: 20px; }
.status.error { color: var(--error); }
.retry-button { margin-top: 10px; }
.manual { border-top: 1px solid var(--border-subtle); margin-top: 16px; padding-top: 4px; }
.manual summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; font-size: 12px; font-weight: 500; color: var(--secondary); list-style: none; }
.manual summary::-webkit-details-marker { display: none; }
.manual summary .icon { width: 14px; height: 14px; flex-basis: 14px; transition: transform 120ms; }
.manual[open] summary .icon { transform: rotate(90deg); }
.fields { display: grid; gap: 16px; padding-top: 12px; }
.field label { display: block; font-size: 11px; font-weight: 500; margin-bottom: 6px; }
.field label span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.field-row { display: flex; gap: 8px; }
.field input, .field textarea { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 6px; color: var(--text); background: var(--layer); padding: 10px 12px; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.field textarea { display: block; resize: vertical; min-height: 96px; overflow-wrap: anywhere; }
.field-row > .button { width: 40px; padding: 8px; flex: 0 0 40px; }
.field-note { font-size: 11px; color: var(--muted); line-height: 1.8; margin: 12px 0 4px; }
.setup-steps { display: grid; gap: 19px; list-style: none; margin: 0; padding: 0; }
.setup-steps li { display: flex; align-items: flex-start; gap: 12px; }
.step-number { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--primary); background: var(--selected); border: 1px solid #dceaf7; border-radius: 50%; }
.setup-steps h3 { font-size: 12px; line-height: 22px; }
.setup-steps p { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 4px; }
.guide-link { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--border-subtle); width: 100%; }
.access-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 14px 16px; background: #edf6fc; color: #24639b; border: 1px solid #dceaf7; border-radius: 6px; }
.access-note p { font-size: 11px; line-height: 1.9; }
.access-note .icon { width: 16px; height: 16px; flex-basis: 16px; margin-top: 2px; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 18px 0 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.icon-button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 6px; color: var(--secondary); background: var(--surface); }
.icon-button:hover { background: var(--selected); color: var(--primary); }
.menu-toggle { display: none; }
.mobile-menu { position: fixed; inset: 0 auto 0 0; width: min(340px,calc(100vw - 32px)); height: 100dvh; max-height: 100dvh; max-width: none; padding: 0; margin: 0; border: 0; border-right: 1px solid var(--border); color: var(--text); background: var(--surface); overflow-y: auto; }
.mobile-menu::backdrop { background: rgba(20,28,40,.44); }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; min-height: 64px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 24px; }
.mobile-menu-header img { object-fit: contain; }
.mobile-menu .workspace-label { margin-left: 12px; }
#mobile-nav-content { padding: 0 12px; }
.mobile-menu-footer { margin: 24px; padding-top: 18px; border-top: 1px solid var(--border-subtle); font-size: 11px; color: var(--muted); }
body.menu-open { overflow: hidden; }
@media(min-width:768px) { :root { --gutter: 24px; } }
@media(min-width:1440px) { :root { --gutter: 32px; } }
@media(min-width:1800px) { .copy-panel > div { min-width: 210px; } }
@media(max-width:1250px) {
  .connection-summary { gap: 18px; }
  .summary-detail { padding-left: 16px; }
  .summary-detail:nth-child(3) { display: none; }
  .workspace-grid { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
  .platform-heading .badge { display: none; }
  .page-header { align-items: flex-start; }
}
@media(max-width:1023px) {
  .portal-shell { grid-template-columns: minmax(0,1fr); }
  .sidebar { display: none; }
  .menu-toggle { display: inline-flex; }
  .summary-detail:nth-child(3) { display: block; }
  .page-heading > p:last-child { max-width: 480px; }
}
@media(max-width:767px) {
  .content { padding-top: 20px; }
  .page-header { flex-direction: column; gap: 18px; padding-bottom: 20px; }
  .page-header > .button { align-self: flex-start; }
  .connection-summary { flex-wrap: wrap; gap: 16px; padding: 16px; }
  .summary-identity { flex-basis: 100%; }
  .summary-detail { border-left: 0; padding-left: 0; }
  .summary-detail:nth-child(3) { display: none; }
  .summary-link { margin-left: auto; }
  .download-grid, .workspace-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .platform-heading .badge { display: inline-flex; }
  .page-footer { flex-direction: column; gap: 6px; }
  .button, .icon-button, .topbar-help { min-height: 44px; }
  .icon-button { width: 44px; }
  .nav-link { min-height: 44px; }
  .field-row > .button { flex-basis: 44px; width: 44px; }
  .card-body { padding: 18px; }
  .card-header { padding: 14px 18px; }
  .card-foot { padding: 12px 18px; }
}
@media(max-width:639px) {
  .crumb-parent, .home-icon, .topbar-help span { display: none; }
  .topbar-help { justify-content: center; width: 44px; border: 1px solid var(--border); border-radius: 6px; }
  .breadcrumb { font-size: 12px; }
  .topbar-help { position: relative; }
  .topbar-help::after { content: 'Kurulum rehberi'; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .platform-heading .badge { display: none; }
  .copy-panel { padding: 14px; }
  .copy-panel > .button { width: 100%; }
  .copy-panel > div { min-width: 130px; }
  .card-header .badge { display: none; }
  .section-meta { display: none; }
  .download-actions .button { flex: 1; padding-inline: 10px; }
  .summary-identity strong { font-size: 12px; }
  .summary-link { font-size: 11px; }
  h1 { font-size: 23px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Management workspace */
select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.boot-screen { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 24px; color: var(--muted); }
.boot-screen img { object-fit: contain; }
.login-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(340px,.95fr) minmax(440px,1.05fr); }
.login-intro { display: flex; flex-direction: column; padding: 44px clamp(28px,6vw,90px); background: #eef4fa; border-right: 1px solid #e0e8f0; }
.login-brand { align-self: flex-start; }
.login-brand img { max-width: 100%; height: auto; }
.login-intro-copy { margin: auto 0; padding-block: 60px; max-width: 440px; }
.login-intro-copy h1 { font-size: clamp(29px,3vw,43px); line-height: 1.4; letter-spacing: -.8px; margin-top: 16px; }
.login-intro-copy > p { color: var(--secondary); line-height: 1.9; font-size: 13px; margin: 20px 0 32px; }
.login-feature { display: flex; align-items: center; gap: 12px; color: var(--secondary); font-size: 12px; margin-top: 16px; }
.login-feature .icon { color: var(--primary); }
.login-copyright { color: var(--muted); font-size: 11px; }
.login-form-area { display: grid; place-items: center; padding: 40px; background: var(--surface); }
.login-card { width: 100%; max-width: 380px; }
.login-card h2 { font-size: 26px; margin-top: 8px; }
.login-description { color: var(--secondary); font-size: 12px; margin: 12px 0 28px; }
#login-form { display: grid; gap: 20px; }
#login-submit { width: 100%; margin-top: 4px; }
.login-note { color: var(--muted); font-size: 11px; line-height: 1.9; margin-top: 24px; }
.account-menu { display: flex; align-items: center; gap: 14px; min-width: 0; }
.account-identity { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px 0; text-align: left; color: var(--text); min-width: 0; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; background: #edf4fa; border: 1px solid #dce8f3; color: var(--primary); border-radius: 50%; font-size: 12px; font-weight: 600; }
.account-meta { display: grid; max-width: 190px; min-width: 0; }
.account-meta strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-meta > span { font-size: 10px; color: var(--muted); }
.compact { min-height: 34px; padding: 6px 10px; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.notice { border: 1px solid #d9e7f3; background: #edf5fc; color: #24577f; padding: 13px 16px; border-radius: 6px; margin-bottom: 20px; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.notice.error { background: #fff2f2; border-color: #f1d2d2; color: #a52323; }
.notice.success { background: #eef9f5; border-color: #cbe8dc; color: #126646; }
.notice.warning { background: #fff9e9; border-color: #efdfb7; color: #775912; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { padding: 18px 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.stat-card > span { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 11px; }
.stat-card > strong { display: block; margin-top: 10px; font-size: 28px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: 0 0 7px; background: #929ba8; }
.status-dot.online { background: #0d8a61; }
.status-dot.offline { background: #a0a6b0; }
.status-dot.unknown { background: #c39435; }
.table-toolbar { display: flex; align-items: flex-end; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--border-subtle); }
.search-field { flex: 1; min-width: 170px; }
.filter-field { width: 175px; }
.search-field label, .filter-field label { display: block; font-size: 11px; font-weight: 500; margin-bottom: 6px; }
.search-field input, .filter-field select, .form-field input, .form-field select, .form-field textarea { display: block; width: 100%; min-width: 0; border: 1px solid #cbd2dc; border-radius: 6px; padding: 10px 11px; color: var(--text); background: var(--surface); font-size: 12px; min-height: 42px; }
.form-field input[readonly] { background: var(--layer); }
.form-field label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 7px; }
.form-field textarea { resize: vertical; min-height: 98px; }
.form-stack { display: grid; gap: 18px; }
.form-stack > .button { justify-self: start; }
.form-stack p { margin-top: 0; }
.field-help { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 7px; overflow-wrap: anywhere; }
.form-error { margin: 0; border-left: 3px solid var(--error); background: #fff4f4; padding: 10px 12px; color: #a52323; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.monitor-status { padding: 10px 20px; color: var(--muted); font-size: 10px; border-bottom: 1px solid var(--border-subtle); background: #fbfcfd; }
.monitor-status.error { background: #fff9ed; color: #795d1d; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.data-table th { background: #f8fafc; color: var(--muted); padding: 12px 16px; font-weight: 500; font-size: 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 15px 16px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; overflow-wrap: anywhere; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfe; }
.device-name, .user-name { display: block; font-size: 12px; font-weight: 500; max-width: 300px; overflow-wrap: anywhere; }
.cell-sub { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; max-width: 320px; overflow-wrap: anywhere; }
.cell-notes { max-width: 260px; white-space: pre-wrap; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: 10px; white-space: nowrap; border-radius: 4px; background: #f1f3f6; color: #535c68; }
.status-badge.online { background: #edf8f3; color: #137052; }
.status-badge.unknown { background: #fff8e9; color: #806220; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.row-actions .button { min-height: 34px; padding: 6px 9px; font-size: 10px; }
.table-caption { padding: 12px 20px; border-top: 1px solid var(--border-subtle); color: var(--muted); font-size: 10px; }
.context-note { margin: 14px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.empty-state { text-align: center; padding: 44px 22px; }
.empty-state .icon { width: 32px; height: 32px; margin-bottom: 12px; color: #8998aa; }
.empty-state h3 { font-size: 14px; margin-bottom: 7px; }
.empty-state p { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 480px; margin: 0 auto; }
.empty-state .button { margin-top: 16px; }
.empty-state.is-error h3 { color: #a52323; }
.loading-state { padding: 38px 20px; color: var(--muted); text-align: center; font-size: 12px; }
.security-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; align-items: start; }
#mfa-setup-form { margin-top: 20px; }
.security-good { color: var(--success); font-size: 12px; margin: 18px 0 8px; font-weight: 500; }
.security-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.danger-outline { color: #b52a2a; }
.button.danger { background: #bf3030; color: white; border-color: #bf3030; }
.button.danger:hover:not(:disabled) { background: #a82525; border-color: #a82525; }
.mfa-qr { display: block; width: 208px; max-width: 100%; height: auto; margin: 18px auto; background: #fff; border: 1px solid var(--border-subtle); }
#mfa-secret { font-family: ui-monospace,monospace; font-size: 12px; }
#mfa-enable-form { margin-top: 18px; }
.editor-dialog { border: 1px solid var(--border); border-radius: 10px; padding: 0; width: min(560px,calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 40px); color: var(--text); background: var(--surface); box-shadow: 0 20px 80px #182a4940; overflow: auto; }
.editor-dialog::backdrop { background: rgba(20,28,40,.45); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 22px; border-bottom: 1px solid var(--border-subtle); }
.dialog-header h2 { font-size: 16px; }
.dialog-body { padding: 22px; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border-subtle); background: #fafbfd; border-radius: 0 0 10px 10px; flex-wrap: wrap; }
.dialog-error { margin: 0 22px 18px; }
.dialog-description { color: var(--secondary); line-height: 1.9; font-size: 12px; overflow-wrap: anywhere; }
.checkbox-field { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; font-size: 12px; line-height: 1.8; }
.checkbox-field input { margin-top: 4px; width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--primary); }
.membership-list { display: grid; gap: 10px; max-height: 220px; overflow-y: auto; padding: 14px; border: 1px solid var(--border); border-radius: 6px; }
.membership-heading { font-size: 12px; font-weight: 500; margin-bottom: 7px; }
.membership-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
#recovery-codes { width: 100%; min-height: 220px; margin-top: 20px; padding: 14px; border: 1px solid var(--border); border-radius: 6px; resize: vertical; font: 13px/1.9 ui-monospace,monospace; }
.pagination { display: flex; justify-content: center; margin-top: 18px; }
.audit-detail { font-size: 10px; color: var(--muted); max-width: 360px; }
.connect-id { font: 18px/1.5 ui-monospace,monospace; }
.noscript-note { margin: 20px; padding: 20px; background: #fff4db; }
@media(min-width:1500px) { .data-table td, .data-table th { padding-inline: 20px; } }
@media(max-width:1150px) { .account-meta { max-width: 125px; } .security-grid { grid-template-columns: 1fr; } .device-notes-column { display: none; } .stat-card { padding: 15px; } }
@media(max-width:767px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-intro { padding: 24px; border-right: 0; border-bottom: 1px solid var(--border); }
  .login-brand img { width: 184px; }
  .login-intro-copy, .login-copyright { display: none; }
  .login-form-area { padding: 36px 24px; align-items: start; }
  .account-meta { display: none; }
  .account-menu { gap: 8px; }
  .account-identity { min-height: 44px; }
  .topbar { gap: 10px; }
  .breadcrumb { max-width: 140px; white-space: normal; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card > strong { font-size: 24px; }
  .table-toolbar { padding: 16px; flex-wrap: wrap; gap: 12px; }
  .search-field { flex-basis: 100%; min-width: 0; }
  .filter-field { flex: 1; min-width: 0; width: auto; }
  .monitor-status, .table-caption { padding-inline: 16px; }
  .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; }
  .responsive-table thead { display: none; }
  .responsive-table tr { padding: 16px; border-bottom: 1px solid var(--border); }
  .responsive-table tr:last-child { border-bottom: 0; }
  .responsive-table td { padding: 5px 0; border: 0; }
  .responsive-table td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 94px; color: var(--muted); font-size: 10px; margin-right: 6px; }
  .responsive-table td.cell-identity { padding-top: 0; margin-bottom: 6px; }
  .responsive-table .device-notes-column { display: none; }
  .responsive-table .row-actions { margin-top: 10px; }
  .row-actions .button { min-height: 42px; padding: 9px 12px; font-size: 11px; }
  .device-name, .user-name { max-width: none; font-size: 13px; }
  .cell-sub { max-width: none; }
  .audit-detail { max-width: none; }
  .dialog-header, .dialog-body, .dialog-footer { padding: 16px; }
  .dialog-error { margin: 0 16px 16px; }
  .editor-dialog { max-height: calc(100dvh - 24px); }
  .security-grid { gap: 16px; }
  .form-field input, .form-field select, .form-field textarea, .search-field input, .filter-field select { min-height: 44px; font-size: 16px; }
  .stat-card > span { font-size: 10px; }
}
@media(max-width:360px) { .topbar { padding-inline: 12px; } .topbar-location { gap: 7px; } .breadcrumb { max-width: 100px; font-size: 11px; } .account-menu { gap: 6px; } .avatar { width: 29px; height: 29px; flex-basis: 29px; } #logout-button { padding-inline: 8px; font-size: 11px; } }

#mfa-restart { margin-top: 14px; }
