/* Ερωτηματολόγια: η φόρμα του ερωτώμενου (δημόσια σελίδα /survey), το πλαίσιο της προεπισκόπησης και η σελίδα
   survey-preview.php. Χωρίς Bootstrap: η σελίδα είναι λιτή και φορτώνει γρήγορα στο κινητό. Χρώματα ΠΔΜ (teal για τις
   επιλογές, βαθύ μπλε για τους τίτλους, χωρίς μαύρο), επίπεδα εικονίδια σε απαλά πλαίσια χωρίς σκίτσα (χρήστης 30/11/2026),
   λίστες με μικρά εικονίδια αντί για κουκίδες, μία μόνο κύλιση ανά οθόνη, με τη λεπτή μπάρα κύλισης του θέματος. */
:root {
  --psf-heading: #1d4060;
  --psf-ink: #2a3f52;
  --psf-muted: #627587;
  --psf-teal: #0f766e;
  --psf-teal-dark: #0b625c;
  --psf-teal-soft: #e8f5f3;
  --psf-teal-line: #b9ddd7;
  --psf-blue-soft: #e8f0f8;
  --psf-gold: #d9b76f;
  --psf-gold-soft: #fbf1dc;
  --psf-slate: #5b7083;
  --psf-bg: #f4f7fb;
  --psf-card: #ffffff;
  --psf-border: #dbe3ef;
  --psf-border-strong: #c5d3e0;
  --psf-hover: #f1f5f8;
  --psf-danger: #b42318;
  --psf-danger-soft: #fff4f2;
  --psf-star: #e0a02c;
  --psf-radius: 16px;
  --psf-shadow: 0 1px 2px rgba(16, 42, 67, .05), 0 6px 20px rgba(16, 42, 67, .05);
  --psf-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z' fill='%230f766e'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------------- scrollbars in the theme (as pdm.css) */

@supports not selector(::-webkit-scrollbar) {
  .psf-body, .psf-body * { scrollbar-width: thin; scrollbar-color: #9fcac3 #eef4f7; }
}
.psf-body ::-webkit-scrollbar, .psf-body::-webkit-scrollbar { width: 10px; height: 10px; }
.psf-body ::-webkit-scrollbar-track, .psf-body::-webkit-scrollbar-track { background: #eef4f7; border-radius: 999px; }
.psf-body ::-webkit-scrollbar-thumb, .psf-body::-webkit-scrollbar-thumb { background: #a9cfc9; border: 2px solid #eef4f7; border-radius: 999px; }
.psf-body ::-webkit-scrollbar-thumb:hover { background: var(--psf-teal); }
.psf-body ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.psf-body ::-webkit-scrollbar-corner { background: transparent; }
html:has(.psf-body)::-webkit-scrollbar { width: 10px; }
html:has(.psf-body)::-webkit-scrollbar-track { background: #eef4f7; }
html:has(.psf-body)::-webkit-scrollbar-thumb { background: #a9cfc9; border: 2px solid #eef4f7; border-radius: 999px; }
html:has(.psf-body)::-webkit-scrollbar-thumb:hover { background: var(--psf-teal); }

/* ----------------------------------------------------------------- base */

html:has(.psf-body:not(.psf-preview-page)) { scroll-padding-top: 140px; }
.psf-body {
  margin: 0;
  min-height: 100vh;
  background: var(--psf-bg);
  color: var(--psf-ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
.psf-body *, .psf-body *::before, .psf-body *::after, .psf *, .psf *::before, .psf *::after { box-sizing: border-box; }
.psf-body [hidden], .psf [hidden] { display: none !important; }
.psf-icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: currentColor; vertical-align: -0.2em; }
.psf-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.psf-muted { color: var(--psf-muted); }
/* Επίπεδο εικονίδιο σε απαλό πλαίσιο, στην αρχή της εισόδου, του καλωσορίσματος και της ολοκλήρωσης. */
.psf-tile { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px; background: var(--psf-teal-soft); color: var(--psf-teal); }
.psf-tile .psf-icon { width: 24px; height: 24px; }

/* ----------------------------------------------------------------- page frame: header, main, footer */

.psf-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--psf-border);
}
.psf-header-inner { display: flex; align-items: center; gap: 12px; max-width: 980px; min-height: 60px; margin: 0 auto; padding: 8px 16px; }
.psf-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--psf-heading); text-decoration: none; }
.psf-brand img { width: 36px; height: 36px; flex: 0 0 auto; }
.psf-brand-text { display: grid; min-width: 0; line-height: 1.2; }
.psf-brand-text strong { overflow: hidden; font-size: 14.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.psf-brand-text span { color: var(--psf-muted); font-size: 12.5px; font-weight: 600; }
.psf-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.psf-lang { display: inline-flex; padding: 3px; border: 1px solid var(--psf-border); border-radius: 999px; background: #fff; }
.psf-lang button {
  min-width: 40px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent;
  color: var(--psf-muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.psf-lang button[aria-pressed="true"] { background: var(--psf-teal); color: #fff; }
.psf-lang button:not([aria-pressed="true"]):not(:disabled):hover { background: var(--psf-hover); color: var(--psf-heading); }
.psf-lang button:disabled { opacity: .45; cursor: not-allowed; }
.psf-round-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--psf-border); border-radius: 50%;
  background: #fff; color: var(--psf-teal); cursor: pointer;
}
.psf-round-btn:hover { background: var(--psf-hover); }
.psf-round-btn .psf-icon { width: 20px; height: 20px; }

.psf-main { max-width: 800px; margin: 0 auto; padding: 22px 16px 40px; }
/* Η δημόσια σελίδα: το υποσέλιδο μένει στο κάτω μέρος, και η είσοδος έχει λίγο περισσότερο πλάτος από τη φόρμα. */
.psf-body[data-psf-public] { display: flex; flex-direction: column; }
.psf-body[data-psf-public] > .psf-main { flex: 1 0 auto; width: 100%; }
.psf-main:has(> .psf-entry:not([hidden])) { max-width: 940px; padding-top: 36px; }
.psf-footer { border-top: 1px solid var(--psf-border); background: #fff; }
.psf-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 18px; max-width: 940px; margin: 0 auto; padding: 14px 16px;
  color: var(--psf-muted); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.psf-footer-credits { color: var(--psf-teal-dark); }

/* ----------------------------------------------------------------- the code entry: the code on the left, how it works on the right */

.psf-card.psf-entry { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); padding: 0; overflow: hidden; }
.psf-entry-main { padding: 34px 34px 30px; }
.psf-entry-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--psf-teal-soft); color: var(--psf-teal); }
.psf-entry-mark .psf-icon { width: 24px; height: 24px; }
.psf-entry h1 { margin: 0 0 8px; color: var(--psf-heading); font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.psf-entry-lead { margin: 0 0 24px; color: var(--psf-muted); }
.psf-code-label { display: block; margin: 0 0 7px; color: var(--psf-heading); font-size: 14px; font-weight: 700; }
.psf-code-input {
  display: block; width: 100%; height: 58px; padding: 0 16px; border: 1.5px solid var(--psf-border-strong); border-radius: 14px; background: #fff;
  color: var(--psf-heading); font: 600 21px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; letter-spacing: .1em; text-transform: uppercase;
}
.psf-code-input::placeholder { color: #a7b5c2; letter-spacing: .1em; }
.psf-code-input:focus { outline: none; border-color: var(--psf-teal); box-shadow: 0 0 0 4px rgba(15, 118, 110, .14); }
.psf-btn-block { width: 100%; min-height: 52px; margin-top: 12px; font-size: 16px; }
.psf-btn-block .psf-icon { width: 20px; height: 20px; }
.psf-entry-message { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 11px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; }
.psf-entry-message .psf-icon { margin-top: 2px; }
.psf-entry-message.is-error { background: var(--psf-danger-soft); color: var(--psf-danger); }
.psf-entry-message.is-info { background: var(--psf-blue-soft); color: #234a6b; }
.psf-entry-side { padding: 34px 28px 30px; border-left: 1px solid var(--psf-border); background: #f6f9fb; }
.psf-entry-side h2 { margin: 0 0 18px; color: var(--psf-heading); font-size: 15.5px; font-weight: 700; }
.psf-points { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.psf-points li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; }
.psf-point-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--psf-border); border-radius: 11px; background: #fff; color: var(--psf-teal); }
.psf-point-icon .psf-icon { width: 19px; height: 19px; }
.psf-points li > div > strong { display: block; margin: 1px 0 2px; color: var(--psf-heading); font-size: 14.5px; font-weight: 700; }
.psf-points li > div > span { display: block; color: var(--psf-muted); font-size: 13.5px; line-height: 1.5; }
.psf-noscript { padding: 16px; border-radius: 12px; background: var(--psf-danger-soft); color: var(--psf-danger); }

/* ----------------------------------------------------------------- cards and text */

.psf-card { position: relative; margin: 0 0 12px; padding: 20px; border: 1px solid var(--psf-border); border-radius: var(--psf-radius); background: var(--psf-card); box-shadow: var(--psf-shadow); }
.psf-title { margin: 0 0 12px; color: var(--psf-heading); font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.psf-rich { color: var(--psf-ink); font-size: 15.5px; overflow-wrap: anywhere; }
.psf-rich p { margin: 0 0 10px; }
.psf-rich p:last-child, .psf-rich ul:last-child, .psf-rich ol:last-child { margin-bottom: 0; }
/* Λίστες χωρίς κουκίδες: ένα μικρό επίπεδο σημάδι teal, ή αριθμός σε απαλό πλαίσιο. */
.psf-rich ul, .psf-rich ol { margin: 0 0 10px; padding: 0; list-style: none; }
.psf-rich li { position: relative; margin: 6px 0; padding-left: 30px; }
.psf-rich ul > li::before {
  content: ''; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px;
  background: var(--psf-teal-soft) var(--psf-check) center / 14px 14px no-repeat;
}
.psf-rich ol { counter-reset: psf-list; }
.psf-rich ol > li { counter-increment: psf-list; }
.psf-rich ol > li::before {
  content: counter(psf-list); position: absolute; left: 0; top: .15em; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
  background: var(--psf-teal-soft); color: var(--psf-teal-dark); font-size: 12px; font-weight: 700; line-height: 1;
}
.psf-rich a { color: var(--psf-teal-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.psf-rich strong { color: var(--psf-heading); font-weight: 700; }
.psf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.psf-chips li { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border-radius: 999px; background: var(--psf-blue-soft); color: #234a6b; font-size: 13.5px; font-weight: 600; }
.psf-chips .psf-icon { color: var(--psf-teal); }
.psf-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.psf-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.psf-badge.is-preview { background: var(--psf-blue-soft); color: #234a6b; }
.psf-badge.is-test { background: var(--psf-gold-soft); color: #7a5300; }
.psf-resume { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--psf-teal-soft); color: var(--psf-teal-dark); font-size: 14.5px; font-weight: 600; }
.psf-link { padding: 0; border: 0; background: none; color: var(--psf-teal-dark); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.psf-welcome { padding: 28px 30px; }
.psf-welcome > .psf-tile { margin-bottom: 14px; }
.psf-welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.psf-waiting { margin: 40px 0; color: var(--psf-muted); text-align: center; }

/* ----------------------------------------------------------------- buttons */

.psf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px;
  font: inherit; font-size: 15.5px; font-weight: 700; line-height: 1.1; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.psf-btn-primary { background: var(--psf-teal); color: #fff; }
.psf-btn-primary:hover:not(:disabled) { background: var(--psf-teal-dark); }
.psf-btn-secondary { border-color: var(--psf-border-strong); background: #fff; color: var(--psf-heading); }
.psf-btn-secondary:hover:not(:disabled) { background: var(--psf-hover); }
.psf-btn:disabled { opacity: .55; cursor: not-allowed; }
.psf-btn.is-busy { opacity: .75; cursor: progress; }
.psf-btn-lg { min-height: 52px; padding: 0 30px; font-size: 16.5px; }
.psf-btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.psf-icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--psf-border); border-radius: 10px;
  background: #fff; color: var(--psf-heading); cursor: pointer;
}
.psf-icon-btn:hover:not(:disabled) { background: var(--psf-hover); }
.psf-icon-btn:disabled { opacity: .35; cursor: default; }
.psf-icon-btn .psf-icon { width: 20px; height: 20px; }

.psf-body :focus-visible, .psf :focus-visible { outline: 3px solid var(--psf-gold); outline-offset: 2px; }
/* Τίτλοι που παίρνουν την εστίαση μόνο για τους αναγνώστες οθόνης, και πεδία με δικό τους δαχτυλίδι εστίασης. */
.psf-body [tabindex="-1"]:focus, .psf [tabindex="-1"]:focus { outline: none; }
.psf-body .psf-input:focus-visible, .psf-body .psf-code-input:focus-visible, .psf .psf-input:focus-visible { outline: none; }

/* ----------------------------------------------------------------- progress and errors */

.psf-progress {
  position: sticky; top: 61px; z-index: 10; margin: 0 0 12px; padding: 10px 14px 12px; border: 1px solid var(--psf-border); border-radius: 14px;
  background: rgba(255, 255, 255, .96); box-shadow: var(--psf-shadow);
}
.is-frame .psf-progress { top: 0; }
.psf-progress-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.psf-progress-title { overflow: hidden; color: var(--psf-muted); text-overflow: ellipsis; white-space: nowrap; }
.psf-progress-count { flex: 0 0 auto; color: var(--psf-teal-dark); font-weight: 700; }
.psf-progress-bar { height: 7px; overflow: hidden; border-radius: 999px; background: #e5ecf3; }
.psf-progress-bar span { display: block; height: 100%; border-radius: 999px; background: var(--psf-teal); transition: width .3s ease; }
.psf-errors { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 12px 14px; border: 1px solid #f3c2bc; border-radius: 14px; background: var(--psf-danger-soft); color: var(--psf-danger); font-weight: 600; }

/* ----------------------------------------------------------------- sections and questions */

.psf-section-head h2 { margin: 0; color: var(--psf-heading); font-size: 21px; font-weight: 700; line-height: 1.3; }
.psf-section-head .psf-rich { margin-top: 6px; color: var(--psf-muted); font-size: 15px; }
.psf-q { padding: 18px 20px 20px; }
.psf-q.is-invalid { border-color: #f0b8b1; background: #fffbfa; box-shadow: 0 0 0 3px rgba(180, 35, 24, .07); }
.psf-q-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.psf-q-title { flex: 1 1 auto; margin: 0; color: var(--psf-heading); font-size: 17px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.psf-q-code { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 8px; background: var(--psf-blue-soft); color: #3b5b78; font-size: 13px; font-weight: 700; vertical-align: 1px; }
.psf-req { margin-left: 4px; color: var(--psf-danger); font-weight: 700; }
.psf-help-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; margin-top: -3px; padding: 0; border: 1px solid var(--psf-border);
  border-radius: 50%; background: #fff; color: var(--psf-teal); cursor: pointer;
}
.psf-help-btn:hover, .psf-help-btn.is-open { background: var(--psf-teal-soft); border-color: var(--psf-teal-line); }
.psf-help-btn .psf-icon { width: 20px; height: 20px; }
/* Η βοήθεια ως συννεφάκι στο «?»: δεν μετακινεί τίποτα, κλείνει με Esc ή πάτημα έξω. */
.psf-tip {
  position: absolute; z-index: 30; max-width: calc(100% - 24px); padding: 12px 14px; border: 1px solid #d3e0ea; border-radius: 12px; background: #fff;
  color: var(--psf-ink); font-size: 14.5px; line-height: 1.5; box-shadow: 0 14px 34px rgba(16, 42, 67, .16);
}
.psf-tip::before {
  content: ''; position: absolute; top: -7px; left: var(--psf-arrow, 24px); width: 12px; height: 12px; margin-left: -6px; border-top: 1px solid #d3e0ea;
  border-left: 1px solid #d3e0ea; background: #fff; transform: rotate(45deg);
}
.psf-tip.is-above::before { top: auto; bottom: -7px; border: 0; border-right: 1px solid #d3e0ea; border-bottom: 1px solid #d3e0ea; }
.psf-q-hint { margin: -4px 0 10px; color: var(--psf-muted); font-size: 14px; }
.psf-q-error { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; color: var(--psf-danger); font-size: 14.5px; font-weight: 600; }
.psf-info { background: #fbfcfe; }
.psf-info .psf-q-title { margin-bottom: 8px; }

/* Επιλογές ως κάρτες: όλη η γραμμή πατιέται, το κουμπί μένει προσβάσιμο από το πληκτρολόγιο. */
.psf-options { display: grid; gap: 8px; }
.psf-options.is-inline { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.psf-options.is-yesno { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; }
.psf-option {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 50px; margin: 0; padding: 11px 14px; border: 1.5px solid var(--psf-border);
  border-radius: 12px; background: #fff; color: var(--psf-ink); font-size: 15.5px; font-weight: 500; line-height: 1.35; cursor: pointer; user-select: none;
  transition: border-color .12s ease, background-color .12s ease;
}
.psf-option:hover { background: var(--psf-hover); }
.psf-option input, .psf-pill input, .psf-cell input, .psf-star input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.psf-option-text { min-width: 0; overflow-wrap: anywhere; }
.psf-mark {
  display: inline-grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; border: 2px solid var(--psf-border-strong); border-radius: 50%;
  background: #fff; color: #fff; transition: border-color .12s ease, background-color .12s ease;
}
.psf-mark .psf-icon { width: 15px; height: 15px; opacity: 0; }
.psf-option input[type="checkbox"] + .psf-mark { border-radius: 7px; }
.psf-option.is-checked { border-color: var(--psf-teal); background: var(--psf-teal-soft); color: var(--psf-heading); font-weight: 600; }
.psf-option input:checked + .psf-mark { border-color: var(--psf-teal); background: var(--psf-teal); box-shadow: inset 0 0 0 3px #fff; }
.psf-option input[type="checkbox"]:checked + .psf-mark { box-shadow: none; }
.psf-option input:checked + .psf-mark .psf-icon { opacity: 1; }
.psf-option input:focus-visible + .psf-mark { outline: 3px solid var(--psf-gold); outline-offset: 2px; }
.psf-option.is-compact { min-height: 44px; padding: 8px 12px; border-width: 1px; }
.psf-input {
  display: block; width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--psf-border-strong); border-radius: 12px; background: #fff;
  color: var(--psf-ink); font: inherit; font-size: 16px; line-height: 1.45;
}
.psf-input:focus { outline: none; border-color: var(--psf-teal); box-shadow: 0 0 0 4px rgba(15, 118, 110, .14); }
.psf-input[aria-invalid="true"] { border-color: #e0a199; }
.psf-textarea { min-height: 120px; resize: none; overflow: hidden; }
.psf-other-input { margin-top: 8px; }
.psf-counter { margin: 6px 0 0; color: var(--psf-muted); font-size: 13px; text-align: right; }

/* Μεγάλες λίστες: κουμπί με την επιλογή, που ανοίγει στη θέση του λίστα με αναζήτηση (χωρίς δική της κύλιση). */
.psf-select { position: relative; }
.psf-select-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--psf-border-strong);
  border-radius: 12px; background: #fff; color: var(--psf-heading); font: inherit; font-size: 15.5px; font-weight: 600; text-align: left; cursor: pointer;
}
.psf-select-toggle.is-empty { color: var(--psf-muted); font-weight: 500; }
.psf-select-toggle:hover { background: var(--psf-hover); }
.psf-select-toggle[aria-expanded="true"] { border-color: var(--psf-teal); }
.psf-select-toggle[aria-expanded="true"] .psf-select-chevron { transform: rotate(180deg); }
.psf-select-chevron { width: 22px; height: 22px; color: var(--psf-muted); transition: transform .15s ease; }
.psf-select-panel { margin-top: 8px; padding: 10px; border: 1px solid var(--psf-border); border-radius: 14px; background: #fbfcfe; }
.psf-select-search { min-height: 44px; margin-bottom: 8px; }
.psf-select-list { display: grid; gap: 6px; }
.psf-select-empty { margin: 8px 4px; color: var(--psf-muted); font-size: 14px; }

/* Συναίνεση: οι όροι στη θέση τους, συμπτυγμένοι με απαλό σβήσιμο και κουμπί για όλο το κείμενο. */
.psf-consent-text { position: relative; margin: 0 0 6px; padding: 14px 16px; border: 1px solid var(--psf-border); border-radius: 12px; background: #fbfcfe; font-size: 14.5px; }
.psf-consent-text.is-collapsed { max-height: 168px; overflow: hidden; }
.psf-consent-text.is-collapsed::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 64px; border-radius: 0 0 12px 12px; background: linear-gradient(rgba(251, 252, 254, 0), #fbfcfe 85%); pointer-events: none; }
.psf-consent-toggle { margin: 0 0 12px; }
.psf-consent-option { font-weight: 600; }

/* Γραμμική κλίμακα, 0-10 και Δ/Α. */
.psf-scale-points { display: grid; grid-template-columns: repeat(var(--psf-points, 5), minmax(0, 1fr)); gap: 8px; }
.psf-scale-points.is-nps { gap: 5px; }
.psf-pill {
  position: relative; display: grid; place-items: center; min-height: 48px; margin: 0; padding: 4px; border: 1.5px solid var(--psf-border); border-radius: 12px;
  background: #fff; color: var(--psf-heading); font-size: 16px; font-weight: 600; cursor: pointer; transition: border-color .12s ease, background-color .12s ease;
}
.psf-pill:hover { background: var(--psf-hover); }
.psf-pill.is-checked { border-color: var(--psf-teal); background: var(--psf-teal); color: #fff; }
.psf-pill:has(input:focus-visible) { outline: 3px solid var(--psf-gold); outline-offset: 2px; }
.psf-pill.is-na { min-width: 76px; color: var(--psf-muted); font-size: 14px; }
.psf-pill.is-na.is-checked { border-color: var(--psf-slate); background: var(--psf-slate); color: #fff; }
.psf-scale-labels { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; color: var(--psf-muted); font-size: 13.5px; font-weight: 500; }
.psf-scale-labels span:last-child { text-align: right; }
.psf-scale-na { display: flex; margin-top: 10px; }

.psf-rating { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.psf-stars { display: inline-flex; gap: 4px; }
.psf-star { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: #cfd8e3; cursor: pointer; }
.psf-star .psf-icon { width: 36px; height: 36px; transition: transform .12s ease, color .12s ease; }
.psf-star.is-on { color: var(--psf-star); }
.psf-star:hover .psf-icon { transform: scale(1.08); }
.psf-star:has(input:focus-visible) { outline: 3px solid var(--psf-gold); outline-offset: 1px; }

/* Πίνακας: στήλες σε μεγάλη οθόνη, κάρτες ανά γραμμή στο κινητό (στο @media πιο κάτω). */
.psf-matrix { --psf-cell: 74px; }
.psf-matrix-head, .psf-matrix-row {
  display: grid; grid-template-columns: minmax(0, 1fr) repeat(calc(var(--psf-cols) + var(--psf-na)), var(--psf-cell)); align-items: center; column-gap: 4px;
}
.psf-matrix-head { padding: 0 0 8px; border-bottom: 1px solid var(--psf-border); color: var(--psf-muted); font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; }
.psf-matrix-head span { overflow-wrap: normal; word-break: normal; hyphens: auto; }
.psf-matrix.is-compact { --psf-cell: 58px; }
.psf-matrix.is-compact .psf-matrix-head { color: var(--psf-heading); font-size: 14px; font-weight: 700; }
.psf-matrix.is-compact .psf-matrix-head .is-na { color: var(--psf-muted); font-size: 12.5px; }
.psf-matrix-head .is-na, .psf-matrix-cells .psf-cell.is-na { border-left: 1px dashed var(--psf-border); }
.psf-matrix-legend { display: none; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; color: var(--psf-muted); font-size: 12.5px; }
.psf-matrix-legend li { padding: 3px 9px; border-radius: 999px; background: var(--psf-blue-soft); }
.psf-matrix-legend b { color: var(--psf-heading); font-weight: 700; }
.psf-matrix.is-compact .psf-matrix-legend { display: flex; }
.psf-matrix-cells { display: contents; }
.psf-matrix-row { min-height: 54px; padding: 6px 0; border-bottom: 1px solid #edf2f7; }
.psf-matrix-row:last-child { border-bottom: 0; }
.psf-matrix-label { padding: 4px 10px 4px 0; font-size: 15px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.psf-matrix-row.is-missing .psf-matrix-label { color: var(--psf-danger); }
.psf-cell { position: relative; display: grid; place-items: center; align-self: stretch; margin: 0; border-radius: 10px; cursor: pointer; }
.psf-cell:hover { background: var(--psf-hover); }
.psf-cell-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--psf-border-strong); border-radius: 50%; background: #fff; color: #fff; }
.psf-matrix.is-multiple .psf-cell-mark { border-radius: 7px; }
.psf-cell-mark .psf-icon { width: 15px; height: 15px; opacity: 0; }
.psf-cell input:checked + .psf-cell-mark { border-color: var(--psf-teal); background: var(--psf-teal); box-shadow: inset 0 0 0 3px #fff; }
.psf-matrix.is-multiple .psf-cell input:checked + .psf-cell-mark { box-shadow: none; }
.psf-cell input:checked + .psf-cell-mark .psf-icon { opacity: 1; }
.psf-cell.is-na input:checked + .psf-cell-mark { border-color: var(--psf-slate); background: var(--psf-slate); }
.psf-cell input:focus-visible + .psf-cell-mark { outline: 3px solid var(--psf-gold); outline-offset: 2px; }
.psf-cell-text { display: none; }

/* Κατάταξη. */
.psf-rank { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.psf-rank-item { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 8px 8px 6px; border: 1.5px solid var(--psf-border); border-radius: 12px; background: #fff; }
.psf-rank.is-set .psf-rank-item { border-color: var(--psf-teal-line); }
.psf-rank-item.is-ghost { opacity: .45; }
.psf-rank-handle { display: inline-grid; place-items: center; width: 28px; height: 36px; color: #9aabbb; cursor: grab; touch-action: none; }
.psf-rank-handle .psf-icon { width: 20px; height: 20px; }
.psf-rank-pos { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; background: var(--psf-blue-soft); color: var(--psf-heading); font-size: 14px; font-weight: 700; }
.psf-rank.is-set .psf-rank-pos { background: var(--psf-teal); color: #fff; }
.psf-rank-label { flex: 1 1 auto; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.psf-rank-actions { display: inline-flex; gap: 6px; }
.psf-rank-keep { margin-top: 10px; }

/* ----------------------------------------------------------------- navigation */

.psf-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.psf-nav .psf-btn { min-width: 150px; }

/* ----------------------------------------------------------------- end screens */

.psf-done { padding: 28px 22px 30px; text-align: center; }
.psf-done > .psf-tile { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; }
.psf-done > .psf-tile .psf-icon { width: 30px; height: 30px; }
.psf-done h2 { margin: 0 0 10px; color: var(--psf-heading); font-size: 24px; font-weight: 700; }
.psf-done .psf-rich { max-width: 560px; margin: 0 auto; }
.psf-done .psf-rich ul, .psf-done .psf-rich ol { display: inline-block; text-align: left; }

/* Η σύνοψη της δοκιμαστικής υποβολής: ανά ενότητα, ερώτηση σε απαλό κείμενο και η απάντηση έντονα ή σε chip. */
.psf-result-card { padding: 22px 22px 24px; }
.psf-result-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.psf-result-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 14px; background: var(--psf-teal-soft); color: var(--psf-teal); }
.psf-result-icon .psf-icon { width: 26px; height: 26px; }
.psf-result-head h2 { margin: 0; color: var(--psf-heading); font-size: 19px; font-weight: 700; line-height: 1.3; }
.psf-result-head p { margin: 2px 0 0; color: var(--psf-muted); font-size: 14px; }
.psf-result-section { margin-top: 14px; }
.psf-result-section h3 { margin: 0 0 6px; color: var(--psf-teal-dark); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.psf-result-list { margin: 0; border: 1px solid var(--psf-border); border-radius: 12px; overflow: hidden; }
.psf-result-row { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 4px 16px; padding: 10px 14px; border-bottom: 1px solid #edf2f7; }
.psf-result-row:last-child { border-bottom: 0; }
.psf-result-row.is-wide { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.psf-result-row.is-wide dt { color: var(--psf-heading); font-weight: 600; }
.psf-result-row.is-wide .psf-answer-grid { gap: 0; border: 1px solid #edf2f7; border-radius: 10px; overflow: hidden; }
.psf-result-row.is-wide .psf-answer-grid-row { padding: 7px 10px; }
.psf-result-row.is-wide .psf-answer-grid-row:nth-child(even) { background: #f8fafc; }
.psf-result-row dt { color: var(--psf-muted); font-size: 14px; font-weight: 500; line-height: 1.45; }
.psf-result-row dt .psf-q-code { margin-right: 6px; font-size: 12px; }
.psf-result-row dd { min-width: 0; margin: 0; color: var(--psf-heading); font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.psf-answer-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.psf-answer-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 10px; border-radius: 999px; background: var(--psf-teal-soft); color: var(--psf-teal-dark); font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.psf-answer-chip b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--psf-teal); color: #fff; font-size: 12px; }
.psf-answer-chip.is-na { background: #eef2f6; color: var(--psf-slate); }
.psf-answer-chip.is-other { background: var(--psf-gold-soft); color: #7a5300; }
.psf-answer-chip .psf-icon { color: var(--psf-star); }
.psf-answer-none { color: var(--psf-muted); font-size: 14px; font-weight: 500; font-style: italic; }
.psf-answer-text { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--psf-hover); color: var(--psf-ink); font-weight: 500; white-space: pre-line; }
.psf-answer-grid { display: grid; gap: 6px; }
.psf-answer-grid { gap: 8px; }
.psf-answer-grid-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 4px 12px; }
.psf-answer-grid-row > span:first-child { min-width: 0; color: var(--psf-ink); font-size: 13.5px; font-weight: 500; line-height: 1.45; }
.psf-answer-grid-row > :last-child { justify-self: end; }
.psf-answer-grid-row .psf-answer-chips { justify-content: flex-end; }
.psf-show-sm { display: none; }
.psf-answer-rank { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.psf-problem h2 { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; color: var(--psf-danger); font-size: 19px; font-weight: 700; }
.psf-problem-list { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.psf-problem-list li { padding: 9px 12px; border-radius: 10px; background: var(--psf-danger-soft); }
.psf-problem-list b { display: block; color: var(--psf-heading); font-size: 13px; font-weight: 700; }

/* ----------------------------------------------------------------- dialog */

.psf-dialog-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(16, 42, 67, .42); }
.psf-dialog { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; border-radius: 18px; background: #fff; box-shadow: 0 20px 60px rgba(16, 42, 67, .25); }
.psf-dialog.is-wide { width: min(880px, 100%); }
.psf-dialog-title { margin: 0 0 8px; color: var(--psf-heading); font-size: 20px; font-weight: 700; }
.psf-dialog-body { color: var(--psf-ink); font-size: 15.5px; }
.psf-dialog-body p { margin: 0; }
.psf-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.psf-faq { margin: 0; }
.psf-faq dt { margin-top: 12px; color: var(--psf-heading); font-weight: 700; }
.psf-faq dt:first-child { margin-top: 0; }
.psf-faq dd { margin: 4px 0 0; color: var(--psf-muted); }

/* Η Βοήθεια με στιγμιότυπα, όπως η Βοήθεια του συστήματος: εικόνα με αριθμούς και υπόμνημα, μεγέθυνση σε νέα καρτέλα. */
.psf-help { display: grid; gap: 20px; }
.psf-help h3 { margin: 0 0 10px; color: var(--psf-heading); font-size: 16px; font-weight: 700; }
.psf-help-steps { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.psf-help-step { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.psf-help-shot { position: relative; display: block; overflow: hidden; border: 1px solid var(--psf-border); border-radius: 12px; background: var(--psf-bg); cursor: zoom-in; }
.psf-help-shot img { display: block; width: 100%; height: auto; }
.psf-help-shot:focus-visible { outline: 3px solid var(--psf-gold); outline-offset: 3px; }
.psf-help-zoom { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(16, 42, 67, .72);
  color: #fff; opacity: 0; transition: opacity .15s ease; }
.psf-help-shot:hover .psf-help-zoom, .psf-help-shot:focus-visible .psf-help-zoom { opacity: 1; }
.psf-help-step h4 { margin: 0 0 8px; color: var(--psf-heading); font-size: 15px; font-weight: 700; }
.psf-help-legend { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.psf-help-legend li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; color: var(--psf-ink); font-size: 14px; line-height: 1.5; }
.psf-help-legend b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: #e8590c; color: #fff; font-size: 12px; font-weight: 800; }

/* ----------------------------------------------------------------- the preview: devices as mock-ups that fit the height */

.psf-frame-wrap { position: relative; display: flex; align-items: flex-start; justify-content: center; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.psf-device-fit { position: relative; flex: 0 0 auto; }
.psf-device { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; overflow: hidden; transform-origin: top left; }
.psf-device-screen { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: var(--psf-bg); }
.psf-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--psf-bg); }
.psf-browser-bar, .psf-device-notch, .psf-device-status { display: none; }
/* Υπολογιστής: παράθυρο browser με γραμμή διεύθυνσης. */
.psf-device.is-desktop { border: 1px solid #ccd8e4; border-radius: 14px; background: #fff; box-shadow: 0 18px 48px rgba(16, 42, 67, .14); }
.psf-device.is-desktop .psf-browser-bar { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; height: 46px; padding: 0 16px; border-bottom: 1px solid #dbe4ee; background: #eef3f8; }
.psf-browser-pill { display: inline-flex; align-items: center; gap: 8px; width: min(560px, 100%); height: 30px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--psf-muted); font-size: 13px; font-weight: 500; }
.psf-browser-pill .psf-icon { width: 15px; height: 15px; color: var(--psf-teal); }
.psf-browser-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Tablet και κινητό: πλαίσιο συσκευής σε απαλό χρώμα, και στο κινητό η εγκοπή της κάμερας. */
.psf-device.is-tablet, .psf-device.is-phone { padding: 16px; border: 1px solid #c3d0dc; border-radius: 34px; background: #e6edf4; box-shadow: 0 22px 54px rgba(16, 42, 67, .18), inset 0 0 0 2px #f6f9fc; }
.psf-device.is-tablet .psf-device-screen, .psf-device.is-phone .psf-device-screen { border-radius: 16px; box-shadow: 0 0 0 1px #c9d5e1; }
.psf-device.is-phone { padding: 12px; border-radius: 46px; }
.psf-device.is-phone .psf-device-screen { display: flex; flex-direction: column; border-radius: 34px; }
.psf-device.is-phone .psf-device-status { display: block; flex: 0 0 30px; background: #fff; }
.psf-device.is-phone .psf-frame { flex: 1 1 auto; height: auto; min-height: 0; }
.psf-device.is-phone .psf-device-notch { position: absolute; top: 0; left: 50%; z-index: 2; display: block; width: 116px; height: 26px; margin-left: -58px; border-radius: 0 0 16px 16px; background: #e6edf4; }
.psf-device.is-phone .psf-device-notch::after { content: ''; position: absolute; top: 9px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 999px; background: #c3d0dc; }

.psf-body.is-frame { min-height: 0; }
.is-frame .psf-main { padding-top: 16px; }

.psf-preview-page { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.psf-preview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 16px; border-bottom: 1px solid var(--psf-border); background: #fff; }
.psf-preview-heading { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.psf-preview-heading img { width: 30px; height: 30px; }
.psf-preview-heading div { display: grid; min-width: 0; line-height: 1.25; }
.psf-preview-heading strong { overflow: hidden; color: var(--psf-heading); font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.psf-preview-heading span { color: var(--psf-muted); font-size: 12.5px; font-weight: 500; }
.psf-preview-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--psf-blue-soft); color: #234a6b; font-size: 12.5px; font-weight: 600; }
.psf-segment { display: inline-flex; padding: 3px; border: 1px solid var(--psf-border); border-radius: 12px; background: #fff; }
.psf-segment button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent;
  color: var(--psf-muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.psf-segment button[aria-pressed="true"] { background: var(--psf-teal); color: #fff; }
.psf-segment button:not([aria-pressed="true"]):not(:disabled):hover { background: var(--psf-hover); color: var(--psf-heading); }
.psf-segment button:disabled { opacity: .45; cursor: not-allowed; }
.psf-preview-stage { flex: 1 1 auto; min-height: 0; padding: 18px; overflow: hidden; background: #e9eff6; }
.psf-preview-empty { margin: 40px auto; max-width: 520px; text-align: center; }

/* ----------------------------------------------------------------- small screens */

@media (max-width: 640px) {
  html:has(.psf-body:not(.psf-preview-page)) { scroll-padding-top: 130px; scroll-padding-bottom: 96px; }
  .psf-main { padding: 14px 10px 28px; }
  .psf-header-inner { padding: 8px 12px; }
  .psf-brand-text span { display: none; }
  .psf-card { padding: 16px; border-radius: 14px; }
  .psf-q { padding: 16px 14px 18px; }
  .psf-card.psf-entry { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .psf-entry-main { padding: 22px 18px 20px; }
  .psf-entry-side { padding: 20px 18px 22px; border-top: 1px solid var(--psf-border); border-left: 0; }
  .psf-main:has(> .psf-entry:not([hidden])) { padding-top: 16px; }
  .psf-welcome { padding: 20px 16px; }
  .psf-footer-inner { flex-direction: column; align-items: flex-start; }
  .psf-help-step { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .psf-entry h1, .psf-title { font-size: 22px; }
  .psf-code-input { font-size: 19px; letter-spacing: .07em; }
  .psf-progress { top: 57px; }
  .psf-nav { position: sticky; bottom: 0; z-index: 9; margin: 16px -10px 0; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--psf-border);
    background: rgba(244, 247, 251, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .psf-nav .psf-btn { flex: 1 1 0; min-width: 0; }
  .psf-options.is-inline { grid-template-columns: 1fr; }
  .psf-scale-points.is-nps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .psf-pill { min-height: 46px; }

  .psf-matrix-head { display: none; }
  .psf-matrix-legend { display: flex; }
  .psf-matrix-row { display: block; margin: 0 0 10px; padding: 12px; border: 1.5px solid var(--psf-border); border-radius: 12px; }
  .psf-matrix-row:last-child { border-bottom: 1.5px solid var(--psf-border); margin-bottom: 0; }
  .psf-matrix-row.is-done { border-color: var(--psf-teal-line); background: #fbfefd; }
  .psf-matrix-row.is-missing { border-color: #f0b8b1; background: #fffbfa; }
  .psf-matrix-label { padding: 0 0 10px; }
  .psf-matrix-cells { display: flex; flex-wrap: wrap; gap: 6px; }
  .psf-cell { flex: 1 1 0; min-width: 44px; min-height: 44px; padding: 4px 6px; border: 1.5px solid var(--psf-border); background: #fff; }
  .psf-matrix.is-labels .psf-cell { flex: 1 1 100%; justify-content: start; place-items: center start; padding: 8px 12px; }
  .psf-cell.is-na { flex: 0 0 auto; min-width: 64px; }
  .psf-matrix-head .is-na, .psf-matrix-cells .psf-cell.is-na { border-left: 1.5px solid var(--psf-border); }
  .psf-cell-mark { display: none; }
  .psf-cell-text { display: block; color: var(--psf-heading); font-size: 15px; font-weight: 600; text-align: center; }
  .psf-matrix.is-labels .psf-cell-text { font-size: 14.5px; font-weight: 500; text-align: left; }
  .psf-cell.is-checked { border-color: var(--psf-teal); background: var(--psf-teal); }
  .psf-cell.is-checked .psf-cell-text { color: #fff; }
  .psf-cell.is-na.is-checked { border-color: var(--psf-slate); background: var(--psf-slate); }
  .psf-cell:has(input:focus-visible) { outline: 3px solid var(--psf-gold); outline-offset: 2px; }
  .psf-star { width: 42px; height: 42px; }
  .psf-star .psf-icon { width: 34px; height: 34px; }
  .psf-result-card { padding: 16px; }
  .psf-result-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px 12px; }
  .psf-preview-bar { gap: 8px; padding: 8px 10px; }
  .psf-preview-heading { flex: 1 1 100%; }
  .psf-preview-stage { padding: 10px; }
  .psf-hide-sm { display: none; }
  .psf-show-sm { display: inline; }
  .psf-segment button { padding: 0 10px; }
  .psf-answer-grid-row { grid-template-columns: minmax(0, 1fr); }
  .psf-answer-grid-row > :last-child { justify-self: start; }
  .psf-answer-grid-row .psf-answer-chips { justify-content: flex-start; }
}

@media (max-width: 380px) {
  .psf-scale-points { gap: 5px; }
  .psf-pill { font-size: 15px; }
  .psf-rank-actions .psf-icon-btn { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .psf *, .psf-body * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .psf-header, .psf-nav, .psf-help-btn, .psf-tip { display: none !important; }
  .psf-card { box-shadow: none; }
  .psf-consent-text.is-collapsed { max-height: none; }
}
