:root {
  --paper:#f6f4ef;
  --ink:#222a29;
  --muted:#6b7470;
  --green:#244b40;
  --line:#dedfd7;
  --accent:#bd8b48;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Arial,Helvetica,sans-serif;
  font-size:16px;
  line-height:1.6;
}
a {
  color:inherit;
  text-decoration:none;
}
button,input,textarea {
  font:inherit;
}
button,a,input,textarea {
  touch-action:manipulation;
}
button {
  cursor:pointer;
}
a:focus-visible,button:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:4px;
}
.header {
  min-height:106px;
  padding:22px 5vw;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#fcfbf8;
}
.brand {
  display:flex;
  align-items:center;
  gap:22px;
  font-size:18px;
  font-weight:700;
  letter-spacing:3px;
}
.brand img {
  width:54px;
  height:78px;
  object-fit:contain;
}
.brand>span {
  border-left:1px solid var(--line);
  padding-left:22px;
}
.brand-sub {
  display:block;
  font-size:10px;
  font-weight:400;
  letter-spacing:1px;
  color:var(--muted);
}
.account {
  display:flex;
  align-items:center;
  gap:22px;
  font-size:14px;
}
.quiet {
  background:none;
  border:0;
  padding:10px;
  color:var(--muted);
}
main {
  max-width:1180px;
  margin:0 auto;
  padding:55px 30px 75px;
  min-height:calc(100vh - 180px);
}
footer {
  border-top:1px solid var(--line);
  padding:22px 5vw;
  font-size:10px;
  letter-spacing:2px;
  display:flex;
  justify-content:space-between;
  color:var(--muted);
}
footer span {
  letter-spacing:0;
  font-size:12px;
}
.login-grid {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:100px;
  align-items:center;
  min-height:570px;
}
.eyebrow {
  font-size:11px;
  letter-spacing:2px;
  font-weight:700;
  color:var(--green);
  text-transform:uppercase;
}
h1,h2,h3,p {
  margin-top:0;
}
h1 {
  font-family:Georgia,serif;
  font-size:42px;
  line-height:1.16;
  font-weight:400;
  margin:14px 0 16px;
  letter-spacing:-1px;
}
h2 {
  font-size:21px;
  font-weight:500;
  margin-bottom:16px;
}
h3 {
  font-family:Georgia,serif;
  font-weight:400;
  font-size:26px;
}
.intro h1 {
  font-size:56px;
  max-width:500px;
}
.intro p {
  max-width:390px;
  color:var(--muted);
}
.intro-note {
  margin-top:45px;
  padding-left:20px;
  border-left:2px solid var(--accent);
  font-family:Georgia,serif;
  font-size:21px;
  line-height:1.7;
}
.card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
}
.login-card {
  padding:42px;
}
.login-card h2 {
  font-family:Georgia,serif;
  font-size:30px;
  margin:14px 0 8px;
}
.muted {
  color:var(--muted);
}
.small {
  font-size:13px;
}
.login-card .small {
  margin:25px 0 0;
}
label {
  display:block;
  font-size:13px;
  font-weight:600;
  margin:20px 0 7px;
}
input,textarea {
  width:100%;
  border:1px solid #cdd3cd;
  border-radius:7px;
  padding:13px 14px;
  background:#fff;
  color:var(--ink);
}
input:focus,textarea:focus {
  outline:2px solid #7d9b8c;
  outline-offset:2px;
}
.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:25px;
  border:1px solid var(--green);
  background:var(--green);
  color:#fff;
  padding:13px 23px;
  border-radius:7px;
  font-size:14px;
  font-weight:600;
  min-height:49px;
}
.button:hover {
  background:#163b30;
}
.full {
  width:100%;
  margin-top:27px;
  justify-content:space-between;
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:22px;
  margin-bottom:34px;
}
.page-heading p {
  margin-bottom:0;
}
.summary {
  display:flex;
  align-items:center;
  gap:15px;
  margin-bottom:28px;
}
.summary strong {
  font-family:Georgia,serif;
  font-size:38px;
  font-weight:400;
}
.summary>span:not(.pill) {
  color:var(--muted);
  font-size:14px;
}
.summary .pill {
  margin-left:auto;
}
.pill {
  display:inline-block;
  white-space:nowrap;
  background:#edf1e9;
  color:#476044;
  font-size:11px;
  padding:5px 12px;
  border-radius:30px;
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:24px 28px;
  border-bottom:1px solid var(--line);
}
.section-heading h2 {
  margin:0;
}
.empty {
  text-align:center;
  padding:55px 25px 65px;
}
.empty-symbol {
  display:block;
  font-size:38px;
  color:var(--accent);
  margin-bottom:18px;
}
.empty h3 {
  margin-bottom:10px;
}
.text-link {
  font-size:14px;
  color:var(--green);
  border-bottom:1px solid var(--green);
  padding-bottom:5px;
}
.dossier-row {
  display:flex;
  gap:22px;
  align-items:center;
  padding:21px 28px;
  border-bottom:1px solid var(--line);
}
.dossier-row:hover {
  background:#f8f9f5;
}
.initial {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  background:#f0eee7;
  border-radius:50%;
  font-family:Georgia,serif;
}
.dossier-name {
  flex:1;
  min-width:0;
  overflow-wrap:anywhere;
}
.dossier-name>span {
  display:block;
}
.date {
  font-size:13px;
  color:var(--muted);
}
.dossier-list {
  margin-bottom:20px;
}
.back {
  font-size:13px;
  color:var(--muted);
  display:inline-block;
  margin-bottom:25px;
}
.form-card {
  max-width:850px;
  padding:32px 38px;
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:25px;
}
.form-actions {
  display:flex;
  justify-content:flex-end;
  gap:20px;
  border-top:1px solid var(--line);
  padding-top:25px;
  margin-top:25px;
}
.notice {
  background:#f5f2e9;
  border-left:3px solid var(--accent);
  padding:18px;
  font-size:14px;
}
.success,.errors {
  padding:16px 22px;
  margin-bottom:25px;
  border-radius:7px;
}
.success {
  background:#e4eee3;
}
.errors {
  background:#f9e9e5;
}
.errors ul {
  margin:8px 0 0;
}
dt {
  font-size:12px;
  color:var(--muted);
  margin-top:24px;
}
dd {
  margin:5px 0 25px;
  overflow-wrap:anywhere;
}
.preserve {
  white-space:pre-wrap;
}
.pagination {
  display:flex;
  justify-content:space-between;
  padding:20px;
  gap:15px;
  font-size:14px;
}
@media(max-width:850px) {
  .login-grid {
    gap:35px;
  }
  .intro h1 {
    font-size:43px;
  }
  .login-card {
    padding:28px;
  }
  .brand img {
    width:48px;
  }
  .account {
    gap:8px;
  }
}
@media(max-width:620px) {
  main {
    padding:30px 20px 50px;
  }
  .header {
    padding:16px 20px;
    min-height:85px;
  }
  .brand {
    gap:12px;
    font-size:14px;
  }
  .brand>span {
    padding-left:12px;
  }
  .brand img {
    width:40px;
    height:58px;
  }
  .brand-sub {
    font-size:8px;
  }
  .account>span {
    display:none;
  }
  .login-grid {
    grid-template-columns:1fr;
    min-height:0;
    gap:25px;
  }
  .intro h1 {
    font-size:38px;
  }
  .intro-note {
    display:none;
  }
  .intro p {
    margin-bottom:0;
  }
  .page-heading {
    align-items:flex-start;
    flex-direction:column;
  }
  h1 {
    font-size:34px;
  }
  .form-card {
    padding:22px;
  }
  .form-grid {
    grid-template-columns:1fr;
    gap:0;
  }
  .dossier-row {
    padding:17px;
    gap:12px;
  }
  .dossier-row .date {
    display:none;
  }
  .section-heading {
    padding:20px;
    gap:12px;
  }
  .section-heading .small {
    display:none;
  }
  .form-actions {
    flex-wrap:wrap;
  }
  footer span {
    display:none;
  }
  .summary {
    gap:10px;
  }
  .summary .pill {
    font-size:10px;
  }
  .login-card {
    padding:25px;
  }
}
.client-wrap { max-width: 850px; margin: auto; }
.client-card { margin-top: 25px; }
.choice { display:flex; gap:14px; align-items:flex-start; padding:12px; border:1px solid var(--line); border-radius:7px; font-weight:400; cursor:pointer; }
.choice input { width:22px; height:22px; flex-shrink:0; margin:2px 0; accent-color:var(--green); }
fieldset { border:0; padding:0; margin:30px 0; min-width:0; }
legend { font-size:18px; font-weight:600; margin-bottom:10px; }
#signature-pad { display:block; width:100%; height:auto; aspect-ratio:10/3; background:#fff; border:2px dashed #9aaca0; border-radius:8px; touch-action:none; }
.signature-heading { border:0; padding:0; }
.signature-heading label { margin:0; }
.completion { max-width:750px; text-align:center; padding:60px 30px; margin:50px auto; }
.completion .button { margin-top:25px; }
button:disabled { opacity:.65; cursor:wait; }
[hidden] { display:none !important; }
.language-switch { display:flex; flex-wrap:wrap; gap:2px; justify-content:center; }
.language-switch .quiet { font-size:12px; padding:8px; }
.language-switch [aria-pressed="true"] { color:var(--green); text-decoration:underline; font-weight:bold; }
.language-options { max-width:340px; margin:30px auto; }
.language-options .full { margin:12px 0; }
@media(max-width:900px) { .header { flex-wrap:wrap; gap:15px; } .language-switch { flex-basis:100%; } }

.client-wrap > .back { display:block; }
.signature-pad { display:block; width:100%; height:auto; aspect-ratio:10/3; background:#fff; border:2px dashed #9aaca0; border-radius:8px; touch-action:none; }
select { width:100%; padding:13px; border:1px solid var(--line); border-radius:7px; font:inherit; background:white; }
.guardian-section { margin-top:35px; border-top:1px solid var(--line); padding-top:25px; }

.unlock-card { max-width:560px; margin:25px auto; }
