/* Theme values copied from scim-main/frontend/src/index.css (24.09.2026).
   Tailwind component utilities translated to plain CSS; no SCIM business logic.
   PDF templates never use this stylesheet. */
.applicant-reuse-launch { margin-top: .375rem; min-height: 44px; white-space: normal; }
.person-directory-actions { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .375rem; }
.person-directory-actions button { min-height: 44px; white-space: normal; }
.person-directory-actions .applicant-reuse-launch { margin-top: 0; }
.person-directory-dialog h3 { overflow-wrap: anywhere; }
.layout-dialog.applicant-reuse-dialog { width: min(780px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow: hidden; }
.layout-dialog.applicant-reuse-dialog[open] { display: flex; flex-direction: column; }
.applicant-reuse-content { min-height: 0; overflow-y: auto; padding-right: .25rem; }
.applicant-reuse-dialog > h2, .applicant-reuse-dialog > .form-actions { flex-shrink: 0; }
.applicant-reuse-search { display: flex; align-items: end; gap: .75rem; margin: 1rem 0; }
.applicant-reuse-search .field { flex: 1; margin: 0; min-width: 0; }
.applicant-reuse-dialog button { min-height: 44px; white-space: normal; }
.applicant-reuse-results { display: grid; gap: .5rem; }
.applicant-reuse-dialog .applicant-reuse-results button { text-align: left; display: grid; gap: .25rem; }
.applicant-reuse-results .help { margin: 0; }
.applicant-reuse-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .875rem; }
.applicant-reuse-table th, .applicant-reuse-table td { text-align: left; padding: .5rem; border-bottom: 1px solid hsl(var(--border)); overflow-wrap: anywhere; vertical-align: top; }
.applicant-reuse-table thead { background: hsl(var(--muted)); }
.applicant-reuse-preview { margin-top: 1rem; }
.applicant-reuse-dialog .form-actions { position: static; background: hsl(var(--card)); padding: .75rem 0 0; margin-bottom: 0; }
.applicant-reuse-unchanged { margin: .75rem 0; }
.applicant-reuse-unchanged summary { cursor: pointer; padding: .75rem 0; }
.applicant-reuse-unchanged dl { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.applicant-reuse-unchanged dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .applicant-reuse-search { align-items: stretch; flex-direction: column; }
  .applicant-reuse-dialog { padding: 1rem; }
  .applicant-reuse-table thead { display: none; }
  .applicant-reuse-table, .applicant-reuse-table tbody, .applicant-reuse-table tr, .applicant-reuse-table th, .applicant-reuse-table td { display: block; width: auto; }
  .applicant-reuse-table tr { padding: .5rem 0; border-bottom: 1px solid hsl(var(--border)); }
  .applicant-reuse-table th, .applicant-reuse-table td { padding: .25rem 0; border: 0; }
  .applicant-reuse-table td::before { content: attr(data-label) ': '; font-weight: 600; }
  .applicant-reuse-unchanged dl { display: block; }
  .applicant-reuse-unchanged dd { margin-bottom: .75rem; }
}
:root {
  --radius: .5rem;
  --radius-card: var(--radius);
  /* Round 15: spacing scale 4/8/12/16/24/32 px, title scale, tones of the badges. */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem; --space-6: 2rem;
  --text-page: 1.5rem; --text-section: 1.125rem; --text-card: 1rem; --text-label: .75rem; --text-help: .8125rem;
  --tone-neutral-bg: 220 14% 94%; --tone-neutral-fg: 220 10% 34%;
  --tone-attn-bg: 43 100% 93%; --tone-attn-border: 38 85% 60%; --tone-attn-fg: 30 85% 26%;
  --tone-problem-bg: 0 80% 96%; --tone-problem-border: 0 60% 78%; --tone-problem-fg: 0 60% 34%;
  --tone-ok-bg: 150 45% 93%; --tone-ok-border: 150 40% 60%; --tone-ok-fg: 150 60% 22%;
  --danger: 0 65% 40%;
  --button-border: 214 20% 78%;
  --background: 220 12% 95%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --primary: 221 83% 53%;
  --primary-hover: 221 83% 45%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96%;
  --secondary-foreground: 222 47% 11%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 40%;
  --accent: 43 96% 56%;
  --accent-foreground: 26 83% 14%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 210 40% 98%;
  --border: 214 32% 91%;
  /* Distinguishable empty controls on white/light panels; same SCIM hue. */
  --input: 215 16% 57%;
  --ring: 221 83% 53%;
  --sidebar: 221 39% 11%;
  --sidebar-foreground: 210 40% 98%;
  --sidebar-primary: 43 96% 56%;
  --sidebar-primary-foreground: 221 39% 11%;
  --sidebar-accent: 217 33% 17%;
  --sidebar-accent-foreground: 210 40% 98%;
  --sidebar-border: 217 33% 17%;
  --sidebar-ring: 43 96% 56%;
  --page-gutter: 1.25rem;
  --workspace-padding: 1.5rem 1.75rem;
  --control-height: 44px;
}
* { box-sizing:border-box; border-color:hsl(var(--border)); }
[hidden] { display:none !important; }
body { margin:0; background:hsl(var(--background)); color:hsl(var(--foreground)); font:14px/1.5 'Inter',system-ui,-apple-system,BlinkMacSystemFont,sans-serif; font-feature-settings:"cv02","cv03","cv04","cv11"; }
button,input,select,textarea { font:inherit; }
:focus-visible { outline:2px solid hsl(var(--ring)); outline-offset:2px; }
button,a,input,textarea,select { -webkit-tap-highlight-color:transparent; }
.site-header { position:sticky; top:0; z-index:10; margin-left:256px; border-bottom:1px solid hsl(var(--border)); background:hsl(var(--background)/.96); backdrop-filter:blur(8px); }
.site-header .wrap { min-height:56px; padding:.65rem 1.5rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.site-header h1 { margin:0; font-size:1rem; font-weight:600; }
.subtitle { margin:0; color:hsl(var(--muted-foreground)); font-size:.78rem; }
.local-state { white-space:nowrap; color:hsl(var(--muted-foreground)); font-size:.75rem; }
.menu-button { display:none; }
.layout { margin-left:256px; padding:var(--page-gutter); }
.sidebar { position:fixed; inset:0 auto 0 0; z-index:20; width:256px; background:hsl(var(--sidebar)); color:hsl(var(--sidebar-foreground)); border-right:1px solid hsl(var(--sidebar-border)); overflow-y:auto; scrollbar-color:hsl(var(--sidebar-accent)) transparent; }
.sidebar-brand { min-height:56px; display:flex; align-items:center; gap:.6rem; padding:.6rem 1.5rem; border-bottom:1px solid hsl(var(--sidebar-border)); }
/* The mark is the application's icon (favicon.svg): the same drawing in the browser tab, in the menu and on the login page. */
.brand-mark { flex:none; width:32px; height:32px; background:url(favicon.svg) center / contain no-repeat; }
.sidebar-brand strong { display:block; font-size:1.0625rem; font-weight:600; letter-spacing:-.01em; line-height:1.2; }
.sidebar section { padding:1rem; }
.sidebar section+section { border-top:1px solid hsl(var(--sidebar-border)); }
.sidebar h2 { margin:0 0 .7rem; font-size:.75rem; letter-spacing:.06em; text-transform:uppercase; color:hsl(var(--sidebar-foreground)/.65); font-weight:600; }
.sidebar label { font-size:.8rem; color:hsl(var(--sidebar-foreground)/.75); }
.sidebar input { background:hsl(var(--sidebar-accent)); border-color:hsl(var(--sidebar-border)); color:hsl(var(--sidebar-foreground)); }
.sidebar input::placeholder { color:hsl(var(--sidebar-foreground)/.55); }
.sidebar :focus-visible { outline-color:hsl(var(--sidebar-ring)); }
.catalog,.drafts { display:grid; gap:3px; padding:3px; margin:.65rem -3px 0; }
.catalog { max-height:50vh; overflow-y:auto; scrollbar-color:hsl(var(--sidebar-accent)) transparent; }
.catalog button,.drafts button { display:block; width:100%; white-space:normal; text-align:left; padding:.65rem .7rem; border:1px solid transparent; border-radius:6px; background:transparent; color:hsl(var(--sidebar-foreground)); box-shadow:none; }
.catalog button:hover:not(:disabled),.drafts button:hover { background:hsl(var(--sidebar-accent)); }
.catalog button[aria-current=true],.catalog button[aria-current=true]:hover:not(:disabled) { background:hsl(var(--sidebar-primary)); color:hsl(var(--sidebar-primary-foreground)); }
.item-title { display:block; font-weight:500; font-size:.82rem; line-height:1.4; }
.item-meta,.draft-date { display:block; font-size:.7rem; opacity:.75; margin-top:.2rem; }
.catalog button.unavailable { opacity:.6; }
.badge { display:inline-block; margin-top:.3rem; padding:0 .3rem; border:1px solid hsl(var(--sidebar-foreground)/.25); border-radius:4px; font-size:.65rem; }
.sidebar .empty { color:hsl(var(--sidebar-foreground)/.65); }
.workspace { min-width:0; max-width:1180px; margin:auto; padding:1.5rem; background:hsl(var(--card)); color:hsl(var(--card-foreground)); border:1px solid hsl(var(--border)); border-radius:var(--radius); box-shadow:0 1px 2px rgb(0 0 0 / .05); }
.workspace h2 { margin:.2rem 0 .7rem; font-size:1.25rem; font-weight:600; }
#form-area { scroll-margin-top:80px; }
.status { min-height:1.5rem; color:hsl(var(--muted-foreground)); font-size:.8rem; }
/* An empty status line takes no room: the page starts with its title (doc 251). */
.status:empty { min-height:0; margin:0; }
.error { margin:.65rem 0; padding:.75rem 1rem; border:1px solid hsl(var(--destructive)/.45); background:hsl(var(--destructive)/.05); color:#991b1b; border-radius:var(--radius); overflow-wrap:anywhere; }
.welcome { padding:3rem 1rem; }
.welcome p { max-width:60ch; color:hsl(var(--muted-foreground)); }
.form-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:1.5rem; border-bottom:1px solid hsl(var(--border)); padding:.6rem 0 1rem; margin-bottom:1rem; }
.form-heading>div { min-width:0; }
.form-heading>div:first-child { flex:1; }
.editor-options { flex:1; min-width:0; margin-bottom:0; }
.editor-options > summary { min-height:36px; cursor:pointer; color:hsl(var(--muted-foreground)); font-size:.875rem; }
.editor-options .form-heading { border:0; }
@media (max-height:500px) {
  body .ac-pages ol { flex-wrap:nowrap; overflow-x:auto; max-width:100%; }
  body .ac-pages ol li { flex:none; }
  .ac-pages .ac-page:not([aria-current="step"]) > span:not(.ac-page-number) { display:none; }
  .ac-pages .ac-all-pages { padding:.2rem .4rem; min-height:30px; }
  .embedded .keyboard-help { display:none; }
}
.actions { display:flex; gap:.5rem; flex-wrap:wrap; align-items:center; justify-content:flex-end; padding-top:.3rem; }
.eyebrow { margin:0 0 .4rem; color:hsl(var(--primary)); font-size:.75rem; font-weight:600; letter-spacing:.05em; }
.notice { padding:.75rem 1rem; background:hsl(var(--accent)/.12); border:1px solid hsl(var(--accent)/.45); border-radius:var(--radius); color:hsl(var(--accent-foreground)); font-size:.8rem; }
label { display:block; font-weight:500; margin:.5rem 0 .35rem; }
input,select,textarea { width:100%; min-width:0; max-width:100%; border:1px solid hsl(var(--input)); border-radius:calc(var(--radius) - 2px); padding:.5rem .75rem; background:transparent; color:inherit; box-shadow:0 1px 2px rgb(0 0 0 / .05); }
input,select { min-height:44px; }
textarea { min-height:2.6rem; resize:vertical; }
/* Every multi-line text field, in every editor and window, starts on one line and grows with its text (one mechanism), the read-only ones of the editors too
   (the read account, «Preluat din cerere»); a field that must stay as it is (a copy to take away) carries the class «fixed-size». */
textarea:is(.text-entry, :not([readonly])):not(.fixed-size) { field-sizing:content; }
/* PDF rows may grow without limit; an editor control must still fit below the
   sticky header. Shared by the common editor and the structured AC editor. */
textarea.text-entry {
  max-height:24rem;
  max-height:clamp(44px,calc(100vh - var(--form-header-offset,7rem) - 10rem),24rem);
  overflow-y:auto;
  scroll-margin-top:var(--form-header-offset,7rem);
}
input::placeholder,textarea::placeholder { color:hsl(var(--muted-foreground)); }
input:disabled,select:disabled,textarea:disabled { opacity:.6; cursor:not-allowed; }
/* QA 2026-10-12 (MT-06): ticks and choices of 20 px, as the dossier's checklist; their labels stay clickable too. */
input[type=checkbox], input[type=radio] { width:1.25rem; min-width:1.25rem; min-height:1.25rem; height:1.25rem; flex-shrink:0; accent-color:hsl(var(--primary)); vertical-align:middle; }
.field-group { min-inline-size:0; margin:1rem 0 0; border:1px solid hsl(var(--border)); border-radius:var(--radius); padding:1rem; background:hsl(var(--card)); }
.field-group legend { font-size:.9rem; font-weight:600; padding:0 .5rem 0 0; max-width:100%; }
.field { margin:0 0 1rem; max-width:760px; }
.help,.muted,.empty { color:hsl(var(--muted-foreground)); font-size:.8rem; }
.help { margin:.45rem 0 0; }
/* QA 2026-10-15 (F-8): a help line above a control leaves room for the control's focus ring. */
.help + :is(select,textarea,input:not([type=checkbox]):not([type=radio])) { margin-top:.5rem; }
.choice-list { display:flex; flex-wrap:wrap; gap:.5rem 1rem; }
.choice-list label { font-weight:400; margin:0; }
.choice-list input { margin-right:.3rem; }
.rules-table { width:100%; border-collapse:collapse; table-layout:fixed; margin:.4rem 0 .6rem; }
.rules-table th,.rules-table td { border:1px solid hsl(var(--border)); padding:.5rem; text-align:left; vertical-align:top; }
.rules-table th { background:hsl(var(--muted)); font-size:.8rem; font-weight:500; }
.rules-table th:last-child,.rules-table td:last-child { width:6.5rem; }
.rules-table button { padding:.4rem .5rem; }
.form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; border-top:1px solid hsl(var(--border)); margin-top:1rem; padding-top:1.25rem; }
button,.button-link,.backup-link,.account-settings-link { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; min-height:var(--control-height); padding:.55rem 1rem; border:1px solid transparent; border-radius:calc(var(--radius) - 2px); font-size:.875rem; font-weight:500; line-height:1.25; text-decoration:none; cursor:pointer; transition:background-color .15s,color .15s; }
.button-link { max-width:100%; white-space:normal; text-align:center; border-color:hsl(var(--input)); background:hsl(var(--card)); color:hsl(var(--foreground)); }
button:disabled { cursor:not-allowed; opacity:.5; }
.primary { background:hsl(var(--primary)); color:hsl(var(--primary-foreground)); box-shadow:0 1px 2px rgb(0 0 0 / .05); }
.primary:hover:not(:disabled) { background:hsl(var(--primary-hover)); }
.secondary,.menu-button { background:hsl(var(--card)); color:hsl(var(--foreground)); border-color:hsl(var(--input)); box-shadow:0 1px 2px rgb(0 0 0 / .05); }
.secondary:hover:not(:disabled),.menu-button:hover { background:hsl(var(--accent)); color:hsl(var(--accent-foreground)); }
@media(max-width:1100px) {
  .form-heading { flex-wrap:wrap; gap:.5rem; }
  .actions { justify-content:flex-start; margin-top:.8rem; }
}
@media(max-width:1023px) {
  .site-header { margin-left:0; }
  .site-header .wrap { padding:.65rem 1rem; }
  .site-header h1 { font-size:.95rem; }
  .local-state { display:none; }
  .menu-button { display:inline-flex; flex-shrink:0; }
  .layout { margin-left:0; padding:1rem; }
  .sidebar { position:fixed; inset:0 auto 0 0; display:none; width:min(320px,100vw); max-height:100dvh; border-radius:0; margin:0; z-index:1001; overscroll-behavior:contain; }
  body.menu-open .sidebar { display:block; }
  body.menu-open { overflow:hidden; }
  .sidebar .mobile-nav-close { display:flex; margin:.75rem 1rem; }
  .sidebar-brand { display:none; }
  .catalog { max-height:42vh; }
  .workspace { padding:1.1rem; }
  .welcome { padding:2rem .25rem; }
}
.mobile-nav-close { display:none; }
.sidebar .mobile-nav-close { color:#fff; background:#1f2937; border-color:#64748b; }
.mobile-nav-shade { position:fixed; inset:0; z-index:1000; background:rgb(15 23 42 / .45); }
.mobile-nav-shade[hidden] { display:none; }
@media(max-width:500px) {
  .layout { padding:.5rem; }
  .workspace { padding:1rem; }
  .rules-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .rules-table,.rules-table tbody,.rules-table tr,.rules-table td { display:block; width:100%; }
  .rules-table tr { margin-bottom:.8rem; border:1px solid hsl(var(--border)); }
  .rules-table td,.rules-table td:last-child { border:0; width:100%; }
  .rules-table td::before { display:block; font-weight:500; font-size:.8rem; }
  .rules-table td:nth-child(1)::before { content:'Prevedere'; }
  .rules-table td:nth-child(2)::before { content:'Act'; }
}
@media(prefers-reduced-motion:reduce) { * { transition:none !important; scroll-behavior:auto !important; } }
.ac-editor-page .sidebar a { color:inherit; }
.ac-editor-page details { margin:.65rem 0; }
.ac-editor-page summary { cursor:pointer; padding:.7rem; font-weight:600; background:hsl(var(--muted)); border-radius:var(--radius); overflow-wrap:anywhere; }
.ac-fields-grid { padding:.55rem; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
.ac-fields-grid > details,.ac-fields-grid > section,.ac-fields-grid > fieldset { grid-column:1/-1; min-width:0; }
.ac-fields-grid .field { min-width:0; margin:0; }
.ac-card { border:1px solid hsl(var(--border)); border-radius:var(--radius); padding:.4rem; }
.ac-choices,.ac-value,.ac-optional { border:1px solid hsl(var(--border)); border-radius:var(--radius); margin:0; padding:.75rem; min-width:0; }
.ac-choices label { display:inline-flex; align-items:flex-start; gap:.35rem; margin:.35rem .9rem .35rem 0; font-weight:400; }
.ac-choices input[type=checkbox] { width:1.25rem; height:1.25rem; flex-shrink:0; margin-top:.1rem; }
.ac-row-actions { display:flex; gap:.5rem; padding:.5rem; flex-wrap:wrap; }
.ac-editor-page textarea { resize:vertical; min-height:44px; }
.ac-editor-page input[readonly] { background:hsl(var(--muted)); }
@media(max-width:650px) { .ac-fields-grid { grid-template-columns:minmax(0,1fr); padding:.35rem; } .ac-editor-page summary { padding:.5rem; } }
/* Local original-image input; shared SCIM controls and no fixed desktop width. */
.image-entry { display:flex; flex-direction:column; gap:.65rem; min-width:0; }
.image-entry input[type="file"] { width:100%; max-width:100%; }
.image-preview { display:block; max-width:100%; max-height:260px; object-fit:contain; background:#fff; border:1px solid hsl(var(--border)); border-radius:.5rem; }
.image-preview[hidden] { display:none; }
.typography-control { display:none; }
.typography-control label { font-weight:600; }
.typography-control select { width:auto; min-height:30px; padding:.25rem .45rem; font-size:.8rem; }
.typography-control .typography-reset { min-height:30px; padding:.25rem .5rem; font-size:.75rem; }
.typography-control .help { flex-basis:100%; margin:0; font-size:.75rem; }
/* F_CU_04 pilot: semantic grouping without changing the SCIM visual tokens. */
.cu-section-nav,.shared-section-nav { display:flex; flex-wrap:wrap; gap:.4rem; margin:1rem 0 1.5rem; }
.cu-section-nav a,.shared-section-nav a { display:inline-flex; align-items:center; padding:.55rem .8rem; min-height:44px; border:1px solid hsl(var(--input)); border-radius:var(--radius); color:hsl(var(--foreground)); background:hsl(var(--muted)); text-decoration:none; font-size:.875rem; }
.cu-section-nav a:hover,.shared-section-nav a:hover { background:hsl(var(--accent)); color:hsl(var(--accent-foreground)); }
.cu-section { scroll-margin-top:6rem; }
.cu-subheading { font-size:.95rem; margin:1.4rem 0 .7rem; }
.cu-subheading:first-of-type { margin-top:.3rem; }
.field > label.choice-inline { display:flex; align-items:center; gap:.65rem; min-height:44px; font-weight:400; cursor:pointer; }
.field > label.choice-inline input { width:18px; height:18px; margin:0; flex:0 0 auto; }
.cu-grid,.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; align-items:start; }
.cu-grid .field,.form-grid .field,.ac-fields-grid .field { margin:0; min-width:0; max-width:none; }
.form-grid .form-wide { grid-column:1/-1; }
.administrative-tools { display:grid; gap:.4rem; }
.administrative-tools .administrative-manual { margin:0; font-size:.8rem; }
.administrative-field > .help { margin:.4rem 0 0; }
.ac-fields-grid { gap:1rem; }
.cu-grid .cu-wide,.cu-choice-group { grid-column:1/-1; }
.cu-rule-row { grid-column:1/-1; min-width:0; margin:0; padding:.9rem; border:1px solid hsl(var(--border)); border-radius:var(--radius); }
.cu-rule-row legend { font-size:.95rem; font-weight:600; padding:0 .3rem; }
.cu-rule-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:1rem; }
.cu-choice-group { min-width:0; padding:.9rem; border:1px solid hsl(var(--border)); border-radius:var(--radius); margin:0; }
.cu-choice-group legend { font-size:.95rem; font-weight:600; padding:0 .3rem; }
.cu-editor .cu-option { display:flex; align-items:center; gap:.65rem; min-height:44px; margin:.15rem 0; font-weight:400; cursor:pointer; }
.cu-editor .cu-option input { flex:0 0 auto; width:1.25rem; min-width:1.25rem; height:1.25rem; min-height:1.25rem; margin:0; }
.cu-editor .cu-option span { overflow-wrap:anywhere; }
.cu-editor input[type=search] { margin-bottom:.4rem; }
.cu-editor [hidden] { display:none !important; }
.cu-editor .help { line-height:1.5; }
.cu-editor :is(input,select,textarea,a):focus-visible { outline:3px solid #2563eb; outline-offset:2px; }
.cu-warning,.cu-review { background:#fff7ed; color:#7c2d12; padding:.8rem; border:1px solid #c2410c; border-radius:var(--radius); }
.cu-review li { margin:.6rem 0; }
@media(max-width:700px) { .cu-grid,.cu-rule-grid,.form-grid,.ac-fields-grid { grid-template-columns:minmax(0,1fr); } .cu-section-nav a { flex-grow:1; } }

/* Shared form navigation and layout used across catalog and authorization forms. */
.shared-section-target { scroll-margin-top:6rem; }
.ac-editor-page .ac-fields-grid > details,.ac-editor-page .ac-fields-grid > fieldset { padding:.85rem; border:1px solid hsl(var(--border)); border-radius:var(--radius); background:hsl(var(--card)); }
.ac-editor-page .ac-fields-grid > details > summary { margin:-.25rem; }
.ac-editor-page .ac-card { background:hsl(var(--card)); }
.form-heading { align-items:flex-end; }
.actions,.form-actions,.ac-row-actions { gap:.6rem; }
.uat-summary { margin:0 0 1rem; padding:.8rem 1rem; border:1px solid hsl(var(--border)); border-left:3px solid hsl(var(--primary)); border-radius:var(--radius); background:hsl(var(--muted)/.55); color:hsl(var(--foreground)); }
.uat-summary :is(p,h2,h3) { margin:.2rem 0; }
.uat-small-crest { display:block; max-width:64px; max-height:64px; object-fit:contain; margin:.5rem 0; }
.uat-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.uat-settings-grid > * { min-width:0; }
.uat-profile-preview { min-width:0; padding:1rem; border:1px solid hsl(var(--border)); border-radius:var(--radius); background:hsl(var(--card)); }
.uat-form { display:grid; gap:.9rem; }
.uat-signatories { display:grid; gap:.75rem; margin:.5rem 0; }
.uat-signatory { min-width:0; padding:.75rem; border:1px solid hsl(var(--border)); border-radius:var(--radius); }
.uat-signatory > button { margin-top:.5rem; }
.signatory-chooser { display:grid; gap:.6rem; margin:.5rem 0 1rem; padding:.8rem 1rem; border:1px solid hsl(var(--border)); border-left:3px solid hsl(var(--primary)); border-radius:var(--radius); background:hsl(var(--muted)/.55); }
.signatory-chooser .uat-settings-grid { grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); }
/* Round 16.11 (F2-4): the permit is filled from the request when it opens; the way by hand is a quiet line, not a card. */
.permit-prefill-line { display:flex; justify-content:flex-end; margin:.15rem 0 .35rem; }
.permit-prefill-line[hidden] { display:none; }
.prefill-table table { width:100%; border-collapse:collapse; font-size:.9rem; }
.permit-objective-helper { display:grid; gap:.6rem; }
.permit-agreements { display:grid; gap:.6rem; }
.permit-agreement { min-width:0; padding:.6rem; border:1px solid hsl(var(--border)); border-radius:var(--radius); }
.prefill-table th,.prefill-table td { padding:.35rem .4rem; border-bottom:1px solid hsl(var(--border)); text-align:left; vertical-align:top; overflow-wrap:anywhere; }
.prefill-toggle { display:flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; cursor:pointer; }
.prefill-cell-caption { display:none; }
@media (max-width:640px) {
  .prefill-table table,.prefill-table tbody { display:block; }
  .prefill-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .prefill-table tbody tr { display:grid; grid-template-columns:44px minmax(0,1fr); gap:.35rem .5rem; padding:.65rem; margin:.6rem 0; border:1px solid hsl(var(--border)); border-radius:var(--radius); }
  .prefill-table td { display:block; min-width:0; padding:0; border:0; }
  .prefill-table td:nth-child(2) { align-self:center; font-weight:600; }
  .prefill-table td:nth-child(n+3) { grid-column:1 / -1; padding-top:.35rem; }
  .prefill-cell-caption { display:block; margin-bottom:.15rem; font-size:.8rem; color:hsl(var(--muted-foreground)); }
}
@media (max-width: 640px) { .uat-settings-grid { grid-template-columns:1fr; } }
.uat-form > fieldset,.uat-form > details { min-width:0; padding:1rem; border:1px solid hsl(var(--border)); border-radius:var(--radius); background:hsl(var(--card)); }
.skip-link { position:absolute; z-index:100; top:.5rem; left:.5rem; padding:.65rem .9rem; transform:translateY(-180%); background:hsl(var(--card)); color:hsl(var(--foreground)); border:2px solid hsl(var(--ring)); border-radius:var(--radius); }
.skip-link:focus { transform:translateY(0); }
.layout-dialog { width:min(760px,calc(100% - 2rem)); max-height:85vh; border:1px solid hsl(var(--border)); border-radius:var(--radius); padding:1.5rem; color:hsl(var(--foreground)); overflow:auto; }
.layout-dialog::backdrop { background:rgb(15 23 42 / .55); }
.layout-dialog h2 { margin-top:0; }
.active-form-heading { font-size:1.2rem; line-height:1.4; scroll-margin-top:6rem; }
#error,#ac-error { scroll-margin-top:6rem; }
.layout-option { display:flex; align-items:center; gap:.75rem; min-height:44px; cursor:pointer; }
.layout-option input[type=radio] { width:18px; height:18px; min-height:18px; flex:0 0 auto; }
.layout-edit-actions { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin-top:.75rem; }
.app-nav { display:grid; gap:3px; }
.app-nav a { display:flex; align-items:center; min-height:44px; padding:.6rem .75rem; border:1px solid transparent; border-radius:6px; color:hsl(var(--sidebar-foreground)); text-decoration:none; }
.app-nav a:hover { background:hsl(var(--sidebar-accent)); }
.app-nav a[aria-current="page"],.app-nav a[aria-current="page"]:hover,.app-nav a[aria-current="location"],.app-nav a[aria-current="location"]:hover { background:hsl(var(--sidebar-primary)); color:hsl(var(--sidebar-primary-foreground)); }
.sidebar-account { display:grid; gap:.4rem; margin:1rem; padding:1rem; border:1px solid hsl(var(--sidebar-border)); border-radius:var(--radius); overflow-wrap:anywhere; }
.sidebar-account [data-account] { font-size:.82rem; color:hsl(var(--sidebar-foreground)); }
.sidebar-account .account-label { font-size:.7rem; color:hsl(var(--sidebar-foreground)/.65); text-transform:uppercase; letter-spacing:.04em; }
.sidebar-account :is(button,.account-settings-link) { width:100%; min-height:44px; background:hsl(var(--sidebar-accent)); color:hsl(var(--sidebar-foreground)); border-color:hsl(var(--sidebar-border)); }
@media(max-width:700px) { .uat-settings-grid { grid-template-columns:minmax(0,1fr); } .shared-section-nav a { flex:1 1 auto; } }

/* Shared compact form experience. These styles do not affect PDF templates. */
.form-editor-page .site-header { background:hsl(var(--background)); backdrop-filter:none; }
.header-sections { display:flex; align-items:center; gap:.35rem; padding:.3rem 1rem .4rem; border-top:1px solid hsl(var(--border)); min-width:0; }
.header-sections-label { flex:0 0 auto; font-size:.78rem; color:hsl(var(--muted-foreground)); }
.header-sections .section-scroll { flex:0 0 44px; width:44px; padding:0; font-size:1.5rem; background:hsl(var(--card)); border-color:hsl(var(--input)); color:hsl(var(--foreground)); }
.header-sections nav { flex:1 1 auto; min-width:0; display:flex; flex-wrap:nowrap; gap:.35rem; margin:0; padding:3px; overflow-x:auto; scrollbar-width:thin; }
.header-sections nav a { flex:0 0 auto; white-space:nowrap; min-height:44px; padding:.45rem .65rem; font-size:.8rem; }
.form-editor-page :is(.cu-section,.shared-section-target,.active-form-heading,#error,#ac-error,#ac-heading) { scroll-margin-top:var(--form-header-offset,7rem); }
.form-editor-page .layout:has(#form-area:not([hidden])),.ac-editor-page .layout { padding:1rem; }
.form-editor-page .workspace:has(#form-area:not([hidden])),.ac-editor-page .workspace { padding:1rem; }
.form-editor-page .field-group { padding:.75rem; margin-top:.85rem; }
.form-editor-page :is(.cu-grid,.form-grid,.ac-fields-grid,.cu-rule-grid) { gap:.65rem; }
.form-editor-page .field { margin-bottom:.65rem; }
.form-editor-page :is(.cu-grid,.form-grid,.ac-fields-grid) .field { margin:0; }
.form-editor-page label { margin:.35rem 0 .25rem; }
.form-editor-page .cu-subheading { margin:1rem 0 .5rem; }
.form-editor-page :is(.cu-choice-group,.cu-rule-row,.ac-value,.ac-optional,.ac-choices) { padding:.65rem; }
.form-editor-page .form-heading { gap:1rem; padding:.4rem 0 .65rem; margin-bottom:.65rem; }
.form-editor-page .uat-summary { padding:.55rem .75rem; margin-bottom:.65rem; }
.form-editor-page .uat-summary.uat-ok { padding:0; margin:0 0 .4rem; border:0; background:none; font-size:.875rem; color:hsl(var(--muted-foreground)); }
.form-editor-page .form-actions { padding-top:.85rem; }
.completion-help { margin:.5rem 0 .6rem; }
.form-editor-page .field :is(input[type=text],input[type=email],input[type=tel],input[type=url],textarea) { padding-right:2rem; }
.form-editor-page .field input[type=number] { padding-right:2.6rem; }
.form-editor-page .field select { padding-right:3rem; }
.entry-filled { background-color:#f3f7fc; background-image:url('entry-check.svg'); background-repeat:no-repeat; background-position:right .6rem top .75rem; padding-right:2rem; border-left-color:#94aac5; box-shadow:inset 2px 0 #94aac5,0 1px 2px rgb(0 0 0 / .05); }
select.entry-filled { background-position:right 1.8rem center; padding-right:3rem; }
input[type=number].entry-filled { background-position:right 1.4rem top .75rem; padding-right:2.6rem; }
.entry-filled:focus-visible { outline:2px solid hsl(var(--ring)); outline-offset:2px; }
.reference-check { min-width:0; margin:.5rem 0; padding:.5rem .65rem; border-left:2px solid hsl(var(--primary)); border-radius:0 var(--radius) var(--radius) 0; background:hsl(var(--muted)/.4); font-size:.82rem; line-height:1.45; overflow-wrap:anywhere; }
.reference-check[hidden] { display:none; }
.reference-check strong,.reference-check span { display:block; }
.reference-check span { margin-top:.12rem; }
.reference-check[data-reference-status=MISMATCH] { border-left-color:#a16207; background:#fffbeb; color:#713f12; }
.reference-check button { margin-top:.4rem; max-width:100%; min-height:44px; white-space:normal; }
.reference-check-details { min-width:0; }
.reference-check-details > summary { min-height:44px; padding:.55rem 0; box-sizing:border-box; cursor:pointer; font-weight:500; line-height:1.4; overflow-wrap:anywhere; }
.reference-check-details > summary:focus-visible { outline:2px solid hsl(var(--primary)); outline-offset:3px; border-radius:var(--radius); }
.reference-check-cue { display:inline-block; margin-left:.65rem; color:hsl(var(--primary)); font-size:inherit; font-weight:400; white-space:nowrap; }
.reference-check-content { padding:.15rem 0 .35rem; }
@media(max-width:700px) {
  .header-sections { padding:.25rem .5rem .35rem; gap:.2rem; }
  .header-sections-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .form-editor-page .layout { padding:.5rem; }
  .form-editor-page .workspace:has(#form-area:not([hidden])),.ac-editor-page .workspace { padding:.75rem; }
  .form-editor-page .field-group { padding:.65rem; }
}

/* Doc 251 — the editors keep «Salvează ciorna» and the PDF at hand while their long forms scroll. */
#urban-form > .form-actions, #ac-form > .form-actions { position:sticky; bottom:0; z-index:4; background:hsl(var(--card)); padding-bottom:.75rem; box-shadow:0 -8px 12px -12px rgb(0 0 0 / .45); }
/* Doc 251 — the form catalog on the start page, grouped by family. */
.catalog-home-search { max-width:36rem; margin:1rem 0 .5rem; }
.catalog-home-search input { width:100%; }
.catalog-home-filters { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:1rem; align-items:end; }
.catalog-home-filters .field { max-width:none; min-width:0; margin:0; }
.catalog-home-filters :is(input,select) { width:100%; }
.catalog-home-status { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem 1rem; min-height:44px; }
.catalog-home-status .help { margin:0; }
@media(max-width:600px) { .catalog-home-filters { grid-template-columns:minmax(0,1fr); gap:.65rem; } }
.catalog-home-group { margin-top:1.25rem; }
.catalog-home-group h3 { margin:0 0 .6rem; font-size:1rem; font-weight:600; }
.catalog-home-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(15rem,1fr)); gap:.6rem; }
.catalog-card { display:flex; flex-direction:column; align-items:flex-start; gap:.3rem; min-height:4.5rem; padding:.7rem .85rem; text-align:left; border:1px solid hsl(var(--border)); border-radius:var(--radius); background:hsl(var(--card)); color:hsl(var(--foreground)); box-shadow:0 1px 2px rgb(0 0 0 / .04); cursor:pointer; }
.catalog-card:hover:not(:disabled) { border-color:hsl(var(--primary)); background:hsl(var(--primary) / .05); }
.catalog-card-title { font-weight:600; font-size:.88rem; line-height:1.35; }
.catalog-card-meta { color:hsl(var(--muted-foreground)); font-size:.75rem; }
.catalog-card.unavailable { opacity:.6; cursor:not-allowed; }

/* Doc 252 — everything that stops a PDF or a registration, as one list; in the editor each entry leads to its field. */
.error .problem-intro, .error > p:first-child { margin:0 0 .35rem; font-weight:600; }
.problem-list { margin:.25rem 0 .4rem; padding-left:1.25rem; }
.problem-list li { margin:.15rem 0; }
/* QA 2026-10-11 (M5): a text button is at least 24 px high, so it can be hit on a phone. */
.link-button { padding:0; border:0; background:none; color:inherit; font:inherit; text-align:left; text-decoration:underline; cursor:pointer; min-height:24px; }
.link-button:hover, .link-button:focus-visible { text-decoration-thickness:2px; }

/* Doc 254 — «Setări aplicație»: one row of tabs above the UAT data, the accounts and the own password. */
.settings-tabs { display:flex; flex-wrap:wrap; gap:.25rem; margin:.25rem 0 1.25rem; border-bottom:1px solid hsl(var(--border)); }
.settings-tabs a { display:inline-flex; align-items:center; min-height:var(--control-height); padding:.55rem .9rem; border-bottom:2px solid transparent; margin-bottom:-1px; color:hsl(var(--muted-foreground)); text-decoration:none; font-weight:500; }
.settings-tabs a:hover { color:hsl(var(--foreground)); }
.settings-tabs a[aria-current="page"] { color:hsl(var(--primary)); border-bottom-color:hsl(var(--primary)); font-weight:600; }
.settings-uat #accounts-settings, .settings-accounts #uat-panel { display:none !important; }
/* Lot 319: the security journal is under the accounts. */
.settings-uat #audit-settings, .settings-library #audit-settings, .settings-fees #audit-settings, .settings-deadlines #audit-settings { display:none !important; }
#audit-settings { margin-top:1.5rem; }
.audit-result { overflow-x:auto; }
.audit-table tr.audit-refused td:nth-child(2) { color:#991b1b; font-weight:500; }
.audit-table .audit-object { min-width:12rem; max-width:24rem; }
.audit-object-title, .audit-object-context { display:block; overflow-wrap:anywhere; }
.audit-object-title { font-weight:500; }
.audit-object-context { margin-top:.25rem; color:hsl(var(--muted-foreground)); font-size:.85rem; }
.audit-event-note { margin:0 0 .25rem; overflow-wrap:anywhere; }
.audit-technical { min-width:9rem; }
.audit-technical summary { display:list-item; cursor:pointer; min-height:44px; padding:.5rem .25rem; box-sizing:border-box; color:hsl(var(--muted-foreground)); font-size:.85rem; }
.audit-technical summary:focus-visible { outline:2px solid hsl(var(--primary)); outline-offset:2px; border-radius:var(--radius); }
.audit-technical-values { margin:.25rem 0 .5rem; max-width:24rem; font-size:.8rem; }
.audit-technical-values dt { margin-top:.5rem; color:hsl(var(--muted-foreground)); }
.audit-technical-values dd { margin:0; overflow-wrap:anywhere; }
.settings-uat #library-settings, .settings-accounts #library-settings, .settings-library #uat-panel, .settings-library #accounts-settings { display:none !important; }
/* Lot 301: «Taxe». */
#fees-settings { display:none; }
.settings-fees #fees-settings { display:block; }
.settings-fees #uat-panel, .settings-fees #accounts-settings, .settings-fees #library-settings { display:none !important; }
#fees-settings > h3 { margin:0 0 .35rem; font-size:1.05rem; font-weight:650; }
/* Lot 306: «Termene». */
#deadlines-settings { display:none; }
.settings-deadlines #deadlines-settings { display:block; }
.settings-deadlines #uat-panel, .settings-deadlines #accounts-settings, .settings-deadlines #library-settings, .settings-deadlines #fees-settings { display:none !important; }
#deadlines-settings > h3 { margin:0 0 .35rem; font-size:1.05rem; font-weight:650; }
#deadlines-settings > .help { margin:0 0 1rem; max-width:62rem; }
#deadlines-settings .field-group { margin-top:1.25rem; }
#deadlines-settings h4 { margin:0 0 .35rem; font-size:1rem; font-weight:650; }
.deadlines-rules-table { max-width:none; }
.deadlines-day-row { display:grid; grid-template-columns:minmax(7.5rem,9rem) minmax(0,1fr) auto; gap:.5rem; align-items:center; margin:.35rem 0; }
.deadlines-day-row .link-button { min-height:44px; }
.deadlines-days > .help { margin:0 0 .4rem; }
.deadlines-year { max-width:10rem; }
.deadlines-readonly { margin:.25rem 0; padding-left:1.1rem; }
.deadline-card { padding:.75rem 0; border-top:1px solid hsl(var(--border)); }
.deadline-card h5 { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; margin:0 0 .25rem; font-size:.95rem; font-weight:600; }
.deadline-due { margin:0 0 .15rem; font-weight:500; }
/* The colours of the dossier states (.state-badge): blue running, amber today, red past, green done, grey stopped. */
.deadline-badge { display:inline-block; padding:.05rem .45rem; border:1px solid hsl(220 10% 78%); border-radius:999px; background:hsl(220 14% 94%); color:hsl(220 10% 34%); font-size:.75rem; font-weight:600; }
.legal-pending .deadline-badge { background:hsl(221 83% 96%); border-color:hsl(221 70% 75%); color:hsl(221 70% 32%); }
.legal-today .deadline-badge, .legal-soon .deadline-badge { background:hsl(43 100% 93%); border-color:hsl(38 85% 60%); color:hsl(30 85% 26%); }
.legal-overdue .deadline-badge { background:hsl(0 80% 96%); border-color:hsl(0 60% 78%); color:hsl(0 60% 34%); }
.legal-met .deadline-badge { background:hsl(150 45% 93%); border-color:hsl(150 40% 60%); color:hsl(150 60% 22%); }
.deadline-lines > summary { cursor:pointer; min-height:32px; color:hsl(var(--primary)); font-size:.875rem; font-weight:500; }
.deadline-lines .fees-table { max-width:none; }
.deadlines-calendar-table th[scope="row"], .deadlines-calendar-table td:nth-child(2) { white-space:nowrap; }
@media (max-width: 40rem) {
  .deadlines-day-row { grid-template-columns:1fr; }
  /* The rules and the lines of a deadline stack on a phone instead of breaking words in narrow columns. */
  .deadlines-rules-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .deadlines-rules-table, .deadlines-rules-table tbody, .deadlines-rules-table tr, .deadlines-rules-table th, .deadlines-rules-table td,
  .deadline-lines .fees-table, .deadline-lines tbody, .deadline-lines tr, .deadline-lines th, .deadline-lines td { display:block; width:auto; }
  .deadlines-rules-table tr, .deadline-lines tr { padding:.4rem 0; border-bottom:1px solid hsl(var(--border)); }
  /* table.… outranks .fees-table th/td, defined further down. */
  table.deadlines-rules-table th, table.deadlines-rules-table td, .deadline-lines table th, .deadline-lines table td { padding:.1rem 0; border:0; overflow-wrap:break-word; }
  .deadlines-rules-table th, .deadline-lines th { font-weight:600; color:hsl(var(--foreground)); }
  .deadlines-rules-table td::before { content:attr(data-label) ": "; color:hsl(var(--muted-foreground)); }
  /* Round 26: a free day reads as the date and its day on one line, then its name across the row, instead of a name column
     of 80 px that broke «Botezătorul» and «Principatelor». */
  .deadlines-calendar-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  table.deadlines-calendar-table, .deadlines-calendar-table tbody { display:block; width:auto; }
  table.deadlines-calendar-table tr { display:grid; grid-template-columns:auto 1fr; gap:0 .6rem; padding:.4rem 0; border-bottom:1px solid hsl(var(--border)); }
  table.deadlines-calendar-table :is(th, td) { padding:.05rem 0; border:0; }
  table.deadlines-calendar-table td:nth-child(2) { color:hsl(var(--muted-foreground)); }
  table.deadlines-calendar-table td:nth-child(3) { grid-column:1 / -1; }
}
#fees-settings > .help { margin:0 0 1rem; max-width:62rem; }
.fees-table { width:100%; max-width:44rem; border-collapse:collapse; margin:.4rem 0; font-size:.875rem; }
.fees-table th, .fees-table td { padding:.3rem .5rem; border-bottom:1px solid hsl(var(--border)); text-align:left; vertical-align:top; overflow-wrap:anywhere; }
.fees-table th[scope="row"] { font-weight:500; color:hsl(var(--muted-foreground)); }
.fees-table .fees-amount { text-align:right; white-space:nowrap; }
.fees-check, .account-recovery { margin-top:1.25rem; }
.fees-check h4 { margin:0 0 .35rem; font-size:1rem; font-weight:650; }
.fees-total { margin:.75rem 0 .25rem; font-size:1rem; }
.fees-lines { max-width:none; }
/* Lot 308: «Termene legale de urmărit» above the dossier list. */
.deadline-watch { margin:0 0 1rem; padding:.85rem 1.1rem; border:1px solid hsl(var(--border)); border-radius:var(--radius); background:hsl(var(--card)); }
.deadline-watch h3 { margin:0 0 .25rem; font-size:1rem; font-weight:650; }
.deadline-watch details > summary { display:block; position:relative; padding-right:1.4rem; list-style:none; cursor:pointer; min-height:44px; }
.deadline-watch summary::-webkit-details-marker { display:none; }
.deadline-watch summary::after { content:'›'; position:absolute; right:0; top:0; font-size:1.4rem; }
.deadline-watch details[open] > summary::after { transform:rotate(90deg); }
.deadline-watch summary h3 { display:inline; }
.deadline-watch summary:focus-visible { outline:2px solid hsl(var(--primary)); outline-offset:4px; }
.deadline-watch-details > .help { margin:.25rem 0 0; }
.deadline-watch-counts { display:block; margin:.3rem 0 .4rem; font-size:.875rem; font-weight:500; }
.deadline-watch-list { margin:0; padding:0; list-style:none; }
.deadline-watch-item { padding:.4rem 0; border-top:1px solid hsl(var(--border)); line-height:1.5; }
.deadline-watch-case { font-weight:600; }
.deadline-watch-due { color:hsl(var(--muted-foreground)); }
.deadline-watch-more { margin:.4rem 0 .2rem; min-height:44px; }
.legal-note .deadline-badge { background:hsl(43 100% 93%); border-color:hsl(38 85% 60%); color:hsl(30 85% 26%); }
.deadline-watch > .help { margin:.25rem 0 0; }
/* Lot 307: the legal deadlines of a dossier. */
.case-legal-deadlines h4 { margin:0 0 .35rem; font-size:1rem; font-weight:650; }
.case-legal-deadlines h5 { margin:.75rem 0 .25rem; font-size:.95rem; font-weight:600; }
.case-deadlines-note { margin:.35rem 0; padding:.45rem .7rem; border-left:3px solid hsl(38 85% 60%); background:hsl(43 100% 96%); color:hsl(30 85% 22%); }
.case-deadlines-entries { margin:.25rem 0; padding-left:1.1rem; font-size:.875rem; }
.case-deadlines-entries li { margin:.2rem 0; }
.case-deadlines-cancelled > span:first-child { text-decoration:line-through; color:hsl(var(--muted-foreground)); }
.case-deadlines-current { font-weight:500; }
/* Lots 315–316: the handover of the registers and the public lists. */
.register-exports { margin:0 0 1rem; }
.register-exports > details { margin:0 0 .75rem; }
.register-exports summary { cursor:pointer; min-height:40px; font-weight:600; }
.registers-register { padding:.6rem 0; border-top:1px solid hsl(var(--border)); }
.registers-register h5 { margin:0 0 .3rem; font-size:.95rem; font-weight:600; }
.registers-table { max-width:none; min-width:46rem; }
table.registers-table th, table.registers-table td { overflow-wrap:normal; word-break:normal; }
.registers-late { color:#991b1b; font-weight:500; }
.registers-reconciled { color:hsl(150 60% 22%); font-weight:500; }
.registers-unreconciled { color:hsl(30 85% 26%); font-weight:500; }
.registers-flag { color:#991b1b; }
/* The decision of a row: the reason is read whole while it is written. */
.registers-public-result td.registers-decision { min-width:14rem; }
.registers-public-result td.registers-decision input[type="text"] { width:100%; box-sizing:border-box; margin-top:.3rem; }
.registers-register, .registers-public-result { overflow-x:auto; }
/* Lot 311: the mentions on the acts issued. */
.case-act-notes h4 { margin:0 0 .35rem; font-size:1rem; font-weight:650; }
.case-act-note { padding:.6rem 0; border-top:1px solid hsl(var(--border)); }
.case-act-note h5 { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; margin:0 0 .25rem; font-size:.95rem; font-weight:600; }
.case-act-notes-form .field-group { margin-top:.75rem; }
.case-act-notes-form textarea { width:100%; }
.registry-act-notes { display:block; color:#991b1b; }
/* Lot 309: the validity of the acts issued. */
.case-deadlines-acts { margin-top:.75rem; }
.case-deadlines-act { margin:.6rem 0 0; font-weight:600; }
.deadline-card h6 { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; margin:0 0 .25rem; font-size:.9rem; font-weight:600; }
.case-deadlines-form .field-group { margin-top:.75rem; }
.case-deadlines-form textarea { width:100%; }
/* Lot 302: the fees of a dossier. */
.case-fees h4 { margin:0 0 .35rem; font-size:1rem; font-weight:650; }
.case-fee { padding:.75rem 0; border-top:1px solid hsl(var(--border)); }
.case-fee h5 { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; margin:0 0 .25rem; font-size:.95rem; font-weight:600; }
.case-fee-cancelled h5 { color:hsl(var(--muted-foreground)); text-decoration:line-through; }
.case-fee-payments { margin:.35rem 0; padding-left:1.1rem; font-size:.875rem; }
.case-fee-payment-cancelled { color:hsl(var(--muted-foreground)); }
.case-fee-lines > summary { cursor:pointer; min-height:32px; color:hsl(var(--primary)); font-size:.875rem; font-weight:500; }
.case-fees-form .field-group { margin-top:.75rem; }
.case-fee-regularization { margin:.4rem 0; padding:.5rem .75rem; border-left:3px solid hsl(var(--primary) / .5); background:hsl(var(--muted) / .4); font-size:.875rem; }
.case-fee-regularization p { margin:0 0 .25rem; }
.case-fees-form .library-wide { grid-column:1/-1; }
/* Lot 294: «Texte urbanistice». */
#library-settings > h3 { margin:0 0 .35rem; font-size:1.05rem; font-weight:650; }
#library-settings > .help { margin:0 0 1rem; max-width:62rem; }
.library-actions { margin:0 0 1rem; }
.library-editor { margin:0 0 1.25rem; }
.library-editor .field-group { margin-bottom:.75rem; }
.library-editor .library-wide { grid-column:1/-1; }
.library-editor textarea { width:100%; min-height:6rem; resize:vertical; }
.library-toolbar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:.5rem 1rem; margin:0 0 .75rem; }
.library-toolbar .field { margin:0; min-width:12rem; }
.library-toolbar .library-search { flex:1 1 18rem; }
.library-option { display:flex; align-items:center; gap:.5rem; min-height:44px; font-weight:400; cursor:pointer; }
.library-option input { width:18px; height:18px; margin:0; }
.library-list { display:grid; gap:.75rem; }
.library-card { padding:.9rem 1.1rem; border:1px solid hsl(var(--border)); border-radius:var(--radius); background:hsl(var(--card)); }
.library-card h5 { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; margin:0 0 .3rem; font-size:.95rem; font-weight:600; }
.library-card > .help { margin:.1rem 0 .4rem; }
.library-card-actions { display:flex; flex-wrap:wrap; gap:.5rem; margin:.5rem 0 .25rem; }
.library-group { margin:.75rem 0 0; font-size:.8rem; font-weight:650; letter-spacing:.03em; text-transform:uppercase; color:hsl(var(--muted-foreground)); }
.library-group:first-child { margin-top:0; }
.library-text { margin:.35rem 0; white-space:pre-line; overflow-wrap:anywhere; line-height:1.5; }
.library-badge { display:inline-block; padding:.05rem .45rem; border:1px solid hsl(var(--border)); border-radius:999px; background:hsl(var(--muted)); color:hsl(var(--muted-foreground)); font-size:.75rem; font-weight:500; }
.library-badge-retired { border-color:hsl(var(--destructive)/.35); background:hsl(var(--destructive)/.06); color:#991b1b; }
.library-retired { background:hsl(var(--muted)/.45); }
.library-retired .library-text { color:hsl(var(--muted-foreground)); }
.library-history { margin-top:.25rem; }
.library-history > summary { cursor:pointer; min-height:32px; color:hsl(var(--primary)); font-size:.875rem; font-weight:500; }
.library-revisions { margin:.35rem 0 0; padding-left:1.25rem; font-size:.875rem; }
.library-revisions li + li { margin-top:.5rem; }
/* Lot 297: the source PDF of a documentation. */
.library-source { margin:.25rem 0; font-size:.875rem; }
.library-source-link { overflow-wrap:anywhere; }
.library-picker-dialog .library-source-link { display:inline-block; margin:0 0 .6rem; }
.library-source-state { margin:.35rem 0 .15rem; }
/* Lot 295: «Texte din bibliotecă» in the certificates. */
.library-pick { display:flex; flex-direction:column; align-items:flex-start; gap:.35rem; margin:.45rem 0 .25rem; }
.library-pick > button { min-height:36px; padding:.35rem .8rem; }
.library-sources { margin:0; padding:0; list-style:none; }
.library-sources:empty { display:none; }
.library-sources li { margin:.1rem 0; }
.library-sources .link-button { font-size:.8rem; }
.library-source-adapted { color:#92400e; }
.library-picker-dialog .library-text { white-space:pre-line; overflow-wrap:anywhere; }
.library-picker-results { display:grid; gap:.4rem; margin:.5rem 0 0; padding:0; list-style:none; }
.library-picker-results .library-choice { display:flex; flex-direction:column; align-items:flex-start; gap:.15rem; width:100%; text-align:left; white-space:normal; }
.library-picker-results .library-choice .help { margin:0; }
.library-target { margin:.5rem 0; padding:.5rem .75rem; border:1px solid hsl(var(--border)); border-radius:var(--radius); }
.library-target .library-option { min-height:36px; }
body[data-role="READ"] .library-pick > button { display:none; }
/* The Formulare page: the saved drafts under the catalog; in a form, the way back to the catalog. */
.home-drafts { margin-top:2rem; }
.all-forms-link { display:inline-block; min-height:24px; line-height:24px; margin:0 0 .5rem; color:hsl(var(--primary)); text-decoration:none; font-weight:500; }
.all-forms-link:hover { text-decoration:underline; }

/* Doc 254 — an editor shown inside the dossier's panel: only the form and its actions. */
.embedded .sidebar, .embedded .site-header, .embedded .skip-link, .embedded .all-forms-link, .embedded #case-context, .embedded #menu-btn, .embedded .backup-link { display:none !important; }
.embedded main.layout, .embedded .layout { display:block; max-width:none; margin-left:0; padding:0; }
.embedded .workspace { max-width:none; margin:0; border-radius:0; }

/* Doc 255 — documents are kept in their dossier: the Formulare page fills and prints, without a separate save or list. */
.standalone-note { display:none; margin:0 0 1rem; padding:.6rem .9rem; border-left:3px solid hsl(var(--primary)); background:hsl(var(--primary) / .06); }
.standalone .standalone-note { display:block; }
.standalone #save-btn, .standalone #ac-save, .standalone .home-drafts, .standalone .drafts-section, .standalone #ac-new, .standalone .backup-link { display:none !important; }
/* Doc 258: training examples only on request, no save hints where nothing is saved, grouped gaps, CNP warning. */
.request-mode .save-hint, .request-mode [data-editor-guidance-key="persistenceHelp"], .standalone .save-hint, .standalone [data-editor-guidance-key="persistenceHelp"] { display:none !important; }
/* QA 2026-10-12 (M16): «Puteți salva documentul oricând» is said by the button itself; one help line less above the form. */
body:not([data-role="READ"]) .save-hint { display:none !important; }
.form-reset { margin:.4rem 0 0; }
.problem-list .problem-section { list-style:none; margin:.45rem 0 0; }
.problem-list .problem-section > strong { display:block; margin-bottom:.15rem; }
.problem-sublist { margin:0 0 .3rem; padding-left:1.1rem; }
input.at-registration { background:hsl(var(--muted) / .6); color:hsl(var(--muted-foreground)); cursor:default; }
.cnp-warning { margin:.25rem 0 0; color:#92400e; font-size:.85rem; }
.implicit-absence-help { margin:.2rem 0 0; }
/* Doc 258: «Listă / Foldere», one entry for the dossiers in the menu. */
.view-toggle { display:inline-flex; gap:2px; margin-top:.6rem; padding:2px; border:1px solid hsl(var(--border)); border-radius:999px; background:hsl(var(--card)); }
.view-toggle[hidden] { display:none; }
.view-toggle a { display:inline-flex; align-items:center; min-height:var(--control-height); padding:.3rem .95rem; border-radius:999px; color:hsl(var(--foreground)); text-decoration:none; font-size:.88rem; }
/* Review 15: the current view is tinted, not filled; the one filled button stays the action.
   Round 25: the tint is .07 (as in the settings navigation), so the blue text keeps a 4.5:1 contrast at 14px. */
.view-toggle a[aria-current="page"] { background:hsl(var(--primary) / .07); color:hsl(var(--primary)); font-weight:600; }
.signatory-missing { margin-top:.6rem; }
/* Doc 258: the authorization request in pages. */
.ac-pages { position:sticky; top:0; z-index:4; display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; margin:0 0 1rem; padding:.5rem; background:hsl(var(--card) / .97); border:1px solid hsl(var(--border)); border-radius:var(--radius); }
.ac-pages ol { display:flex; flex-wrap:wrap; gap:.35rem; margin:0; padding:0; list-style:none; }
.ac-page { display:inline-flex; align-items:center; gap:.4rem; min-height:36px; padding:.25rem .75rem; border:1px solid hsl(var(--border)); border-radius:999px; background:hsl(var(--card)); color:hsl(var(--foreground)); font:inherit; font-size:.85rem; cursor:pointer; }
.ac-page-number { display:inline-grid; place-items:center; width:1.4rem; height:1.4rem; border-radius:50%; background:hsl(var(--muted)); font-size:.75rem; font-weight:600; }
.ac-page:is([aria-current="step"],[aria-current="true"]) { border-color:hsl(var(--primary)); box-shadow:0 0 0 1px hsl(var(--primary)); font-weight:600; }
.ac-page:is([aria-current="step"],[aria-current="true"]) .ac-page-number { background:hsl(var(--primary)); color:hsl(var(--primary-foreground)); }
.ac-page.visited .ac-page-number { background:hsl(142 60% 27%); color:#fff; }
.ac-all-pages { margin-left:auto; }
.ac-page-nav { justify-content:space-between; }
.ac-page-nav[hidden] { display:none; }
.ac-authority, .ac-rare { margin:0 0 .75rem; }
.ac-authority > summary, .ac-rare > summary { cursor:pointer; font-weight:600; margin:.25rem 0 .5rem; }
/* QA 2026-10-11: below the real height of the sticky header (two rows on a small screen), not a fixed 4.5rem. */
#ac-fields > fieldset[data-page] { scroll-margin-top:var(--form-header-offset,4.5rem); }
/* Doc 259: one field per address part, with its list; checks after the first PDF; shorter heads. */
.administrative-field { position:relative; }
.address-options { position:absolute; z-index:30; left:0; right:0; margin:2px 0 0; padding:.25rem 0; list-style:none; max-height:16rem; overflow:auto; background:hsl(var(--card)); border:1px solid hsl(var(--border)); border-radius:var(--radius); box-shadow:0 8px 24px rgb(0 0 0 / .14); }
.address-options[hidden] { display:none; }
.address-options li { padding:.4rem .75rem; cursor:pointer; font-size:.9rem; }
.address-options li.active, .address-options li:hover { background:hsl(var(--primary) / .1); }
.address-options .address-kind { color:hsl(var(--muted-foreground)); font-size:.8rem; }
.address-help { margin:.2rem 0 0; }
#fields:not(.checked) .cu-review, #fields:not(.checked) .cu-missing { display:none !important; }
.standalone label[for="form-title"], .standalone #form-title, .request-mode label[for="form-title"], .request-mode #form-title { display:none !important; }
.standalone .editor-options, .request-mode .editor-options { display:none; }
.form-editor-page .form-heading { padding:.25rem 0 .5rem; margin-bottom:.5rem; }
.form-editor-page .form-heading .actions { margin-top:0; padding-top:0; }
input.signature-cell { background:transparent; border-style:dashed; color:hsl(var(--muted-foreground)); }
.keyboard-help { margin:.25rem 0 .5rem; font-size:.82rem; }
/* Doc 259: one quiet line for the notes above the form. */
.pdf-status { margin:.5rem 0; font-size:.875rem; }
.section-help { grid-column:1 / -1; margin:.25rem 0 .6rem; }
.model-condition { grid-column:1 / -1; margin:0 0 .6rem 1.5rem; }
.model-condition > summary { min-height:32px; display:list-item; }
.model-condition .help { max-width:85ch; margin:.25rem 0 .5rem; }
.model-condition-list { list-style:none; margin:.5rem 0; padding:0; }
.model-condition-list li { margin:.5rem 0; }
.standalone-note { margin:.35rem 0; padding:0; background:none; border:0; font-size:.82rem; }
.registration-note { grid-column:1 / -1; margin:0; }
/* Doc 259: denser forms on the editor pages — more of the form on screen, the same controls. */
.form-editor-page #fields input:not([type=checkbox]):not([type=radio]), .form-editor-page #fields select, .form-editor-page #fields textarea,
.form-editor-page #ac-fields input:not([type=checkbox]):not([type=radio]), .form-editor-page #ac-fields select, .form-editor-page #ac-fields textarea { min-height:38px; }
/* QA 2026-10-12 (MT-06): the ticks of the forms are 20 px too, as everywhere. */
.form-editor-page #fields input[type=checkbox], .form-editor-page #ac-fields input[type=checkbox],
.form-editor-page #fields input[type=radio], .form-editor-page #ac-fields input[type=radio] { width:1.25rem; min-width:1.25rem; height:1.25rem; min-height:1.25rem; flex-shrink:0; }
.form-editor-page #fields label, .form-editor-page #ac-fields label { margin:.3rem 0 .2rem; }
.form-editor-page .cu-grid, .form-editor-page .form-grid { gap:.65rem .9rem; }
.form-editor-page #fields .field-group, .form-editor-page #ac-fields .field-group { padding:.8rem .9rem; margin-top:.8rem; }
.form-editor-page .cu-subheading { margin:.9rem 0 .45rem; }
.form-editor-page .cu-editor .cu-option, .form-editor-page .field > label.choice-inline { min-height:34px; margin:0; }
.form-editor-page #fields .date-ro-open { min-height:38px; }
/* Doc 260: the F_A_01 page in the frame of every form. */
.standalone label[for="ac-title"], .standalone #ac-title, .request-mode label[for="ac-title"], .request-mode #ac-title { display:none !important; }
.ac-editor-page .ac-intro { display:none; }
.ac-editor-page .ac-optional > button { min-height:34px; padding:.3rem .8rem; font-size:.88rem; }
/* Doc 260: the F_A_01 sub-groups look like the sub-headings of every other form. */
.ac-editor-page .ac-fields-grid > details.ac-group { padding:0; border:0; background:none; margin:.2rem 0 0; }
.ac-editor-page details.ac-group > summary, .ac-editor-page details.ac-authority > summary, .ac-editor-page details.ac-rare > summary { margin:.7rem 0 .45rem; padding:0; background:none; font-size:.95rem; font-weight:600; list-style:none; }
.ac-editor-page details.ac-group > summary::-webkit-details-marker, .ac-editor-page details.ac-authority > summary::-webkit-details-marker, .ac-editor-page details.ac-rare > summary::-webkit-details-marker { display:none; }
.ac-editor-page details.ac-group > summary::before, .ac-editor-page details.ac-authority > summary::before, .ac-editor-page details.ac-rare > summary::before { content:'▾ '; color:hsl(var(--muted-foreground)); }
.ac-editor-page details.ac-group:not([open]) > summary::before, .ac-editor-page details.ac-authority:not([open]) > summary::before, .ac-editor-page details.ac-rare:not([open]) > summary::before { content:'▸ '; }
.ac-editor-page details.ac-group > .ac-fields-grid { padding:0; margin:0; }

/* Doc 262 — one frame for every page. On a wide screen the menu shows where one is, so the title bar is left out
   (an editor keeps only its sections bar); each page opens with one heading and its main action on the right.
   Calmer buttons, larger help text, links in the app's blue, messages that stay in view, coloured states. */
:root { --radius:.5rem; }
body { font-size:15px; }
a { color:hsl(var(--primary)); }
.help,.muted,.empty { font-size:.875rem; }
.site-header .subtitle, .local-state { display:none; }
/* QA 2026-10-11 (M4): one visible title per page (the page's own heading); the header's H1 stays for screen readers. */
@media(min-width:1024px) {
  .site-header:not(:has(.header-sections)) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; margin:0; border:0; }
  .site-header:has(.header-sections) > .wrap { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; padding:0; }
  .site-header #menu-btn { display:none; }
}
@media(max-width:1023px) {
  .site-header h1 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
}
.workspace { max-width:1180px; margin:0 auto; padding:var(--workspace-padding); }
.page-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; margin:0 0 1.25rem; }
.page-heading h2 { margin:0 0 .25rem; font-size:1.6rem; font-weight:650; line-height:1.25; }
.page-heading p { margin:0; }
.page-heading .eyebrow { display:none; }
.secondary:hover:not(:disabled),.menu-button:hover,.button-link:hover { background:hsl(var(--primary) / .07); color:hsl(var(--primary)); border-color:hsl(var(--primary) / .6); }
.button-link.primary { background:hsl(var(--primary)); color:hsl(var(--primary-foreground)); border-color:transparent; }
.button-link.primary:hover { background:hsl(var(--primary-hover)); color:hsl(var(--primary-foreground)); }
.button-link.quiet { border-color:transparent; background:none; box-shadow:none; color:hsl(var(--primary)); padding-inline:.6rem; }
.button-link.quiet:hover { background:hsl(var(--primary) / .07); }
.quiet { background:none; border-color:transparent; box-shadow:none; color:hsl(var(--primary)); padding-inline:.6rem; }
.quiet:hover:not(:disabled) { background:hsl(var(--primary) / .07); }
.back-link { display:inline-flex; align-items:center; gap:.35rem; min-height:36px; margin:0 0 .35rem; padding:0 .5rem 0 0; border:0; background:none; box-shadow:none; color:hsl(var(--primary)); font-weight:600; text-decoration:none; cursor:pointer; }
.back-link:hover { text-decoration:underline; }
/* A short message after an action stays in view at the bottom of the window, whatever was scrolled. */
.toast-box, .toast-status:not(:empty):not(.toast-text) { position:fixed; z-index:60; right:1.25rem; bottom:calc(1.25rem + var(--toast-stack-offset,0px)); max-width:min(32rem,calc(100vw - 2.5rem)); min-height:0; margin:0; padding:.55rem .65rem .55rem 1rem; border-radius:var(--radius); background:hsl(var(--sidebar)); color:hsl(var(--sidebar-foreground)); box-shadow:0 10px 28px rgb(15 23 42 / .22); font-size:.92rem; line-height:1.45; overflow-wrap:anywhere; }
.toast-box { display:flex; align-items:center; gap:.65rem; }
.toast-box.toast-empty { position:static; max-width:none; padding:0; background:none; box-shadow:none; }
.toast-box .toast-status { flex:1; min-width:0; min-height:0; margin:0; color:inherit; font-size:inherit; }
.toast-box .toast-close { flex:none; min-width:44px; min-height:44px; padding:.15rem .5rem; border:1px solid hsl(var(--sidebar-foreground)/.45); background:transparent; color:inherit; box-shadow:none; font-size:1.5rem; line-height:1; }
/* Runda 22.11: a message that comes while a window is open does not cover it; it stays said to the screen readers and shows when the window closes (auth-ui.js). */
/* Review 22.11: kept out of sight without a change of its position. Taken out of the flow («position:absolute») and put back, a message that stands in the page above the form
   (the status line of a form) stopped the browser from keeping the page in place when it appeared: the control just used ran 26 px down the screen (the library of texts). */
.toast-box.toast-held { max-height:0; min-height:0; margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0; border-width:0; overflow:hidden; opacity:0; box-shadow:none; pointer-events:none; }
.toast-box .toast-close:hover { background:hsl(var(--sidebar-foreground)/.12); }
.toast-box .toast-close:focus-visible { outline-color:hsl(var(--sidebar-ring)); }
.readonly-banner { margin:0 0 1rem; padding:.65rem .9rem; border-radius:var(--radius); border:1px solid hsl(var(--primary) / .25); background:hsl(var(--primary) / .06); font-size:.9rem; }
/* States read at a glance: blue in progress, amber waiting for the applicant, green issued, grey ended. */
.state-badge { font-weight:600; }
.state-badge.state-active { background:hsl(221 83% 96%); border-color:hsl(221 70% 75%); color:hsl(221 70% 32%); }
.state-badge.state-waiting { background:hsl(43 100% 93%); border-color:hsl(38 85% 60%); color:hsl(30 85% 26%); }
.state-badge.state-done { background:hsl(150 45% 93%); border-color:hsl(150 40% 60%); color:hsl(150 60% 22%); }
.state-badge.state-ended { background:hsl(220 14% 94%); border-color:hsl(220 10% 78%); color:hsl(220 10% 34%); }
.state-badge.state-rejected { background:hsl(0 80% 96%); border-color:hsl(0 60% 78%); color:hsl(0 60% 34%); }

/* Doc 262 — «Setări aplicație»: the same heading, each group a card with its title inside, a save bar that stays in view. */
.settings-page .field-group { position:relative; margin:0 0 1rem; padding:1.1rem 1.25rem 1.25rem; border-radius:var(--radius); box-shadow:0 1px 2px rgb(15 23 42 / .04); }
.settings-page .field-group > legend, .settings-page .field-group > summary, .settings-page .field-group > h3 { float:left; width:100%; margin:0 0 .75rem; padding:0; font-size:1.05rem; font-weight:650; }
.settings-page .field-group > legend + *, .settings-page .field-group > h3 + * { clear:both; }
.settings-page details.field-group > summary { float:none; cursor:pointer; min-height:28px; margin:0; }
.settings-page details.field-group[open] > summary { margin-bottom:.75rem; }
.settings-page details.field-group > summary .help { display:block; font-weight:400; margin:.15rem 0 0; }
.settings-page .field-group h4 { margin:1rem 0 .5rem; font-size:.95rem; font-weight:600; }
.settings-page .field-group h4:first-of-type { margin-top:.25rem; }
.settings-page .settings-section-intro { margin:-.25rem 0 1rem; }
.settings-page .uat-form > .form-actions { position:sticky; bottom:0; z-index:5; margin:1rem -1.75rem -1.5rem; padding:.85rem 1.75rem; background:hsl(var(--card) / .97); border-top:1px solid hsl(var(--border)); box-shadow:0 -8px 14px -14px rgb(0 0 0 / .5); border-radius:0 0 var(--radius) var(--radius); }
.settings-page .uat-form > .form-actions .save-state { color:hsl(var(--muted-foreground)); font-size:.875rem; }
@media(max-width:600px) { .settings-page .uat-form > .form-actions { flex-wrap:nowrap; gap:.5rem; padding-block:.6rem; } .settings-page .uat-form > .form-actions > button { flex:1 1 0; min-width:0; white-space:normal; padding-inline:.6rem; } }
@media(max-width:600px) {
  .uat-action-full { display:none; }
  .uat-action-short { display:inline; }
  .settings-page .uat-form > .form-actions > button { min-height:44px; }
}
@media(min-width:601px) { .uat-action-short { display:none; } }
.uat-signatories { display:grid; gap:.6rem; margin:0 0 .75rem; }
.uat-signatory { min-inline-size:0; margin:0; padding:.75rem .9rem; border:1px solid hsl(var(--border)); border-radius:var(--radius); background:hsl(var(--muted) / .45); }
.uat-signatory-main { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr) auto; gap:.6rem; align-items:end; }
.uat-signatory-main .field { margin:0; max-width:none; }
.uat-signatory-main label { margin-top:0; }
.uat-signatory-more { margin:.5rem 0 0; }
.uat-signatory-more > summary { cursor:pointer; color:hsl(var(--primary)); font-size:.875rem; font-weight:500; min-height:28px; }
.uat-signatory-more .uat-settings-grid { margin-top:.4rem; }
@media(max-width:900px) { .uat-signatory-main { grid-template-columns:minmax(0,1fr); } }
@media(max-width:1023px) { .settings-page .uat-form > .form-actions { margin-inline:-1.1rem; padding-inline:1.1rem; margin-bottom:-1.1rem; } }
@media(max-width:1023px) { .workspace { padding:1.1rem; } .page-heading h2 { font-size:1.35rem; } }
@media(max-width:600px) { .page-heading { flex-direction:column; align-items:stretch; } }
@media(max-width:500px) { .workspace { padding:1rem; } }
.visually-hidden { position:absolute !important; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

/* Doc 262 — inside the dossier's panel the panel bar names the document: no second title, the code and the notes quiet. */
.embedded #form-original-title, .embedded #ac-heading.active-form-heading { display:none; }
.embedded .form-heading .eyebrow { color:hsl(var(--muted-foreground)); font-weight:500; letter-spacing:0; text-transform:none; }
.embedded .uat-summary.uat-ok { display:none; }
.problem-actions { margin:.5rem 0; }
.problem-details > summary { cursor:pointer; font-weight:600; min-height:32px; }
.cases-page:has(#wizard-start:not([hidden])) #new-case { visibility:hidden; }
.wizard-choice { margin:.25rem 0 .5rem; font-weight:600; }
.wizard-lapsed { margin:.75rem 0 0; }
.folder-draft { border-style:dashed !important; }
.folder-draft .folder-meta { color:hsl(30 85% 30%); }
.welcome { padding:0; }
.welcome .page-heading p { max-width:70ch; }
.site-header .wrap { justify-content:flex-start; }
.settings-page .uat-settings-grid { gap:0 1.25rem; }
.settings-page .uat-settings-grid .field { margin-bottom:.85rem; }
/* Round 24 (U-21): Scriere does not change the UAT data either; only the administrator does. */
body:not([data-admin="true"]) .settings-page .uat-form > .form-actions { display:none; }
/* QA 2026-10-11 (M6): the read-only account does not see editing buttons it cannot use. */
body:not([data-admin="true"]) :is(#uat-crest-choose, #uat-crest-remove, #uat-signatory-add, #uat-signatories button) { display:none !important; }

/* Doc 263 — a long form in pages, drawn as the pages of the authorization request; a page with gaps is marked. */
#fields > fieldset.page-off { display:none !important; }
.form-pages { position:static; }
.form-pages[hidden], .form-page-nav[hidden] { display:none !important; }
.form-page-nav { display:flex; justify-content:space-between; gap:.75rem; margin:1rem 0 .5rem; }
.ac-page.has-problems .ac-page-number { box-shadow:0 0 0 2px hsl(var(--destructive)); }
/* Doc 265: what keeps a document from its PDF is shown at the field (field-errors.js). */
.required-mark { color:hsl(0 72% 42%); font-weight:700; }
.required-legend { margin:.25rem 0 .75rem; }
.field-invalid > :is(input,select,textarea), .field-invalid .date-ro-control > input, .field-invalid > .choice-list,
.field-invalid > .image-control { border-color:hsl(var(--destructive)) !important; box-shadow:0 0 0 1px hsl(var(--destructive)); }
/* A group's frame: a thicker border, which the title interrupts (a shadow would cross the title). */
fieldset.field-invalid { border:2px solid hsl(var(--destructive)) !important; box-shadow:none; }
fieldset.field-invalid, .field-invalid > .choice-list { border-radius:var(--radius); }
.field-invalid > .choice-list { padding:.35rem .5rem; border:1px solid hsl(var(--destructive)); }
.field-invalid > label, .field-invalid > legend, .field-invalid > .choice-inline { color:hsl(0 72% 36%); }
.field-error { margin:.3rem 0 0; color:hsl(0 72% 36%); font-size:.88rem; font-weight:500; line-height:1.35; }
.field-error::before { content:''; display:inline-block; width:.5rem; height:.5rem; margin:0 .4rem .08rem 0; border-radius:50%; background:hsl(var(--destructive)); }
.field-error[hidden] { display:none; }
.error .problem-actions { margin:.4rem 0 0; }
/* Round 25 (E1-V2): the summary of what is left is one compact row in the flow of the page (it no longer sticks over the field); the list by section is folded under it. */
.error:has(.problem-row) { padding-block:.5rem; }
.problem-row { display:flex; align-items:center; flex-wrap:wrap; gap:.25rem .75rem; }
.problem-row .problem-intro { margin:0; }
.problem-row .problem-first { min-height:44px; font-weight:600; text-decoration:underline; color:hsl(var(--tone-problem-fg, 0 74% 35%)); }
.problem-steps { margin:.1rem 0 0; }
.problem-steps > summary { cursor:pointer; min-height:32px; display:flex; align-items:center; font-size:.875rem; }
.problem-steps[open] { max-height:min(16rem,38vh); overflow:auto; }
.problem-step-title { margin:.35rem 0 .1rem; font-weight:600; }
.field-invalid { scroll-margin-top:calc(var(--form-header-offset,0px) + 4.5rem); scroll-margin-bottom:6rem; }
.problem-links { margin:0 0 .35rem; padding-left:1.25rem; }
.problem-links li { margin:.1rem 0; }
.problem-links .link-button { color:hsl(var(--tone-problem-fg, 0 74% 35%)); min-height:28px; }
/* Review 18: a finger needs the usual 44 px target. */
@media (pointer:coarse) { .problem-links .link-button { min-height:44px; } }
.field-invalid > .cu-warning { margin:.3rem 0 0; padding:0; border:0; background:none; color:hsl(0 72% 36%); font-weight:500; }

/* Lot 318: the accounts and the actions on each (never on one's own). */
.accounts-list li { padding:.35rem 0; }
.accounts-list li.account-disabled > span:first-child { color:hsl(var(--muted-foreground, 215 16% 40%)); }
.account-actions { display:inline-flex; flex-wrap:wrap; gap:.25rem 1rem; margin-left:.75rem; }
.account-actions .link-button { min-height:44px; }
.accounts-action:not(:empty) { margin:.5rem 0; }
.accounts-action input[type="text"] { font-family:ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing:.04em; }

/* Lot 326: the opinions and agreements of a permit dossier. */
.case-opinions h4 { margin:0 0 .35rem; font-size:1rem; font-weight:650; }
.case-opinions-items { list-style:none; margin:.5rem 0; padding:0; }
.case-opinion { padding:.45rem 0; border-top:1px solid hsl(var(--border)); }
.case-opinion-label { font-weight:550; }
.case-opinion-missing .case-opinion-label { color:hsl(30 85% 26%); }
.case-opinion-actions { display:inline-flex; flex-wrap:wrap; gap:.25rem 1rem; margin-left:.5rem; }
.case-opinion-actions .link-button { min-height:44px; }
.case-opinions-warnings { margin:.25rem 0; padding-left:1.1rem; }
.case-opinions-form .field-group { margin-top:.75rem; }
.case-opinions-form textarea { width:100%; }

/* Lot 327: the reception at the completion of the works. */
.case-reception h4 { margin:0 0 .35rem; font-size:1rem; font-weight:650; }
.case-reception-stage { font-weight:600; margin:.4rem 0; }
.case-reception-terms { list-style:none; margin:.5rem 0; padding:0; display:grid; gap:.4rem; }
.case-reception-terms .deadline-card { padding:.5rem .75rem; }
.case-reception-conditions ul { margin:.25rem 0 .5rem; padding-left:1.1rem; }
.case-reception-sent { border:0; padding:0; margin:0; display:grid; gap:.25rem; }
.case-reception-sent legend { font-weight:550; padding:0; }
.case-reception-sent label { display:flex; align-items:center; gap:.4rem; min-height:44px; }
.case-reception-form .field-group { margin-top:.75rem; }
.case-reception-form textarea { width:100%; }

/* UX 2026-10-11: one look for every card. An empty list is a quiet line, not a box; a closed «action-disclosure» whose form
   is hidden (Citire, a closed dossier, a pending write) is not offered; on a phone every control is a 44px target. */
.doc-list li.empty, .act-version-list li.empty { border:0; background:none; padding:.15rem 0; box-shadow:none; }
.action-disclosure:has(> form[hidden]) { display:none; }
@media (max-width: 600px) {
  .detail-card .link-button, .back-link, .detail-card summary, .registers-public summary, #registry summary, .settings-section summary, details > summary,
  .view-toggle a, .case-filters-toggle, button.quiet, .doc-actions a, .doc-actions button { min-height:44px; display:inline-flex; align-items:center; }
}

/* UX 2026-10-11: on a phone every button and every disclosure is a 44px target, whatever a page's own rule says. */
@media (max-width: 600px) {
  button, summary, .button-link { min-height:44px !important; }
  /* QA 2026-10-12 (M11): the tabs wrap on a second row instead of hiding behind a scroll with no sign of more. */
  .settings-tabs a { white-space:nowrap; padding-inline:.7rem; }
}
/* Disclosures that tell more («Despre …», «Istoric», «Cum s-a calculat», «Alte proceduri»): one quiet link with ▾ / ▴. */
details.about-disclosure > summary, details.registry-about > summary, details.wizard-more > summary, details.deadline-lines > summary,
details.explorer-rules > summary, details.library-history > summary {
  list-style:none; cursor:pointer; font-size:.88rem; font-weight:500; color:hsl(var(--primary)); }
details.about-disclosure > summary::-webkit-details-marker, details.registry-about > summary::-webkit-details-marker, details.wizard-more > summary::-webkit-details-marker,
details.deadline-lines > summary::-webkit-details-marker, details.explorer-rules > summary::-webkit-details-marker, details.library-history > summary::-webkit-details-marker { display:none; }
details.about-disclosure > summary::after, details.registry-about > summary::after, details.wizard-more > summary::after, details.deadline-lines > summary::after,
details.explorer-rules > summary::after, details.library-history > summary::after { content:" ▾"; font-size:.75rem; }
details.about-disclosure[open] > summary::after, details.registry-about[open] > summary::after, details.wizard-more[open] > summary::after, details.deadline-lines[open] > summary::after,
details.explorer-rules[open] > summary::after, details.library-history[open] > summary::after { content:" ▴"; }
/* QA 2026-10-11: the page of a mistyped address. */
.not-found-page p:last-child { margin-bottom:0; }
/* QA 2026-10-11 (M19): the way back is a button of the application, not a bare link. */
.not-found-page .button-link { display:inline-flex; align-items:center; min-height:44px; padding:0 1.1rem; border-radius:var(--radius); background:hsl(var(--primary)); color:hsl(var(--primary-foreground)); text-decoration:none; font-weight:600; }
/* QA 2026-10-11: the read role is told once why nothing can be changed; the hints for filling in are not shown to it. */
.read-only-note { display:none; }
body[data-role="READ"] .read-only-note { display:block; }
/* QA 2026-10-12 (M10): the reading account is told once (the banner at the top); the example button is not offered. */
body[data-role="READ"]:has(.readonly-banner) .read-only-note { display:none !important; }
/* QA 2026-10-28 (round 2): in a document's window the editor already says it once, at the top of the form. */
body[data-role="READ"]:has(.cu-editor > .save-hint) .read-only-note { display:none !important; }
body[data-role="READ"] .keyboard-help, body[data-role="READ"] .required-legend { display:none; }
/* The notes about the official model are folded under one line. */
.model-notes { display:inline; }
.model-notes > summary { display:inline-flex; align-items:center; min-height:24px; cursor:pointer; text-decoration:underline; } /* QA 2026-10-12 (M4): a 24 px target */
.model-notes[open] > p { margin:.35rem 0 0; }
/* QA 2026-10-11: a heading receives the focus only to be announced when a page or a step opens; it shows no ring. */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, h3[tabindex="-1"]:focus, h4[tabindex="-1"]:focus, h5[tabindex="-1"]:focus { outline:none; }
/* QA 2026-10-11: an account row shows one action; the others open under «Mai multe». */
.account-more { display:inline-block; margin-left:.5rem; }
.account-more > summary { display:inline; cursor:pointer; color:hsl(var(--primary)); text-decoration:underline; }
.account-more-actions { display:inline-flex; flex-wrap:wrap; gap:.5rem; margin-left:.5rem; }
/* QA 2026-10-11: the ended session is said at the top of the page, above everything, until an answer succeeds. */
.session-expired { position:sticky; top:0; z-index:1000; margin:0; border-radius:0; }
/* QA 2026-10-11 (S4): beside the fixed menu on a wide screen, not under it. */
@media(min-width:1024px) { .session-expired { margin-left:256px; } }
/* QA 2026-10-11 (M1): a field reached with Tab stays clear of the sticky header and of the sticky action bar. */
html:has(body.form-editor-page) { scroll-padding-top:var(--form-header-offset,7rem); scroll-padding-bottom:6rem; }
html:has(.settings-page) { scroll-padding-bottom:5.5rem; }
/* QA 2026-10-11 (M5): disclosure titles are at least 24 px high. */
details > summary { min-height:24px; }
/* Links drawn as buttons use the shared control rule, including settings without cases.css. */
/* QA 2026-10-11 (M10): the keys and the «*» legend share one line above the form when there is room. */
.completion-help.keyboard-help, .required-legend { display:inline-block; margin:0 1.25rem .5rem 0; }
.completion-help.keyboard-help > summary { min-height:32px; }
.completion-help.keyboard-help > p { margin:.25rem 0 .5rem; }
/* QA 2026-10-11 (R16): the reason of an exclusion is read whole. */
.registers-decision .registers-exclusion-reason { width:100%; min-width:14rem; }
/* QA 2026-10-11 (M20): the message rises above a sticky action bar instead of covering its buttons. */
body:is(.form-editor-page, :has(.settings-page .uat-form > .form-actions)) :is(.toast-box,.toast-status:not(:empty):not(.toast-text)) { bottom:calc(6rem + var(--toast-stack-offset,0px)); }
/* QA 2026-10-11 (S6): one row per account, its actions as small buttons at the right end, like the rows of the other lists. */
.accounts-list { list-style:none; padding:0; margin:0; border-top:1px solid hsl(var(--border)); }
.accounts-list li { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.5rem 1rem; padding:.6rem 0; border-bottom:1px solid hsl(var(--border)); }
.accounts-list .account-actions { margin-left:auto; align-items:center; gap:.5rem; }
.accounts-list .account-actions .link-button, .accounts-list .account-more > summary { display:inline-flex; align-items:center; min-height:var(--control-height); padding:.3rem .8rem; border:1px solid hsl(var(--input)); border-radius:calc(var(--radius) - 2px); background:hsl(var(--card)); color:hsl(var(--foreground)); text-decoration:none; font-size:.875rem; cursor:pointer; }
.accounts-list .account-more { margin-left:0; }
.accounts-list .account-more[open] > summary { background:hsl(var(--muted)); }
/* QA 2026-10-11 (M9): on a phone the keys line says nothing (no Enter between rubrics on a touch keyboard). */
@media(max-width:480px) { .completion-help.keyboard-help { display:none; } }

/* QA 2026-10-12: two kinds of disclosure, each with one look on every page: the fold of a section (its title, with the
   browser's marker) and the quiet «more» link (blue, with ▾). */
details.field-group > summary, .numbering-panel > details > summary { font-size:1rem; font-weight:600; }
details.about-disclosure > summary, details.registry-about > summary, details.deadlines-rules-fold > summary,
.settings-page details.field-group.about-disclosure > summary { font-size:.88rem; font-weight:500; }
/* The settings keep their folds as large as the fixed section titles next to them. */
/* QA 2026-10-12: on a phone the form shows its rubrics sooner: the pages as numbers (the current one named), the page
   list and the help lines closer together. */
@media (max-width:600px) {
  /* MT-01: the permit request (F_A_01) too: its page bar no longer stays over the rubrics on a phone. */
  .ac-pages { position:static; }
  .ac-pages .ac-page:not([aria-current="step"]) > span:not(.ac-page-number) { display:none; }
  .ac-pages .ac-page { min-height:44px; padding:.25rem .6rem; }
  .ac-pages { padding:.35rem; margin-bottom:.6rem; }
  .ac-pages .ac-all-pages { margin-left:0; }
  #form-area .form-heading { gap:.5rem; }
}
/* Keep the complete title and guidance readable while bringing the first rubric into view on a phone.
   This is shared by the common editor and the separate authorization request; alerts keep their own layout. */
@media (max-width:600px) {
  body:is(.form-editor-page,.ac-editor-page) .workspace .active-form-heading { font-size:1.25rem; line-height:1.25; margin:.15rem 0 .45rem; }
  body:is(.form-editor-page,.ac-editor-page) .uat-summary p { margin:0; }
  body:is(.form-editor-page,.ac-editor-page) .uat-summary.uat-ok { margin-bottom:.15rem; }
  body:is(.form-editor-page,.ac-editor-page) .all-forms-link { margin-bottom:.15rem; }
  body:is(.form-editor-page,.ac-editor-page) .standalone-note { margin:.25rem 0; }
  body:is(.form-editor-page,.ac-editor-page) .required-legend { margin-bottom:.25rem; }
  body:is(.form-editor-page,.ac-editor-page) .ac-pages ol { flex-wrap:nowrap; min-width:0; max-width:100%; overflow-x:auto; padding:.15rem; }
  body:is(.form-editor-page,.ac-editor-page) .ac-pages ol li { flex:none; }
  .workspace .link-button { min-height:var(--control-height); }
}
/* Review 374: every editor starts with the same short navigation and title.
   Routine header information and registration guidance remain available together;
   warnings about the header stay outside the disclosure. */
body:is(.form-editor-page,.ac-editor-page) .editor-start { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:0 .65rem; margin:0 0 .2rem; }
body:is(.form-editor-page,.ac-editor-page) .editor-start > .all-forms-link { display:inline-flex; align-items:center; min-height:44px; margin:0; font-size:.875rem; }
body:is(.form-editor-page,.ac-editor-page) .editor-context { min-width:0; max-width:100%; margin:0; }
body:is(.form-editor-page,.ac-editor-page) .editor-context > summary { display:list-item; align-content:center; min-height:44px; margin:0; padding:0; cursor:pointer; color:hsl(var(--primary)); background:none; border-radius:0; font-size:.875rem; font-weight:400; }
body:is(.form-editor-page,.ac-editor-page) .editor-context[open] { flex:1 1 100%; }
body:is(.form-editor-page,.ac-editor-page) .editor-context-body { padding:.25rem 0 .5rem; }
body:is(.form-editor-page,.ac-editor-page) .editor-context-body :is(.standalone-note,.uat-summary) { margin:.25rem 0; }
body:is(.form-editor-page,.ac-editor-page).standalone .form-heading { display:none; }
body:is(.form-editor-page,.ac-editor-page).embedded .editor-start { display:none; }
body:is(.form-editor-page,.ac-editor-page) .workspace > .status:not(:empty), .form-editor-page .workspace > #status:not(:empty) { margin-bottom:.15rem; }
@media(max-width:900px) {
  body:is(.form-editor-page,.ac-editor-page) .ac-pages { position:static; margin:.3rem 0 .55rem; padding:.3rem; gap:.2rem .4rem; }
  body:is(.form-editor-page,.ac-editor-page) .ac-pages ol { flex-wrap:nowrap; min-width:0; max-width:100%; overflow-x:auto; padding:.1rem; }
  body:is(.form-editor-page,.ac-editor-page) .ac-pages ol li { flex:none; }
  body:is(.form-editor-page,.ac-editor-page) .ac-page:not([aria-current="step"]) > span:not(.ac-page-number) { display:none; }
  body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-page { min-height:44px; padding:.2rem .5rem; }
  body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-all-pages { margin-left:auto; padding:.15rem .25rem; }
  body:is(.form-editor-page,.ac-editor-page) .workspace .active-form-heading { font-size:1.25rem; line-height:1.25; margin:.1rem 0 .4rem; }
  body:is(.form-editor-page,.ac-editor-page) .cu-subheading { margin:.45rem 0 .3rem; }
  body:is(.form-editor-page,.ac-editor-page) :is(#fields,#ac-fields) > fieldset { margin-top:.6rem; padding-top:.55rem; }
}
/* QA 2026-10-12 (RS-2): the app's own file button, in Romanian; the browser's one stays out of sight. */
input[type="file"].file-native { position:absolute !important; width:1px !important; height:1px !important; min-width:0 !important; min-height:0 !important; max-width:1px !important; max-height:1px !important; padding:0 !important; border:0 !important; opacity:0; overflow:hidden; clip-path:inset(50%); }
.file-picker { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; min-width:0; }
.file-picker[hidden] { display:none; }
.file-picker .file-name { min-width:0; overflow-wrap:anywhere; color:hsl(var(--muted-foreground)); font-size:.875rem; }
/* QA 2026-10-12 (FO-12): a long group title in the layout window wraps inside its frame. */
dialog.layout-dialog fieldset > legend { float:left; width:100%; margin:0 0 .4rem; padding:0; overflow-wrap:anywhere; }
dialog.layout-dialog fieldset > legend + * { clear:both; }
/* Short windows: keep the form reachable without shrinking its text or hiding errors. */
@media(max-height:500px) {
  body.embedded .completion-help.keyboard-help { display:none; }
  body.embedded #form-area .form-heading { display:flex; flex-direction:row; align-items:center; gap:.5rem; margin:.25rem 0; padding:.25rem 0; }
  body.embedded .form-heading > .actions { padding:0; }
  body.embedded .editor-options > summary { min-height:30px; }
  body.embedded .uat-summary { padding:.35rem .6rem; margin:.25rem 0; font-size:.85rem; }
  body.embedded .ac-pages { padding:.25rem; margin:.25rem 0; }
  body.embedded .required-legend { margin:0 0 .25rem; }
}

/* ===== Round 15: catalog/editor (Z3). Filter chips, fixed-height cards, editor header band, bottom action bar. ===== */
.catalog-home-filters { grid-template-columns:minmax(0,1fr); gap:var(--space-3,.75rem); }
.catalog-home-search { max-width:36rem; }
.catalog-chips { display:flex; flex-wrap:wrap; gap:var(--space-2,.5rem); }
.catalog-chip { min-height:36px; padding:.25rem .85rem; border:1px solid hsl(var(--button-border,var(--border))); border-radius:999px; background:hsl(var(--card)); color:hsl(var(--foreground)); font:inherit; font-size:.875rem; cursor:pointer; }
.catalog-chip:hover:not(:disabled) { border-color:hsl(var(--primary)); background:hsl(var(--primary) / .06); }
.catalog-chip[aria-pressed="true"] { border-color:hsl(var(--primary)); background:hsl(var(--primary)); color:hsl(var(--primary-foreground)); font-weight:600; }
/* Round 16 (D3): the chosen chip stays filled and legible on hover (the general chip hover would pale it under white text). */
.catalog-chip[aria-pressed="true"]:hover:not(:disabled) { border-color:hsl(var(--primary-hover,var(--primary))); background:hsl(var(--primary-hover,var(--primary))); color:hsl(var(--primary-foreground)); }
/* Round 16 (U5): the links inside the catalog subtitle and the editor's quiet lines follow the common link look. */
#catalog-home-intro a, .editor-context-body a, #uat-context a { text-decoration:none; font-weight:500; }
#catalog-home-intro a:hover, #catalog-home-intro a:focus-visible, .editor-context-body a:hover, #uat-context a:hover { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
/* Round 16 (T1-U1): saved persons and saved properties list alike — full-width rows, text at the left. */
.layout-dialog.applicant-reuse-dialog .applicant-reuse-results { grid-template-columns:minmax(0,1fr); }
.layout-dialog.applicant-reuse-dialog .applicant-reuse-results > button { display:grid; grid-template-columns:minmax(0,1fr); justify-items:start; align-items:start; justify-content:stretch; text-align:left; width:100%; gap:.25rem; }
/* Round 17 (B5): step labels may take two lines on a desktop; on a phone the pills keep only the number. */
body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-page > span:not(.ac-page-number) { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; white-space:normal; overflow:hidden; text-overflow:clip; line-height:1.2; text-align:left; }
body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-page { min-height:44px; }
body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-page-number { flex:none; }
@media(max-width:600px) {
  body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-page > span:not(.ac-page-number),
  body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-page[aria-current="step"] > span:not(.ac-page-number) { display:none; }
  body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-page { width:44px; min-width:44px; padding:0; justify-content:center; border-radius:50%; }
  body:is(.form-editor-page,.ac-editor-page) .ac-pages[data-current]::after { content:attr(data-current); flex:1 1 100%; order:5; font-size:.875rem; font-weight:600; color:hsl(var(--foreground)); }
}
/* Round 16 (U11): while the question «Ștergeți completările?» is open, its own buttons are the only ones on screen. */
.form-reset:has(+ .notice:not([hidden])) { display:none; }
.catalog-chip:focus-visible, .catalog-card:focus-visible { outline:2px solid hsl(var(--primary)); outline-offset:2px; }
.catalog-home-group { margin-top:var(--space-5,1.5rem); padding-top:var(--space-4,1rem); border-top:1px solid hsl(var(--border)); }
.catalog-home-group:first-of-type { border-top:0; padding-top:0; }
.catalog-home-group h3 { margin:0 0 var(--space-3,.75rem); font-size:var(--text-card,1rem); font-weight:650; }
.catalog-home-grid { gap:var(--space-3,.75rem); }
.catalog-card { height:6.5rem; min-height:6.5rem; overflow:hidden; justify-content:flex-start; transition:border-color .12s, box-shadow .12s; }
/* Round 25 (S-17): without the code line the name has four lines. */
.catalog-card-title { display:-webkit-box; -webkit-line-clamp:4; line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.catalog-card:hover:not(:disabled) { border-color:hsl(var(--primary)); background:hsl(var(--card)); box-shadow:0 2px 8px hsl(var(--primary) / .18); }
@media(max-width:600px) { .catalog-card { min-height:64px; height:auto; max-height:7.5rem; } .catalog-chip { min-height:44px; } .catalog-home-grid { grid-template-columns:minmax(0,1fr); } }

/* Editor header: row 1 «← Toate formularele» + «Despre formular» (quiet), row 2 title, row 3 the steps as a progress band. */
body:is(.form-editor-page,.ac-editor-page) .editor-context > summary { color:hsl(var(--muted-foreground)); font-size:.8125rem; }
body:is(.form-editor-page,.ac-editor-page) .ac-pages { gap:var(--space-2,.5rem) var(--space-3,.75rem); padding:.4rem 0; border:0; border-radius:0; background:hsl(var(--card)); margin:0 0 var(--space-4,1rem); }
body:is(.form-editor-page,.ac-editor-page) .ac-pages ol { flex:1 1 18rem; min-width:0; display:flex; flex-wrap:nowrap; gap:4px; overflow:visible; padding:0; }
body:is(.form-editor-page,.ac-editor-page) .ac-pages ol li { flex:1 1 0; min-width:0; }
body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-page { width:100%; justify-content:center; min-height:40px; padding:.25rem .5rem; border-radius:6px; border:1px solid hsl(var(--border)); background:hsl(var(--muted)); color:hsl(var(--foreground)); box-shadow:none; font-size:.8125rem; }
body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-page > span:not(.ac-page-number) { overflow:hidden; text-overflow:clip; white-space:normal; overflow-wrap:break-word; line-height:1.2; text-align:left; }
/* Review 15: five long steps fit at 1024 px — every level of the band may shrink; the full title stays on hover. */
body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-page { min-width:0; max-width:100%; overflow:hidden; }
body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-page > span:not(.ac-page-number) { min-width:0; }
body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-page.visited { background:hsl(var(--primary) / .12); border-color:hsl(var(--primary) / .35); }
body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-page:is([aria-current="step"],[aria-current="true"]) { background:hsl(var(--primary)); border-color:hsl(var(--primary)); color:hsl(var(--primary-foreground)); font-weight:600; box-shadow:none; }
body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-page:is([aria-current="step"],[aria-current="true"]) .ac-page-number { background:hsl(var(--primary-foreground)); color:hsl(var(--primary)); }
body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-all-pages { margin-left:auto; min-height:32px; padding:.15rem .25rem; font-size:.8125rem; }
/* Round 18 (B5): the steps share the band by the length of their names, two lines at most; up to 1100 px the link «Arată tot formularul» goes under the band. */
@media(min-width:601px) {
  body:is(.form-editor-page,.ac-editor-page) .ac-pages ol li { flex:1 1 auto; min-width:min-content; }
  body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-page { gap:.3rem; padding:.25rem .4rem; }
}
@media(min-width:601px) and (max-width:1100px) {
  body:is(.form-editor-page,.ac-editor-page) .ac-pages ol { flex:1 1 100%; }
  body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-all-pages { flex:0 0 auto; margin-left:auto; }
}
.required-legend, .completion-help.keyboard-help { font-size:.75rem; color:hsl(var(--muted-foreground)); }
.completion-help.keyboard-help > summary { font-weight:400; color:hsl(var(--muted-foreground)); }

/* Action bar: one filled button; «Înapoi»/«Continuă» are secondary steps; «Șterge completările» is a quiet danger action. */
.form-page-nav .primary, .ac-page-nav .primary { background:hsl(var(--card)); color:hsl(var(--primary)); border:1px solid hsl(var(--button-border,var(--border))); box-shadow:none; }
.form-page-nav .primary:hover:not(:disabled), .ac-page-nav .primary:hover:not(:disabled) { background:hsl(var(--primary) / .07); }
#urban-form > .form-actions .pdf-status, #ac-form > .form-actions .pdf-status { margin:0; font-size:.75rem; color:hsl(var(--muted-foreground)); flex:1 1 12rem; }
#urban-form > .form-actions, #ac-form > .form-actions { gap:var(--space-2,.5rem) var(--space-3,.75rem); }
.form-reset { margin:var(--space-3,.75rem) 0 0; }
.form-reset .danger { min-height:36px; padding-inline:0; font-size:.875rem; }
/* Round 19 (B3): «Șterge completările» is a quiet danger link at the end of the action row. */
#urban-form > .form-actions .form-reset-link { margin-left:auto; order:9; background:none; border-color:transparent; box-shadow:none; min-height:36px; padding-inline:.25rem; font-size:.875rem; font-weight:500; }
#urban-form > .form-actions .form-reset-link:hover:not(:disabled) { background:hsl(var(--tone-problem-bg)); }
#urban-form > .form-actions .pdf-status { order:8; }
@media(max-width:600px) { #urban-form > .form-actions .form-reset-link { margin-left:0; width:100%; min-height:44px; } }
/* Round 19 (B3): the group title is the card's header; the sub-groups inside are separated by a thin line. */
#fields > .field-group { padding-top:.25rem; }
#fields > .field-group > legend { float:left; width:100%; box-sizing:border-box; margin:0 0 .85rem; padding:.7rem 0 .55rem; max-width:none; border-bottom:1px solid hsl(var(--border)); font-size:1rem; font-weight:650; }
#fields > .field-group > legend ~ * { clear:both; }
#fields .cu-subheading { margin:1.1rem 0 .6rem; padding-top:.75rem; border-top:1px solid hsl(var(--border)); font-size:.9rem; font-weight:600; color:hsl(var(--muted-foreground)); }
#fields .cu-subheading:first-child, #fields .form-grid > .cu-subheading:first-child { margin-top:0; padding-top:0; border-top:0; }
/* Round 25: right under the group's title (already underlined) the first subheading draws no second line. */
#fields legend + .cu-subheading { margin-top:.75rem; padding-top:0; border-top:0; }
/* Round 19 (B1): catalog cards with a calm category band and the code as a small badge. */
.catalog-card { border-left:3px solid hsl(var(--cat-band, 220 10% 72%)); }
.catalog-card[data-tone="0"] { --cat-band: 210 45% 62%; }
.catalog-card[data-tone="1"] { --cat-band: 150 35% 55%; }
.catalog-card[data-tone="2"] { --cat-band: 35 60% 62%; }
.catalog-card[data-tone="3"] { --cat-band: 265 35% 70%; }
.catalog-card[data-tone="4"] { --cat-band: 220 10% 72%; }
.catalog-card-meta { margin-top:auto; padding:.1rem .45rem; border-radius:999px; background:hsl(var(--tone-neutral-bg)); color:hsl(var(--tone-neutral-fg)); font-size:.72rem; font-weight:500; line-height:1.4; }
.catalog-card:hover:not(:disabled) { border-left-color:hsl(var(--primary)); }
@media(max-width:600px) {
  /* Review 15: room for the bottom bar only while a form is open, not on the catalog. */
  body.ac-editor-page .workspace, body.form-editor-page .workspace:has(#form-area:not([hidden])) { padding-bottom:calc(var(--space-6,2rem) + 4rem); }
  #urban-form > .form-actions button, #ac-form > .form-actions button { min-height:44px; }
  #fields :is(input,select,textarea), #ac-fields :is(input,select,textarea), #fields .field, #ac-fields .field { scroll-margin-bottom:7rem; }
}

/* Reuse of a person: the three actions as one quiet row of text actions. */
#fields .person-directory-actions, #ac-fields .person-directory-actions { align-items:center; gap:0 var(--space-4,1rem); }
#fields .person-directory-actions > button, #ac-fields .person-directory-actions > button { background:none; border-color:transparent; box-shadow:none; color:hsl(var(--primary)); padding-inline:0; min-height:36px; font-weight:500; }
#fields .person-directory-actions > button:hover:not(:disabled), #ac-fields .person-directory-actions > button:hover:not(:disabled) { text-decoration:underline; background:none; }
@media(max-width:600px) { #fields .person-directory-actions > button, #ac-fields .person-directory-actions > button { min-height:44px; } }

/* A programmatically focused container (tabindex=-1) shows no ring; fields and buttons keep theirs. */
body:is(.form-editor-page,.ac-editor-page,.embedded) :is(div,section,fieldset,form,main,p,h1,h2,h3,h4)[tabindex="-1"]:focus { outline:none; box-shadow:none; }
body.ac-editor-page :is(.toast-box,.toast-status:not(:empty):not(.toast-text)) { bottom:calc(6rem + var(--toast-stack-offset,0px)); }

/* D-11: in the request panel of a dossier, "Înregistrează cererea" stays the one filled button, even while a page follows ("Continuă" is then a secondary step). */
body.request-mode .workspace:has(#form-page-nav:not([hidden]) #form-page-next:not([hidden])) #register-request-btn, body.request-mode #register-request-btn { background:hsl(var(--primary)); color:hsl(var(--primary-foreground)); border-color:hsl(var(--primary)); }
body.request-mode .workspace:has(#ac-page-nav:not([hidden]) #ac-page-next:not([hidden])) #register-request-btn { background:hsl(var(--primary)); color:hsl(var(--primary-foreground)); border-color:hsl(var(--primary)); }
body.request-mode .workspace:has(#ac-page-nav:not([hidden]) #ac-page-next:not([hidden])) #ac-save { background:hsl(var(--card)); color:hsl(var(--foreground)); }

/* Round 25 (E1-V3, E1-S4): under 700 px the bar of a form is one filled button and «Mai multe ▾»; the other actions open under it. Wider, the bar stays as it was. */
.more-toggle { display:none; }
@media(max-width:699px) {
  #urban-form > .form-actions, #ac-form > .form-actions:not(.ac-page-nav) { flex-wrap:wrap; gap:.5rem; padding-block:.6rem; margin-top:.5rem; }
  #urban-form > .form-actions > :is(.primary, #register-request-btn), #ac-form > .form-actions:not(.ac-page-nav) > :is(.primary, #register-request-btn) { flex:1 1 0; min-width:0; }
  #urban-form > .form-actions > .more-toggle, #ac-form > .form-actions:not(.ac-page-nav) > .more-toggle { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; order:1; min-height:44px; padding-inline:.9rem; }
  #urban-form > .form-actions:not(:has(> :is(button:not(.primary, .more-toggle, #register-request-btn):not([hidden]), .request-date-choice))) > .more-toggle,
  #ac-form > .form-actions:not(.ac-page-nav):not(:has(> :is(button:not(.primary, .more-toggle, #register-request-btn):not([hidden]), .request-date-choice))) > .more-toggle { display:none; }
  #urban-form > .form-actions:not(.more-open):has(> .primary:not([hidden])) > :is(button:not(.primary, .more-toggle, #register-request-btn), .request-date-choice, .pdf-status, .muted:empty),
  #ac-form > .form-actions:not(.ac-page-nav):not(.more-open):has(> .primary:not([hidden])) > :is(button:not(.primary, .more-toggle, #register-request-btn), .request-date-choice, .pdf-status, .muted:empty),
  #urban-form > .form-actions:not(.more-open):not(:has(> .primary:not([hidden]))) > :is(button:not(#pdf-btn, .more-toggle), .request-date-choice, .pdf-status, .muted:empty),
  #ac-form > .form-actions:not(.ac-page-nav):not(.more-open):not(:has(> .primary:not([hidden]))) > :is(button:not(#ac-generate, .more-toggle), .request-date-choice, .pdf-status, .muted:empty) { display:none; }
  #urban-form > .form-actions:not(:has(> .primary:not([hidden]))) > #pdf-btn, #ac-form > .form-actions:not(:has(> .primary:not([hidden]))) > #ac-generate { flex:1 1 0; min-width:0; }
  #urban-form > .form-actions.more-open > button:not(.primary, .more-toggle, #register-request-btn), #ac-form > .form-actions.more-open > button:not(.primary, .more-toggle, #register-request-btn) { flex:1 1 100%; order:2; }
  #urban-form > .form-actions .muted, #ac-form > .form-actions .muted { flex:1 1 100%; order:3; font-size:.75rem; }
  #urban-form > .form-actions .muted:empty, #ac-form > .form-actions .muted:empty { display:none; }
}

/* Round 25 (F2-S05): on a narrow screen, as in the form's action bar, the other two actions of a person's rubrics open under «Mai multe»;
   a wide screen keeps the three side by side. */
.person-directory-actions > .person-actions-more { display:none; }
@media(max-width:700px) {
  .person-directory-actions.folded > .person-actions-more { display:inline-flex; align-items:center; }
  .person-directory-actions.folded:not(.open) > :is(.directory-save, .applicant-reuse-launch) { display:none; }
  #fields .person-directory-actions > .person-actions-more, #ac-fields .person-directory-actions > .person-actions-more { background:none; border-color:transparent; box-shadow:none; color:hsl(var(--primary)); padding-inline:0; min-height:44px; font-weight:500; }
}

/* Round 25 (F2-02, F2-S03): on a phone the editor spends its height on the fields. The name of the step (the section's own title says it), the title of the window on three lines and the wide pills are gone. */
#editor-panel-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:1; line-clamp:1; overflow:hidden; }
@media(max-width:600px) {
  body:is(.form-editor-page,.ac-editor-page) .ac-pages[data-current]::after { display:none; }
  body:is(.form-editor-page,.ac-editor-page) .ac-pages { gap:.25rem .5rem; padding:.35rem; margin-bottom:.5rem; }
  body:is(.form-editor-page,.ac-editor-page) .ac-pages ol { flex:1 1 auto; flex-wrap:nowrap; gap:.25rem; }
  body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-page { width:44px; min-width:44px; flex:0 0 44px; padding:0; justify-content:center; }
  body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-all-pages { margin-left:auto; }
  .required-legend { margin:0 0 .25rem; }
}
/* Round 25 (F2-S02): «Taste rapide» is a quiet line on the row of «Obligatoriu», not a band of its own; it is not offered in the dossier's window. */
body.embedded .completion-help.keyboard-help { display:none; }
.completion-help.keyboard-help { float:right; margin:0 0 .25rem; }
.completion-help.keyboard-help[open] { float:none; }
@media(max-width:600px) {
  body:is(.form-editor-page,.ac-editor-page) .ac-pages { padding:.25rem; gap:.25rem; flex-wrap:wrap; }
  body:is(.form-editor-page,.ac-editor-page) .ac-pages ol { display:flex; flex:0 1 auto; flex-wrap:wrap; max-width:100%; gap:.2rem; }
  body:is(.form-editor-page,.ac-editor-page) .ac-pages ol > li { flex:0 0 44px; width:44px; }
  body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-all-pages { font-size:.8rem; min-width:0; text-align:right; padding:0; }
}

/* Lot D (beneficiaries, item 9): the library dialog as a table. */
.layout-dialog.library-picker-dialog { width: min(980px, calc(100vw - 2rem)); }
.library-picker-dialog .library-picker-search-box { margin: 0 0 .5rem; max-width: 26rem; }
.library-history h3 { margin: 0 0 .35rem; font-size: 1rem; }
.library-history .library-picker-scroll { max-height: min(24vh, 14rem); }
.library-picker-scroll { max-height: min(52vh, 28rem); overflow: auto; border: 1px solid hsl(var(--border)); border-radius: var(--radius, .375rem); margin-bottom: .75rem; }
.library-picker-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.library-picker-table th, .library-picker-table td { text-align: left; padding: .35rem .6rem; border-bottom: 1px solid hsl(var(--border)); vertical-align: top; overflow-wrap: anywhere; }
.library-picker-table thead th { position: sticky; top: 0; background: hsl(var(--muted)); font-weight: 600; white-space: nowrap; z-index: 1; }
.library-picker-table tbody tr { cursor: pointer; }
.library-picker-table tbody tr:hover, .library-picker-table tbody tr:focus-within { background: hsl(var(--primary) / .07); }
.library-picker-table tbody tr:last-child td { border-bottom: 0; }
.library-picker-table .library-picker-title { width: 22%; }
.library-picker-table .library-picker-act { width: 5.5rem; white-space: nowrap; text-align: right; }
.library-picker-dialog .library-picker-table button { min-height: 28px; padding: 0 .75rem; white-space: nowrap; width: auto; }
.library-picker-dialog .library-add { margin-top: .25rem; }
.library-picker-form { display: grid; gap: .5rem; max-width: 42rem; }
.library-picker-form .field { margin: 0; }
.library-picker-form textarea { width: 100%; }
@media (max-width: 700px) {
  .library-picker-scroll { max-height: 46vh; }
  .library-picker-table thead { display: none; }
  .library-picker-table, .library-picker-table tbody, .library-picker-table tr, .library-picker-table td { display: block; width: auto; }
  .library-picker-table tr { padding: .4rem .6rem; border-bottom: 1px solid hsl(var(--border)); }
  .library-picker-table td { padding: .15rem 0; border: 0; }
  .library-picker-table .library-picker-title { width: auto; }
  .library-picker-table td[data-label]:not(.library-picker-title)::before { content: attr(data-label) ': '; font-weight: 600; }
  .library-picker-table .library-picker-act { text-align: left; padding-top: .3rem; }
  .library-picker-dialog .library-picker-table button { min-height: 40px; }
}

/* Runda 3: anexa tehnică AC — toate problemele odată, «Nu se aplică» în bloc. */
.ac-na-rest-row { display:flex; justify-content:flex-end; margin:.75rem 0 0; }
.ac-na-rest-row[hidden] { display:none; }
/* Runda 6: the library window closes from its bar; an empty row of actions under the list is not drawn. */
.library-picker-dialog > .form-actions:empty { display:none; }

/* Runda 9.11 (colegul care a testat): the bar of the form's buttons stays at the bottom of the screen on every page, also on a page
   shorter than the screen (it stood at the end of the short page and seemed to move from one page to the next): the form fills the
   screen, the bar is pushed to its bottom and the card ends flush with the screen, where the sticky bar already stands. */
.form-editor-page .layout:has(#form-area:not([hidden])), .ac-editor-page .layout { padding-bottom:0; }
.form-editor-page .workspace:has(#form-area:not([hidden])), .ac-editor-page .workspace { display:flex; flex-direction:column; min-height:calc(100vh - 1rem - 1px); padding-bottom:0; border-bottom-width:0; border-bottom-left-radius:0; border-bottom-right-radius:0; }
#form-area:not([hidden]), #ac-form { display:flex; flex-direction:column; flex:1 1 auto; min-width:0; }
#urban-form { display:flex; flex-direction:column; flex:1 1 auto; min-width:0; }
#urban-form > .form-actions, #ac-form > .form-actions:not(.ac-page-nav) { margin-top:auto; }
@media(max-width:600px) { body.ac-editor-page .workspace, body.form-editor-page .workspace:has(#form-area:not([hidden])) { padding-bottom:0; } }
/* In the window of the dossier the page has no margin around the card: the card fills the whole frame. */
body.embedded .workspace:has(#form-area:not([hidden])), body.embedded.ac-editor-page .workspace { min-height:100vh; }
/* The forms are columns now, where the margins of neighbours no longer merge: the gap under the bar of pages stays what it was. */
#form-pages, #ac-pages { margin-bottom:0; }
/* The link «Arată tot formularul» / «Arată pe pagini» keeps the width of the longer words, so on a phone it does not jump to another row when it changes. */
body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-all-pages { min-width:11em; text-align:right; }
/* Runda 9.11 (verificare): the steps share the band by the length of their names; the step in view was wider for its bold name and
   pushed the others a few pixels aside at every change. All the names have the same weight now, so each step keeps its place. */
body:is(.form-editor-page,.ac-editor-page) .ac-pages .ac-page { font-weight:600; }
/* Runda 9.11 (verificare, aceleași cuvinte și aceleași butoane pe toate cererile): «Șterge completările» in the AC request is the same
   quiet link at the end of the row as on every other form (round 19, B3, had reached only #urban-form). */
#ac-form > .form-actions .form-reset-link { margin-left:auto; order:9; background:none; border-color:transparent; box-shadow:none; min-height:36px; padding-inline:.25rem; font-size:.875rem; font-weight:500; }
#ac-form > .form-actions .form-reset-link:hover:not(:disabled) { background:hsl(var(--tone-problem-bg)); }
#ac-form > .form-actions .pdf-status { order:8; }
@media(max-width:600px) { #ac-form > .form-actions .form-reset-link { margin-left:0; width:100%; min-height:44px; } }
/* Runda 9.11 (verificare): the link «Datele UAT» in the message about the header looks the same in the AC request. */
#ac-uat-context a { text-decoration:none; font-weight:500; }
#ac-uat-context a:hover, #ac-uat-context a:focus-visible { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }

/* ===== Runda 9.11 (formulare-ac): compact rows of the permits, notifications and opinions. ===== */
/* Used by: F_AM_01 and F_AR_01 (the rows of the technical verification), F_A_05, F_A_06, F_06, F_AM_02, F_AR_02, F_A_04 and the contravention reports (the
   signatories: a title, a name and a signature on one row), F_01 (the team of the cartouche), F_A_03 («Avize și referințe»: one aviz is two lines). */
@media (min-width:900px) {
  body.form-editor-page #fields .cu-rule-row.cu-rule-inline { padding:.15rem 0 0; }
  body.form-editor-page #fields .cu-rule-inline > .cu-rule-grid { grid-template-columns:minmax(9rem,12rem) minmax(0,3fr) minmax(0,2fr); align-items:end; gap:.35rem .75rem; }
  body.form-editor-page #fields .cu-rule-inline .cu-rule-title { margin:0; padding-bottom:.6rem; font-size:.9rem; font-weight:600; line-height:1.25; }
  body.form-editor-page #fields .cu-part-inline { display:grid; grid-template-columns:minmax(9rem,12rem) minmax(0,1fr); column-gap:.75rem; align-items:end; margin-top:.3rem; padding-top:.4rem; border-top:1px solid hsl(var(--border)); }
  body.form-editor-page #fields > fieldset > legend + .cu-part-inline { margin-top:0; padding-top:0; border-top:0; }
  body.form-editor-page #fields .cu-part-inline > .cu-subheading { margin:0; padding:0 0 .6rem; border:0; font-size:.9rem; font-weight:600; color:hsl(var(--foreground)); }
  /* F_A_03: the name, the institution and the classification on the first line; the request, the clarification, the term and «Nu există clarificare» on the second. */
  body.form-editor-page #fields [data-agreement-row] { padding:.35rem 0 .15rem; }
  body.form-editor-page #fields [data-agreement-row] > .cu-grid { grid-template-columns:repeat(12,minmax(0,1fr)); gap:.4rem .75rem; align-items:end; }
  body.form-editor-page #fields [data-agreement-row] > .cu-grid > :nth-child(-n+3) { grid-column:span 4; }
  body.form-editor-page #fields [data-agreement-row] > .cu-grid > :nth-child(4), body.form-editor-page #fields [data-agreement-row] > .cu-grid > :nth-child(5) { grid-column:span 4; }
  body.form-editor-page #fields [data-agreement-row] > .cu-grid > :nth-child(6), body.form-editor-page #fields [data-agreement-row] > .cu-grid > :nth-child(7) { grid-column:span 2; }
  /* the number and the date stand under the name of their reference; their own labels stay for a screen reader */
  body.form-editor-page #fields [data-agreement-row] .cu-choice-group > .cu-grid > .field > label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  body.form-editor-page #fields [data-agreement-row] .cu-choice-group > .cu-ref-title { margin:0 0 .25rem; font-size:.9rem; font-weight:600; }
  body.form-editor-page #fields [data-agreement-row] .cu-choice-group > .cu-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.form-editor-page #fields [data-agreement-row] .cu-choice-group > .cu-grid > .field { grid-column:auto; }
}
@media (max-width:899px) { body.form-editor-page #fields [data-agreement-row] .cu-choice-group > .cu-ref-title { margin:0 0 .25rem; font-size:.9rem; font-weight:600; } }
@media (min-width:900px) {
  /* the same columns on every row of signatories */
  body.form-editor-page #fields .cu-part-inline > .cu-grid:has(> .field > [id$="signature" i]) { grid-template-columns:minmax(0,3fr) minmax(0,1fr); }
  body.form-editor-page #fields .cu-part-inline > .cu-grid:has(> .field > [id$="signature" i]) > .field { grid-column:auto; }
  body.form-editor-page #fields .cu-part-inline { grid-template-columns:minmax(9rem,14rem) minmax(0,1fr); }
  body.form-editor-page #fields .cu-part-inline > .cu-grid { align-items:end; }
  /* a group alone under a heading that already names it does not say its title again */
  body.form-editor-page #fields .cu-choice-group.cu-title-named-above > legend { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
}

/* F_A_05 and F_A_06: the recipient and the requesting institution share one frame and one title; the names of the two parts are not drawn again. */
body.form-editor-page #fields > fieldset.cu-merged-section > .cu-subheading { display:none; }
/* On a phone the rows are stacked: the heads that the wide screen says once are said by every rubric (verification rows, signatories, the team). */
@media (max-width:899px) {
  body.form-editor-page #fields .cu-rule-inline .field > label.visually-hidden, body.form-editor-page #fields .cu-part-inline .field > label.visually-hidden { position:static; width:auto; height:auto; overflow:visible; clip-path:none; white-space:normal; }
}
/* Runda 22.11: the line under a rubric of one column (the series, the number) has no dot: it would take a line of its own in the narrow column. */
.field-error.field-error-narrow::before { display:none; }
