:root {
  --bg: #24262b;
  --bg-deep: #1c1e23;
  --surface: #34363c;
  --surface-2: #3d4047;
  --surface-3: #4a4d55;
  --line: rgba(255, 255, 255, 0.095);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f7fb;
  --muted: #a8abb6;
  --muted-2: #7e828e;
  --purple: #6f2cff;
  --purple-2: #985cff;
  --purple-3: #c09aff;
  --green: #5ed39a;
  --red: #ff7487;
  --amber: #ffcc73;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.18);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1500px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 16% -10%, rgba(111, 44, 255, 0.2), transparent 32rem),
    radial-gradient(circle at 86% 10%, rgba(152, 92, 255, 0.12), transparent 28rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--purple-3); text-decoration: none; }
a:hover { color: #d7c2ff; }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1.03; letter-spacing: -0.045em; }
h2 { letter-spacing: -0.025em; }

.muted { color: var(--muted); }

.eyebrow {
  display: inline-block;
  color: var(--purple-3);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  min-width: max-content;
}

.brand:hover { color: var(--text); }

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 5px rgba(111, 44, 255, 0.14), 0 0 28px rgba(111, 44, 255, 0.3);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span::before,
.brand-mark span::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(192, 154, 255, 0.8);
  border-radius: 50%;
}

.brand-mark::after { inset: 1px 12px; }
.brand-mark span::before { inset: 12px 1px; }
.brand-mark span::after {
  inset: -3px;
  border: 3px solid transparent;
  border-top-color: var(--purple-2);
  transform: rotate(35deg);
}

.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 0.9rem; letter-spacing: 0.08em; }
.brand-copy small { color: var(--muted); font-size: 0.67rem; letter-spacing: 0.19em; margin-top: 0.35rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  font-weight: 760;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-1px); color: var(--text); }
.button:active { transform: translateY(0); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(152, 92, 255, 0.38);
  outline-offset: 2px;
}

.button-primary {
  background: linear-gradient(100deg, var(--purple), var(--purple-2));
  box-shadow: 0 12px 30px rgba(111, 44, 255, 0.3);
}
.button-primary:hover { box-shadow: 0 16px 40px rgba(111, 44, 255, 0.42); }
.button-outline { background: transparent; border-color: rgba(111, 44, 255, 0.9); }
.button-outline:hover { background: rgba(111, 44, 255, 0.11); }
.button-muted { background: var(--surface-3); border-color: var(--line); }
.button-muted:hover { background: #555963; }
.button-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.button-ghost:hover { border-color: var(--line-strong); color: var(--text); }
.button-danger-soft { background: rgba(255, 116, 135, 0.12); border-color: rgba(255, 116, 135, 0.28); color: #ffb0bc; }
.button-small { min-height: 36px; padding: 0.48rem 0.85rem; font-size: 0.84rem; }
.button-wide { width: 100%; }

.field { display: grid; gap: 0.55rem; }
.field > span:first-child { color: #dfe0e8; font-size: 0.86rem; font-weight: 700; }

input, textarea, select {
  width: 100%;
  color: var(--text);
  background: rgba(25, 27, 32, 0.44);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0.88rem 1rem;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

input::placeholder, textarea::placeholder { color: #858997; }
input:hover, textarea:hover { border-color: rgba(255, 255, 255, 0.16); }
input:focus, textarea:focus {
  outline: 0;
  border-color: var(--purple-2);
  background: rgba(25, 27, 32, 0.68);
  box-shadow: 0 0 0 4px rgba(111, 44, 255, 0.12);
}
textarea { min-height: 92px; resize: vertical; }

.flash {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-soft);
}
.flash-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; margin-top: 0.38rem; background: var(--purple-2); box-shadow: 0 0 16px currentColor; }
.flash-success { border-color: rgba(94, 211, 154, 0.3); }
.flash-success .flash-dot { background: var(--green); }
.flash-error { border-color: rgba(255, 116, 135, 0.35); }
.flash-error .flash-dot { background: var(--red); }
.flash-info .flash-dot { background: var(--amber); }

/* Authentication */
.auth-page { overflow-x: hidden; }
.auth-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 5.5rem);
  min-height: 100vh;
  overflow: hidden;
}

.auth-visual::before {
  content: "";
  position: absolute;
  width: 44rem;
  height: 44rem;
  border: 1px solid rgba(152, 92, 255, 0.17);
  border-radius: 50%;
  right: -15rem;
  top: -15rem;
  box-shadow: 0 0 0 5rem rgba(111, 44, 255, 0.025), 0 0 0 10rem rgba(111, 44, 255, 0.018);
  pointer-events: none;
}

.auth-copy { position: relative; z-index: 1; max-width: 760px; margin: 6rem 0 4rem; }
.auth-copy h1 { max-width: 720px; margin-bottom: 1.5rem; }
.auth-copy p { max-width: 650px; color: var(--muted); font-size: 1.08rem; }

.auth-panel {
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(28, 30, 35, 0.72);
  border-left: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.auth-panel-inner { width: min(100%, 480px); }
.auth-panel h2 { font-size: 2.15rem; margin-bottom: 0.6rem; }
.stack-form { display: grid; gap: 1.05rem; margin-top: 1.5rem; }
.form-row-between { display: flex; justify-content: flex-end; font-size: 0.9rem; }
.auth-switch { display: flex; justify-content: center; gap: 0.5rem; color: var(--muted); margin-top: 1.5rem; font-size: 0.92rem; }
.admin-entry { display: block; text-align: center; margin-top: 1.2rem; color: var(--muted-2); font-size: 0.82rem; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 6rem; }
.password-toggle { position: absolute; right: 0.55rem; top: 50%; transform: translateY(-50%); color: var(--purple-3); background: transparent; border: 0; cursor: pointer; font-size: 0.78rem; font-weight: 700; }

.auth-dashboard-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; position: relative; z-index: 1; }
.preview-card { display: flex; align-items: center; gap: 1rem; min-height: 108px; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(61, 64, 71, 0.66); box-shadow: var(--shadow-soft); backdrop-filter: blur(16px); }
.preview-card div { display: grid; gap: 0.25rem; }
.preview-card small { color: var(--muted); }
.preview-icon { display: grid; place-items: center; flex: 0 0 54px; height: 54px; border-radius: 16px; background: linear-gradient(145deg, var(--purple), var(--purple-2)); font-size: 0.78rem; font-weight: 900; }
.mini-ring { flex: 0 0 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--purple-2) 75%, rgba(255,255,255,.12) 0); display: grid; place-items: center; }
.mini-ring::before { content: ""; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); grid-area: 1 / 1; }
.mini-ring span { grid-area: 1 / 1; z-index: 1; font-size: 0.72rem; font-weight: 800; }

.feature-list { display: grid; gap: 0.8rem; max-width: 620px; position: relative; z-index: 1; }
.feature-list > div { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(61,64,71,.5); }
.feature-list > div > span { color: var(--purple-3); font-weight: 900; }
.feature-list p { display: grid; margin: 0; }
.feature-list small { color: var(--muted); }

.compact-auth .site-footer { position: fixed; bottom: 0; left: 0; right: 0; }
.center-card-shell { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 2rem; }
.center-card { width: min(100%, 520px); padding: clamp(1.6rem, 5vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius-xl); background: rgba(52, 54, 60, 0.9); box-shadow: var(--shadow); }
.center-card .brand { margin-bottom: 3rem; }
.center-card h1 { font-size: clamp(2rem, 7vw, 3.1rem); }
.back-link { display: inline-block; margin-top: 1.35rem; color: var(--muted); }
.dev-notice { margin-top: 1rem; padding: 1rem; border: 1px dashed rgba(255,204,115,.4); background: rgba(255,204,115,.07); border-radius: var(--radius-md); }
.dev-notice p { margin: .45rem 0; color: var(--muted); }

/* Portal shell */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 78px;
  padding: 0.9rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(31, 33, 38, 0.83);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}
.topbar-actions { display: flex; align-items: center; gap: 0.8rem; }
.identity-chip { display: flex; align-items: center; gap: 0.75rem; padding: 0.45rem 0.75rem 0.45rem 0.45rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); }
.identity-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(145deg, var(--purple), var(--purple-2)); font-weight: 900; }
.identity-copy { display: grid; max-width: 260px; line-height: 1.2; }
.identity-copy strong, .identity-copy small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.identity-copy strong { font-size: 0.82rem; }
.identity-copy small { color: var(--muted); font-size: 0.72rem; margin-top: 0.18rem; }
.identity-admin .identity-avatar { background: linear-gradient(145deg, #4338ca, var(--purple-2)); }

.app-shell { width: min(calc(100% - 2rem), var(--max-width)); margin: 0 auto; padding: 2rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr 0.72fr; gap: 1rem; }
.hero-card { min-height: 220px; padding: clamp(1.3rem, 2.5vw, 2.2rem); border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(145deg, rgba(61,64,71,.92), rgba(49,51,57,.9)); box-shadow: var(--shadow-soft); }
.hero-main { position: relative; overflow: hidden; }
.hero-main::after { content: ""; position: absolute; right: -5rem; top: -7rem; width: 20rem; height: 20rem; border-radius: 50%; border: 28px solid rgba(111,44,255,.16); box-shadow: 0 0 0 24px rgba(111,44,255,.04); }
.hero-main > * { position: relative; z-index: 1; }
.hero-main h1 { font-size: clamp(2.2rem, 4vw, 4.6rem); margin-bottom: 1rem; }
.hero-main p { max-width: 760px; color: var(--muted); }
.hero-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }
.hero-meta span { padding: .38rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: #d6d8e0; font-size: .76rem; background: rgba(255,255,255,.035); }
.progress-card { display: flex; align-items: center; gap: 1.4rem; }
.progress-card h2, .status-card h2 { margin-bottom: .55rem; }
.progress-ring { --value: 0; flex: 0 0 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--purple-2) calc(var(--value) * 1%), rgba(255,255,255,.12) 0); box-shadow: 0 0 32px rgba(111,44,255,.15); }
.progress-ring::before { content: ""; width: 96px; height: 96px; border-radius: 50%; background: var(--surface); grid-area: 1 / 1; box-shadow: inset 0 0 0 1px var(--line); }
.progress-ring > span { grid-area: 1 / 1; z-index: 1; display: grid; text-align: center; }
.progress-ring strong { font-size: 1.35rem; }
.progress-ring small { color: var(--muted); font-size: .72rem; }
.status-card { display: grid; align-content: center; gap: 1rem; }
.status-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(145deg, var(--purple), var(--purple-2)); font-size: 1.4rem; box-shadow: 0 12px 28px rgba(111,44,255,.28); }

.portal-toolbar, .admin-hero, .submission-detail-hero { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin: 2.2rem 0 1rem; }
.portal-toolbar h2, .admin-hero h1, .submission-detail-hero h1 { margin-bottom: .35rem; }
.portal-toolbar p { margin: 0; }

.questionnaire-form { display: grid; gap: 1rem; }
.section-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(52,54,60,.88); box-shadow: var(--shadow-soft); }
.section-card.is-hidden { display: none; }
.section-summary { display: flex; align-items: center; gap: 1rem; list-style: none; padding: 1rem 1.15rem; cursor: pointer; user-select: none; background: linear-gradient(90deg, rgba(111,44,255,.13), transparent 36%); }
.section-summary::-webkit-details-marker { display: none; }
.section-number { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg, var(--purple), var(--purple-2)); font-weight: 900; box-shadow: 0 10px 26px rgba(111,44,255,.25); }
.section-heading { display: grid; flex: 1; }
.section-heading strong { font-size: 1.08rem; }
.section-heading small { color: var(--muted); margin-top: .18rem; }
.section-chevron { font-size: 1.35rem; color: var(--purple-3); transition: transform 180ms ease; }
.section-card[open] .section-chevron { transform: rotate(180deg); }
.section-body { border-top: 1px solid var(--line); padding: 1rem; }
.section-note { margin-top: 1rem; padding: 1rem; border: 1px solid rgba(152,92,255,.22); border-radius: var(--radius-md); color: var(--muted); background: rgba(111,44,255,.06); }
.section-note strong { color: var(--purple-3); }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.field-card { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.025); }
.field-wide { grid-column: 1 / -1; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { color: #f3edff; background: rgba(22,24,28,.56); font-size: .78rem; letter-spacing: .045em; text-transform: uppercase; }
tbody tr:last-child > * { border-bottom: 0; }
.contact-table th[scope="row"] { min-width: 210px; color: #e7e8ef; }
.contact-table input { min-width: 180px; }

.question-list { display: grid; gap: .7rem; }
.question-row { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(420px, 1.1fr); gap: 1rem; align-items: start; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.024); }
.question-copy label { display: block; color: #ebecf2; font-weight: 680; line-height: 1.45; }
.choice-column { display: grid; gap: .75rem; }
.choice-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice-pill { position: relative; cursor: pointer; }
.choice-pill input { position: absolute; opacity: 0; pointer-events: none; }
.choice-pill span { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: .48rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.035); transition: all 150ms ease; }
.choice-pill:hover span { color: var(--text); border-color: rgba(152,92,255,.6); }
.choice-pill input:checked + span { color: white; border-color: transparent; background: linear-gradient(100deg, var(--purple), var(--purple-2)); box-shadow: 0 8px 22px rgba(111,44,255,.28); }
.choice-pill input:focus-visible + span { outline: 3px solid rgba(152,92,255,.35); outline-offset: 2px; }
.question-group-title { display: flex; align-items: center; gap: .75rem; padding: .9rem .35rem .25rem; color: var(--purple-3); }
.question-group-title span { width: 28px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--purple), var(--purple-2)); }

.privacy-notice { white-space: pre-line; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(20,22,26,.35); color: #c8cad3; line-height: 1.65; }
.confirmation-grid { margin-top: .8rem; }
.confirmation-choice p { color: #e4e5ec; margin-bottom: .8rem; }
.confirmation-pill span { min-width: 130px; }

.form-action-bar { position: sticky; bottom: 1rem; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border: 1px solid rgba(152,92,255,.28); border-radius: 22px; background: rgba(38,40,46,.88); backdrop-filter: blur(24px); box-shadow: 0 22px 60px rgba(0,0,0,.4); }
.action-buttons { display: flex; gap: .7rem; }
.autosave-state { display: flex; align-items: center; gap: .65rem; color: var(--muted); font-size: .86rem; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 15px rgba(94,211,154,.8); }
.autosave-state.is-saving .pulse-dot { background: var(--amber); animation: pulse 1s infinite; }
.autosave-state.is-error .pulse-dot { background: var(--red); }
@keyframes pulse { 50% { opacity: .35; transform: scale(.75); } }

.history-card, .admin-section, .admin-search-card, .answer-card { margin-top: 2rem; padding: clamp(1rem, 2.5vw, 1.6rem); border: 1px solid var(--line); border-radius: var(--radius-xl); background: rgba(52,54,60,.84); box-shadow: var(--shadow-soft); }
.section-title-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.section-title-row h2 { margin-bottom: 0; }
.count-badge { padding: .45rem .75rem; border-radius: 999px; background: rgba(111,44,255,.12); color: var(--purple-3); font-size: .78rem; font-weight: 800; }
.submission-list { display: grid; gap: .65rem; }
.submission-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.025); }
.submission-item > div { display: grid; }
.submission-item small { color: var(--muted); }
.empty-state { display: grid; place-items: center; gap: .7rem; min-height: 130px; color: var(--muted); text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(111,44,255,.12); color: var(--purple-3); font-weight: 900; }


/* Anlagen und Datei-Upload */
.attachment-section { border-color: rgba(152,92,255,.34); }
.upload-panel { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(300px, 1.1fr); gap: 1rem; }
.upload-dropzone { position: relative; display: grid; place-items: center; align-content: center; gap: .45rem; min-height: 230px; padding: 1.5rem; border: 1px dashed rgba(152,92,255,.62); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(111,44,255,.13), rgba(255,255,255,.025)); text-align: center; cursor: pointer; transition: transform 150ms ease, border-color 150ms ease, background 150ms ease; }
.upload-dropzone:hover { transform: translateY(-2px); border-color: var(--purple-2); background: linear-gradient(145deg, rgba(111,44,255,.2), rgba(255,255,255,.04)); }
.upload-dropzone:focus-within { outline: 3px solid rgba(152,92,255,.28); outline-offset: 3px; }
.upload-dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload-dropzone strong { color: white; font-size: 1.05rem; }
.upload-dropzone > span:not(.upload-icon) { color: var(--muted); }
.upload-dropzone small { max-width: 440px; color: var(--muted-2); line-height: 1.45; }
.upload-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: .35rem; border-radius: 20px; background: linear-gradient(135deg, var(--purple), var(--purple-2)); color: white; font-size: 1.8rem; box-shadow: 0 14px 35px rgba(111,44,255,.28); }
.pending-files { min-height: 230px; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(20,22,26,.32); }
.pending-files > strong { display: block; margin-bottom: .75rem; color: #f0eff6; }
.pending-files > p { color: var(--muted); }
.pending-files ul { display: grid; gap: .5rem; max-height: 280px; margin: 0 0 .8rem; padding: 0; overflow: auto; list-style: none; }
.pending-files li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); }
.pending-files li span { min-width: 0; overflow: hidden; color: #e7e7ee; text-overflow: ellipsis; white-space: nowrap; }
.pending-files li small { flex: 0 0 auto; color: var(--muted-2); }
.pending-files.is-empty { display: grid; place-items: center; align-content: center; text-align: center; }
.saved-attachments { margin-top: 1.2rem; }
.compact-title-row { margin-bottom: .8rem; }
.compact-title-row h3 { margin: 0; font-size: 1.1rem; }
.attachment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: .85rem; }
.attachment-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.028); }
.attachment-preview { display: grid; place-items: center; height: 170px; overflow: hidden; background: rgba(16,17,20,.55); }
.attachment-preview img, .attachment-preview video { width: 100%; height: 100%; object-fit: cover; }
.attachment-preview video { background: #111216; }
.file-type-icon { display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid rgba(152,92,255,.38); border-radius: 22px; background: rgba(111,44,255,.13); color: var(--purple-3); font-size: .86rem; font-weight: 900; letter-spacing: .04em; }
.attachment-copy { display: grid; gap: .25rem; padding: .85rem .9rem .45rem; }
.attachment-copy strong { overflow: hidden; color: #efeff5; text-overflow: ellipsis; white-space: nowrap; }
.attachment-copy small { overflow: hidden; color: var(--muted-2); text-overflow: ellipsis; white-space: nowrap; }
.attachment-actions { display: flex; flex-wrap: wrap; gap: .45rem; padding: .55rem .9rem .9rem; }
.attachment-actions .button { flex: 1 1 auto; }
.attachment-empty { min-height: 110px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); }
.attachment-admin-section { margin-bottom: 2rem; }
.admin-attachment-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Admin */
.admin-hero { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(120deg, rgba(111,44,255,.16), rgba(52,54,60,.86) 45%); }
.admin-hero h1, .submission-detail-hero h1 { font-size: clamp(2rem, 4vw, 3.6rem); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 1rem; margin-top: 1rem; }
.stat-card { display: grid; gap: .25rem; min-height: 150px; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(52,54,60,.88); box-shadow: var(--shadow-soft); }
.stat-card span { color: var(--muted); font-size: .82rem; }
.stat-card strong { align-self: center; font-size: 2.2rem; letter-spacing: -.04em; }
.stat-card small { color: var(--muted-2); }
.accent-stat { background: linear-gradient(145deg, rgba(111,44,255,.78), rgba(152,92,255,.45)); }
.accent-stat span, .accent-stat small { color: rgba(255,255,255,.8); }
.search-form { display: flex; align-items: end; gap: .7rem; }
.search-field { flex: 1; }
.admin-table-wrap { background: rgba(20,22,26,.25); }
.admin-table { min-width: 1050px; }
.admin-table td { color: #d4d6df; }
.admin-table td > strong + small { display: block; margin-top: .2rem; color: var(--muted); }
.inline-edit-form { display: flex; gap: .45rem; min-width: 280px; }
.inline-edit-form input { min-height: 38px; padding: .55rem .7rem; }
.icon-button { flex: 0 0 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(111,44,255,.55); color: white; background: rgba(111,44,255,.16); cursor: pointer; }
.status-badge { display: inline-flex; padding: .35rem .62rem; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.status-active { color: #a7f3ce; background: rgba(94,211,154,.12); }
.status-inactive { color: #ffb2bd; background: rgba(255,116,135,.12); }
.table-actions { display: flex; gap: .45rem; }

.submission-detail-hero { padding: 1.3rem 0; }
.submission-detail-hero .back-link { margin: 0 0 1rem; }
.answer-card { padding: 0; overflow: hidden; }
.answer-section-title { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.2rem; background: rgba(111,44,255,.11); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.answer-section-title:first-child { border-top: 0; }
.answer-section-title span { width: 24px; height: 3px; border-radius: 99px; background: var(--purple-2); }
.answer-section-title h2 { margin: 0; font-size: 1rem; }
.answer-row { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(300px, 1.1fr); gap: 1rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); }
.answer-row:last-child { border-bottom: 0; }
.answer-row > div:first-child { display: grid; }
.answer-row small { color: var(--muted-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; margin-top: .25rem; }
.answer-value { white-space: pre-wrap; color: #efeff5; }
.answer-empty { color: var(--muted-2); font-style: italic; }

.error-card { text-align: center; }
.error-code { display: grid; place-items: center; width: 90px; height: 90px; margin: 0 auto 1.5rem; border-radius: 28px; color: var(--purple-3); background: rgba(111,44,255,.13); font-size: 1.5rem; font-weight: 900; }

.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem clamp(1rem,4vw,3rem); border-top: 1px solid var(--line); color: var(--muted-2); font-size: .75rem; background: rgba(25,27,31,.4); }

@media (max-width: 1150px) {
  .auth-shell { grid-template-columns: 1fr 480px; }
  .auth-dashboard-preview { grid-template-columns: 1fr; }
  .preview-card { min-height: 84px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-main { grid-column: 1 / -1; }
  .status-card { display: flex; align-items: center; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .question-row { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .auth-shell { display: block; }
  .auth-visual { min-height: auto; padding: 2rem 1.2rem 3rem; }
  .auth-copy { margin: 4rem 0 2rem; }
  .auth-dashboard-preview, .feature-list { display: none; }
  .auth-panel { min-height: 62vh; border-left: 0; border-top: 1px solid var(--line); padding: 2rem 1rem 4rem; }
  .topbar { align-items: flex-start; }
  .topbar-actions { flex-wrap: wrap; justify-content: flex-end; }
  .identity-chip { order: -1; }
  .identity-copy { max-width: 160px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { grid-column: auto; }
  .progress-card { flex-direction: column; align-items: flex-start; }
  .portal-toolbar, .admin-hero, .submission-detail-hero { align-items: flex-start; flex-direction: column; }
  .field-grid { grid-template-columns: 1fr; }
  .upload-panel { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .form-action-bar { position: static; align-items: stretch; flex-direction: column; }
  .action-buttons { display: grid; grid-template-columns: 1fr; }
  .search-form { align-items: stretch; flex-direction: column; }
  .answer-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .app-shell { width: min(calc(100% - 1rem), var(--max-width)); padding-top: 1rem; }
  .topbar { position: static; padding: .8rem; }
  .topbar .brand-copy { display: none; }
  .topbar-actions { gap: .4rem; }
  .identity-chip { padding-right: .45rem; }
  .identity-copy { max-width: 125px; }
  .topbar .button-small { padding: .4rem .65rem; }
  .hero-card { border-radius: 20px; min-height: auto; }
  .hero-main::after { display: none; }
  .progress-card { flex-direction: row; align-items: center; }
  .progress-ring { flex-basis: 96px; height: 96px; }
  .progress-ring::before { width: 74px; height: 74px; }
  .portal-toolbar .button { width: 100%; }
  .section-summary { gap: .7rem; padding: .85rem; }
  .section-number { flex-basis: 36px; height: 36px; border-radius: 12px; }
  .section-heading strong { font-size: .96rem; }
  .section-body { padding: .65rem; }
  .question-row { padding: .8rem; }
  .choice-pill span { min-height: 34px; padding: .42rem .7rem; font-size: .82rem; }
  .submission-item { align-items: stretch; flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; text-align: center; }
  .center-card-shell { padding: .7rem; }
  .center-card { border-radius: 20px; }
}


/* PHP/Ionos additions */
.notice-box { padding: 1rem; border: 1px solid rgba(152,92,255,.3); border-radius: var(--radius-md); background: rgba(111,44,255,.08); color: var(--muted); }
.notice-box strong { color: var(--text); }
.setup-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.setup-grid .field-wide { grid-column:1/-1; }
.upload-panel { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr); gap:1rem; }
.upload-dropzone { position:relative; min-height:230px; display:grid; place-items:center; align-content:center; gap:.55rem; padding:1.4rem; border:1px dashed rgba(152,92,255,.45); border-radius:var(--radius-lg); background:linear-gradient(145deg,rgba(111,44,255,.13),rgba(255,255,255,.025)); text-align:center; cursor:pointer; }
.upload-dropzone input[type=file] { position:absolute; width:1px; height:1px; opacity:0; }
.upload-icon { display:grid; place-items:center; width:62px; height:62px; border-radius:20px; background:linear-gradient(135deg,var(--purple),var(--purple-2)); font-size:1.8rem; }
.pending-files { min-height:230px; padding:1.1rem; border:1px solid var(--line); border-radius:var(--radius-lg); background:rgba(20,22,26,.32); }
.pending-files ul { list-style:none; padding:0; display:grid; gap:.5rem; }
.pending-files li { display:flex; justify-content:space-between; gap:1rem; padding:.65rem .75rem; border:1px solid var(--line); border-radius:12px; }
.code-box { white-space:pre-wrap; overflow:auto; padding:1rem; border-radius:14px; background:#17181c; border:1px solid var(--line); color:#eee; font-family:ui-monospace,monospace; font-size:.82rem; }
.inline-form { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.inline-form input { min-width:180px; width:auto; flex:1 1 220px; }
.admin-table .button { white-space:nowrap; }
.file-meta { color:var(--muted); font-size:.8rem; }
.danger-note { border-color:rgba(255,116,135,.35); background:rgba(255,116,135,.08); }
@media (max-width:820px){.setup-grid,.upload-panel{grid-template-columns:1fr}.setup-grid .field-wide{grid-column:auto}}

/* ========================================================================== 
   UI 2.0 – Warm editorial interface + green questionnaire
   Inspired by contemporary mobile dashboard design: cream glass surfaces,
   bold black typography, orange/yellow highlights and organic green forms.
   ========================================================================== */

:root {
  --bg: #e8e2da;
  --bg-deep: #d8cfc3;
  --surface: #f6f0e8;
  --surface-2: #fffaf2;
  --surface-3: #e7ded2;
  --line: rgba(30, 27, 22, 0.12);
  --line-strong: rgba(30, 27, 22, 0.22);
  --text: #181915;
  --muted: #66645d;
  --muted-2: #858077;
  --purple: #ff8b43;
  --purple-2: #f0ef18;
  --purple-3: #9f541f;
  --green: #3d8e63;
  --red: #c94c54;
  --amber: #df8a24;
  --shadow: 0 34px 90px rgba(61, 42, 24, 0.16);
  --shadow-soft: 0 18px 48px rgba(61, 42, 24, 0.11);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 87% 2%, rgba(255, 210, 118, .64), transparent 31rem),
    radial-gradient(circle at 63% 10%, rgba(255, 142, 77, .28), transparent 28rem),
    linear-gradient(135deg, #ddd9d4 0%, #e8ded4 42%, #f0dfc5 100%);
}

a { color: #9b4c17; }
a:hover { color: #5b2808; }
.muted { color: var(--muted); }
.eyebrow { color: #9b4c17; letter-spacing: .14em; }

.brand { color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  border-color: rgba(24, 25, 21, .34);
  box-shadow: inset 0 0 0 5px rgba(255, 139, 67, .16), 0 10px 28px rgba(92, 52, 20, .12);
}
.brand-mark::before,
.brand-mark::after,
.brand-mark span::before,
.brand-mark span::after { border-color: rgba(168, 83, 25, .65); }
.brand-mark span::after { border-top-color: #ff8b43; }
.brand-copy small { color: var(--muted); }

input, textarea, select {
  color: var(--text);
  background: rgba(255, 253, 248, .8);
  border-color: rgba(45, 39, 31, .14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
input::placeholder, textarea::placeholder { color: #9a948a; }
input:hover, textarea:hover { border-color: rgba(45,39,31,.25); }
input:focus, textarea:focus {
  border-color: #e67b37;
  background: #fffdf9;
  box-shadow: 0 0 0 4px rgba(255,139,67,.15);
}
.field > span:first-child { color: #34332e; }
.button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline-color: rgba(255,139,67,.35);
}

.button-primary {
  color: #fff;
  background: #181915;
  box-shadow: 0 14px 30px rgba(24,25,21,.2);
}
.button-primary:hover {
  color: #181915;
  background: #f0ef18;
  box-shadow: 0 17px 38px rgba(150, 136, 0, .2);
}
.button-outline {
  color: #181915;
  border-color: rgba(24,25,21,.62);
  background: rgba(255,255,255,.28);
}
.button-outline:hover { color: #181915; background: #f0ef18; border-color: #181915; }
.button-muted { color: #181915; background: rgba(255,255,255,.54); border-color: var(--line); }
.button-muted:hover { color: #181915; background: #fffaf2; }
.button-ghost { color: #4d4b45; border-color: rgba(24,25,21,.18); }
.button-ghost:hover { color: #181915; border-color: rgba(24,25,21,.42); background: rgba(255,255,255,.42); }
.button-danger-soft { color: #9c3139; background: rgba(201,76,84,.09); border-color: rgba(201,76,84,.24); }
.password-toggle { color: #a6531e; }

.flash {
  color: #24231f;
  background: rgba(255,250,242,.88);
  border-color: rgba(24,25,21,.13);
  box-shadow: var(--shadow-soft);
}
.flash-success { border-color: rgba(61,142,99,.35); background: rgba(230,246,236,.92); }
.flash-error { border-color: rgba(201,76,84,.32); background: rgba(255,237,239,.94); }

/* Login page – paired rounded panels */
.auth-page {
  padding: clamp(.7rem, 2vw, 1.6rem);
  background:
    radial-gradient(circle at 72% 0%, rgba(255, 200, 102, .72), transparent 29rem),
    radial-gradient(circle at 58% 14%, rgba(255, 132, 76, .36), transparent 25rem),
    linear-gradient(135deg, #d9d6d2 0%, #eadfd5 52%, #eed9b7 100%);
}
.auth-shell {
  width: min(100%, 1440px);
  min-height: calc(100vh - clamp(1.4rem, 4vw, 3.2rem));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .82fr);
  gap: clamp(.8rem, 1.8vw, 1.5rem);
}
.auth-visual,
.auth-panel {
  border-radius: clamp(26px, 3vw, 42px);
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(68,43,21,.18);
}
.auth-visual {
  min-height: calc(100vh - clamp(1.4rem, 4vw, 3.2rem));
  padding: clamp(1.6rem, 4.2vw, 4.6rem);
  color: #fffdf4;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,217,87,.52), transparent 13rem),
    radial-gradient(circle at 28% 25%, rgba(255,151,66,.58), transparent 23rem),
    linear-gradient(145deg, #9a551f 0%, #744019 24%, #382614 59%, #171915 100%);
}
.auth-visual::before {
  inset: auto -7rem -7rem auto;
  width: 34rem;
  height: 34rem;
  border: 0;
  border-radius: 42%;
  background-image: radial-gradient(circle, rgba(255,255,219,.46) 1.15px, transparent 1.4px);
  background-size: 9px 9px;
  opacity: .42;
  transform: rotate(-12deg);
  box-shadow: none;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 48%, transparent 73%);
  mask-image: radial-gradient(ellipse at center, #000 0 48%, transparent 73%);
}
.auth-visual::after {
  content: "";
  position: absolute;
  inset: 9% auto auto 55%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f0ef18;
  box-shadow: 0 0 0 7px rgba(240,239,24,.12), -260px 130px 0 #f0ef18, -260px 130px 0 7px rgba(240,239,24,.1), 135px 250px 0 #f0ef18;
}
.auth-visual .brand { color: #fffdf4; }
.auth-visual .brand-copy small { color: rgba(255,255,244,.68); }
.auth-visual .brand-mark { border-color: rgba(255,255,244,.46); box-shadow: inset 0 0 0 5px rgba(255,255,255,.08); }
.auth-visual .brand-mark::before,
.auth-visual .brand-mark::after,
.auth-visual .brand-mark span::before,
.auth-visual .brand-mark span::after { border-color: rgba(255,240,196,.62); }
.auth-copy { margin: clamp(4rem, 9vh, 8rem) 0 3.2rem; }
.auth-copy .eyebrow { color: #f0ef18; }
.auth-copy h1 {
  max-width: 690px;
  color: #fffdf4;
  font-size: clamp(2.7rem, 5.5vw, 6.8rem);
  line-height: .91;
  letter-spacing: -.065em;
}
.auth-copy p { color: rgba(255,253,244,.72); }
.auth-dashboard-preview { gap: .75rem; }
.preview-card {
  min-height: 96px;
  color: #fffdf4;
  border-color: rgba(255,255,244,.14);
  border-radius: 22px;
  background: rgba(20,20,15,.43);
  box-shadow: none;
}
.preview-card:nth-child(2) { color: #181915; background: #ff9148; border-color: transparent; }
.preview-card:nth-child(3) { color: #181915; background: #f0ef18; border-color: transparent; }
.preview-card small { color: currentColor; opacity: .68; }
.preview-icon { color: #181915; background: #f0ef18; box-shadow: none; }
.preview-card:nth-child(2) .preview-icon { color: #fff; background: #181915; }
.mini-ring { background: conic-gradient(#181915 75%, rgba(24,25,21,.18) 0); }
.mini-ring::before { background: #f0ef18; }

.auth-panel {
  place-items: center;
  padding: clamp(1.6rem, 5vw, 5rem);
  color: #181915;
  border: 1px solid rgba(255,255,255,.46);
  background:
    radial-gradient(circle at 95% 1%, rgba(255,147,77,.26), transparent 16rem),
    linear-gradient(145deg, rgba(255,251,242,.91), rgba(238,230,217,.94));
  backdrop-filter: blur(28px);
}
.auth-panel::before {
  content: "";
  position: absolute;
  right: 2rem;
  top: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(24,25,21,.14);
  background: rgba(255,255,255,.28);
}
.auth-panel-inner { width: min(100%, 470px); }
.auth-panel h2 { color: #181915; font-size: clamp(2.5rem, 4vw, 4.5rem); letter-spacing: -.055em; }
.auth-panel .eyebrow { color: #a95620; }
.auth-panel .field > span:first-child { color: #34332e; }
.auth-panel input { background: rgba(255,255,255,.68); }
.auth-panel .button-primary { min-height: 54px; font-size: 1rem; }
.auth-switch { color: var(--muted); }
.admin-entry { color: #777168; }

/* Compact authentication and setup cards */
.compact-auth,
.setup-page {
  background:
    radial-gradient(circle at 82% 5%, rgba(255,204,100,.7), transparent 25rem),
    radial-gradient(circle at 20% 88%, rgba(255,137,72,.22), transparent 23rem),
    linear-gradient(135deg, #ddd9d3, #eee4d8 55%, #ecd9ba);
}
.center-card-shell { padding: clamp(.8rem, 3vw, 2.2rem); }
.center-card {
  position: relative;
  color: #181915;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 36px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,139,67,.22), transparent 15rem),
    linear-gradient(145deg, rgba(255,252,246,.95), rgba(239,232,221,.96));
  box-shadow: 0 34px 90px rgba(63,43,24,.18);
  isolation: isolate;
}
.center-card::before,
.center-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 22px;
  transform: rotate(8deg);
}
.center-card::before { width: 88px; height: 88px; right: -20px; top: 70px; background: #f0ef18; }
.center-card::after { width: 64px; height: 64px; left: -17px; bottom: 68px; background: #ff8b43; }
.center-card h1 { color: #181915; letter-spacing: -.055em; }
.center-card .brand { margin-bottom: 2.2rem; }
.compact-auth .site-footer { color: rgba(48,44,37,.62); background: transparent; border: 0; }
.admin-login-page .center-card::before { background: #ff8b43; }
.admin-login-page .center-card::after { background: #f0ef18; }
.setup-page .center-card { width: min(100%, 960px) !important; }
.setup-page .setup-status { color: #2b2a25; background: rgba(240,239,24,.33) !important; border-color: rgba(24,25,21,.15) !important; }
.setup-page .diagnostic-item { color: #24231f; background: rgba(255,255,255,.45) !important; border-color: rgba(24,25,21,.12) !important; }
.setup-page .diagnostic-item small { color: #777168 !important; }
.setup-page .technical-error { background: #2b211b !important; }

/* Shared topbar */
.topbar {
  min-height: 82px;
  color: #181915;
  background: rgba(246,240,232,.83);
  border-color: rgba(24,25,21,.1);
  box-shadow: 0 9px 32px rgba(65,47,30,.07);
  backdrop-filter: blur(24px) saturate(1.25);
}
.identity-chip { color: #181915; border-color: rgba(24,25,21,.12); background: rgba(255,255,255,.55); }
.identity-avatar { color: #181915; background: #f0ef18; }
.identity-copy small { color: #767168; }
.identity-admin .identity-avatar { color: #fff; background: #181915; }
.site-footer { color: #777168; border-color: rgba(24,25,21,.09); background: rgba(246,240,232,.66); }

/* Admin – warm editorial dashboard */
.admin-page {
  background:
    radial-gradient(circle at 91% 0%, rgba(255,211,113,.68), transparent 29rem),
    radial-gradient(circle at 62% 5%, rgba(255,139,67,.23), transparent 25rem),
    linear-gradient(135deg, #dcd8d3, #eee3d7 56%, #ead8bb);
}
.admin-page .app-shell { max-width: 1540px; }
.admin-page .eyebrow { color: #ffb476; }
.admin-hero,
.submission-detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  color: #fffdf3;
  border: 0;
  border-radius: 36px;
  background:
    radial-gradient(circle at 78% 18%, rgba(240,239,24,.34), transparent 12rem),
    radial-gradient(circle at 18% 10%, rgba(255,139,67,.5), transparent 17rem),
    linear-gradient(135deg, #70401e, #2d2417 56%, #151713);
  box-shadow: 0 28px 70px rgba(55,35,18,.2);
}
.admin-hero::after,
.submission-detail-hero::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -6rem;
  width: 26rem;
  height: 20rem;
  background-image: radial-gradient(circle, rgba(255,255,216,.45) 1px, transparent 1.25px);
  background-size: 8px 8px;
  transform: rotate(-10deg);
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
}
.admin-hero > *, .submission-detail-hero > * { position: relative; z-index: 1; }
.admin-hero h1, .submission-detail-hero h1 { color: #fffdf3; letter-spacing: -.055em; }
.admin-hero .muted, .submission-detail-hero .muted { color: rgba(255,253,243,.68); }
.admin-hero .button-primary, .submission-detail-hero .button-primary { color: #181915; background: #f0ef18; }
.admin-hero .button-primary:hover, .submission-detail-hero .button-primary:hover { color: #fff; background: #ff8b43; }
.stat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.stat-card {
  min-height: 175px;
  color: #181915;
  border: 1px solid rgba(24,25,21,.1);
  border-radius: 28px;
  background: rgba(255,250,242,.76);
  box-shadow: var(--shadow-soft);
}
.stat-card:nth-child(2) { background: #ff9551; border-color: transparent; }
.stat-card:nth-child(3) { background: #f0ef18; border-color: transparent; }
.stat-card span, .stat-card small { color: rgba(24,25,21,.65); }
.stat-card strong { font-size: clamp(2.8rem, 5vw, 5rem); line-height: .9; }
.accent-stat { color: #fff; background: #181915; }
.accent-stat span, .accent-stat small { color: rgba(255,255,255,.68); }
.admin-search-card,
.admin-section,
.answer-card {
  color: #181915;
  border-color: rgba(24,25,21,.1);
  background: rgba(255,250,242,.75);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}
.admin-table-wrap { background: rgba(255,255,255,.42); border-color: rgba(24,25,21,.11); }
.admin-table thead th { color: #fffdf3; background: #1b1c18; }
.admin-table td { color: #34332e; border-color: rgba(24,25,21,.09); }
.admin-table tbody tr { transition: background .15s ease; }
.admin-table tbody tr:hover { background: rgba(240,239,24,.12); }
.admin-table td > strong + small { color: #837e75; }
.inline-edit-form input { background: rgba(255,255,255,.74); }
.icon-button { color: #181915; border: 0; background: #f0ef18; }
.status-active { color: #245c43; background: rgba(61,142,99,.14); }
.status-inactive { color: #9e343c; background: rgba(201,76,84,.12); }
.count-badge { color: #181915; background: #f0ef18; }
.answer-section-title { color: #181915; background: rgba(255,139,67,.16); border-color: rgba(24,25,21,.09); }
.answer-section-title span { background: #ff8b43; }
.answer-row { color: #2b2a25; border-color: rgba(24,25,21,.09); }
.answer-value { color: #2b2a25; }
.answer-row small, .answer-empty { color: #888177; }
.admin-page .attachment-card { color: #181915; border-color: rgba(24,25,21,.11); background: rgba(255,255,255,.55); }
.admin-page .attachment-preview { background: #26241f; }
.admin-page .attachment-copy strong { color: #181915; }
.admin-page .file-type-icon { color: #181915; border: 0; background: #f0ef18; }

/* Questionnaire – calm green palette */
.questionnaire-page {
  --bg: #dce9df;
  --bg-deep: #c9dccd;
  --surface: #f1f7f1;
  --surface-2: #fbfdf7;
  --surface-3: #d8e6da;
  --line: rgba(22, 63, 43, .13);
  --line-strong: rgba(22, 63, 43, .24);
  --text: #173426;
  --muted: #60776a;
  --muted-2: #809387;
  --purple: #2e7954;
  --purple-2: #78a95d;
  --purple-3: #275f45;
  --green: #3f9668;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 0%, rgba(205,226,117,.52), transparent 27rem),
    radial-gradient(circle at 65% 8%, rgba(85,155,106,.18), transparent 26rem),
    linear-gradient(135deg, #d7e5da, #edf3e8 52%, #e7ebce);
}
.questionnaire-page a { color: #275f45; }
.questionnaire-page .topbar {
  color: var(--text);
  background: rgba(240,247,239,.85);
  border-color: rgba(22,63,43,.1);
}
.questionnaire-page .brand { color: var(--text); }
.questionnaire-page .brand-mark { border-color: rgba(22,63,43,.4); box-shadow: inset 0 0 0 5px rgba(46,121,84,.12); }
.questionnaire-page .brand-mark::before,
.questionnaire-page .brand-mark::after,
.questionnaire-page .brand-mark span::before,
.questionnaire-page .brand-mark span::after { border-color: rgba(46,121,84,.62); }
.questionnaire-page .brand-mark span::after { border-top-color: #78a95d; }
.questionnaire-page .identity-chip { border-color: rgba(22,63,43,.13); background: rgba(255,255,255,.58); }
.questionnaire-page .identity-avatar { color: #fff; background: #2e7954; }
.questionnaire-page .button-primary { color: #fff; background: #214f39; box-shadow: 0 14px 30px rgba(27,84,55,.2); }
.questionnaire-page .button-primary:hover { color: #173426; background: #cde275; }
.questionnaire-page .button-outline { color: #245d43; border-color: rgba(36,93,67,.58); }
.questionnaire-page .button-outline:hover { color: #173426; background: #d9e99e; border-color: #245d43; }
.questionnaire-page .button-muted { color: #173426; background: rgba(255,255,255,.62); }
.questionnaire-page input,
.questionnaire-page textarea,
.questionnaire-page select { color: #173426; background: rgba(255,255,255,.82); border-color: rgba(22,63,43,.14); }
.questionnaire-page input:focus,
.questionnaire-page textarea:focus { border-color: #3f8c63; box-shadow: 0 0 0 4px rgba(63,140,99,.14); }
.questionnaire-page .field > span:first-child { color: #244c38; }
.questionnaire-page .eyebrow { color: #5c8b44; }
.questionnaire-page .hero-grid { grid-template-columns: 1.55fr .9fr .72fr; }
.questionnaire-page .hero-card {
  min-height: 235px;
  color: #173426;
  border-color: rgba(22,63,43,.1);
  border-radius: 32px;
  background: rgba(247,251,244,.78);
  box-shadow: 0 22px 55px rgba(39,83,54,.1);
  backdrop-filter: blur(12px);
}
.questionnaire-page .hero-main {
  color: #f5f8ef;
  border: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(205,226,117,.42), transparent 12rem),
    linear-gradient(135deg, #336f50, #1f4a35 58%, #183a2b);
}
.questionnaire-page .hero-main::after {
  right: -4rem;
  top: auto;
  bottom: -7rem;
  width: 22rem;
  height: 22rem;
  border: 0;
  border-radius: 38%;
  background-image: radial-gradient(circle, rgba(239,248,208,.42) 1px, transparent 1.25px);
  background-size: 8px 8px;
  transform: rotate(-9deg);
  box-shadow: none;
  -webkit-mask-image: radial-gradient(circle, #000, transparent 69%);
  mask-image: radial-gradient(circle, #000, transparent 69%);
}
.questionnaire-page .hero-main h1 { color: #f8faee; letter-spacing: -.06em; }
.questionnaire-page .hero-main p { color: rgba(248,250,238,.72); }
.questionnaire-page .hero-main .eyebrow { color: #d9eb88; }
.questionnaire-page .hero-meta span { color: #f8faee; border-color: rgba(248,250,238,.2); background: rgba(255,255,255,.08); }
.questionnaire-page .progress-card { background: #f3f7e8; }
.questionnaire-page .status-card { background: #d9e99e; }
.questionnaire-page .progress-ring { background: conic-gradient(#2e7954 calc(var(--value) * 1%), rgba(46,121,84,.12) 0); box-shadow: none; }
.questionnaire-page .progress-ring::before { background: #fbfdf7; border-color: rgba(22,63,43,.1); }
.questionnaire-page .progress-ring small { color: #60776a; }
.questionnaire-page .status-icon { color: #fff; background: #2e7954; box-shadow: 0 12px 28px rgba(46,121,84,.22); }
.questionnaire-page .portal-toolbar h2 { color: #173426; }
.questionnaire-page .section-card {
  border-color: rgba(22,63,43,.1);
  border-radius: 25px;
  background: rgba(249,252,246,.82);
  box-shadow: 0 16px 42px rgba(39,83,54,.08);
}
.questionnaire-page .section-summary {
  color: #173426;
  background: linear-gradient(90deg, rgba(91,151,105,.17), rgba(221,235,193,.12) 58%, transparent);
}
.questionnaire-page .section-number { color: #fff; background: #2e7954; box-shadow: 0 10px 24px rgba(46,121,84,.2); }
.questionnaire-page .section-heading small { color: #667d6e; }
.questionnaire-page .section-chevron { color: #2e7954; }
.questionnaire-page .section-body { border-color: rgba(22,63,43,.1); }
.questionnaire-page .section-note { color: #5d7467; border-color: rgba(46,121,84,.2); background: rgba(104,157,96,.08); }
.questionnaire-page .section-note strong { color: #2e7954; }
.questionnaire-page .field-card,
.questionnaire-page .question-row { color: #173426; border-color: rgba(22,63,43,.1); background: rgba(255,255,255,.56); }
.questionnaire-page .question-copy label { color: #234b37; }
.questionnaire-page .choice-pill span { color: #587064; border-color: rgba(22,63,43,.2); background: rgba(255,255,255,.62); }
.questionnaire-page .choice-pill:hover span { color: #173426; border-color: #5b946e; }
.questionnaire-page .choice-pill input:checked + span { color: #fff; background: #2e7954; box-shadow: 0 8px 20px rgba(46,121,84,.2); }
.questionnaire-page .question-group-title { color: #2e7954; }
.questionnaire-page .question-group-title span { background: linear-gradient(90deg,#2e7954,#9ebf6c); }
.questionnaire-page .privacy-notice { color: #4d6859; border-color: rgba(22,63,43,.1); background: rgba(224,237,224,.54); }
.questionnaire-page .confirmation-choice p { color: #244c38; }
.questionnaire-page .table-wrap { border-color: rgba(22,63,43,.11); }
.questionnaire-page thead th { color: #f8faee; background: #214f39; }
.questionnaire-page th,
.questionnaire-page td { border-color: rgba(22,63,43,.09); }
.questionnaire-page .contact-table th[scope="row"] { color: #234b37; }
.questionnaire-page .form-action-bar {
  color: #f7faee;
  border-color: rgba(205,226,117,.26);
  background: rgba(27,65,46,.91);
  box-shadow: 0 24px 60px rgba(24,61,42,.28);
}
.questionnaire-page .form-action-bar .button-muted { color: #f5f8ee; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.1); }
.questionnaire-page .form-action-bar .button-muted:hover { color: #173426; background: #f5f8ee; }
.questionnaire-page .form-action-bar .button-primary { color: #173426; background: #d9e99e; }
.questionnaire-page .autosave-state { color: rgba(247,250,238,.7); }
.questionnaire-page .history-card { color: #173426; border-color: rgba(22,63,43,.1); background: rgba(249,252,246,.78); }
.questionnaire-page .count-badge { color: #fff; background: #2e7954; }
.questionnaire-page .submission-item { color: #173426; border-color: rgba(22,63,43,.1); background: rgba(255,255,255,.58); }
.questionnaire-page .empty-state { color: #6b8074; }
.questionnaire-page .empty-state > span { color: #2e7954; background: rgba(46,121,84,.12); }
.questionnaire-page .upload-dropzone {
  border-color: rgba(46,121,84,.46);
  background: linear-gradient(145deg, rgba(92,154,103,.13), rgba(217,233,158,.15));
}
.questionnaire-page .upload-dropzone:hover { border-color: #2e7954; background: linear-gradient(145deg, rgba(92,154,103,.2), rgba(217,233,158,.24)); }
.questionnaire-page .upload-dropzone strong { color: #214f39; }
.questionnaire-page .upload-dropzone > span:not(.upload-icon),
.questionnaire-page .upload-dropzone small { color: #61786b; }
.questionnaire-page .upload-icon { color: #fff; background: #2e7954; box-shadow: 0 14px 32px rgba(46,121,84,.2); }
.questionnaire-page .pending-files { color: #173426; border-color: rgba(22,63,43,.1); background: rgba(255,255,255,.52); }
.questionnaire-page .pending-files > strong,
.questionnaire-page .pending-files li span { color: #234b37; }
.questionnaire-page .pending-files li { border-color: rgba(22,63,43,.1); background: rgba(255,255,255,.65); }
.questionnaire-page .attachment-card { border-color: rgba(22,63,43,.1); background: rgba(255,255,255,.62); }
.questionnaire-page .attachment-copy strong { color: #234b37; }
.questionnaire-page .file-type-icon { color: #fff; border: 0; background: #2e7954; }
.questionnaire-page .site-footer { color: #64786c; border-color: rgba(22,63,43,.09); background: rgba(238,246,237,.72); }

/* Fine responsive adjustments */
@media (max-width: 1150px) {
  .auth-shell { grid-template-columns: 1fr 430px; }
  .questionnaire-page .hero-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .auth-page { padding: .55rem; }
  .auth-shell { display: grid; grid-template-columns: 1fr; }
  .auth-visual { min-height: 57vh; border-radius: 28px; }
  .auth-panel { min-height: auto; border: 0; border-radius: 28px; }
  .auth-copy { margin: 3.5rem 0 1.5rem; }
  .auth-copy h1 { font-size: clamp(2.6rem, 12vw, 5rem); }
  .compact-auth .site-footer { position: static; }
  .stat-grid { grid-template-columns: 1fr; }
  .questionnaire-page .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .auth-page { padding: .35rem; }
  .auth-visual, .auth-panel { border-radius: 24px; }
  .auth-visual { padding: 1.35rem; }
  .auth-copy h1 { font-size: 3rem; }
  .center-card { border-radius: 26px; }
  .center-card::before, .center-card::after { opacity: .55; }
  .admin-hero, .submission-detail-hero, .questionnaire-page .hero-card { border-radius: 24px; }
  .questionnaire-page .section-card { border-radius: 20px; }
}

/* ==========================================================
   PORTAL UI 3.0 – unified green visual system
   ========================================================== */
:root {
  --forest-950: #102c21;
  --forest-900: #173b2c;
  --forest-800: #214f39;
  --forest-700: #2e6f4f;
  --forest-600: #3f8b63;
  --forest-500: #5ca477;
  --sage-400: #91b99a;
  --sage-300: #b9d1b9;
  --sage-200: #d7e7d6;
  --sage-100: #eaf2e8;
  --cream-green: #f4f7ee;
  --lime-soft: #dce99b;
  --green-shadow: 0 24px 70px rgba(25, 74, 49, .16);
}

body.green-auth,
body.green-admin,
body.green-portal,
body.compact-auth,
body.admin-page,
body.portal-home,
body.upload-page {
  --purple: var(--forest-700);
  --purple-2: var(--forest-500);
  --purple-3: var(--forest-700);
  --text: var(--forest-950);
  --muted: #64796b;
  --surface: rgba(248, 251, 244, .88);
  --surface-2: rgba(255, 255, 252, .94);
  --line: rgba(25, 74, 49, .12);
  color: var(--forest-950);
  background:
    radial-gradient(circle at 88% 0%, rgba(220, 233, 155, .68), transparent 29rem),
    radial-gradient(circle at 12% 90%, rgba(92, 164, 119, .18), transparent 30rem),
    linear-gradient(135deg, #dce8de 0%, #edf3e8 52%, #e8edd5 100%);
}

body.green-auth a,
body.green-admin a,
body.green-portal a { color: var(--forest-700); }
body.green-auth a:hover,
body.green-admin a:hover,
body.green-portal a:hover { color: var(--forest-900); }

.green-auth .eyebrow,
.green-admin .eyebrow,
.green-portal .eyebrow { color: var(--forest-600); }

.green-auth .brand,
.green-admin .brand,
.green-portal .brand { color: var(--forest-950); }
.green-auth .brand-copy small,
.green-admin .brand-copy small,
.green-portal .brand-copy small { color: #708378; }
.green-auth .brand-mark,
.green-admin .brand-mark,
.green-portal .brand-mark {
  border-color: rgba(23, 59, 44, .38);
  box-shadow: inset 0 0 0 5px rgba(63, 139, 99, .12), 0 0 24px rgba(46, 111, 79, .13);
}
.green-auth .brand-mark::before,
.green-auth .brand-mark::after,
.green-auth .brand-mark span::before,
.green-auth .brand-mark span::after,
.green-admin .brand-mark::before,
.green-admin .brand-mark::after,
.green-admin .brand-mark span::before,
.green-admin .brand-mark span::after,
.green-portal .brand-mark::before,
.green-portal .brand-mark::after,
.green-portal .brand-mark span::before,
.green-portal .brand-mark span::after { border-color: rgba(46, 111, 79, .62); }
.green-auth .brand-mark span::after,
.green-admin .brand-mark span::after,
.green-portal .brand-mark span::after { border-top-color: var(--lime-soft); }

.green-auth .button-primary,
.green-admin .button-primary,
.green-portal .button-primary,
.questionnaire-page .button-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--forest-800), var(--forest-700));
  box-shadow: 0 14px 30px rgba(33, 79, 57, .22);
}
.green-auth .button-primary:hover,
.green-admin .button-primary:hover,
.green-portal .button-primary:hover,
.questionnaire-page .button-primary:hover {
  color: var(--forest-950);
  background: var(--lime-soft);
}
.green-auth .button-muted,
.green-admin .button-muted,
.green-portal .button-muted { color: var(--forest-900); background: rgba(255,255,255,.62); }
.green-auth .button-outline,
.green-admin .button-outline,
.green-portal .button-outline { color: var(--forest-800); border-color: rgba(33,79,57,.48); }
.green-auth .button-outline:hover,
.green-admin .button-outline:hover,
.green-portal .button-outline:hover { color: var(--forest-950); background: var(--sage-200); }
.green-auth input,
.green-auth textarea,
.green-auth select,
.green-admin input,
.green-admin textarea,
.green-admin select,
.green-portal input,
.green-portal textarea,
.green-portal select {
  color: var(--forest-950);
  border-color: rgba(33,79,57,.15);
  background: rgba(255,255,255,.82);
}
.green-auth input:focus,
.green-auth textarea:focus,
.green-auth select:focus,
.green-admin input:focus,
.green-admin textarea:focus,
.green-admin select:focus,
.green-portal input:focus,
.green-portal textarea:focus,
.green-portal select:focus {
  border-color: var(--forest-600);
  box-shadow: 0 0 0 4px rgba(63,139,99,.14);
}
.green-auth .field > span:first-child,
.green-admin .field > span:first-child,
.green-portal .field > span:first-child { color: var(--forest-900); }

/* Public authentication */
.green-auth.auth-page {
  background:
    radial-gradient(circle at 88% 2%, rgba(220,233,155,.72), transparent 28rem),
    radial-gradient(circle at 8% 88%, rgba(63,139,99,.24), transparent 30rem),
    linear-gradient(135deg, #cfddd1, #e9f0e4 54%, #e5ebcf);
}
.green-auth .auth-visual {
  color: #f6faef;
  background:
    radial-gradient(circle at 82% 18%, rgba(220,233,155,.38), transparent 14rem),
    radial-gradient(circle at 25% 28%, rgba(92,164,119,.42), transparent 22rem),
    linear-gradient(145deg, #387557 0%, #24553d 35%, #183a2b 72%, #102c21 100%);
  box-shadow: var(--green-shadow);
}
.green-auth .auth-visual::before {
  background-image: radial-gradient(circle, rgba(231,244,197,.45) 1.15px, transparent 1.4px);
}
.green-auth .auth-visual::after {
  background: var(--lime-soft);
  box-shadow: 0 0 0 7px rgba(220,233,155,.13), -260px 130px 0 var(--lime-soft), -260px 130px 0 7px rgba(220,233,155,.1), 135px 250px 0 var(--lime-soft);
}
.green-auth .auth-visual .brand { color: #f7faef; }
.green-auth .auth-visual .brand-copy small { color: rgba(247,250,239,.68); }
.green-auth .auth-copy .eyebrow { color: var(--lime-soft); }
.green-auth .auth-copy h1 { color: #f7faef; }
.green-auth .auth-copy p { color: rgba(247,250,239,.75); }
.green-auth .preview-card { color: #f7faef; border-color: rgba(247,250,239,.15); background: rgba(10,35,24,.42); }
.green-auth .preview-card:nth-child(2) { color: var(--forest-950); background: var(--sage-300); }
.green-auth .preview-card:nth-child(3) { color: var(--forest-950); background: var(--lime-soft); }
.green-auth .preview-icon { color: var(--forest-950); background: var(--lime-soft); }
.green-auth .preview-card:nth-child(2) .preview-icon { color: #fff; background: var(--forest-900); }
.green-auth .mini-ring { background: conic-gradient(var(--forest-900) 75%, rgba(16,44,33,.18) 0); }
.green-auth .mini-ring::before { background: var(--lime-soft); }
.green-auth .auth-panel,
.green-auth .center-card {
  color: var(--forest-950);
  border-color: rgba(255,255,255,.55);
  background:
    radial-gradient(circle at 100% 0%, rgba(185,209,185,.38), transparent 16rem),
    linear-gradient(145deg, rgba(250,252,246,.96), rgba(229,238,226,.96));
  box-shadow: var(--green-shadow);
}
.green-auth .auth-panel h2,
.green-auth .center-card h1 { color: var(--forest-950); }
.green-auth .auth-panel .eyebrow { color: var(--forest-600); }
.green-auth .auth-panel::before { border-color: rgba(33,79,57,.15); background: rgba(255,255,255,.42); }
.green-auth .center-card::before { background: var(--lime-soft); }
.green-auth .center-card::after { background: var(--sage-400); }
.green-auth .admin-entry { color: #6d7d72; }
.green-auth .site-footer { color: #65776b; background: transparent; }
.register-card { width: min(100%, 820px); }

/* Unified top navigation */
.green-admin .topbar,
.green-portal .topbar,
.questionnaire-page .topbar {
  color: var(--forest-950);
  background: rgba(243,248,240,.88);
  border-color: rgba(33,79,57,.1);
  box-shadow: 0 9px 32px rgba(32,78,54,.08);
  backdrop-filter: blur(24px) saturate(1.2);
}
.portal-nav { display:flex; align-items:center; gap:.35rem; margin-left:auto; }
.portal-nav a { padding:.62rem .85rem; border-radius:999px; color:#5d7265; font-weight:750; font-size:.88rem; }
.portal-nav a:hover { color:var(--forest-900); background:rgba(185,209,185,.35); }
.green-admin .identity-chip,
.green-portal .identity-chip,
.questionnaire-page .identity-chip { color:var(--forest-950); border-color:rgba(33,79,57,.12); background:rgba(255,255,255,.62); }
.green-admin .identity-avatar,
.green-portal .identity-avatar,
.questionnaire-page .identity-avatar { color:#fff; background:var(--forest-700); }
.green-admin .identity-admin .identity-avatar { color:var(--forest-950); background:var(--lime-soft); }
.green-admin .site-footer,
.green-portal .site-footer { color:#65776b; border-color:rgba(33,79,57,.09); background:rgba(238,246,235,.72); }

/* Home menu */
.home-shell { max-width: 1320px; }
.menu-hero,
.subpage-hero {
  display:flex; align-items:flex-end; justify-content:space-between; gap:2rem;
  min-height:245px; padding:clamp(1.6rem,4vw,3.2rem); overflow:hidden; position:relative;
  color:#f7faef; border-radius:36px;
  background:
    radial-gradient(circle at 82% 16%, rgba(220,233,155,.36), transparent 14rem),
    radial-gradient(circle at 18% 5%, rgba(92,164,119,.4), transparent 18rem),
    linear-gradient(135deg, #326f50, #1e4934 58%, #102c21);
  box-shadow:var(--green-shadow);
}
.menu-hero::after,
.subpage-hero::after {
  content:""; position:absolute; right:-3rem; bottom:-7rem; width:28rem; height:22rem;
  background-image:radial-gradient(circle, rgba(238,247,204,.42) 1px, transparent 1.25px);
  background-size:8px 8px; transform:rotate(-10deg);
  -webkit-mask-image:radial-gradient(ellipse at center,#000,transparent 70%); mask-image:radial-gradient(ellipse at center,#000,transparent 70%);
}
.menu-hero > *, .subpage-hero > * { position:relative; z-index:1; }
.menu-hero h1, .subpage-hero h1 { max-width:780px; color:#f7faef; letter-spacing:-.055em; }
.menu-hero p, .subpage-hero p { max-width:760px; color:rgba(247,250,239,.72); }
.menu-hero .eyebrow, .subpage-hero .eyebrow { color:var(--lime-soft); }
.profile-mini-card { display:flex; align-items:center; gap:.85rem; min-width:270px; padding:1rem 1.15rem; border:1px solid rgba(255,255,255,.16); border-radius:22px; background:rgba(255,255,255,.1); backdrop-filter:blur(12px); }
.profile-mini-card strong, .profile-mini-card small { display:block; }
.profile-mini-card small { margin-top:.2rem; color:rgba(247,250,239,.68); }
.large-avatar { width:52px; height:52px; font-size:1rem; background:var(--lime-soft)!important; color:var(--forest-950)!important; }
.menu-choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.2rem; margin-top:1.25rem; }
.menu-choice-card { position:relative; display:flex; min-height:370px; flex-direction:column; padding:clamp(1.4rem,3vw,2.2rem); border:1px solid rgba(33,79,57,.1); border-radius:32px; overflow:hidden; color:var(--forest-950)!important; box-shadow:0 20px 52px rgba(31,78,54,.1); transition:transform .2s ease, box-shadow .2s ease; }
.menu-choice-card:hover { transform:translateY(-4px); box-shadow:0 28px 65px rgba(31,78,54,.16); }
.questionnaire-choice { background:linear-gradient(145deg,rgba(250,253,247,.92),rgba(220,235,219,.92)); }
.upload-choice { background:linear-gradient(145deg,#dce99b,#c4dba9); }
.menu-choice-card::after { content:""; position:absolute; right:-5rem; top:-5rem; width:17rem; height:17rem; border-radius:50%; border:1px solid rgba(33,79,57,.11); box-shadow:0 0 0 30px rgba(33,79,57,.035),0 0 0 60px rgba(33,79,57,.025); }
.menu-choice-icon { display:grid; place-items:center; width:64px; height:64px; border-radius:20px; color:#fff; background:var(--forest-800); font-size:2rem; box-shadow:0 14px 30px rgba(33,79,57,.2); }
.upload-choice .menu-choice-icon { color:var(--forest-950); background:rgba(255,255,255,.55); }
.menu-choice-copy { margin:auto 0; position:relative; z-index:1; }
.menu-choice-copy h2 { margin-bottom:.65rem; font-size:clamp(2rem,4vw,3.6rem); color:var(--forest-950); letter-spacing:-.055em; }
.menu-choice-copy p { max-width:560px; color:#607467; }
.menu-choice-footer { display:flex; align-items:center; justify-content:space-between; gap:1rem; position:relative; z-index:1; padding-top:1.1rem; border-top:1px solid rgba(33,79,57,.11); color:#607467; }
.menu-choice-footer strong { color:var(--forest-900); }
.profile-overview-card { margin-top:1.2rem; padding:1.4rem; border:1px solid rgba(33,79,57,.1); border-radius:26px; background:rgba(250,253,247,.78); box-shadow:0 14px 38px rgba(31,78,54,.08); }
.profile-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; }
.profile-facts > div { padding:1rem; border-radius:18px; background:rgba(255,255,255,.62); }
.profile-facts small, .profile-facts strong { display:block; overflow-wrap:anywhere; }
.profile-facts small { color:#708277; margin-bottom:.3rem; }
.profile-facts strong { color:var(--forest-900); }

/* Standalone upload */
.upload-shell { max-width:1320px; }
.page-back-link { display:inline-flex; margin:.2rem 0 1rem; }
.subpage-hero .back-link { color:rgba(247,250,239,.76); }
.hero-file-count { display:grid; place-items:center; min-width:150px; min-height:150px; border-radius:50%; color:var(--forest-950); background:var(--lime-soft); box-shadow:0 18px 45px rgba(10,35,24,.22); }
.hero-file-count strong { font-size:3.3rem; line-height:1; }
.hero-file-count small { max-width:100px; text-align:center; color:#486052; }
.upload-workspace { margin-top:1.2rem; padding:clamp(1.2rem,3vw,2rem); border:1px solid rgba(33,79,57,.1); border-radius:28px; background:rgba(249,252,246,.82); box-shadow:0 18px 48px rgba(31,78,54,.09); }
.standalone-upload-form { display:grid; gap:1rem; }
.upload-details-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:1rem; }
.standalone-dropzone { min-height:260px; }
.file-history-card { margin-top:1.2rem; }
.user-file-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.attachment-copy p { margin:.65rem 0 0; color:#64796b; font-size:.88rem; white-space:pre-wrap; }

/* Admin in green */
body.green-admin,
body.admin-page.green-admin {
  background:
    radial-gradient(circle at 91% 0%, rgba(220,233,155,.68), transparent 30rem),
    radial-gradient(circle at 15% 90%, rgba(92,164,119,.18), transparent 30rem),
    linear-gradient(135deg,#d8e5da,#edf3e8 56%,#e5ebd1);
}
.green-admin .admin-hero,
.green-admin .submission-detail-hero {
  color:#f7faef;
  background:
    radial-gradient(circle at 78% 18%, rgba(220,233,155,.35), transparent 13rem),
    radial-gradient(circle at 18% 10%, rgba(92,164,119,.48), transparent 18rem),
    linear-gradient(135deg,#326f50,#1f4a35 58%,#102c21);
  box-shadow:var(--green-shadow);
}
.green-admin .admin-hero::after,
.green-admin .submission-detail-hero::after { background-image:radial-gradient(circle,rgba(236,247,201,.43) 1px,transparent 1.25px); }
.green-admin .admin-hero h1,
.green-admin .submission-detail-hero h1 { color:#f7faef; }
.green-admin .admin-hero .muted,
.green-admin .submission-detail-hero .muted { color:rgba(247,250,239,.7); }
.green-admin .admin-hero .button-primary,
.green-admin .submission-detail-hero .button-primary { color:var(--forest-950); background:var(--lime-soft); }
.green-admin .admin-hero .button-muted { color:#f7faef; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.1); }
.hero-actions { display:flex; flex-wrap:wrap; gap:.75rem; position:relative; z-index:2; }
.four-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
.green-admin .stat-card { color:var(--forest-950); border-color:rgba(33,79,57,.1); background:rgba(250,253,247,.78); }
.green-admin .stat-card:nth-child(2) { background:var(--sage-300); }
.green-admin .stat-card:nth-child(3) { background:var(--lime-soft); }
.green-admin .stat-card:nth-child(4) { background:#c6ddc9; }
.green-admin .accent-stat { color:#fff; background:var(--forest-900); }
.green-admin .accent-stat span,
.green-admin .accent-stat small { color:rgba(255,255,255,.68); }
.green-admin .stat-card span,
.green-admin .stat-card small { color:rgba(16,44,33,.64); }
.green-admin .admin-search-card,
.green-admin .admin-section,
.green-admin .answer-card { color:var(--forest-950); border-color:rgba(33,79,57,.1); background:rgba(249,252,246,.79); box-shadow:0 16px 44px rgba(31,78,54,.09); }
.green-admin .admin-table-wrap { background:rgba(255,255,255,.45); border-color:rgba(33,79,57,.11); }
.green-admin .admin-table thead th { color:#f7faef; background:var(--forest-900); }
.green-admin .admin-table td { color:#304b3a; border-color:rgba(33,79,57,.09); }
.green-admin .admin-table tbody tr:hover { background:rgba(185,209,185,.17); }
.green-admin .admin-table td > strong + small { color:#74867a; }
.green-admin .inline-edit-form input,
.green-admin .inline-edit-form select { background:rgba(255,255,255,.78); }
.green-admin .icon-button { color:#fff; background:var(--forest-700); }
.green-admin .count-badge { color:#fff; background:var(--forest-700); }
.green-admin .answer-section-title { color:var(--forest-950); background:rgba(185,209,185,.25); border-color:rgba(33,79,57,.09); }
.green-admin .answer-section-title span { background:var(--forest-600); }
.green-admin .answer-row,
.green-admin .answer-value { color:#304b3a; }
.green-admin .answer-row { border-color:rgba(33,79,57,.09); }
.green-admin .attachment-card { color:var(--forest-950); border-color:rgba(33,79,57,.11); background:rgba(255,255,255,.62); }
.green-admin .attachment-preview { background:var(--forest-950); }
.green-admin .attachment-copy strong { color:var(--forest-950); }
.green-admin .file-type-icon { color:#fff; background:var(--forest-700); }
.expanded-inline-form { min-width:360px; grid-template-columns:1fr 1fr; }
.expanded-inline-form .icon-button { grid-column:span 2; width:100%; }
.user-admin-table td { vertical-align:top; }
.user-admin-table .table-actions { flex-direction:column; align-items:stretch; }
.user-admin-table .table-actions form { margin:0; }
.user-admin-table .table-actions button { width:100%; }

/* World map */
.world-layout { display:grid; grid-template-columns:minmax(0,2.2fr) minmax(250px,.8fr); gap:1rem; }
.world-map-card { min-height:430px; padding:1rem; border:1px solid rgba(33,79,57,.1); border-radius:24px; background:linear-gradient(145deg,rgba(234,242,232,.82),rgba(255,255,255,.6)); }
.supplier-world-map { width:100%; min-height:360px; display:grid; place-items:center; overflow:hidden; }
.world-map-svg { width:100%; height:auto; filter:drop-shadow(0 12px 22px rgba(33,79,57,.08)); }
.map-country { stroke:rgba(16,44,33,.28); stroke-width:.55; vector-effect:non-scaling-stroke; transition:fill .18s ease,opacity .18s ease; }
.map-country:hover { stroke:var(--forest-950); stroke-width:1.25; opacity:.86; }
.map-level-0 { fill:#e4ece1; }
.map-level-1 { fill:#b8d3ba; }
.map-level-2 { fill:#83b28d; }
.map-level-3 { fill:#4d8b65; }
.map-level-4 { fill:#1f5a3e; }
.map-legend { display:flex; align-items:center; justify-content:center; gap:.3rem; color:#64796b; font-size:.78rem; }
.map-legend i { width:28px; height:9px; border-radius:999px; }
.map-legend i:nth-of-type(1){background:#b8d3ba}.map-legend i:nth-of-type(2){background:#83b28d}.map-legend i:nth-of-type(3){background:#4d8b65}.map-legend i:nth-of-type(4){background:#1f5a3e}
.country-ranking { display:grid; align-content:start; gap:.55rem; max-height:430px; overflow:auto; padding-right:.25rem; }
.country-rank-row { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.65rem; padding:.8rem .9rem; border:1px solid rgba(33,79,57,.09); border-radius:15px; background:rgba(255,255,255,.58); }
.country-rank-row strong { font-size:.9rem; }
.country-rank-row > span:last-child { display:grid; place-items:center; min-width:34px; height:34px; border-radius:50%; color:#fff; background:var(--forest-700); font-weight:800; }
.country-code-pill { color:var(--forest-800); font-size:.72rem; font-weight:850; letter-spacing:.08em; }

/* Company gallery */
.company-album-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.company-album-card { display:grid; gap:1.1rem; padding:1.25rem; border:1px solid rgba(33,79,57,.1); border-radius:24px; background:rgba(255,255,255,.58); }
.album-company-head { display:flex; align-items:center; gap:.8rem; }
.album-company-head h3 { margin:0 0 .2rem; color:var(--forest-950); }
.album-company-head small { color:#708277; }
.album-counts { display:grid; grid-template-columns:repeat(3,1fr); gap:.5rem; }
.album-counts span { padding:.75rem .4rem; border-radius:15px; text-align:center; color:#687c70; background:rgba(215,231,214,.45); font-size:.75rem; }
.album-counts strong { display:block; color:var(--forest-900); font-size:1.6rem; }
.photo-album-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.photo-album-grid .attachment-preview { aspect-ratio:1/1; }
.gallery-detail-hero { align-items:flex-end; }

/* Existing questionnaire receives unified navigation/background values */
.questionnaire-page { background:
  radial-gradient(circle at 88% 0%, rgba(220,233,155,.62), transparent 28rem),
  radial-gradient(circle at 12% 90%, rgba(92,164,119,.18), transparent 30rem),
  linear-gradient(135deg,#d8e5da,#edf3e8 54%,#e5ebd1); }

@media (max-width: 1250px) {
  .four-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .company-album-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .photo-album-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .user-file-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .portal-nav { order:3; width:100%; justify-content:center; }
  .topbar { flex-wrap:wrap; }
  .world-layout { grid-template-columns:1fr; }
  .country-ranking { max-height:280px; }
  .menu-choice-grid { grid-template-columns:1fr; }
  .upload-details-grid { grid-template-columns:1fr; }
  .profile-facts { grid-template-columns:1fr; }
}
@media (max-width: 760px) {
  .menu-hero,.subpage-hero { align-items:flex-start; flex-direction:column; border-radius:26px; }
  .profile-mini-card { min-width:0; width:100%; }
  .hero-file-count { min-width:110px; min-height:110px; }
  .hero-file-count strong { font-size:2.4rem; }
  .company-album-grid,.photo-album-grid,.user-file-grid { grid-template-columns:1fr; }
  .four-stats { grid-template-columns:1fr; }
  .expanded-inline-form { min-width:260px; grid-template-columns:1fr; }
  .expanded-inline-form .icon-button { grid-column:auto; }
  .portal-nav { overflow-x:auto; justify-content:flex-start; padding-bottom:.2rem; }
  .portal-nav a { white-space:nowrap; }
}

/* Small v3 finishing touches */
body.setup-page.green-auth {
  background:
    radial-gradient(circle at 88% 2%, rgba(220,233,155,.72), transparent 28rem),
    radial-gradient(circle at 8% 88%, rgba(63,139,99,.24), transparent 30rem),
    linear-gradient(135deg, #cfddd1, #e9f0e4 54%, #e5ebcf);
}
.setup-page.green-auth .setup-card,
.setup-page.green-auth .setup-panel,
.setup-page.green-auth .setup-header {
  border-color: rgba(33,79,57,.12);
  background: rgba(250,252,246,.9);
  box-shadow: var(--green-shadow);
}
.admin-translation-note {
  margin: 1rem;
  padding: .95rem 1.05rem;
  border: 1px solid rgba(33,79,57,.12);
  border-radius: 16px;
  color: #405b49;
  background: rgba(215,231,214,.48);
}

/* v4 diagnostics */
.diagnostic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:1.25rem 0}
.diagnostic-item{display:grid;gap:.35rem;padding:1rem;border:1px solid rgba(33,79,57,.12);border-radius:18px;background:rgba(255,255,255,.58)}
.diagnostic-item small{color:#65776b}
.diagnostic-item strong{color:var(--forest-950);overflow-wrap:anywhere}
.diagnostic-item .status-badge{justify-self:start}
@media(max-width:700px){.diagnostic-grid{grid-template-columns:1fr}}

/* =====================================================================
   V5 enterprise supplier portal – unified green UI
   ===================================================================== */
body.green-portal, body.green-admin, body.green-auth, body.pdf-screen, body.legal-page {
  --surface: rgba(252,254,249,.84); --surface-2: #eef5ec; --surface-3:#dcebdc;
  --line: rgba(28,74,52,.14); --line-strong:rgba(28,74,52,.26); --text:#102c21; --muted:#66786c;
  color:var(--forest-950); background:radial-gradient(circle at 85% -5%,rgba(218,234,164,.78),transparent 31rem),radial-gradient(circle at 5% 95%,rgba(77,145,100,.18),transparent 32rem),linear-gradient(135deg,#ceded1,#eef4e9 50%,#e6ecd4); background-attachment:fixed;
}
.language-selector{display:flex;justify-content:flex-end;margin:0 0 1.1rem}.language-selector label{display:flex;align-items:center;gap:.65rem;padding:.45rem .55rem .45rem .9rem;border:1px solid rgba(27,75,51,.15);border-radius:999px;background:rgba(255,255,255,.6);font-size:.78rem;font-weight:750;color:var(--forest-800)}.language-selector select{min-height:36px;border:0;background:transparent;color:var(--forest-950);font-weight:750}.site-footer{display:flex;justify-content:space-between;gap:1rem;max-width:var(--max-width);margin:2rem auto 0;padding:1.3rem 2rem;border-top:1px solid rgba(30,78,54,.13);color:#64776b;font-size:.82rem}.site-footer a{color:var(--forest-700)}
.required-star{color:#bd423d}.required-error{outline:2px solid rgba(191,64,58,.58)!important;outline-offset:3px}.validation-message{margin:1rem 0;padding:1rem 1.15rem;border-radius:16px;background:#fee9e7;color:#7b2723;font-weight:750}.is-hidden{display:none!important}.certificate-hint{display:block;margin-top:.45rem;color:var(--forest-600)}
.signature-upload-row{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.7fr);gap:1rem;margin:1.1rem 0}.signature-card,.continue-card,.upload-category-card,.legal-card{padding:1.3rem;border:1px solid rgba(30,78,54,.13);border-radius:26px;background:rgba(250,253,247,.84);box-shadow:0 18px 50px rgba(34,78,55,.09)}.signature-canvas{display:block;width:100%;height:220px;border:2px dashed rgba(34,91,62,.35);border-radius:18px;background:#fff;touch-action:none;cursor:crosshair}.continue-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;background:linear-gradient(145deg,#173d2d,#2d724f);color:#fff}.continue-card h2,.continue-card p{color:#fff}.continue-card .menu-choice-icon{background:rgba(255,255,255,.13);color:#fff}.continue-card .button{margin-top:auto;background:#dfea9a;color:#173526}
.upload-workspace{display:grid;gap:1rem}.upload-category-card h2{margin:0}.certificate-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.certificate-upload-card{padding:1.1rem;border:1px solid rgba(30,78,54,.13);border-radius:20px;background:rgba(221,236,219,.42)}.certificate-record{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.9rem 1rem;border-bottom:1px solid var(--line)}.certificate-record small{display:block;color:var(--muted)}
.status-pill{display:inline-flex;align-items:center;justify-content:center;padding:.35rem .65rem;border-radius:999px;font-size:.72rem;font-weight:850}.status-ok{background:#d9efdc;color:#225e3d}.status-warn{background:#fff0c5;color:#765600}.status-danger{background:#fde1dd;color:#8b2823}.status-muted{background:#e7ece7;color:#617067}
.invitation-card{margin-top:1rem}.invitation-form{display:grid;grid-template-columns:minmax(240px,1fr) minmax(190px,.5fr) auto;align-items:end;gap:.8rem;margin:1rem 0}.invitation-list{margin-top:1.2rem}.button-row{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem}.compact-table th,.compact-table td{padding:.7rem}
.editor-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;align-items:end}.editor-question-list{display:grid;gap:.55rem}.editor-question-row{display:grid;grid-template-columns:minmax(260px,1fr) auto auto 90px auto;gap:.7rem;align-items:center;padding:.8rem;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.55)}.editor-question-row small{display:block;color:var(--muted)}.check-row{display:flex;align-items:center;gap:.4rem;white-space:nowrap}.sort-input{width:85px}
.notification-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.notification-card{padding:1rem;border:1px solid var(--line);border-radius:18px;background:#fff8df}.notification-danger{background:#fee8e3;border-color:#e9aaa2}.notification-read{opacity:.65}.notification-card p{margin:.45rem 0}.alert-section{border-left:5px solid #d89e24}
.five-stats{grid-template-columns:repeat(5,minmax(0,1fr))}.country-rank-row{width:100%;border:0;text-align:left;cursor:pointer}.country-rank-row.is-active{background:var(--forest-800);color:#fff}.country-rank-row.is-active strong{color:#fff}.supplier-detail-map{height:560px;border-radius:22px;overflow:hidden}.map-status{margin:.8rem 0 0;color:var(--muted);font-size:.82rem}.map-country.has-suppliers{cursor:pointer}.company-pin-wrap{background:none!important;border:0!important}.company-pin-wrap b{position:absolute;left:20px;top:-7px;white-space:nowrap;padding:.28rem .5rem;border-radius:9px;background:rgba(18,61,43,.92);color:#fff;font-size:.72rem;box-shadow:0 5px 16px rgba(0,0,0,.22)}.company-pin{display:block;width:22px;height:22px;border:5px solid #fff;border-radius:50% 50% 50% 0;background:#2f8a5c;transform:rotate(-45deg);box-shadow:0 5px 15px rgba(20,65,43,.35)}
.legal-shell{max-width:980px}.legal-card h1{font-size:clamp(2.3rem,5vw,4rem)}.legal-card h2{margin-top:1.7rem;color:var(--forest-800)}.legal-card p{color:#445d4d}.legal-review-note{padding:1rem;border-radius:16px;background:#fff4cc!important;color:#684f08!important}
.pdf-toolbar{position:sticky;z-index:50;top:0;display:flex;justify-content:flex-end;gap:.7rem;padding:1rem;max-width:1050px;margin:auto;background:rgba(229,238,223,.92);backdrop-filter:blur(14px)}.pdf-document{width:210mm;min-height:297mm;margin:1rem auto;padding:12mm;background:#fff;color:#2e312f;box-shadow:0 20px 60px rgba(26,57,40,.18);font-family:Arial,sans-serif;font-size:10pt}.pdf-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8mm}.pdf-header img{width:72mm;max-height:22mm;object-fit:contain}.pdf-code{display:grid;color:#555;font-size:8pt}.pdf-title{text-align:center}.pdf-title h1{color:#477e4d;font-size:23pt;letter-spacing:-.02em}.pdf-meta-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;margin:5mm 0;background:#bbb;border:1px solid #bbb}.pdf-meta-grid div{display:grid;gap:2px;padding:3mm;background:#fff}.pdf-meta-grid span{overflow-wrap:anywhere}.pdf-section{break-inside:avoid;margin:6mm 0}.pdf-section h2{margin:0 0 1mm;padding:1.2mm 2mm;background:#4c814f;color:#fff;font-size:14pt}.pdf-subtitle{font-style:italic;color:#666}.pdf-section table{width:100%;border-collapse:collapse}.pdf-section th{background:#303231;color:#fff;text-align:left}.pdf-section th,.pdf-section td{padding:2mm;border:1px solid #c7c7c7;vertical-align:top}.pdf-section td:first-child{width:58%}.pdf-group td{text-align:center;background:#eee}.pdf-note,.pdf-privacy{padding:3mm;border:1px solid #ccc;background:#f6f6f6}.pdf-signature-section{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:10mm;margin-top:8mm;padding-top:4mm;border-top:1px solid #999}.pdf-signature-section img,.signature-placeholder{width:100%;height:30mm;object-fit:contain;border-bottom:1px solid #777}.pdf-footer{display:flex;justify-content:space-between;margin-top:8mm;padding-top:2mm;border-top:1px solid #bbb;color:#777;font-size:8pt}
@media print{body.pdf-screen{background:#fff}.no-print,.site-footer{display:none!important}.pdf-document{margin:0;padding:10mm;box-shadow:none;width:100%}.pdf-section{break-inside:avoid}}
@media(max-width:1100px){.five-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.notification-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-form{grid-template-columns:repeat(2,minmax(0,1fr))}.pdf-document{width:calc(100% - 1rem);padding:5vw}.signature-upload-row{grid-template-columns:1fr}.certificate-upload-grid{grid-template-columns:1fr}}
@media(max-width:760px){.invitation-form,.editor-form{grid-template-columns:1fr}.editor-question-row{grid-template-columns:1fr}.notification-grid,.five-stats{grid-template-columns:1fr}.site-footer{flex-direction:column;padding:1rem}.pdf-meta-grid{grid-template-columns:1fr 1fr}.pdf-toolbar{flex-wrap:wrap}.signature-canvas{height:180px}}
.custom-question-form{display:grid;grid-template-columns:minmax(140px,.7fr) repeat(4,minmax(150px,1fr)) auto auto auto auto;gap:.65rem;align-items:end;padding:.85rem;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.55)}.custom-question-form .field span{font-size:.72rem}@media(max-width:1250px){.custom-question-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.custom-question-form{grid-template-columns:1fr}}

/* =====================================================================
   V5.1 – green silhouette maps, postal-code markers and media modal
   ===================================================================== */
.supplier-detail-map {
  min-height: 560px;
  height: auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(25, 82, 54, .13);
  background:
    radial-gradient(circle at 78% 8%, rgba(205, 226, 117, .34), transparent 18rem),
    linear-gradient(145deg, #eaf3e8, #d7e7d9 58%, #edf3df);
}
.country-detail-panel { display:grid; gap:.8rem; min-height:560px; padding:1rem; }
.country-detail-header { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.45rem .45rem 0; }
.country-detail-header h3 { margin:.12rem 0 0; color:#163c2b; font-size:clamp(1.55rem,3vw,2.45rem); letter-spacing:-.04em; }
.country-detail-count { display:grid; min-width:86px; padding:.7rem .85rem; border:1px solid rgba(26,83,55,.14); border-radius:18px; text-align:center; background:rgba(255,255,255,.63); }
.country-detail-count strong { color:#1c6545; font-size:1.55rem; line-height:1; }
.country-detail-count span { color:#61786a; font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.country-detail-svg { display:block; width:100%; height:auto; max-height:620px; min-height:390px; filter:drop-shadow(0 18px 28px rgba(25,72,48,.12)); }
.country-detail-shape { fill:#b9d5bd; stroke:#1f6747; stroke-width:3.2; vector-effect:non-scaling-stroke; }
.country-region { stroke:rgba(25,90,57,.58); stroke-width:1.2; vector-effect:non-scaling-stroke; transition:filter .18s ease, fill .18s ease; }
.country-region-0 { fill:#d8ead6; }
.country-region-1 { fill:#c8dfc8; }
.country-region-2 { fill:#b9d5bb; }
.country-region-3 { fill:#dfeedd; }
.country-region:hover { filter:brightness(.96) saturate(1.1); }
.country-region-label { fill:#245a40; font-size:10px; font-weight:800; text-anchor:middle; paint-order:stroke; stroke:rgba(241,248,238,.88); stroke-width:3px; stroke-linejoin:round; pointer-events:none; }
.supplier-location-marker { cursor:pointer; outline:none; }
.supplier-location-halo { fill:rgba(199,46,46,.18); transform-origin:center; animation:supplierPulse 2.2s infinite ease-out; }
.supplier-location-dot { fill:#d42f2f; stroke:#fff; stroke-width:3; vector-effect:non-scaling-stroke; filter:drop-shadow(0 5px 6px rgba(93,16,16,.35)); transition:transform .16s ease, fill .16s ease; }
.supplier-location-center { fill:#8d1111; pointer-events:none; }
.supplier-location-marker:hover .supplier-location-dot,
.supplier-location-marker:focus .supplier-location-dot { fill:#f0473e; transform:scale(1.28); }
@keyframes supplierPulse { 0%{opacity:.8;transform:scale(.55)} 72%,100%{opacity:0;transform:scale(1.75)} }
.country-detail-legend { display:flex; align-items:center; flex-wrap:wrap; gap:.7rem 1rem; padding:.75rem .9rem; border:1px solid rgba(27,78,54,.12); border-radius:16px; color:#526c5c; background:rgba(255,255,255,.52); font-size:.78rem; }
.country-detail-legend span { display:inline-flex; align-items:center; gap:.42rem; font-weight:750; }
.country-detail-legend i { display:inline-block; width:14px; height:14px; border-radius:4px; }
.country-detail-legend .legend-green { background:#b9d5bd; border:1px solid #2f7653; }
.country-detail-legend .legend-red { width:12px; height:12px; border-radius:50%; background:#d42f2f; border:2px solid #fff; box-shadow:0 0 0 1px rgba(111,21,21,.26); }
.country-detail-legend small { color:#728277; }
.country-map-loading { display:grid; place-items:center; align-content:center; gap:.65rem; min-height:550px; color:#385e48; text-align:center; }
.country-map-loading small { color:#718378; }
.map-loading-dot { width:28px; height:28px; border-radius:50%; background:#2e7954; box-shadow:0 0 0 0 rgba(46,121,84,.35); animation:mapLoadingPulse 1.35s infinite; }
@keyframes mapLoadingPulse { 0%{box-shadow:0 0 0 0 rgba(46,121,84,.34)} 75%,100%{box-shadow:0 0 0 18px rgba(46,121,84,0)} }

.supplier-map-modal { position:fixed; z-index:3000; inset:0; display:grid; place-items:center; padding:1.2rem; background:rgba(11,35,24,.33); backdrop-filter:blur(15px) saturate(.85); -webkit-backdrop-filter:blur(15px) saturate(.85); }
.supplier-map-dialog { position:relative; width:min(720px,100%); max-height:min(84vh,760px); overflow:auto; padding:1.55rem; border:1px solid rgba(30,84,57,.18); border-radius:30px; color:#173a29; background:linear-gradient(145deg,rgba(252,255,248,.98),rgba(229,240,225,.97)); box-shadow:0 36px 110px rgba(12,44,27,.34); animation:supplierModalIn .2s ease-out; }
@keyframes supplierModalIn { from{opacity:0;transform:translateY(12px) scale(.97)} to{opacity:1;transform:none} }
.supplier-map-dialog h2 { margin:.2rem 2.7rem .35rem 0; color:#173f2c; font-size:clamp(1.7rem,4vw,2.65rem); letter-spacing:-.045em; }
.supplier-map-address { margin:0 0 1rem; color:#5d7465; }
.supplier-map-close { position:absolute; top:1rem; right:1rem; display:grid; place-items:center; width:42px; height:42px; border:1px solid rgba(25,73,50,.15); border-radius:50%; color:#183d2c; background:rgba(255,255,255,.72); font-size:1.55rem; cursor:pointer; transition:transform .15s ease,background .15s ease; }
.supplier-map-close:hover { transform:rotate(5deg) scale(1.05); background:#dceba7; }
.supplier-map-thumbnails { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.7rem; margin:1rem 0 1.25rem; }
.supplier-map-thumb { position:relative; display:block; aspect-ratio:1.2/1; overflow:hidden; border:1px solid rgba(25,76,51,.13); border-radius:16px; background:#d7e5d7; box-shadow:0 8px 24px rgba(26,72,48,.1); }
.supplier-map-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .22s ease; }
.supplier-map-thumb:hover img { transform:scale(1.07); }
.supplier-map-no-images { grid-column:1/-1; margin:0; padding:1.2rem; border:1px dashed rgba(34,94,61,.25); border-radius:18px; color:#6b7d71; text-align:center; background:rgba(255,255,255,.45); }
.supplier-map-modal-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:.65rem; }
body.map-modal-open { overflow:hidden; }

@media(max-width:760px){
  .country-detail-panel{padding:.65rem}.country-detail-svg{min-height:320px}.country-region-label{display:none}.supplier-map-thumbnails{grid-template-columns:repeat(2,minmax(0,1fr))}.supplier-map-dialog{padding:1.2rem;border-radius:24px}.country-detail-header{align-items:flex-start}.country-detail-count{min-width:72px}
}

/* V5.3 document downloads and official PDF rendering */
.document-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));}
.supplier-form-pdf .pdf-header{border-bottom:0;margin-bottom:4mm;gap:6mm;}
.supplier-form-pdf .pdf-code-middle{min-width:46mm;}
.supplier-form-pdf .pdf-title{text-align:left;margin-bottom:4mm;}
.supplier-form-pdf .pdf-title h1{text-align:center;color:#477e4d;margin:2mm 0 4mm;font-size:21pt;}
.supplier-form-pdf .pdf-title p{font-size:9.2pt;line-height:1.25;margin:2.5mm 0;}
.supplier-form-pdf .completion-note{border:1px solid #d2d8d2;background:#f4f7f2;padding:2mm;color:#3d6f43;font-weight:600;}
.supplier-form-pdf .pdf-section h2{font-size:12.5pt;line-height:1.1;padding:1mm 1.8mm;background:#477e4d;color:#fff;}
.supplier-form-pdf .pdf-section table{font-size:8.8pt;}
.supplier-form-pdf .pdf-section th{background:#2f302f;color:#fff;font-weight:700;}
.supplier-form-pdf .pdf-section th,.supplier-form-pdf .pdf-section td{padding:1.35mm 1.4mm;border:1px solid #bfc3bf;}
.supplier-form-pdf .pdf-section td:first-child{width:48%;}
.supplier-form-pdf .pdf-section td:nth-child(2){width:24%;}
.supplier-form-pdf .pdf-group td{background:#ecefec!important;color:#2d2f2e;text-align:center;font-weight:700;}
.supplier-form-pdf .pdf-note{font-size:8.8pt;color:#477e4d;background:#f6faf4;border:1px solid #d3dfd0;}
.supplier-form-pdf .pdf-privacy{white-space:pre-line;font-size:8.5pt;line-height:1.2;}
@media print{.supplier-form-pdf .pdf-title p{page-break-inside:avoid}.supplier-form-pdf .pdf-section{page-break-inside:auto}.supplier-form-pdf .pdf-section table{page-break-inside:auto}.supplier-form-pdf .pdf-section tr{page-break-inside:avoid}}

/* V5.7 Pflichtfeldliste, Bild-Kategorien und Ranking */
.missing-required-card{margin:22px 0;padding:22px;border:1px solid rgba(37,87,59,.18);border-radius:24px;background:linear-gradient(135deg,#f6fbf4,#edf7e8);box-shadow:0 14px 35px rgba(26,67,43,.08)}
.missing-required-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;margin:16px 0 0;padding:0;list-style:none}
.missing-required-list button{width:100%;border:1px solid rgba(31,82,53,.18);background:#fff;color:#17442d;border-radius:999px;padding:11px 14px;text-align:left;font-weight:700;cursor:pointer;box-shadow:0 6px 16px rgba(21,63,40,.06)}
.missing-required-list button:hover{background:#e9f5e5;transform:translateY(-1px)}
.image-upload-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:14px}.image-category-dropzone{min-height:155px}.image-category-dropzone strong{line-height:1.25}.score-meter{height:12px;min-width:130px;border-radius:999px;background:#e3eddf;overflow:hidden;border:1px solid rgba(26,67,43,.14);margin-bottom:6px}.score-meter span{display:block;height:100%;background:linear-gradient(90deg,#5e8d4e,#143d29);border-radius:inherit}.inline-score-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.inline-score-form input{width:84px;border-radius:14px;border:1px solid rgba(22,67,43,.2);padding:10px 12px;background:#fff}.ranking-table td{vertical-align:middle}

/* V5.9 language download and PDF selectors */
.document-language-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;margin-top:22px}
.document-language-card .button-row{align-items:center;gap:8px}
.wrap-buttons{flex-wrap:wrap}
.inline-language-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}
.inline-language-form label,.compact-select{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.72);border:1px solid rgba(44,92,59,.18);border-radius:999px;padding:6px 10px;font-size:.83rem;color:var(--green-deep)}
.inline-language-form select,.compact-select select,.pdf-lang-select{border:0;background:transparent;color:var(--green-deep);font:inherit;outline:none;max-width:170px}
.pdf-lang-select{border:1px solid rgba(44,92,59,.18);border-radius:999px;padding:8px 10px;background:#fff;margin-right:6px}
.code-of-conduct-print p{font-size:13px;line-height:1.35;margin:0 0 7px}.code-of-conduct-print .coc-heading{background:#427b49;color:#fff;font-size:16px;padding:3px 8px;margin:12px 0 7px}.pdf-toolbar .inline-language-form{margin-right:auto}
@media(max-width:760px){.inline-language-form,.compact-select{width:100%;justify-content:space-between}.document-language-grid{grid-template-columns:1fr}.pdf-lang-select{width:100%;margin:4px 0}.pdf-toolbar .inline-language-form{margin-right:0}}

/* V6.0 additions */
.ppwr-upload-section { border-color: rgba(33, 99, 61, .22); }
.ppwr-upload-grid .upload-dropzone strong { color: var(--green-900, #194b31); }
.form-help { margin: .4rem 0 0; color: var(--muted, #637468); font-size: .88rem; line-height: 1.35; }
.supplier-map-ranking { display: inline-flex; align-items: center; gap: .45rem; margin: .2rem 0 .85rem; padding: .45rem .75rem; border-radius: 999px; background: #eef7ef; color: #174b30; font-weight: 800; border: 1px solid rgba(30, 95, 58, .18); }
.ranking-table [data-copy-prompt] { white-space: nowrap; }
.admin-table small + small { margin-top: .25rem; }


/* V6.5 – Startseite, Drag & Drop Upload und Ranking-PDF */
.green-auth .auth-copy h1,
.auth-copy h1 {
  max-width: min(100%, 760px);
  font-size: clamp(2.35rem, 4.8vw, 5.8rem);
  line-height: .94;
  letter-spacing: -.055em;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.green-auth .auth-copy { max-width: min(100%, 790px); }
.green-auth .auth-dashboard-preview,
.auth-dashboard-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.green-auth .preview-card,
.preview-card { min-width: 0; align-items: flex-start; }
.green-auth .preview-card strong,
.green-auth .preview-card small,
.preview-card strong,
.preview-card small { overflow-wrap: anywhere; }
.green-auth .auth-visual { min-width: 0; }
@media (max-width: 1180px) {
  .green-auth .auth-shell,
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(360px, .76fr); }
  .green-auth .auth-copy h1,
  .auth-copy h1 { font-size: clamp(2.25rem, 6vw, 4.8rem); }
  .green-auth .auth-dashboard-preview,
  .auth-dashboard-preview { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .green-auth .auth-copy h1,
  .auth-copy h1 { font-size: clamp(2rem, 10vw, 3.25rem); line-height: 1; letter-spacing: -.045em; }
  .green-auth .auth-copy,
  .auth-copy { margin: 2.8rem 0 1.5rem; }
}
.upload-dropzone.is-dragover {
  transform: translateY(-3px) scale(1.01);
  border-color: #2e7954 !important;
  background: linear-gradient(145deg, rgba(92,154,103,.24), rgba(223,234,154,.24)) !important;
  box-shadow: 0 20px 45px rgba(33,79,57,.16);
}
.upload-dropzone.has-files {
  border-style: solid;
  border-color: rgba(46,121,84,.42) !important;
}
.selected-file-note {
  display: block;
  max-width: 100%;
  padding: .45rem .6rem;
  border-radius: 999px;
  background: rgba(33,79,57,.08);
  color: #214f39 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-report-document {
  width: 297mm;
  min-height: 210mm;
  margin: 1rem auto;
  padding: 14mm;
  color: #173526;
  background:
    radial-gradient(circle at 90% 5%, rgba(223,234,154,.55), transparent 45mm),
    linear-gradient(145deg, #f7faef, #ecf4e4);
  box-shadow: 0 28px 80px rgba(26,57,40,.18);
  font-family: Arial, sans-serif;
}
.ranking-report-header {
  display: grid;
  grid-template-columns: 1fr 70mm;
  gap: 14mm;
  align-items: start;
  padding: 10mm;
  border-radius: 16mm;
  color: #f7faef;
  background:
    radial-gradient(circle at 84% 18%, rgba(223,234,154,.38), transparent 34mm),
    linear-gradient(145deg, #123d2b, #2f704e);
}
.ranking-report-header img { width: 58mm; max-height: 25mm; object-fit: contain; justify-self: end; filter: drop-shadow(0 10px 18px rgba(0,0,0,.16)); }
.ranking-report-header h1 { margin: 2mm 0 3mm; color: #f7faef; font-size: 24pt; line-height: 1.03; letter-spacing: -.04em; }
.ranking-report-header p { margin: 0; color: rgba(247,250,239,.78); }
.ranking-summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 4mm; margin: 8mm 0; }
.ranking-summary-card { padding: 5mm; border: 1px solid rgba(33,79,57,.12); border-radius: 8mm; background: rgba(255,255,255,.75); }
.ranking-summary-card small { display:block; color:#607467; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.ranking-summary-card strong { display:block; margin-top:1mm; color:#173526; font-size:17pt; }
.leaderboard-table { width: 100%; border-collapse: separate; border-spacing: 0 2.6mm; }
.leaderboard-table th { padding: 3mm 4mm; color: #607467; font-size: 8.5pt; text-align: left; text-transform: uppercase; letter-spacing: .08em; }
.leaderboard-table td { padding: 4mm; background: rgba(255,255,255,.86); border-top: 1px solid rgba(33,79,57,.09); border-bottom: 1px solid rgba(33,79,57,.09); vertical-align: middle; }
.leaderboard-table td:first-child { border-left: 1px solid rgba(33,79,57,.09); border-radius: 8mm 0 0 8mm; }
.leaderboard-table td:last-child { border-right: 1px solid rgba(33,79,57,.09); border-radius: 0 8mm 8mm 0; }
.leaderboard-rank { display: inline-grid; place-items: center; width: 12mm; height: 12mm; border-radius: 50%; color: #fff; background: #214f39; font-weight: 900; }
.leaderboard-rank.top { color: #173526; background: #dfea9a; }
.leaderboard-company strong { display:block; font-size: 10.5pt; color: #173526; }
.leaderboard-company small { display:block; margin-top: .6mm; color:#607467; }
.leaderboard-score { min-width: 34mm; }
.leaderboard-score strong { display:block; font-size: 13pt; color:#173526; }
.leaderboard-score .score-meter { height: 7px; margin-top: 2mm; background: rgba(33,79,57,.11); }
.leaderboard-meta { color:#607467; font-size: 8.5pt; }
.leaderboard-footer { display:flex; justify-content:space-between; gap:8mm; margin-top:7mm; padding-top:4mm; border-top:1px solid rgba(33,79,57,.15); color:#607467; font-size:8pt; }
@media print {
  .ranking-report-document { width: 297mm; min-height: 210mm; margin: 0; box-shadow: none; }
}

.inline-admin-form.certificate-meta-form{display:flex;align-items:flex-end;gap:.5rem;flex-wrap:wrap;margin:0}
.inline-admin-form.certificate-meta-form label{display:flex;flex-direction:column;gap:.2rem;font-size:.72rem;font-weight:700;color:var(--muted,#5d7566)}
.inline-admin-form.certificate-meta-form input{min-width:130px;border:1px solid rgba(30,85,55,.22);border-radius:12px;padding:.55rem .7rem;background:#fff;color:#173d2a;font:inherit}
.inline-admin-form.certificate-meta-form small{color:var(--muted,#5d7566);align-self:center}
.backup-file-list{display:grid;gap:.55rem;margin-top:1rem}.backup-file-list code{white-space:normal}
/* V6.9 questionnaire hero: prevent clipped long titles */
.questionnaire-page .hero-main h1 {
  max-width: 100%;
  font-size: clamp(2.25rem, 6.2vw, 4.25rem);
  line-height: .98;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
.questionnaire-page .hero-main { min-width: 0; }
.questionnaire-page .hero-main p { max-width: 100%; }
.questionnaire-page .hero-meta { flex-wrap: wrap; }
@media (max-width: 1180px) { .questionnaire-page .hero-grid { grid-template-columns: 1fr; } }

/* V6.9 article list and ranking additions */
.article-choice { background: linear-gradient(145deg,#dfea9a,#f6fbdf); }
.article-list-form, .article-table-wrap { margin-top: 1.1rem; }
.article-entry-table input, .article-entry-table select { width: 100%; min-width: 115px; }
.article-name-cell strong { display:block; color:#173526; }
.article-name-cell small { display:block; margin-top:.3rem; color:#607467; }
.articles-admin-grid { display:grid; grid-template-columns:minmax(260px,.55fr) minmax(0,1.45fr); gap:1.2rem; align-items:start; }
.article-admin-list { display:grid; gap:.65rem; }
.submission-item.is-selected { border-color:rgba(33,79,57,.32); background:rgba(223,234,154,.22); }
.grade-pill { display:inline-grid; place-items:center; min-width:46px; padding:.4rem .55rem; border-radius:999px; font-weight:900; background:#eaf2dd; color:#173526; border:1px solid rgba(33,79,57,.18); }
.grade-plusA,.grade-A,.grade-minusA { background:#dfea9a; }
.grade-plusB,.grade-B,.grade-minusB { background:#dff0cf; }
.grade-plusC,.grade-C,.grade-minusC { background:#f1edc7; }
.grade-plusD,.grade-D,.grade-minusD { background:#f4d6c7; }
.score-meter.auto-score span { background:#6a9a48; }
.criteria-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:1rem 0; }
.criteria-grid article { padding:1rem; border-radius:22px; background:rgba(255,255,255,.72); border:1px solid rgba(33,79,57,.1); }
.language-change-form { margin-top:1rem; align-items:end; }
input[type="date"] { position: relative; }
@media(max-width:900px){ .articles-admin-grid,.criteria-grid { grid-template-columns:1fr; } .article-entry-table { min-width: 920px; } }

/* v7.0 customer ranking and configurable admin ranking */
.customer-ranking-card{border:1px solid rgba(48,94,62,.18);background:linear-gradient(135deg,rgba(238,246,236,.96),rgba(255,255,249,.98));}
.ranking-facts{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));}
.customer-ranking-card .grade-pill{font-size:1rem;padding:.55rem .85rem;border-radius:999px;}
.criteria-text-card{background:#f8fbf4;border:1px solid rgba(48,94,62,.18);border-radius:18px;padding:1rem 1.1rem;line-height:1.55;color:#234330;white-space:normal;}
.stacked-form{display:grid;gap:1rem;}
.stacked-form textarea{width:100%;min-height:120px;resize:vertical;}
.admin-table input[type="number"],.admin-table input[type="text"],.admin-table input:not([type]){max-width:180px;}
