@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("/assets/fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #142f4a;
  --brand-deep: #0b1c2e;
  --brand-soft: #1e4568;
  --accent: #c9893a;
  --accent-hover: #b5772c;
  --surface: #f7f5f1;
  --ink: #1a1f26;
  --ink-muted: #5c6570;
  --line: #e4e0d8;
  --white: #ffffff;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--surface);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(30, 69, 104, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(201, 137, 58, 0.06), transparent);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
}

img {
  max-width: 100%;
}

.dossier-top {
  background: linear-gradient(160deg, #0b1c2e 0%, #142f4a 45%, #1e4568 100%);
  color: var(--white);
  padding: 2.5rem 1.25rem 3.5rem;
}

.dossier-wrap {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
}

.dossier-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.dossier-logo img {
  display: block;
  height: 3rem;
  width: auto;
}

@media (min-width: 768px) {
  .dossier-logo img {
    height: 3.5rem;
  }
}

.dossier-brand {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.dossier-client {
  margin: 1.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.dossier-headline {
  margin: 0.85rem auto 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
}

.dossier-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}

.dossier-main {
  width: min(720px, 100%);
  margin: -1.75rem auto 0;
  padding: 0 1.25rem 4rem;
}

.dossier-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 40px -24px rgba(11, 28, 46, 0.35);
}

@media (min-width: 640px) {
  .dossier-panel {
    padding: 2rem 2rem;
  }
}

.dossier-panel h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.01em;
}

.dossier-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dossier-panel li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.35rem;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}

.dossier-panel li:last-child {
  border-bottom: 0;
}

.dossier-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
}

.dossier-panel > h2 {
  text-align: center;
}

.dossier-panel--price {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 137, 58, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.95) 0%, #ffffff 55%),
    var(--white);
  box-shadow:
    0 0 0 1px rgba(20, 47, 74, 0.04),
    0 18px 40px -22px rgba(11, 28, 46, 0.35);
  padding-top: 1.85rem;
  padding-bottom: 1.85rem;
}

.dossier-panel--price::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-soft) 100%);
}

.dossier-panel--price::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 42%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 236, 204, 0.15) 20%,
    rgba(255, 214, 150, 0.95) 50%,
    rgba(201, 137, 58, 1) 58%,
    rgba(255, 236, 204, 0.2) 75%,
    transparent 100%
  );
  filter: blur(0.2px);
  animation: price-sheen 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes price-sheen {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(280%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dossier-panel--price::after {
    animation: none;
    left: 30%;
    opacity: 0.7;
  }
}

.price-total-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(201, 137, 58, 0.28);
}

.price-total-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
}

.price-total-right {
  text-align: center;
  margin-left: 0;
  width: 100%;
}

.price-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.03em;
  line-height: 1.05;
  white-space: nowrap;
}

.price-legal {
  margin: 0.45rem auto 0;
  font-size: clamp(0.62rem, 2.7vw, 0.78rem);
  line-height: 1.35;
  color: var(--ink-muted);
  white-space: nowrap;
}

.price-schedule {
  padding-top: 1.25rem;
  text-align: center;
}

.price-schedule-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
}

.price-schedule-list {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 28rem;
  text-align: center;
}

.price-schedule-list li {
  position: static;
  padding: 0.35rem 0;
  border: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.price-schedule-list li::before {
  display: none;
}

.price-schedule-list strong {
  color: var(--ink);
  font-weight: 700;
}

.price-deadline {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.price-note {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.milestones {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .milestones {
    grid-template-columns: 1fr 1fr;
  }
}

.milestone {
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  background: var(--surface);
}

.milestone-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.milestone h3 {
  margin: 0.35rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brand);
}

.milestone p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.375rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid rgba(20, 47, 74, 0.2);
}

.btn-ghost:hover {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

.btn-download {
  font-weight: 500;
  opacity: 0.92;
}

input[type="file"] {
  width: 100%;
  border: 1px dashed var(--line);
  background: var(--surface);
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.status-banner {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.status-banner h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  color: #067647;
}

.status-banner.is-error h2 {
  color: #b42318;
}

.status-banner p {
  margin: 0;
  color: var(--ink-muted);
}

.dossier-footer {
  text-align: center;
  padding: 0 1.25rem 3rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.dossier-footer p {
  margin: 0.2rem 0;
}

.dossier-footer a {
  color: var(--brand);
}

/* Accept panel */
.accept-panel[hidden],
.success-panel[hidden] {
  display: none !important;
}

.accept-panel {
  border-top: 1px solid var(--line);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 137, 58, 0.25);
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.checkbox-row input {
  width: auto;
  margin-top: 0.25rem;
}

.form-status {
  min-height: 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-align: center;
}

.form-status.is-error {
  color: #b42318;
}

.form-status.is-ok {
  color: #067647;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.error-card {
  width: min(480px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem 1.5rem;
  text-align: center;
}

.error-card-logo {
  display: block;
  width: auto;
  height: 48px;
  margin: 0 auto 1.25rem;
}

.error-card h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  color: var(--brand);
  font-size: 1.5rem;
}

.error-card p {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
}

/* Admin */
.admin-body {
  padding: 2rem 1.25rem 4rem;
}

.admin-shell {
  width: min(920px, 100%);
  margin: 0 auto;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.admin-header-logo {
  display: block;
  width: auto;
  height: 40px;
  margin-bottom: 0.5rem;
}

.admin-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brand);
}

.admin-body--login .admin-header {
  justify-content: center;
  text-align: center;
}

.admin-body--login .admin-header-logo {
  margin-left: auto;
  margin-right: auto;
}

.admin-card--login {
  max-width: 420px;
  margin: 2rem auto 0;
  text-align: center;
}

.admin-login-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
  justify-items: stretch;
  text-align: center;
}

.admin-login-form label {
  text-align: center;
}

.admin-login-form .btn {
  margin-top: 0.35rem;
  justify-self: center;
}

.admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.admin-card h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brand);
}

.table-wrap {
  overflow-x: auto;
}

.dossier-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dossier-row {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dossier-row:hover {
  border-color: rgba(201, 137, 58, 0.45);
  box-shadow: 0 10px 28px -22px rgba(11, 28, 46, 0.35);
}

.dossier-row-main {
  display: grid;
  gap: 0.35rem 1rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.dossier-row-main:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.dossier-row-client {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.dossier-row-client strong {
  font-family: var(--font-display);
  color: var(--brand);
  font-size: 1rem;
}

.dossier-row-client .muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dossier-row-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dossier-row-status {
  min-width: 0;
}

.dossier-row-status .badge {
  margin-bottom: 0.15rem;
}

.dossier-row-status .dossier-meta-line {
  font-size: 0.72rem;
  line-height: 1.3;
}

.dossier-meta-line {
  margin-top: 0.2rem;
}

.dossier-meta-error {
  color: #b42318;
}

.dossier-list-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dossier-list-head h2 {
  margin: 0;
}

.dossier-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.dossier-tab {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.dossier-tab.is-active {
  background: var(--white);
  color: var(--brand);
  box-shadow: 0 1px 0 rgba(11, 28, 46, 0.06);
}

.dossier-link-closed-flag {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b42318;
}

.dossier-row-side {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.dossier-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dossier-row-actions--modal {
  margin-top: 0.25rem;
}

.dossier-inline-form {
  margin: 0;
  display: inline;
}

.btn-danger {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

.btn-danger:hover {
  background: #fee4e2;
}

.dossier-row-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
}

.dossier-row-link input {
  min-width: 0;
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dossier-copy-btn {
  padding: 0.55rem 0.9rem;
  white-space: nowrap;
}

@media (min-width: 960px) {
  .dossier-row {
    grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 1.1fr);
  }

  .dossier-row-main {
    grid-template-columns: minmax(0, 1.2fr) auto minmax(7.5rem, auto);
    align-items: center;
  }
}

@media (max-width: 959px) {
  .dossier-row-main {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .dossier-row-status {
    grid-column: 1 / -1;
  }

  .dossier-row-link {
    grid-template-columns: 1fr;
  }

  .dossier-row-actions .btn,
  .dossier-copy-btn {
    width: 100%;
  }

  .dossier-row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.dossier-status-block {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.dossier-status-current {
  margin: 0.35rem 0 1rem;
}

.dossier-timeline {
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .dossier-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .dossier-timeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.dossier-timeline-item {
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 100%;
}

.dossier-timeline-item.is-active {
  border-color: rgba(201, 137, 58, 0.55);
  box-shadow: inset 0 0 0 1px rgba(201, 137, 58, 0.25);
}

.dossier-timeline-item.is-pending {
  opacity: 0.55;
}

.dossier-timeline-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.dossier-timeline-time {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.dossier-form-mirror {
  display: grid;
  gap: 0.55rem;
}

.dossier-form-mirror-row {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

@media (min-width: 640px) {
  .dossier-form-mirror-row {
    grid-template-columns: minmax(10rem, 0.9fr) minmax(0, 1.4fr);
    align-items: baseline;
    gap: 0.75rem;
  }
}

.dossier-form-mirror-row strong {
  font-family: var(--font-display);
  color: var(--brand);
  font-weight: 600;
  word-break: break-word;
}

body.modal-open {
  overflow: hidden;
}

.dossier-modal[hidden] {
  display: none !important;
}

.dossier-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.dossier-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 46, 0.55);
}

.dossier-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -28px rgba(11, 28, 46, 0.55);
  padding: 1.35rem 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  .dossier-modal-panel {
    padding: 1.6rem 1.6rem 1.75rem;
  }
}

.dossier-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.dossier-modal-head h3 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brand);
}

.dossier-modal-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .dossier-modal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dossier-detail {
  padding: 0.75rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.dossier-detail-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.dossier-detail strong {
  font-family: var(--font-display);
  color: var(--brand);
  font-weight: 700;
}

.dossier-meta-line {
  margin-top: 0.35rem;
}

.dossier-modal-section {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.dossier-modal-section h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--brand);
}

.dossier-pdf-form {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .dossier-pdf-form {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.dossier-row-link--modal {
  margin-top: 0.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-sent {
  background: #eef2f6;
  color: var(--brand);
}

.badge-viewed {
  background: #fff4e5;
  color: #9a5b00;
}

.badge-form-opened {
  background: #eef4ff;
  color: #1d4ed8;
}

.badge-accepted {
  background: #e8f8ef;
  color: #067647;
}

.badge-error {
  background: #fef3f2;
  color: #b42318;
}

.badge-closed {
  background: #f2f2f2;
  color: #667085;
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.flash {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: #e8f8ef;
  color: #067647;
  margin-bottom: 1rem;
}

.flash-error {
  background: #fef3f2;
  color: #b42318;
}

.milestone-fields {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

@media (min-width: 640px) {
  .milestone-fields {
    grid-template-columns: 1fr 2fr;
  }
}

.muted {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.req {
  color: #c62828;
  font-weight: 700;
}

.required-note {
  margin: 0 0 1.1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.field-hint {
  font-weight: 500;
  color: var(--ink-muted);
  font-size: 0.85em;
}


.form-section {
  border: 0;
  margin: 0 0 1.35rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.form-section legend {
  padding: 0;
  margin: 0 0 0.85rem;
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand);
}

.form-section--party {
  text-align: center;
}

.party-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.party-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
}

.party-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(201, 137, 58, 0.08);
  color: var(--brand);
}

.party-option input {
  width: auto;
  margin: 0;
}

.conditional-block[hidden] {
  display: none !important;
}

/* ——— Admin shell harmonization (Brevo-style) ——— */
.app-body .dossier-list {
  gap: 0;
  border: 0;
}

.app-body .dossier-row {
  border: 0;
  border-bottom: 1px solid #e8ecf1;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  padding: 0.75rem 1rem;
}

.app-body .dossier-row:last-of-type {
  border-bottom: 0;
}

.app-body .dossier-row:hover {
  border-color: #e8ecf1;
  box-shadow: none;
  background: #fafbfc;
}

.app-body .dossier-row-link input {
  border: 1px solid #e8ecf1;
  border-radius: 6px;
  font-size: 0.78rem;
  padding: 0.4rem 0.55rem;
}

.app-body .dossier-modal {
  z-index: 100;
}

.app-body .dossier-modal-panel {
  border-radius: 8px;
  border-color: #e8ecf1;
  box-shadow: 0 16px 48px -24px rgba(16, 24, 40, 0.18);
}

.app-body .dossier-modal-head h3 {
  color: #1a1f36;
  font-size: 1.15rem;
}

.app-body .dossier-detail {
  border-radius: 6px;
  border-color: #e8ecf1;
  background: #fafbfc;
}

.app-body .dossier-detail strong {
  color: #1a1f36;
}

.app-body .dossier-modal-section h4 {
  color: #1a1f36;
  font-size: 0.9rem;
}

.app-body .dossier-row-main:focus-visible {
  outline-color: #c9893a;
}

/* Cookie banner — dossier / PHP oldalak */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 200;
  border-top: 1px solid #e8ecf1;
  background: rgba(255, 255, 255, 0.97);
  padding: 1rem 1.25rem;
  box-shadow: 0 -8px 40px rgba(11, 28, 46, 0.12);
}
.cookie-banner.hidden { display: none; }
.cookie-banner-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cookie-banner h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #142f4a;
  margin: 0 0 0.35rem;
}
.cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: #4a5568;
  max-width: 42rem;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11, 28, 46, 0.6);
  padding: 1rem;
}
.cookie-modal.flex { display: flex; }
.cookie-modal.hidden { display: none; }
.cookie-modal-card {
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 16px 48px rgba(11, 28, 46, 0.2);
}
.cookie-modal-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #142f4a;
  margin: 0 0 1rem;
}
.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #4a5568;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
