.survey-theme-dashboard {
  --survey-accent: #236bdb;
  --survey-accent-dark: #10233f;
  --survey-surface: #eef4fb;
  --survey-ink: #152238;
  --survey-muted: #627089;
}

.survey-theme-dashboard body {
  background:
    radial-gradient(circle at 10% -10%, rgba(49, 212, 181, 0.18), transparent 35%),
    radial-gradient(circle at 95% 10%, rgba(79, 124, 255, 0.15), transparent 32%),
    #f4f7fb;
}

.survey-theme-dashboard .survey-shell {
  width: min(1180px, calc(100% - 2rem));
  margin-top: 1.5rem;
}

.account-page { color: var(--survey-ink); }

.account-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 0.45rem 0;
}

.account-header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.account-header nav a,
.link-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #3c4d67;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.account-header nav a:hover,
.link-button:hover { background: #e5edf7; color: #10233f; }
.account-header nav form { margin: 0; }

.account-brand {
  align-items: center;
  color: #10233f;
  display: inline-flex;
  gap: 0.75rem;
  text-decoration: none;
}

.account-brand img {
  background: #fff;
  border: 1px solid #d7e0eb;
  border-radius: 14px;
  filter: drop-shadow(0 8px 16px rgba(16, 35, 63, 0.14));
  height: 58px;
  object-fit: contain;
  padding: 0.2rem;
  width: 74px;
}

.account-brand-logo-only {
  flex-shrink: 0;
}
.account-brand span { display: flex; flex-direction: column; line-height: 1.12; }
.account-brand strong { font-size: 1.16rem; letter-spacing: -0.01em; }
.account-brand small { color: #718099; font-size: 0.75rem; font-weight: 500; margin-top: 0.2rem; }

.account-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(207, 217, 231, 0.85);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(25, 49, 82, 0.09);
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.account-card-narrow { width: 100%; }
.account-card h1, .account-card h2 { color: #10233f; letter-spacing: -0.025em; }
.account-card h1 { margin: 0 0 0.75rem; }

.login-layout {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 62vh;
  padding: 2rem 1rem 4rem;
}

.login-card {
  max-width: 440px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.login-card h1 { font-size: 2rem; margin: 0 0 1.5rem; }

.account-field { margin-bottom: 1.1rem; }
.account-field label { display: block; font-weight: 650; margin-bottom: 0.4rem; }
.account-field input:not([type="checkbox"]),
.account-field select,
.account-field textarea {
  background: #fbfcfe;
  border: 1px solid #cbd5e2;
  border-radius: 12px;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  width: 100%;
}

.account-field input:focus,
.account-field select:focus,
.account-field textarea:focus {
  border-color: #4f7cff;
  box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.12);
  outline: 0;
}

.account-checkbox { align-items: center; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.account-checkbox label { margin: 0; order: 2; }
.account-checkbox input { height: 20px; order: 1; width: 20px; }
.account-checkbox .account-help, .account-checkbox .field-errors { flex-basis: 100%; order: 3; }

.account-field input:focus-visible,
.organization-card:focus-visible,
.account-header a:focus-visible,
.link-button:focus-visible {
  outline: 3px solid var(--survey-accent);
  outline-offset: 2px;
}

.account-muted, .account-help, .account-eyebrow { color: var(--survey-muted); }
.account-help { font-size: 0.85rem; margin: 0.35rem 0 0; }
.account-eyebrow { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; margin: 0 0 0.35rem; text-transform: uppercase; }
.field-errors, .errorlist { color: #a12424; font-size: 0.87rem; list-style: none; margin: 0.35rem 0 0; padding: 0; }

.account-heading, .section-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.organization-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.organization-card {
  align-items: center;
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  color: var(--survey-ink);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  padding: 1.15rem;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.organization-card:hover { border-color: #7da0e9; box-shadow: 0 12px 30px rgba(40, 78, 130, 0.1); color: #10233f; transform: translateY(-2px); }
.organization-icon { align-items: center; background: linear-gradient(135deg, #dff9f3, #dfe8ff); border-radius: 13px; color: #174e8d; display: flex; font-size: 1.15rem; font-weight: 800; height: 48px; justify-content: center; overflow: hidden; width: 48px; }
.organization-logo { background: #fff; padding: 0; }
.organization-logo img { display: block; height: 100%; object-fit: contain; width: 100%; }
.organization-copy { display: flex; flex-direction: column; }
.organization-copy > span { color: var(--survey-muted); font-size: 0.87rem; margin-top: 0.25rem; }
.organization-arrow { color: #5276b3; font-size: 1.35rem; }

.role-badge, .status-pill { border-radius: 999px; font-size: 0.8rem; font-weight: 700; padding: 0.38rem 0.7rem; white-space: nowrap; }
.role-badge { background: #e6edff; color: #2857ae; }
.status-pill { background: #edf0f5; color: #6c7686; }
.status-active { background: #dcf7ee; color: #087c68; }
.account-back { color: #456187; display: inline-block; margin-bottom: 1rem; text-decoration: none; }
.dashboard-placeholder { background: linear-gradient(135deg, #edf4ff, #ecfbf8); border-radius: 16px; padding: 1.5rem; }
.dashboard-placeholder h2 { font-size: 1.15rem; }
.organization-workspace { text-align: right; }
.organization-workspace .account-heading { direction: rtl; }
.organization-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}
.organization-actions .btn { min-width: 170px; }
.organization-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.moked-upload-form {
  display: none;
}

.moked-upload-open {
  margin: 0;
}

body.moked-upload-open-body {
  overflow: hidden;
}

.moked-upload-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.moked-upload-modal[hidden] {
  display: none !important;
}

.moked-upload-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 35, 63, 0.5);
}

.moked-upload-modal-dialog {
  position: relative;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(25, 49, 82, 0.2);
  max-width: 440px;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: right;
  width: min(100%, 440px);
  z-index: 1;
}

.moked-upload-modal-dialog h2 {
  color: #10233f;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  padding-left: 2rem;
}

.moked-upload-modal-dialog .account-muted {
  margin: 0 0 1.25rem;
}

.moked-upload-close {
  appearance: none;
  background: #eef4fb;
  border: 0;
  border-radius: 999px;
  color: #627089;
  cursor: pointer;
  font-size: 1.35rem;
  height: 2rem;
  line-height: 1;
  padding: 0;
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2rem;
}

.moked-upload-close:hover {
  background: #e0eaf5;
  color: #10233f;
}

.moked-upload-dropzone {
  align-items: center;
  background: linear-gradient(180deg, #f8fbff 0%, #f4f8fc 100%);
  border: 1px dashed #b8c7dc;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.25rem;
}

.moked-upload-filename {
  color: #627089;
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
  word-break: break-word;
}

.moked-upload-pick {
  min-width: 160px;
}

.management-hero {
  align-items: center;
  background: linear-gradient(120deg, #10233f 0%, #194b78 68%, #117e78 100%);
  border-radius: 24px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.management-hero h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); letter-spacing: -0.035em; margin: 0 0 0.5rem; }
.management-hero p { color: #c8d9e9; margin: 0; }
.management-hero .account-eyebrow { color: #70e2cd; }
.management-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; }
.metric-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin: 1rem 0; }
.metric-card { background: #fff; border: 1px solid #dce4ef; border-radius: 18px; display: flex; flex-direction: column; padding: 1.25rem 1.5rem; }
.metric-card strong { color: #10233f; font-size: 1.85rem; line-height: 1; }
.metric-card span { color: var(--survey-muted); font-size: 0.84rem; margin-top: 0.5rem; }
.management-section { margin-top: 1rem; }
.section-heading { align-items: end; margin-bottom: 1rem; }
.section-heading h2 { font-size: 1.4rem; margin: 0; }
.section-heading a { font-weight: 700; text-decoration: none; }
.responsive-table { overflow-x: auto; }
.responsive-table table { border-collapse: collapse; min-width: 650px; width: 100%; }
.responsive-table th { color: #68778d; font-size: 0.75rem; letter-spacing: 0.06em; padding: 0.75rem; text-align: left; text-transform: uppercase; }
.responsive-table td { border-top: 1px solid #e4e9f1; padding: 0.9rem 0.75rem; vertical-align: middle; }
.responsive-table td small { color: var(--survey-muted); display: block; margin-top: 0.15rem; }
.responsive-table a { font-weight: 650; text-decoration: none; }
.management-note { color: var(--survey-muted); font-size: 0.88rem; margin: 1rem 0 0; }
.management-form-card { margin: 0 auto; max-width: 650px; }
.management-form { margin-top: 1.5rem; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.account-footer-brand {
  align-items: center;
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
}
.account-footer-brand img {
  background: #fff;
  border-radius: 12px;
  height: auto;
  padding: 0.25rem;
  width: 110px;
}
.account-footer-brand span { font-size: 0.88rem; }

@media (max-width: 800px) {
  .login-layout { padding: 1rem 0 3rem; }
  .management-hero { align-items: flex-start; flex-direction: column; }
  .management-actions { justify-content: flex-start; }
}

@media (max-width: 576px) {
  .survey-theme-dashboard .survey-shell { width: min(100% - 1rem, 1180px); }
  .account-header, .account-heading, .section-heading { align-items: flex-start; flex-direction: column; }
  .account-header nav { gap: 0; }
  .account-brand small { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .organization-grid { grid-template-columns: 1fr; }
}
