#login-view { display: contents; }
.dashboard-active { display: block; padding: 0; }
.dashboard-active::before { display: none; }
.dashboard-active #login-view { display: none; }
#dashboard-view { min-height: 100svh; }
.dashboard-shell { margin-left: 256px; min-height: 100svh; }
.sidebar { position: absolute; inset: 0 auto 0 0; width: 256px; padding: 16px; border-right: 1px solid var(--border); background: var(--card); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.sidebar-top { display: flex; flex-direction: column; gap: 24px; }
.console-brand { display: flex; align-items: center; gap: 8px; padding-inline: 4px; }
.console-logo { display: grid; place-items: center; width: 32px; height: 32px; flex: none; background: var(--accent); border-radius: 4px; }
.console-brand strong { display: block; font: 600 16px/24px 'Hanken Grotesk', sans-serif; letter-spacing: -.4px; }
.console-brand small { display: block; color: var(--muted); font: 500 10px/14px var(--mono); letter-spacing: .5px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a, .sidebar-nav button { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 8px 16px; border: 0; border-radius: 4px; background: none; color: var(--muted); font: 500 12px/16px 'Inter', sans-serif; text-decoration: none; text-align: left; }
.sidebar-nav a[aria-current] { padding-left: 18px; border-left: 2px solid var(--accent-light); background: #222a3d; color: var(--accent-light); }
.sidebar-nav button:hover:not(:disabled) { background: #222a3d; }
.sidebar-nav button:disabled, .invite-button:disabled { cursor: not-allowed; opacity: .65; }
.sidebar-bottom { border-top: 1px solid var(--border); padding-top: 16px; }
.sidebar-status { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px 0; color: var(--quiet); font: 500 10px/14px var(--mono); letter-spacing: .5px; }
.sidebar-status .status-dot { width: 8px; height: 8px; }
.dashboard-header { display: flex; justify-content: flex-end; align-items: center; gap: 16px; min-height: 56px; padding: 8px 24px; background: #171f33; border-bottom: 1px solid var(--border); }
.header-divider { width: 1px; height: 16px; background: var(--border); }
.admin-profile { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; min-width: 0; }
#admin-name { overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.admin-avatar { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgb(70 69 85 / 40%); border-radius: 2px; background: #2d3449; color: var(--accent-light); font: 500 16px/24px var(--mono); }
.logout-button { display: flex; align-items: center; gap: 4px; padding: 4px; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 500; }
.workspace { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px; max-width: 1600px; padding: 24px; margin-inline: auto; }
.directory-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 8px; }
.title-line { display: flex; align-items: center; gap: 8px; }
.directory-heading h1 { font: 600 28px/36px 'Hanken Grotesk', sans-serif; letter-spacing: -.7px; }
.directory-heading h1:focus { outline: none; }
.directory-heading p { margin: 4px 0 0; font: 400 14px/20px 'Inter', sans-serif; color: var(--muted); }
.environment-badge { background: rgb(195 192 255 / 10%); border: 1px solid rgb(195 192 255 / 20%); border-radius: 2px; padding: 2px 8px; color: var(--accent-light); font: 500 10px/14px var(--mono); letter-spacing: .5px; white-space: nowrap; }
.dash-button { display: inline-flex; justify-content: center; align-items: center; flex: none; gap: 6px; min-height: 36px; padding: 8px 16px; background: #222a3d; border: 1px solid rgb(70 69 85 / 50%); border-radius: 2px; color: var(--text); font: 500 12px/16px 'Inter', sans-serif; white-space: nowrap; }
.dash-button:hover:not(:disabled) { background: #2d3449; border-color: var(--quiet); }
.dash-button:disabled { cursor: default; opacity: .5; }
.invite-button { min-height: 34px; border-radius: 4px; padding-block: 8px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 24px; min-height: 28px; padding: 4px; background: none; border: 0; border-radius: 2px; }
.icon-button:hover { background: rgb(195 192 255 / 10%); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric { padding: 20px; min-height: 142px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: var(--muted); font: 500 12px/16px 'Inter', sans-serif; }
.metric > strong { display: block; font: 700 28px/36px 'Hanken Grotesk', sans-serif; letter-spacing: -.56px; overflow-wrap: anywhere; }
.metric > p { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0; color: var(--muted); font-size: 12px; line-height: 16px; }
.mono { font-family: var(--mono); }
#metric-growth { color: #4cd7f6; font-family: var(--mono); margin-right: 4px; }
#metric-second { color: var(--text); }
.directory-toolbar { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; }
.directory-search { position: relative; flex: 1; min-width: 160px; }
.directory-search > img { position: absolute; left: 12px; top: 13px; pointer-events: none; }
.directory-search input { width: 100%; height: 40px; padding: 0 12px 0 36px; border: 1px solid rgb(70 69 85 / 40%); border-radius: 2px; background: var(--page); color: var(--text); font-size: 14px; }
.directory-search input::placeholder { color: var(--quiet); }
.select-wrap { position: relative; flex: none; display: inline-flex; align-items: center; }
.select-wrap select { appearance: none; height: 40px; width: 125px; padding: 8px 28px 8px 12px; background: var(--page); border: 1px solid rgb(70 69 85 / 40%); border-radius: 2px; color: var(--text); font: 500 12px/16px 'Inter', sans-serif; text-overflow: ellipsis; cursor: pointer; }
.timezone-filter select { width: 213px; }
#filter-locale { width: 106px; }
.select-wrap > img { position: absolute; right: 8px; pointer-events: none; }
.select-wrap > img:last-child { top: 11px; }
.directory-toolbar .dash-button { height: 40px; padding-inline: 12px; background: var(--page); }
.starred-filter[aria-pressed='true'] { border-color: #ffb2b7; background: rgb(255 178 183 / 8%); }
#starred-count { border-radius: 12px; padding: 0 6px; background: #222a3d; border: 1px solid var(--border); color: #ffb2b7; font: 500 10px/16px var(--mono); }
.directory-table-card { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--card); box-shadow: 0 1px 2px rgb(0 0 0 / 5%); }
.table-scroll { overflow-x: auto; }
.directory-table { width: 100%; min-width: 1354px; table-layout: fixed; border-collapse: collapse; text-align: left; }
.select-column { width: 48px; } .id-column { width: 114px; } .language-column { width: 162px; } .timezone-column { width: 225px; } .locale-column { width: 87px; } .device-column { width: 160px; } .ip-column { width: 220px; } .config-column { width: auto; } .star-column { width: 94px; }
.directory-table th { height: 36px; padding: 8px 16px; background: var(--inset); color: var(--muted); font: 500 10px/14px var(--mono); letter-spacing: .5px; white-space: nowrap; border-bottom: 1px solid var(--border); }
.directory-table td { height: 66px; padding: 6px 16px; border-bottom: 1px solid rgb(70 69 85 / 20%); color: var(--text); font-size: 14px; line-height: 20px; }
.directory-table tr:last-child td { border-bottom: 0; }
.directory-table tbody tr:hover { background: rgb(195 192 255 / 3%); }
.directory-table input[type='checkbox'] { appearance: none; width: 16px; height: 16px; margin: 0; display: block; background: var(--page); border: 1px solid rgb(70 69 85 / 50%); border-radius: 2px; cursor: pointer; }
.directory-table input:checked { background: var(--accent); border-color: var(--accent-light); }
.directory-table input:checked::after { content: ''; display: block; width: 8px; height: 4px; border-left: 2px solid white; border-bottom: 2px solid white; transform: translate(2px, 3px) rotate(-45deg); }
.directory-table input:indeterminate { background: var(--accent-light); box-shadow: inset 0 5px var(--page), inset 0 -5px var(--page); }
.id-cell, .language-cell { display: flex; align-items: center; gap: 8px; }
.uuid-badge { border: 1px solid var(--border); border-radius: 2px; background: #2d3449; color: var(--text); padding: 2px 8px; font: 400 12px/16px var(--mono); }
.id-cell .icon-button { min-width: 19px; padding: 4px; }
.language-badge { flex: none; border: 1px solid var(--border); border-radius: 2px; padding: 0 3px; background: #2d3449; color: var(--accent-light); font: 400 10px/15px var(--mono); }
.directory-table tr:nth-child(3n + 2) .language-badge { color: #4cd7f6; }
.directory-table tr:nth-child(3n) .language-badge { color: #ffb2b7; }
.language-cell > span:last-child { overflow-wrap: anywhere; }
.directory-table td:nth-child(3), .directory-table td:nth-child(4) { padding-left: 32px; }
.directory-table .timezone-cell { color: var(--muted); font: 400 12px/16px var(--mono); overflow-wrap: anywhere; }
.directory-table .device-cell { overflow-wrap: anywhere; }
.directory-table .ip-cell { color: var(--muted); font: 400 12px/16px var(--mono); overflow-wrap: anywhere; }
.timezone-offset { color: var(--quiet); white-space: nowrap; }
.locale-badge { display: inline-block; padding: 1px 8px; border: 1px solid var(--border); border-radius: 2px; background: #222a3d; color: var(--muted); font: 500 10px/14px var(--mono); overflow-wrap: anywhere; }
.directory-table .config-cell { padding: 5px 8px 5px 24px; background: rgb(45 52 73 / 60%); border: 1px solid var(--border); }
.config-cell > div { display: flex; align-items: center; gap: 6px; min-height: 54px; }
.config-value { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--text); font: 400 10px/14px var(--mono); }
.config-cell .icon-button { padding: 0; min-width: 10px; min-height: 28px; }
.directory-table .star-cell { text-align: center; }
.star-heading { display: flex; align-items: center; justify-content: center; gap: 4px; }
.directory-table .table-empty { height: 528px; text-align: center; color: var(--quiet); padding: 32px; }
.table-pagination { min-height: 57px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; line-height: 16px; }
#page-controls { display: flex; gap: 4px; align-items: center; }
#page-controls .dash-button { min-height: 32px; padding: 7px 10px; background: var(--page); }
#page-controls .page-number { min-width: 32px; padding-inline: 8px; }
#page-controls .accent-button, .accent-button { background: var(--accent); color: white; border-color: transparent; }
.accent-button:hover:not(:disabled) { background: #6056ec; }
.page-gap { padding-inline: 4px; color: var(--quiet); font-family: var(--mono); }
.rows-label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.rows-label select { height: 32px; width: 59px; padding: 6px 22px 6px 8px; }
.rows-label .select-wrap > img:last-child { top: 8px; right: 4px; }
.rows-label .select-wrap > img:first-of-type { right: 9px; }
#dashboard-view dialog { width: min(560px, calc(100% - 32px)); }
#dashboard-view dialog p { white-space: pre-line; overflow-wrap: anywhere; }
#dashboard-view dialog label { display: block; margin-bottom: 8px; font-size: 12px; }
#config-url { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--inset); color: var(--text); font-size: 14px; }
#config-feedback { margin-top: 16px; }
.dialog-actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
#dashboard-view .feedback { border-color: rgb(195 192 255 / 25%); background: rgb(195 192 255 / 5%); color: var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; background: var(--accent); color: white; padding: 12px; }
.skip-link:focus { top: 8px; }
#dashboard-view :is(a, select, .table-scroll):focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
@media (max-width: 1240px) {
  .directory-toolbar { flex-wrap: wrap; }
  .directory-search { min-width: 240px; }
  .timezone-filter select { width: 160px; }
  .table-pagination { flex-wrap: wrap; }
  .metric { padding: 16px; }
  .metric > strong { font-size: 25px; }
}
@media (max-width: 1000px) {
  .sidebar { width: 216px; padding: 16px 12px; }
  .dashboard-shell { margin-left: 216px; }
  .console-brand small { font-size: 8px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-heading { align-items: flex-start; }
  .directory-heading > .dash-button { margin-top: 6px; }
}
@media (max-width: 720px) {
  .sidebar { position: static; width: auto; padding: 16px; border-right: 0; border-bottom: 1px solid var(--border); gap: 0; }
  .sidebar-top { gap: 16px; }
  .console-brand { padding: 0; }
  .console-brand small { font-size: 10px; }
  .sidebar-top .invite-button, .sidebar-bottom { display: none; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar-nav a, .sidebar-nav button { padding-inline: 12px; }
  .dashboard-shell { margin-left: 0; }
  .dashboard-header { padding-inline: 16px; gap: 12px; }
  .workspace { padding: 20px 16px; gap: 20px; }
  .directory-heading { flex-wrap: wrap; gap: 12px; }
  .directory-heading > .dash-button { margin: 0; }
  .metrics { gap: 12px; }
  .metric { padding: 16px; }
  .metric > strong { font-size: 24px; line-height: 32px; }
  .metric-label { font-size: 11px; }
  .metric p { font-size: 10px; }
  .directory-search { flex-basis: 100%; min-width: 0; }
  .directory-toolbar { padding: 12px; gap: 8px; }
  .timezone-filter select { width: 145px; }
  .table-pagination { justify-content: center; gap: 12px; }
  #user-count { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { #dashboard-view * { scroll-behavior: auto; } }
