h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ARM Hub pilot: brand bar and screens on top of the validated prototype stylesheet (proto.css) */
.armbar{height:4px;background:#E87722}
.armlogo img{height:30px}.armlogo .arm-d{display:none}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .armlogo .arm-l{display:none}:root:not([data-theme="light"]) .armlogo .arm-d{display:inline}}
.navlinks a{color:var(--accent);text-decoration:none;font-weight:600;margin-right:12px}
.doors{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:12px}
.door{background:var(--surface);border:1px solid var(--line);border-top:4px solid #003C71;border-radius:12px;padding:16px;display:grid;gap:8px;align-content:start}
.profile{display:flex;justify-content:space-between;align-items:center;width:100%;padding:10px 12px;text-align:left;background:var(--surface);color:var(--fg);border:1px solid var(--line);border-radius:8px}
.profile:hover{border-color:#E87722}
.badge{background:var(--accent);color:var(--surface);border-radius:999px;padding:1px 8px;font-size:12px;font-weight:700;margin-left:6px}
.error{color:#b00020;font-weight:600}
.badge-warn{background:var(--warn-soft);color:var(--warn);border-radius:999px;padding:2px 8px;font-size:12px;font-weight:700;display:inline-block;margin:2px 4px 2px 0}
.badge-block{background:#fde8e8;color:#a1141b;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:700;display:inline-block;margin:2px 4px 2px 0}
.badge-info{background:var(--accent-soft);color:var(--accent);border-radius:999px;padding:2px 8px;font-size:12px;font-weight:600;display:inline-block;margin:2px 4px 2px 0}
.totalbar{position:sticky;bottom:0;background:var(--surface);border-top:2px solid var(--accent);padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px;z-index:5}
.totalbar .sum{display:flex;gap:16px;flex-wrap:wrap;align-items:baseline}
.totalbar .sum b{font-size:20px}
.grid-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.grid-form label{display:grid;gap:4px;font-size:13px;color:var(--muted)}
.chipx{display:inline-flex;gap:6px;align-items:center;background:var(--accent-soft);color:var(--accent);border-radius:999px;padding:3px 10px;margin:2px;font-size:13px}
.chipx button{border:0;background:none;color:inherit;padding:0}
table.t{width:100%;border-collapse:collapse;font-size:14px}
table.t td,table.t th{border-bottom:1px solid var(--line);padding:8px;text-align:left;vertical-align:top}
table.t td.num,table.t th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
tr.blocked td{background:#fff5f5}
@media (prefers-color-scheme: dark){tr.blocked td{background:#3a1717}.badge-block{background:#4a1a1a;color:#ffb4b4}}
.compare{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.compare .plan .price{font-size:24px;font-weight:800;font-family:var(--display)}
.modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:40}
.modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(460px,calc(100vw - 32px));background:var(--surface);border-radius:12px;padding:20px;z-index:41;display:grid;gap:12px}
.cert{background:var(--surface);border:1px solid var(--line);border-top:6px solid #003C71;border-radius:12px;padding:20px;display:grid;gap:10px;break-inside:avoid;margin-bottom:16px}
.cert h2{color:#003C71}
@media print{.top,.armbar,.noprint,#blazor-error-ui{display:none!important}main{padding:0}body{background:#fff}}
.orglist button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}
.import-box{border:1px dashed var(--accent);border-radius:12px;padding:14px;display:grid;gap:8px;background:var(--accent-soft)}
.issues{display:flex;flex-wrap:wrap;gap:4px}
#blazor-error-ui{display:none;position:fixed;bottom:0;left:0;right:0;z-index:1000;padding:10px 16px;background:#fff3cd;color:#14202e;box-shadow:0 -1px 2px rgba(0,0,0,.2)}
#blazor-error-ui .dismiss{cursor:pointer;position:absolute;right:12px;top:8px}
a.btn{text-decoration:none;display:inline-block}
.done-banner{margin:0 0 18px;padding:12px 16px}
.alert.info{background:var(--accent-soft);color:var(--accent)}
.langpick{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--accent);cursor:pointer}
.langpick select{border:0;background:transparent;color:var(--fg);font:inherit;font-size:14px;font-weight:600;cursor:pointer;padding:2px 0}
.langpick:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.profile.on{border-color:#003C71;box-shadow:inset 0 0 0 1px #003C71}

/* Sign-in: brand panel on the left, form card on the right; stacks on phones. */
.signin{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:920px;margin:24px auto 16px;border-radius:16px;overflow:hidden;border:1px solid var(--line);background:var(--surface)}
.signin-brand{background:linear-gradient(160deg,#003C71 0%,#0a5a9c 100%);color:#fff;padding:36px 32px;display:grid;gap:18px;align-content:start}
.signin-brand h1{font-size:26px;line-height:1.2;margin:0;color:#fff}
.signin-brand ul{margin:0;padding-left:18px;display:grid;gap:8px;opacity:.95}
.signin-brand .armlogo{background:#fff;padding:8px 12px;border-radius:10px;justify-self:start}
.signin-card{padding:36px 32px;display:grid;gap:14px;align-content:start}
.signin-card h2{margin:0}
.signin-card label{display:grid;gap:4px}
.btn.wide{width:100%}
.signin-new{text-align:center;margin:4px 0 0}
@media (max-width:720px){.signin{grid-template-columns:1fr;margin:8px 0}.signin-brand{padding:24px}.signin-card{padding:24px}}
.signin-brand .armlogo .arm-l{display:inline!important}.signin-brand .armlogo .arm-d{display:none!important}
.signin-new a{color:#003C71;font-weight:600;text-decoration:none}.signin-new a:hover{text-decoration:underline}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .signin-new a{color:#8cc4ff}}
.testbox{max-width:920px;margin-left:auto;margin-right:auto}

/* Coverage certificate and ID card: same layout and wording as the documents issued today (English, document style). */
.coc{font-family:Arial,Helvetica,sans-serif;color:#111;background:#fff;border:1px solid #bbb;margin-bottom:16px;font-size:13px;line-height:1.35}
.coc-page{padding:28px 34px;display:grid;gap:12px;break-after:page}
.coc-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.coc-head h2{margin:0;font-size:24px;color:#333;font-weight:700}
.coc-co{display:flex;gap:6px;align-items:flex-start}
.coc-logo{font-weight:400;font-size:20px;letter-spacing:.2em;border:2px solid #111;padding:0 6px;white-space:nowrap}
.coc p{margin:0}
.coc-ins{display:grid;grid-template-columns:auto 1fr auto 1fr;gap:4px 14px}
.coc-ben{display:grid;grid-template-columns:420px 1fr;gap:4px 14px;margin-top:6px}
.coc-contacts{display:grid;grid-template-columns:1fr 1fr;gap:10px 28px}
.coc-sign{display:flex;justify-content:space-between;margin-top:34px}
.coc-fict{color:#666}
.coc-back table{width:100%;border-collapse:collapse;font-size:11.5px}
.coc-back th{text-align:left;border-bottom:1px solid #111;padding:2px 4px}
.coc-back td{padding:2px 4px;vertical-align:top}
.coc-back td:first-child{white-space:nowrap;padding-right:18px}
.idc{display:grid;grid-template-columns:1fr 1.15fr;border:2px solid #111;background:#fff;color:#111;font-family:Arial,Helvetica,sans-serif;font-size:12px;max-width:760px;margin:0 0 16px;break-inside:avoid}
.idc-left{border-right:2px solid #111}
.idc-title{font-weight:700;font-size:16px;text-align:center;padding:12px 8px;border-bottom:2px solid #111}
.idc-row{padding:8px 10px;border-bottom:1px solid #111}
.idc-row:last-child{border-bottom:0}
.idc-right{padding:8px 10px}
.idc-right p{margin:0 0 8px}
.idc-big{font-size:14px}
@media screen and (max-width:800px){.coc,.idc{width:760px;max-width:none;zoom:.8}}
@media screen and (max-width:640px){.coc,.idc{zoom:.6}}
@media screen and (max-width:480px){.coc,.idc{zoom:.42}}
@page{size:A4;margin:0}
@media print{
  .coc{border:0;margin:0;font-size:11px;line-height:1.28;break-before:page;page-break-before:always}
  .coc-page{padding:0;gap:7px;break-inside:avoid;page-break-inside:avoid}
  .coc-page + .coc-page{break-before:page;page-break-before:always}
  .coc-head h2{font-size:21px}
  .coc:not(.cc) .coc-page{padding:54pt}
  .coc-sign{margin-top:18px}
  .coc-back table{font-size:9.5px}
  .coc-back td,.coc-back th{padding:1px 3px}
  .idc{margin:0;max-width:none;break-before:page;page-break-before:always;break-inside:avoid;page-break-inside:avoid;font-size:11px}
}
.card .inp{box-sizing:border-box;max-width:100%}
.profile{display:grid;gap:4px;text-align:left}.profile .pdesc{display:block;font-weight:400}
.aibox{display:grid;gap:8px;margin:10px 0;padding:12px;border:1px dashed var(--line);border-radius:8px;background:var(--ai-soft)}
.aibox textarea{box-sizing:border-box;width:100%;max-width:100%}
/* Trip dates step and AI reading block (AB#395, prototype approved 12/02): label above the field in small caps, compact
   fields, tabular numbers; the AI block is collapsible, closed by default, with one primary button (Confirm). */
.dates-fields{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}
.dates-fields .fld{display:grid;gap:5px}
.dates-fields .fld>span{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.dates-fields .inp{padding:7px 10px;font-size:14px;min-height:36px;font-variant-numeric:tabular-nums}
.inp.fromai{border-color:var(--ai);background:var(--ai-soft)}
.aitag{font-size:11px;font-weight:700;font-style:normal;color:var(--ai);margin-left:6px;letter-spacing:.02em;text-transform:none}
.days{font-variant-numeric:tabular-nums}
hr.sep{border:0;border-top:1px solid var(--line);margin:14px 0 6px;width:100%}
.lnk{color:var(--accent);font-weight:600;background:none;border:0;padding:0;font:inherit;font-weight:600;cursor:pointer}
.lnk:hover{text-decoration:underline}
.lnk.small{font-size:13px}
.tkt{border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.tkt.open{border-color:var(--ai)}
.tkt-head{display:flex;align-items:center;gap:10px;width:100%;padding:12px 14px;border:0;background:none;color:var(--ai);font:inherit;font-weight:600;text-align:left;cursor:pointer;border-radius:10px}
.tkt-head small{font-weight:400;color:var(--muted);font-size:12px}
.tkt-head .chev{margin-left:auto;color:var(--muted);font-size:20px;line-height:1;transition:transform .15s}
.tkt.open .tkt-head .chev{transform:rotate(90deg)}
.tkt-head:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tkt-body{display:grid;gap:14px;padding:2px 14px 16px}
.tkt .help,.files-reader .help{margin:0;font-size:14px;color:var(--muted)}
.tkt .more,.files-reader .more{font-size:13px;color:var(--muted);display:grid;gap:6px;padding:10px 12px;border-radius:8px;background:var(--bg)}
.tkt .more ul,.files-reader .more ul{margin:0;padding-left:18px;display:grid;gap:3px}
.tkt .src,.files-reader .src{color:var(--muted);font-size:12px}
.tkt .consent,.files-reader .consent{display:flex;gap:8px;align-items:flex-start;font-size:13px}
.tkt .consent input,.files-reader .consent input{margin-top:3px}
.tkt .actions,.files-reader .actions{flex-wrap:wrap;gap:10px}
.tkt .btn,.files-reader .btn{padding:8px 16px;font-size:14px;min-height:36px}
.tkt .filebtn,.files-reader .filebtn{position:relative;cursor:pointer;display:inline-flex;align-items:center}
.tkt .more a,.files-reader .more a{color:var(--accent);font-weight:600;text-decoration:none}
.tkt .more a:hover{text-decoration:underline}
.tkt .filebtn[aria-disabled=true],.files-reader .filebtn[aria-disabled=true]{opacity:.45;cursor:not-allowed;pointer-events:none}
.tkt .filebtn:focus-within,.files-reader .filebtn:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.tkt-result{display:grid;gap:10px}
.tkt-result>b{font-size:14px}
.tkt .tw,.files-reader .tw{overflow-x:auto;border:1px solid var(--line);border-radius:8px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tkt-people{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.tkt-people th{text-align:left;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
.tkt-people td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.tkt-people tr:last-child td{border-bottom:0}
.tkt-people th:first-child,.tkt-people td:first-child{width:1%}
.tkt-people td.trip{background:var(--accent-soft);font-weight:600}
.tkt-people .diff{color:var(--warn);font-weight:600}
.tkt-people .flag{display:inline-block;font-size:11px;font-weight:700;color:var(--warn);background:var(--warn-soft);padding:1px 7px;border-radius:999px;margin-top:2px}
.tkt .det>summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--accent)}
.tkt .det ul,.tkt .det p{font-size:13px;color:var(--muted);margin:6px 0 0}
.tkt .det ul,.files-reader .det ul{padding-left:18px}
.policy{margin:0;padding-left:18px;display:grid;gap:6px}

/* Test/demonstration environment: fixed notice on every page and SPECIMEN watermark on certificates and ID cards. */
.testenv{position:sticky;top:0;z-index:50;background:#b00020;color:#fff;text-align:center;font-size:13px;line-height:1.3;padding:6px 12px;display:flex;gap:6px 12px;justify-content:center;flex-wrap:wrap}
.testenv-foot{position:static;margin-top:24px}
.wm{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;pointer-events:none;overflow:hidden;z-index:5;
  font:700 40px/1.2 Arial,Helvetica,sans-serif;color:rgba(176,0,32,.22);transform:rotate(-30deg);transform-origin:center;white-space:normal;padding:0 22%}
.wm-sm{font-size:20px;padding:0 12%}
.coc-page{position:relative}
.coc-page:has(> .wm){overflow:hidden}
.idc{position:relative;overflow:hidden}
.coc-test{color:#b00020;font-size:12px;border:1px solid #b00020;padding:4px 8px}
@media print{.testenv{display:none!important}
  .wm{color:rgba(176,0,32,.28);-webkit-print-color-adjust:exact;print-color-adjust:exact}}
button.card .muted{font-weight:400}

/* Line icons (Icon.razor): sit on the text baseline and take the text color. */
.ico{display:inline-block;vertical-align:-3px;flex:none}
.orgmode button{display:inline-flex;align-items:center;gap:6px}
/* Per-person documents (FR-154): print only the chosen person and/or document type. */
@media print{
  html.print-one .pdocs:not(.print-me){display:none!important}
  html[data-print-what="cert"] .idc{display:none!important}
  html[data-print-what="card"] .coc{display:none!important}
  .pdocs:first-of-type .coc, html.print-one .print-me > :first-child, html[data-print-what="card"] .pdocs:first-of-type .idc{break-before:auto;page-break-before:auto}
}
/* Appearance selector (Automatic / Light / Dark), same look as the approved prototype. */
.themebtn{font-size:12px;padding:4px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--fg);cursor:pointer;font-family:inherit}
.themebtn:hover{border-color:var(--accent)}
/* Certificate title: brand blue on the card in light mode, the lighter accent in dark mode (brand blue is unreadable on dark). */
.cert{border-top-color:var(--accent)}
.cert h2{color:var(--accent)}
/* Paper stays paper: printing and PDFs always use the light palette, whatever the screen shows. */
@media print{
  :root,:root[data-theme="dark"],:root:not([data-theme="light"]){
    --bg:#fff; --surface:#fff; --fg:#14202e; --muted:#545860; --line:#d9e1e5;
    --accent:#003C71; --accent-soft:#e6edf5; --warn:#B85A12; --warn-soft:#fdf1e7; --ok:#2f7d4f; --ok-soft:#e3f2e8; --ai:#5a5aa8; --ai-soft:#eeeef8;
    --danger:#b3261e; --danger-soft:#fbe9e7; color-scheme:light}
}

/* ---- Administration screens (AB#378): compact fields, labels above, one primary button per area, status as small pills */
.pagehead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.pagehead h1{margin:0 0 4px}
.actions{display:flex;align-items:center;gap:12px}
.ok-text{color:var(--ok);font-weight:600;font-size:14px}
.field{display:grid;gap:4px;align-content:start}
.lbl{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.field .inp,.filters .inp,.formrow .inp{width:100%;box-sizing:border-box;padding:7px 10px;font:inherit;font-size:14px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--fg)}
.formrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;align-items:start}
.formrow .end,.field-row .end{align-self:end}
.filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end}
.filters .field{min-width:180px;flex:1 1 180px;max-width:280px}
.check.sub{margin-left:24px}
.check{display:flex;gap:8px;align-items:center;font-size:14px}
fieldset.modes{border:0;padding:0;margin:0;display:grid;gap:6px}
.pill{display:inline-block;font-size:12px;font-weight:600;padding:2px 9px;border-radius:999px;margin-left:6px;vertical-align:middle}
.pill.ok{background:var(--ok-soft);color:var(--ok)}
.pill.warn{background:var(--warn-soft);color:var(--warn)}
.pill.off{background:var(--accent-soft);color:var(--muted)}
.ico-cell{font-size:20px;width:34px}
.tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.tabs button{border:0;background:transparent;color:var(--muted);padding:9px 14px;font-weight:600;border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs button.on{color:var(--accent);border-bottom-color:var(--accent)}
.langbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.langbar button{border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:999px;padding:4px 12px;font-size:13px;font-weight:600}
.langbar button.on{background:var(--accent);border-color:var(--accent);color:var(--surface)}
.langbar .miss{display:inline-block;margin-left:6px;min-width:18px;padding:0 5px;border-radius:999px;background:var(--warn);color:var(--surface);font-size:11px;line-height:18px;text-align:center}
.avail{border-top:1px solid var(--line);padding-top:12px}
ul.missing{margin:4px 0 0;padding-left:20px;font-size:14px}
.field-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;padding-top:10px;border-top:1px solid var(--line)}
details summary{cursor:pointer;color:var(--accent);font-size:14px;font-weight:600}
ul.orgtree,ul.orgtree ul{list-style:none;margin:0;padding-left:20px}
ul.orgtree{padding-left:0}
ul.orgtree li{margin:4px 0}
.treebar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.notice{padding:12px 14px;border-radius:8px;background:var(--warn-soft);color:var(--warn)}

/* ---- Administration, part 3 (AB#378): sub-menu, icon picker, screen texts table */
.adminnav{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:12px;border-bottom:1px solid var(--line)}
.adminnav a{padding:8px 12px;color:var(--muted);text-decoration:none;font-weight:600;font-size:14px;border-bottom:2px solid transparent;margin-bottom:-1px}
.adminnav a.on{color:var(--accent);border-bottom-color:var(--accent)}
.iconpick{display:flex;gap:8px;flex-wrap:wrap}
.iconpick button{font-size:22px;width:46px;height:46px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.iconpick button.on{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
ul.plain{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.checkgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:6px}
table.texts td{vertical-align:top;min-width:160px}
table.texts td.edited .inp{border-color:var(--accent)}
table.texts .inp{width:100%;box-sizing:border-box;padding:6px 8px;font:inherit;font-size:14px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--fg)}
details.where{display:inline-block;margin-left:6px;position:relative}
details.where summary{list-style:none;display:inline}
details.where .wherebox{position:absolute;z-index:5;left:0;top:22px;min-width:200px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 4px 14px rgba(0,0,0,.12);font-size:13px;display:grid;gap:4px}
.sitefoot{padding:14px 16px;text-align:center;font-size:13px;color:var(--muted)}
.versionfoot{padding-top:0;font-size:12px}.versionfoot a{color:var(--muted)}
.reltabs{display:flex;gap:4px;border-bottom:1px solid var(--line)}
.reltabs button{border:0;background:none;padding:8px 12px;color:var(--muted);font:inherit;font-weight:600;border-bottom:2px solid transparent;cursor:pointer}
.reltabs button[aria-selected=true]{color:var(--accent);border-color:var(--accent)}
.rel header{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.rel .relver{font-size:15px}.rel h2{font-size:15px;margin:4px 0 0}.rel ul{margin:6px 0 4px;padding-left:20px}.rel .pill{background:var(--accent-soft);color:var(--accent)}
/* One people list for every product (AB#448): products without the trip columns (relationship, volunteer days) put their row fields in one
   flexible block, with the same chips, premium, Edit and trash as STT. */
.prow.gen{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"c f x" "c t t" "c v e"}
.prow.gen .pfields{grid-area:f;display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:6px 8px;min-width:0}
.prow.gen .pfields label{display:block;min-width:0}
.prow.gen .pfields .inp{box-sizing:border-box;width:100%;min-width:0}
@media (max-width:720px){.prow.gen{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"c f f" "x t t" "x v e"}}
.pbfield{display:grid;gap:4px}
/* AI use notice (AB#499) */
.ai-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.ai-bar.off{padding:8px 10px;border:1px dashed var(--line);border-radius:8px}
.ai-notice .actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.tovalidate{display:inline-block;padding:0 6px;border-radius:4px;background:#fdecc8;color:#8a5a00;font-size:12px;font-weight:600}
.files-reader{display:grid;gap:14px}
.plan.addon .grow{flex:1}.plan .agenote{color:var(--warn);font-size:12px}
/* Purchase assistant (AB#439, prototype v5): chat on the left, "What I noted" on the right; AI colour for what the AI filled in. */
.asst{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;align-items:start}
@media (max-width:760px){.asst{grid-template-columns:minmax(0,1fr)}}
.assistant .msg{padding:10px 12px;border-radius:12px;max-width:90%;overflow-wrap:anywhere}
.assistant .msg.me{background:var(--accent-soft);color:var(--fg);justify-self:end}
.assistant .msg.ai{background:var(--ai-soft);border:1px solid var(--line)}
.assistant .msg .who{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ai)}
.assistant .msg p{margin:4px 0 0}
.assistant .chips{display:flex;flex-wrap:wrap;gap:8px}
.assistant .chip{border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;cursor:pointer}
.assistant .chip:hover{border-color:var(--accent)}
.assistant .composer{display:flex;gap:8px}
.assistant .composer .inp{flex:1;min-width:0}
.assistant .panel .item{border-left:3px solid var(--ai);padding-left:10px}
.assistant .src{color:var(--muted)}
.ai-banner{border:1px solid var(--ai);background:var(--ai-soft);border-radius:10px;padding:10px 14px}
.aitag.row{margin-left:0}

/* ==== Visual standards (AB#394, approved 2026-12-03) ====
   One set of rules for every screen: 2 button heights (40 / 32), one field height and label, one type scale (28 / 19 / 16),
   one pill shape, one notice shape, cards without boxes inside boxes, radii 8 / 12 / pill. This layer comes last on purpose and
   settles the sizes that the screen-specific rules above set differently; folding it into those rules is the follow-up clean-up.
   Guide and before/after prints: 08_Implementation_Backlog/HANDOFF_AB394_VISUAL_PROPOSAL.md. Documents (.coc, .idc) and print are untouched. */
:root{
  --r-ctl:8px; --r-card:12px; --h:40px; --h-sm:32px;
  --line-strong:#b9c5d1;
}
:root[data-theme="dark"]{--line-strong:#3a5878}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--line-strong:#3a5878}}
body{font-size:15px;line-height:1.5;border-top:0!important}
main{padding-block:28px 56px}
main *{box-sizing:border-box}

/* ---------- type scale: 4 sizes, same on every screen */
main h1,.hero h1,.signin-brand h1{font-size:28px!important;font-weight:700!important;line-height:1.2;letter-spacing:-.01em;max-width:none}
main h2{font-size:19px!important;font-weight:700;line-height:1.3}
main h3,main h4,.plan h4,.dsub{font-size:16px!important;font-weight:700!important;line-height:1.3}
.hero{padding-block:4px 8px;gap:8px}.hero p{font-size:15px}
.small,.muted.small{font-size:13px}
.choice b{font-size:15px;font-weight:700}
.choice .muted,.choice span{font-size:13.5px}

/* ---------- links: one colour, never the browser blue */
main a:not(.btn):not(.choice):not(.seclink),.linkbtn,.lnk{color:var(--accent)!important;font-weight:600;text-decoration:none!important;font-size:inherit}
main a:not(.btn):not(.choice):not(.seclink):hover,.linkbtn:hover,.lnk:hover{text-decoration:underline!important;text-underline-offset:3px}

/* ---------- buttons: 2 sizes, 3 weights */
.btn,a.btn,.yn button,.stepper .btn,.tkt .btn,.files-reader .btn,.confirm .btn,.mail .btn,.addon .yn button,.orgmode button{
  min-height:var(--h);height:auto;padding:0 16px!important;font-size:14px!important;font-weight:600;border-radius:var(--r-ctl)!important;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.2}
.btn.ghost,a.btn.ghost{background:var(--surface);border-color:var(--line-strong);color:var(--accent)}
.btn.ghost:hover{border-color:var(--accent);background:var(--accent-soft)}
.btn.sm,a.btn.sm,.prow .btn.sm,table .btn,td .btn{min-height:var(--h-sm);padding:0 12px!important;font-size:13px!important}
.btn.dang{border-color:var(--danger);color:var(--danger)}
.btn.wide{width:100%}
/* choice chips (Yes / No, modes, periods): same height as buttons, quieter */
.yn button,.orgmode button{background:var(--surface);border:1px solid var(--line-strong);color:var(--fg);font-weight:600;justify-content:flex-start}
.yn button[aria-pressed="true"],.orgmode button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
/* small pills that switch a view: one look */
.seg button,.seg2 button,.langbar button,.themebtn{min-height:28px;padding:0 12px;font-size:13px;font-weight:600;border-radius:999px}
.morebtn{border:0;background:none;padding:0;margin:0;color:var(--accent);font-size:13px;font-weight:600;border-radius:0}
.morebtn:hover{background:none;text-decoration:underline}
/* "secondary door" links: text links, not full-width bars */
.adv{display:flex;flex-wrap:wrap;gap:6px 24px;margin-top:4px}
.seclink{width:auto;min-height:0;padding:4px 0;border:0;background:none;font-size:14px;border-radius:0}
.seclink:hover{text-decoration:underline;text-underline-offset:3px}

/* ---------- fields: one height, one label */
.inp,td input:not([type=checkbox]):not([type=radio]),td select,.field .inp,.filters .inp,.formrow .inp,table.texts .inp,.dates-fields .inp{
  min-height:var(--h);padding:8px 12px!important;font-size:14px!important;font-weight:400!important;border:1px solid var(--line-strong)!important;border-radius:var(--r-ctl)!important;color:var(--fg)}
textarea.inp{min-height:72px}
.prow .inp,td input:not([type=checkbox]):not([type=radio]),td select,table.texts .inp{min-height:36px;padding:6px 10px!important}
.lbl,.fields label,.grid-form label,.dates-fields .fld>span,label.small,.signin-card label,.field>span{
  font-size:12px!important;font-weight:600!important;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)!important;margin:0}
label.small b{font-weight:600}
.fields label,.grid-form label,.signin-card label{display:grid;gap:6px}
.fields{gap:16px}
.check,.opt,label:has(>input[type=checkbox]){text-transform:none!important;letter-spacing:0!important;font-size:14px!important;font-weight:400!important;color:var(--fg)!important}

/* ---------- cards: one border, one padding, no box inside box */
.card,.door,.choice,.plan,.kpi,.cert{border-radius:var(--r-card);border:1px solid var(--line);box-shadow:none}
.card{padding:24px}
.stack{gap:16px}
.card.stack + .card.stack,section.card + section.card,.adv + section.card{margin-top:20px}
.choice{padding:16px;gap:4px}
.choice:hover{border-color:var(--accent)}
.card .card,.scope{border-color:var(--line)}
.qcard{gap:20px}
.contact,.addon,.doc{border-style:solid;border-color:var(--line);border-radius:var(--r-ctl)}

/* plan cards */
.plan{padding:16px;gap:10px}
.plan.sel{border:1px solid var(--accent);box-shadow:0 0 0 1px var(--accent)}
.plan li{border-bottom:0;padding-bottom:0}
.pprice b,.compare .plan .price{font-size:22px;color:var(--fg)}
.plan .agenote{color:var(--muted)}

/* people list: rows with a divider, not 18 boxes */
.plist{gap:0;border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden}
.prow{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 14px}
.prow:last-child{border-bottom:0}
.prow.bad{box-shadow:inset 3px 0 0 var(--danger);background:var(--danger-soft)}

/* ---------- status pills: one shape, five tones */
.pill,.st,.ptag,.badge,.badge-warn,.badge-block,.badge-info,.tag,.tip.pis,.tkt-people .flag,.tovalidate{
  display:inline-flex;align-items:center;min-height:22px;padding:0 9px!important;border-radius:999px!important;border:0!important;font-size:12px!important;font-weight:600!important;font-style:normal;white-space:nowrap;margin:0 4px 0 0}
.ptag,.pill.off,.st.past,.tip.pis.info{background:var(--bg);color:var(--muted);box-shadow:inset 0 0 0 1px var(--line)}
.ptag.cls,.ptag.add,.badge-info,.st.future,.badge{background:var(--accent-soft);color:var(--accent)}
.pill.ok,.st.active{background:var(--ok-soft);color:var(--ok)}
.pill.warn,.badge-warn,.tag,.tovalidate,.tkt-people .flag{background:var(--warn-soft);color:var(--warn)}
.badge-block,.tip.pis.bad{background:var(--danger-soft);color:var(--danger)}
.ptag.exc{background:var(--ai-soft);color:var(--ai)}
.ptags{gap:4px}

/* ---------- notices: one shape, tone on the left bar, text always in the normal colour */
.alert,.notice,.alert.caution,.ai-banner,.done-banner{
  padding:12px 14px;border-radius:var(--r-ctl);border:1px solid var(--line);border-left:3px solid var(--muted);background:var(--surface);color:var(--fg)!important;font-size:14px;font-weight:400}
.alert.warn,.notice,.alert.caution{border-left-color:var(--warn);background:var(--warn-soft)}
.alert.ok{border-left-color:var(--ok);background:var(--ok-soft)}
.alert.info{border-left-color:var(--accent);background:var(--accent-soft)}
.alert.ai,.ai-banner{border-left-color:var(--ai);background:var(--ai-soft)}
.error,.validation-message{color:var(--danger)}
.import-box,.aibox{border:1px solid var(--line);background:var(--bg);border-radius:var(--r-ctl)}

/* ---------- tables */
table.t,table{font-size:14px}
th{font-size:12px!important;letter-spacing:.05em;font-weight:600;padding:10px 8px}
td{padding:10px 8px}
tr.blocked td{background:var(--danger-soft)}

/* ---------- tabs: one look (admin menu, product tabs, versions) */
.tabs button,.adminnav a,.reltabs button{padding:10px 14px;font-size:14px;font-weight:600}

/* ---------- top bar: one row, quieter; test banner in one thin line */
.testenv{padding:4px 12px;font-size:12px}
.armbar{height:3px}
.top{padding-block:10px;gap:8px 16px}
.navlinks{display:flex;flex-wrap:wrap;gap:4px 20px;margin-right:auto}
.navlinks a{white-space:nowrap}
.brand{white-space:nowrap}
.navlinks a{margin:0;font-size:14px}
.top .btn.ghost.sm{border-color:var(--line);color:var(--fg);font-weight:600;white-space:nowrap}
.themebtn,.langpick{border-color:var(--line)}
.langpick{min-height:32px;padding:0 10px}
.langpick select{font-size:13px}
.testenv-foot{margin-top:40px}

/* totals */
.total{font-size:20px;font-weight:700}
.totalbar{border-top:1px solid var(--line)}
.kpi b{font-size:24px;font-weight:700;color:var(--fg)}
.signin{border-radius:var(--r-card)}
.profile{border-radius:var(--r-ctl)}
.profile .badge,.profile .pill{justify-self:start}
/* admin tables: row actions quiet, one primary per screen */
td .btn.ghost,td a.btn.ghost{border-color:var(--line);background:transparent}
td .btn.ghost:hover{border-color:var(--accent)}
.yn button.card{display:grid;justify-content:stretch;gap:4px;padding:14px 16px!important;font-weight:400;font-size:14px!important;text-align:left;border-radius:var(--r-card)!important}
.yn button.card b{font-size:15px}
td a b,td b a{font-weight:600}
.nav>.btn.ghost{flex:none;white-space:nowrap}
@media (max-width:600px){.card{padding:16px}.plan{padding:14px}}

/* ==== Assistant chips and AI emphasis (AB#512, approved 2026-12-03) ==== */
/* AI entries: the AI colour, a sparkle and an "AI" mark */
.card.ask{border-color:var(--ai);background:linear-gradient(180deg,var(--ai-soft),var(--surface) 70%);box-shadow:inset 0 3px 0 var(--ai)}
.aihead::before{content:"\2726";color:var(--ai);margin-right:8px}
.aimark{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:999px;background:var(--ai);color:#fff;font-size:11px;font-weight:700;letter-spacing:.05em;line-height:1.4;vertical-align:middle}
.choice.ai{border-color:var(--ai);background:var(--ai-soft);box-shadow:none}
/* conversation: suggested answers are actions, product questions are quiet help */
.assistant .chiplbl{flex-basis:100%;font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.assistant .chips.quick .chip{min-height:var(--h-sm);padding:0 14px;border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:600}
.assistant .chips.quick .chip::after{content:" \2192"}
.assistant .qchips{gap:4px 16px;margin-top:8px;padding:12px 14px;border:1px dashed var(--line);border-radius:var(--r-ctl);background:var(--bg)}
.assistant .qchips .chip{border:0;border-radius:0;background:none;padding:2px 0;color:var(--ai);font-weight:600;text-align:left}
.assistant .qchips .chip::before{content:"?";display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-right:6px;border-radius:50%;background:var(--ai-soft);box-shadow:inset 0 0 0 1px var(--ai);font-size:11px}
.assistant .qchips .chip:hover{text-decoration:underline;text-underline-offset:3px}
/* phone: the conversation never grows wider than its card; the composer wraps */
.assistant .chat{grid-template-columns:minmax(0,1fr)}
@media (max-width:600px){.assistant .composer{flex-wrap:wrap}.assistant .composer .inp{flex:1 1 100%}.assistant .composer .btn{flex:1 1 auto}}
/* top bar: the theme button is one round icon; its name is in the tooltip */
.themebtn{width:32px;min-width:32px;min-height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--accent)}
.themebtn .ico{vertical-align:0}
/* Documents stay documents: the certificate and the ID card keep the layout of the official ones, so the visual
   standards above (type scale, border-box sizing, table headers) do not apply inside them, on screen or on paper. */
.coc,.coc *,.idc,.idc *{box-sizing:content-box}
.coc-head h2{font-size:24px!important;line-height:1.15}
.coc th{letter-spacing:.04em}
.coc .small{font-size:12px}
@media print{.coc-head h2{font-size:21px!important}main{padding:0}}
/* certificate page: the two cards start on the same line, and the documents keep a gap from the panel above */
.grid2>.card.stack + .card.stack{margin-top:0}
@media screen{.grid2.noprint{margin-bottom:24px}}

/* ==== Official certificate and ID card (AB#515) ====
   The coverage certificate and the ID card follow the official TravelHub documents (A4, Helvetica; sample and notes in
   08_Implementation_Backlog/AB394_visual_proposal/certificate_review/). The server PDF (CertificateLayout.cs) uses the same measures in points:
   change both together. The product confirmation (.coc without .cc) keeps its own layout. */
.cc,.idc{font-family:Helvetica,Arial,"Liberation Sans",sans-serif;color:#000;background:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.cc,.cc *,.idc,.idc *{box-sizing:border-box}
.coc.cc{width:595.3pt;max-width:none;font-size:9pt;line-height:10.45pt;border:1px solid #bbb;margin:0 0 16px}
.cc .coc-page{position:relative;display:block;width:595.3pt;min-height:841.9pt;padding:92.5pt 36pt 0;overflow:hidden}
.cc .coc-head,.cc .coc-co{display:block;position:static}
.cc .cc-logo{position:absolute;left:36pt;top:43.2pt;width:84.9pt;height:9.6pt}
.cc .cc-reg{position:absolute;left:123.3pt;top:42.4pt;font-size:3.6pt;line-height:4.5pt}
.cc .cc-name{position:absolute;left:124.3pt;top:42.2pt;font-size:9.75pt;line-height:11.5pt;white-space:nowrap}
.cc .coc-head h2{position:absolute;right:35.3pt;top:36.6pt;margin:0;font:700 18pt/20pt Helvetica,Arial,"Liberation Sans",sans-serif!important;color:#000;white-space:nowrap}
.cc .coc-page>p{margin:0 -1.3pt 0 0;font-size:9pt;line-height:10.45pt}
.cc .coc-page>p+p{margin-top:8.95pt}
main .cc a.cc-link:not(.btn):not(.choice):not(.seclink),main .idc a.cc-link:not(.btn):not(.choice):not(.seclink){color:#0033cc!important;text-decoration:underline!important;font-weight:400!important}
.cc .coc-ins{display:grid;grid-template-columns:125pt 82.4pt 151.2pt 1fr;gap:3.3pt 0;margin-top:7.53pt;font-size:9.75pt;line-height:11.5pt}
.cc .coc-ben{display:grid;grid-template-columns:314pt 1fr;gap:3.3pt 0;margin-top:12.93pt;font-size:9.75pt;line-height:11.5pt}
.cc .coc-ben>b:first-child{line-height:11pt}
.cc .coc-ben>b:first-child+span{line-height:11pt}
.cc .coc-ben>b:nth-child(3),.cc .coc-ben>span:nth-child(4){margin-top:-3.05pt}
.cc .coc-contacts{display:grid;grid-template-columns:216pt 289pt;gap:10.1pt 19.2pt;margin-top:14.59pt;font-size:9.75pt;line-height:11.1pt}
.cc .coc-contacts+p{margin-top:9.62pt}
.cc .coc-sign{display:grid;grid-template-columns:229pt 1fr;margin-top:60.14pt;font-size:9.75pt;line-height:11.5pt}
.cc .coc-sign u{text-decoration:underline}
.cc .coc-page>p.coc-test{margin:11.72pt 0 0;color:#b00020;font-size:9pt;line-height:11.5pt;border:.75pt solid #b00020;padding:2.25pt 5.25pt}
.cc .coc-fict{margin:8px 0 0;font-size:11px}
.cc .wm-cert{position:absolute;inset:auto;left:50%;top:330pt;width:305pt;margin-left:-152.5pt;display:block;padding:0;transform:translateY(-50%) rotate(-30deg);font:700 30pt/36pt Helvetica,Arial,"Liberation Sans",sans-serif;color:rgba(176,0,32,.28)}
.cc .coc-back{padding:36pt 36pt 0}
.cc .coc-back .wm-cert{top:50%}
.cc .cc-offices{width:524pt;table-layout:fixed;border-collapse:collapse;font-size:8.25pt;line-height:9.45pt}
.cc .cc-offices th{text-transform:none;background:#0a5a96;color:#fff;font-size:8.5pt;line-height:10pt;text-align:left;font-weight:700;letter-spacing:0;padding:0 2pt;border:.75pt solid #000}
.cc .cc-offices td{border:.75pt solid #000;padding:0 4.5pt 0 2pt;vertical-align:top;white-space:normal}
.cc .cc-offices th:first-child,.cc .cc-offices td:first-child{width:58.5pt;white-space:normal}
.cc .cc-offices td:nth-child(2){padding-right:2pt}
/* ID card */
.idc{position:relative;display:grid;grid-template-columns:202.75pt 1fr;width:521.3pt;max-width:none;height:168pt;border:2px solid #000;margin:0 0 16px;font-size:9.6pt;line-height:12pt;overflow:hidden}
.idc.idc-trip{height:247.7pt}
.idc-left{border-right:2px solid #000;padding:0}
.idc-title{height:46.25pt;margin:0;border-bottom:2px solid #000;background:#f4f4f4;color:#00f;font-size:12pt;line-height:14.9pt;text-align:center;padding:7.8pt 0 0;font-weight:700}
.idc-title span{display:block}
.idc-row{height:21.1pt;border-bottom:2px solid #000;padding:3.6pt 0 0 4.1pt}
.idc-row:first-of-type{padding-top:0}
.idc-row:nth-last-child(2){height:auto;border-bottom:0;padding-top:3.8pt}
.idc-row:last-child{height:auto;border-bottom:0;padding-top:6.6pt}
.idc-row:has(br){height:48pt;padding:1.5pt 0 0}
.idc-row:has(br) br{display:none}
.idc-row:has(br) b{display:block;line-height:9.1pt}
.idc-row:has(br) span{display:block;margin:5.8pt 0 0 3.6pt}
.idc-member{font-family:"Times New Roman",Times,"Liberation Serif",serif;font-size:12pt}
.idc-right{padding:0 0 0 4.3pt;font-size:7.5pt;line-height:9.1pt}
.idc-right p{margin:0;font-size:7.5pt;line-height:9.1pt}
.idc-right b{font-size:7.6pt}
.idc-row span{font-size:9.75pt}
.idc-row span.idc-member{font-size:12pt}
.idc-right p:nth-child(1){margin-top:2.67pt;line-height:9pt}
.idc-right p:nth-child(2){margin-top:7.55pt;line-height:9.6pt}
.idc-right p.idc-big{margin-top:7.81pt;font-size:10pt;line-height:12.4pt;max-width:290pt}
.idc-right p.idc-big b{font-size:10pt}
.idc-right p.idc-big+p{margin-top:23.9pt}
.idc-right p:has(+p){line-height:9.5pt}
.idc-right p:nth-last-child(2){margin-top:0}
.idc-right p:last-child{margin-top:26.25pt;font-size:7.6pt;line-height:9.5pt}
.idc .wm-card{position:absolute;inset:auto;left:50%;top:50%;width:405pt;margin-left:-202.5pt;display:block;padding:0;transform:translateY(-50%) rotate(-30deg);font:700 15pt/18pt Helvetica,Arial,"Liberation Sans",sans-serif;color:rgba(176,0,32,.28);text-align:center}
/* On screen the documents are sheets of paper centred on the page; on narrower screens the whole sheet shrinks to the width
   (pinch to zoom in), never a horizontal scroll. Steps keep 794px x zoom inside the viewport minus the 16px gutters. */
@media screen{
  .pdocs{display:flex;flex-direction:column;align-items:center;gap:20px;margin-bottom:28px}
  .pdocs>.coc,.pdocs>.idc{margin:0;box-shadow:0 1px 3px rgba(0,0,0,.18),0 8px 24px rgba(0,0,0,.10)}
  .pdocs>.coc.cc{border:0}
  .cc .coc-page + .coc-page{border-top:1px dashed #bbb}
}
@media screen and (max-width:860px){.coc.cc,.idc{zoom:.9}}
@media screen and (max-width:760px){.coc.cc,.idc{zoom:.8}}
@media screen and (max-width:680px){.coc.cc,.idc{zoom:.7}}
@media screen and (max-width:600px){.coc.cc,.idc{zoom:.6}}
@media screen and (max-width:520px){.coc.cc,.idc{zoom:.52}}
@media screen and (max-width:450px){.coc.cc,.idc{zoom:.48}}
@media screen and (max-width:414px){.coc.cc,.idc{zoom:.45}}
@media screen and (max-width:389px){.coc.cc,.idc{zoom:.42}}
@media screen and (max-width:365px){.coc.cc,.idc{zoom:.4}}
@media screen and (max-width:349px){.coc.cc,.idc{zoom:.35}}
@media print{
  html,body{margin:0}
  .coc.cc{width:595.3pt;margin:0;border:0}
  .cc .coc-page{height:841pt;min-height:0;break-after:page;page-break-after:always}
  .cc .coc-page:last-child{break-after:auto;page-break-after:auto}
  .cc .coc-page + .coc-page{break-before:auto;page-break-before:auto}
  .idc{margin:0 0 0 37pt;position:relative;top:37pt;break-before:page;page-break-before:always}
}

/* ---------- Phone fit (AB#518): the page never ends up wider than the phone.
   iPhone Safari zooms the whole page in when a field with letters smaller than 16px gets the focus, and it does not zoom back:
   the screen stays a little wider than the phone until the person pinches it out. So on touch screens and narrow screens every
   field uses 16px. Desktop keeps 14px. Guarded by PhoneFitTests. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* A one-column block is as wide as the page, never as wide as its longest content (a list of long names in a field,
   a wide table inside its own scroll area). */
:where(.stack,.scope,.panel,.hero,.addon,.addons,.adv,.egroup,.plist,.contact,.docs,.doc,.orglist,.orgtree,.field,.pbfield,.files-reader,.tkt-body,.import-box,.policy,.qcard,.aibox,.cert){grid-template-columns:minmax(0,1fr)}
:where(main) :where(select,input,textarea){max-width:100%}
@media (pointer:coarse),(max-width:720px){
  :root :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]){font-size:16px!important}
  input[type=date],input[type=time],input[type=datetime-local]{min-width:0;max-width:100%}
}
:where(.plan) ul{grid-template-columns:minmax(0,1fr)}
/* Rows of small choice buttons go to a second row when they do not fit. */
.seg,.seg2{flex-wrap:wrap}
/* The four totals of the institution panel stay two by two on a phone. */
@media (max-width:480px){.kpis{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}}
@media (max-width:360px){
  /* Small phones: a long button text or a long benefit value breaks into two lines instead of pushing the page wider. */
  main .btn,main .nav>.btn.ghost,.yn button{white-space:normal;max-width:100%;flex-shrink:1}
  main .btn{text-align:center}
  .plan li b{white-space:normal;text-align:right}
}
/* No frame around the page: the browser's own 8px margin kept the test banner and the top bar away from the screen edges.
   Screen only; printed pages keep their margins. */
@media screen{body{margin:0}}
