:root{font-family:var(--brand-font-family,Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif);color:#18212b;background:#fff;font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}body{margin:0;min-height:100vh;display:flex;flex-direction:column}.site-header{height:76px;padding:0 clamp(20px,6vw,88px);display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #e6e9ed}.brand{color:var(--brand-primary);font-size:1.15rem;font-weight:800;letter-spacing:.015em;text-decoration:none}.brand img{display:block;max-height:50px;max-width:250px;object-fit:contain}.brand-mark{border-left:4px solid var(--brand-accent);padding-left:12px}.support-link{color:#536171;font-size:.9rem;text-decoration:none}.support-link:hover{text-decoration:underline}.page-shell{width:min(100% - 32px,520px);margin:clamp(36px,8vh,76px) auto;flex:1}.auth-card{background:#fff;border:1px solid #e1e6eb;border-radius:12px;padding:clamp(24px,5vw,40px);box-shadow:0 8px 24px #16263808}.auth-card h1{margin:0 0 8px;font-size:1.75rem;line-height:1.2}.auth-intro{margin:0 0 28px;color:#647181;line-height:1.55}.field{margin:0 0 18px}.field label{display:block;font-size:.9rem;font-weight:650;margin-bottom:7px}.field input{width:100%;min-height:46px;border:1px solid #cbd3dc;border-radius:8px;padding:10px 12px;font:inherit;color:inherit}.field input:focus{outline:3px solid color-mix(in srgb,var(--brand-primary),transparent 83%);border-color:var(--brand-primary)}.button{width:100%;min-height:48px;border:0;border-radius:8px;padding:12px 16px;background:var(--brand-primary);color:#fff;font:inherit;font-weight:700;cursor:pointer}.button:hover{filter:brightness(.92)}.button.secondary{background:#fff;border:1px solid #cbd3dc;color:#273444}.auth-links{display:flex;justify-content:space-between;gap:12px;margin-top:20px;font-size:.92rem}.auth-links a,.text-link{color:var(--brand-primary);font-weight:600}.validation-summary-errors,.field-validation-error,.status-error{color:#a42b26}.validation-summary-errors{margin:0 0 18px}.validation-summary-errors ul{padding-left:20px}.status-ok{padding:14px 16px;border-radius:12px;background:#edf7f0;color:#245d35}.site-footer{text-align:center;padding:24px;color:#778392;font-size:.8rem}.logout-actions{display:flex;gap:12px}.logout-actions>*{flex:1}.provider-list{display:grid;gap:10px;margin-top:18px}.small-note{font-size:.82rem;color:#647181;line-height:1.5}@media(max-width:480px){.site-header{height:64px;padding:0 18px}.auth-links{flex-direction:column}}
.culture-switch{display:flex;gap:10px;margin-left:auto;padding-left:18px}.culture-switch a{color:#536171;font-size:.8rem;font-weight:650;text-decoration:none}.culture-switch a[aria-current=page]{color:var(--brand-primary);text-decoration:underline}.support-link{margin-left:18px}@media(max-width:480px){.culture-switch{gap:7px;padding-left:8px}.support-link{margin-left:8px}}
.login-cancel{margin-top:10px}
.admin-link{margin-left:18px;color:var(--brand-primary);font-size:.88rem;font-weight:700;text-decoration:none;white-space:nowrap}.admin-link:hover{text-decoration:underline}
.site-header{height:auto;min-height:76px;flex-wrap:wrap;row-gap:10px;padding-block:12px}
.header-logout{margin:0;flex-shrink:0}.header-logout button{padding:0;border:0;background:none;font-family:inherit;cursor:pointer}.header-logout button:focus-visible{outline:3px solid var(--brand-primary);outline-offset:3px}
@media(max-width:480px){.site-header{min-height:64px}}
.page-shell-admin{width:min(100% - 40px,1440px);margin:clamp(28px,5vh,56px) auto}
.admin-page{--admin-blue:var(--brand-primary,#174a7e);--admin-yellow:var(--brand-accent,#f4c400);color:#263342}.admin-page h1{margin:0;font-size:clamp(1.7rem,3vw,2.35rem);line-height:1.16}.admin-page h2{margin:0 0 20px;font-size:1.15rem}.admin-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}.admin-eyebrow{margin:0 0 7px;color:var(--admin-blue);font-size:.76rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.admin-intro{margin:10px 0 0;color:#647181;line-height:1.5}.admin-count{padding:8px 13px;border-radius:999px;background:#fff;border:1px solid #e1e6eb;color:#4c5968;font-size:.86rem;font-weight:650;white-space:nowrap}
.admin-filter{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr)) auto;align-items:end;gap:14px;margin-bottom:22px;padding:18px;background:#fff;border:1px solid #e1e6eb;border-radius:12px;box-shadow:0 8px 24px #16263808}.admin-filter-field{display:grid;gap:6px;color:#455365;font-size:.81rem;font-weight:700}.admin-filter-field input,.admin-filter-field select{width:100%;min-height:42px;padding:8px 10px;border:1px solid #cbd3dc;border-radius:7px;background:#fff;color:#18212b;font:inherit;font-weight:400}.admin-filter-field input:focus,.admin-filter-field select:focus{outline:3px solid color-mix(in srgb,var(--admin-blue),transparent 84%);border-color:var(--admin-blue)}.admin-search-button{width:auto;min-height:42px;padding:9px 20px;background:var(--admin-blue)}
.admin-table-wrap{overflow-x:auto;background:#fff;border:1px solid #e1e6eb;border-radius:12px;box-shadow:0 8px 24px #16263808}.admin-table{width:100%;border-collapse:collapse;text-align:left;font-size:.9rem}.admin-table th,.admin-table td{padding:14px 16px;border-bottom:1px solid #edf0f3;vertical-align:middle}.admin-table th{background:#f7f9fb;color:#485667;font-size:.76rem;font-weight:750;letter-spacing:.035em;text-transform:uppercase;white-space:nowrap}.admin-table th a{color:inherit;text-decoration:none}.admin-table th a:hover{color:var(--admin-blue);text-decoration:underline}.admin-table tbody tr:last-child td{border-bottom:0}.admin-table tbody tr:hover{background:#fbfcfd}.admin-email{color:var(--admin-blue);text-decoration:none;overflow-wrap:anywhere}.admin-email:hover{text-decoration:underline}.admin-status{display:inline-flex;align-items:center;min-height:25px;padding:3px 9px;border-radius:999px;font-size:.76rem;font-weight:700;white-space:nowrap}.admin-status.is-positive{background:#eaf5ed;color:#28663b}.admin-status.is-negative{background:#f2f3f5;color:#687382}.admin-action-link{display:inline-block;color:var(--admin-blue);font-weight:700;text-decoration:none;white-space:nowrap}.admin-action-link:hover{text-decoration:underline}.admin-empty{padding:24px;background:#fff;border:1px solid #e1e6eb;border-radius:12px;color:#647181;text-align:center}.admin-pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin:22px 0;color:#596777;font-size:.9rem}.admin-pagination a,.admin-back-link{color:var(--admin-blue);font-weight:700;text-decoration:none}.admin-pagination a:hover,.admin-back-link:hover{text-decoration:underline}
.admin-edit-page .admin-page-heading{align-items:center}.admin-edit-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);align-items:start;gap:20px}.admin-edit-side{display:grid;gap:20px}.admin-panel{padding:24px;background:#fff;border:1px solid #e1e6eb;border-radius:12px;box-shadow:0 8px 24px #16263808}.admin-detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;margin:0}.admin-detail-list>div{padding:13px 0;border-top:1px solid #edf0f3;min-width:0}.admin-detail-list dt{margin:0 0 5px;color:#6a7684;font-size:.78rem;font-weight:650}.admin-detail-list dd{margin:0;color:#263342;font-weight:600;overflow-wrap:anywhere}.admin-settings-form{display:grid;gap:15px}.admin-check-field{display:flex;align-items:flex-start;gap:11px;padding:14px;border:1px solid #e1e6eb;border-radius:9px;cursor:pointer}.admin-check-field input{width:18px;height:18px;margin:2px 0 0;accent-color:var(--admin-blue);flex:0 0 auto}.admin-check-field span{display:grid;gap:5px}.admin-check-field strong{font-size:.9rem}.admin-check-field small{color:#687585;line-height:1.45}.admin-primary-button{width:auto;justify-self:start;background:var(--admin-blue)}.admin-message-actions{display:grid;gap:10px}.admin-message-actions .button{width:100%;min-height:43px}.admin-feedback{margin:0 0 18px}.admin-feedback.status-error{padding:14px 16px;border-radius:12px;background:#fff0ef}.admin-panel .small-note{margin:15px 0 0}
@media(max-width:920px){.admin-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-search-button{width:100%}.admin-edit-grid{grid-template-columns:1fr}}
@media(max-width:560px){.page-shell-admin{width:calc(100% - 24px);margin:22px auto}.admin-page-heading{align-items:flex-start;flex-direction:column;gap:12px}.admin-count{align-self:flex-start}.admin-filter{grid-template-columns:1fr;padding:14px}.admin-panel{padding:18px}.admin-detail-list{grid-template-columns:1fr}.admin-edit-page .admin-page-heading{align-items:flex-start}.admin-pagination{gap:12px;font-size:.82rem}.admin-link{margin-left:8px}.site-header{gap:9px}}

.auth-card h1,.admin-page h1,.admin-page h2{font-family:var(--brand-heading-font-family,var(--brand-font-family,inherit))}

.auth-card-wide{max-width:none}.page-shell:has(.auth-card-wide){width:min(100% - 32px,760px)}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.field-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.field sup{color:#a42b26}.field-hint{margin:6px 0 0;font-size:.82rem;color:#647181;line-height:1.45}
.account-type{display:flex;justify-content:center;gap:0;border:0;padding:0;margin:0 0 24px}.account-type-option{flex:0 1 200px;cursor:pointer}.account-type-option input{position:absolute;opacity:0;pointer-events:none}.account-type-option span{display:block;text-align:center;padding:11px 16px;background:#e6e9ed;color:#536171;font-weight:700;border:1px solid #cbd3dc}.account-type-option:first-of-type span{border-radius:8px 0 0 8px}.account-type-option:last-of-type span{border-radius:0 8px 8px 0}.account-type-option input:checked+span{background:var(--brand-primary);border-color:var(--brand-primary);color:#fff}.account-type-option input:focus-visible+span{outline:3px solid color-mix(in srgb,var(--brand-primary),transparent 70%);outline-offset:2px}
.register-form .label-business{display:none}.register-form[data-business="true"] .label-business{display:inline}.register-form[data-business="true"] .label-private{display:none}.register-form[data-business="false"] .business-only{display:none}
.password-field{position:relative}.password-field input{padding-right:48px}.password-toggle{position:absolute;top:0;right:0;width:46px;height:46px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:#536171;cursor:pointer;border-radius:0 8px 8px 0}.password-toggle svg{width:22px;height:22px;fill:currentColor}.password-toggle .icon-hide,.password-toggle[aria-pressed="true"] .icon-show{display:none}.password-toggle[aria-pressed="true"] .icon-hide{display:block}.password-toggle:focus-visible{outline:3px solid color-mix(in srgb,var(--brand-primary),transparent 70%)}
.consent{margin:8px 0 20px;padding-top:16px;border-top:1px solid #e5e9ee;display:grid;gap:12px}.check{display:flex;gap:10px;align-items:flex-start;font-size:.88rem;line-height:1.5;color:#3d4a58}.check input{margin-top:4px;flex:none;width:16px;height:16px;accent-color:var(--brand-primary)}.check a{color:var(--brand-primary);font-weight:600}.recaptcha{margin-bottom:22px}
@media(max-width:600px){.field-grid{grid-template-columns:1fr}.account-type-option{flex:1 1 0}}

.site-footer{display:grid;gap:8px;justify-items:center}.site-footer p{margin:0}.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px}.footer-links a{color:#536171;text-decoration:none}.footer-links a:hover{text-decoration:underline}.footer-provider{display:flex;align-items:center;gap:8px}.footer-provider img{height:28px;width:auto}.footer-company{font-size:.76rem}
.admin-heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.admin-orders-link{width:auto;min-height:38px;display:inline-flex;align-items:center;padding:8px 14px;font-size:.86rem;text-decoration:none;white-space:nowrap}
/* Header content aligned with the page content (1440px, as the admin pages and the storefront). */
.site-header{padding-inline:max(20px,calc((100% - 1440px) / 2))}@media(max-width:560px){.site-header{padding-inline:12px}}
/* Default Duende pages (grants, consent, diagnostics): same rounded card as the other boxes. */
.card{background:#fff;border:1px solid #e1e6eb;border-radius:12px;box-shadow:0 8px 24px #16263808;overflow:hidden;margin-bottom:20px}
/* Language flags: same drawings as the storefront header. */
.culture-switch{gap:14px}.culture-switch a{display:inline-flex;align-items:center;gap:6px}.culture-switch a::before{content:'';display:inline-block;width:27px;height:18px;border-radius:2px;background-position:center;background-size:cover;background-repeat:no-repeat;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.culture-switch a[lang^='it']::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%23009246' d='M0 0h1v2H0z'/%3E%3Cpath fill='%23fff' d='M1 0h1v2H1z'/%3E%3Cpath fill='%23ce2b37' d='M2 0h1v2H2z'/%3E%3C/svg%3E")}
.culture-switch a[lang^='en']::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='s'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3CclipPath id='t'%3E%3Cpath d='M30 15h30v15zv15h-30zh-30v-15zv-15h30z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23s)'%3E%3Cpath d='M0 0v30h60V0z' fill='%23012169'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' clip-path='url(%23t)' stroke='%23c8102e' stroke-width='4'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23c8102e' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E")}
.culture-switch a[lang^='fr']::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%230055a4' d='M0 0h1v2H0z'/%3E%3Cpath fill='%23fff' d='M1 0h1v2H1z'/%3E%3Cpath fill='%23ef4135' d='M2 0h1v2H2z'/%3E%3C/svg%3E")}
.culture-switch a[lang^='de']::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Cpath d='M0 0h5v1H0z'/%3E%3Cpath fill='%23dd0000' d='M0 1h5v1H0z'/%3E%3Cpath fill='%23ffce00' d='M0 2h5v1H0z'/%3E%3C/svg%3E")}

/* Buyer profile (Account/Profile): personal data and account actions. */
.profile-data { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: .5rem 1rem; margin: 1rem 0 1.25rem; }
.profile-data dt { font-weight: 600; }
.profile-data dd { margin: 0; overflow-wrap: anywhere; }
.profile-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
/* Side by side and only as wide as their label (the base .button is full width). */
.profile-actions .button { width: auto; min-width: 11rem; display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
.profile-actions .button:hover, .profile-actions .button:focus-visible { text-decoration: none; }
.profile-note { font-size: .9rem; opacity: .8; }
@media (max-width: 600px) {
  .profile-data { grid-template-columns: 1fr; gap: .15rem; }
  .profile-data dd { margin-bottom: .5rem; }
  .profile-actions .button { flex: 1 1 10rem; min-width: 0; }
}
