:root {
  --app-font-family: Arial, Helvetica, sans-serif;
  --ui-surface: #ffffff;
  --ui-soft: #fbfdff;
  --ui-line: #dbe6f2;
  --ui-line-strong: #cfe0f4;
  --ui-shadow-field: 0 8px 18px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --ui-shadow-card: 0 10px 24px rgba(15, 23, 42, 0.04);
  --ui-radius: 14px;
  --ui-radius-card: 18px;
  --ui-section-gap: 14px;
  --ui-container-gap: 14px;
  --ui-element-gap: 10px;
  --ui-container-padding: 18px;
  --ui-page-header-padding-y: 14px;
  --ui-page-header-title-size: 24px;
  --ui-page-header-title-weight: 700;
  --ui-page-header-title-gap: 3px;
  --ui-page-header-title-line-height: 1.15;
  --ui-page-header-description-size: 12px;
  --ui-page-header-description-weight: 700;
  --ui-page-header-description-line-height: 1.35;
  --ui-control-height: 40px;
  --ui-icon-control-size: 40px;
  --ui-control-padding-x: 16px;
  --ui-field-min: 160px;
  --ui-panel-min: 320px;
  --bg: #f2f5f8;
  --panel: #183b95;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2d5fcb;
  --primary-dark: #244fba;
  --border: #dbe2ea;
  --success: #166534;
  --warning: #92400e;
  --danger: #b91c1c;
  --shell-header-height: 58px;
  --app-sidebar-width: 248px;
  --app-sidebar-collapsed-width: 88px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

body {
  margin: 0;
  font-family: var(--app-font-family);
  font-size: 13px;
  line-height: 1.4;
  background:
    radial-gradient(900px 520px at 110% -10%, rgba(96, 165, 250, 0.12), transparent 46%),
    radial-gradient(760px 420px at -10% 15%, rgba(56, 189, 248, 0.08), transparent 42%),
    linear-gradient(180deg, #f5f8fc 0%, #edf3fb 100%);
  color: var(--text);
}

html,
body,
body *,
body *::before,
body *::after,
input,
textarea,
select,
button,
table,
thead,
tbody,
tfoot,
tr,
th,
td {
  font-family: var(--app-font-family) !important;
}

.app-shell-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--shell-header-height);
  padding: 5px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-bottom: 1px solid rgba(180, 201, 230, 0.8);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.app-shell-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.app-shell-logo {
  width: auto;
  max-width: min(520px, 42vw);
  max-height: 48px;
  height: auto;
  object-fit: contain;
  display: block;
}

.app-shell-title {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  transform: translate(-50%, -50%);
  margin: 0;
  color: #1746a2;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
}

.top-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-menu {
  position: relative;
  display: inline-block;
}

.account-menu-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: min(420px, 46vw);
  padding: 6px 10px 6px 7px;
  border: 1px solid #d7e4f5;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  list-style: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: transform 120ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.account-menu-summary::-webkit-details-marker {
  display: none;
}

.account-menu-summary:hover {
  transform: translateY(-1px);
  border-color: #b7cdec;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.account-menu-avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e8f0ff;
  color: #2146a7;
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(33, 70, 167, 0.1);
}

.account-menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-menu-summary-text {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}

.account-menu-summary-text strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-summary-text span {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-caret {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 14px;
  font-weight: 900;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 1200;
  width: min(340px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid #d7e4f5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.account-menu-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 8px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.account-menu-profile .account-menu-avatar {
  width: 42px;
  height: 42px;
  font-size: 15px;
}

.account-menu-profile div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-menu-profile strong,
.account-menu-profile span,
.account-menu-profile em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-profile strong {
  color: #0f172a;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.account-menu-profile span {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.account-menu-profile em {
  color: #2563eb;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.account-menu-action {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 0 10px;
  border: 1px solid #dbe6f2;
  border-radius: 9px;
  background: #f8fbff;
  color: #1746a2;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.account-menu-action:hover {
  background: #eef5ff;
}

.account-menu-logout {
  justify-content: center;
  border-color: #fecaca;
  background: #fff7f7;
  color: #b91c1c;
}

.account-menu-logout:hover {
  background: #fee2e2;
}

body.account-profile-modal-open {
  overflow: hidden;
}

.account-profile-modal[hidden] {
  display: none;
}

.account-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: Arial, Helvetica, sans-serif;
}

.account-profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(3px);
  animation: account-profile-fade-in 150ms ease-out;
}

.account-profile-modal-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #d7e4f5;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  animation: account-profile-rise-in 170ms ease-out;
}

.account-profile-shell {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 14px;
  font-family: Arial, Helvetica, sans-serif;
}

.account-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #d7e4f5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.account-profile-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.account-profile-heading .user-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #cfe0f4;
  border-radius: 50%;
  background: #e8f0ff;
  color: #2146a7;
  font-size: 18px;
  font-weight: 800;
}

.account-profile-heading .user-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.account-profile-heading h1 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.account-profile-heading p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
}

.account-profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-profile-close {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid #d7e4f5;
  border-radius: 8px;
  background: #f8fbff;
  color: #475569;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.account-profile-close:hover {
  border-color: #b7cdec;
  background: #eef5ff;
  color: #1746a2;
}

.account-profile-message {
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 13px;
  font-weight: 700;
}

.account-profile-form {
  display: grid;
  gap: 14px;
}

.account-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.account-profile-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.account-profile-card h2 {
  margin: 0;
  color: #1f3b53;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.account-profile-card label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.account-profile-card input {
  width: 100%;
  min-width: 0;
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #cbd9ea;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.account-profile-card input[type="file"] {
  padding: 8px 10px;
}

.account-profile-card input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.18);
  border-color: #60a5fa;
}

.account-profile-help {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.account-profile-submit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d7e4f5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.account-profile-submit button,
.account-profile-submit .link-button {
  width: auto;
  min-width: 130px;
  min-height: 42px;
  height: 42px;
  margin: 0;
  padding: 0 18px;
}

.account-profile-submit .button-secondary {
  border-color: #cbd9ea;
  background: #ffffff;
  color: #334155;
}

.account-profile-modal-loading,
.account-profile-modal-error {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.account-profile-modal-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: account-profile-spin 700ms linear infinite;
}

@keyframes account-profile-spin { to { transform: rotate(360deg); } }
@keyframes account-profile-fade-in { from { opacity: 0; } }
@keyframes account-profile-rise-in { from { opacity: 0; transform: translateY(10px) scale(0.99); } }

@media (max-width: 760px) {
  .account-profile-modal { padding: 10px; }
  .account-profile-modal-dialog { max-height: calc(100vh - 20px); }
  .account-profile-shell { padding: 10px; }
  .account-profile-grid { grid-template-columns: 1fr; }
  .account-profile-header { align-items: flex-start; }
  .account-profile-heading p { overflow-wrap: anywhere; }
}

.tool-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 12px 6px 7px;
  border: 1px solid #d7e4f5;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.tool-login-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f0ff;
  color: #2146a7;
  font-size: 11px;
}

.layout {
  display: grid;
  grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - var(--shell-header-height));
  transition: grid-template-columns 180ms ease;
  overflow-x: clip;
}

.layout.sidebar-collapsed,
.sidebar-collapsed-pref .layout {
  grid-template-columns: var(--app-sidebar-collapsed-width) minmax(0, 1fr);
}

.left {
  background:
    radial-gradient(680px 360px at -10% -8%, rgba(71, 202, 255, 0.28), transparent 44%),
    radial-gradient(540px 280px at 104% 14%, rgba(120, 176, 255, 0.2), transparent 42%),
    linear-gradient(180deg, #183b95 0%, #2445ab 38%, #2d4fbc 100%);
  color: #f5fbff;
  padding: 10px 14px 18px;
  border-right: 1px solid rgba(173, 216, 255, 0.14);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: var(--shell-header-height);
  height: calc(100vh - var(--shell-header-height));
  max-height: calc(100vh - var(--shell-header-height));
  overflow: visible;
  z-index: 1200;
}

.sidebar-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex: 0 0 auto;
}

.sidebar-mini-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 251, 255, 0.78);
}

.sidebar-collapse {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(248, 251, 255, 0.9);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 140ms ease, color 140ms ease;
}

.sidebar-collapse:hover {
  transform: translateY(-1px);
  color: #ffffff;
}

.sidebar-collapse:active {
  transform: translateY(0) scale(0.97);
}

.sidebar-collapse:focus-visible {
  outline: none;
  color: #ffffff;
}

.sidebar-collapse svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.layout.sidebar-collapsed .sidebar-collapse svg,
.sidebar-collapsed-pref .layout .sidebar-collapse svg {
  transform: rotate(180deg);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  border: 0;
  box-shadow: none;
  overflow-y: auto;
  overflow-x: visible;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(219, 234, 254, 0.5) transparent;
}

.side-nav::-webkit-scrollbar {
  width: 6px;
}

.side-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.45);
}

.tab-btn {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 22px;
  padding: 11px 14px;
  color: #edf7ff;
  background: transparent;
  text-decoration: none;
  transition: transform 120ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.tab-btn:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.08);
}

.tab-btn.sidebar-management-link {
  margin-top: auto;
}

.tab-btn.active {
  position: relative;
  background: #f8fbff;
  border-color: rgba(191, 219, 254, 0.95);
  color: #123a7a;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.tab-btn.active .tab-icon,
.tab-btn.active .tab-label {
  color: #123a7a;
}

.tab-btn.active .tab-icon {
  background: #e4efff;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(23, 70, 162, 0.08);
}

.tab-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f3faff;
}

.tab-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-label {
  white-space: nowrap;
}

.layout.sidebar-collapsed .tab-btn,
.sidebar-collapsed-pref .layout .tab-btn {
  position: relative;
  justify-content: center;
  min-height: 52px;
  padding: 11px 8px;
  border-radius: 18px;
}

.layout.sidebar-collapsed .tab-icon,
.sidebar-collapsed-pref .layout .tab-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
}

.layout.sidebar-collapsed .tab-btn.active .tab-icon,
.sidebar-collapsed-pref .layout .tab-btn.active .tab-icon {
  background: transparent;
  box-shadow: none;
}

.layout.sidebar-collapsed .tab-icon svg,
.sidebar-collapsed-pref .layout .tab-icon svg {
  width: 30px;
  height: 30px;
}

.layout.sidebar-collapsed .tab-label,
.sidebar-collapsed-pref .layout .tab-label {
  display: none;
}

.layout.sidebar-collapsed .tab-btn::after,
.sidebar-collapsed-pref .layout .tab-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  min-width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 4000;
}

.layout.sidebar-collapsed .tab-btn:hover::after,
.layout.sidebar-collapsed .tab-btn:focus-visible::after,
.sidebar-collapsed-pref .layout .tab-btn:hover::after,
.sidebar-collapsed-pref .layout .tab-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.layout.sidebar-collapsed .sidebar-head,
.sidebar-collapsed-pref .layout .sidebar-head {
  justify-content: center;
}

.main {
  min-width: 0;
  padding: 22px 22px 34px;
}

.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 42px 20px;
}

.container:has(.survey-login-shell) {
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

.survey-login-shell {
  --login-navy: #061b64;
  --login-blue: #074ecb;
  --login-cyan: #16bce7;
  --login-ink: #111a35;
  --login-muted: #3f4664;
  --login-line: rgba(133, 190, 235, 0.58);
  --login-shadow: 0 26px 70px rgba(16, 66, 148, 0.16);
  --login-radius: 28px;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 585px);
  grid-template-rows: auto;
  justify-content: center;
  align-content: center;
  justify-items: center;
  gap: 0;
  width: 100%;
  padding: clamp(18px, 3vh, 42px) clamp(22px, 5vw, 80px);
  overflow: hidden;
  color: var(--login-ink);
  background: #f5f6f8;
}

.survey-login-shell,
.survey-login-shell * {
  box-sizing: border-box;
}

.survey-login-brand-panel {
  display: grid;
  gap: clamp(18px, 3vh, 24px);
  justify-items: start;
  max-width: 500px;
  margin-left: 0;
  justify-self: end;
}

.survey-login-brand-lockup {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 18px);
}

.survey-login-brand-symbol {
  display: block;
  width: clamp(52px, 5.1vw, 76px);
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 16px 18px rgba(8, 74, 184, 0.1));
}

.survey-login-brand-wordmark {
  display: block;
  width: clamp(220px, 22vw, 345px);
  height: auto;
  object-fit: contain;
  object-position: center;
}

.survey-login-copy {
  display: grid;
  gap: clamp(12px, 2vh, 18px);
}

.survey-login-copy h1 {
  max-width: 450px;
  margin: 0;
  color: var(--login-navy);
  font-size: clamp(34px, min(4vw, 6.5vh), 54px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 800;
}

.survey-login-copy h1 span {
  display: block;
  color: var(--login-cyan);
}

.survey-login-copy p {
  max-width: 430px;
  margin: 0;
  color: var(--login-navy);
  font-size: clamp(14px, min(1.35vw, 2.25vh), 18px);
  line-height: 1.5;
  font-weight: 400;
}

.survey-login-feature-row {
  position: relative;
  width: min(100%, 500px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(4px, 1.3vh, 10px);
  padding: clamp(10px, 1.7vh, 14px) 8px;
  border: 1px solid rgba(161, 207, 242, 0.62);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(235, 248, 255, 0.58));
  box-shadow: 0 20px 54px rgba(12, 87, 179, 0.1);
  backdrop-filter: blur(12px);
}

.survey-login-feature-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.survey-login-feature {
  min-height: clamp(70px, 10.5vh, 84px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 0 6px;
  text-align: center;
  color: var(--login-navy);
  border-right: 1px solid rgba(6, 27, 100, 0.18);
}

.survey-login-feature:last-child {
  border-right: 0;
}

.survey-login-feature svg {
  width: clamp(30px, 4.7vh, 38px);
  height: clamp(30px, 4.7vh, 38px);
  fill: none;
  stroke: url(#surveyLoginFeatureStroke);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.survey-login-feature strong {
  font-size: clamp(11px, 1.55vh, 12px);
  line-height: 1.18;
  font-weight: 800;
}

.survey-login-card {
  position: relative;
  width: 100%;
  padding: clamp(28px, 4vh, 46px) clamp(30px, 4.8vw, 58px);
  border: 1px solid var(--login-line);
  border-radius: var(--login-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(252, 254, 255, 0.86)),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--login-shadow);
  backdrop-filter: blur(14px);
}

.survey-login-card-head {
  text-align: center;
  margin-bottom: clamp(20px, 3.4vh, 28px);
}

.survey-login-card-head h2 {
  margin: 0 0 4px;
  color: var(--login-cyan);
  font-size: clamp(21px, min(2.45vw, 3.4vh), 25px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
}

.survey-login-card-head p {
  margin: 0;
  color: var(--login-muted);
  font-size: clamp(13px, 1.9vh, 16px);
  line-height: 1.4;
  font-weight: 400;
}

.survey-login-message {
  margin: -16px 0 18px;
}

.survey-login-form {
  display: grid;
  gap: clamp(14px, 2.3vh, 18px);
}

.survey-login-field {
  display: grid;
  gap: clamp(6px, 1.1vh, 9px);
  color: var(--login-navy);
  font-size: clamp(14px, 1.9vh, 16px);
  line-height: 1.2;
  font-weight: 800;
}

.survey-login-field-control {
  position: relative;
  display: block;
}

.survey-login-field-control svg {
  position: absolute;
  left: 19px;
  top: 50%;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #4b5168;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.survey-login-field input {
  width: 100%;
  height: clamp(48px, 7vh, 56px);
  padding: 0 18px 0 60px;
  color: var(--login-ink);
  border: 1px solid rgba(170, 183, 205, 0.62);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 10px 22px rgba(32, 98, 180, 0.05);
  font-size: 16px;
  font-weight: 400;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.survey-login-field input:focus {
  border-color: var(--login-blue);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(22, 189, 232, 0.14), 0 14px 30px rgba(32, 98, 180, 0.1);
}

.survey-login-field input::placeholder {
  color: #63677b;
  opacity: 1;
}

.survey-login-field input:-webkit-autofill,
.survey-login-field input:-webkit-autofill:hover,
.survey-login-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111936;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.5) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.survey-login-help a {
  color: var(--login-blue);
  text-decoration: none;
  font-weight: 700;
}

.survey-login-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 2px;
  color: var(--login-muted);
  font-size: 14px;
}

.survey-login-meta-row a {
  color: var(--login-blue);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.survey-login-remember {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: var(--login-muted);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.survey-login-remember input {
  width: 20px;
  height: 20px;
  accent-color: var(--login-blue);
}

.survey-login-submit {
  width: 100%;
  height: clamp(50px, 7.2vh, 58px);
  margin-top: clamp(4px, 1.2vh, 8px);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #0632a8, #0758dc);
  box-shadow: 0 18px 36px rgba(4, 55, 179, 0.24);
  cursor: pointer;
  font-size: clamp(18px, 2.8vh, 22px);
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.survey-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(4, 55, 179, 0.29);
  filter: brightness(1.03);
}

.survey-login-submit:active {
  transform: translateY(1px);
  box-shadow: 0 12px 24px rgba(4, 55, 179, 0.22);
}

.survey-login-divider {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: clamp(20px, 3.7vh, 30px) 0 clamp(16px, 3vh, 24px);
  color: var(--login-muted);
  font-size: 15px;
  font-weight: 800;
  background: none;
}

.survey-login-divider::before,
.survey-login-divider::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: rgba(7, 78, 203, 0.14);
}

.survey-login-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: left;
}

.survey-login-help p {
  margin: 0;
  color: var(--login-muted);
  font-size: clamp(13px, 1.9vh, 16px);
  line-height: 1.35;
  font-weight: 400;
}

.survey-login-help strong {
  color: var(--login-navy);
  font-size: clamp(14px, 1.9vh, 16px);
  font-weight: 800;
}

.survey-login-help-icon {
  width: clamp(44px, 6.6vh, 54px);
  height: clamp(44px, 6.6vh, 54px);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(210, 235, 255, 0.82);
}

.survey-login-help-icon svg {
  width: clamp(23px, 3.6vh, 29px);
  height: clamp(23px, 3.6vh, 29px);
  fill: none;
  stroke: var(--login-navy);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.survey-login-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(6, 27, 100, 0.16);
  border-radius: 50%;
  background: rgba(245, 246, 248, 0.92);
  color: var(--login-navy);
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.survey-login-close:hover {
  border-color: var(--login-blue);
  background: #e8f0ff;
  color: var(--login-blue);
}

.survey-login-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.survey-login-access-note {
  margin: 18px 0 0;
  text-align: center;
  color: var(--login-muted);
  font-size: 13px;
}

.auth-shell {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: min(100%, 460px);
}

@media (max-width: 880px) {
  .survey-login-shell {
    grid-template-columns: 1fr;
    place-items: center;
    height: auto;
    overflow: auto;
  }

  .survey-login-brand-panel {
    justify-items: center;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }

  .survey-login-card {
    max-width: 520px;
    margin: 0 auto;
    min-height: 0;
  }
}

@media (min-width: 881px) and (max-height: 680px) {
  .survey-login-shell {
    grid-template-columns: minmax(390px, 540px);
  }

  .survey-login-brand-panel {
    max-width: 470px;
  }

  .survey-login-copy h1 {
    max-width: 420px;
    font-size: clamp(31px, min(3.7vw, 6vh), 46px);
  }

  .survey-login-copy p {
    max-width: 410px;
    line-height: 1.42;
  }

  .survey-login-card {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .survey-login-card-head h2 {
    font-size: 30px;
  }

  .survey-login-field input {
    height: 46px;
  }

  .survey-login-submit {
    height: 50px;
  }
}

@media (max-width: 720px) {
  .survey-login-brand-lockup {
    flex-direction: column;
    gap: 10px;
  }

  .survey-login-brand-symbol {
    width: 64px;
  }

  .survey-login-brand-wordmark {
    width: min(360px, 86vw);
  }

  .survey-login-copy h1 {
    font-size: 42px;
  }

  .survey-login-copy p {
    font-size: 18px;
  }

  .survey-login-feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }

  .survey-login-feature {
    min-height: 102px;
    border-right: 0;
  }

  .survey-login-card {
    padding: 34px 24px 28px;
    border-radius: 24px;
  }

  .survey-login-field input {
    height: 56px;
  }

  .survey-login-meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
  }

  .survey-login-submit {
    height: 58px;
  }

  .survey-login-card-head h2 {
    font-size: 26px;
  }

  .survey-login-card-head p,
  .survey-login-help p {
    font-size: 13px;
  }

  .survey-login-divider {
    margin: 24px 0 20px;
  }
}

.page-head,
.section-head,
.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--ui-container-gap);
}

.dashboard-hero {
  align-items: center;
  padding: 20px;
}

.dashboard-hero h1,
.page-head h1,
.card h1,
.card h2,
.card h3 {
  margin-top: 0;
}

.page-head.card {
  padding-top: var(--ui-page-header-padding-y);
  padding-bottom: var(--ui-page-header-padding-y);
}

.page-head h1 {
  font-family: var(--app-font-family);
  font-size: var(--ui-page-header-title-size);
  font-weight: var(--ui-page-header-title-weight);
  margin-bottom: var(--ui-page-header-title-gap);
  line-height: var(--ui-page-header-title-line-height);
}

.page-head .muted {
  font-size: var(--ui-page-header-description-size);
  font-weight: var(--ui-page-header-description-weight);
  margin-top: 0;
  margin-bottom: 0;
  line-height: var(--ui-page-header-description-line-height);
}

.report-page-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: var(--ui-page-header-title-size);
  font-weight: var(--ui-page-header-title-weight);
  line-height: var(--ui-page-header-title-line-height);
}

.report-page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: var(--ui-page-header-description-size);
  font-weight: var(--ui-page-header-description-weight);
  line-height: var(--ui-page-header-description-line-height);
}

.dashboard-hero h1 {
  margin-bottom: 6px;
}

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

.status-eyebrow,
.eyebrow {
  font-size: 11px;
  color: #2563eb;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.small,
.muted {
  color: var(--muted);
  font-size: 12px;
}

.grid {
  display: grid;
  align-items: start;
  gap: var(--ui-section-gap);
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ui-panel-min)), 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ui-panel-min)), 1fr));
}

.grid.four {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ui-panel-min)), 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(214, 225, 239, 0.95);
  border-radius: var(--ui-radius-card);
  padding: var(--ui-container-padding);
  margin-bottom: var(--ui-section-gap);
  box-shadow: var(--ui-shadow-card);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: var(--ui-element-gap);
  margin-bottom: var(--ui-section-gap);
}

.dashboard-stats {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.stat {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px;
}

.dashboard-stat {
  --card-accent: #2563eb;
  --card-icon: #2563eb;
  padding: 11px 12px 12px;
  border-radius: 14px;
  border-top: 3px solid var(--card-accent);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.dashboard-stat.accent-blue { --card-accent: #2563eb; --card-icon: #2563eb; }
.dashboard-stat.accent-cyan { --card-accent: #0891b2; --card-icon: #0891b2; }
.dashboard-stat.accent-violet { --card-accent: #7c3aed; --card-icon: #7c3aed; }
.dashboard-stat.accent-green { --card-accent: #059669; --card-icon: #059669; }
.dashboard-stat.accent-amber { --card-accent: #d97706; --card-icon: #d97706; }
.dashboard-stat.accent-teal { --card-accent: #0f766e; --card-icon: #0f766e; }
.dashboard-stat.accent-slate { --card-accent: #475569; --card-icon: #475569; }

.dashboard-stat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dashboard-stat-icon {
  width: 20px;
  height: 20px;
  color: var(--card-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.dashboard-stat-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-stat-title,
.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  line-height: 1.1;
}

.dashboard-stat .v,
.stat-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 5px;
  letter-spacing: 0;
}

.dashboard-stat-desc {
  font-size: 10px;
  line-height: 1.25;
  color: #64748b;
}

.inline {
  display: flex;
  gap: var(--ui-element-gap);
  align-items: flex-start;
}

.inline > * {
  flex: 1;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

input,
textarea,
select,
button {
  width: 100%;
  min-height: var(--ui-control-height);
  border: 1px solid #d6e4f5;
  border-radius: 12px;
  padding: 0 12px;
  margin-bottom: 10px;
  font: inherit;
  background-color: #ffffff;
  box-shadow: var(--ui-shadow-field);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  border-color: #8fb7ee;
  box-shadow: 0 10px 22px rgba(23, 70, 162, 0.10), 0 0 0 3px rgba(23, 70, 162, 0.10);
  outline: none;
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  box-shadow: none;
  accent-color: var(--primary);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

textarea {
  min-height: 90px;
  padding-top: 10px;
  resize: vertical;
}

button,
.repo-create-btn,
.link-button,
.table-action {
  cursor: pointer;
  min-height: var(--ui-control-height);
  border: 1px solid var(--primary);
  color: #fff;
  background: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(0);
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

button:hover,
.repo-create-btn:hover,
.link-button:hover,
.table-action:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

button:active,
.repo-create-btn:active,
.link-button:active,
.table-action:active {
  transform: translateY(1px);
}

button:focus-visible,
.repo-create-btn:focus-visible,
.link-button:focus-visible,
.table-action:focus-visible {
  box-shadow: 0 10px 22px rgba(23, 70, 162, 0.10), 0 0 0 3px rgba(23, 70, 162, 0.12);
  outline: none;
}

button.secondary,
.secondary-link {
  background: #334155;
  color: #ffffff;
}

.btn-inline,
.repo-create-btn,
.link-button,
.table-action {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ui-control-height);
  padding: 0 var(--ui-control-padding-x);
  border-radius: 12px;
  margin: 0;
}

.repo-create-btn,
.link-button {
  border: 1px solid #2d5fcb;
  background: linear-gradient(180deg, #356fe8 0%, #285fd4 100%);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.16);
}

.secondary-link {
  border: 1px solid #334155;
  box-shadow: none;
}

.button-row {
  display: flex;
  align-items: flex-start;
  gap: var(--ui-element-gap);
  flex-wrap: wrap;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: var(--ui-element-gap);
}

.dashboard-filter-card {
  padding: 18px 18px 16px;
  margin-bottom: 10px;
}

.dashboard-filter-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ui-field-min)), 220px));
  justify-content: start;
  gap: var(--ui-element-gap);
  align-items: start;
}

.dashboard-filter-field {
  min-width: 0;
}

.dashboard-filter-field select {
  width: 100%;
  margin-bottom: 0;
}

.repository-filter-action {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.repository-filter-action label {
  visibility: hidden;
}

.dashboard-create-action .repo-create-btn {
  min-width: 220px;
  padding-inline: 18px;
  margin-bottom: 0;
}

.repository-toolbar-row {
  margin-bottom: 8px;
}

.repository-toolbar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  text-align: right;
}

.bulk-action-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#repositoryBulkAction {
  width: 132px;
  min-height: 34px;
  margin: 0;
  padding: 6px 32px 6px 10px;
  font-size: 13px;
  border-radius: 10px;
}

#repositoryBulkApplyBtn {
  min-height: var(--ui-control-height);
  margin: 0;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
}

.repo-select-col {
  width: 46px;
  text-align: center;
}

.repo-select-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
}

.repo-survey-title {
  font-weight: 700;
  color: #16324a;
}

.repo-survey-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.repo-survey-id {
  font-size: 12px;
  color: #64748b;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.repo-owner-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #edf5ff;
  color: #355070;
  font-size: 11px;
  font-weight: 700;
}

.repo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.repo-actions form {
  margin: 0;
}

.repo-primary-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #1d3557;
  border: 1px solid #d7e2ef;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.repo-primary-icon:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  border-color: #bfd1e6;
  color: #1d3557;
  transform: translateY(-1px);
}

.repo-launch-icon {
  color: #2457bc;
  border-color: #c9daf4;
  background: linear-gradient(180deg, #ffffff 0%, #f1f7ff 100%);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
}

.repo-launch-icon:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e7f1ff 100%);
  border-color: #a9c5ee;
  color: #1f4aa4;
}

.repo-danger-icon {
  color: #b42318;
  border-color: #f3d0cc;
  background: linear-gradient(180deg, #ffffff 0%, #fff7f6 100%);
  box-shadow: 0 8px 18px rgba(180, 35, 24, 0.08);
}

.repo-danger-icon:hover {
  background: linear-gradient(180deg, #fffafa 0%, #ffe9e6 100%);
  border-color: #e8b4ad;
  color: #b42318;
}

.repo-primary-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.build-page-shell {
  display: grid;
  gap: 12px;
}

.build-start-pane {
  padding: 18px;
}

.build-start-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.build-workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0;
}

.build-workspace-title {
  min-width: 0;
  font-size: 18px;
  font-weight: 800;
  color: #10233d;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.builder-back-link {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  box-shadow: none;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.builder-back-link:hover {
  color: #334155;
  background: transparent;
  text-decoration: underline;
}

#builderEditorPane {
  padding: 0 16px 18px;
  display: block;
}

.builder-workspace-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(380px, 1.08fr);
  gap: 14px;
  align-items: start;
}

.builder-panel {
  min-height: 100%;
}

.registry-panel {
  grid-column: 1 / -1;
}

#surveyRegistry {
  display: none !important;
}

.hidden {
  display: none !important;
}

.build-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.builder-subtabs {
  display: flex;
  gap: 14px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  margin: 0 0 2px;
  padding: 0 4px 14px;
  border-bottom: 1px solid #dbe4ef;
  background: transparent;
}

.builder-subtabs-topright {
  justify-content: flex-end;
  margin-bottom: 0;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
  box-shadow: 0 -10px 0 #edf3fb;
}

.builder-subtab-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0;
  border: 1px solid #dbe5f0;
  border-bottom-color: #cfd9e6;
  border-radius: 18px 18px 0 0;
  padding: 11px 26px 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f7fb 100%);
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  white-space: nowrap;
  margin-bottom: 0;
}

.builder-subtab-btn.active {
  background: linear-gradient(180deg, #edf5ff 0%, #dfeeff 100%);
  border-color: #8cb8ff;
  color: #1e3a8a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.builder-subtab-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
  border-color: #c7d6e6;
  color: #334155;
}

.launch-subtabs {
  margin-top: 6px;
}

.launch-pane {
  padding: 16px 0 4px;
}

.launch-pane-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.launch-section-block {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid #dbe4ef;
}

.launch-section-block:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.launch-setting-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 6px 12px;
  margin: 8px 0 16px;
}

.launch-setting-item {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.launch-setting-item input,
.inline-check input {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  padding: 0;
  accent-color: #285fd4;
}

.launch-setting-item label,
.inline-check label {
  margin: 0;
  color: #475569;
  font-weight: 700;
}

.launch-setting-item label {
  flex: 0 1 auto;
  min-width: 0;
}

.info-note {
  position: relative;
  margin-left: 0;
}

.info-note summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  list-style: none;
  list-style-type: none;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5b6f8c;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  user-select: none;
}

.info-note summary::marker {
  content: "";
  display: none;
}

.info-note summary::-webkit-details-marker {
  display: none;
}

.info-note[open] summary {
  color: #285fd4;
  background: transparent;
}

.info-note .small {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #dbe8f3;
  border-radius: 10px;
  background: #f8fbff;
  color: #52657d;
}

.launch-primary-btn {
  width: auto;
  min-width: 148px;
}

.status-report-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 2px 18px;
  margin: 8px 0 0;
  max-width: none;
}

.status-report-section-option {
  justify-content: flex-start;
  text-align: left;
  min-height: 22px;
  padding: 0;
  margin-bottom: 0;
  gap: 8px;
  line-height: 1.15;
  background: transparent;
  border: 0;
}

.status-report-section-option span {
  text-align: left;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

#statusCompletionCard {
  padding: 22px 24px 20px;
  border-radius: 22px;
  border: 1px solid #dbe3ef;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  background:
    radial-gradient(circle at top left, rgba(219, 234, 254, 0.65), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.status-top-shell {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 480px);
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
}

#statusCompletionCard h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.1;
  color: #0f172a;
}

#statusSurveyLabel {
  font-size: 15px;
  line-height: 1.45;
  color: #52627f;
  max-width: 560px;
}

.status-control-panel,
.status-export-panel {
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.status-control-panel {
  width: 100%;
  padding: 18px 18px 16px;
}

.status-control-header {
  margin-bottom: 10px;
}

.status-control-header .small,
.status-export-copy .small,
.status-meta-strip .small {
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}

#statusCompletionCard label {
  font-size: 12px;
  font-weight: 700;
  color: #60748e;
  margin-bottom: 6px;
  display: block;
}

#statusSurveySelect {
  min-height: 54px;
  font-size: 15px;
  border-radius: 14px;
  padding: 12px 50px 12px 16px;
  margin-bottom: 0;
  border: 1px solid #cbd5e1;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px),
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

.status-export-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: start;
  padding: 12px 12px 8px;
  margin-bottom: 14px;
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

.status-export-heading {
  margin-bottom: 2px;
}

.status-export-heading label,
.status-export-actions label {
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-export-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 8px;
  align-self: start;
}

.status-export-actions .btn-inline {
  min-height: 42px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  padding: 10px 14px;
}

#statusTrackingCard form {
  margin: 0;
}

.status-meta-strip {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.85);
  margin-bottom: 14px;
}

#statusCompletionCard .stats {
  gap: 12px;
}

#statusCompletionCard .stat {
  border-radius: 18px;
  border: 1px solid #dbe3ef;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  padding: 16px 18px;
}

#statusCompletionCard .stat .k {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

#statusCompletionCard .stat .v {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

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

#builderDetailsPane,
#builderQuestionsPane,
#builderPreviewPane {
  max-width: 1120px;
}

#builderDetailsPane > h3,
#builderQuestionsPane > h3,
.builder-question-list-card h3 {
  margin: 4px 0 14px;
  font-size: 16px;
  line-height: 1.2;
  color: #10233d;
}

#builderDetailsPane label,
#builderQuestionsPane label {
  font-size: 12px;
  font-weight: 700;
  color: #5a6f87;
  margin-bottom: 6px;
}

#builderDetailsPane input,
#builderDetailsPane textarea,
#builderDetailsPane select,
#builderQuestionsPane input,
#builderQuestionsPane textarea,
#builderQuestionsPane select {
  font-size: 14px;
  border-radius: 12px;
  border-color: #d8e3ef;
  padding: 11px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

#builderDetailsPane textarea,
#builderQuestionsPane textarea {
  min-height: 112px;
}

.builder-question-toprow {
  grid-template-columns: minmax(180px, 240px) minmax(180px, 240px) auto;
  align-items: end;
}

.builder-inline-check-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.builder-inline-check-wrap .inline-check {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #e1e9f2;
  border-radius: 12px;
  background: #f8fbff;
}

.builder-question-list-card {
  margin-top: 14px;
  background: #fbfdff;
  border-color: #dce8f5;
}

.builder-question-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.builder-meta-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.builder-preview-config {
  display: grid;
  gap: 12px;
}

.builder-preview-section-title {
  margin: 0 0 10px;
  padding-top: 6px;
  border-top: 1px solid #dbe8f3;
  font-size: 13px;
  font-weight: 800;
  color: #5b6f8c;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.builder-preview-options-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(160px, 220px) auto;
  align-items: end;
  gap: 12px;
}

.builder-preview-options-row input,
.builder-preview-options-row select {
  margin-bottom: 0;
}

.builder-preview-inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
}

.builder-preview-inline-check input {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  padding: 0;
  accent-color: #285fd4;
}

.builder-preview-inline-check label {
  margin: 0;
  white-space: nowrap;
}

.builder-preview-device-row {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0 12px;
}

.builder-preview-icon-toggle {
  display: inline-flex;
  gap: 8px;
}

.preview-icon-btn {
  min-width: 48px;
  width: 48px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.preview-icon-btn:disabled {
  color: #475569;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border: 1px solid #dbe5f0;
  opacity: 1;
}

.preview-icon-btn.active:disabled {
  color: #1e3a8a;
  background: linear-gradient(180deg, #edf5ff 0%, #dfeeff 100%);
  border-color: #8cb8ff;
}

.preview-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#builderPreviewRespondMount {
  min-height: 260px;
  margin-top: 8px;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  position: relative;
}

.build-hero {
  border-color: #cfdcf0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  padding: 11px 8px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.repository-table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

.repository-table thead th {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.repository-table tbody td {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-top: 1px solid #dde7f2;
  border-bottom: 1px solid #dde7f2;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 180ms ease;
}

.repository-table tbody td:first-child {
  border-left: 1px solid #dde7f2;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.repository-table tbody td:last-child {
  border-right: 1px solid #dde7f2;
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.repository-table tbody tr:hover td {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border-color: #cbd9ea;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.table-action {
  min-height: var(--ui-control-height);
  padding: 0 12px;
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  text-transform: capitalize;
}

.badge.draft {
  color: var(--warning);
  background: #fff7ed;
  border-color: #fdba74;
}

.badge.live,
.badge.active {
  color: var(--success);
  background: #ecfdf5;
  border-color: #86efac;
}

.badge.closed,
.badge.completed {
  color: #075985;
  background: #eff6ff;
  border-color: #93c5fd;
}

.badge.archived,
.badge.inactive {
  color: #475467;
  background: #f2f4f7;
  border-color: #d0d5dd;
}

.badge.invited,
.badge.in_progress {
  color: var(--warning);
  background: #fff7ed;
  border-color: #fed7aa;
}

.badge.revoked,
.msg.danger {
  color: var(--danger);
  background: #fef2f2;
  border-color: #fecaca;
}

.msg {
  padding: 12px 14px;
  background: #ebf8ff;
  color: #0c4a6e;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  margin-bottom: 16px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  background: #eef6ff;
  color: var(--primary);
  border: 1px solid #c7ddf7;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.scale-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scale-pill {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.scale-pill input {
  margin: 0;
  width: auto;
}

.empty-state {
  padding: 22px;
  text-align: center;
  color: var(--muted);
}

.report-empty-state {
  max-width: 760px;
  margin: 24px auto;
  padding: 32px;
  text-align: center;
}

.report-empty-state h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.report-empty-state p {
  max-width: 520px;
  margin: 0 auto;
}

.report-no-data-workspace button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.report-no-data-workspace .report-deck-shell {
  margin-top: 16px;
}

.report-no-data-workspace .report-empty-slide {
  min-height: var(--report-deck-fixed-height, 520px);
}

.report-no-data-workspace .report-empty-slide-body {
  display: grid;
  place-items: center;
  min-height: 100%;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.72);
}

.report-no-data-workspace .report-empty-placeholder {
  width: 100%;
  padding: 28px;
  color: #94a3b8;
}

.report-no-data-workspace .report-empty-toc {
  opacity: 0.72;
  pointer-events: none;
}

.report-no-data-workspace .report-empty-toc-section .report-toc-section-title {
  cursor: not-allowed;
}

.report-no-data-workspace .report-empty-toc-item {
  cursor: not-allowed;
}

.report-no-data-workspace .report-empty-toc-item .report-toc-link {
  color: #94a3b8;
}

code {
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-filter-controls {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .dashboard-create-action .repo-create-btn {
    width: 100%;
    min-width: 0;
  }

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

  .launch-setting-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .layout.sidebar-collapsed,
  .sidebar-collapsed-pref .layout {
    grid-template-columns: 1fr;
  }

  .left {
    position: static;
    display: block;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .side-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .layout.sidebar-collapsed .tab-btn,
  .sidebar-collapsed-pref .layout .tab-btn {
    justify-content: flex-start;
    min-height: 0;
    padding: 11px 14px;
  }

  .layout.sidebar-collapsed .tab-icon,
  .sidebar-collapsed-pref .layout .tab-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  .layout.sidebar-collapsed .tab-icon svg,
  .sidebar-collapsed-pref .layout .tab-icon svg {
    width: 24px;
    height: 24px;
  }

  .layout.sidebar-collapsed .tab-label,
  .sidebar-collapsed-pref .layout .tab-label {
    display: inline;
  }

  .layout.sidebar-collapsed .tab-btn::after,
  .sidebar-collapsed-pref .layout .tab-btn::after {
    display: none;
  }

  .page-head,
  .section-head,
  .dashboard-hero,
  .inline,
  .app-shell-header {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-hero-actions {
    justify-content: flex-start;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .stats,
  .dashboard-filter-controls,
  .repository-toolbar-row,
  .builder-workspace-grid,
  .builder-form-grid,
  .launch-setting-grid {
    grid-template-columns: 1fr;
  }

  .repository-toolbar-actions {
    justify-content: flex-start;
    text-align: left;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  td {
    padding-left: 0;
    padding-right: 0;
  }

  .repository-table {
    border-spacing: 0;
  }

  .repository-table tbody td,
  .repository-table tbody td:first-child,
  .repository-table tbody td:last-child {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .repository-table tbody tr {
    display: block;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
  }

  #tab-reports table {
    display: table !important;
  }

  #tab-reports thead {
    display: table-header-group !important;
  }

  #tab-reports tbody {
    display: table-row-group !important;
  }

  #tab-reports tr {
    display: table-row !important;
  }

  #tab-reports th,
  #tab-reports td {
    display: table-cell !important;
    padding-left: revert;
    padding-right: revert;
  }
}
.preview-question-card.preview-validation-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.preview-required-message {
  color: #b91c1c;
  margin-top: 10px;
}

.respondent-live-shell {
  width: min(94vw, 1180px);
  margin: 0 auto;
}

.respondent-live-banner,
.respondent-live-preread,
.respondent-live-meta,
.respondent-live-form .card {
  width: min(100%, 1180px);
  margin-left: auto;
  margin-right: auto;
}

.respondent-live-banner {
  margin-bottom: 12px;
  padding: 0 0 10px;
}

.respondent-live-form {
  display: block;
}

.respondent-live-form .card {
  padding: 20px;
  border-radius: 16px;
}

.respondent-live-form .scale-options,
.respondent-live-form .choice-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.respondent-live-form .scale-pill {
  width: 100%;
  min-height: 46px;
  justify-content: flex-start;
  padding: 12px 14px;
}

.respondent-live-form > button[type="submit"] {
  display: block;
  width: auto;
  min-width: 180px;
  margin-left: auto;
}
