:root {
  --bg: #f5f7fb;
  --white: #fff;
  --ink: #162641;
  --muted: #74819a;
  --line: #e5eaf1;
  --blue: #2458ae;
  --blue-light: #eaf1ff;
  --green: #16744a;
  --amber: #925c1c;
  --red: #b63b44;
  --shadow: 0 4px 24px rgba(20, 38, 68, 0.035);
}
* {
  box-sizing: border-box;
}
body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
.layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 252px;
  flex-shrink: 0;
  background: #14243e;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 25px 15px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 13px 33px;
  font-size: 16px;
  letter-spacing: -0.4px;
}
.brand small {
  display: block;
  color: #98a8c4;
  font-size: 11px;
  letter-spacing: 0;
  margin-top: 3px;
}
.brand-mark {
  display: grid;
  place-items: center;
  border-radius: 11px;
  width: 37px;
  height: 37px;
  font-size: 22px;
  font-weight: 800;
  background: #4383ee;
  color: white;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav {
  cursor: pointer;
  text-align: left;
  color: #aebdd2;
  background: transparent;
  border: 0;
  padding: 13px 15px;
  border-radius: 9px;
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.1px;
}
.nav:hover {
  color: white;
  background: #203552;
}
.nav.active {
  background: #2c4770;
  color: #fff;
}
.nav span {
  flex: 1;
}
.sidebar-foot {
  margin-top: auto;
  padding: 17px 12px 5px;
  color: #b7c8df;
  line-height: 1.8;
  font-size: 12px;
}
.sidebar-foot small {
  color: #7f9aba;
}
.status-dot {
  display: inline-block;
  background: #58c798;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}
.main {
  flex: 1;
  min-width: 0;
  max-width: 1720px;
  margin: 0 auto;
  padding: 31px clamp(20px, 3.8vw, 55px) 30px;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  font-weight: 800;
  color: #4974b8;
  margin-bottom: 9px;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.75px;
  margin: 0;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.25px;
  margin: 0 0 15px;
}
.top p {
  color: var(--muted);
  margin: 8px 0 0;
}
.mini-pill {
  border: 1px solid #dbe5f2;
  background: #fff;
  padding: 8px 13px;
  border-radius: 24px;
  color: #586b87;
  font-size: 12px;
}
.screen {
  display: none;
}
.screen.on {
  display: block;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.metric,
.panel {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 13px;
  box-shadow: var(--shadow);
}
.metric {
  padding: 22px;
}
.metric .number {
  font-size: 30px;
  font-weight: 740;
  letter-spacing: -0.9px;
}
.metric .label {
  color: var(--muted);
  margin-top: 7px;
  font-size: 12px;
}
.metric .ico {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #eef4fd;
  border-radius: 9px;
  color: #3666aa;
  margin-bottom: 13px;
}
.two-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
.panel {
  padding: 23px;
  margin-bottom: 18px;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.panel-head h2 {
  margin: 0;
}
.panel p {
  line-height: 1.7;
  color: #5f6c80;
}
.intro {
  margin-top: 1px;
}
.intro h2 {
  margin-bottom: 3px;
}
.linkbtn {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 650;
  cursor: pointer;
  font-size: 12px;
}
.hint {
  color: var(--muted);
  font-size: 12px;
}
.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: end;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
  flex: 1;
  font-size: 12px;
  color: #53627a;
  font-weight: 650;
}
.form-grid input,
.form-grid select {
  width: 100%;
  min-height: 39px;
  border: 1px solid #dbe3ed;
  padding: 9px 11px;
  background: #fff;
  border-radius: 8px;
  color: #243652;
  outline-color: #7ea9ef;
}
.form-grid input[type="file"] {
  font-size: 11px;
  padding: 8px;
  min-width: 150px;
}
.primary,
.secondary,
.danger {
  border: 1px solid transparent;
  padding: 11px 15px;
  min-height: 39px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.primary {
  background: #2458ae;
  color: #fff;
}
.primary:hover {
  background: #1a488e;
}
.secondary {
  background: #fff;
  border-color: #d9e2ee;
  color: #405472;
}
.danger {
  background: #fff2f2;
  color: #9d303d;
  border-color: #f4d8dc;
}
.inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: top;
  font-size: 12px;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  color: #7988a0;
  letter-spacing: 0.85px;
  font-weight: 750;
  background: #f9fafc;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f9fbff;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
}
.table-scroll table {
  min-width: 690px;
}
.muted {
  color: var(--muted);
}
.mono,
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}
.pill {
  display: inline-block;
  border-radius: 100px;
  padding: 5px 9px;
  background: #edf4ff;
  color: #3764a6;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.pill.working {
  background: #fef4e6;
  color: #906019;
}
.pill.warning {
  background: #fff1ec;
  color: #a35927;
}
.pill.ok {
  background: #e6f7ed;
  color: #207649;
}
.pill.muted {
  background: #edf0f5;
  color: #6c7789;
}
.click {
  cursor: pointer;
  color: var(--blue);
  font-weight: 600;
}
.click:hover {
  text-decoration: underline;
}
.summary-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 15px 0;
}
.summary-tile {
  background: #f7f9fc;
  border: 1px solid #edf0f5;
  padding: 15px;
  border-radius: 9px;
}
.summary-tile strong {
  font-size: 23px;
  display: block;
}
.summary-tile span {
  color: var(--muted);
  font-size: 11px;
}
.hidden {
  display: none !important;
}
#notification {
  display: none;
  background: #eaf5ff;
  border: 1px solid #bed7f2;
  padding: 12px 17px;
  border-radius: 9px;
  color: #22518b;
  margin-bottom: 17px;
  white-space: pre-wrap;
}
#notification.error {
  background: #fff0f0;
  border-color: #f2c3c3;
  color: #a12f3b;
}
#notification.show {
  display: block;
}
.notice {
  background: #fff8e8;
  border: 1px solid #f3e3b5;
  border-radius: 9px;
  padding: 13px;
  margin-top: 12px;
  color: #765722;
  line-height: 1.5;
}
.result {
  margin-top: 15px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.rowbar {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 6px;
}
.bar {
  height: 7px;
  border-radius: 9px;
  background: #e7eef8;
  overflow: hidden;
  flex: 1;
}
.bar b {
  height: 100%;
  display: block;
  background: #4f89d8;
}
.footer {
  padding: 14px 0;
  color: #abb6c6;
  font-size: 11px;
}
.empty {
  color: var(--muted);
  font-size: 13px;
  padding: 19px 0;
}
.searchbox {
  border: 1px solid var(--line);
  padding: 11px;
  border-radius: 8px;
  width: min(500px, 100%);
  margin: 0 0 12px;
}
.nowrap {
  white-space: nowrap;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 15px 0;
}
.detail-cell {
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 9px;
}
.detail-cell b {
  display: block;
  margin: 5px 0;
}
.dim {
  color: #6e8198;
  font-size: 11px;
}
.warn-list {
  padding-left: 17px;
  line-height: 1.6;
}
.top-right {
  display: flex;
  gap: 7px;
}
@media (max-width: 1080px) {
  .sidebar {
    width: 210px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .layout {
    display: block;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 12px;
  }
  .brand {
    padding: 7px 6px 15px;
  }
  nav {
    flex-direction: row;
    overflow: auto;
  }
  .nav {
    min-width: 50px;
    white-space: nowrap;
  }
  .nav span {
    display: none;
  }
  .sidebar-foot {
    display: none;
  }
  .main {
    padding: 20px 13px;
  }
  .metrics {
    gap: 9px;
  }
  .metric {
    padding: 15px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .top-right {
    display: none;
  }
}

.loading-indicator {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid #bdd2ee;
  border-radius: 12px;
  background: #fff;
  color: #243247;
  box-shadow: 0 6px 28px #193e6533;
  max-width: calc(100vw - 30px);
}
.loading-indicator[hidden] {
  display: none;
}
.spinner {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 3px solid #dbe6f4;
  border-top-color: #22518b;
  border-radius: 50%;
  animation: loading-spin 0.8s linear infinite;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
    border-top-color: #22518b;
  }
}

.locale-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 14px;
}
.locale-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 20px;
  color: #243247;
  background: #fff;
  white-space: nowrap;
}
.locale-tabs button[aria-selected="true"] {
  background: #174a78;
  color: #fff;
  border-color: #174a78;
}
.locale-tabs button:focus-visible {
  outline: 3px solid #72b5f5;
  outline-offset: 2px;
}
[role="tabpanel"][hidden] {
  display: none;
}

.key-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 16px 0;
}
.key-filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #52657e;
  font-size: 12px;
}
.key-filters input[type="search"] {
  min-width: 200px;
  flex: 1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.key-filters select {
  max-width: 250px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.key-filters label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  padding: 10px 0;
}
.filter-count {
  width: 100%;
  color: #60728b;
  font-size: 12px;
}
.filterable[hidden],
.filter-empty[hidden] {
  display: none;
}
.version-comparison {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.project-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 16px;
  max-height: 75vh;
  overflow: auto;
}
.project-tabs button {
  text-align: left;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #243247;
  overflow-wrap: anywhere;
}
.project-tabs button[aria-selected="true"] {
  background: #174a78;
  color: white;
  border-color: #174a78;
}
.project-tabs button:focus-visible {
  outline: 3px solid #72b5f5;
  outline-offset: 2px;
}
.version-comparison > [hidden] {
  display: none;
}
.impact-charts {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 20px;
}
.impact-charts svg {
  width: 100%;
  height: auto;
  display: block;
}
.impact-charts > .panel:nth-child(2) svg {
  max-height: 240px;
}
@media (max-width: 800px) {
  .version-comparison {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 10px;
  }
  .impact-charts {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 500px) {
  .version-comparison {
    grid-template-columns: 105px minmax(0, 1fr);
  }
  .project-tabs button {
    padding: 10px 7px;
    font-size: 11px;
  }
  .key-filters input[type="search"] {
    min-width: 100%;
  }
}

.validation-error {
  color: #a12f3b;
}

/* Constrain content to the viewport; dense tables scroll inside their own panel. */
.panel,
.screen,
.summary-tile,
#coverageResult {
  min-width: 0;
}
.rowbar {
  flex-wrap: wrap;
  max-width: 100%;
}
.rowbar .pill {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
#coverageDashboard .summary-tiles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.coverage-table {
  table-layout: fixed;
  width: 100%;
}
.coverage-table th:first-child {
  width: 20%;
}
.coverage-table th:nth-child(3) {
  width: 11%;
}
.coverage-table th:nth-child(4) {
  width: 15%;
}
.coverage-table td {
  overflow-wrap: anywhere;
  vertical-align: top;
}
.coverage-languages {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}
.coverage-language {
  max-width: 100%;
  white-space: normal;
  text-align: left;
  padding: 7px 9px;
  border: 1px solid #e0e8f4;
  border-radius: 8px;
  background: #f5f8fd;
  line-height: 1.5;
}
@media (max-width: 1200px) {
  #coverageDashboard .summary-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  #coverageDashboard .summary-tiles {
    grid-template-columns: 1fr;
  }
  #coverageForm label {
    min-width: 100%;
  }
  .top {
    flex-wrap: wrap;
    gap: 12px;
  }
}

.login-panel form {
  display: grid;
  gap: 16px;
}
body[data-role="developer"] [data-admin],
body[data-role="release_manager"] [data-admin],
body[data-role="release_manager"] [data-write="working"] {
  display: none !important;
}

/* Authentication screens share accessible, full-size form controls. */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background:
    radial-gradient(ellipse at 15% 15%, #e7efff 0, transparent 50%), #f4f7fc;
}
.login-shell {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid #e0e7f2;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 70px #172e5a14;
}
.login-story {
  padding: 44px;
  background: linear-gradient(145deg, #122f62, #2458ae);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 54px;
  position: relative;
  overflow: hidden;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  font-size: 17px;
}
.login-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff55;
  border-radius: 11px;
  background: #ffffff15;
  font-size: 23px;
}
.login-eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.7px;
  margin: 0 0 16px;
}
.login-story .login-eyebrow {
  color: #b5cef5;
}
.login-story h1 {
  color: #fff;
  font-size: clamp(30px, 3.5vw, 40px);
  line-height: 1.22;
  letter-spacing: -1px;
  margin: 0 0 18px;
}
.login-description {
  color: #d3e0f6;
  line-height: 1.75;
  max-width: 320px;
  margin: 0;
}
.login-language-art {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.login-language-art span {
  padding: 10px 15px;
  border: 1px solid #ffffff30;
  border-radius: 10px;
  background: #ffffff0d;
  font-size: 15px;
}
.login-story-foot {
  color: #b5cef5;
  margin: auto 0 0;
  font-size: 11px;
}
.login-panel {
  max-width: none;
  margin: 0;
  padding: 72px 46px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-welcome .login-eyebrow {
  color: #2458ae;
}
.login-welcome h2 {
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  margin: 0 0 10px;
}
.login-welcome > p:last-child {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 32px;
}
.login-panel label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #344765;
}
.login-panel input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #d8e1ef;
  border-radius: 9px;
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.login-panel input:focus-visible {
  outline: 3px solid #b7cef5;
  outline-offset: 2px;
  border-color: #2458ae;
}
.login-panel button {
  min-height: 46px;
  margin-top: 5px;
  border-radius: 9px;
  font-size: 13px;
}
#loginError {
  color: #b63b44;
  line-height: 1.6;
  margin: 0;
  min-height: 20px;
}
.login-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 28px 0 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  .login-page {
    padding: 22px 16px;
  }
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 460px;
    border-radius: 18px;
  }
  .login-story {
    padding: 26px 28px;
    gap: 24px;
  }
  .login-story h1 {
    font-size: 28px;
  }
  .login-description,
  .login-language-art,
  .login-story-foot {
    display: none;
  }
  .login-story .login-eyebrow {
    margin-bottom: 10px;
  }
  .login-story h1 {
    margin-bottom: 0;
  }
  .login-panel {
    padding: 32px 28px;
  }
}

/* One shared shell: links and buttons have the same menu geometry. */
.sidebar .nav {
  width: 100%;
  min-height: 45px;
  text-decoration: none;
  line-height: 1.35;
}
.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-divider {
  height: 1px;
  background: #ffffff14;
  margin: 14px 12px 9px;
}
.sidebar-foot small {
  display: block;
  margin-top: 3px;
  line-height: 1.6;
}
.top-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.mini-pill {
  text-decoration: none;
  white-space: nowrap;
}
.mini-pill:hover {
  border-color: #a8bfdc;
  color: var(--blue);
}
.nav:focus-visible,
.mini-pill:focus-visible {
  outline: 3px solid #86b2f5;
  outline-offset: 3px;
}
.account-main {
  width: 100%;
}
.account-notice {
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #eaf5ef;
  color: #236347;
  border: 1px solid #d3e9dd;
  line-height: 1.6;
}
.account-notice[data-tone="error"],
.dialog-error {
  background: #fff0f1;
  color: #a52e3b;
  border: 1px solid #f0cbd0;
}
.account-kicker {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.5px;
  color: #6a82a4;
  margin: 0 0 9px;
}
.account-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px;
  background: linear-gradient(115deg, #fff, #f6f9fe);
}
.profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: #e6efff;
  color: #2b5dad;
  display: grid;
  place-items: center;
  font-size: 23px;
  font-weight: 750;
  flex-shrink: 0;
}
.account-profile h2 {
  font-size: 22px;
  margin: 0 0 9px;
  overflow-wrap: anywhere;
}
.profile-caption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 0 auto;
}
.role-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 6px;
  color: #4e6587;
  background: #f0f4fa;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 23px;
}
.section-heading h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.section-heading p:not(.account-kicker) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.section-tag {
  display: inline-flex;
  padding: 7px 10px;
  color: #7485a0;
  font-size: 11px;
  background: #f6f8fc;
  border: 1px solid var(--line);
  border-radius: 7px;
  white-space: nowrap;
}
.account-form {
  display: grid;
  gap: 18px;
}
.account-form label,
.directory-filters label {
  display: grid;
  gap: 8px;
  color: #344765;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
}
.account-form input:not([type="checkbox"]),
.account-form select,
.directory-filters input,
.directory-filters select {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  border: 1px solid #d8e1ef;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.account-form input:focus-visible,
.account-form select:focus-visible,
.directory-filters input:focus-visible,
.directory-filters select:focus-visible {
  outline: 3px solid #bfd4f7;
  outline-offset: 2px;
}
.account-form small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.6;
}
.password-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.form-footer {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 4px;
}
.form-footer span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.form-footer button {
  min-width: 160px;
}
.management-title {
  margin: 32px 0 18px;
}
.account-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.account-summary > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 19px 22px;
}
.summary-label {
  color: var(--muted);
  font-size: 11px;
  display: block;
  line-height: 1.5;
}
.account-summary strong {
  display: block;
  font-size: 26px;
  margin-top: 10px;
  letter-spacing: -0.7px;
}
.create-user-grid {
  grid-template-columns: 1.1fr 1.4fr 1fr auto;
  align-items: end;
}
.create-user-grid button {
  min-height: 43px;
}
.directory-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 20px;
}
.users-table {
  min-width: 650px;
}
.users-table td {
  padding-top: 18px;
  padding-bottom: 18px;
  vertical-align: middle;
}
.directory-person {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 140px;
}
.directory-person strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #edf3fc;
  color: #5373a0;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.your-account {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.access-badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
}
.access-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.access-badge.enabled {
  color: #24805b;
}
.access-badge.disabled {
  color: #8c97a9;
}
.password-pending {
  color: #946818;
  font-size: 11px;
}
.password-set {
  color: #8190a6;
  font-size: 11px;
}
.manage-user {
  font-size: 11px;
  padding: 7px 12px;
  border-radius: 7px;
}
.user-dialog {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  box-shadow: 0 25px 90px #10254740;
}
.user-dialog::backdrop {
  background: #10244077;
  backdrop-filter: blur(3px);
}
.user-dialog .section-heading {
  margin-bottom: 4px;
}
.dialog-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  padding: 0;
  background: #f3f6fb;
  color: #71839f;
  font-size: 23px;
  line-height: 1;
}
.dialog-error {
  padding: 11px;
  border-radius: 8px;
  font-size: 12px;
  margin: 0;
  line-height: 1.6;
}
.account-form .access-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.access-toggle small {
  display: block;
  margin-top: 4px;
}
.access-toggle input {
  width: 35px;
  height: 20px;
  accent-color: var(--blue);
}
.dialog-note {
  background: #f4f7fc;
  border-radius: 8px;
  padding: 12px;
  color: #70819c;
  font-size: 11px;
  line-height: 1.7;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}
.user-guide {
  font-size: 14px;
  line-height: 1.75;
}
.user-guide .guide-section {
  scroll-margin-top: 24px;
  padding: 28px;
}
.user-guide h2 {
  font-size: 21px;
  line-height: 1.4;
}
.user-guide h3 {
  margin: 26px 0 10px;
  font-size: 16px;
}
.user-guide p,
.user-guide li,
.user-guide dd {
  max-width: 90ch;
}
.user-guide li {
  margin-bottom: 9px;
  padding-left: 4px;
}
.user-guide dt {
  font-weight: 700;
  margin-top: 17px;
}
.user-guide dd {
  margin: 6px 0 14px;
  color: #536681;
}
.user-guide pre {
  background: #f5f8fc;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.7;
}
.user-guide table {
  min-width: 480px;
}
.user-guide td {
  line-height: 1.75;
  vertical-align: top;
}
.user-guide .guide-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 25px;
}
.guide-toc h2 {
  grid-column: 1/-1;
}
.guide-toc a {
  color: #3e6199;
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
}
.guide-toc a:hover {
  text-decoration: underline;
}
.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.guide-actions a {
  text-decoration: none;
}
.guide-note {
  padding: 15px 18px;
  border-left: 3px solid #7fa6e1;
  border-radius: 0 8px 8px 0;
  background: #f0f5fd;
  margin: 20px 0;
  color: #47618a;
}
.guide-note.warning {
  border-left-color: #d2a356;
  background: #fdf8ed;
  color: #7e6132;
}
.offline-guide {
  max-width: 1100px;
  margin: 35px auto;
  padding: 20px;
}
.offline-guide > h1 {
  margin-bottom: 12px;
}
.offline-guide .guide-actions {
  display: none;
}
@media (max-width: 1100px) {
  .create-user-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .password-grid,
  .create-user-grid,
  .directory-filters,
  .user-guide .guide-toc {
    grid-template-columns: 1fr;
  }
  .account-profile {
    padding: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .profile-caption {
    margin: 0;
    width: 100%;
  }
  .account-summary {
    gap: 8px;
  }
  .account-summary > div {
    padding: 13px;
  }
  .account-summary strong {
    font-size: 23px;
  }
  .section-tag {
    display: none;
  }
  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .form-footer button {
    width: 100%;
  }
  .user-guide .guide-section {
    padding: 20px;
  }
  .user-guide h2 {
    font-size: 19px;
  }
}
@media print {
  .sidebar,
  .top-right,
  .guide-actions,
  .footer,
  #notification {
    display: none !important;
  }
  .layout {
    display: block;
  }
  .main,
  .offline-guide {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .user-guide .panel {
    box-shadow: none;
    border: 0;
    padding: 12px 0;
  }
  .user-guide a {
    color: inherit;
  }
  .guide-section {
    break-inside: auto;
  }
  .user-guide h2,
  .user-guide h3 {
    break-after: avoid;
  }
  .table-scroll,
  .user-guide pre {
    overflow: visible;
  }
  .user-guide table {
    min-width: 0;
  }
  body {
    background: #fff;
  }
}
