:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-soft: #eef3f6;
  --text: #17212b;
  --muted: #687586;
  --border: #d8dee6;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --danger: #b42318;
  --warning: #b7791f;
  --ok: #14804a;
  --focus: #2563eb;
  --shadow: 0 10px 30px rgb(15 23 42 / 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 14px;
  overflow: hidden;
}

html:has(body > .auth-shell:not([hidden])),
body:has(> .auth-shell:not([hidden])) {
  background: #dce8cf;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input,
textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

button {
  min-height: 36px;
  padding: 0 12px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

button.secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

button.secondary:hover {
  background: var(--panel-soft);
}

button.danger {
  background: #fff;
  color: var(--danger);
  border-color: #efb8b2;
}

button.danger:hover {
  background: #fff1f0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:disabled:hover {
  background: var(--accent);
}

input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  background-color: #f1f5f9;
  color: #64748b;
}

input,
select {
  min-height: 36px;
  padding: 7px 9px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%2317212b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  padding-right: 34px;
}

select:disabled {
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

select.empty-select {
  background-image: none;
  padding-right: 9px;
}

textarea {
  min-height: 92px;
  padding: 9px;
  resize: none;
  line-height: 1.45;
}

input:not([type]):focus,
input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgb(15 118 110 / 0.16);
  outline-offset: 1px;
}

button:focus,
select:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
.paste-zone:focus,
[role="button"]:focus,
.dashboard-project-row:focus,
a:focus {
  outline: none;
}

.app-shell {
  display: block;
  height: 100%;
}

.audit-shell {
  display: grid;
  height: 100%;
  grid-template-columns: 340px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}

.dashboard-shell {
  display: grid;
  height: 100%;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: 64px minmax(0, 1fr);
  background: #f5f8f7;
}

.dashboard-topbar {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  z-index: 2;
}

.dashboard-topbar-title h2 {
  margin: 0;
  color: #10201c;
  font-size: 20px;
  line-height: 1.2;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dashboard-actions select {
  min-width: 220px;
  max-width: 320px;
  height: 38px;
}

.environment-sidebar {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid rgb(255 255 255 / 0.08);
  padding: 24px 14px 16px;
  background: #10201c;
  color: #eef6e8;
  overflow: auto;
}

.environment-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 20px;
  border-bottom: 1px solid rgb(238 246 232 / 0.12);
}

.environment-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.environment-brand h1 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  line-height: 1.15;
}

.environment-brand p {
  margin: 4px 0 0;
  color: rgb(238 246 232 / 0.62);
  font-size: 12px;
  font-weight: 750;
}

.dashboard-primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #43b7a8;
  border-radius: 7px;
  background: #0f766e;
  color: #fff;
  box-shadow: 0 10px 22px rgb(0 0 0 / 0.16);
}

.dashboard-primary-action:hover {
  background: #13877d;
}

.dashboard-primary-action span {
  font-size: 18px;
  line-height: 1;
}

.environment-nav {
  display: grid;
  gap: 4px;
}

.environment-nav p {
  margin: 0 0 7px;
  padding: 0 10px;
  color: rgb(238 246 232 / 0.58);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.environment-button {
  display: grid;
  width: 100%;
  gap: 5px;
  min-height: 74px;
  border: 1px solid transparent;
  border-left: 4px solid transparent;
  border-radius: 0 7px 7px 0;
  padding: 12px 12px 12px 14px;
  background: transparent;
  color: rgb(238 246 232 / 0.68);
  text-align: left;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.environment-button:hover {
  border-left-color: rgb(140 199 189 / 0.7);
  background: rgb(255 255 255 / 0.06);
  color: #fff;
}

.environment-button.active {
  border-left-color: #43b7a8;
  background: #17443e;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
  color: #fff;
}

.environment-button strong {
  font-size: 16px;
}

.environment-button span {
  color: rgb(238 246 232 / 0.64);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.environment-button.active span,
.environment-button:hover span {
  color: rgb(238 246 232 / 0.78);
}

.environment-button small {
  color: rgb(238 246 232 / 0.54);
  font-size: 11px;
  font-weight: 800;
}

.environment-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid rgb(238 246 232 / 0.12);
  padding-top: 14px;
}

.environment-footer span,
.environment-footer button {
  display: flex;
  align-items: center;
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  background: transparent;
  color: rgb(238 246 232 / 0.68);
  font-weight: 750;
  text-align: left;
}

.environment-footer button:hover {
  background: rgb(255 255 255 / 0.06);
  color: #fff;
}

.dashboard-main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 24px;
}

.auth-shell {
  height: 100%;
  overflow: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  background: #dce8cf;
}

.auth-shell::-webkit-scrollbar {
  display: none;
}

html:not([data-site-variant="sgsi"]) [data-site-copy="sgsi"],
html[data-site-variant="sgsi"] [data-site-copy="isms"] {
  display: none !important;
}

.public-header,
.public-main,
.public-footer {
  -webkit-user-select: none;
  user-select: none;
}

.public-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(17 94 89 / 0.08);
  background: rgb(238 246 232 / 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(1.22);
  backdrop-filter: blur(18px) saturate(1.22);
  color: #10201c;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.28);
}

.public-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.public-menu button,
.link-button {
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #10201c;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.public-menu button:hover,
.link-button:hover,
.signup-login-link:hover {
  background: transparent;
  color: var(--accent);
}

.public-nav {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 18px 30px;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #10201c;
  font-size: 18px;
  font-weight: 850;
  text-decoration: none;
}

.public-brand:hover {
  background: transparent;
}

.public-brand:hover .public-brand-title {
  color: var(--accent);
}

.public-brand-title {
  display: block;
  color: #10201c;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.public-brand .brand-mark {
  width: 46px;
  height: 46px;
  min-height: 46px;
  border-color: rgb(255 255 255 / 0.58);
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.12);
  font-size: 15px;
}

.public-menu {
  justify-content: center;
  font-size: 15px;
}

.public-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav-signup-button,
.signup-google-button,
.signup-option-button {
  min-width: 130px;
  min-height: 48px;
  border-color: var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 780;
}

.nav-signup-button:hover,
.signup-google-button:hover,
.signup-option-button:hover {
  background: var(--accent-strong);
}

.public-main {
  min-height: 100%;
}

.landing-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: 150px 30px 34px;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.landing-hero-media,
.landing-hero-video,
.landing-hero-fallback,
.landing-hero-scrim {
  position: absolute;
  inset: 0;
}

.landing-hero-media {
  z-index: -2;
  background: #dce8cf;
}

.landing-hero-video,
.landing-hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.landing-hero-fallback {
  z-index: 0;
  opacity: 1;
}

.landing-hero-video {
  z-index: 1;
  opacity: var(--hero-video-opacity, 1);
  transition: none;
}

.landing-hero-media.is-finished .landing-hero-video {
  opacity: 0;
}

.landing-hero-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(238 246 232 / 0.84) 0%, rgb(238 246 232 / 0.56) 42%, rgb(238 246 232 / 0.08) 100%),
    rgb(235 244 227 / 0.04);
}

.landing-hero-content {
  display: grid;
  align-content: center;
  width: min(760px, 100%);
  min-height: calc(100svh - 230px);
  text-shadow: 0 1px 18px rgb(238 246 232 / 0.72);
}

.landing-kicker {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-kicker-lowercase {
  text-transform: none;
}

.landing-hero-content h1 {
  max-width: 760px;
  margin: 0;
  color: #10201c;
  font-size: 76px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.landing-hero-logo-title {
  text-wrap: balance;
}

.landing-hero-content p {
  max-width: 680px;
  margin: 24px 0 0;
  color: #1c302b;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 720;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.signup-google-button,
.signup-option-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
}

.signup-google-button {
  border: 1px solid rgb(17 94 89 / 0.32);
  background: rgb(255 255 255 / 0.72);
  color: var(--accent-strong);
  backdrop-filter: blur(12px);
}

.signup-google-button span {
  font-size: 24px;
  font-weight: 900;
}

.signup-divider {
  height: 2px;
  background: #d9dee6;
}

.signup-option-button {
  border: 1px solid var(--accent);
}

.signup-option-button span {
  font-size: 24px;
  line-height: 1;
}

.signup-login-link {
  min-width: 112px;
  min-height: 48px;
  border-color: rgb(17 94 89 / 0.32);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.72);
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.landing-section {
  display: grid;
  min-height: 100svh;
  align-content: center;
  padding: 118px 30px 74px;
  background: #f5f7f2;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.landing-section h2 {
  max-width: 900px;
  margin: 0;
  color: #10201c;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 900;
}

.landing-section p {
  max-width: 780px;
  margin: 18px 0 0;
  color: #31443f;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 650;
}

.landing-product {
  border-top: 1px solid rgb(17 94 89 / 0.14);
}

.landing-workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 44px;
  border-top: 1px solid rgb(17 94 89 / 0.14);
  background: #fff;
}

.landing-workflow ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-workflow li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  min-height: 96px;
  align-items: center;
  border-top: 1px solid var(--border);
}

.landing-workflow li:first-child {
  border-top: 0;
}

.landing-workflow li strong {
  color: var(--accent-strong);
  font-size: 15px;
}

.landing-workflow li span {
  color: #17212b;
  font-size: 18px;
  font-weight: 750;
}

.landing-security {
  border-top: 1px solid rgb(17 94 89 / 0.14);
}

.public-footer {
  border-top: 1px solid rgb(255 255 255 / 0.08);
  background: #10201c;
  color: #eef6e8;
  padding: 34px 30px;
  scroll-snap-align: end;
}

.public-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 28px;
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.public-footer strong {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.public-footer p,
.public-footer small {
  margin: 6px 0 0;
  color: rgb(238 246 232 / 0.74);
  font-size: 13px;
  font-weight: 650;
}

.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.public-footer button,
.public-footer-static {
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #eef6e8;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.public-footer button {
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .public-footer button:hover {
    background: transparent;
    color: #8cc7bd;
  }
}

.public-footer small {
  grid-column: 1 / -1;
}

.auth-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 24px);
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  overflow: auto;
  overscroll-behavior: contain;
}

.auth-dialog::backdrop {
  background: rgb(16 24 32 / 0.52);
}

.auth-panel {
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.24);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px;
  border-bottom: 1px solid var(--border);
}

.auth-brand-copy {
  min-width: 0;
}

.auth-brand-title {
  margin: 0 0 4px;
  color: #10201c;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.auth-form h2 {
  margin: 0;
}

.auth-form-intro {
  margin: -2px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-brand p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
}

.auth-close-button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  margin-left: auto;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px 22px 0;
}

.auth-google-block {
  display: grid;
  gap: 10px;
  padding: 16px 22px 0;
}

.auth-google-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  font-weight: 780;
  text-decoration: none;
}

.auth-google-link:hover {
  border-color: #8cc7bd;
  background: #eef7f5;
}

.auth-google-link span {
  color: #176f66;
  font-size: 18px;
  font-weight: 900;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--border);
  content: "";
}

.auth-tab {
  min-height: 34px;
  border-color: var(--border);
  background: #fff;
  color: var(--text);
}

.auth-tab:hover {
  background: var(--panel-soft);
}

.auth-tab.active {
  border-color: #8cc7bd;
  background: #e7f6f3;
  color: var(--accent-strong);
}

.auth-form {
  display: grid;
  gap: 14px;
  padding: 18px 22px 22px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-form button {
  margin-top: 4px;
}

.auth-form .auth-text-button {
  justify-self: end;
  min-height: 30px;
  margin: -4px 0 -2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 750;
}

.auth-form .auth-text-button:hover {
  background: transparent;
  color: #0b4b46;
}

.auth-form .auth-back-button {
  margin-top: 0;
}

.auth-error {
  margin: 0;
  color: var(--danger);
  font-weight: 650;
}

.auth-notice {
  margin: 0;
  border: 1px solid #8cc7bd;
  border-radius: 5px;
  padding: 10px 12px;
  background: #e7f6f3;
  color: #0f5e56;
  font-weight: 700;
}

.auth-hint {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #101820;
  color: #f8fafc;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 6px;
  background: #1f7a6f;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark:hover {
  background: #25897d;
}

.brand-mark[aria-disabled="true"] {
  cursor: default;
}

.brand-mark[aria-disabled="true"]:hover {
  background: #1f7a6f;
}

.framework-badge {
  user-select: none;
}

.back-button {
  display: grid;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.brand p {
  margin: 5px 0 0;
  color: #b7c2cf;
  font-size: 12px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.toolbar select {
  min-width: 200px;
}

.project-language-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.project-language-group select {
  flex: 1 1 200px;
}

#workspaceSelect {
  min-width: 220px;
}

.generate-menu {
  position: relative;
}

.translation-menu {
  flex: 0 0 auto;
  position: relative;
}

.translation-button {
  display: grid;
  width: 38px;
  min-width: 38px;
  padding: 0;
  place-items: center;
}

.translation-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.translation-panel {
  position: absolute;
  z-index: 22;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  gap: 10px;
  width: 238px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.translation-panel[hidden] {
  display: none;
}

.translation-row {
  display: grid;
  gap: 6px;
}

.translation-row > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.translation-switches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.translation-choice {
  min-height: 30px;
  border-color: var(--border);
  padding: 0 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
}

.translation-choice:hover {
  background: #f8fbfb;
  color: var(--accent);
}

.translation-choice.active {
  border-color: #8cc7bd;
  background: #e7f6f3;
  color: var(--accent-strong);
}

.translation-choice.locked,
.translation-choice:disabled {
  cursor: default;
  opacity: 1;
}

.translation-choice.locked:hover,
.translation-choice:disabled:hover {
  background: #e7f6f3;
  color: var(--accent-strong);
}

.generate-menu-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  min-width: 210px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.generate-menu-panel[hidden] {
  display: none;
}

.generate-menu-panel button {
  justify-content: start;
  min-height: 34px;
  border-color: transparent;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
  text-align: left;
  font-weight: 650;
}

.generate-menu-panel button:hover {
  border-color: #d7e2ea;
  background: #f8fbfb;
  color: var(--accent);
}

.generate-menu-panel button:disabled,
.generate-menu-panel button:disabled:hover {
  border-color: transparent;
  background: #fff;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.55;
}

.sidebar {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
}

.search-box {
  z-index: 2;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.search-box input {
  width: 100%;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.summary-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  background: #fbfcfd;
}

.summary-item strong {
  display: block;
  font-size: 18px;
}

.summary-item span {
  color: var(--muted);
  font-size: 12px;
}

.summary-item strong .summary-denominator {
  color: #9aa6b6;
  font-size: inherit;
}

.status-filter-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.status-filter-strip[hidden] {
  display: none;
}

.status-filter-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 24px;
  padding: 0 6px;
  border-color: transparent;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.status-filter-option:hover {
  background: #f8fafc;
}

.status-filter-option.active {
  background: #eff6ff;
  color: #1e40af;
}

.status-filter-option .status-filter-label {
  white-space: nowrap;
}

.status-filter-button {
  width: 12px;
  min-width: 12px;
  height: 12px;
  min-height: 12px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #94a3b8;
}

.status-filter-option:hover .status-filter-button,
.status-filter-option.active .status-filter-button {
  border-color: var(--focus);
}

.status-filter-button.conforme,
.status-filter-button.sin_capturas {
  background: #00d45a;
}

.status-filter-button.no_conforme {
  background: var(--danger);
}

.status-filter-button.observacion {
  background: #ffb000;
}

.status-filter-button.no_aplica {
  border-color: #94a3b8;
  background: #f8fafc;
}

.catalog-tree {
  direction: rtl;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 8px 20px;
}

.catalog-tree > * {
  direction: ltr;
}

.tree-section-toggle {
  display: flex;
  width: calc(100% - 16px);
  align-items: center;
  gap: 8px;
  margin: 10px 8px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 9px 10px;
  background: #f8fafc;
  color: #334155;
  font-weight: 850;
  text-align: left;
}

.tree-section-toggle:hover {
  background: #eef7f5;
}

.tree-section-toggle.expanded {
  border-color: #7cc8b4;
  background: #dff3ef;
  color: #073b35;
}

.section-chevron {
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 6px solid currentColor;
  transform: rotate(-90deg);
  transition: transform 120ms ease;
}

.tree-section-toggle.expanded .section-chevron {
  transform: rotate(0deg);
}

.tree-heading {
  margin: 12px 8px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tree-group {
  margin: 8px 8px 4px;
  color: var(--muted);
  font-weight: 750;
}

.control-button {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: 68px minmax(0, 1fr) 10px;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.control-button:hover {
  background: var(--panel-soft);
}

.control-button.active {
  background: #dff3ef;
  color: #073b35;
}

.control-button .code {
  color: #475569;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.control-button .title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #94a3b8;
}

.status-dot.conforme {
  background: #00d45a;
}

.status-dot.no_conforme {
  background: var(--danger);
}

.status-dot.observacion {
  background: #ffb000;
}

.status-dot.no_aplica {
  border-color: #94a3b8;
  background: #f8fafc;
}

.workspace {
  min-width: 0;
  overflow: auto;
  padding: 18px;
}

.workspace-dashboard {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.workspace-dashboard[hidden] {
  display: none;
}

.workspace-dashboard-header,
.workspace-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workspace-dashboard-header h2,
.workspace-card h3 {
  margin: 0;
}

.workspace-dashboard-header h2 {
  font-size: 24px;
  line-height: 1.15;
}

.dashboard-meta {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.workspace-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 10px;
}

.workspace-metric,
.workspace-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.workspace-metric {
  padding: 14px;
}

.workspace-metric strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.workspace-metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.workspace-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 16px;
}

.workspace-card {
  padding: 16px;
}

.dashboard-project-list {
  display: grid;
  gap: 14px;
  width: 100%;
  margin-top: 22px;
}

.dashboard-project-list h3 {
  margin: 0;
  font-size: 18px;
}

.dashboard-projects,
.workspace-members {
  display: grid;
  gap: 0;
  margin-top: 0;
}

.dashboard-row,
.member-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.dashboard-row:first-child,
.member-row:first-child {
  border-top: 0;
}

.dashboard-row strong,
.member-row strong {
  font-size: 14px;
}

.dashboard-row span,
.member-row span,
#memberLimitLabel {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.dashboard-project-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto) 150px 64px;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  border-color: transparent;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 14px 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.dashboard-project-row:first-child {
  border-top: 0;
}

.dashboard-project-row:hover {
  border-color: transparent;
  border-top-color: var(--border);
  background: #f7fbfa;
  color: var(--text);
}

.dashboard-project-row:first-child:hover {
  border-top-color: transparent;
}

.dashboard-project-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.dashboard-project-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.dashboard-project-title strong {
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dashboard-framework-pill {
  flex: 0 0 auto;
  min-width: 42px;
  border: 1px solid #9bd2c9;
  border-radius: 999px;
  padding: 2px 8px;
  background: #e7f6f3;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.dashboard-project-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.dashboard-project-meta span,
.dashboard-empty-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.dashboard-project-health {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.dashboard-health-chip {
  min-height: 26px;
  border: 1px solid #d7e2ea;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.dashboard-health-chip.pending {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.dashboard-health-chip.nc {
  border-color: #f1c7c2;
  background: #fff7f6;
  color: var(--danger);
}

.dashboard-health-chip.obs {
  border-color: #efd59e;
  background: #fff8e8;
  color: #8a5a11;
}

.dashboard-completion {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-completion-value {
  font-size: 18px;
  line-height: 1;
}

.dashboard-progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.dashboard-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.dashboard-completion.pending .dashboard-progress span {
  background: #94a3b8;
}

.dashboard-completion.complete .dashboard-progress span {
  background: var(--ok);
}

.dashboard-completion small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-empty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 92px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.dashboard-empty-row span {
  display: grid;
  gap: 4px;
}

.dashboard-empty-row strong {
  color: var(--text);
  font-size: 16px;
}

.dashboard-empty-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.dashboard-project-action {
  justify-self: end;
  min-width: 54px;
  border: 1px solid #9bd2c9;
  border-radius: 999px;
  padding: 5px 9px;
  background: #e7f6f3;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.dashboard-canvas {
  display: grid;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
}

.workspace-dashboard-header {
  align-items: end;
  margin-bottom: 4px;
}

.dashboard-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

.dashboard-breadcrumb span:first-child {
  border-radius: 4px;
  padding: 4px 8px;
  background: #e5ecea;
  color: #41534f;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-dashboard-header h2 {
  color: #10201c;
  font-size: 32px;
  line-height: 1.2;
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dashboard-search {
  position: relative;
  display: block;
  min-width: min(320px, 46vw);
  color: #667085;
  font-size: 0;
}

.dashboard-search span {
  position: absolute;
  top: 50%;
  left: 12px;
  color: #667085;
  font-size: 17px;
  transform: translateY(-50%);
}

.dashboard-search input {
  width: 100%;
  height: 38px;
  border-color: #cfd8df;
  border-radius: 7px;
  padding: 0 12px 0 36px;
  background: #fff;
  color: var(--text);
}

.dashboard-project-list {
  margin-top: 0;
  position: relative;
}

.dashboard-project-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 40px;
}

.dashboard-project-heading h3 {
  min-width: 0;
  margin: 0;
  color: #10201c;
  font-size: 18px;
  line-height: 1.35;
}

.dashboard-table-shell {
  overflow: hidden;
  border: 1px solid #d7e0e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(16 32 28 / 0.06);
}

.dashboard-table-scroll {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}

.dashboard-table.show-created-date {
  min-width: 1220px;
}

.dashboard-table.show-auditor {
  min-width: 1280px;
}

.dashboard-table.show-auditor.show-created-date {
  min-width: 1440px;
}

.dashboard-table [data-dashboard-column="project"] {
  width: var(--dashboard-project-column-width, 270px);
}

.dashboard-table [data-dashboard-column="progress"] {
  width: 190px;
}

.dashboard-table [data-dashboard-column="workflow"] {
  width: 190px;
}

.dashboard-table [data-dashboard-column="decision"] {
  width: 170px;
}

.dashboard-table [data-dashboard-column="accreditation"] {
  width: 210px;
}

.dashboard-table [data-dashboard-column="auditor"] {
  width: 190px;
}

.dashboard-table [data-dashboard-column="createdDate"] {
  width: 150px;
}

.dashboard-table .dashboard-column-filler {
  width: auto;
  padding: 0;
}

.dashboard-table th {
  border-bottom: 1px solid #d7e0e7;
  padding: 14px 18px;
  background: #eef4f2;
  color: #14352f;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-table td {
  border-bottom: 1px solid #e4eaee;
  padding: 15px 18px;
  vertical-align: middle;
}

.dashboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.dashboard-table .dashboard-project-row {
  display: table-row;
  min-height: 0;
  border: 0;
  background: #fff;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.dashboard-table .dashboard-project-row:hover {
  background: #f3faf8;
}

.dashboard-project-cell {
  min-width: 0;
}

.dashboard-table .dashboard-project-title {
  display: flex;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.dashboard-table .dashboard-project-title strong {
  min-width: 0;
  overflow: hidden;
  color: #10201c;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-table .dashboard-framework-pill {
  flex: 0 0 auto;
}

.dashboard-table .dashboard-framework-pill[data-category="bajo"] {
  border-color: #bfd7ea;
  background: #edf7fb;
  color: #245b78;
}

.dashboard-table .dashboard-framework-pill[data-category="medio"] {
  border-color: #94d6b4;
  background: #e8f8ef;
  color: #176a47;
}

.dashboard-table .dashboard-framework-pill[data-category="alto"] {
  border-color: #e7ca72;
  background: #fff7df;
  color: #7a5c00;
}

.dashboard-table .dashboard-project-meta {
  display: grid;
  gap: 2px;
  margin-top: 6px;
}

.dashboard-table .dashboard-project-meta span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.dashboard-date {
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.dashboard-auditor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.dashboard-auditor span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #dff2ee;
  color: #0f5f57;
  font-size: 11px;
  font-weight: 900;
}

.dashboard-table .dashboard-completion {
  width: 154px;
  justify-items: start;
}

.dashboard-table .dashboard-completion-value {
  color: #10201c;
  font-size: 13px;
}

.dashboard-table .dashboard-progress {
  width: 132px;
  height: 8px;
  background: #dfe8e5;
}

.dashboard-status-cell {
  min-width: 158px;
}

.dashboard-accreditation-cell {
  min-width: 190px;
}

.dashboard-status-control {
  display: inline-grid;
  justify-items: start;
}

.dashboard-status-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border: 1px solid #d7e0e7;
  border-radius: 999px;
  padding: 5px 11px;
  background: #f7faf9;
  color: #41534f;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-status-button:hover {
  background: #eef4f2;
  color: #10201c;
}

.dashboard-status-button.active,
.dashboard-status-button.generated {
  border-color: #b8d8d2;
  background: #edf8f6;
  color: #0f766e;
}

.dashboard-status-button.progress-1,
.dashboard-status-menu button.progress-1 {
  border-color: #d1e9e0;
  background: #f3fbf8;
  color: #0f5f57;
}

.dashboard-status-button.progress-2,
.dashboard-status-menu button.progress-2 {
  border-color: #bfded5;
  background: #edf8f4;
  color: #0f6f65;
}

.dashboard-status-button.progress-3,
.dashboard-status-menu button.progress-3 {
  border-color: #acd3c7;
  background: #e6f4ef;
  color: #117567;
}

.dashboard-status-button.progress-4,
.dashboard-status-menu button.progress-4 {
  border-color: #9bc9bd;
  background: #dff0ea;
  color: #126f61;
}

.dashboard-status-button.warning,
.dashboard-status-menu button.warning {
  border-color: #efd59e;
  background: #fff8e8;
  color: #8a5a11;
}

.dashboard-status-button.danger,
.dashboard-status-menu button.danger {
  border-color: #e6b8b1;
  background: #fff1ef;
  color: #9b2f26;
}

.dashboard-status-button.neutral,
.dashboard-status-menu button.neutral {
  border-color: #d7e0e7;
  background: #f3f6f6;
  color: #52615d;
}

.dashboard-status-button.pending,
.dashboard-status-menu button.pending {
  border-color: #d7e0e7;
  background: #f8fafc;
  color: #667085;
}

.dashboard-status-chevron {
  margin-left: 2px;
  color: currentColor;
  font-size: 14px;
  line-height: 1;
  opacity: 0.72;
  position: relative;
  top: -2px;
}

.dashboard-status-control.open .dashboard-status-chevron {
  transform: rotate(180deg);
}

.dashboard-status-menu {
  display: grid;
  position: fixed;
  z-index: 80;
  gap: 2px;
  width: 224px;
  margin-top: 0;
  border: 1px solid #d7e0e7;
  border-radius: 8px;
  padding: 5px;
  background: #fff;
  box-shadow: 0 14px 32px rgb(16 32 28 / 0.16);
}

.dashboard-status-menu[hidden] {
  display: none;
}

.dashboard-status-menu button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
  color: #41534f;
  font-size: 12px;
  font-weight: 760;
  text-align: left;
}

.dashboard-status-menu button:hover,
.dashboard-status-menu button.selected {
  box-shadow: inset 0 0 0 1px rgb(15 118 110 / 0.16);
}

.dashboard-table .dashboard-empty-row {
  display: table-row;
  border: 0;
  background: #fff;
}

.dashboard-table .dashboard-empty-row td {
  padding: 28px 18px;
}

.dashboard-table .dashboard-empty-row td {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #d7e0e7;
  padding: 13px 18px;
  background: #f2f7f5;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

.dashboard-table-footer div {
  display: flex;
  gap: 6px;
}

.dashboard-table-footer button {
  width: 30px;
  min-height: 30px;
  padding: 0;
}

.dashboard-settings-button {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #cfd8df;
  border-radius: 5px;
  padding: 0;
  background: transparent;
  color: #475467;
  box-shadow: none;
}

.dashboard-settings-button:hover {
  border-color: #aeb8c2;
  background: rgb(16 32 28 / 0.05);
  color: #344054;
}

.dashboard-settings-menu-icon,
.dashboard-settings-menu-icon::before,
.dashboard-settings-menu-icon::after {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentcolor;
}

.dashboard-settings-menu-icon {
  position: relative;
  display: block;
}

.dashboard-settings-menu-icon::before,
.dashboard-settings-menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.dashboard-settings-menu-icon::before {
  top: -5px;
}

.dashboard-settings-menu-icon::after {
  top: 5px;
}

.dashboard-settings-panel {
  position: absolute;
  top: 48px;
  right: 0;
  z-index: 45;
  display: grid;
  gap: 10px;
  width: 220px;
  border: 1px solid #d7e0e7;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 18px 38px rgb(16 32 28 / 0.16);
}

.dashboard-settings-panel[hidden] {
  display: none;
}

.dashboard-settings-panel h4 {
  margin: 0;
  color: #10201c;
  font-size: 13px;
  font-weight: 850;
}

.dashboard-settings-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  border-radius: 6px;
  padding: 6px;
  color: #41534f;
  font-size: 12px;
  font-weight: 760;
}

.dashboard-settings-option:hover {
  background: #f3faf8;
}

.dashboard-settings-option:has(input:disabled) {
  color: #667085;
  cursor: default;
}

.dashboard-settings-option:has(input:disabled):hover {
  background: transparent;
}

.dashboard-settings-option input {
  width: 15px;
  height: 15px;
  accent-color: #0f766e;
}

.member-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.workspace,
.catalog-tree,
.dashboard-main,
.environment-sidebar,
.image-viewer-frame {
  scrollbar-color: transparent transparent;
}

.workspace.is-scrolling,
.catalog-tree.is-scrolling,
.dashboard-main.is-scrolling,
.environment-sidebar.is-scrolling,
.image-viewer-frame.is-scrolling {
  scrollbar-color: rgb(100 116 139 / 0.65) transparent;
}

.workspace::-webkit-scrollbar,
.catalog-tree::-webkit-scrollbar,
.dashboard-main::-webkit-scrollbar,
.environment-sidebar::-webkit-scrollbar,
.image-viewer-frame::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.workspace::-webkit-scrollbar-track,
.catalog-tree::-webkit-scrollbar-track,
.dashboard-main::-webkit-scrollbar-track,
.environment-sidebar::-webkit-scrollbar-track,
.image-viewer-frame::-webkit-scrollbar-track {
  background: transparent;
}

.workspace::-webkit-scrollbar-thumb,
.catalog-tree::-webkit-scrollbar-thumb,
.dashboard-main::-webkit-scrollbar-thumb,
.environment-sidebar::-webkit-scrollbar-thumb,
.image-viewer-frame::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: transparent;
  background-clip: padding-box;
}

.workspace.is-scrolling::-webkit-scrollbar-thumb,
.catalog-tree.is-scrolling::-webkit-scrollbar-thumb,
.dashboard-main.is-scrolling::-webkit-scrollbar-thumb,
.environment-sidebar.is-scrolling::-webkit-scrollbar-thumb,
.image-viewer-frame.is-scrolling::-webkit-scrollbar-thumb {
  background-color: rgb(100 116 139 / 0.65);
}

.project-panel,
.control-panel,
.empty-state {
  margin: 0 auto 16px;
  max-width: 1180px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.project-panel,
.control-panel {
  padding: 18px;
}

.empty-state {
  padding: 52px;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-framework="iso"] #maturityField {
  display: none;
}

.field-grid.two-cols,
.control-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.scope-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 12px;
  align-items: start;
  margin-top: 12px;
}

.objective-stack {
  display: grid;
  gap: 8px;
}

.audit-details-toggle {
  justify-self: start;
  min-height: 32px;
  border-style: dashed;
  border-color: #91a4b7;
  padding: 0 10px;
  background: #f8fbfb;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
}

.audit-details-toggle:hover,
.participants-header button:hover {
  border-color: var(--accent);
  background: #e8f6f3;
  color: var(--accent);
}

.audit-details-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.audit-details-panel[hidden] {
  display: none;
}

.participants-block {
  display: grid;
  gap: 8px;
}

.participants-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.participants-header h3 {
  margin: 0;
  color: #334155;
  font-size: 13px;
}

.participants-header button {
  min-height: 32px;
  border-style: dashed;
  border-color: #91a4b7;
  background: #f8fbfb;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
}

.participants-list {
  display: grid;
  gap: 8px;
}

.participants-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.participant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: end;
}

.participant-delete {
  display: grid;
  align-self: end;
  width: 36px;
  min-height: 36px;
  place-items: center;
  border-color: transparent;
  padding: 0;
  background: #f1f5f9;
  color: #475569;
  font-size: 18px;
}

.participant-delete:hover {
  border-color: #cbd5e1;
  background: #e2e8f0;
}

.control-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 750;
}

label input,
label select,
label textarea {
  font-size: 14px;
  font-weight: 400;
}

.full-field {
  margin-top: 12px;
}

.control-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
}

.control-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.save-state {
  min-width: 110px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.save-state.saving {
  color: var(--warning);
}

.save-state.saved {
  color: var(--ok);
}

.save-state.error {
  color: var(--danger);
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.fact {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px;
  background: #fbfcfd;
}

.fact.active-category {
  border-color: #4fb38d;
  background: #e6f7ef;
  box-shadow: inset 0 0 0 1px rgb(79 179 141 / 0.2);
}

.fact.active-category span,
.fact.active-category strong {
  color: #0f5d45;
}

.fact.active-category.category-not-applicable {
  border-color: #dc6b6b;
  background: #fdebec;
  box-shadow: inset 0 0 0 1px rgb(220 107 107 / 0.2);
}

.fact.active-category.category-not-applicable span,
.fact.active-category.category-not-applicable strong {
  color: #8f2525;
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.requirements-section {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.requirements-empty,
.requirement-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.requirements-empty {
  background: #f8fafc;
  color: var(--muted);
}

.requirement-card.base {
  border-color: #bfd7ea;
  background: #edf7fb;
}

.requirement-card.mandatory {
  border-color: #94d6b4;
  background: #e8f8ef;
}

.requirement-card.optional {
  border-color: #e7ca72;
  background: #fff7df;
}

.requirement-card.collapsible {
  position: relative;
  max-height: 168px;
  cursor: pointer;
  overflow: hidden;
  transition:
    max-height 160ms ease,
    box-shadow 160ms ease;
}

.requirement-card.collapsible::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, rgb(255 247 223 / 0), #fff7df 78%);
  pointer-events: none;
}

.requirement-card.collapsible.expanded {
  max-height: none;
}

.requirement-card.collapsible.expanded::after {
  display: none;
}

.requirement-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.requirement-header span {
  display: block;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.requirement-header h3 {
  margin: 3px 0 0;
  font-size: 16px;
  line-height: 1.25;
}

.requirement-header strong {
  flex: 0 0 auto;
  border: 1px solid rgb(15 23 42 / 0.12);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgb(255 255 255 / 0.68);
  color: #334155;
  font-size: 11px;
}

.requirement-translation {
  margin-top: 12px;
  border-top: 1px solid rgb(15 23 42 / 0.12);
  padding-top: 10px;
}

.requirement-translation span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.requirement-translation h4 {
  margin: 4px 0 0;
  font-size: 14px;
}

.requirement-translation p {
  margin: 6px 0 0;
  color: #334155;
}

.requirement-translation.missing p {
  color: #64748b;
  font-style: italic;
}

.requirement-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 18px;
}

.requirement-sublist {
  display: grid;
  gap: 4px;
  margin: 7px 0 0;
  padding-left: 22px;
}

.requirement-card li {
  line-height: 1.45;
}

.url-evidence-section {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.url-evidence-section .url-paste-zone {
  margin-top: 0;
}

.full-field + .url-evidence-section {
  margin-top: 10px;
}

.full-field + .url-evidence-section:not(.has-urls) {
  margin-top: 16px;
}

.url-list {
  display: grid;
  gap: 6px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: #f8fbfb;
  list-style: none;
}

.url-list:empty {
  display: none;
}

.url-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 38%) 40px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 8px 8px 10px;
  background: #fff;
}

.url-item a {
  display: grid;
  grid-column: 1;
  gap: 2px;
  min-width: 0;
  color: var(--accent);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.url-item a:hover {
  text-decoration: underline;
}

.url-title {
  overflow-wrap: anywhere;
}

.url-href,
.url-state {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.url-state {
  grid-column: 1;
  white-space: nowrap;
}

.url-description {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.url-description::placeholder {
  color: var(--muted);
}

.url-delete {
  display: grid;
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  width: 32px;
  height: 32px;
  min-height: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0;
  background: #f1f5f9;
  color: #475569;
  font-size: 18px;
}

.url-delete:hover {
  border-color: #cbd5e1;
  background: #e2e8f0;
}

.url-error {
  margin: 0;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
}

.url-evidence-section.disabled {
  opacity: 0.68;
}

.paste-zone {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  border: 1px dashed #91a4b7;
  border-radius: 8px;
  padding: 16px;
  background: #f8fbfb;
  color: #334155;
}

.paste-zone.drag-over {
  border-color: var(--accent);
  background: #e8f6f3;
}

.paste-zone.disabled {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

.paste-zone span {
  color: var(--muted);
}

.screenshots-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.screenshots-header h3 {
  margin: 0;
  font-size: 17px;
}

.screenshots-header span {
  border-radius: 999px;
  background: var(--panel-soft);
  padding: 4px 9px;
  color: var(--muted);
  font-weight: 750;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.screenshot {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.screenshot-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-height: 26px;
  border: 1px solid rgb(100 116 139 / 0.35);
  border-radius: 999px;
  background: rgb(248 250 252 / 0.92);
  color: #64748b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  text-align: center;
}

.screenshot-delete span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  line-height: 1;
  transform: translate(-50%, calc(-50% - 1px));
}

.screenshot-delete:hover {
  border-color: rgb(71 85 105 / 0.48);
  background: rgb(241 245 249 / 0.98);
  color: #334155;
}

.screenshot-preview {
  display: block;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.screenshot-preview:hover {
  background: transparent;
}

.screenshot-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #e5e9ef;
}

.screenshot-body {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.screenshot-body input {
  width: 100%;
}

.screenshot-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

dialog {
  width: min(520px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 24px 70px rgb(15 23 42 / 0.3);
}

dialog::backdrop {
  background: rgb(15 23 42 / 0.38);
}

dialog.image-viewer-dialog {
  width: min(96vw, 1400px);
  max-width: none;
  height: min(92vh, 900px);
}

.image-viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  background: #fff;
}

.image-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
}

.image-viewer-header h2 {
  margin: 0;
  font-size: 17px;
}

.image-viewer-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.image-viewer-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.image-viewer-actions .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.image-viewer-actions .secondary:hover {
  background: var(--panel-soft);
}

.image-viewer-actions button {
  min-width: 38px;
  padding: 0 10px;
}

.image-download-button {
  min-width: 38px;
  margin-right: 6px;
  padding: 0 10px;
  font-size: 20px;
  line-height: 1;
}

.image-viewer-frame {
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: #111827;
  user-select: none;
  overscroll-behavior: contain;
}

.image-viewer-frame img {
  display: block;
  width: auto;
  max-width: none;
  max-height: none;
  height: auto;
  margin: 0 auto;
  background: #e5e9ef;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

dialog form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

dialog h2 {
  margin: 0 0 4px;
}

dialog menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
}

@media (max-width: 980px) {
  .public-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    min-height: auto;
    padding: 14px 16px;
  }

  .public-brand {
    font-size: 17px;
  }

  .public-brand-title {
    font-size: 20px;
  }

  .public-menu {
    display: none;
  }

  .public-actions {
    gap: 8px;
  }

  .link-button {
    min-height: 40px;
    padding: 0 8px;
  }

  .nav-signup-button {
    min-width: 112px;
    min-height: 40px;
  }

  .landing-hero {
    min-height: 100svh;
    padding: 118px 16px 20px;
  }

  .landing-hero-content {
    min-height: calc(100svh - 280px);
  }

  .landing-hero-content h1 {
    font-size: 48px;
  }

  .landing-hero-content p {
    margin-top: 16px;
    font-size: 16px;
  }

  .landing-hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 26px;
  }

  .signup-option-button,
  .signup-login-link,
  .signup-google-button {
    width: 100%;
  }

  .landing-section {
    min-height: 100svh;
    padding: 96px 16px 48px;
  }

  .landing-section h2 {
    font-size: 32px;
  }

  .landing-section p,
  .landing-workflow li span {
    font-size: 16px;
  }

  .landing-workflow {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .landing-workflow li {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .public-footer {
    padding: 28px 16px;
  }

  .public-footer-inner {
    grid-template-columns: 1fr;
  }

  .public-footer nav {
    justify-content: flex-start;
  }

  .audit-shell,
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .environment-sidebar {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    padding: 16px;
  }

  .environment-brand {
    padding: 0 0 14px;
  }

  .environment-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .environment-nav p {
    grid-column: 1 / -1;
    padding: 0;
  }

  .environment-button {
    margin-top: 0;
  }

  .environment-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .dashboard-topbar {
    grid-column: 1;
    grid-row: 2;
    align-items: stretch;
    flex-direction: column;
    padding: 14px 16px;
  }

  .dashboard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-actions select {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .sidebar {
    grid-template-rows: auto auto minmax(0, 1fr);
    max-height: 320px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .topbar,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
    min-width: 0;
    width: 100%;
  }

  .brand {
    min-width: 0;
    width: 100%;
  }

  .brand > div {
    min-width: 0;
  }

  .brand p {
    overflow-wrap: anywhere;
  }

  .toolbar select {
    min-width: 0;
    width: 100%;
  }

  .project-language-group {
    width: 100%;
  }

  .project-language-group select {
    width: auto;
  }

  .generate-menu {
    width: 100%;
  }

  .generate-menu-panel {
    position: static;
    margin-top: 6px;
    width: 100%;
  }

  .field-grid,
  .field-grid.two-cols,
  .scope-work-grid,
  .control-fields,
  .fact-row,
  .workspace-dashboard-grid,
  .member-form {
    grid-template-columns: 1fr;
  }

  .workspace-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-project-row {
    grid-template-columns: 1fr;
  }

  .workspace-dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-search {
    min-width: 0;
  }

  .dashboard-table {
    min-width: 1120px;
  }

  .dashboard-table .dashboard-completion {
    justify-items: start;
  }

  .dashboard-project-health {
    justify-content: flex-start;
  }

  .dashboard-completion {
    justify-items: start;
  }

  .dashboard-project-action {
    justify-self: start;
  }

  .dashboard-empty-row {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-main {
    grid-column: 1;
    grid-row: 3;
    padding: 16px;
  }

  .participant-row {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .participant-row label {
    grid-column: 1 / -1;
  }

  .participant-delete {
    grid-column: 2;
  }

  .url-item {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .url-description {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .url-delete {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 600px) {
  .public-nav {
    gap: 8px;
    padding: 12px;
  }

  .public-brand {
    min-width: 0;
  }

  .public-brand-title {
    font-size: 18px;
  }

  .public-actions {
    gap: 4px;
  }

  .link-button {
    padding: 0 4px;
    font-size: 13px;
    white-space: nowrap;
  }

  .nav-signup-button {
    min-width: 104px;
    padding: 0 10px;
    font-size: 14px;
    white-space: nowrap;
  }

}

@media (max-width: 360px) {
  .public-actions .link-button {
    display: none;
  }
}
