/* Shared readability, touch targets, and responsive application layouts. */
[hidden] { display: none !important; }
body { font: 400 16px/1.75 'Segoe UI',system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif; }
input, textarea, select { font-size: 16px; }
input::placeholder, textarea::placeholder { font-size: 15px; }
button, a { touch-action: manipulation; }
.button { min-height: 46px; font-size: 14px; }
label { font-size: 15px; }
.path-card p, .intro p { font-size: 15px; }
.card-link, .path-card .card-link { font-size: 14px; }
.card-number { font-size: 12px; }
.hero p { font-size: 16px; }
.join-banner p { font-size: 15px; }
.footer-top > div { font-size: 13px; }
.footer-top > div a, .footer-top > div button { min-height: 44px; display: inline-flex; align-items: center; }
.footer-bottom { font-size: 12px; }
.lore-layout aside a { min-height: 44px; display: flex; align-items: center; font-size: 15px; }
.step p, .locked p, .notice { font-size: 15px; }
.step .text-button, .step .card-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }
.site-header #account { min-height: 44px; }
.site-header nav, .site-header #account { font-family: 'Segoe UI', Arial, sans-serif; font-weight: 600; }
.site-header #account .account-label, .site-header #account .account-short-label { font-size: 16px; line-height: 1.4; }
.account-short-label { display: none; }
.site-header .menu-button { min-width: 44px; min-height: 44px; }
.site-header nav a { font-size: 16px; min-height: 44px; color: #bdc7c2; }
.site-header .staff-nav-link { color: var(--gold); }
.site-header .nav-shell { grid-template-columns: auto 1fr auto; }
.site-header nav { justify-self: center; }
.field-hint { color: #a1ada9; font-size: 14px; line-height: 1.7; }
.error:empty { display: none; }
.form-progress { border: 1px solid var(--line); padding: 16px 20px; border-radius: 6px; background: #182021; margin-bottom: 28px; }
.form-progress > div { display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 13px; }
.form-progress progress { display: block; width: 100%; height: 5px; border: 0; accent-color: var(--gold); margin-top: 12px; border-radius: 10px; overflow: hidden; }
progress::-webkit-progress-bar { background: #ffffff12; }
progress::-webkit-progress-value { background: var(--gold); }
.form-progress small { display: block; margin-top: 9px; color: var(--muted); font-size: 13px; }
.writing-tips p, .writing-tips li { font-size: 15px; }
.form-actions .muted, label small { font-size: 13px; }
.checkbox { font-size: 14px; gap: 12px; min-height: 44px; }
.checkbox a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.checkbox input { min-width: 20px; min-height: 20px; margin-top: 0; }
.submission-status { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 1px solid #c4c8cf30; background: #c4c8cf08; border-radius: 6px; margin-bottom: 25px; }
.submission-status p { margin: 3px 0 0; font-size: 14px; }
.submission-status .button { white-space: nowrap; }
.staff { width: min(1320px, calc(100% - 64px)); padding-top: 38px; }
.staff-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.staff-heading h1 { font: 600 34px/1.25 'Segoe UI',Arial,sans-serif; letter-spacing: -.7px; margin: 9px 0; }
.staff-heading p { font-size: 15px; max-width: 710px; margin-bottom: 0; }
.staff-heading > .button { flex-shrink: 0; }
.staff-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; margin-bottom: 28px; }
.summary-card { text-align: left; padding: 19px 21px; border: 1px solid var(--line); background: #151e20; border-radius: 8px; transition: border-color .2s, background .2s; }
.summary-card:hover { border-color: #c4c8cf55; }
.summary-card.is-active { border-color: #c4c8cf70; background: #c4c8cf0a; }
.summary-card > span { display: block; font-size: 14px; color: #c1c9c4; }
.summary-card strong { display: block; font-size: 30px; line-height: 1.4; font-weight: 500; color: var(--gold); margin: 5px 0; }
.summary-card small { color: var(--muted); font-size: 12px; }
.staff-toolbar { align-items: end; margin-bottom: 25px; gap: 18px; }
.staff-toolbar { flex-wrap: wrap; }
.tag-filter-label { margin: 0; min-width: 170px; max-width: 250px; flex: 1; font-size: 13px; color: #b8c3bc; }
.tag-filter-label select { text-overflow: ellipsis; }
.tag-catalog { border: 1px solid var(--line); border-radius: 7px; padding: 0 18px; margin: -5px 0 25px; background: #ffffff02; }
.tag-catalog > summary, .tag-create-details > summary { cursor: pointer; min-height: 48px; padding: 12px 0; font-size: 15px; color: #ddc59c; }
.tag-catalog > summary span { color: var(--muted); font-size: 13px; margin-left: 10px; }
.catalog-tags, .tag-options { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-tags { margin-bottom: 15px; }
.catalog-tag { display: inline-flex; align-items: stretch; max-width: 100%; border: 1px solid #b59ed33b; border-radius: 6px; overflow: hidden; }
.catalog-tag .tag-choice { border: 0; border-radius: 0; min-width: 0; }
.delete-tag-button { min-height: 44px; flex-shrink: 0; border: 0; border-left: 1px solid #b59ed326; background: #d3988f08; color: #e1a9a0; padding: 8px 12px; font-size: 13px; }
.delete-tag-button:hover { background: #d3988f20; }
.catalog-tag:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
#delete-tag-description { font-size: 15px; }
.tag-choice { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 1px solid #b59ed33b; border-radius: 6px; padding: 8px 12px; color: #c5b2df; background: #b59ed309; font-size: 14px; text-align: left; max-width: 100%; overflow-wrap: anywhere; }
.tag-choice:hover { border-color: #b59ed380; background: #b59ed319; }
.tag-choice.is-assigned { color: #e2d5f5; background: #b59ed323; border-color: #b59ed38c; }
.background-tags { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 25px; }
.background-tags h3 { font-size: 16px; margin-bottom: 8px; }
.background-tags .field-hint { font-size: 13px; }
.tag-create-details { margin-top: 8px; }
.create-tag-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 5px 0 18px; }
.create-tag-form label { flex: 1; min-width: 160px; margin: 0; font-size: 14px; }
.create-tag-form .button { flex-shrink: 0; font-size: 13px; min-height: 48px; }
.create-tag-form .error { flex-basis: 100%; font-size: 14px; margin: 0; }
.row-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.row-tags:empty { display: none; }
.tag-pill { font-size: 12px; line-height: 1.5; padding: 3px 7px; border-radius: 4px; color: #c5b2df; background: #b59ed310; border: 1px solid #b59ed326; max-width: 100%; overflow-wrap: anywhere; }
.staff .search-label { width: auto; flex: 1; max-width: 540px; }
.staff .search-label > span, .sort-label { font-size: 13px; color: #b8c3bc; }
.search-field { position: relative; }
.search-field > span { position: absolute; font-size: 27px; left: 14px; top: 2px; color: #a9b6ad; pointer-events: none; }
.staff .search-field input { margin-top: 7px; padding: 12px 15px 12px 42px; font-size: 16px; height: 46px; }
.sort-label { margin: 0; min-width: 215px; }
select { display: block; width: 100%; margin-top: 7px; padding: 11px 35px 11px 12px; min-height: 46px; color: var(--text); background: #161a21; border: 1px solid #ffffff1c; border-radius: 4px; }
/* Stesso aspetto su tutti i sistemi: senza appearance:none Safari/macOS (e iOS) disegnano la tendina di sistema */
select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background: #161a21 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c9ad74' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center / 12px 8px;
  cursor: pointer; transition: border-color .2s;
}
select::-ms-expand { display: none; }
select:hover { border-color: #ffffff33; }
select:focus { border-color: var(--gold); }
select:disabled { opacity: .6; cursor: not-allowed; }
select option { background: #161a21; color: var(--text); }
select option:disabled { color: #6d7774; }
.review-layout { grid-template-columns: minmax(320px,.85fr) minmax(0,1.3fr); gap: 24px; }
.queue-panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #141c1e; }
.queue-heading { display: flex; align-items: center; justify-content: space-between; padding: 20px; gap: 12px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.queue-heading h2 { font: 600 17px/1.45 'Segoe UI',Arial,sans-serif; letter-spacing: 0; margin: 0; }
.queue-heading > span { font-size: 13px; color: var(--muted); }
.staff .submission-list { border: 0; border-radius: 0; max-height: 750px; overflow-y: auto; }
.staff .submission-row { padding: 20px; gap: 13px; align-items: start; border-left: 3px solid transparent; }
.staff .submission-row.selected { background: #c4c8cf0c; border-left-color: var(--gold); }
.candidate-avatar { display: grid; place-items: center; flex-shrink: 0; width: 35px; height: 35px; border-radius: 8px; border: 1px solid #c4c8cf25; color: var(--gold); background: #c4c8cf09; font: 23px 'Cormorant Garamond',serif; }
.candidate-info { flex: 1; min-width: 0; }
.staff .candidate-info strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.staff .candidate-info small { font-size: 12px; margin: 3px 0; overflow-wrap: anywhere; }
.candidate-meta { color: #83968c; display: block; font-size: 12px; }
.candidate-state { display: flex; flex-direction: column; align-items: end; gap: 14px; flex-shrink: 0; }
.read-link { font-size: 12px; color: var(--gold); }
.staff .badge { font-size: 12px; }
.staff .review-panel { border-radius: 8px; padding: 27px; background: #151920; min-width: 0; overflow: visible; }
.review-navigation { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 19px; margin-bottom: 23px; border-bottom: 1px solid var(--line); }
.back-to-list { min-height: 44px; font-size: 13px; }
.candidate-pagination { display: flex; align-items: center; gap: 10px; }
.candidate-pagination > span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.icon-button { display: grid; place-items: center; min-height: 44px; min-width: 44px; background: transparent; border: 1px solid var(--line); border-radius: 5px; }
.icon-button:hover { border-color: #c4c8cf55; }
.icon-button:disabled { opacity: .3; cursor: default; }
.staff .submission-title { margin-bottom: 9px; }
.staff .submission-title h2 { font-size: 34px; margin: 8px 0 0; overflow-wrap: anywhere; }
.candidate-byline { font-size: 13px; color: var(--muted); padding-bottom: 23px; margin-bottom: 24px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.section-label { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.section-label > span { display: grid; place-items: center; width: 25px; height: 25px; flex-shrink: 0; border: 1px solid #c4c8cf30; border-radius: 50%; color: var(--gold); font-size: 12px; }
.staff .section-label h3 { font: 500 16px/1.5 'DM Sans',sans-serif; margin: 0; }
.character-facts { display: grid; grid-template-columns: auto 1fr; gap: 25px; padding: 17px; background: #ffffff03; border-radius: 5px; margin: 0 0 24px; }
.character-facts dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.character-facts dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.staff .prose h4 { font-size: 13px; font-weight: 500; letter-spacing: .5px; color: #d0bb94; margin: 23px 0 10px; }
.staff .prose p { font-size: 16px; line-height: 1.95; color: #bbc5bf; }
.staff-notes { padding-top: 25px; margin-top: 30px; }
.privacy-label { display: inline-flex; align-items: center; font-size: 13px; padding: 6px 10px; background: #9bb4db0c; border: 1px solid #9bb4db22; color: #a9bbce; border-radius: 4px; margin-bottom: 15px; }
.notes-history { margin-bottom: 20px; }
.notes-history summary { font-size: 14px; color: #c7d0c8; padding: 10px 0; min-height: 44px; cursor: pointer; }
.staff .note small { font-size: 12px; }
.staff .note p { font-size: 15px; }
.staff #note-form label, .staff #review-form label { margin-bottom: 8px; }
.note-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.note-footer small, .decision-hint { color: var(--muted); font-size: 13px; }
.staff #note-form .button { margin-top: 12px; min-height: 44px; font-size: 13px; white-space: nowrap; }
.decision-section { border-top: 1px solid var(--line); padding-top: 25px; }
.decision-section label .muted { display: block; font-size: 13px; font-weight: 400; }
.review-actions { flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.staff .review-actions .button { flex: 1; min-height: 46px; font-size: 13px; }
.decision-hint { display: block; margin-top: 14px; text-align: center; }
.staff .review-placeholder { display: block; padding: 100px 25px; background: #15192066; }
.review-placeholder h2 { font-size: 28px; margin: 18px 0 10px; }
.review-placeholder p { font-size: 15px; }
.review-placeholder .button { margin-top: 15px; }
.staff .empty { padding: 50px 20px; }
.staff .empty p { font-size: 15px; }
.staff .empty .button { margin-top: 10px; }
.dialog-actions { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 25px; }
.decision-person { color: var(--gold); font-size: 17px; overflow-wrap: anywhere; }
#decision-message { background: #ffffff05; padding: 15px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 200px; overflow: auto; font-size: 15px; }
dialog { max-height: calc(100dvh - 40px); overflow-y: auto; }
dialog p { font-size: 15px; }
.close { min-height: 44px; min-width: 44px; }
#demo-options small { font-size: 13px; }
.login-message { font-size: 14px; }
#toast { padding-bottom: max(13px,env(safe-area-inset-bottom)); font-size: 15px; text-align: center; }
@media (min-width: 1051px) and (max-width: 1200px) {
  .site-header .nav-shell { gap: 15px; }
  .site-header nav a { padding-inline: 10px; }
  .site-header #account .account-label { font-size: 16px; }
}
@media (max-width: 1000px) {
  .staff { width: calc(100% - 40px); }
  .staff .review-layout { grid-template-columns: minmax(0,1fr); }
  .staff .review-placeholder { display: none; }
  .staff.has-selection .staff-overview, .staff.has-selection .queue-panel { display: none; }
  .staff .submission-list { max-height: none; }
  .staff .review-panel { max-width: 760px; width: 100%; margin: auto; }
  .staff:not(.has-selection) .queue-panel { width: 100%; }
}
@media (max-width: 1050px) {
  .site-header .nav-shell { grid-template-columns: minmax(0,1fr) auto auto; }
  .site-header nav { justify-self: stretch; }
  .site-header #account .account-label { font-size: 16px; }
  .staff-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .staff-summary .summary-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .tag-filter-label { width: 100%; max-width: none; }
  .create-tag-form { align-items: stretch; flex-direction: column; }
  .create-tag-form label { min-width: 0; }
  .create-tag-form .button { width: 100%; }
  .tag-catalog { padding-inline: 14px; }
  .site-header #account:not(.signed-in) .account-label { display: none; }
  .site-header #account:not(.signed-in) .account-short-label { display: inline; }
  .site-header #account .account-label, .site-header #account .account-short-label { font-size: 15px; }
  .site-header #account.signed-in .account-label { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .staff { width: calc(100% - 32px); padding-top: 25px; }
  .staff-heading { align-items: start; gap: 12px; }
  .staff-heading h1 { font-size: 34px; }
  .staff-heading p { font-size: 14px; }
  .staff-heading > .button { padding: 8px 10px; min-height: 44px; font-size: 12px; }
  .staff-summary { gap: 10px; margin-bottom: 20px; }
  .summary-card { padding: 14px; }
  .summary-card strong { font-size: 27px; }
  .summary-card small { font-size: 12px; }
  .staff-toolbar { align-items: stretch; gap: 15px; }
  .staff .search-label { width: 100%; max-width: none; }
  .sort-label { min-width: 0; }
  .staff .search-field input, select { font-size: 16px; }
  .queue-heading { padding: 16px; }
  .staff .submission-row { padding: 17px 12px; gap: 10px; }
  .candidate-avatar { width: 30px; height: 32px; }
  .staff .candidate-info strong { font-size: 15px; }
  .candidate-state { gap: 10px; }
  .staff .badge { font-size: 12px; padding: 4px 8px; }
  .read-link { font-size: 12px; }
  .staff .review-panel { padding: 18px 16px; }
  .review-navigation { gap: 5px; margin-bottom: 20px; }
  .candidate-pagination { gap: 5px; }
  .back-to-list { font-size: 13px; }
  .icon-button { min-width: 44px; }
  .staff .submission-title h2 { font-size: 32px; }
  .staff .prose p { font-size: 16px; }
  .staff .section-label h3 { font-size: 16px; }
  .privacy-label { font-size: 12px; }
  .note-footer { align-items: start; flex-direction: column; gap: 0; }
  .note-footer .button { width: 100%; }
  .review-actions { flex-direction: column-reverse; }
  .review-actions .button { width: 100%; }
  .character-facts { gap: 18px; }
  .form-progress { padding: 15px; }
  .form-progress > div { font-size: 12px; }
  .submission-status { align-items: stretch; flex-direction: column; gap: 15px; }
  .page-heading h1 { font-size: clamp(35px,10vw,48px); }
  .prose p { font-size: 16px; }
  .hero h1 { font-size: clamp(34px,10vw,60px); }
  .hero { height: auto; min-height: 660px; padding-bottom: 85px; }
  .hero-content { padding-top: 55px; }
  .hero-foot { font-size: 12px; }
  .hero-actions .button { width: 100%; max-width: 330px; }
  .footer-bottom { gap: 12px; }
  .footer-top > div { gap: 18px; }
  .intro h2 { font-size: 34px; }
  .path-card p { min-height: 0; }
  .lore-layout { gap: 25px; }
  .lore-layout aside { gap: 5px; }
}
@media (max-width: 380px) {
  .site-header .nav-shell { width: calc(100% - 24px); gap: 6px; }
  .site-header .header-brand { gap: 6px; }
  .header-logo { height: 32px; }
  .site-header #account { padding-inline: 8px; }
  .site-header #account .account-label { font-size: 15px; max-width: 110px; }
  .staff-heading { flex-wrap: wrap; }
  .candidate-avatar { display: none; }
  .review-navigation { flex-wrap: wrap; }
  .candidate-pagination { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Reading hierarchy: expressive headings, clear interface and body copy. */
:root { --muted: #aab7b0; --text: #edf0e9; }
body { text-rendering: optimizeLegibility; }
p { color: #b6c1ba; }
h1,h2,h3,h4 { text-wrap: balance; }
input,textarea,select,button { font-family: inherit; }
input,textarea,select { line-height: 1.6; }
input::placeholder,textarea::placeholder { color: #9aa8a0; font-size: 15px; }
textarea { line-height: 1.8; }
label { line-height: 1.65; font-weight: 500; }
label .muted { font-weight: 400; }
.button { font-size: 15px; font-weight: 600; line-height: 1.5; padding: 13px 21px; }
.eyebrow { font-size: 12px; letter-spacing: 1.7px; font-weight: 600; }
.hero { height: auto; min-height: 690px; padding-bottom: 78px; }
.hero-eyebrow { font-size: 12px; letter-spacing: 1.8px; }
.hero h1 { font-size: clamp(54px,5.5vw,80px); line-height: 1.08; font-weight: 500; }
.hero p { font-size: 18px; line-height: 1.75; max-width: 52ch; }
.hero-foot { font-size: 13px; color: #bdc5bd; }
.hero .scroll-hint { font-size: 11px; letter-spacing: 1.2px; min-height: 44px; bottom: 10px; }
.intro { gap: 65px; padding-block: 65px 38px; }
.intro p { font-size: 17px; line-height: 1.85; max-width: 55ch; }
.intro h2 { font-size: clamp(34px,3.3vw,44px); line-height: 1.2; }
.path-card { display: flex; flex-direction: column; padding: 28px; }
.path-card h3 { font: 600 22px/1.35 'Segoe UI',Arial,sans-serif; margin-bottom: 13px; letter-spacing: -.3px; }
.path-card p { font-size: 16px; line-height: 1.8; margin-bottom: 23px; }
.card-number { font-size: 12px; letter-spacing: 1px; }
.path-card .card-link { margin-top: auto; font-size: 15px; min-height: 44px; }
.quote-section blockquote { font-size: clamp(28px,3vw,38px); line-height: 1.45; }
.quote-section p { font-size: 12px; letter-spacing: 1.3px; }
.join-banner h2 { font-size: 38px; }
.join-banner p { font-size: 16px; max-width: 55ch; }
.page-heading { max-width: 850px; margin-bottom: 36px; }
.page-heading h1 { font: 600 clamp(34px,3.5vw,48px)/1.18 'Segoe UI',Arial,sans-serif; letter-spacing: -1px; margin: 16px 0 20px; text-wrap: balance; }
.page-heading p { max-width: 65ch; font-size: 17px; line-height: 1.8; }
.prose { max-width: 68ch; }
.prose p { font-size: 17px; line-height: 1.85; }
.prose h2 { font-size: 38px; margin-bottom: 20px; }
.prose h3 { font-family: inherit; font-size: 20px; }
.lore-layout aside { gap: 9px; }
.lore-layout aside a { font-size: 15px; }
.notice { font-size: 15px; line-height: 1.8; color: #c8cbce; }
.step h2 { font: 600 24px/1.35 'Segoe UI',Arial,sans-serif; }
.step p { font-size: 16px; line-height: 1.8; }
.step .text-button,.step .card-link { font-size: 15px; }
.locked { padding-block: 45px; }
.locked h2 { font: 600 clamp(25px,3vw,32px)/1.3 'Segoe UI',Arial,sans-serif; }
.locked p { font-size: 16px; line-height: 1.8; max-width: 60ch; margin-inline: auto; }
.locked small { font-size: 14px; color: var(--muted); }
.form-section-title h2 { font: 600 22px/1.4 'Segoe UI',Arial,sans-serif; letter-spacing: -.3px; }
.form-section-title > span { font-size: 14px; }
.form-progress > div { font-size: 14px; flex-wrap: wrap; }
.form-progress small { font-size: 14px; line-height: 1.7; }
.checkbox { font-size: 15px; }
.writing-tips h3 { font: 600 22px/1.4 'Segoe UI',Arial,sans-serif; }
.writing-tips p,.writing-tips li { font-size: 15px; line-height: 1.8; }
.form-actions .muted,label small { font-size: 14px; }
.badge { font-size: 13px; line-height: 1.5; }
.staff-heading h1 { font-weight: 600; }
.staff .prose p { font-size: 17px; line-height: 1.85; color: #c5cec7; }
.staff .prose h4 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.staff .submission-title h2 { font: 600 28px/1.3 'Segoe UI',Arial,sans-serif; letter-spacing: -.5px; }
.staff .candidate-info strong { font-size: 16px; line-height: 1.5; }
.staff .candidate-info small,.candidate-meta { font-size: 13px; }
.staff .read-link { font-size: 12px; }
.staff .review-actions .button { font-size: 15px; }
.staff #note-form .button,.create-tag-form .button { font-size: 14px; }
.staff .review-navigation { flex-wrap: wrap; }
.candidate-pagination { margin-left: auto; }
.candidate-byline { font-size: 14px; }
.character-facts dt { font-size: 13px; }
.character-facts dd { font-size: 16px; }
.staff #review-form label .muted { font-size: 14px; }
.tag-pill { font-size: 12px; }
.tag-choice { font-size: 14px; }
.footer-top > div { font-size: 14px; gap: 24px; }
.footer-bottom { font-size: 12px; line-height: 1.8; }
.footer-top .footer-brand { gap: 16px; }
.footer-top .footer-brand small { margin-top: 0; }
.footer-mark { display: block; height: 58px; width: auto; flex-shrink: 0; }
.footer-top .brand small { font-size: 12px; line-height: 1.6; letter-spacing: .7px; white-space: normal; max-width: 24ch; }
dialog h2 { font: 600 28px/1.3 'Segoe UI',Arial,sans-serif; letter-spacing: -.5px; }
dialog p { font-size: 16px; line-height: 1.8; }
.decision-person { font-size: 18px; }
@media(max-width:760px){
  .hero { min-height: 650px; padding-bottom: 78px; }
  .hero-content { padding-top: 48px; }
  .hero h1 { font-size: clamp(35px,10.3vw,60px); letter-spacing: -.8px; }
  .hero p { font-size: 17px; max-width: 38ch; }
  .hero-eyebrow { font-size: 11px; letter-spacing: 1.5px; }
  .hero-foot { font-size: 12px; line-height: 1.7; margin-top: 26px; }
  .intro { grid-template-columns: 1fr; gap: 22px; padding-top: 45px; }
  .intro p { font-size: 16px; }
  .path-card { padding: 25px; }
  .card-number { right: 24px; }
  .page-heading h1 { font-size: clamp(32px,8vw,42px); letter-spacing: -.7px; }
  .page-heading p { font-size: 16px; }
  .prose p { font-size: 16px; }
  .prose h2 { font-size: 34px; }
  .join-banner h2 { font-size: 32px; }
  .footer-top > div { gap: 10px 22px; }
  .privacy-label { max-width: 100%; line-height: 1.6; }
}
@media(max-width:600px){
  .staff-heading { position: relative; }
  .staff-heading > .button { position: absolute; right: 0; top: 0; font-size: 13px; }
  .staff-heading .eyebrow { min-height: 44px; display: flex; align-items: center; padding-right: 120px; }
  .staff-heading h1 { font-size: 29px; line-height: 1.25; letter-spacing: -.7px; }
  .staff-heading p { font-size: 15px; line-height: 1.8; }
  .summary-card > span { font-size: 15px; }
  .summary-card small { font-size: 12px; line-height: 1.6; display: block; }
  .staff .candidate-info strong { font-size: 15px; }
  .staff .candidate-info small,.candidate-meta { font-size: 12px; }
  .candidate-state { max-width: 42%; }
  .staff .badge { font-size: 12px; white-space: normal; }
  .staff .read-link { font-size: 12px; line-height: 1.5; }
  .staff .prose p { font-size: 16px; }
  .character-facts { grid-template-columns: 1fr; gap: 14px; }
  .form-actions .button { font-size: 15px; }
  .staff .submission-title { align-items: start; gap: 14px; }
}

/* Colloquio conoscitivo nel pannello staff */
.interview-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin: 18px 0 24px; padding: 16px 18px;
  border: 1px solid #c4c8cf44; border-left: 3px solid var(--gold); border-radius: 6px; background: #c4c8cf0d; }
.interview-box > div { flex: 1 1 260px; min-width: 0; }
.interview-box p { margin: 6px 0 0; font-size: 14px; color: #c9d0cc; }
.interview-box.is-done { border-color: #8bb9a044; border-left-color: #8bb9a0; background: #8bb9a00d; }
.interview-box.is-done .eyebrow, .interview-ok { color: #8bb9a0; }

/* Domanda prima di leggere un background appena inviato */
.review-gate { display: grid; justify-items: center; gap: 12px; text-align: center; margin: 22px 0 8px; padding: 40px 24px 32px;
  border: 1px solid #c4c8cf44; border-radius: 8px; background: radial-gradient(ellipse at 50% 0%, #c4c8cf14, transparent 70%), #ffffff04; }
.review-gate-seal { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #c4c8cf77; color: var(--gold); font-size: 20px; }
.review-gate h3 { margin: 0; font: 600 30px/1.15 'Cormorant Garamond', Georgia, serif; text-wrap: balance; }
.review-gate p { margin: 0; max-width: 52ch; font-size: 14px; }
.review-gate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.review-gate .error:empty { display: none; }
.reviewer-name { color: var(--gold); }

.interview-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.interview-box.is-failed { border-color: #d3988f44; border-left-color: #d3988f; background: #d3988f0b; }
.interview-box.is-failed .eyebrow, .interview-ko { color: #d3988f; }
.interview-history { flex: 1 1 100%; margin: 4px 0 0; }
.interview-history summary { cursor: pointer; font-size: 13px; color: #c7d0c8; }
.interview-history ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.interview-history li { padding: 8px 12px; border-left: 2px solid #ffffff22; background: #ffffff05; font-size: 13px; color: #c9d0cc; }
.interview-history li.is-passed { border-left-color: #8bb9a0; } .interview-history li.is-failed { border-left-color: #d3988f; }
.interview-history li p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#interview-dialog label { margin: 14px 0 0; }

/* In fondo alla candidatura: whitelist di gioco ed eliminazione */
.account-tools { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.account-tools h3 { margin: 0 0 4px; font: 600 11px/1.4 'DM Sans', sans-serif; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.account-tools .notes-history { margin-bottom: 4px; }

/* Pulsante account: avatar e nome Discord quando si è loggati */
.site-header #account .account-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; margin-left: -4px; box-shadow: 0 0 0 2px #c4c8cf66; background: #1c2027; }
.site-header #account.signed-in { gap: 10px; padding-inline: 10px 16px; }
.site-header #account.signed-in .account-label { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; }
@media (max-width: 760px) {
  .site-header #account.signed-in { padding-inline: 6px 10px; gap: 7px; }
  .site-header #account .account-avatar { width: 24px; height: 24px; margin-left: 0; }
}
@media (max-width: 420px) {
  .site-header #account.signed-in .account-label { display: none; }
  .site-header #account.signed-in { padding: 6px; }
}

/* Tendina dell'account */
.account-menu { position: fixed; z-index: 40; width: 240px; max-width: calc(100vw - 24px); overflow: auto; padding: 8px; border: 1px solid #c4c8cf44; border-radius: 10px;
  background: #161f21; box-shadow: 0 18px 40px #000a; display: grid; gap: 2px; }
.account-menu[hidden] { display: none; }
.account-menu-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.account-menu-head > div { min-width: 0; display: grid; }
.account-menu-head strong { font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-head small { font-size: 12px; color: var(--muted); }
.account-menu-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px #c4c8cf66; background: #1c2027; }
.account-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent;
  color: var(--text); font: 500 15px 'DM Sans', sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
.account-menu-item span { width: 20px; text-align: center; color: var(--gold); }
.account-menu-item:hover, .account-menu-item:focus-visible { background: #c4c8cf14; outline: none; }
.account-menu-item.danger { color: #e7a8a0; }
.account-menu-item.danger span { color: #e7a8a0; }

/* Pulsante account da loggati: foto con lo stesso spazio a sinistra, sopra e sotto; nome bilanciato a destra */
.site-header .nav-shell #account.signed-in { min-height: 44px; padding: 0 15px 0 7px; gap: 10px; line-height: 1; }
.site-header .nav-shell #account.signed-in .account-avatar { width: 28px; height: 28px; margin: 0; }
.site-header .nav-shell #account.signed-in .account-label { line-height: 1.2; }
@media (max-width: 420px) {
  .site-header .nav-shell #account.signed-in { padding: 0 7px; width: 44px; justify-content: center; }
}

/* Icone SVG (icons.js) al posto delle emoji: prendono colore e grandezza del testo */
.ico { width: 1em; height: 1em; flex: none; vertical-align: -.14em; }
.button:has(> .ico), .text-button:has(> .ico), .ai-label { gap: 8px; }
.text-button:has(> .ico), .ai-label, .read-link, .interview-ok { display: inline-flex; align-items: center; gap: 6px; }
.button span .ico, .card-link b .ico, .scroll-hint span .ico { width: .85em; height: .85em; display: block; }
.account-menu-item span .ico { width: 18px; height: 18px; display: block; margin: auto; }
.card-icon .ico { width: 28px; height: 28px; display: block; stroke-width: 1.5; }
.empty > span .ico, .review-placeholder > span .ico { width: 38px; height: 38px; stroke-width: 1.4; }
.icon-button .ico { width: 16px; height: 16px; }
.pp-step-dot .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.scene-toggle-icon .ico { display: block; width: 12px; height: 12px; }
.ed-diff li .ico { width: 14px; height: 14px; margin-right: 4px; }

/* Banner con immagine in cima alle pagine interne (come la home): l'immagine sale sotto l'intestazione trasparente.
   Un file per pagina in assets/pagine/ (2:1, soggetto a destra): per cambiarla basta sostituire il file.
   L'immagine non viene mai allargata a tutto schermo: sta agganciata a destra alla sua altezza (larga il doppio),
   così non si ingrandisce e resta nitida anche sugli schermi 2K/4K.
   Bordo sinistro e fondo non sono coperti di nero ma resi trasparenti con una maschera a curva morbida:
   l'immagine si dissolve nel fondo vero della pagina, senza la riga dove finisce. */
main[data-page="lore"], main[data-page="regulation"], main[data-page="join"], main[data-page="background"], main[data-page="student"] { position: relative; --bh: calc(clamp(380px, 30vw, 560px) + var(--header-h)); }
main[data-page="lore"] > *, main[data-page="regulation"] > *, main[data-page="join"] > *, main[data-page="background"] > *, main[data-page="student"] > * { position: relative; }
main[data-page="lore"]::before, main[data-page="regulation"]::before, main[data-page="join"]::before, main[data-page="background"]::before, main[data-page="student"]::before {
  content: ''; position: absolute; left: 0; right: 0; top: calc(-1 * var(--header-h)); height: var(--bh); pointer-events: none;
  background:
    /* un velo leggero sotto l'intestazione e un po' di scuro su tutta l'immagine, per leggere bene il testo */
    linear-gradient(180deg, #11151b73 0%, #11151b26 20%, #11151b26 100%),
    var(--banner) right center / auto 100% no-repeat;
  --mask-bottom: linear-gradient(180deg, #000 0%, #000 28%, #000000f7 38%, #000000e0 48%, #000000b8 58%, #00000080 68%, #00000047 78%, #0000001f 87%, #00000008 94%, #0000 100%);
  --mask-left: linear-gradient(90deg, #0000 0, #0000 calc(100% - var(--bh) * 2), #0000000a calc(100% - var(--bh) * 1.8), #00000024 calc(100% - var(--bh) * 1.6), #00000052 calc(100% - var(--bh) * 1.4), #0000008c calc(100% - var(--bh) * 1.2), #000000c2 calc(100% - var(--bh) * 1), #000000eb calc(100% - var(--bh) * .8), #000 calc(100% - var(--bh) * .6));
  -webkit-mask-image: var(--mask-bottom), var(--mask-left);
  -webkit-mask-composite: source-in;
  mask-image: var(--mask-bottom), var(--mask-left);
  mask-composite: intersect;
}
main[data-page="lore"] { --banner: url('/assets/pagine/lore.webp'); }
main[data-page="regulation"] { --banner: url('/assets/pagine/regolamento.webp'); }
main[data-page="join"] { --banner: url('/assets/pagine/come-entrare.webp'); }
main[data-page="background"] { --banner: url('/assets/pagine/background.webp'); }
main[data-page="student"] { --banner: url('/assets/pagine/diario.webp'); }
/* schermi stretti: l'immagine copre tutta la larghezza, più scura per leggere il titolo, e sfuma solo in basso */
@media (max-width: 760px) {
  main[data-page="lore"], main[data-page="regulation"], main[data-page="join"], main[data-page="background"], main[data-page="student"] { --bh: calc(380px + var(--header-h)); }
  main[data-page="lore"]::before, main[data-page="regulation"]::before, main[data-page="join"]::before, main[data-page="background"]::before, main[data-page="student"]::before {
    background:
      linear-gradient(180deg, #11151ba6 0%, #11151b80 40%, #11151b80 100%),
      var(--banner) 75% center / cover no-repeat;
    -webkit-mask-image: var(--mask-bottom);
    mask-image: var(--mask-bottom);
  }
}
