/* Survey editor of u/ (cre.php, js/cre.js). Step colors: theme-s1 to theme-s5 of theme-O.css */
.cre-main {max-width:1000px; margin:0 auto; padding:16px 12px 40px}

/* Steps bar: icons of the old editor (media/O/Step#s.png), as css/comp.css */
.cre-steps {display:flex; align-items:center; justify-content:center; margin-bottom:12px; padding:10px 8px 6px;
	background-color:#f3ecfa; border-radius:12px}
.cre-step-cell {flex:0 1 90px; text-align:center}
.cre-step-btn {border:none; padding:0 0.6vw; background-color:inherit; cursor:pointer; width:100%}
.cre-step-btn img {width:100%; max-width:72px; display:block; margin:auto}
.cre-step-btn.active {cursor:default}
.cre-step-btn:disabled {cursor:not-allowed; opacity:0.4}
.cre-step-btn:focus-visible {outline:2px solid #775399; border-radius:50%}
.cre-step-arrow {flex:0 1 40px; text-align:center; color:#775399; font-size:20px}
.cre-step-arrow::after {content:"\2192"}
.cre-step-marker {overflow:hidden; margin:6px auto 0; padding:2px 6px; border-radius:10px;
	font-size:12px; line-height:1.25; color:#666}
.cre-step-marker[class*="theme-s"] {font-weight:500; color:white}
.cre-step-marker.theme-s1 {color:#4D4D4D}	/* light yellow: dark text, as theme-O.css */
.cre-step-btn:disabled + .cre-step-marker {opacity:0.4}

/* Docked on top of the header while scrolling (js/cre.js dockSteps), as .step-pane-top of the old editor */
/* The move between the page and the header is animated by js/cre.js (top, left, width set inline during 0.2s);
   the sizes inside follow with the same duration. Final docked place: centred, 300px wide, 2px from the top. */
.cre-step-btn, .cre-step-btn img, .cre-step-arrow, .cre-step-marker, .cre-steps {transition:padding 0.2s, max-width 0.2s, font-size 0.2s, line-height 0.2s, min-height 0.2s, height 0.2s, margin 0.2s, box-shadow 0.2s, color 0.2s}
@media (min-width:800px) {
	.cre-steps.docked, .cre-steps.undocking {position:fixed; z-index:21; margin:0; box-sizing:border-box}
	.cre-steps.docked {top:2px; left:50%; transform:translateX(-50%); width:300px; padding:2px 6px; border-radius:4px;
		box-shadow:0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12)}
	.cre-steps.docked[style*="left"], .cre-steps.undocking {transform:none}	/* during the move: exact coordinates */
	.cre-steps.docked .cre-step-btn {padding:0}
	.cre-steps.docked .cre-step-btn img {max-width:34px}
	.cre-steps.docked .cre-step-arrow {font-size:12px; flex-basis:14px}
	.cre-steps.docked .cre-step-marker {padding:0; margin-top:0; font-size:0; line-height:0; color:transparent; border-radius:2px}
	.cre-steps.docked .cre-step-marker[class*="theme-s"] {min-height:4px}	/* only the marker of the current step stays */
}
@media (prefers-reduced-motion:reduce) {.cre-step-btn, .cre-step-btn img, .cre-step-arrow, .cre-step-marker, .cre-steps {transition:none}}

/* Step box */
.cre-step {background:white; padding:16px 20px; border-radius:12px; border-top:6px solid #ccc; text-align:left}
.theme-s1-around {border-top-color:#DFFF6E}
.theme-s2-around {border-top-color:#52A122}
.theme-s3-around {border-top-color:#A270D0}
.theme-s4-around {border-top-color:#775399}
.theme-s5-around {border-top-color:#222222}
.cre-step h3 {margin-top:0}
/* Icon and title of the survey under the steps bar, from step 1 (old #titlePane) */
.cre-title-pane {display:flex; align-items:center; gap:16px; padding:10px 20px; margin:0 0 12px; border-radius:8px; box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12)}
.cre-title-pane[hidden] {display:none}
.cre-title-pane img {width:60px; flex:none}
.cre-title-texts {min-width:0}
.cre-title-pane h3 {margin:0; overflow-wrap:anywhere}
.cre-title-other {font-size:14px; margin-top:2px; display:flex; gap:6px; align-items:baseline}
.cre-title-other .cre-lang-tag {margin-top:0}
@media (max-width:600px) {.cre-title-pane {padding:8px 12px} .cre-title-pane img {width:44px}}
/* "Saved" / errors: over the bottom edge of the title pane (or the top of the step), so the page does not move */
/* sticky: when the page is scrolled, it stays visible just under the header (and the docked steps bar on it) */
.cre-notice-spot {position:sticky; top:82px; height:0; z-index:19}
.cre-notice {position:absolute; left:50%; top:-12px; transform:translate(-50%, -50%); width:max-content; max-width:90%;
	padding:6px 16px; border-radius:8px; border:1px solid rgba(0,0,0,0.15); box-shadow:0 2px 8px rgba(0,0,0,0.25); cursor:pointer}
.cre-title-pane[hidden] + .cre-notice-spot .cre-notice {top:0}
.cre-ok {background:#EBFFA6; color:#4D4D4D}
.cre-error {background:#fdd; color:#900; padding:8px 14px; border-radius:8px}
.cre-info {background:#f3ecfa; color:#775399; padding:8px 14px; border-radius:8px}
.cre-hint {color:#777; font-size:13px; margin:4px 0 10px}
.cre-warn {background:#fff3c4; color:#7a5b00; padding:6px 12px; border-radius:8px; font-size:13px; margin:6px 0}

/* Step 3: options of the sending (u/js/cre-send.js) */
.cre-pane {border:1px solid #e6dcf2; border-radius:10px; padding:4px 16px 8px; margin:12px 0}
.cre-pane h4 {color:#775399}
.cre-option {display:flex; align-items:flex-start; gap:10px; padding:6px 0}
.cre-option input {margin-top:8px; flex:none; width:18px; height:18px; cursor:pointer}
.cre-option img {width:32px; flex:none}
.cre-option label {cursor:pointer; padding-top:5px}
.cre-option.disabled {opacity:0.6}
.cre-option.disabled input, .cre-option.disabled label {cursor:not-allowed}
.cre-option-hint {display:block; color:#777; margin-top:2px}
.cre-extern {margin:0 0 8px 60px}
.cre-dates {display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:8px 24px; margin-bottom:6px}
.cre-date-head {display:flex; align-items:center; gap:10px}
.cre-date-head img {width:32px}
.cre-date-head label {font-weight:500; flex:1}
.cre-date-head input {width:auto; max-width:170px}
.cre-send-soon {margin-top:16px}
.cre-center {text-align:center; margin:16px 0}
.cre-inline-form {display:inline}
/* Step 3: invitations and follow-up */
.cre-invite {border-color:#A270D0; border-width:2px}
.cre-problems {list-style:none; padding:0; margin:6px 0}
.cre-send-btn {font-weight:500}
.cre-schedule {border-top:1px solid #eee; margin-top:8px; padding-top:4px}
.cre-schedule-row {display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px 10px}
.cre-schedule-row .cre-schedule-at {width:auto; max-width:220px}
.cre-mail-preview {position:relative; border:1px solid #ddd; border-radius:8px; padding:6px 12px; margin-top:12px; background:#fafafa; font-size:14px}
.cre-mail-preview p {margin:4px 0}
.cre-mail-frame {width:100%; height:340px; border:1px solid #eee; border-radius:6px; background:white; margin-top:6px}
.cre-mail-close {position:absolute; top:4px; right:4px; padding:2px 8px!important}
.cre-follow-list {max-height:420px; overflow:auto; margin:6px 0}
.cre-follow-row {display:flex; flex-wrap:wrap; align-items:center; gap:2px 12px; padding:5px 6px; border-bottom:1px solid #f0f0f0; cursor:pointer}
.cre-follow-row input {width:16px; height:16px}
.cre-follow-row.done {cursor:default}
.cre-follow-row input:disabled {cursor:not-allowed}
.cre-follow-row .cre-person-name {min-width:200px}
.cre-follow-row .cre-person-email {flex:1 1 180px}
.cre-follow-state {font-size:13px; color:#777; min-width:120px}
.cre-follow-role {font-size:13px; color:#775399}
.cre-follow-row.done .cre-follow-state {color:#52A122}
.cre-email-edit {padding:0 6px !important; margin-left:4px; color:#999}
.cre-email-edit:hover {color:#333}
.cre-email-form {display:flex; flex-wrap:wrap; gap:4px; align-items:center}
.cre-email-form .w3-input {flex:1 1 180px; padding:2px 6px}
.cre-follow-mail {color:#999; min-width:130px}
.cre-follow-mail.err {color:#b00020}
.cre-invitee {cursor:default}
.cre-invitee.choose {cursor:pointer}
.cre-invitee input {width:16px; height:16px}
.cre-invitee.bad {background:#fff8e1}
@media (min-width:700px) {
	.cre-invitee {display:grid; grid-template-columns:minmax(160px, 1.2fr) minmax(160px, 1.4fr) 130px minmax(0, 1fr); gap:0 12px}
	.cre-invitee.choose {grid-template-columns:20px minmax(150px, 1.2fr) minmax(150px, 1.4fr) 130px minmax(0, 1fr)}
	.cre-follow-row:not(.cre-invitee) {display:grid; grid-template-columns:20px minmax(150px, 1.2fr) minmax(150px, 1.3fr) 120px 150px minmax(0, 1fr); gap:0 12px}
	.cre-follow-row .cre-follow-mail, .cre-follow-row .cre-follow-state {min-width:0}
}
.cre-follow-actions {display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-top:8px}
.cre-follow-actions .cre-hint {margin:0}
@media (max-width:600px) {.cre-extern {margin-left:0}}
.cre-label {display:block; margin-top:10px; font-weight:500; color:#555}
.cre-submit {margin-top:16px}

/* Step 0 */
.cre-title {margin-bottom:4px}
.cre-cards {display:flex; flex-wrap:wrap; gap:10px}
.cre-card {flex:1 1 200px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px; padding:10px;
	border:2px solid #ddd; border-radius:12px; cursor:pointer}
.cre-card.selected {border-color:#A270D0; background:#f8f3fd}
.cre-card.disabled {cursor:default}
.cre-card.disabled:not(.selected) {opacity:0.5}
.cre-card input {position:absolute; opacity:0; pointer-events:none}
.cre-card input:focus-visible + img {outline:2px solid #775399}
.cre-card img {height:48px}
.cre-card-title {font-weight:500}
.cre-card-hint {font-size:12px; color:#666}
.cre-lang-select {max-width:240px}
.cre-langs {margin-top:10px}
/* Step 0: other languages to the right of the main language (stacked on small screens) */
@media (min-width:601px) {
	.cre-lang-row {display:flex; align-items:flex-start; gap:0 32px}
	.cre-lang-main {flex:0 0 240px}
	.cre-lang-others {flex:1; padding-top:28px}
	.cre-lang-others .cre-langs {margin-top:0}
}
.cre-langs .cre-label {display:inline; margin-right:6px}
.cre-check {margin-right:14px; white-space:nowrap; cursor:pointer}

/* Step 1 */
.cre-q {border:1px solid #e3e3e3; border-radius:10px; padding:8px 12px; margin:8px 0; position:relative}
.cre-q-info {background:#fafafa}
/* explanatory text "<hr noreturn>": a page break the respondents cannot go back over */
.cre-q-break {border-top:3px dashed #A270D0}
.cre-q-noreturn {font-size:12px; border-radius:8px; padding:1px 8px; background:#f0e6fa; color:#5a3f78; font-weight:500}
.cre-noreturn-check {display:block; margin:8px 0}
.cre-q-edit {border-color:#A270D0; box-shadow:0 2px 8px rgba(162,112,208,0.25)}
.cre-q-head {display:flex; align-items:center; gap:12px; flex-wrap:wrap; font-size:13px; color:#666; margin-bottom:4px}
.cre-q-nr {font-weight:700; color:#775399; min-width:30px}
.cre-q-type {display:inline-flex; align-items:center; gap:6px}
.cre-q-type img, .cre-type img {height:20px}
.cre-q-lang {display:flex; gap:8px; align-items:flex-start; margin:4px 0}
.cre-lang-tag {flex:none; font-size:11px; font-weight:700; color:white; background:#A270D0; border-radius:4px; padding:1px 5px; margin-top:3px}
.cre-q-body {flex:1; min-width:0}
.cre-q-text {overflow-wrap:anywhere}
.cre-q-label {font-size:12px; color:#888}
.cre-missing {color:#c60; font-style:italic; font-size:13px}
.cre-q-actions {display:flex; gap:4px; justify-content:flex-end; margin-top:6px}
.cre-q-actions .w3-button {padding:4px 10px}
.cre-del:hover {color:#c00!important}
.cre-label-input {font-size:13px; margin-top:4px}
.cre-types {display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; margin:8px 0}
.cre-types .cre-label {display:inline; margin:0}
.cre-type {display:inline-flex; align-items:center; gap:4px; white-space:nowrap; cursor:pointer}
.cre-coeff {width:60px; margin-left:6px}
.cre-add {display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}

@media (max-width:600px) {
	.cre-step {padding:12px}
}

/* Step 2: people (js/cre-people.js) */
.cre-people h4 {margin-top:18px}
.cre-picker-bar {display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; margin-bottom:8px}
.cre-search {max-width:280px}
.cre-count {color:#775399; font-weight:500}
.cre-unsaved {color:#c60}
/* the header row stays visible while scrolling in the list */
.cre-picker-scroll {max-height:60vh; overflow:auto; border:1px solid #e3e3e3; border-radius:8px}
.cre-picker {border-collapse:separate; border-spacing:0; width:100%; font-size:13px}
.cre-picker th {position:sticky; top:0; z-index:2; background:#f3ecfa; color:#775399; text-align:left; padding:6px 8px; white-space:nowrap}
.cre-picker td {padding:3px 8px; border-top:1px solid #f0f0f0}
.cre-picker tr.level-change td {border-top:2px solid #A270D0}
.cre-picker tr.team-change td {border-top:1px solid #cdb3e6}
.cre-picker tr.changed td {background:#fffbe0}
.cre-sortable {cursor:pointer}
.cre-sortable.sorted {color:#4D4D4D}
.cre-role {text-align:center; width:40px}
.cre-rolebox {display:inline-block; cursor:pointer}
.cre-rolebox input {width:18px; height:18px; cursor:pointer; accent-color:#52A122}
.cre-rolebox.targ input {accent-color:#A270D0}
.cre-team, .cre-level, .cre-filter {color:#666; white-space:nowrap}

/* Grid "who evaluates whom": names of the evaluated persons fixed on top, of the respondents fixed on the left */
/* tabs: roles / grid */
.cre-tabs {display:flex; gap:4px; border-bottom:2px solid #A270D0; margin:6px 0 10px}
.cre-tab {border:0; background:#f3ecfa; color:#775399; padding:6px 16px; border-radius:8px 8px 0 0; cursor:pointer; font:inherit}
.cre-tab.active {background:#A270D0; color:white; cursor:default}
/* the grid uses the whole height of the window; the page bottom keeps only the shadow (Page Down shows the whole grid) */
.cre-grid-scroll {max-height:calc(100vh - 70px); overflow:auto; border:1px solid #e3e3e3; border-radius:8px; position:relative}
.cre-main:has(.cre-grid-scroll) {padding-bottom:4px}
.cre-grid {--cell:22px; border-collapse:separate; border-spacing:0; font-size:calc(var(--cell) * 0.55)}
.cre-grid thead th {position:sticky; top:0; z-index:2; background:#f3ecfa; vertical-align:bottom}
.cre-grid tbody th, .cre-grid .cre-corner {position:sticky; left:0; z-index:1; background:#fbf8fe}
.cre-grid .cre-corner {z-index:3; text-align:left; color:#775399; font-weight:400; padding:4px 6px 2px; font-size:12px; vertical-align:bottom}
.cre-corner-tools {display:flex; flex-wrap:wrap; align-items:center; gap:4px; margin-bottom:6px}
.cre-corner-tools .w3-button {padding:2px 8px; font-size:12px; border-radius:10px}
/* width 0 + min-width 100%: takes the width of the corner without widening it ("Saving…" longer than "Saved") */
.cre-grid-status {color:#52A122; font-size:11px; height:14px; line-height:14px; text-align:right; white-space:nowrap; width:0; min-width:100%}
.cre-corner-axes {display:flex; justify-content:space-between; gap:8px; margin-bottom:4px; font-weight:500}
.cre-corner-line {display:flex; justify-content:flex-end; align-items:center; gap:6px; height:17px; white-space:nowrap; font-family:monospace; font-size:11px; color:#775399}
.cre-col {width:var(--cell); min-width:var(--cell); padding:4px 0 2px}
.cre-col-name {writing-mode:vertical-rl; transform:rotate(180deg); white-space:nowrap; max-height:180px; overflow:hidden;
	text-overflow:ellipsis; margin:0 auto; font-weight:400; color:#4D4D4D}
.cre-row {text-align:left; white-space:nowrap; font-weight:400; padding:0 6px; max-width:260px; overflow:hidden; text-overflow:ellipsis;
	border-right:2px solid #e3e3e3}
.cre-row-name {color:#4D4D4D; overflow:hidden; text-overflow:ellipsis}
.cre-row-name.theme-tick, .cre-name.theme-tick, .cre-person-name.theme-tick {color:#52A122}
/* counters, as the old editor ("A / B [C]"): received, invitations sent (thin rule above), abstentions in a grey box;
   same height in the columns and in the corner, so that the lines are aligned */
.cre-nr {display:inline-block; font-family:monospace; font-size:11px; line-height:1.1; color:#775399; text-align:right; border-radius:3px}
.cre-col .cre-nr {display:block; height:17px; line-height:16px; padding:0 2px; text-align: center;}
.cre-col .cre-nr + .cre-nr:not(.abst), .cre-corner-line + .cre-corner-line:not(.abst) {border-top:1px solid #888}	/* only above "invitations sent" */
.cre-col .cre-nr.abst, .cre-corner-line.abst {margin-top:1px}	/* same height as the line with a rule: columns and corner stay aligned */
.cre-nr.total {font-weight:700}
.cre-nr.abst, .cre-corner-line.abst span:first-child {color:white; background-color:#9e9e9e; font-style:italic; padding:0 4px}
.cre-col .cre-nr.abst:empty {background:none}
.cre-corner-line.abst .cre-nr {color:white; background-color:#9e9e9e; padding: 2px 4px;}
.cre-row-in {display:flex; justify-content:space-between; align-items:center; gap:8px}
.cre-row-in .cre-nr {font-family:monospace}
.cre-nr.warn {background-color:#fe6}
.cre-nr.err {background-color:#f99}
.cre-cell {width:var(--cell); height:var(--cell); min-width:var(--cell); border:1px solid #eee; cursor:pointer; text-align:center; user-select:none}
.cre-grid.readonly .cre-cell {cursor:default}
.cre-cell.locked {cursor:not-allowed; opacity:.4}	/* correction after the invitations: a respondent who answered */
.cre-correct-bar {margin:4px 0 8px}
.cre-cell.on {background:#DFFF6E; box-shadow:inset 0 0 0 1px #52A122}
.cre-cell.on.answered {background:#9fd36b}
.cre-cell.on.dontknow {background:#ddd}
.cre-cell.on.dontknow::after {content:"?"; color:#666}
.cre-cell.self {background:repeating-linear-gradient(45deg, #f4f4f4, #f4f4f4 3px, #e6e6e6 3px, #e6e6e6 6px); cursor:default}
/* automatic self-evaluation (Survey.noSelfEval = 0): a mark in the diagonal, not counted */
.cre-cell.self.selfeval {background:#f3ecfa}
.cre-cell.self.selfeval::after {content:"●"; color:#A270D0; font-size:0.7em}
.cre-cell.self.selfeval.answered::after {color:#52A122}
.cre-grid:not(.readonly) .cre-cell:not(.self):hover {outline:2px solid #A270D0}
.cre-grid .level-col {border-left:2px solid #A270D0}
.cre-grid .team-col {border-left:1px solid #cdb3e6}
.cre-grid tr.level-row > * {border-top:2px solid #A270D0}
.cre-grid tr.team-row > * {border-top:1px solid #cdb3e6}

/* Outside companies: list of people */
.cre-list {margin:6px 0 12px}
.cre-person {display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; padding:4px 8px; border-bottom:1px solid #f0f0f0}
.cre-person-name {font-weight:500; min-width:180px}
.cre-person-email {color:#775399; font-size:13px; flex:1}
.cre-person .w3-button {padding:2px 8px}
.cre-person-edit input {flex:1 1 180px}
.cre-add-person {display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:10px 0}
.cre-add-person .cre-label {margin:0; flex-basis:100%}
.cre-add-person input {flex:1 1 200px}
.cre-role-title {display:flex; align-items:center; gap:10px; margin:16px 0 6px}
.cre-role-title img {width:36px; flex:none}
/* adding respondents: tabs (one person / import / address book) over a framed panel */
.cre-add-panel {margin:14px 0 4px}
.cre-add-panel .cre-tabs {margin:0; flex-wrap:wrap}
.cre-add-panel .cre-tab {padding:8px 16px}
.cre-add-panel .cre-tab:not(.active):hover {background:#e6d8f5}
.cre-add-panel .cre-tab .fa {margin-right:4px}
.cre-add-body {border:2px solid #A270D0; border-top:0; border-radius:0 0 8px 8px; padding:10px 14px; background:#fcfaff}
.cre-add-body .cre-add-person {margin:0}
.cre-import textarea {margin:0 0 8px}
.cre-book-list {max-height:240px; overflow:auto; margin:6px 0}
.cre-book-item {display:block; padding:2px 0}
.cre-book-item small {color:#775399}

/* Preview of all the emails (u/mails.php, new tab) */
.mails-body {margin:0}
.mails-main {max-width:860px; margin:0 auto; padding:16px 12px 40px}
.mails-main h2 {color:#775399; font-size:1.3em}
.mails-main .export-off {display:inline-block; padding:8px 16px; opacity:.5; cursor:not-allowed}	/* no w3-button: no hover highlight */
.mails-main b, .mails-main strong, .mails-main th {font-weight: 600;}	/* the site theme sets 500: not bold in Arial (body of the emails) */
.mails-item {background:white; border-radius:10px; margin:14px 0; box-shadow:0 2px 5px 0 rgba(0,0,0,0.12); overflow:hidden}
.mails-head {background:#f3ecfa; padding:8px 14px 8px 48px; position:relative; font-size:14px; overflow-wrap:anywhere}
.mails-nr {position:absolute; left:12px; top:8px; background:#A270D0; color:white; border-radius:10px; padding:0 7px; font-size:12px}
.mails-body-html {padding:12px 16px; font-family:Arial,sans-serif; color:#333; line-height:1.4}
.mails-problem .mails-head {background:#fff3c4}
.mails-reason {color:#7a5b00; font-weight:500; margin-top:2px}

/* Texts of the emails (step 3) */
.cre-mailtexts summary {cursor:pointer; list-style:revert; padding:10px 0}
.cre-mailtexts summary h4 {display:inline-block; margin:0; line-height:1.2}	/* same as .cre-intro */
.cre-mailtext {margin:10px 0}
.cre-mailtext-head {display:flex; align-items:center; gap:8px; margin-bottom:4px}
.cre-mailtext-state {font-size:12px; color:#777}
.cre-mailtext-state.own {color:#52A122; font-weight:500}
.cre-mailtext-area {font-family:inherit; font-size:14px; line-height:1.4; border:1px solid #ccc!important; border-radius:6px; resize:vertical}

/* Step 4: links of the reports (Insights) */
.cre-paste {font-family:monospace; font-size:12px; white-space:pre; border:1px solid #ccc!important; border-radius:6px}
.cre-import-result p {margin:4px 0}
.cre-ok-line {color:#52A122; font-weight:500}
.cre-follow-role.err {color:#b00020}
@media (min-width:700px) {
	.cre-follow-row.cre-report-row:not(.cre-invitee) {display:grid; grid-template-columns:20px minmax(150px, 1.2fr) minmax(150px, 1.3fr) 150px minmax(0, 1fr) minmax(0, 1fr); gap:0 12px}
}
/* Step 1: introduction (collapsible, preview = HTML filtered by the server) */
.cre-intro summary {cursor:pointer; list-style:revert; padding:10px 0}
.cre-intro summary h4 {display:inline-block; margin:0; line-height:1.2}	/* spacing in the summary: a wrapped hint keeps a normal line gap */
.cre-intro-look summary {cursor:pointer; color:#775399; font-size:13px; margin:4px 0}
.cre-intro-preview {border:1px dashed #d9c9ec; border-radius:8px; padding:8px 12px; background:#fff}
.cre-intro-preview a {color:#775399; text-decoration:underline}
.cre-invitee-all {border-bottom:1px solid #e6dcf2; padding-bottom:6px; margin-bottom:4px}
/* Step 3: public preview links */
.cre-public-link {border-top:1px solid #eee; padding:8px 0}
.cre-public-link.expired .cre-public-url a {color:#999; text-decoration:line-through}
.cre-public-url {overflow-wrap:anywhere}
.cre-public-names {display:block; font-size:13px; color:#555; margin-top:4px}
/* Step 1: topic of a question (company / principles) and the pane of the company / principles */
.cre-q-topic {font-size:12px; border-radius:8px; padding:1px 8px; background:#eee; color:#555}
.cre-q-topic.topic-E {background:#e3f0fb; color:#1f5f8b}
.cre-q-topic.topic-P {background:#fdeee0; color:#8a4a12}
.cre-topics {margin-top:6px}
h4.cre-subject-kind {font-size:14px; margin:12px 0 4px; color:#775399}
/* groups of questions: "Groupe (A)" under a question, "Questions (A) + (B)" under a principle, on the left of the buttons */
.cre-group {margin-right:auto; align-self:center; display:inline-flex; align-items:center; gap:4px; font-size:13px; color:#555}
.cre-group-tag {display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%;
	background:#775399; color:white; font-size:12px; font-weight:700; line-height:1}
.cre-group-field {display:block; margin:6px 0}
.cre-group-field[hidden] {display:none}
.cre-group-select {display:inline-block; width:auto; padding:4px 8px; margin-left:4px}
.cre-group-select:disabled, .cre-group-checks input:disabled {cursor:not-allowed}
.cre-numbering .cre-check {display:block; white-space:normal; margin:4px 0}	/* step 1: numbers on the answer page */
.cre-numbering .cre-check.disabled, .cre-numbering input:disabled {cursor:not-allowed}
.cre-subject-descr {font-size:13px; color:#555; margin-top:4px}
.cre-option-noicon {width:32px; flex:none}

/* step 4: the report (u/rpt.php) and the yellow band of its rings */
.cre-gaps {display:flex; flex-wrap:wrap; gap:8px 28px; margin:4px 0 10px}
.cre-gap {display:inline-flex; align-items:center; gap:8px}
.cre-gap input {width:64px; padding:4px 6px}
/* Step 0: version of a ready-made survey (standard / customised) */
.cre-tpl-versions {display:flex; flex-direction:column; gap:6px; margin:4px 0 8px; font-size:14px}
/* Step 2: correction of who evaluates whom from a file (after the invitations) */
.cre-corr-file {margin:8px 0 12px}
.cre-corr-preview {border:1px solid #e6dcf2; border-radius:8px; padding:8px 12px; margin-top:6px}
.cre-corr-preview h5 {margin:2px 0 8px; color:#775399}
.cre-corr-changes {font-size:14px; margin:6px 0; padding-left:20px}
.cre-corr-new {color:#775399; font-size:12px}
.cre-corr-add {color:#2e7d32}
.cre-corr-remove {color:#b00020}
/* Step 2: remove everybody from the survey (before the invitations), apart from the other buttons */
.cre-clear-bar {margin:14px 0 4px; text-align:right}
.cre-clear {color:#b00020}
/* A template itself (u/js/cre-template.js): its card and the keys of its Vitrine texts */
.cre-tpl {margin-top:18px; border-top:2px solid #A270D0; padding-top:10px}
.cre-tpl-code {font-size:15px; background:#f3edf9; padding:1px 6px; border-radius:4px}
.cre-tpl-links {font-size:13px; margin:4px 0 10px}
.cre-tpl-icons {display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 12px}
.cre-tpl-icon {cursor:pointer; border:2px solid transparent; border-radius:8px; padding:4px}
.cre-tpl-icon input {position:absolute; opacity:0}
.cre-tpl-icon img {width:48px; height:48px; display:block}
.cre-tpl-icon:has(input:checked) {border-color:#A270D0; background:#f8f3fd}
.cre-tpl-icon:has(input:focus-visible) {outline:2px solid #775399}
.cre-tpl-keys {border-collapse:collapse; width:100%; font-size:13px; margin:6px 0}
.cre-tpl-keys th, .cre-tpl-keys td {padding:3px 6px; border-bottom:1px solid #eee; text-align:left; vertical-align:middle}
.cre-tpl-keys tbody th {font-weight:500; white-space:nowrap}
.cre-tpl-key {padding:3px 6px; font-family:monospace; font-size:13px; max-width:16em}
.cre-tpl-states {white-space:nowrap}
.cre-tpl-state {display:inline-block; margin-right:4px; padding:0 5px; border-radius:4px; font-size:12px; cursor:help}
.cre-tpl-state.same {background:#e3f3e5; color:#2e7d32}
.cre-tpl-state.differs {background:#fff3c4; color:#7a5b00}
.cre-tpl-state.missing {background:#fde3e6; color:#b00020}
.cre-tpl-state.empty {background:#eee; color:#666}

/* a shared link (cre.php?k=): the languages in the header instead of the user menu */
.cre-shared-langs {display:flex; align-items:center; gap:4px; height:50px; padding-right:12px}
.cre-shared-langs a {border-radius:16px; padding:6px 12px}
.cre-import-link {text-align:right; margin:0 0 8px}
h3 + .cre-import-link {margin-top:-36px}	/* on the line of the title */
@media (max-width:600px) {h3 + .cre-import-link {margin-top:0} .cre-import-link {text-align:left}}
/* step 2, a Relay company (superusers): the campaign at the Relay */
.cre-relay {border:1px solid #d9c9ea; border-radius:10px; padding:4px 14px 8px; margin:0 0 14px; background:#fbf8fe}
.cre-relay h4 {margin:8px 0}
.cre-relay-form {display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:0 14px}
.cre-relay-form p {margin:4px 0}
.cre-relay-form label {font-size:13px; color:#555}
.cre-relay-form input:disabled {cursor:not-allowed}
.cre-relay-step3 {margin:10px 0 14px}
.cre-relay-dates {list-style:none; padding:0; margin:4px 0; display:flex; flex-wrap:wrap; gap:4px 18px; font-size:14px}
/* disabled: the reason in its tooltip, the "not allowed" cursor, no hover highlight */
.cre-relay .theme-yellow:disabled {pointer-events:auto; cursor:not-allowed}
.cre-relay .theme-yellow:disabled:hover {color:black!important; background-color:#DFFF6E!important}
/* step 4, Insights (superusers): the date of "Results available in Insights" */
.cre-insights-at {display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.cre-insights-at input {width:auto}
.cre-insights-at input:disabled {cursor:not-allowed}
/* step 4, a Relay survey (superusers): the two stages of the purge */
.cre-purge-stage {display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:4px 0}
/* step 4, a Relay survey (superusers): report links asked again at the Relay */
.cre-request {padding:6px 0; border-bottom:1px solid #f0f0f0}
.cre-request .cre-request-link {flex:1 1 260px; width:auto}

/* "No opinion / not applicable" (Question.allowNA): the badge of a question, the editor's checkbox, "all / none" */
.cre-q-na img {height:20px; vertical-align:middle}
.cre-na-check img {height:20px; vertical-align:middle}
.cre-na-check[hidden] {display:none}
.cre-na-all {margin-top:10px; font-size:13px; color:#777}
.cre-na-all img {height:16px; vertical-align:middle}
.cre-link {border:0; background:none; padding:0; font:inherit; color:#775399; text-decoration:underline; cursor:pointer}
.cre-link:disabled {color:#bbb; text-decoration:none; cursor:not-allowed}
