/* A requester's own requests (GitHub issue 203, part 1c; docs/adr/0074; the owner's decisions AG1, AG4, AG5, AG6, AG8
   and AG10): the state pill, My requests, a request's page, the forms that raise a request, the one rating (also on the
   survey email's page, rate.html, which loads this file too) and the "(in English)" marker. Sizes are the tokens'
   (tokens.css); colors are the palette's, light and dark. */

/* ---- The state, in the requester's words, colored by what it means (requester-states.js) ---- */
.requester-state-pill { display:inline-flex; flex:0 0 auto; align-items:center; gap:var(--space-75); max-width:100%; padding:var(--space-50) var(--space-150); border:1px solid transparent; border-radius:var(--radius-pill); font-size:var(--text-sm); font-weight:var(--weight-semibold); line-height:var(--leading-tight); white-space:nowrap; }
.requester-state-pill > i { flex:0 0 auto; width:8px; height:8px; border-radius:var(--radius-round); }
.requester-state-pill > span { overflow:hidden; overflow-wrap:break-word; }
.requester-state-pill.is-waiting { background:var(--saffron-pale); color:var(--warn-ink); }
.requester-state-pill.is-waiting > i { background:var(--state-pending); }
.requester-state-pill.is-approval { border-color:var(--line-strong); background:var(--surface-2); color:var(--ink-2); }
.requester-state-pill.is-approval > i { background:var(--state-pending); }
.requester-state-pill.is-progress { background:var(--spruce-pale); color:var(--spruce-dark); }
.requester-state-pill.is-progress > i { background:var(--state-open); }
.requester-state-pill.is-resolved { background:var(--good-soft); color:var(--good); }
.requester-state-pill.is-resolved > i { background:var(--good); }
.requester-state-pill.is-closed { background:var(--surface-2); color:var(--muted); }
.requester-state-pill.is-closed > i { background:var(--state-done); }

/* ---- My requests (AG4): the filter, open above closed, and rows that fit a phone ---- */
.requester-request-list { grid-template-columns:minmax(0, 1fr); }
.requester-request-row { min-width:0; }
.requester-request-row .requester-request-copy { flex:1 1 auto; min-width:0; }
.my-requests-bar { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-100) var(--space-200); max-width:900px; margin:0 0 var(--space-200); }
.my-requests-filter { display:inline-flex; padding:var(--space-25); border:1px solid var(--line); border-radius:var(--radius-pill); background:var(--surface); }
.my-requests-filter button { display:inline-flex; align-items:center; gap:var(--space-75); min-height:var(--control-height-lg); padding:0 var(--space-200); border:0; border-radius:var(--radius-pill); background:transparent; color:var(--ink-2); font-size:var(--text-md); font-weight:var(--weight-medium); cursor:pointer; }
.my-requests-filter button[aria-pressed="true"] { background:var(--spruce-pale); color:var(--spruce-dark); font-weight:var(--weight-semibold); }
.my-requests-filter button:hover { color:var(--ink); }
.my-requests-count { color:var(--muted); font-size:var(--text-sm); font-weight:var(--weight-regular); }
.my-requests-showing { margin:0; color:var(--ink-2); font-size:var(--text-md); }
.my-requests-showing .nt-link { min-height:var(--control-height-lg); font-size:var(--text-md); }
.my-requests-list { display:grid; gap:var(--space-300); grid-template-columns:minmax(0, 1fr); }
.my-requests-group h3 { margin:0 0 var(--space-100); color:var(--ink); font-size:var(--text-lg); font-weight:var(--weight-semibold); }
.my-requests-group h3 span { margin-left:var(--space-50); color:var(--muted); font-size:var(--text-md); font-weight:var(--weight-regular); }
.my-requests-group .requester-request-list { display:grid; gap:var(--space-100); }
@media (max-width: 640px) {
  .requester-portal-view .requester-request-row { flex-direction:row; flex-wrap:wrap; align-items:center; gap:var(--space-100) var(--space-150); }
  .requester-portal-view .requester-request-row .requester-request-copy { flex-basis:100%; }
  .requester-portal-view .requester-request-copy b { white-space:normal; }
  .my-requests-filter { width:100%; }
  .my-requests-filter button { flex:1 1 0; justify-content:center; padding:0 var(--space-100); }
}

/* ---- A request's page (AG5) ---- */
.request-page .request-page-head { display:grid; gap:var(--space-100); margin:0 0 var(--space-200); }
.request-page-kicker { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-100) var(--space-150); margin:0; padding-right:var(--space-500); }
.request-page-kicker .modal-kicker { margin:0; }
.request-page .request-page-head h2 { margin:0; font-size:var(--text-xl); line-height:var(--leading-tight); }
/* The title takes the keyboard's place when the page opens, for screen readers; it isn't a control, so no ring. */
.request-page .request-page-head h2:focus, .request-page .request-page-head h2:focus-visible { outline:0; box-shadow:none; }
.request-page-line { margin:0; color:var(--muted); font-size:var(--text-md); }
.request-page-actions { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-100); margin:var(--space-50) 0 0; }
.request-page-actions .save-button, .request-page-actions .outline-button { min-height:var(--control-height-lg); margin:0; padding:0 var(--space-250); font-size:var(--text-md); }
.request-page-actions .portal-ticket-actions { display:inline-flex; flex-wrap:wrap; gap:var(--space-100); margin:0; }
.request-page-actions .portal-ticket-actions[hidden] { display:none; }
.request-page-actions .pa-cancel { color:var(--bad); }
.request-page-tools { margin-left:auto; }
.request-page-tools .pdf-link { min-height:var(--control-height-lg); font-size:var(--text-md); }
.request-page .portal-progress { grid-template-columns:repeat(var(--steps, 4), minmax(0, 1fr)); margin:var(--space-100) 0 var(--space-150); }
.request-page .portal-expected { margin:0 0 var(--space-150); }
.request-page .portal-survey { margin:0 0 var(--space-250); }
.request-page-conversation h3, .request-page-details h3 { margin:var(--space-250) 0 var(--space-150); font-size:var(--text-lg); }
.request-page .portal-ticket-thread { display:grid; gap:var(--space-150); }
.portal-ticket-reply.is-opening header b, .ws-conversation li.is-opening > b { color:var(--ink-2); }
/* When each message was written: small, never under the scale's smallest step. */
.request-page .portal-ticket-reply header small, .request-page .ws-conversation time { font-size:var(--text-xs); }
/* A very long unbroken word (a link, a path) wraps inside the conversation instead of running past it, on the IT
   Service Desk's request page and a department's. */
.request-page .portal-ticket-reply p, .request-page .ws-conversation p { overflow-wrap:anywhere; }
.request-page .portal-ticket-reply, .request-page .ws-conversation li { min-width:0; }
.request-page-send, .request-page .ws-request-actions { display:flex; justify-content:flex-end; margin-top:var(--space-150); }
.request-page-send .save-button, .request-page .ws-request-actions .save-button { min-height:var(--control-height-lg); margin:0; }
.request-page .portal-reply-note { margin:var(--space-150) 0 0; }
.request-page-details { margin-top:var(--space-100); padding-top:var(--space-50); border-top:1px solid var(--line); }
.request-page-details[hidden] { display:none; }
.request-page-details .portal-ticket-meta { margin:0 0 var(--space-150); }
.request-page-details .portal-ticket-meta div { padding:var(--space-100) var(--space-150); }
.request-page-details .portal-ticket-meta dt { text-transform:none; letter-spacing:0; font-size:var(--text-sm); }
.request-page-details .portal-ticket-meta dd { font-weight:var(--weight-medium); }
@media (max-width: 520px) {
  /* On a phone the steps are a short list, one to a line. */
  .request-page .portal-progress { grid-template-columns:minmax(0, 1fr); gap:var(--space-75); }
  .request-page .portal-progress li { flex-direction:row; flex-wrap:wrap; align-items:center; gap:var(--space-50) var(--space-100); padding:0; text-align:left; }
  .request-page .portal-progress li::before { display:none; }
  .request-page .portal-progress li b { font-size:var(--text-md); }
  .request-page .portal-progress small { display:inline; font-size:var(--text-sm); }
  .request-page .portal-progress small::before { content:"· "; }
  .request-page-tools { margin-left:0; }
  .request-page-actions .save-button, .request-page-actions .outline-button { flex:1 1 auto; }
}

/* ---- The forms that raise a request (AG8): the catalog's and a department tab's ---- */
.request-form .request-field, .request-page .request-field { display:grid; gap:var(--space-50); margin:0; color:var(--ink); font-size:var(--text-md); font-weight:var(--weight-regular); }
.request-form .request-field-label, .request-page .request-field-label { color:var(--ink); font-size:var(--text-md); font-weight:var(--weight-semibold); }
.request-form .request-field-hint { margin:0 0 var(--space-25); color:var(--muted); font-size:var(--text-sm); font-weight:var(--weight-regular); line-height:var(--leading-tight); }
.request-form .request-field input, .request-form .request-field textarea, .request-form .request-field select, .request-form .request-field .custom-select-trigger { font-weight:var(--weight-regular); }
.request-form .request-field input::placeholder, .request-form .request-field textarea::placeholder, .request-page textarea::placeholder, .rating-form textarea::placeholder { color:var(--muted); font-weight:var(--weight-regular); opacity:1; }
.request-page textarea, .request-page .request-field textarea { font-weight:var(--weight-regular); }
.catalog-request-modal.request-form { display:flex; flex-direction:column; gap:var(--space-200); }
.catalog-request-modal.request-form > * { margin-top:0; margin-bottom:0; }
.catalog-request-modal.request-form h2 { margin:0; }
.catalog-request-modal.request-form h2:focus, .catalog-request-modal.request-form h2:focus-visible, .ws-request-modal [data-ws-request-title]:focus, .ws-request-modal [data-ws-request-title]:focus-visible { outline:0; box-shadow:none; }
.catalog-request-modal.request-form #catalogRequestDescription { margin:0; color:var(--ink-2); }
.catalog-request-modal .catalog-request-fields { display:grid; gap:var(--space-200); margin:0; }
.catalog-request-modal .catalog-request-fields:empty { display:none; }
.catalog-request-modal .catalog-request-field[hidden] { display:none; }
.catalog-request-modal .raise-files { margin:0; }
.request-for { display:grid; gap:var(--space-100); }
.request-for[hidden], .request-for [hidden] { display:none; }
.request-for-line { margin:0; color:var(--ink-2); font-size:var(--text-md); }
.request-for-line .nt-link { font-size:var(--text-md); }
.request-form-foot { display:grid; gap:var(--space-150); margin:0; padding-top:var(--space-200); border-top:1px solid var(--line); }
.request-form-next { margin:0; padding:var(--space-150) var(--space-200); border-radius:var(--radius-lg); background:var(--spruce-pale); color:var(--ink); font-size:var(--text-md); }
.request-form-next[hidden] { display:none; }
.request-form-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:var(--space-100); }
.request-form-actions .save-button, .request-form-actions .outline-button { min-height:var(--control-height-lg); margin:0; padding:0 var(--space-300); font-size:var(--text-md); }
.ws-raise.request-form .ws-form-grid { gap:var(--space-200); }
.ws-raise.request-form .request-form-foot { margin-top:var(--space-200); }
.ws-raise.request-form .nt-error { margin:var(--space-150) 0 0; }
.ws-raise.request-form .requester-section-heading { margin-bottom:var(--space-150); }
@media (max-width: 520px) {
  .request-form-actions .save-button, .request-form-actions .outline-button { flex:1 1 0; padding:0 var(--space-150); }
}
/* A list to choose one from: each choice once, no tick boxes, and no search box for a short list. "Choose one" is
   what it shows before a choice; for a field that must be answered it isn't a choice of its own. */
.request-form .custom-select-wrapper:has(select[data-plain-choice]) .dropdown-check { display:none; }
.request-form .custom-select-wrapper:has(select[data-plain-choice]) .custom-select-menu:not(:has(> .custom-select-option:nth-of-type(9))) > .custom-select-search { display:none; }
.request-form .custom-select-wrapper:has(select[data-plain-choice][required]) .custom-select-option[data-value=""] { display:none; }
.request-form .custom-select-wrapper:has(select[data-plain-choice]) .custom-select-option { min-height:var(--control-height-lg); font-size:var(--text-md); font-weight:var(--weight-regular); }
.request-form .custom-select-wrapper:has(select[data-plain-choice]) .custom-select-option.is-selected { font-weight:var(--weight-semibold); }
.request-form .custom-select-wrapper:has(select[data-plain-choice] option[value=""]:checked) .custom-select-trigger { color:var(--muted); }

/* ---- Words with no Spanish yet (AG10) ---- */
.in-english { margin-left:var(--space-25); color:var(--muted); font-size:var(--text-xs); font-weight:var(--weight-regular); white-space:nowrap; }
/* Inside a row whose small text is a line of its own (a guide, a notice), the mark stays beside the words it is about. */
#requesterPortalView .portal-article-row .in-english, #requesterPortalView .requester-notice .in-english, #requesterPortalView .requester-knowledge-card .in-english { display:inline; margin:0 0 0 var(--space-50); }

/* ---- One rating (AG6): Good or Not good, the questions, a comment and Send; on rate.html too, whose palette has
   other names (login.css), hence the second name in each color. Every choice is at least 44 px tall. ---- */
.rating-form { --rf-line:var(--control-border, var(--field-line)); --rf-accent:var(--spruce, var(--accent)); --rf-surface:var(--surface, var(--card)); --rf-muted:var(--muted); display:grid; gap:var(--space-200); }
.rating-form fieldset { min-width:0; margin:0; padding:0; border:0; }
.rating-form legend { padding:0; }
.rating-legend { margin:0 0 var(--space-100); color:var(--ink); font-size:var(--text-md); font-weight:var(--weight-semibold); }
.rating-form input[type="radio"] { position:absolute; width:1px; height:1px; min-height:0; margin:0; padding:0; opacity:0; pointer-events:none; }
.rating-choice-options { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--space-100); }
.rating-form .rating-choice-option { position:relative; display:flex; align-items:center; justify-content:center; min-height:var(--control-height-lg); margin:0; padding:0 var(--space-150); border:2px solid var(--rf-line); border-radius:var(--radius-xl); background:var(--rf-surface); color:var(--ink); font-size:var(--text-md); font-weight:var(--weight-semibold); cursor:pointer; }
.rating-form .rating-choice-option > span { display:inline-flex; align-items:center; gap:var(--space-75); }
.rating-form .rating-choice-option.is-good:has(input:checked) { border-color:var(--good, var(--approve)); background:var(--good-soft, var(--approve-bg)); color:var(--good, var(--approve)); }
.rating-form .rating-choice-option.is-bad:has(input:checked) { border-color:var(--bad, var(--deny)); background:var(--bad-soft, var(--deny-bg)); color:var(--bad, var(--deny)); }
.rating-form label:has(input[type="radio"]:focus-visible) { outline:2px solid var(--rf-accent); outline-offset:2px; }
.rating-more { display:grid; gap:var(--space-200); }
.rating-more[hidden] { display:none; }
.rating-form .rating-question { display:grid; gap:var(--space-75); margin:0; font-size:var(--text-md); font-weight:var(--weight-regular); }
.rating-form .rating-question-text { display:block; margin:0 0 var(--space-50); color:var(--ink); font-size:var(--text-md); font-weight:var(--weight-semibold); }
.rating-optional { color:var(--rf-muted); font-size:var(--text-sm); font-weight:var(--weight-regular); }
.rating-scale { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:var(--space-75); }
.rating-scale.is-two { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.rating-form .rating-scale-option { position:relative; display:flex; align-items:center; justify-content:center; min-height:var(--control-height-lg); margin:0; padding:0; border:2px solid var(--rf-line); border-radius:var(--radius-xl); background:var(--rf-surface); color:var(--ink); font-size:var(--text-md); font-weight:var(--weight-semibold); cursor:pointer; }
.rating-form .rating-scale-option:has(input:checked) { border-color:var(--rf-accent); background:var(--spruce-pale, var(--info-bg)); color:var(--spruce-dark, var(--accent)); }
.rating-scale-ends { display:flex; justify-content:space-between; color:var(--rf-muted); font-size:var(--text-sm); }
.rating-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.rating-form .rating-comment { margin:0; }
.rating-form textarea { width:100%; min-height:0; padding:var(--space-100) var(--space-150); border:1px solid var(--rf-line); border-radius:var(--radius-lg); background:var(--rf-surface); color:var(--ink); font:inherit; font-weight:var(--weight-regular); resize:vertical; }
.rating-error { margin:0; color:var(--bad, var(--error-ink)); font-size:var(--text-md); }
.rating-error[hidden] { display:none; }
.rating-actions { display:flex; justify-content:flex-end; }
.rating-actions .save-button, .rating-actions button { min-height:var(--control-height-lg); margin:0; padding:0 var(--space-300); }
.rating-intro { margin:0 0 var(--space-150); color:var(--ink-2); font-size:var(--text-md); }
.rating-thanks { display:grid; gap:var(--space-50); }
.rating-thanks b { color:var(--ink); font-size:var(--text-md); }
.rating-thanks p { margin:0; color:var(--ink-2); font-size:var(--text-md); }
/* In a request: a quiet box. On Home's "How did we do?": the row has the heading, so each rating's is for screen readers. */
.request-page .portal-survey { padding:var(--space-200); border:1px solid var(--line); border-radius:var(--radius-xl); background:var(--surface); }
.portal-rate-row .portal-attention-card.is-rate { display:grid; gap:var(--space-150); align-items:start; }
/* The ratings are cards side by side, as many as fit, each the same width (GitHub issue 203, 1e): choosing Good or Not
   good opens the rest inside its own card, which grows downward, and nothing else on the row moves. */
/* The row's heading on its own line, the cards under it in a grid of their own: the cards are that grid's only items,
   so the columns no card needs fold away and one or two cards share the row's width. */
#requesterPortalView .portal-rate-row { flex-direction:column; flex-wrap:nowrap; align-items:stretch; gap:var(--space-150); }
#requesterPortalView .portal-rate-row > .pa-kind { align-self:flex-start; }
#requesterPortalView .portal-rate-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items:start; gap:var(--space-150); }
#requesterPortalView .portal-rate-row .portal-attention-card.is-rate { display:grid; grid-template-columns:minmax(0, 1fr); align-items:start; gap:var(--space-150); padding:var(--space-150) var(--space-200) var(--space-200); border-radius:var(--radius-xl); }
#requesterPortalView .portal-rate-row .rating-choice-options { max-width:28rem; }
#requesterPortalView .portal-rate-row .rating-form { max-width:40rem; }
.pa-rate-form .rating-legend { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.pa-rate-form .rating-form { max-width:40rem; }
.pa-rate-form .rating-choice-options { max-width:28rem; }
/* rate.html: the card's own fields keep their look. */
.approval-card .rating-form { margin:0 0 var(--space-200); }
.approval-card .rating-form label { margin-bottom:0; }
.approval-card .rating-actions button { width:100%; }

/* ---- Admin settings: what has no Spanish yet (AG10) ---- */
.cs-flag { display:inline-flex; align-items:center; gap:var(--space-50); margin:0; padding:var(--space-25) var(--space-100); border-radius:var(--radius-pill); background:var(--saffron-pale); color:var(--warn-ink); font-size:var(--text-xs); font-weight:var(--weight-semibold); }
.cs-flag.is-done { background:var(--good-soft); color:var(--good); }
.spanish-gaps { display:grid; gap:var(--space-100); margin:var(--space-150) 0 0; padding:0; list-style:none; }
.spanish-gaps li { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--space-100) var(--space-200); padding:var(--space-150) var(--space-200); border:1px solid var(--line); border-radius:var(--radius-lg); }
.spanish-gaps li > span { display:grid; gap:var(--space-25); }
.spanish-gaps small { color:var(--muted); font-size:var(--text-sm); }
.csat-question-spanish { display:grid; gap:var(--space-50); margin:var(--space-100) 0 0; font-size:var(--text-sm); }
.csat-question-spanish input { width:100%; max-width:36rem; }
.questionCard:has(.csat-question-spanish) > div:first-child { flex:1 1 auto; min-width:0; }

/* ---- A request form's problems, beside each field and summed up at the top (GitHub issue 203, 1e; AJ4) ----
   request-form-problems.js: the summary names every field that stops the form, each a button to it; the field has a
   red border and a line under it saying what to do. Red is the palette's error color on its pale tint (4.5:1). */
.request-form-summary { display:grid; gap:var(--space-75); margin:0; padding:var(--space-150) var(--space-200); border:1px solid var(--bad); border-left-width:4px; border-radius:var(--radius-lg); background:var(--bad-soft); color:var(--ink); }
.request-form-summary p { margin:0; color:var(--ink); font-size:var(--text-md); font-weight:var(--weight-semibold); }
.request-form-summary ul { display:flex; flex-wrap:wrap; gap:var(--space-50) var(--space-200); margin:0; padding:0; list-style:none; }
.request-form-summary-link { display:inline-flex; align-items:center; min-height:var(--control-height-sm); margin:0; padding:0; border:0; background:none; color:var(--bad); font:inherit; font-size:var(--text-md); font-weight:var(--weight-semibold); text-decoration:underline; text-underline-offset:var(--space-25); cursor:pointer; }
.request-form-summary-link:focus-visible { outline:2px solid var(--bad); outline-offset:2px; }
.has-problem > input, .has-problem > textarea, .has-problem > select, .has-problem .custom-select-trigger, .has-problem input:not([type="checkbox"]), .has-problem textarea { border-color:var(--bad); box-shadow:0 0 0 1px var(--bad); }
.request-field-error, .ws-form-grid small.request-field-error { display:flex; align-items:baseline; gap:var(--space-75); margin:var(--space-25) 0 0; color:var(--bad); font-size:var(--text-sm); font-weight:var(--weight-semibold); line-height:var(--leading-tight); }
.request-field-error::before { content:'!'; display:inline-grid; place-items:center; flex:0 0 auto; width:1.1em; height:1.1em; border-radius:var(--radius-round); background:var(--bad); color:var(--on-bad, #fff); font-size:var(--text-xs); font-weight:var(--weight-bold); }
.ws-raise.request-form .request-form-summary { margin:0 0 var(--space-200); }
@media (max-width: 520px) { .request-form-summary ul { display:grid; gap:var(--space-50); } }

/* ---- A knowledge article, read in the portal (portal-finish.js) ---- */
/* The title takes the keyboard's place as it opens: it isn't a control, so it shows no ring. */
#articleReaderTitle[tabindex="-1"]:focus, #articleReaderTitle[tabindex="-1"]:focus-visible { outline:0; box-shadow:none; }
.article-reader-raise { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-100) var(--space-150); margin:var(--space-150) 0 0; color:var(--ink-2); font-size:var(--text-md); }
.article-reader-raise[hidden] { display:none; }
.article-reader-raise .outline-button { min-height:var(--control-height-lg); margin:0; }

/* ---- A reply's files on a request's page (AJ3): under the reply box, like a department's ---- */
.request-page-conversation .raise-files { margin:var(--space-150) 0 0; }
.request-page-conversation .raise-files[hidden] { display:none; }
/* A field's placeholder: an input can't wrap its placeholder, so a long one ends at the field's edge on a narrow screen. */
.requester-portal-view input[placeholder], .request-form input[placeholder] { overflow-wrap:break-word; }

/* ---- A request form's and a request's titles lead the page (GitHub issue 203, 1e) ----
   22 px over the fields' 16 px labels: the form's name, or the request's title, is the first thing read. */
body.requester-portal-mode .catalog-request-modal.request-form > h2, body.requester-portal-mode .request-page .request-page-head h2 { font-size:var(--text-2xl); line-height:var(--leading-tight); }
/* A request's page has a strip across its top that stays as the page scrolls (GitHub issue 203, Phase 1f;
   docs/adr/0086): the request's number and state, and the ×, on a background of their own, edge to edge, so nothing
   passes under the ×. The × is the plain one every other dialog has, a full 44 px tap. */
#portalTicketModal .request-page-bar, #wsRequestModal .request-page-bar {
  position:sticky; top:calc(-1 * var(--space-300)); z-index:2; display:flex; align-items:center; justify-content:space-between; gap:var(--space-150);
  margin:calc(-1 * var(--space-300)) calc(-1 * var(--space-300)) var(--space-200); padding:var(--space-100) var(--space-150) var(--space-100) var(--space-300);
  border-bottom:var(--control-border-width) solid var(--line); border-radius:var(--radius-xl) var(--radius-xl) 0 0; background:var(--surface);
}
.request-page-bar .request-page-kicker { min-width:0; padding-right:0; }
.request-page-bar .modal-close { position:static; flex:none; display:grid; place-items:center; width:var(--control-height-lg); height:var(--control-height-lg); margin:0; padding:0; border:0; border-radius:var(--radius-md); background:transparent; color:var(--muted); font-size:var(--text-2xl); line-height:1; cursor:pointer; }
.request-page-bar .modal-close:hover { background:var(--surface-2); color:var(--ink); }
@media (max-width:640px) {
  #portalTicketModal .request-page-bar, #wsRequestModal .request-page-bar { top:calc(-1 * var(--space-250)); margin:calc(-1 * var(--space-250)) calc(-1 * var(--space-200)) var(--space-150); padding:var(--space-75) var(--space-100) var(--space-75) var(--space-200); }
}
/* One scroll: the conversation grows with the page, with no box of its own scrolling inside it. */
.request-page .portal-ticket-thread { max-height:none; overflow:visible; margin-bottom:0; }
/* Reply and "It's fixed" on one row; Cancel request and Save as PDF in More at its end. */
.request-page-actions { flex-wrap:nowrap; }
.request-page-actions > .request-page-tools:empty, .request-page-actions > .request-page-tools:not(:has(:not([hidden]))) { display:none; }
.request-page-more { position:relative; flex:0 0 auto; margin-left:auto; }
.request-page-actions .request-page-more .request-more-button { flex:none; padding:0 var(--space-200); }
.request-more-menu { position:absolute; top:calc(100% + var(--space-50)); right:0; z-index:var(--z-menu); display:grid; min-width:12rem; padding:var(--space-75); border:var(--control-border-width) solid var(--line); border-radius:var(--radius-lg); background:var(--surface); box-shadow:var(--shadow-pop); }
.request-more-menu[hidden] { display:none; }
.request-more-menu button { min-height:var(--control-height-lg); padding:var(--space-75) var(--space-150); border:0; border-radius:var(--radius-md); background:none; color:var(--ink); font:inherit; font-size:var(--text-md); font-weight:var(--weight-semibold); text-align:left; white-space:nowrap; cursor:pointer; }
.request-more-menu button:hover, .request-more-menu button:focus-visible { background:var(--hover-bg); }
.request-more-menu button.is-danger { color:var(--bad); }
/* My requests reads at a comfortable width: each row's state is near its title. */
#requesterPortalTickets .my-requests-list, #requesterPortalTickets .my-requests-bar { max-width:60rem; }
/* A team's tab with no requests yet says what happens once one is sent (workspaces.js wsWhatHappensHtml). */
.ws-next { margin:var(--space-200) 0 0; padding:var(--space-200); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); }
.ws-next h3 { margin:0 0 var(--space-100); color:var(--ink); font-size:var(--text-md); }
.ws-next ol { display:grid; gap:var(--space-75); margin:0; padding-left:var(--space-250); color:var(--ink-2); font-size:var(--text-sm); line-height:var(--leading-normal); }
@media (max-width:640px) {
  .request-page-actions { flex-wrap:wrap; }
  .request-page-actions .portal-ticket-actions { flex:1 1 auto; }
}
/* A knowledge article in the portal (GitHub issue 203, Phase 1f): its summary, the article's most useful sentence,
   reads at the body's size in the body's color, not as a grey footnote. */
body.requester-portal-mode .modal.article-reader > .article-reader-summary { color:var(--ink); font-size:var(--text-lg); line-height:var(--leading-normal); }
/* A heading the page puts the keyboard on to be read first (Where you're signed in) shows no ring: it isn't a control. */
#portalSessionsModal h2[tabindex="-1"]:focus, #portalSessionsModal h2[tabindex="-1"]:focus-visible { outline:0; box-shadow:none; }
/* Joiners & leavers (GitHub issue 203, Phase 1f): the card chosen looks chosen (its border and a tick), and its form
   is made like a request form, at a readable width, the fields that must be answered marked with a red *. */
#requesterPortalJourneys .requester-service-card.is-chosen { border-color:var(--spruce); box-shadow:inset 0 0 0 1px var(--spruce); background:var(--accent-hover); }
#requesterPortalJourneys .requester-service-card.is-chosen i { color:var(--spruce); }
#requesterPortalJourneys .journey-form { max-width:48rem; }
#requesterPortalJourneys .journey-form .ws-form-grid { gap:var(--space-200); }
/* "How did we do?": one rating card under another, so opening one leaves no empty block beside it; Good and Not good
   fill the card's form, as Yes and No do (and as on the emailed survey). */
#requesterPortalView .portal-rate-row .portal-rate-cards { grid-template-columns:minmax(0, 1fr); }
#requesterPortalView .portal-rate-row .rating-choice-options { max-width:none; }

/* "Who is it for?" on a request form, for someone allowed to raise a request for someone else (GitHub issue 204,
   Phase 2e, AQ3; requester-offers.js). */
.raise-for-field { min-width:0; margin:0; padding:0; border:0; }
.raise-for-choice { display:flex; flex-wrap:wrap; gap:var(--space-100) var(--space-300); }
.raise-for-choice label { display:inline-flex; align-items:center; gap:var(--space-75); font-weight:var(--weight-regular); }
/* In a department's form, whose labels stack their words over their box: the two choices stay a radio and its words, side by side. */
.ws-form-grid .raise-for-choice label { flex-direction:row; align-items:center; gap:var(--space-75); font-weight:var(--weight-regular); }
.ws-form-grid .raise-for-choice input { width:auto; padding:0; border:0; border-radius:0; }
.ws-form-grid .raise-for-field { grid-column:1 / -1; }
.raise-for-other { display:grid; gap:var(--space-50); }
.raise-for-other[hidden] { display:none; }

/* An approval workflow waiting on the requester (GitHub issue 273): a question to answer, or a request sent back. */
.portal-approval-attention { display: grid; gap: var(--space-100); margin: var(--space-150) 0; padding: var(--space-150) var(--space-200); border: 1px solid var(--line); border-left: 3px solid var(--accent, var(--line)); border-radius: var(--radius-lg); background: var(--surface-2, var(--surface)); overflow-wrap: anywhere; }
.portal-approval-attention p { margin: 0; }
.portal-approval-attention label { display: grid; gap: var(--space-50); }
.portal-approval-attention textarea { width: 100%; }
.portal-approval-attention .save-button { justify-self: start; }

/* A request's approval path (GitHub issue 504, A6; public/js/app/portal-self-service.js approvalPathHtml): one row per stage
   that applies, a dot and a line between them, in the IT Service Desk's request page and a department's. Long names wrap. */
.portal-approval-path { margin:var(--space-150) 0; padding:var(--space-150) var(--space-200); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); }
.portal-approval-path header { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:var(--space-50) var(--space-150); margin-bottom:var(--space-100); }
.portal-approval-path h3 { margin:0; font-size:var(--text-md); }
.pap-count { color:var(--muted); font-size:var(--text-sm); }
.pap-rows { display:grid; margin:0; padding:0; list-style:none; }
.pap-row { position:relative; display:grid; grid-template-columns:var(--space-200) minmax(0, 1fr); gap:var(--space-100); padding-bottom:var(--space-150); }
.pap-row:last-child { padding-bottom:0; }
.pap-row:not(:last-child)::before { content:''; position:absolute; top:var(--space-250); bottom:var(--space-25); left:calc(var(--space-100) - 1px); width:2px; border-radius:var(--radius-pill); background:var(--line); }
.pap-dot { width:var(--space-200); height:var(--space-200); margin-top:var(--space-25); border:2px solid var(--line-strong, var(--line)); border-radius:50%; background:var(--surface, transparent); }
.pap-dot-approved { border-color:var(--spruce); background:var(--spruce); }
.pap-dot-denied { border-color:var(--bad); background:var(--bad); }
.pap-dot-pending { border-color:var(--saffron); background:var(--saffron-pale); }
.pap-body { display:grid; gap:var(--space-25); min-width:0; font-size:var(--text-sm); line-height:1.45; }
.pap-title { color:var(--ink); overflow-wrap:anywhere; }
.pap-status, .pap-note { color:var(--muted); overflow-wrap:anywhere; }
.pap-row.is-approved .pap-status { color:var(--spruce-dark, var(--spruce)); }
.pap-row.is-denied .pap-status, .pap-row.is-noAnswer .pap-status { color:var(--bad); }
.pap-row.is-notNeeded .pap-title, .pap-row.is-later .pap-title, .pap-row.is-withdrawn .pap-title { color:var(--ink-2, var(--ink)); font-weight:var(--weight-semibold); }
.pap-reason { color:var(--ink); overflow-wrap:anywhere; white-space:pre-line; }
.ws-approval-path:empty { display:none; }

/* A department's outage notices on its own portal tab (GitHub issue 314, P4: public/js/app/workspaces.js wsOutagesHtml). */
.ws-outages { padding:var(--space-250); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); }
.ws-outage { display:grid; grid-template-columns:8px minmax(0,1fr); gap:var(--space-150); padding:var(--space-150) 0; border-top:1px solid var(--line); }
.ws-outages .requester-section-heading + .ws-outage { padding-top:0; border-top:0; }
.ws-outage-dot { width:8px; height:8px; margin-top:var(--space-75); border-radius:var(--radius-round); background:var(--saffron); }
.ws-outage b, .ws-outage p, .ws-outage small { display:block; }
.ws-outage b { font-size:var(--text-xs); }
.ws-outage p { margin:var(--space-50) 0; color:var(--ink-2); font-size:var(--text-xs); line-height:1.4; overflow-wrap:anywhere; }
.ws-outage small { color:var(--muted); font-size:var(--text-2xs); }
.ws-outage .in-english { display:inline; margin:0 0 0 var(--space-50); }
/* Shared requests (GitHub issue 287, B3; portal-shared-requests.js): under My requests, and their read-only page. */
.shared-requests { margin-top:var(--space-300); padding-top:var(--space-200); border-top:1px solid var(--line); min-width:0; }
.shared-requests-head h3 { margin:0; color:var(--ink); font-size:var(--text-lg); font-weight:var(--weight-semibold); }
.shared-requests-head h3 span { margin-left:var(--space-50); color:var(--muted); font-size:var(--text-md); font-weight:var(--weight-regular); }
.shared-requests-head p { margin:var(--space-50) 0 var(--space-150); color:var(--muted); font-size:var(--text-md); }
.shared-requests .requester-request-list { display:grid; gap:var(--space-100); }
.shared-request-row .requester-request-copy small { overflow-wrap:anywhere; }
.shared-request-why { display:block; justify-self:start; width:fit-content; max-width:100%; margin:var(--space-100) 0 0; padding:var(--space-25) var(--space-100); border:1px solid var(--line); border-radius:999px; color:var(--ink-2); font-size:var(--text-sm); }
.shared-request-page [data-shared-reply] { margin-top:var(--space-200); }
/* The strip across the top, as on a person's own request (#portalTicketModal .request-page-bar above). */
#sharedRequestModal .request-page-bar {
  position:sticky; top:calc(-1 * var(--space-300)); z-index:2; display:flex; align-items:center; justify-content:space-between; gap:var(--space-150);
  margin:calc(-1 * var(--space-300)) calc(-1 * var(--space-300)) var(--space-200); padding:var(--space-100) var(--space-150) var(--space-100) var(--space-300);
  border-bottom:var(--control-border-width) solid var(--line); border-radius:var(--radius-xl) var(--radius-xl) 0 0; background:var(--surface);
}
@media (max-width:640px) {
  #sharedRequestModal .request-page-bar { top:calc(-1 * var(--space-250)); margin:calc(-1 * var(--space-250)) calc(-1 * var(--space-200)) var(--space-150); padding:var(--space-75) var(--space-100) var(--space-75) var(--space-200); }
}

/* An approval workflow's fields the requester fills in before it's sent again (GitHub issue 284). */
.portal-approval-fields { display: grid; gap: var(--space-100); }
.portal-approval-fields input, .portal-approval-fields select { width: 100%; min-width: 0; }
.portal-approval-fields small { color: var(--muted); }

/* ---- “Your request”: the request in its own area above the conversation (portal-request-area.js; docs/adr/0219) ----
   A card like the conversation's, under the request's title on each request page of the portal: its heading and
   who wrote it when, the words (8 clear lines and a fading 9th when long, with Show all), then its files and a form's
   answers, which never fold. Tokens only, so dark mode and every tone follow. */
.request-page .portal-request-holder:empty { display:none; }
.request-page .portal-request-area { display:grid; gap:var(--space-100); min-width:0; margin:var(--space-150) 0 var(--space-200); padding:var(--space-200); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--paper); scroll-margin-top:calc(var(--control-height-lg) + var(--space-300)); }
.request-page .portal-request-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:var(--space-50) var(--space-150); min-width:0; }
.request-page .portal-request-head h3 { margin:0; font-size:var(--text-lg); }
.request-page .portal-request-meta { margin:0; color:var(--muted); font-size:var(--text-sm); }
.request-page .portal-request-fold { min-width:0; }
.request-page .portal-request-words { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.5; }
.request-page .portal-request-fold.is-folded { max-height:var(--pr-fold-h, 12rem); overflow:hidden; mask-image:linear-gradient(to bottom, #000 calc(100% - var(--pr-fade, 1rem)), transparent); }
.request-page .portal-request-toggle { justify-self:start; min-height:var(--control-height-lg); padding:0; font-size:var(--text-md); }
.request-page .portal-request-toggle[hidden] { display:none; }
.request-page .portal-request-toggle:focus-visible { outline:2px solid var(--spruce); outline-offset:2px; border-radius:var(--radius-sm); }
.request-page .portal-request-area .ticket-raise-files { margin:0; }
.request-page .portal-request-area .catalog-answers { margin-top:var(--space-50); }
/* Its parts' headings (h4, under the area's h3) look as the labels they were. */
.request-page .portal-request-area .catalog-answers h4 { margin:0 0 var(--space-100); color:var(--ink-2); font-size:var(--text-sm); font-weight:700; letter-spacing:.02em; }
.request-page .portal-request-area h4.ticket-raise-files-label { margin:0; }
@media (max-width:640px) {
  .request-page .portal-request-area { padding:var(--space-150); }
}
@media print {
  .request-page .portal-request-fold.is-folded { max-height:none; overflow:visible; mask-image:none; }
  .request-page .portal-request-toggle { display:none !important; }
}
/* ---- end “Your request” ---- */
