/* input(1326,35): run-time error CSS1034: Expected closing parenthesis, found '(' */
/* Credentium Wallet design system (redesign 2026): tokens, components, page shells, icons, in one file.
   Every class carries the "cw-" prefix. It is the wallet's only sheet of its own: the layouts add the shared fonts,
   the shared rules of the skip link and the focus ring (a11y.css) and, where a page shows it, the language
   suggestion (geobar.css). No framework lies under it, so what a page relies on is written here.
   Source of the design: Docs/redesign-wallet (HANDOFF.md, previews, screenshots). */

/* ---------- Tokeny ---------- */
.cw-app{--bg:#F5F5F3;--surface:#FFFFFF;--tile:#F0EFEB;--hover:#F3F3F0;--line:#E7E6E2;--line-2:#EFEEEA;--line-strong:#8F8D86;--text:#1A1A18;--text-2:#4A4945;--muted:#62615C;--accent:#3D6B34;--accent-2:#335A2B;--on-accent:#FFFFFF;--soft:#EEF4EA;--soft-text:#2C5025;--ok:#2C5025;--ok-bg:#EEF4EA;--info:#1E4FB8;--info-bg:#EAF0FB;--bad:#A0281C;--bad-bg:#FCEDEA;--warn:#8A4B08;--warn-bg:#FDF1E1;--danger:#B42318;--scrim:rgba(26,26,24,.42);--pop:0 16px 40px -12px rgba(0,0,0,.22);--doc-shadow:0 1px 2px rgba(0,0,0,.06),0 24px 48px -22px rgba(0,0,0,.38);--glow:rgba(61,107,52,.13)}
.cw-app[data-theme="dark"]{--bg:#121311;--surface:#1A1B19;--tile:#232522;--hover:#20221F;--line:#2E302C;--line-2:#252724;--line-strong:#73766F;--text:#ECEDEA;--text-2:#C9CBC5;--muted:#A6A8A2;--accent:#8CC67A;--accent-2:#9DD38B;--on-accent:#0F1A0C;--soft:#1E2A1B;--soft-text:#B8DFAB;--ok:#B8DFAB;--ok-bg:#1E2A1B;--info:#A9C4F5;--info-bg:#1A2338;--bad:#F6A99F;--bad-bg:#351A17;--warn:#F3C27F;--warn-bg:#33240F;--danger:#F97066;--scrim:rgba(0,0,0,.62);--pop:0 16px 40px -12px rgba(0,0,0,.7);--doc-shadow:0 30px 60px -24px rgba(0,0,0,.8);--glow:rgba(140,198,122,.16)}
/* "System" follows the device setting: the dark tokens again, under the media query. */
@media (prefers-color-scheme:dark){.cw-app[data-theme="system"]{--bg:#121311;--surface:#1A1B19;--tile:#232522;--hover:#20221F;--line:#2E302C;--line-2:#252724;--line-strong:#73766F;--text:#ECEDEA;--text-2:#C9CBC5;--muted:#A6A8A2;--accent:#8CC67A;--accent-2:#9DD38B;--on-accent:#0F1A0C;--soft:#1E2A1B;--soft-text:#B8DFAB;--ok:#B8DFAB;--ok-bg:#1E2A1B;--info:#A9C4F5;--info-bg:#1A2338;--bad:#F6A99F;--bad-bg:#351A17;--warn:#F3C27F;--warn-bg:#33240F;--danger:#F97066;--scrim:rgba(0,0,0,.62);--pop:0 16px 40px -12px rgba(0,0,0,.7);--doc-shadow:0 30px 60px -24px rgba(0,0,0,.8);--glow:rgba(140,198,122,.16)}}

/* ---------- The reset under the pages ---------- */
/* Until the redesign was finished Bootstrap's reset and the sheets of the old views lay under every page but the
   account pages. What they still did for the pages of this system is the wallet's own rule now. Each is written
   with the weight it had there (the scope adds none), so that the rules of the components win as they did. */
.cw-app{-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
/* An anchor without an address (a value the page did not take for one safe link) is text, not a link. */
:where(.cw-app) a:not([href]):not([class]){color:inherit;text-decoration:none}
/* A picture does not stand on the baseline of a line of text, with a gap under it. */
:where(.cw-app) :is(img,svg){vertical-align:middle}
:where(.cw-app) progress{vertical-align:baseline}
/* Code (a key, an identifier) reads left to right in every language and may break where its box ends. */
:where(.cw-app) code{direction:ltr;unicode-bidi:bidi-override;overflow-wrap:break-word}
/* A control takes the type of the page; a tick box or a radio button has no margin of its own. */
:where(.cw-app) :is(button,input,select,textarea,optgroup){margin:0;font-family:inherit;font-size:inherit;line-height:inherit}
/* A search field is drawn by its frame: without the browser's own decoration and clear button. */
:where(.cw-app) [type="search"]{-webkit-appearance:textfield;appearance:textfield;outline-offset:-2px}
:where(.cw-app) ::-webkit-search-decoration{-webkit-appearance:none}
/* On a phone a button is at least 44 px tall: the size of a fingertip (HANDOFF, section 8). */
@media (max-width:767px){:where(.cw-app) button{min-height:44px;display:inline-flex;align-items:center}}

/* ---------- Podstawy ---------- */
.cw-app{position:relative;min-height:100vh;background:var(--bg);color:var(--text);font-family:Outfit,"IBM Plex Sans Arabic",system-ui,sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
.cw-app *,.cw-app *::before,.cw-app *::after{box-sizing:border-box}
.cw-app :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* The shared sheet (a11y.css, written for the issuer panel's light pages) gives links, buttons and everything in
   the Tab order a near-black ring with !important: on the dark theme it could not be seen. The ring takes the
   accent of the theme, with the same force (and more weight than the shared rule for a tick box: the scope is
   named twice); so do the offsets below that differ from the shared 2 px. */
.cw-app.cw-app :focus-visible{outline-color:var(--accent)!important}
:where(.cw-app) a{color:var(--accent)}
:where(.cw-app) a:hover{color:var(--accent-2)}
.cw-app :is(h1,h2,h3,h4,p,dl,dd,ul,ol,figure){margin:0}
.cw-app ul.cw-plain,.cw-app ol.cw-plain{list-style:none;padding:0}
:where(.cw-app) button{font:inherit;color:inherit}
.cw-i-dot{--i:radial-gradient(circle,#000 0 38%,transparent 40%)}
.cw-muted{color:var(--muted)}.cw-text-2{color:var(--text-2)}
.cw-sm{font-size:13px}.cw-xs{font-size:12px}.cw-strong{font-weight:500}
.cw-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px}
.cw-grow{flex:1}.cw-nowrap{white-space:nowrap}.cw-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.cw-stack{display:flex;flex-direction:column}.cw-row{display:flex;align-items:center}.cw-wrap{flex-wrap:wrap}
.cw-g4{gap:4px}.cw-g6{gap:6px}.cw-g8{gap:8px}.cw-g12{gap:12px}.cw-g16{gap:16px}.cw-g20{gap:20px}.cw-g24{gap:24px}.cw-g32{gap:32px}
.cw-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cw-skip{position:absolute;inset-inline-start:16px;top:-80px;z-index:50}.cw-skip:focus{top:12px}

/* ---------- Typografia ---------- */
.cw-t-display{font-size:44px;font-weight:500;letter-spacing:-.03em;line-height:1.08}
.cw-t-page{font-size:32px;font-weight:500;letter-spacing:-.02em;line-height:1.15}
.cw-t-sec{font-size:20px;font-weight:500;letter-spacing:-.01em;line-height:1.3}
.cw-t-card{font-size:16px;font-weight:500;line-height:1.35}
.cw-t-label{font-size:13px;font-weight:500}
.cw-t-eyebrow{font-size:12px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}

/* ---------- Ikony ---------- */
.cw-ic{display:inline-block;width:18px;height:18px;flex:none;background-color:currentColor;-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
.cw-ic.cw-s14{width:14px;height:14px}.cw-ic.cw-s16{width:16px;height:16px}.cw-ic.cw-s20{width:20px;height:20px}.cw-ic.cw-s22{width:22px;height:22px}.cw-ic.cw-s28{width:28px;height:28px}
.cw-app[dir="rtl"] .cw-ic.cw-flip{transform:scaleX(-1)}
.cw-i-grid{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'><rect x='4' y='4' width='6.5' height='6.5' rx='1.5'/><rect x='13.5' y='4' width='6.5' height='6.5' rx='1.5'/><rect x='4' y='13.5' width='6.5' height='6.5' rx='1.5'/><rect x='13.5' y='13.5' width='6.5' height='6.5' rx='1.5'/></svg>")}
.cw-i-award{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'><circle cx='12' cy='9' r='5.5'/><path d='M8.8 13.6L7.8 21l4.2-2.2 4.2 2.2-1-7.4'/></svg>")}
.cw-i-layers{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'><path d='M12 3.5l8.5 4.5-8.5 4.5L3.5 8z'/><path d='M3.5 12.5l8.5 4.5 8.5-4.5'/><path d='M3.5 16.5l8.5 4.5 8.5-4.5'/></svg>")}
.cw-i-user{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'><circle cx='12' cy='8' r='4'/><path d='M4 20c1.5-4 4.5-6 8-6s6.5 2 8 6'/></svg>")}
.cw-i-search{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-4-4'/></svg>")}
.cw-i-globe{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'><circle cx='12' cy='12' r='8.5'/><path d='M3.5 12h17M12 3.5c2.3 2.6 2.3 14.4 0 17M12 3.5c-2.3 2.6-2.3 14.4 0 17'/></svg>")}
.cw-i-down{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>")}
.cw-i-right{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6l6 6-6 6'/></svg>")}
.cw-i-back{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M19 12H5M11 6l-6 6 6 6'/></svg>")}
.cw-i-arrow{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>")}
.cw-i-ext{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/></svg>")}
.cw-i-share{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'><circle cx='18' cy='5.5' r='2.5'/><circle cx='6' cy='12' r='2.5'/><circle cx='18' cy='18.5' r='2.5'/><path d='M8.2 10.8l7.6-4.1M8.2 13.2l7.6 4.1'/></svg>")}
.cw-i-download{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v11M7 10l5 5 5-5M5 20h14'/></svg>")}
.cw-i-upload{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 15V4M7 9l5-5 5 5M5 20h14'/></svg>")}
.cw-i-more{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><circle cx='5' cy='12' r='1.7'/><circle cx='12' cy='12' r='1.7'/><circle cx='19' cy='12' r='1.7'/></svg>")}
.cw-i-plus{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>")}
.cw-i-minus{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'><path d='M5 12h14'/></svg>")}
.cw-i-up{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M6 15l6-6 6 6'/></svg>")}
.cw-i-check{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>")}
.cw-i-check-c{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='8.5'/><path d='M8.5 12.2l2.4 2.4 4.6-4.8'/></svg>")}
.cw-i-x{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'><path d='M6 6l12 12M18 6L6 18'/></svg>")}
.cw-i-lock{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'><rect x='5' y='10' width='14' height='10' rx='2'/><path d='M8 10V7a4 4 0 0 1 8 0v3'/></svg>")}
.cw-i-link{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/></svg>")}
.cw-i-linkedin{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M4 9h3.5v11H4zM5.75 3.5a2 2 0 1 1 0 4 2 2 0 0 1 0-4zM10 9h3.3v1.5c.5-.9 1.7-1.8 3.4-1.8 3.6 0 4.3 2.3 4.3 5.4V20h-3.5v-5.2c0-1.3 0-2.9-1.8-2.9s-2.1 1.4-2.1 2.8V20H10z'/></svg>")}
.cw-i-xlogo{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M4 4h4.5L20 20h-4.5zM19.5 4l-6.6 7.4M4.5 20l6.6-7.4'/></svg>")}
.cw-i-facebook{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><circle cx='12' cy='12' r='8.5'/><path d='M13.5 20.5V13h2.5l.4-3h-2.9V8.4c0-.8.3-1.4 1.4-1.4h1.6V4.4'/></svg>")}
.cw-i-trash{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/></svg>")}
.cw-i-edit{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M4 20h4L19 9l-4-4L4 16zM13 7l4 4'/></svg>")}
.cw-i-copy{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'><rect x='8' y='8' width='12' height='12' rx='2'/><path d='M16 8V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3'/></svg>")}
.cw-i-info{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'><circle cx='12' cy='12' r='8.5'/><path d='M12 11v5M12 8h.01'/></svg>")}
.cw-i-warn{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4l9 16H3z'/><path d='M12 10v4M12 17h.01'/></svg>")}
.cw-i-ban{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9'><circle cx='12' cy='12' r='8.5'/><path d='M6 6l12 12'/></svg>")}
.cw-i-clock{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><circle cx='12' cy='12' r='8.5'/><path d='M12 7v5l3 2'/></svg>")}
.cw-i-shield{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l7 3v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6z'/><path d='M9 12l2 2 4-4'/></svg>")}
.cw-i-mail{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><rect x='3.5' y='5.5' width='17' height='13' rx='2'/><path d='M4 7l8 6 8-6'/></svg>")}
.cw-i-key{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><circle cx='8' cy='15' r='4'/><path d='M11 12l8.5-8.5M16.5 6.5l3 3M14.5 8.5l2 2'/></svg>")}
.cw-i-logout{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M10 5H5v14h5M14 8l4 4-4 4M18 12H9'/></svg>")}
.cw-i-star{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'><path d='M12 3l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.4 6.8 19.1l1-5.8L3.5 9.2l5.9-.9z'/></svg>")}
.cw-i-help{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><circle cx='12' cy='12' r='8.5'/><path d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6M12 17h.01'/></svg>")}
.cw-i-building{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'><path d='M4 21V9l8-5 8 5v12M9 21v-6h6v6'/></svg>")}
.cw-i-grip{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><circle cx='9' cy='6' r='1.6'/><circle cx='15' cy='6' r='1.6'/><circle cx='9' cy='12' r='1.6'/><circle cx='15' cy='12' r='1.6'/><circle cx='9' cy='18' r='1.6'/><circle cx='15' cy='18' r='1.6'/></svg>")}
.cw-i-camera{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M4 8h3l2-3h6l2 3h3v11H4z'/><circle cx='12' cy='13' r='3.5'/></svg>")}
.cw-i-calendar{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><rect x='4' y='5' width='16' height='15' rx='2'/><path d='M4 10h16M9 3v4M15 3v4'/></svg>")}
.cw-i-file{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M7 3h7l4 4v14H7z'/><path d='M10 12h5M10 16h5'/></svg>")}
.cw-i-eye{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'><path d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z'/><circle cx='12' cy='12' r='3'/></svg>")}
.cw-i-eye-off{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'><path d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z'/><circle cx='12' cy='12' r='3'/><path d='M4 4l16 16' stroke-linecap='round'/></svg>")}
.cw-i-refresh{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12a8 8 0 1 0 2.5-5.8M4 4v4h4'/></svg>")}
.cw-i-qr{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'><rect x='4' y='4' width='6' height='6'/><rect x='14' y='4' width='6' height='6'/><rect x='4' y='14' width='6' height='6'/><path d='M14 14h2v2h-2zM18 18h2v2h-2zM14 19h2M19 14v2'/></svg>")}
.cw-i-phone{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'><rect x='7' y='3' width='10' height='18' rx='2'/><path d='M11 18h2'/></svg>")}
.cw-i-moon{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z'/></svg>")}
.cw-i-seal{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'><path d='M12 2.8l2.2 1.6 2.7-.2.9 2.6 2.2 1.6-.8 2.6.8 2.6-2.2 1.6-.9 2.6-2.7-.2L12 21.2l-2.2-1.6-2.7.2-.9-2.6L4 15.6l.8-2.6L4 10.4l2.2-1.6.9-2.6 2.7.2z'/><path d='M8.8 12.2l2.2 2.2 4.2-4.4'/></svg>")}

/* ---------- Przyciski ---------- */
.cw-btn{height:44px;padding:0 16px;border-radius:10px;border:1px solid transparent;font-size:15px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;text-decoration:none;white-space:nowrap;background:none;color:var(--text)}
.cw-app a.cw-btn{color:var(--text)}
.cw-btn-primary,.cw-app a.cw-btn-primary{background:var(--accent);color:var(--on-accent)}
.cw-btn-primary:hover{background:var(--accent-2)}
.cw-btn-secondary{background:var(--surface);border-color:var(--line-strong)}
.cw-btn-secondary:hover,.cw-btn-ghost:hover{background:var(--hover)}
.cw-btn-danger{border-color:var(--danger);color:var(--danger)}
.cw-btn-danger-solid{background:var(--danger);color:#fff}
.cw-app[data-theme="dark"] .cw-btn-danger-solid{color:#1A0806}
.cw-btn-sm{height:36px;padding:0 12px;font-size:14px;border-radius:9px}
.cw-btn-lg{height:50px;padding:0 22px;border-radius:12px}
.cw-btn-icon{width:44px;padding:0}.cw-btn-sm.cw-btn-icon{width:36px}
.cw-btn-block{width:100%}
.cw-btn:disabled,.cw-btn[aria-disabled="true"]{background:var(--tile);color:var(--muted);border-color:transparent;cursor:not-allowed}
.cw-link-btn{background:none;border:0;padding:0;color:var(--accent);font-weight:500;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:6px;min-height:36px}

/* ---------- Statusy ---------- */
.cw-chip{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 9px 0 7px;border-radius:999px;font-size:12px;font-weight:500;white-space:nowrap;flex:none}
.cw-chip .cw-ic{width:13px;height:13px}
.cw-chip-ok{background:var(--ok-bg);color:var(--ok)}.cw-chip-neutral{background:var(--tile);color:var(--text-2)}.cw-chip-new{background:var(--info-bg);color:var(--info)}.cw-chip-bad{background:var(--bad-bg);color:var(--bad)}.cw-chip-warn{background:var(--warn-bg);color:var(--warn)}
.cw-tag{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--text-2)}
.cw-tag::before{content:"";width:8px;height:8px;border-radius:3px;background:var(--tag,var(--line-strong))}

/* ---------- Powierzchnie ---------- */
.cw-card{background:var(--surface);border:1px solid var(--line);border-radius:16px}
.cw-pad{padding:24px}.cw-pad-sm{padding:16px 20px}
.cw-divider{height:1px;background:var(--line-2);border:0}
.cw-sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cw-tile{background:var(--tile);border-radius:12px;display:flex;align-items:center;justify-content:center}

/* ---------- Formularze ---------- */
.cw-field{display:flex;flex-direction:column;gap:6px}
.cw-field-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.cw-input{height:44px;padding:0 12px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--text);font:inherit;width:100%}
textarea.cw-input{height:auto;padding:10px 12px;resize:vertical;line-height:1.5}
select.cw-input{appearance:none;-webkit-appearance:none;padding-inline-end:36px;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 18px) 19px,calc(100% - 13px) 19px;background-size:5px 5px;background-repeat:no-repeat}
.cw-app[dir="rtl"] select.cw-input{background-position:13px 19px,18px 19px}
.cw-input::placeholder{color:var(--muted)}
.cw-input-group{display:flex;align-items:stretch;border:1px solid var(--line-strong);border-radius:10px;overflow:hidden;background:var(--surface)}
.cw-input-group .cw-prefix{display:flex;align-items:center;padding:0 12px;background:var(--tile);color:var(--muted);font-size:14px;white-space:nowrap}
.cw-input-group .cw-input{border:0;border-radius:0}
.cw-hint{font-size:12px;color:var(--muted)}
.cw-is-error .cw-input,.cw-is-error .cw-input-group{border-color:var(--bad);box-shadow:0 0 0 1px var(--bad)}
.cw-err{display:flex;gap:6px;align-items:center;font-size:12.5px;color:var(--bad)}
.cw-ok-msg{display:flex;gap:6px;align-items:center;font-size:12.5px;color:var(--ok)}
.cw-checkbox{appearance:none;-webkit-appearance:none;width:20px;height:20px;margin:0;flex:none;border:1.5px solid var(--line-strong);border-radius:6px;background:var(--surface) center/12px 12px no-repeat;cursor:pointer;transition:background-color .12s,border-color .12s}
.cw-checkbox:hover{border-color:var(--text-2)}
.cw-checkbox:checked{background-color:var(--accent);border-color:var(--accent);background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>")}
.cw-app[data-theme="dark"] .cw-checkbox:checked{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1A0C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>")}
.cw-pick-row:has(.cw-checkbox:checked){background:var(--soft)}
.cw-pick-row:has(.cw-checkbox:checked):hover{background:var(--soft)}
.cw-switch{appearance:none;-webkit-appearance:none;margin:0;flex:none;width:44px;height:26px;border-radius:13px;background:var(--line-strong);position:relative;cursor:pointer;transition:background .15s}
.cw-switch::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:inset-inline-start .15s}
.cw-switch:checked{background:var(--accent)}.cw-switch:checked::after{inset-inline-start:21px}
.cw-set-row{display:flex;align-items:flex-start;gap:16px;padding:16px 0;border-top:1px solid var(--line-2)}
.cw-set-row:first-child{border-top:0}
.cw-set-row .cw-lbl{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.cw-set-row .cw-lbl b{font-weight:500}
.cw-set-row .cw-lbl span{font-size:13px;color:var(--muted)}
.cw-seg{display:inline-flex;padding:3px;gap:2px;border-radius:11px;background:var(--tile);max-width:100%}
.cw-seg button,.cw-seg a{height:38px;padding:0 14px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:14px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;text-decoration:none;white-space:nowrap}
.cw-seg [aria-checked="true"],.cw-seg [aria-pressed="true"],.cw-seg [aria-current="true"]{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(0,0,0,.14)}
.cw-code{display:flex;gap:8px}
.cw-code .cw-input{width:48px;height:56px;padding:0;text-align:center;font-size:22px}
.cw-dropzone{border:1.5px dashed var(--line-strong);border-radius:14px;padding:28px 20px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;background:var(--bg)}

/* ---------- Komunikaty ---------- */
.cw-alert{display:flex;gap:12px;padding:14px 16px;border-radius:12px;font-size:14px;line-height:1.45}
.cw-alert .cw-ic{margin-top:1px}
.cw-alert-info{background:var(--info-bg);color:var(--info)}.cw-alert-warn{background:var(--warn-bg);color:var(--warn)}.cw-alert-bad{background:var(--bad-bg);color:var(--bad)}.cw-alert-ok{background:var(--ok-bg);color:var(--ok)}
.cw-toast{position:fixed;inset-inline-start:50%;bottom:28px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:0 8px 0 16px;height:48px;border-radius:12px;background:var(--text);color:var(--bg);font-size:14px;box-shadow:var(--pop);z-index:40}
.cw-app[dir="rtl"] .cw-toast{transform:translateX(50%)}
.cw-empty{border:1.5px dashed var(--line-strong);border-radius:16px;padding:48px 24px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
.cw-empty-art{display:grid;grid-template-columns:repeat(2,26px);gap:6px;margin-bottom:6px}
.cw-empty-art i{display:block;height:26px;border-radius:8px;border:1.5px solid var(--line-strong)}
.cw-empty-art i:nth-child(2){background:var(--soft);border-color:var(--accent)}
.cw-empty-art i:nth-child(4){border-style:dashed}

/* ---------- Menu, okna, arkusze ---------- */
.cw-menu{background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--pop);padding:6px;display:flex;flex-direction:column;min-width:240px;z-index:30}
.cw-menu-item{min-height:44px;padding:8px 12px;border:0;border-radius:8px;background:none;color:var(--text);font-size:14px;text-align:start;display:flex;align-items:center;gap:12px;cursor:pointer;text-decoration:none;width:100%}
.cw-app a.cw-menu-item{color:var(--text)}
.cw-menu-item:hover{background:var(--hover)}
.cw-menu-item .cw-mi-ico{width:36px;height:36px;border-radius:8px;background:var(--tile);display:flex;align-items:center;justify-content:center;color:var(--muted);flex:none;font-size:10px;font-weight:600}
.cw-menu-item .cw-mi-txt{display:flex;flex-direction:column}
.cw-menu-item .cw-mi-txt small{font-size:12px;color:var(--muted)}
.cw-menu-sep{height:1px;background:var(--line-2);margin:6px 4px}
.cw-menu-title{padding:10px 12px 6px;font-size:12px;color:var(--muted)}
.cw-pop{position:absolute;top:calc(100% + 8px);z-index:30}
.cw-pop-end{inset-inline-end:0}.cw-pop-start{inset-inline-start:0}
.cw-scrim{position:fixed;inset:0;background:var(--scrim);z-index:60;display:flex;align-items:flex-start;justify-content:center;padding:96px 16px 24px;overflow:auto}
.cw-dialog{width:520px;max-width:100%;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--pop);display:flex;flex-direction:column}
.cw-dialog.cw-wide{width:640px}
.cw-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 24px 4px}
/* The close button keeps its size beside a title of two lines (a flex item shrinks by default, and here the title is what gives way). */
.cw-dialog-head>.cw-btn-icon{flex:none}
/* ...so the title is what gives way: a long unbroken word breaks instead of pushing the button out of the head. */
.cw-dialog-head h2{min-width:0;overflow-wrap:anywhere}
.cw-dialog-body{padding:12px 24px 8px;display:flex;flex-direction:column;gap:18px}
.cw-dialog-foot{display:flex;justify-content:flex-end;gap:8px;padding:16px 24px 20px;margin-top:8px;border-top:1px solid var(--line-2)}
.cw-steps{display:flex;gap:6px}.cw-steps i{height:4px;flex:1;border-radius:2px;background:var(--line)}.cw-steps i.cw-on{background:var(--accent)}
.cw-grabber{display:none}

/* ---------- Dokument (miniatury i certyfikat) ---------- */
.cw-thumb{background:var(--tile);border-radius:10px;display:flex;align-items:center;justify-content:center;flex:none;overflow:hidden}
.cw-thumb.cw-s{width:64px;height:48px;border-radius:8px}
.cw-thumb.cw-m{width:100%;aspect-ratio:4/3;border-radius:12px}
.cw-doc{display:block;box-shadow:0 2px 8px rgba(0,0,0,.14)}
.cw-doc-p{width:40%;aspect-ratio:1/1.414;background:#FBF8F0;outline:1px solid #3B3F4A;outline-offset:-4px}
.cw-doc-g{width:62%;aspect-ratio:1.414/1;background:#FBF8F0;outline:1px solid #A88745;outline-offset:-4px}
.cw-doc-w{width:62%;aspect-ratio:1.414/1;background:#fff;box-shadow:0 0 0 1px #D9D8D3,0 2px 8px rgba(0,0,0,.14);background-image:linear-gradient(#1A1A18,#1A1A18),linear-gradient(#D9D8D3,#D9D8D3),linear-gradient(#D9D8D3,#D9D8D3);background-size:46% 6%,60% 4%,36% 4%;background-position:12% 28%,12% 46%,12% 58%;background-repeat:no-repeat}
.cw-thumb.cw-m .cw-doc-p{width:34%}.cw-thumb.cw-m .cw-doc-g,.cw-thumb.cw-m .cw-doc-w{width:56%}
.cw-thumb.cw-dim{opacity:.55}
.cw-cert{--w:250px;width:var(--w);aspect-ratio:1/1.414;font-size:calc(var(--w)/20);background:#FBF8F0;padding:.75em;box-shadow:var(--doc-shadow);font-family:Georgia,"Times New Roman",serif;color:#1D2433;flex:none}
.cw-cert-in{height:100%;border:1.2px solid #3B3F4A;display:flex;flex-direction:column;align-items:center;text-align:center;padding:2.4em 1.1em 1.1em}
.cw-cert-logo{width:1.5em;height:1.05em;background:#24435E;border-radius:1px}
.cw-cert-title{margin-top:3.2em;font-size:1em;font-weight:700;line-height:1.3}
.cw-cert-lead{margin-top:2em;font-size:.56em;font-style:italic;color:#6F6A5B}
.cw-cert-name{margin-top:.6em;font-size:1.08em;font-style:italic;color:#8E6F31}
.cw-cert-rule{margin-top:.75em;width:4.5em;height:1px;background:#C9B98F}
.cw-cert-sign{margin-top:auto;width:100%;display:flex;justify-content:space-between;font-size:.48em;gap:1em}
.cw-cert-sign span{flex:1;max-width:44%;border-top:1px solid #8A8574;padding-top:.5em}
.cw-cert.cw-void{filter:grayscale(1);opacity:.6}
/* Odznaka (opcjonalna, osobny obrazek wyróżnienia — nie niesie wartości poświadczenia) */
.cw-badge{--b:72px;width:var(--b);height:var(--b);border-radius:50%;flex:none;position:relative;display:flex;align-items:center;justify-content:center;color:#fff;background:radial-gradient(circle at 30% 25%,#3E6A8F,#1E3A55 70%);box-shadow:0 0 0 calc(var(--b)*.05) #fff,0 0 0 calc(var(--b)*.08) #C9B98F,0 10px 24px -8px rgba(0,0,0,.45)}
.cw-badge::before{content:"";position:absolute;inset:calc(var(--b)*.1);border-radius:50%;border:1px dashed rgba(255,255,255,.45)}
.cw-badge .cw-ic{width:calc(var(--b)*.42);height:calc(var(--b)*.42)}
.cw-stage .cw-badge-pin{position:absolute;top:18px;inset-inline-end:18px}
.cw-thumb.cw-s{position:relative;overflow:visible}
.cw-thumb .cw-badge-mini{--b:22px;position:absolute;inset-inline-end:-6px;bottom:-6px;box-shadow:0 0 0 2px var(--surface)}
.cw-thumb .cw-badge-mini::before{display:none}
.cw-stage{background:var(--tile);border-radius:14px;display:flex;align-items:center;justify-content:center;padding:32px;position:relative;overflow:hidden}

/* ---------- Listy i karty poświadczeń ---------- */
.cw-list{display:flex;flex-direction:column}
.cw-cred-row{display:flex;align-items:center;gap:16px;padding:14px 20px;border-top:1px solid var(--line-2);text-decoration:none;color:var(--text)}
.cw-app a.cw-cred-row{color:var(--text)}
.cw-cred-row:first-child{border-top:0}
.cw-cred-row:hover{background:var(--hover)}
.cw-cred-row .cw-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.cw-cred-row .cw-meta b{font-weight:500}
.cw-cred-row .cw-meta span{font-size:13px;color:var(--muted)}
.cw-cred-row .cw-chips{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.cw-cred-row .cw-col-date{width:96px;font-size:13px;color:var(--muted);flex:none}
.cw-cred-row .cw-go{color:var(--muted)}
.cw-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}
.cw-cred-tile{display:flex;flex-direction:column;gap:10px;text-decoration:none;color:var(--text)}
.cw-app a.cw-cred-tile{color:var(--text)}
.cw-cred-tile .cw-meta{display:flex;flex-direction:column;padding:0 2px}
.cw-cred-tile .cw-meta b{font-weight:500}
.cw-cred-tile .cw-meta span{font-size:13px;color:var(--muted)}
.cw-kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(360px,100%),1fr));column-gap:40px}
.cw-kv>div{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 0;border-bottom:1px solid var(--line-2);min-height:50px}
.cw-kv dt{color:var(--muted);font-size:14px}
.cw-kv dd{text-align:end;font-size:14px;min-width:0}
.cw-acc{border-top:1px solid var(--line-2)}
.cw-acc:first-child{border-top:0}
.cw-acc>summary{list-style:none;min-height:72px;padding:14px 20px;display:flex;align-items:center;gap:14px;cursor:pointer}
.cw-acc>summary::-webkit-details-marker{display:none}
.cw-acc>summary .cw-chev{transition:transform .15s;color:var(--muted)}
.cw-acc[open]>summary .cw-chev{transform:rotate(180deg)}
.cw-acc-ico{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex:none;background:var(--tile);color:var(--muted)}
.cw-acc-ico.cw-on{background:var(--soft);color:var(--soft-text)}
.cw-acc-body{padding:0 20px 20px 74px}
.cw-app[dir="rtl"] .cw-acc-body{padding:0 74px 20px 20px}
.cw-stat{display:flex;flex-direction:column;gap:2px}
.cw-stat b{font-size:28px;font-weight:500;letter-spacing:-.02em;line-height:1.1}
.cw-stat span{font-size:13px;color:var(--muted)}

/* ---------- Szkielet aplikacji (zalogowany) ---------- */
.cw-topbar{position:sticky;top:0;z-index:20;height:60px;padding:0 16px 0 24px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}
.cw-brand{font-size:22px;font-weight:500;letter-spacing:-.02em;color:var(--text);text-decoration:none;width:208px;flex:none}
.cw-app a.cw-brand{color:var(--text)}
.cw-brand sup{font-size:9px}
/* The sign sits half its height above the baseline without making its line taller (on the account pages, which
   never had a reset under them, it is the browser's own superscript). */
.cw-app:not(.cw-auth):not(.cw-state) .cw-brand sup{position:relative;top:-.5em;line-height:0;vertical-align:baseline}
.cw-search{height:40px;width:360px;padding:0 12px;border:1px solid var(--line-strong);border-radius:10px;display:flex;align-items:center;gap:8px;color:var(--muted)}
.cw-search input{flex:1;min-width:0;border:0;outline:0;background:none;font:inherit;color:var(--text)}
.cw-top-btn{height:44px;min-width:44px;padding:0 10px;border:0;border-radius:10px;background:none;color:var(--text-2);font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;position:relative}
.cw-top-btn:hover{background:var(--hover)}
.cw-avatar{width:34px;height:34px;border-radius:50%;background:var(--soft);color:var(--soft-text);display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;flex:none;overflow:hidden}
.cw-avatar.cw-lg{width:96px;height:96px;font-size:30px;font-weight:500}
.cw-avatar.cw-xl{width:120px;height:120px;font-size:38px;font-weight:500}
.cw-only-md,.cw-only-sm{display:none}
.cw-layout{display:flex;min-height:calc(100vh - 60px)}
.cw-sidenav{width:232px;flex:none;padding:20px 12px;display:flex;flex-direction:column;gap:2px;position:sticky;top:60px;align-self:flex-start}
.cw-nav-item{height:42px;padding:0 12px;border-radius:10px;display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;font-size:15px}
.cw-app a.cw-nav-item{color:var(--text)}
.cw-nav-item:hover{background:var(--hover)}
.cw-nav-item[aria-current="page"]{background:var(--surface);box-shadow:0 0 0 1px var(--line);font-weight:500}
.cw-nav-item .cw-cnt{margin-inline-start:auto;font-size:12px;color:var(--muted)}
.cw-content{flex:1;min-width:0;padding:36px 40px 32px 16px;display:flex;flex-direction:column;align-items:flex-start}
.cw-container{width:100%;max-width:1120px;display:flex;flex-direction:column;gap:24px}
.cw-container.cw-narrow{max-width:960px}
.cw-page-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px}
.cw-page-head .cw-titles{display:flex;flex-direction:column;gap:6px;min-width:0}
.cw-page-actions{display:flex;flex-wrap:wrap;gap:8px}
.cw-crumbs{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);flex-wrap:wrap}
.cw-crumbs a{color:var(--muted);text-decoration:none}
.cw-crumbs a:hover{color:var(--text)}
.cw-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.cw-toolbar .cw-search-field{flex:1 1 280px;height:44px;padding:0 12px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);display:flex;align-items:center;gap:8px;color:var(--muted)}
.cw-toolbar .cw-search-field input{flex:1;min-width:0;border:0;outline:0;background:none;font:inherit;color:var(--text)}
.cw-foot{margin-top:auto;width:100%;max-width:1120px;padding-top:40px}
.cw-foot-in{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding-top:16px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.cw-foot-in nav{display:flex;flex-wrap:wrap;gap:6px 20px}
.cw-foot-in a{color:var(--muted);text-decoration:none}
.cw-foot-in a:hover{color:var(--text)}
.cw-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:8px}
.cw-hero .cw-stage{min-height:440px}
.cw-hero-body{padding:28px 24px 20px;display:flex;flex-direction:column;gap:18px}
.cw-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(420px,100%),1fr));gap:24px}

/* ---------- Strony publiczne ---------- */
.cw-pubbar{height:64px;padding:0 24px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}
.cw-pub-main{width:100%;max-width:960px;margin:0 auto;padding:32px 24px 48px;display:flex;flex-direction:column;gap:24px}
.cw-verify{display:flex;align-items:center;gap:14px;padding:16px 20px;border-radius:16px;flex-wrap:wrap}
.cw-verify .cw-v-ico{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none}
.cw-verify-ok{background:var(--ok-bg);color:var(--ok)}.cw-verify-ok .cw-v-ico{background:var(--accent);color:var(--on-accent)}
.cw-verify-bad{background:var(--bad-bg);color:var(--bad)}.cw-verify-bad .cw-v-ico{background:var(--danger);color:#fff}
.cw-verify-warn{background:var(--warn-bg);color:var(--warn)}.cw-verify-warn .cw-v-ico{background:var(--warn);color:var(--surface)}
.cw-verify-neutral{background:var(--tile);color:var(--text-2)}.cw-verify-neutral .cw-v-ico{background:var(--line-strong);color:var(--surface)}
.cw-pub-foot{border-top:1px solid var(--line);background:var(--surface)}
.cw-pub-foot-in{max-width:960px;margin:0 auto;padding:24px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;font-size:13px;color:var(--muted)}
.cw-pub-foot-in a{color:var(--muted);text-decoration:none}

/* ---------- Konto (logowanie) ---------- */
.cw-auth{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);min-height:100vh}
.cw-auth-aside{background:var(--soft);color:var(--soft-text);padding:40px 48px;display:grid;grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);gap:32px;position:relative;overflow:hidden}
.cw-auth-main{display:flex;flex-direction:column;padding:24px 32px}
.cw-auth-form{width:100%;max-width:400px;margin:auto;display:flex;flex-direction:column;gap:20px;padding:32px 0}
.cw-benefits{display:flex;flex-direction:column;gap:18px}
.cw-benefits li{display:flex;gap:14px;align-items:flex-start}
.cw-benefits .cw-b-ico{width:36px;height:36px;border-radius:10px;background:var(--surface);color:var(--accent);display:flex;align-items:center;justify-content:center;flex:none}
.cw-app[data-theme="dark"] .cw-benefits .cw-b-ico{background:var(--tile)}

/* ---------- Moment (nowe poświadczenie) ---------- */
@keyframes cr-rise{from{opacity:0;transform:translateY(48px) rotateX(22deg) scale(.95);filter:blur(12px)}to{opacity:1;transform:none;filter:none}}
@keyframes cr-up{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes cr-fade{from{opacity:0}to{opacity:1}}
@keyframes cr-ring{from{opacity:0;transform:translate(-50%,-50%) scale(.6)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes cr-sheen{from{transform:translateX(-160%) skewX(-20deg)}to{transform:translateX(260%) skewX(-20deg)}}
@keyframes cr-stamp{0%{opacity:0;transform:scale(1.7) rotate(-14deg)}65%{opacity:1;transform:scale(.92) rotate(0)}100%{opacity:1;transform:scale(1)}}
@keyframes cr-ripple{from{opacity:.55;transform:scale(1)}to{opacity:0;transform:scale(2.6)}}
@keyframes cr-fan1{from{opacity:0;transform:translateX(0) rotate(0)}to{opacity:1;transform:translateX(-64px) rotate(-8deg)}}
@keyframes cr-fan2{from{opacity:0;transform:translateX(0) rotate(0)}to{opacity:1;transform:translateX(64px) rotate(8deg)}}
.cw-moment{min-height:100vh;display:flex;flex-direction:column;position:relative;overflow:hidden}
.cw-moment .cw-glow{position:absolute;left:50%;top:340px;width:900px;height:900px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(closest-side,var(--glow),transparent);pointer-events:none}
.cw-moment .cw-ring{position:absolute;left:50%;top:340px;transform:translate(-50%,-50%);border-radius:50%;border:1px solid var(--line);pointer-events:none;animation:cr-ring 1.6s cubic-bezier(.16,.84,.24,1) both}
.cw-m-stage{perspective:1200px;position:relative}
.cw-cr-rise{animation:cr-rise 1.1s cubic-bezier(.16,.84,.24,1) .35s both}
.cw-cr-sheen{position:absolute;top:-20%;left:0;width:45%;height:140%;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.75),rgba(255,255,255,0));transform:translateX(-160%) skewX(-20deg);animation:cr-sheen 1.2s ease-in-out 1.35s both;pointer-events:none}
.cw-cr-c1{animation:cr-up .5s ease 1.9s both}.cw-cr-c2{animation:cr-up .5s ease 2.25s both}.cw-cr-c3{animation:cr-up .5s ease 2.6s both}
.cw-cr-stamp{animation:cr-stamp .6s cubic-bezier(.3,1.4,.5,1) 3s both}
.cw-cr-ripple{animation:cr-ripple 1s ease-out 3.25s both}
.cw-cr-t0{animation:cr-up .6s ease .1s both}.cw-cr-t1{animation:cr-up .7s ease 3.3s both}.cw-cr-t2{animation:cr-up .7s ease 3.5s both}.cw-cr-t3{animation:cr-fade .8s ease 3.8s both}
.cw-cr-fan1{animation:cr-fan1 .8s cubic-bezier(.16,.84,.24,1) 1.1s both}.cw-cr-fan2{animation:cr-fan2 .8s cubic-bezier(.16,.84,.24,1) 1.2s both}
.cw-seal{position:absolute;inset-inline-end:-26px;bottom:-22px;width:64px;height:64px}
.cw-seal .cw-r{position:absolute;inset:0;border-radius:50%;border:2px solid var(--accent)}
.cw-seal .cw-s{position:absolute;inset:0;border-radius:50%;background:var(--accent);color:var(--on-accent);display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 5px var(--bg)}
.cw-vpill{height:34px;padding:0 12px 0 8px;border-radius:999px;background:var(--surface);border:1px solid var(--line);display:flex;align-items:center;gap:6px;font-size:13px}
.cw-vpill .cw-ic{color:var(--accent)}
/* The knob of a switch and other drawn parts are ::before and ::after, which "*" does not reach: named here. */
@media (prefers-reduced-motion:reduce){.cw-app *,.cw-app *::before,.cw-app *::after{animation:none!important;transition:none!important}.cw-cr-sheen{display:none}}

/* ---------- Tablet 768–1199 ---------- */
@media (max-width:1199px){
  .cw-brand{width:auto}
  .cw-search{display:none}
  .cw-only-md{display:inline-flex}
  .cw-lang-name{display:none}
  .cw-sidenav{width:88px;padding:16px 8px;gap:6px;background:var(--surface);border-inline-end:1px solid var(--line);min-height:calc(100vh - 60px)}
  .cw-nav-item{height:auto;min-height:60px;flex-direction:column;justify-content:center;gap:3px;padding:6px 2px;font-size:11px;text-align:center}
  .cw-nav-item .cw-ic{width:22px;height:22px}
  .cw-nav-item .cw-cnt{display:none}
  .cw-nav-item[aria-current="page"]{background:var(--soft);color:var(--soft-text);box-shadow:none}
  .cw-app a.cw-nav-item[aria-current="page"]{color:var(--soft-text)}
  .cw-content{padding:28px 28px 28px}
}

/* ---------- Telefon < 768 ---------- */
@media (max-width:767px){
  .cw-app{font-size:15px}
  .cw-t-display{font-size:32px}.cw-t-page{font-size:26px}.cw-t-sec{font-size:18px}
  .cw-topbar{height:56px;padding:0 6px 0 16px}
  .cw-brand{font-size:19px}
  .cw-hide-sm{display:none!important}
  .cw-only-sm{display:inline-flex}
  .cw-layout{min-height:calc(100vh - 56px)}
  .cw-sidenav{position:fixed;top:auto;bottom:0;inset-inline:0;width:auto;min-height:0;z-index:25;flex-direction:row;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:6px 8px 22px;border-inline-end:0;border-top:1px solid var(--line);background:var(--surface)}
  .cw-nav-item{min-height:52px;border-radius:0;background:none!important;color:var(--muted)}
  .cw-app a.cw-nav-item{color:var(--muted)}
  .cw-app a.cw-nav-item[aria-current="page"]{color:var(--accent);background:none}
  .cw-content{padding:20px 16px 112px}
  .cw-page-head{align-items:stretch;flex-direction:column;gap:14px}
  .cw-page-actions{width:100%}
  .cw-page-actions>.cw-btn,.cw-page-actions>.cw-pop-wrap{flex:1}
  .cw-page-actions>.cw-pop-wrap>.cw-btn{width:100%}
  .cw-pad{padding:16px}
  .cw-hero{grid-template-columns:minmax(0,1fr);padding:6px}
  .cw-hero .cw-stage{min-height:300px;padding:24px}
  .cw-hero-body{padding:16px 12px 12px}
  .cw-cred-row{padding:12px 14px;gap:12px}
  .cw-cred-row .cw-col-date,.cw-cred-row .cw-chips .cw-chip-ok,.cw-cred-row .cw-chips .cw-chip-neutral{display:none}
  .cw-acc>summary{padding:12px 14px}
  .cw-acc-body{padding:0 14px 16px}
  .cw-app[dir="rtl"] .cw-acc-body{padding:0 14px 16px}
  .cw-kv>div{flex-direction:column;align-items:flex-start;gap:2px}
  .cw-kv dd{text-align:start}
  .cw-scrim{align-items:flex-end;padding:0}
  .cw-dialog,.cw-dialog.cw-wide{width:100%;border-radius:20px 20px 0 0;border-bottom:0;max-height:92vh;max-height:92dvh;overflow:auto}
  .cw-dialog-foot{flex-direction:column-reverse;padding-bottom:28px}
  .cw-dialog-foot .cw-btn{width:100%}
  .cw-grabber{display:block;width:36px;height:4px;border-radius:2px;background:var(--line-strong);margin:10px auto 0}
  .cw-menu.cw-sheet-sm{position:fixed;inset-inline:0;bottom:0;top:auto;border-radius:20px 20px 0 0;padding:8px 8px 28px;z-index:61;min-width:0}
  .cw-sheet-scrim{position:fixed;inset:0;background:var(--scrim);z-index:60}
  .cw-pubbar{height:56px;padding:0 8px 0 16px}
  .cw-pub-main{padding:20px 16px 40px}
  .cw-auth{grid-template-columns:1fr}
  .cw-auth-aside{display:none}
  .cw-auth-main{padding:16px}
  .cw-moment .cw-glow,.cw-moment .cw-ring{top:260px}
  .cw-seal{width:52px;height:52px;inset-inline-end:-18px;bottom:-16px}
  .cw-toast{bottom:96px}
}
@media (min-width:768px){.cw-sheet-scrim{display:none}}

/* ---------- Dark rules for "system" ---------- */
@media (prefers-color-scheme:dark){
  .cw-app[data-theme="system"] .cw-btn-danger-solid{color:#1A0806}
  .cw-app[data-theme="system"] .cw-checkbox:checked{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1A0C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>")}
  .cw-app[data-theme="system"] .cw-benefits .cw-b-ico{background:var(--tile)}
}

/* ---------- Shell: additions made while wiring the design into the app ---------- */
/* The hidden attribute must win over the display values components set (menus, scrims, dialogs). */
.cw-app [hidden]{display:none!important}
/* The skip link keeps the shared cr-skip-link hook (script and accessibility checks key on it); these rules give it the look of a primary button. */
.cw-app a.cw-skip{top:-80px;inset-inline-start:16px;z-index:70;padding:0 16px;border:1px solid transparent;border-radius:10px;background:var(--accent);color:var(--on-accent);font-weight:500;text-decoration:none}
.cw-app a.cw-skip:focus{top:12px}
.cw-app main:focus{outline:none}
.cw-main{width:100%;display:flex;flex-direction:column}
.cw-pop-wrap{position:relative;display:inline-flex}
/* A link inside running text is underlined: colour alone must not be what tells it apart (WCAG 1.4.1). */
:where(.cw-app) :where(p,li,dd,figcaption) a:not([class]){text-decoration:underline;text-underline-offset:2px}
/* The wordmark is Latin and keeps its own direction (dir="ltr"), so that the ® stays behind the name; in a
   right-to-left page it still hugs the edge the bar starts from. */
.cw-app[dir="rtl"] .cw-brand{text-align:right}
.cw-search{margin:0}
.cw-search:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.cw-search input:focus-visible{outline:0}
.cw-menu-head{padding:10px 12px 12px;display:flex;flex-direction:column;border-bottom:1px solid var(--line-2);margin-bottom:6px;min-width:0}
.cw-menu-head b{font-weight:500}
.cw-menu-head span{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.cw-menu form{display:contents}
.cw-menu-item .cw-ic{color:var(--muted)}
.cw-menu-item .cw-mi-end{margin-inline-start:auto}
.cw-menu-item .cw-mi-end.cw-i-check{color:var(--accent)}
.cw-menu-item[aria-checked="true"]{font-weight:500}
.cw-menu-item:not([aria-checked="true"]) .cw-mi-end.cw-i-check{visibility:hidden}
.cw-lang-menu{width:260px;max-height:min(70vh,520px);overflow:auto}
.cw-pop.cw-lang-menu{max-height:min(calc(100vh - 96px),520px)}
/* Scrolls inside itself: at 200% zoom the viewport is shorter than the menu, and "Sign out" must stay reachable. */
.cw-account-menu{width:280px;overflow:auto}
.cw-menu-list{display:flex;flex-direction:column}
/* Nothing else removes the default page margin. */
body:has(>.cw-app){margin:0}
/* Account shell: the pieces the previews carried as inline styles. */
.cw-auth-brand{width:auto;color:var(--soft-text)}
.cw-app a.cw-auth-brand{color:var(--soft-text)}
.cw-auth-lead h2{font-size:36px;color:var(--soft-text)}
.cw-auth-lead p{font-size:16px;max-width:420px}
.cw-auth-top .cw-brand{width:auto}
.cw-auth-foot{justify-content:center;color:var(--muted)}
.cw-auth-foot a{color:var(--muted);text-decoration:none}
.cw-auth-foot a:hover{color:var(--text)}
.cw-auth-main{position:relative}
/* ---------- Pieces the previews carried as inline styles, and real images in place of the drawn ones ---------- */
.cw-top{align-items:flex-start}
.cw-min0{min-width:0}
.cw-switch-label,.cw-check-label{cursor:pointer;min-height:44px}
/* A tick box with one line of words beside it: the label takes the press 12 px above and below the line (44 px
   and more), from the space the form leaves between its rows; nothing moves. */
.cw-check-label{min-height:0;padding-block:12px;margin-block:-12px}
.cw-check-label .cw-checkbox{margin-top:1px}
.cw-seg-count{color:var(--muted);font-weight:400}
.cw-empty-text{max-width:520px}
/* The diploma image where the previews drew a paper sheet, and the badge image where they drew a medallion. */
.cw-thumb img.cw-thumb-doc{max-width:66%;max-height:82%;object-fit:contain;box-shadow:0 2px 8px rgba(0,0,0,.14);background:#fff}
.cw-thumb img.cw-badge-mini{position:absolute;inset-inline-end:-6px;bottom:-6px;width:22px;height:22px;border-radius:50%;object-fit:cover;background:var(--surface);box-shadow:0 0 0 2px var(--surface)}
/* Dialogs: the form between head and foot keeps the dialog's column. */
.cw-dialog-form{display:flex;flex-direction:column;min-height:0}
.cw-dropzone.cw-over{border-color:var(--accent);background:var(--soft)}
.cw-file-button{cursor:pointer}
.cw-file-button:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.cw-file-chosen{padding:12px 14px;border:1px solid var(--line-strong);border-radius:12px}
.cw-file-kind{width:36px;height:36px;border-radius:8px;background:var(--tile);display:flex;align-items:center;justify-content:center;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;font-weight:600;color:var(--muted);flex:none}
/* The line between rows belongs to a row that has a visible row before it: a row hidden by "hide revoked" must
   not leave its line at the top of the card. */
.cw-list>.cw-cred-row{border-top:0}
.cw-list>.cw-cred-row:not([hidden])~.cw-cred-row:not([hidden]){border-top:1px solid var(--line-2)}
/* The three options with their counts do not fit a 320 px screen in every language: they wrap inside the pill. */
.cw-toolbar .cw-seg{flex-wrap:wrap}
@media (max-width:767px){
  /* On a phone a status chip beside the title squeezed it into a column of single words: the chips that stay
     (new, revoked) go under the text, and the row keeps three columns: document, text, arrow. */
  .cw-cred-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:6px}
  .cw-cred-row .cw-thumb,.cw-cred-row .cw-go{grid-row:1 / span 2}
  .cw-cred-row .cw-go{grid-column:3}
  .cw-cred-row .cw-meta{grid-column:2}
  .cw-cred-row .cw-chips{grid-column:2;grid-row:2;justify-content:flex-start}
  .cw-cred-row .cw-chips:not(:has(.cw-chip-new,.cw-chip-bad,.cw-chip-warn)){display:none}
  .cw-cred-row:not(:has(.cw-chip-new,.cw-chip-bad,.cw-chip-warn)) :is(.cw-thumb,.cw-go){grid-row:1}
}
@keyframes cw-spin{to{transform:rotate(360deg)}}
.cw-spin{animation:cw-spin 1.2s linear infinite}
/* Pointer targets are at least 44 px (HANDOFF, section 8); the side menu's entries were 42. */
@media (min-width:1200px){.cw-nav-item{height:44px}}
/* Menus of the signed-in top bar: fixed under the sticky bar. (On the public and account pages the language menu
   hangs from its own button, .cw-pop-wrap.) Below 768 px .cw-sheet-sm turns them all into bottom sheets. */
@media (min-width:768px){
  .cw-shell-menu{position:fixed;top:60px;inset-inline-end:16px;z-index:30;max-height:calc(100vh - 76px)}
  .cw-shell-menu.cw-lang-menu{inset-inline-end:72px}
}
@media (max-width:1199px){
  /* Captions under the icons: some languages name a credential in forty letters, and the rail is 88 px wide. */
  .cw-nav-item>span:not(.cw-ic){max-width:100%;overflow-wrap:anywhere;hyphens:auto;line-height:1.25}
  /* Four pixels more for the caption than the design's 68: "Poświadczenia" then stays on one line in the rail. */
  .cw-sidenav{padding-inline:6px}
  .cw-nav-item{padding-inline:0}
  /* The search field leaves the bar; the magnifier button opens it over the bar. */
  .cw-topbar.cw-search-open .cw-search{display:flex;position:absolute;inset-inline:12px;top:10px;width:auto;background:var(--surface);z-index:2}
  .cw-topbar.cw-search-open>:not(.cw-search){visibility:hidden}
}
@media (max-width:767px){
  .cw-topbar.cw-search-open .cw-search{top:8px}
  .cw-lang-menu.cw-sheet-sm,.cw-account-menu.cw-sheet-sm{width:auto;max-height:80vh}
}

/* ---------- Credential details (W-Szczegoly): pieces the previews carried as inline styles, real images, states ---------- */
.cw-between{justify-content:space-between}
.cw-strong-600{font-weight:600}
.cw-sec-pad{padding:0 4px}
.cw-details-title{overflow-wrap:anywhere}
/* The current page of the breadcrumb is cut with an ellipsis before it takes a line of its own. */
.cw-crumbs>[aria-current="page"]{flex:1 1 80px}
@media (min-width:768px){.cw-details-title{font-size:30px}}
/* The document: the diploma picture where the previews drew a paper sheet. A button when it opens the viewer. */
.cw-doc-view{display:flex;align-items:center;justify-content:center;max-width:100%;padding:0;border:0;background:none;border-radius:2px}
button.cw-doc-view{cursor:zoom-in}
.cw-app button.cw-doc-view:focus-visible{outline-offset:6px!important}
.cw-doc-pic{display:block;width:auto;height:auto;max-width:100%;max-height:354px;background:#fff;box-shadow:var(--doc-shadow)}
.cw-doc-view.cw-void .cw-doc-pic,.cw-doc-view.cw-void~.cw-badge-pic{filter:grayscale(1);opacity:.6}
.cw-doc-none{width:180px;aspect-ratio:1/1.414;display:flex;align-items:center;justify-content:center;border:1.5px dashed var(--line-strong);border-radius:4px;background:var(--surface);color:var(--muted)}
/* The badge picture where the previews drew a medallion: the same ring around it. */
img.cw-badge-pic{--b:76px;width:var(--b);height:var(--b);border-radius:50%;object-fit:cover;flex:none;background:#fff;box-shadow:0 0 0 calc(var(--b)*.05) #fff,0 0 0 calc(var(--b)*.08) #C9B98F,0 10px 24px -8px rgba(0,0,0,.45)}
img.cw-badge-pic.cw-badge-sm{--b:36px;box-shadow:0 0 0 2px #fff,0 0 0 3px #C9B98F}
.cw-badge-strip{padding:10px 12px;border-radius:12px;background:var(--bg);flex-wrap:wrap}
/* Where the words and the button do not fit one line (a long "Download" on a narrow phone), the button goes under. */
.cw-badge-strip>.cw-grow{flex-basis:120px}
.cw-tags{gap:6px 14px}
.cw-tag-dot{width:10px;height:10px;border-radius:3px;flex:none;background:var(--tag,var(--line-strong))}
.cw-vis{margin-top:auto;padding:16px 0;border-top:1px solid var(--line-2);border-bottom:1px solid var(--line-2)}
/* The segmented control made of radio buttons: the option that holds the checked (or focused) input looks it. */
.cw-seg .cw-seg-opt{position:relative;height:38px;padding:0 14px;border-radius:8px;color:var(--muted);font-size:14px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;white-space:nowrap}
.cw-seg .cw-seg-opt:has(input:checked){background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(0,0,0,.14)}
.cw-seg .cw-seg-opt:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.cw-seg .cw-seg-opt:has(input:disabled){cursor:not-allowed;opacity:.55}
.cw-seg[aria-busy="true"] .cw-seg-opt{cursor:progress}
.cw-act{flex:1 1 140px;display:flex}
.cw-menu-share{width:280px}.cw-menu-download{width:300px}.cw-menu-more{width:260px}
.cw-menu-share,.cw-menu-download,.cw-menu-more{max-width:calc(100vw - 32px)}
.cw-menu-list[role="group"]{min-width:0}
.cw-menu-item .cw-mi-txt{min-width:0}
.cw-mi-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}
.cw-menu-item.cw-menu-danger,.cw-menu-item.cw-menu-danger .cw-ic{color:var(--danger)}
.cw-menu-item[aria-busy="true"]{cursor:progress}
.cw-input.cw-input-sm{height:36px;width:auto;font-size:14px;background-position:calc(100% - 18px) 15px,calc(100% - 13px) 15px}
.cw-app[dir="rtl"] select.cw-input.cw-input-sm{background-position:13px 15px,18px 15px}
.cw-kv-card{padding:4px 24px}
.cw-kv.cw-kv-one{grid-template-columns:1fr}
/* A term is told from its description by colour and place, not by weight. */
.cw-kv dt{font-weight:400}
.cw-kv dd{overflow-wrap:anywhere}
.cw-kv>div.cw-kv-block{flex-direction:column;align-items:flex-start;gap:4px}
.cw-kv>div.cw-kv-block>dd{text-align:start}
.cw-kv .cw-kv-copy{justify-content:flex-end}
.cw-seal-id{margin-inline-start:6px;white-space:nowrap}
/* Claims: what the summary of a claim shows only while it is closed, the grade beside a title, lists inside a claim. */
.cw-acc>summary{border-radius:16px}
.cw-acc[open]>summary .cw-acc-preview{display:none}
.cw-acc-grade{font-size:22px;font-weight:500;white-space:nowrap}
.cw-app .cw-acc-desc{margin-bottom:8px}
.cw-app .cw-acc-note{margin-top:10px}
.cw-additional{margin-top:16px}
.cw-app ul.cw-outcomes{padding-inline-start:18px;display:flex;flex-direction:column;gap:6px}
.cw-outcome-type{display:inline-block;margin-inline-end:6px;padding:1px 8px;border-radius:999px;background:var(--tile);color:var(--text-2);font-size:11px;font-weight:500}
.cw-outcome-note,.cw-outcome-esco{display:block;font-size:13px}
.cw-outcome-esco{text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.cw-outcome-note{color:var(--muted)}
.cw-organizers-count{margin-inline-start:6px;color:var(--muted)}
.cw-organizer-index{min-width:22px}
.cw-links{align-items:flex-end;gap:2px}
/* Links stacked one under another are targets of their own: each at least 24 px tall (WCAG 2.2, 2.5.8). */
.cw-links a{display:inline-flex;align-items:center;min-height:24px;overflow-wrap:anywhere}
/* Verification dialog: the rows under the verdict. The icon says the outcome by its shape; the colour repeats it. */
.cw-check-row{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-top:1px solid var(--line-2)}
.cw-check-row .cw-ic{margin-top:2px}
.cw-check-ok .cw-ic{color:var(--accent)}.cw-check-warn .cw-ic{color:var(--warn)}.cw-check-bad .cw-ic{color:var(--danger)}
.cw-dialog-body .cw-verify{flex-wrap:nowrap;align-items:flex-start}
/* Issuer, public page, Europass. */
/* An issuer's logo on a white plate, whatever its shape: the plate is as tall as given and as wide as the logo needs,
   up to a limit. The frame is the plate, never the image: Safari draws an image that has padding and a border of its
   own too large and cuts it. */
.cw-issuer-logo{display:inline-flex;align-items:center;justify-content:center;flex:none;height:52px;min-width:52px;max-width:164px;padding:7px 9px;border:1px solid var(--line);border-radius:12px;background:#fff}
.cw-issuer-logo img{display:block;height:100%;width:auto;max-width:100%;object-fit:contain}
.cw-link-ext{display:inline-flex;align-items:center;gap:4px;text-decoration:none}
.cw-link-ext:hover{text-decoration:underline}
.cw-url-group{margin-top:8px}
.cw-input-group .cw-url{flex:1;min-width:0;text-decoration:none}
.cw-input-group .cw-url:hover{text-decoration:underline;color:var(--text)}
.cw-btn.cw-btn-flat{height:auto;min-height:42px;border-radius:0;align-self:stretch}
/* The address and its copy button take the press on the whole 44 px of their frame: the frame is drawn as an
   outline over them (a border would keep a pixel above and below for itself). */
.cw-input-group.cw-url-group{border:0;padding-inline:1px;outline:1px solid var(--line-strong);outline-offset:-1px}
.cw-url-group>*{min-height:44px}
.cw-set-row .cw-lbl label{cursor:pointer}
.cw-set-row:last-child{padding-bottom:0}
.cw-europass-logo{width:104px;height:auto;padding:6px 8px;flex:none;border-radius:6px;background:#fff}
.cw-europass-text{min-width:220px}
.cw-europass-text .cw-t-card{font-size:15px}
/* Above the menus shown as sheets and above the dialogs: what it says may be about a choice made inside one. */
/* As wide as its words up to the screen, and as tall as they need: a sentence wraps on a phone. */
.cw-toast{height:auto;min-height:48px;padding:10px 16px;width:max-content;max-width:calc(100vw - 32px);line-height:1.35;z-index:65}
.cw-sec-head.cw-sec-head-end{justify-content:flex-end}
.cw-toast.cw-toast-bad{background:var(--bad-bg);color:var(--bad);box-shadow:var(--pop),0 0 0 1px var(--bad)}
/* ---------- Document viewer ---------- */
/* diploma-viewer.js: a dialog of the shell that holds the pages of the sealed PDF, or the picture of a credential
   that has no PDF to show. Wider than the other dialogs and as tall as the screen allows; the pages scroll inside. */
.cw-scrim.cw-viewer{padding-top:36px}
.cw-dialog.cw-viewer-box{width:920px;max-height:calc(100vh - 60px);max-height:calc(100dvh - 60px);overflow:hidden}
.cw-dialog-head.cw-viewer-head{align-items:center;padding-bottom:16px;border-bottom:1px solid var(--line-2)}
.cw-viewer-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cw-viewer-actions{flex:none}
.cw-viewer-body{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;gap:16px;padding:24px;overflow:auto;background:var(--tile);border-radius:0 0 17px 17px}
.cw-app .cw-viewer-body:focus-visible{outline-offset:-4px!important}
.cw-viewer-loading{display:flex;align-items:center;justify-content:center;min-height:200px;color:var(--muted)}
/* What the viewer says when the document cannot be shown: a paragraph that is in the dialog from the start and empty (a region that
   appears together with its text is often not read out), so while empty it takes no room of its own. */
.cw-app .cw-viewer-failure{align-self:stretch;margin:0;padding:12px 16px;border:1px solid var(--bad);border-radius:10px;background:var(--bad-bg);color:var(--bad);font-size:14px;font-weight:500;text-align:start}
.cw-app .cw-viewer-failure:empty{margin-top:-16px;padding:0;border:0}
.cw-viewer-pages{display:flex;flex-direction:column;align-items:center;gap:24px;width:100%}
/* A page is paper: white in both themes. */
.cw-viewer-page{max-width:100%;background:#fff;box-shadow:var(--doc-shadow)}
.cw-viewer-page canvas{display:block;width:100%;height:auto}
.cw-viewer-image img{display:block;max-width:100%;height:auto;margin:0 auto}
/* The seal stamp stays in the corner of the body while the pages scroll under it; it arrives a moment after them. */
.cw-viewer-stamp{position:sticky;bottom:0;align-self:flex-end;flex:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--ok);border-radius:10px;background:var(--ok-bg);color:var(--ok);font:inherit;font-size:13px;font-weight:500;cursor:pointer;box-shadow:var(--pop);transform:scale(.3);transform-origin:bottom right;opacity:0;transition:transform .4s cubic-bezier(.34,1.56,.64,1),opacity .4s ease}
[dir="rtl"] .cw-viewer-stamp{transform-origin:bottom left}
.cw-viewer-stamp.cw-viewer-stamp-in{transform:none;opacity:1}
@media (max-width:767px){
  .cw-scrim.cw-viewer{padding-top:0}
  .cw-dialog.cw-viewer-box{width:100%;max-height:92vh;max-height:92dvh}
  .cw-viewer-body{padding:12px;border-radius:0}
}
/* On a narrow screen the link to the file is its icon; its name stays in aria-label. */
@media (max-width:575px){.cw-viewer-download-label{display:none}.cw-btn.cw-viewer-download{width:44px;padding:0}}
/* A search field takes the press over the whole height of its frame (44 px and more), not only on its line of
   text: the field grows by its padding and gives the same back as a margin, so the text stays where it was. */
.cw-search input,.cw-search-field input{padding-block:13px;margin-block:-12px}
/* The brand in a bar is a link that takes the press 8 px above and below its letters (44 px and more). */
:is(.cw-topbar,.cw-pubbar) a.cw-brand{position:relative}
:is(.cw-topbar,.cw-pubbar) a.cw-brand::after{content:"";position:absolute;inset:-8px 0}
/* An option of a segmented choice that is a link or a button takes the press 3 px beyond its 38. */
.cw-seg :is(a,button){position:relative}
.cw-seg :is(a,button)::after{content:"";position:absolute;inset:-3px 0}
/* On a phone a small list of choices is as tall as a fingertip, like the buttons there. */
@media (max-width:767px){
  select.cw-input.cw-input-sm{height:44px;background-position:calc(100% - 18px) 19px,calc(100% - 13px) 19px}
  .cw-app[dir="rtl"] select.cw-input.cw-input-sm{background-position:13px 19px,18px 19px}
}
/* The copy button beside a value keeps its width when the value is long, and the long value is shortened inside
   its column instead of widening it (a row of the list is a grid item: its least width is its content's). */
.cw-kv-copy .cw-btn-icon{flex:none}
.cw-kv>div{min-width:0}
/* Pointer targets are at least 44 px (HANDOFF, section 8): small controls keep their look, and take the press
   from the strip around them. */
.cw-btn-sm,.cw-link-btn,.cw-switch{position:relative}
.cw-btn-sm::after,.cw-link-btn::after{content:"";position:absolute;inset:-4px 0}
/* A small button has a border, and the strip is measured from inside it: one pixel more reaches 44. */
.cw-btn-sm::after{inset:-5px -1px}
.cw-btn-sm.cw-btn-icon::after{inset:-5px}
.cw-switch::before{content:"";position:absolute;inset:-9px 0}
.cw-seg .cw-seg-opt::after{content:"";position:absolute;inset:-3px 0}
@media (max-width:767px){
  .cw-doc-pic{max-height:284px}
  .cw-kv-card{padding:4px 16px}
  .cw-kv .cw-kv-copy{justify-content:flex-start;max-width:100%}
  .cw-links{align-items:flex-start}
  .cw-menu.cw-menu-share,.cw-menu.cw-menu-download,.cw-menu.cw-menu-more{width:auto;max-width:none;max-height:80vh;overflow:auto}
  .cw-acc-grade{font-size:20px}
}

/* ---------- Dashboard (W-Pulpit): pieces the previews carried as inline styles, real images ---------- */
/* Facts in a row with a dot between them: the numbers under the greeting, what the public profile still lacks. */
.cw-app ul.cw-facts{display:flex;flex-wrap:wrap;column-gap:8px}
.cw-facts>li+li::before{content:"·";margin-inline-end:8px}
.cw-hero-title{font-size:28px;overflow-wrap:anywhere}
/* The document of the newest credential is the link to its page. */
.cw-app a.cw-doc-view{text-decoration:none}
.cw-app a.cw-doc-view:focus-visible{outline-offset:6px!important}
.cw-hero-actions{margin-top:auto;padding-top:8px}
/* Beside a link the two menu buttons keep their own width (on the credential's page they share the row). */
.cw-hero-actions .cw-act{flex:0 1 auto}
.cw-hero-more{margin-inline-start:8px}
.cw-sec-head.cw-sec-head-list{padding-bottom:8px}
.cw-card-rest{padding-top:8px}
/* A collection without a colour of its own: the outline of the square a coloured one fills. */
.cw-tag-dot.cw-tag-none{background:none;border:1.5px solid var(--line-strong)}
/* The title of a row made of two parts (the square, the name) is still the title, not the line under it. */
.cw-cred-row .cw-meta b>span{font-size:inherit;color:inherit}
/* How much of the public profile is filled in: the browser's own progress element, drawn as the previews' bar. */
progress.cw-meter{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;width:100%;height:6px;border:0;border-radius:3px;overflow:hidden;background:var(--line-2);color:var(--accent)}
progress.cw-meter::-webkit-progress-bar{background:var(--line-2)}
progress.cw-meter::-webkit-progress-value{background:var(--accent);border-radius:3px}
progress.cw-meter::-moz-progress-bar{background:var(--accent);border-radius:3px}
.cw-missing{column-gap:6px}
.cw-portfolio-links{margin-top:4px}
@media (max-width:767px){
  /* A row without a picture (a collection): two columns, text and arrow, with no gap kept for a third. */
  .cw-cred-row.cw-row-plain{grid-template-columns:minmax(0,1fr) auto}
  .cw-cred-row.cw-row-plain .cw-meta{grid-column:1}
  .cw-cred-row.cw-row-plain .cw-go{grid-column:2}
}

/* ---------- The moment of a new credential (W-Moment): a layer over the page it greets on ---------- */
.cw-moment{position:fixed;inset:0;z-index:80;min-height:0;display:block;overflow:auto;overscroll-behavior:contain;background:var(--bg)}
/* The dialog itself: it takes focus when the moment opens, and shows no ring around the whole screen for it. */
.cw-moment-in{position:relative;min-height:100%;display:flex;flex-direction:column;overflow:hidden}
.cw-app .cw-moment-in:focus,.cw-app .cw-moment-in:focus-visible{outline:0}
.cw-moment .cw-ring-1{width:480px;height:480px;animation-delay:.5s}
.cw-moment .cw-ring-2{width:720px;height:720px;border-color:var(--line-2);animation-delay:.7s}
.cw-moment .cw-ring-3{width:980px;height:980px;border-color:var(--line-2);animation-delay:.9s}
.cw-moment-bar{position:relative;height:80px;padding:16px 20px}
.cw-moment-bar .cw-brand{width:auto}
.cw-moment-main{position:relative;flex:1;align-items:center;text-align:center;padding:8px 20px 40px}
/* Two classes where a margin is set: the shell's reset of paragraphs and headings (.cw-app p) would win over one. */
.cw-moment-main .cw-moment-lead{justify-content:center;margin-bottom:28px}
.cw-issuer-logo.cw-moment-logo{height:40px;min-width:40px;max-width:136px;padding:5px 8px;border-radius:10px}
/* Room under the document for the seal that hangs over its corner. */
.cw-m-stage{margin-bottom:16px}
.cw-m-rise{position:relative;display:inline-flex}
/* The newest document: the diploma picture where the previews drew a paper sheet, clipped for the light that runs across it. */
.cw-m-doc{position:relative;display:block;overflow:hidden;background:#fff;box-shadow:var(--doc-shadow)}
/* A portrait diploma is as tall as the previews' sheet; a landscape one is as wide as the screen lets it be. */
.cw-m-doc .cw-doc-pic{max-width:min(420px,calc(100vw - 150px));max-height:326px;box-shadow:none}
/* Several new credentials: the next two under the newest, fanned out. The end state is the element's own, so that
   it is also what someone who asked for reduced motion sees. */
.cw-m-fan{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#fff;box-shadow:0 0 0 1px #D9D8D3,var(--doc-shadow)}
.cw-cr-fan1{transform:translateX(-64px) rotate(-8deg)}
.cw-cr-fan2{transform:translateX(64px) rotate(8deg)}
/* Turned, their corners rise above the newest document: the stage keeps that much clear of the line over it. */
.cw-m-stage:has(.cw-m-fan){margin-top:20px}
/* What is known about the credential on show: the two the register confirms come when it has answered (celebration.js
   shows each in its turn; one that comes after its turn has passed does not wait again), validity is there from the start. */
.cw-moment-main .cw-moment-pills{justify-content:center;margin-top:28px}
.cw-moment-pills .cw-vpill.cw-cr-now{animation-delay:0s}
.cw-moment-main .cw-moment-title{margin-top:28px;max-width:100%;overflow-wrap:anywhere}
.cw-moment-sub{margin-top:10px;max-width:540px;font-size:16px}
.cw-moment-name{color:var(--text);font-weight:500;overflow-wrap:anywhere}
/* What the credential confirms, in numbers: each value above its name, a hairline between two. */
.cw-moment-main .cw-moment-facts{display:flex;justify-content:center;margin-top:24px;max-width:640px}
.cw-moment-facts>div{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:2px;min-width:0;max-width:220px;padding:0 24px}
.cw-moment-facts>div+div{border-inline-start:1px solid var(--line)}
.cw-moment-facts dt{font-size:12.5px;line-height:1.35;color:var(--muted)}
.cw-moment-facts dd{margin:0;font-size:19px;font-weight:600;line-height:1.3;color:var(--text);overflow-wrap:anywhere}
.cw-moment-actions{justify-content:center;width:100%;max-width:640px;margin-top:28px}
.cw-moment-act{flex:1 1 180px}
.cw-moment-act.cw-moment-act-wide{flex-basis:220px}
.cw-moment-skip{margin-top:16px;min-height:44px}
/* The actions fade in last. Reached with the keyboard before that, they are shown at once: focus is never on something unseen. */
.cw-moment-actions:focus-within,.cw-moment-skip:focus{animation:none}
/* "Play again": every animation of the moment is switched off for a frame, and starts over when it is back. */
.cw-moment.cw-moment-still *{animation:none!important}
/* Asked for reduced motion: the end state is shown at once, and there is nothing to play again. */
@media (prefers-reduced-motion:reduce){.cw-moment-replay{display:none}}
@media (max-width:767px){
  .cw-m-doc .cw-doc-pic{max-height:240px}
  /* The markers: the two short ones share a line, the long one (the seal) takes the next. */
  .cw-moment-main .cw-moment-pills{margin-top:20px}
  .cw-moment-pills [data-celebration-pill="sealed"]{order:1}
  /* The facts keep one line, in columns of equal width; a long name wraps under its value. */
  .cw-moment-main .cw-moment-facts{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);width:100%;margin-top:18px}
  .cw-moment-facts>div{max-width:none;padding:0 8px}
  .cw-moment-facts dd{font-size:17px}
  .cw-moment-facts dt{font-size:12px}
  .cw-moment-main .cw-moment-title{margin-top:22px}
  .cw-moment-actions{margin-top:22px}
  /* Who issued it and what happened do not fit one line: one under the other, with no dot left hanging. */
  .cw-moment-main .cw-moment-lead{flex-direction:column;gap:4px}
  .cw-moment-lead>[aria-hidden="true"]{display:none}
  .cw-cr-fan1{transform:translateX(-40px) rotate(-8deg)}
  .cw-cr-fan2{transform:translateX(40px) rotate(8deg)}
}

/* ---------- Collections (W-Kolekcje, W-Kolekcja): pieces the previews carried as inline styles, real images ---------- */
.cw-app ul.cw-coll-tiles{grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr))}
.cw-coll{min-width:0}
/* The pictures of the newest three credentials, where the previews drew three sheets. Decoration with a fixed
   left and right (the newest in front, the two before it behind, turned a little), whatever the page's direction. */
.cw-tile.cw-coll-preview{height:168px;padding:0 16px;gap:0;border-radius:15px 15px 0 0;direction:ltr;overflow:hidden;text-decoration:none;color:var(--muted)}
.cw-coll-doc{width:92px;height:120px;flex:none;display:flex;align-items:center;justify-content:center}
.cw-coll-doc img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;background:#fff;box-shadow:var(--doc-shadow)}
.cw-coll-doc-none{width:70%;aspect-ratio:1/1.414;display:flex;align-items:center;justify-content:center;border:1.5px dashed var(--line-strong);border-radius:4px;background:var(--surface)}
.cw-coll-doc:first-child{order:2;z-index:1;width:132px}
.cw-coll-doc:nth-child(2){order:1;transform:rotate(-6deg) translateX(14px)}
.cw-coll-doc:nth-child(3){order:3;transform:rotate(6deg) translateX(-14px)}
.cw-coll-body{flex:1;padding:18px 20px 14px}
.cw-app a.cw-coll-title{color:var(--text);text-decoration:none;overflow-wrap:anywhere}
.cw-app a.cw-coll-title:hover{text-decoration:underline}
/* The count and the actions share a line while they fit one; the actions keep to the end of theirs. */
.cw-coll-foot{margin-top:auto;padding-top:6px}
/* Eight pixels between the small buttons: the strip around each (44 px to press) does not reach into its neighbour's. */
.cw-coll-actions{margin-inline-start:auto;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:100%}
.cw-empty .cw-empty-action{margin-top:6px}
/* The colour choice: a ring around the chosen swatch; its name stands next to the legend and in the radio's label. */
.cw-app .cw-fieldset{margin:0;padding:0;border:0;min-width:0}
.cw-app .cw-fieldset>legend{float:none;width:auto;padding:0;margin:0 0 8px}
.cw-label-note{font-weight:400}
.cw-swatch{position:relative;width:44px;height:44px;flex:none;border:2px solid transparent;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}
.cw-swatch:has(input:checked){border-color:var(--text)}
.cw-swatch:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.cw-swatch-dot{width:30px;height:30px;border-radius:50%;background:var(--tag,transparent)}
.cw-swatch-dot.cw-swatch-none,.cw-swatch-dot.cw-swatch-unknown{background:none;border:1.5px dashed var(--line-strong)}
/* The editor: the square of the collection's colour beside its name. */
.cw-tag-dot.cw-tag-lg{width:14px;height:14px;border-radius:4px}
.cw-break{overflow-wrap:anywhere}
/* The pick-list: every row is the label of its tick box. The line between rows belongs to a row that has a
   visible row before it (rows the search narrowed away are hidden). */
.cw-sec-head.cw-pick-head{padding-bottom:12px}
.cw-pick-search{padding:0 24px 12px}
.cw-pick-search .cw-search-field:focus-within,.cw-toolbar .cw-search-field:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.cw-app ul.cw-pick-list{border-top:1px solid var(--line-2)}
.cw-pick-list>li:not([hidden])~li:not([hidden]){border-top:1px solid var(--line-2)}
.cw-pick-list .cw-cred-row.cw-pick-row{padding:10px 20px;border-top:0;cursor:pointer}
.cw-app p.cw-pick-note{padding:12px 24px}
.cw-app p.cw-pick-foot{padding:12px 24px 20px;border-top:1px solid var(--line-2)}
/* Settings rows: a control as tall as two lines of text sits in the middle of its row; on a narrow screen the
   visibility control goes under its label instead of squeezing it into a column of single words. */
.cw-set-row.cw-set-row-mid{align-items:center}
.cw-set-row.cw-set-row-wrap{flex-wrap:wrap;align-items:center}
.cw-set-row.cw-set-row-wrap .cw-lbl{flex:1 1 220px}
/* The address is a link: underlined, as colour alone would not say so. */
.cw-set-row .cw-lbl a.cw-coll-link{align-self:flex-start;max-width:100%;color:var(--muted);text-decoration:underline}
.cw-coll-remove-note{flex:1 1 240px;min-width:0;text-align:end}
@media (max-width:767px){
  /* A page action whose words are longer than a 320 px screen (Greek: "import a digital credential") takes a
     second line instead of pushing the page sideways. */
  .cw-page-actions>.cw-btn{height:auto;min-height:44px;padding-block:8px;white-space:normal;text-align:center}
  .cw-pick-search{padding:0 16px 12px}
  /* Tick box, document, text in one line; the chips that stay on a phone would not fit beside them. */
  .cw-pick-list .cw-cred-row.cw-pick-row{display:flex;padding:10px 16px}
  .cw-pick-row .cw-chips{display:none}
  .cw-app p.cw-pick-note{padding:12px 16px}
  .cw-app p.cw-pick-foot{padding:12px 16px 16px}
  .cw-coll-remove-note{text-align:start}
}

/* ---------- The public pages of the ticked credentials (the editor of a collection) ---------- */
/* In the head of the pick-list: the count and the button that acts on what it counts, side by side; on a phone the
   button goes under the count. The dialog (_CollectionPublicOptionsDialog.cshtml) is the shell's, its rows those of
   a credential's own dialog; below 480 px each choice of three takes its row's width, in three equal parts whose
   words may take two lines (German, Finnish) rather than push the dialog sideways. */
.cw-pick-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px}
/* The dialog is taller than a screen: where the screen is tall enough for its head, some options and its foot
   (560px, as the credential's dialog of its public page), it ends where the scrim's padding begins and only its
   options scroll, so that its title, its way out and Apply stay in view; on a phone it is the shell's sheet, as tall
   as the shell lets it. On a shorter screen (1280x1024 at 400 %, a phone in landscape, a laptop zoomed in) the head
   and the foot would leave the options no room: there the dialog scrolls as a whole, as every dialog of the shell
   does (the sheet on a phone, the scrim on a wider screen), and nothing is cut off. */
@media (min-height:560px){
  .cw-dialog.cw-bulk-dialog{max-height:calc(100vh - 120px);max-height:calc(100dvh - 120px)}
  .cw-bulk-dialog .cw-dialog-body{min-height:0;overflow:auto}
}
/* A refusal sits between the options and the foot, outside what scrolls; the notice about the files ends its group. */
.cw-bulk-dialog>.cw-bulk-error{flex:none;margin:8px 24px 0}
.cw-bulk-dialog .cw-opt-grp>.cw-opt-notice:not([hidden]){padding-bottom:10px}
/* The masked example in the full name's hint is one piece: at a line's end it moves to the next line whole, instead
   of breaking between its parts (Arabic); a name longer than a whole line wraps between its parts inside its own box,
   never past the dialog's edge. */
.cw-bulk-example{display:inline-block;max-width:100%}
@media (max-width:767px){
  .cw-pick-tools{flex-direction:column;align-items:flex-start}
  /* The opener wraps its words (cw-btn-wrap) and stays as tall as every button on a phone (the shell's 44 px). */
  .cw-pick-tools>.cw-btn.cw-btn-wrap{min-height:44px}
}
@media (max-width:767px) and (min-height:560px){
  .cw-dialog.cw-bulk-dialog{max-height:92vh;max-height:92dvh;overflow:hidden}
}
@media (max-width:479px){
  .cw-bulk-dialog .cw-set-row.cw-set-row-wrap{row-gap:8px}
  .cw-bulk-dialog .cw-seg{display:flex;width:100%}
  .cw-bulk-dialog .cw-seg .cw-seg-opt{flex:1 1 0;min-width:0;height:auto;min-height:38px;padding:4px 6px;white-space:normal;text-align:center;line-height:1.25}
}
@media (forced-colors:active){
  /* A choice that cannot be used while the full name is set to off: drawn as the system draws what is off (its
     dimming is gone with the colours). */
  .cw-bulk-dialog .cw-seg .cw-seg-opt:has(input:disabled){color:GrayText}
}

/* ---------- Portfolio (W-Portfolio): pieces the previews carried as inline styles, the real photo, the crop dialog ---------- */
/* The holder's photo where the previews drew initials. */
.cw-avatar>img{width:100%;height:100%;object-fit:cover}
.cw-pf-url{font-size:14px}
.cw-pf-nourl{flex:1 1 200px;min-width:0}
.cw-pf-photo{align-items:center}
/* Two columns beside the photo, one on a phone: by the screen, not by what happens to fit, so that the pair of
   name fields never becomes a row of three. */
.cw-pf-fields{flex:1 1 320px;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cw-pf-wide{grid-column:1/-1}
/* What a field says about itself may take two lines on a phone: the icon stays by the first. */
.cw-field>.cw-err,.cw-field>.cw-ok-msg{align-items:flex-start}
.cw-field>.cw-err .cw-ic,.cw-field>.cw-ok-msg .cw-ic{margin-top:2px}
/* A switch is 26 px tall: the strip around it makes 44 px of it to press (its ::after is the knob). */
.cw-switch::before{content:"";position:absolute;inset:-9px 0}
.cw-set-row.cw-pf-indexing{padding-bottom:0}
.cw-pf-save{justify-content:flex-end}
.cw-pf-coll-head{padding-bottom:12px}
.cw-pf-coll-foot{padding-top:12px;border-top:1px solid var(--line-2)}
.cw-app p.cw-pf-coll-none{padding:0 24px 16px}
/* The collections of the portfolio: one row each, with the two buttons that move it and its visibility. On a
   narrow screen the visibility goes under the name instead of leaving the page: it must stay changeable there. */
.cw-pf-list{display:flex;flex-direction:column}
.cw-pf-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 16px}
.cw-pf-row+.cw-pf-row{border-top:1px solid var(--line-2)}
.cw-pf-row .cw-meta{flex:1 1 180px;min-width:0;display:flex;flex-direction:column;gap:2px}
.cw-pf-row .cw-meta b{font-weight:500}
.cw-pf-row .cw-meta span{font-size:13px;color:var(--muted)}
.cw-pf-row .cw-meta b>span{font-size:inherit;color:inherit}
.cw-pf-grip{cursor:grab;flex:none}
/* Ten pixels between the two: the strip around each small button (44 px to press) stops short of its neighbour's. */
.cw-pf-moves{display:inline-flex;gap:10px;flex:none}
.cw-btn-ghost[aria-disabled="true"]{background:none;opacity:.45}
.cw-pf-row.cw-dragging{opacity:.5}
.cw-pf-row.cw-drag-over{background:var(--soft)}
/* The crop dialog. Cropper.js draws inside the area and takes its size from it. The mask is a circle, as the
   public page shows the photo: the library makes its elements itself, and portfolio.js gives these two classes
   to the ones that draw the mask. */
.cw-crop-area{height:320px;max-height:50vh;border-radius:12px;background:var(--tile);overflow:hidden}
.cw-crop-area>img{display:block;max-width:100%}
.cw-crop-hint{flex:1 1 200px}
.cw-crop-round{border-radius:50%}
.cw-crop-ring{outline:2px solid rgba(255,255,255,.75);outline-offset:-1px}
@media (max-width:359px){
  /* The host name and the address do not fit one line of a narrow phone: the address gets a line of its own. */
  .cw-input-group.cw-pf-slug{flex-direction:column}
  .cw-pf-slug .cw-prefix{padding:8px 12px;white-space:normal;overflow-wrap:anywhere;border-bottom:1px solid var(--line)}
}
@media (max-width:767px){
  .cw-pf-fields{grid-template-columns:minmax(0,1fr)}
  .cw-pf-row{padding:12px 14px}
  .cw-app p.cw-pf-coll-none{padding:0 16px 12px}
}

/* ---------- Profile and account (W-Profil): pieces the previews carried as inline styles, the dialogs' steps ---------- */
.cw-avatar.cw-lg.cw-prof-avatar{width:64px;height:64px;font-size:20px}
.cw-app h2.cw-prof-sec{margin-bottom:8px}
/* The warning's own action: underlined in the warning's colour, and still 44 px to press. */
.cw-prof-warn{align-items:center;flex-wrap:wrap}
.cw-prof-warn>.cw-grow{flex:1 1 220px}
.cw-link-btn.cw-alert-action{color:inherit;text-decoration:underline;flex:none}
.cw-prof-ic-top{align-self:flex-start;margin-top:3px}
.cw-app ul.cw-prof-address-list{display:flex;flex-direction:column;gap:8px;margin-top:8px}
/* A button whose words are a whole phrase takes a second line on a narrow screen instead of pushing the row wider. */
.cw-btn.cw-btn-wrap{height:auto;min-height:36px;padding-block:6px;white-space:normal;text-align:start;max-width:100%}
.cw-prof-language{flex:0 1 auto;max-width:100%}
.cw-prof-language>select{width:240px;min-width:0;flex:1 1 160px}
.cw-prof-delete-text{flex:1 1 240px;min-width:0}
/* Where a dialog is in its flow: two or three bars. */
.cw-steps.cw-steps-2{width:120px}.cw-steps.cw-steps-3{width:160px}
/* A code is typed into one field, so that the browser can fill it in from a message and paste works; the digits
   stand apart as the previews' six boxes did. */
.cw-input.cw-code-one{height:56px;max-width:240px;padding:0 12px;text-align:center;font-size:22px;letter-spacing:.3em;font-variant-numeric:tabular-nums}
.cw-lost-ic{color:var(--danger);margin-top:4px;flex:none}
/* Two-step verification: the real QR picture and the key behind it, as text that can be selected. */
.cw-mfa-qr{width:180px;height:180px;flex:none;padding:8px;border:1px solid var(--line);border-radius:12px;background:#fff}
.cw-mfa-key{flex:1 1 200px;min-width:0;align-items:flex-start}
.cw-app code.cw-mfa-secret{align-self:stretch;padding:10px 12px;border-radius:10px;background:var(--tile);color:var(--text);word-break:break-all;user-select:all;-webkit-user-select:all}

/* ---------- Public pages (P-Poswiadczenie, P-Kolekcja, P-Portfolio, P-Brak, S-Dostepnosc): pieces the previews carried as inline styles ---------- */
.cw-pub-page{gap:24px;min-width:0}
.cw-pub-page.cw-pub-page-wide{gap:32px}
.cw-pub-head{padding-top:16px}
.cw-pub-head-text{flex:1 1 260px;min-width:0}
.cw-pub-name{overflow-wrap:anywhere}
.cw-app p.cw-pub-lead{font-size:17px;max-width:640px;overflow-wrap:anywhere}
.cw-app p.cw-pub-owner{margin-top:8px}
.cw-avatar .cw-ic{flex:none}
.cw-avatar.cw-avatar-sq{border-radius:9px;background:var(--tile);color:var(--muted)}
.cw-issuer-logo.cw-issuer-logo-sm{height:46px;min-width:46px;max-width:148px;padding:6px 8px;border-radius:10px}
.cw-pub-dot{width:12px;height:12px;border-radius:4px}
.cw-pub-dot.cw-pub-dot-lg{width:16px;height:16px;border-radius:5px}
/* The tiles of a shared collection: a list, each tile a card with the document on top. */
.cw-app ul.cw-pub-tiles{grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr))}
.cw-pub-tiles>li{display:flex;min-width:0}
.cw-cred-tile.cw-pub-tile{flex:1;min-width:0;padding:8px 8px 16px}
.cw-pub-tile .cw-meta{padding:4px 8px 0;overflow-wrap:anywhere}
a.cw-pub-tile:hover{border-color:var(--line-strong)}
/* A credential without a diploma picture shows its badge, whole and not as a sheet of paper. */
.cw-thumb img.cw-thumb-badge{max-width:62%;max-height:82%;object-fit:contain}
.cw-card.cw-pub-cta{background:var(--soft);border-color:transparent;color:var(--soft-text)}
.cw-pub-cta-text{flex:1 1 220px;min-width:0}
/* Nothing at this address: the message stands in the middle of what the header and the footer leave. */
.cw-pub-centre{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 20px}
.cw-pub-missing{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;max-width:100%}
.cw-pub-missing-ico{width:72px;height:72px;border-radius:20px;background:var(--tile);color:var(--muted);display:flex;align-items:center;justify-content:center;margin-bottom:8px}
.cw-pub-missing .cw-t-page{overflow-wrap:anywhere}
.cw-app p.cw-pub-missing-text{max-width:460px;font-size:16px}
.cw-pub-missing-actions{justify-content:center;margin-top:10px}
/* The actions of a public page keep their 44 px when a long translation takes a second line. */
.cw-hero-actions .cw-btn.cw-btn-wrap{min-height:44px}
@media (max-width:359px){
  /* The narrowest phones: "sign in" is a long word in some languages (fi, ga, hu) and the bar must not push the page wider. */
  .cw-pubbar{gap:6px}
  .cw-pubbar>.cw-btn-sm{padding:0 10px}
}

/* The verification result on top of a public credential: the bar takes the colour of the verdict, the verdict and
   the checks the register made are written into its live region (credential-verify.js draws the same banner and
   list in the verification dialog of the holder's page), "check again" stays where it is while they change. */
.cw-verify.cw-verify-bar{align-items:flex-start}
.cw-verify-bar>.cw-verify-body{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:10px}
.cw-verify-bar .cw-verify{background:none;color:inherit;padding:0;border-radius:0;flex-wrap:nowrap;align-items:flex-start}
.cw-verify-bar .cw-t-card{font-size:17px;font-weight:600}
.cw-verify-bar .cw-stack{gap:2px;overflow-wrap:anywhere}
.cw-btn.cw-verify-again{background:var(--surface);color:var(--text);border-color:var(--line-strong);align-self:center;flex:none}
.cw-btn.cw-verify-again[aria-disabled="true"]{opacity:.6;cursor:default}
.cw-app ul.cw-verify-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));column-gap:24px;padding-inline-start:58px}
.cw-verify-checks .cw-check-row{padding:6px 0;border-top:0;font-size:14px;gap:8px;overflow-wrap:anywhere;min-width:0}
/* On the tinted bar the marks take the colour of the words: what each check found is its icon's shape and its text. */
.cw-verify-checks .cw-check-row .cw-ic{color:inherit}
/* The register says "revoked" of a credential the wallet still shows (it learns of a revocation a moment later):
   the document is greyed as on a revoked credential's own page. */
.cw-pub-page:has(>.cw-verify-bar [data-verify-status="1"]) :is(.cw-doc-pic,.cw-badge-pic){filter:grayscale(1);opacity:.6}
@media (max-width:767px){
  .cw-app ul.cw-verify-checks{padding-inline-start:0}
  .cw-btn.cw-verify-again{align-self:flex-start}
}

/* Long-form documents (the accessibility statement and its report): the text comes from a shared component as
   plain headings, paragraphs and lists; the frame dresses them. */
.cw-prose{width:100%;max-width:760px;margin-inline:auto;padding-top:16px;color:var(--text-2);font-size:16px;line-height:1.6;overflow-wrap:anywhere}
.cw-app .cw-prose h1{font-size:44px;font-weight:500;letter-spacing:-.03em;line-height:1.08;color:var(--text);margin-bottom:20px}
.cw-app .cw-prose h2{font-size:20px;font-weight:500;letter-spacing:-.01em;line-height:1.3;color:var(--text);margin:32px 0 12px}
.cw-app .cw-prose h3{font-size:16px;font-weight:500;line-height:1.35;color:var(--text);margin:20px 0 8px}
.cw-app .cw-prose p{margin-bottom:12px}
.cw-app .cw-prose :is(ul,ol){margin:0 0 12px;padding-inline-start:24px}
.cw-app .cw-prose li{margin-bottom:6px}
.cw-app .cw-prose a{color:var(--accent);text-decoration:underline}
.cw-prose code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;padding:1px 5px;border-radius:6px;background:var(--tile);color:var(--text)}
.cw-prose table{width:100%;border-collapse:collapse;margin-bottom:12px}
.cw-prose :is(th,td){text-align:start;padding:8px 10px;border-bottom:1px solid var(--line)}
@media (max-width:767px){
  .cw-app .cw-prose h1{font-size:32px}
  .cw-app .cw-prose h2{font-size:18px}
}

/* ---------- Account pages (K-Logowanie, K-Zaproszenie, K-Stan): pieces the previews carried as inline styles ---------- */
/* The suggestion of the browser's language, when it shows, lies across the side panel and the form. */
.cw-auth{grid-template-rows:auto 1fr}
.cw-auth-geo{grid-column:1/-1;min-width:0}
.cw-auth-aside,.cw-auth-main{min-width:0}
/* The benefits were written to follow their names after a dash: each line gets its capital letter here. */
.cw-benefits .cw-b-desc::first-letter{text-transform:uppercase}
/* The side panel: the name of the service at the top, what the panel says in the middle of its height (level with
   the form beside it), and nothing below. The three rows keep the middle one centred whatever stands in the first. */
.cw-auth-brand{align-self:start;justify-self:start}
.cw-auth-pitch{grid-row:2;display:flex;flex-direction:column;gap:32px;min-width:0}
.cw-auth-lead,.cw-benefits{max-width:400px}
/* A credential beside the text: the sheet the wallet keeps, made out to the visitor, with the mark the document viewer
   puts on a sealed file. It stands clear of the text column (400 px and the panel's padding), as wide as the rest of
   the panel allows (the panel is 5/11 of the window); in a panel too narrow for the smallest sheet it leaves by the
   far edge, and where the mark laid over it would no longer fit it is not shown. */
.cw-auth-art{--art-w:clamp(204px,calc(45.4545vw - 500px),380px);position:absolute;top:50%;inset-inline-start:max(476px,calc(100% - var(--art-w) - 64px));width:var(--art-w);font-size:calc(var(--art-w)/20);transform:translateY(-50%);pointer-events:none}
.cw-cert.cw-auth-doc{--w:var(--art-w);position:relative;transform:rotate(-5deg);box-shadow:0 1px 2px rgba(26,26,24,.08),0 18px 44px rgba(26,26,24,.16)}
.cw-app[dir="rtl"] .cw-cert.cw-auth-doc{transform:rotate(5deg)}
.cw-auth-doc .cw-cert-in{padding-top:1.9em;outline:1px solid #C9B98F;outline-offset:-.42em}
.cw-auth-crest{width:2.5em;height:2.5em;flex:none;background:#24435E;-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat;--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill-rule='evenodd' d='M24 3l17 6v13c0 11-7 18.5-17 23C14 40.5 7 33 7 22V9zm0 3.200L10 11.100V22c0 9.3 5.6 15.8 14 19.7 8.4-3.9 14-10.4 14-19.700V11.100z'/><path d='M24 13.500l2.5 5.2 5.7.800-4.1 4 1 5.7-5.1-2.7-5.1 2.7 1-5.7-4.1-4 5.7-.800z'/></svg>")}
.cw-auth-doc .cw-cert-title{margin-top:1.3em;font-size:1.18em;letter-spacing:.01em}
.cw-auth-doc .cw-cert-lead{margin-top:1.9em;font-size:.62em}
/* The name is small here: a gold dark enough for 4.5:1 on the paper (5.1:1). */
.cw-auth-doc .cw-cert-name{font-size:1.12em;line-height:1.25;color:#836528}
.cw-auth-doc .cw-cert-rule{width:9em}
.cw-auth-print{margin-top:1.5em;width:100%;display:flex;flex-direction:column;align-items:center;gap:.46em}
.cw-auth-print i{height:.15em;width:76%;border-radius:1px;background:#D9D2BE}
.cw-auth-print i:nth-child(2){width:84%}
.cw-auth-print i:nth-child(3){width:48%}
.cw-auth-print i:nth-child(4){width:80%;margin-top:.7em}
.cw-auth-print i:nth-child(5){width:62%}
.cw-auth-doc .cw-cert-sign span{position:relative;max-width:36%}
.cw-auth-doc .cw-cert-sign span::after{content:"";display:block;width:58%;height:.3em;margin:0 auto;border-radius:1px;background:#D9D2BE}
/* A hand's signature over the first line. */
.cw-auth-signed::before{content:"";position:absolute;inset-inline:0 0;bottom:calc(100% - .7em);height:5.4em;background:#24435E;-webkit-mask:var(--i) center bottom/contain no-repeat;mask:var(--i) center bottom/contain no-repeat;--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M5 33c5-11 12-25 17-24 6 1-9 26-4 27 5 1 10-17 16-17 5 0-3 14 2 14 4 0 7-9 11-9 4 0 0 9 4 9 5 0 6-10 12-10 4 0 1 8 6 8 9 0 14-9 23-10 7-1 14 3 23 1'/><path d='M12 40c26-5 62-7 98-6'/></svg>")}
/* The paper seal of a diploma, between the two signatures. */
.cw-auth-rosette{position:absolute;bottom:1.5em;left:50%;width:3.4em;height:4.53em;transform:translateX(-50%);background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 80'><path d='M18 44l-7 32 11-6 6 10 6-30z' fill='%23A8842F'/><path d='M42 44l7 32-11-6-6 10-6-30z' fill='%23B8933A'/><circle cx='30' cy='30' r='25' fill='none' stroke='%23C4A04A' stroke-width='6' stroke-dasharray='5.2 2.654'/><circle cx='30' cy='30' r='23' fill='%23D2B15E'/><circle cx='30' cy='30' r='17.5' fill='none' stroke='%23FBF3D9' stroke-width='1.2' opacity='.9'/><path d='M22 30.500l5.5 5.500L39 24.5' fill='none' stroke='%23FBF8F0' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat}
/* The viewer's own mark of a sealed file, laid over the sheet upright. */
.cw-auth-sealed{position:absolute;inset-inline-start:-1.15em;bottom:22%;display:flex;align-items:center;gap:.62em;max-width:14.5em;padding:.62em .9em;border:1px solid var(--ok);border-radius:10px;background:var(--ok-bg);color:var(--ok);font-size:max(12px,.86em);font-weight:600;line-height:1.25;box-shadow:0 8px 22px rgba(26,26,24,.14)}
.cw-auth-sealed .cw-ic{width:1.5em;height:1.5em}
@media (max-width:1419px),(max-height:619px){.cw-auth-art{display:none}}
.cw-auth-foot{align-items:center;text-align:center}
.cw-auth-foot nav{justify-content:center}
.cw-app p.cw-auth-note{text-align:center}
.cw-link-btn.cw-auth-back{align-self:flex-start}
/* "Forgot your password?" shares a line with the label: a line of text tall, with 44 px around it to press. */
.cw-link-btn.cw-auth-forgot{min-height:24px}
.cw-link-btn.cw-auth-forgot::after{inset:-14px 0 -6px}
/* A heading or a message that takes focus so that it is read: it is not a control and shows no ring. */
.cw-app :is([data-step-heading],.cw-state-title,[data-server-error],[data-invitation-sent]):focus-visible{outline:0}
/* A password field and its "show password" button are one box: the ring goes around the box. */
.cw-input-group.cw-pw-group:has(.cw-input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.cw-pw-group .cw-input{flex:1;min-width:0}
.cw-pw-group .cw-input:focus-visible{outline:0}
.cw-is-error .cw-pw-group .cw-input{box-shadow:none}
.cw-btn.cw-pw-toggle{flex:none;height:auto;align-self:stretch;border-radius:0}
.cw-app .cw-pw-toggle:focus-visible{outline-offset:-3px!important}
/* Pressed: the password is shown, and the eye is crossed out. */
.cw-pw-toggle[aria-pressed="true"]{color:var(--accent)}
.cw-pw-toggle[aria-pressed="true"] .cw-ic{--i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z'/><circle cx='12' cy='12' r='3'/><path d='M4.5 4.5l15 15'/></svg>")}
.cw-input[readonly]{background:var(--tile);color:var(--text-2)}
/* A button as wide as its form says a whole phrase in some languages: it takes a second line and stays centred. */
.cw-btn.cw-btn-block.cw-btn-wrap{min-height:44px;text-align:center}
.cw-btn.cw-btn-lg.cw-btn-wrap{min-height:50px;padding-block:8px}
/* The address a code or a link went to, as it was typed, with the way to change it. */
.cw-app p.cw-auth-sent{justify-content:space-between;padding:6px 12px;border-radius:10px;background:var(--tile)}
.cw-auth-sent-to{min-width:0;overflow-wrap:anywhere}
/* "Change" is a short word in most languages: still 44 px wide to press. */
.cw-auth-sent .cw-link-btn{min-width:44px;justify-content:center;flex:none}
.cw-auth-done{align-items:center;text-align:center}
.cw-auth-done>.cw-btn,.cw-auth-done>.cw-auth-sent{align-self:stretch}
.cw-create-summary-line{display:block}
/* The credential of an invitation: its real picture (a diploma as a sheet of paper, a badge as it is), its title
   and its issuer; in the side panel, and above the form where the panel is not shown. */
.cw-inv-credential{align-items:center;text-align:center;min-width:0}
.cw-inv-aside{margin:auto 0}
.cw-inv-pic{display:block;width:auto;height:auto;max-width:min(260px,100%);max-height:340px;background:#fff;box-shadow:var(--doc-shadow)}
.cw-inv-pic.cw-inv-badge{max-height:200px;background:none;box-shadow:none}
.cw-app p.cw-inv-meta{max-width:420px;overflow-wrap:anywhere}
.cw-inv-why h2{color:var(--soft-text)}
.cw-inv-why li{align-items:flex-start}
.cw-inv-why li .cw-ic{margin-top:2px}
.cw-inv-phone{display:none}
.cw-chip.cw-inv-chip{align-self:flex-start}
.cw-inv-title{overflow-wrap:anywhere}
/* A state of the account (created, an invitation that expired or no longer works): one card in the middle. */
.cw-state{display:flex;flex-direction:column}
.cw-state>.cw-auth-main{flex:1}
.cw-state-main{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 0 48px}
.cw-card.cw-state-card{width:100%;max-width:460px;padding:32px;display:flex;flex-direction:column;gap:16px}
.cw-state-ico{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none}
.cw-state-ico.cw-state-ico-lg{width:64px;height:64px}
.cw-state-ico-ok{background:var(--accent);color:var(--on-accent)}
.cw-state-ico-neutral{background:var(--tile);color:var(--text-2)}
.cw-state-ico-warn{background:var(--warn-bg);color:var(--warn)}
.cw-t-page.cw-state-title{font-size:28px;overflow-wrap:anywhere}
.cw-app p.cw-state-help{margin-top:4px}
@media (max-width:767px){
  .cw-inv-phone{display:flex;padding:8px 0 4px}
  .cw-inv-phone .cw-inv-pic{max-width:min(170px,100%);max-height:230px}
  .cw-t-page.cw-state-title{font-size:24px}
}
@media (max-width:359px){
  .cw-card.cw-state-card{padding:24px 20px}
}

/* ---------- Release notes ---------- */
/* The archive is the shared component (ReleaseNotesDocument.razor), the one the issuer panel shows, so that a
   release says the same in both; its own sheet is not loaded here. .cw-rn dresses its markup by its structure, as
   .cw-prose does for the accessibility statement: a heading, then one card per release (a section) with the
   version, "your version" and the date (the section's div) beside what the release brought (a list of
   kind + sentence, and a closing sentence). ReleaseNotesPageTests holds the component to that structure. */
.cw-rn>div{display:flex;flex-direction:column;gap:16px;width:100%;max-width:760px}
.cw-rn header{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.cw-rn h1{font-size:32px;font-weight:500;letter-spacing:-.02em;line-height:1.15}
.cw-rn header p{color:var(--muted)}
.cw-rn header p[data-testid="release-notes-running"]{font-size:13px}
/* Blazor drops the whitespace between the version and the build: the gap is set here. */
.cw-rn header p span{margin-inline-start:4px}
.cw-rn section{display:grid;grid-template-columns:132px minmax(0,1fr);gap:8px 20px;align-items:start;padding:18px 24px;background:var(--surface);border:1px solid var(--line);border-radius:16px}
/* Only on the test environment: changes merged and not released yet. Dashed, so that it never reads as a release. */
.cw-rn section[data-testid="release-notes-unreleased"]{border-style:dashed;border-color:var(--line-strong);background:transparent}
.cw-rn section>div{grid-column:1;grid-row:1 / span 3;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.cw-rn section>:not(div){grid-column:2}
.cw-rn h2{font-size:16px;font-weight:500;line-height:1.35}
.cw-rn time{font-size:12px;color:var(--muted)}
/* "Your version" next to the version, and the kind of each change: a word in a pill, as a chip is. */
.cw-rn section>div>span,.cw-rn li>span:first-child{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:24px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:500;white-space:nowrap}
.cw-rn section>div>span{background:var(--ok-bg);color:var(--ok)}
.cw-rn li>span:first-child{min-width:68px;background:var(--tile);color:var(--text-2)}
.cw-app .cw-rn ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:8px}
.cw-rn li{display:flex;align-items:flex-start;gap:8px}
.cw-rn li>span:last-child{min-width:0;overflow-wrap:anywhere}
.cw-rn section>p{font-size:13px;color:var(--muted)}
@media (max-width:767px){
  .cw-rn section{grid-template-columns:minmax(0,1fr);padding:16px}
  .cw-rn section>div{grid-row:auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px 12px}
  .cw-rn section>:not(div){grid-column:1}
}

/* ---------- Small pieces ---------- */
/* The buttons that end a form stand at its end edge. */
.cw-form-end{justify-content:flex-end}
/* The dialog of the post on LinkedIn (_LinkedInShareModal): a state that only waits or reports is centred. */
.cw-dialog-body.cw-li-wait{align-items:center;text-align:center;padding-top:28px;padding-bottom:28px}
.cw-li-mark{color:var(--info)}
.cw-btn.cw-li-manual{justify-content:flex-start}

/* ---------- Forced colours ---------- */
/* A high-contrast mode of the system replaces every colour of the page with its own few, backgrounds included. What
   the system draws with a background alone would vanish: the icons, and the state of a switch, a tick box, a
   segmented choice, a colour swatch, the page the menu is on. Each gets the system colour that says the same. */
@media (forced-colors:active){
  /* An icon is a mask filled with the colour of its text: here with the system colour that text has. */
  .cw-ic{forced-color-adjust:none;background-color:CanvasText}
  button .cw-ic{background-color:ButtonText}
  a .cw-ic{background-color:LinkText}
  :is(:disabled,[aria-disabled="true"]) .cw-ic{background-color:GrayText}
  /* A button drawn without an edge (an icon alone, a ghost button) has one. */
  .cw-btn,.cw-top-btn{border:1px solid ButtonBorder}
  /* A tick box: its box, and the tick as a filled box (the drawn tick is a white picture on a colour that is gone). */
  .cw-checkbox{forced-color-adjust:none;border-color:ButtonText;background-color:Canvas}
  .cw-checkbox:checked{border-color:Highlight;background-color:Highlight;background-image:none;box-shadow:inset 0 0 0 3px Canvas}
  /* A switch: a track with an edge, a knob, and the highlight when it is on. */
  .cw-switch{forced-color-adjust:none;border:1px solid ButtonText;background:Canvas}
  .cw-switch::after{top:2px;background:ButtonText}
  .cw-switch:checked{border-color:Highlight;background:Highlight}
  .cw-switch:checked::after{background:HighlightText}
  /* The chosen one of a segmented choice, of the colours, and the page the menu is on: an edge in the highlight. */
  .cw-seg .cw-seg-opt:has(input:checked),.cw-seg :is([aria-checked="true"],[aria-pressed="true"],[aria-current="true"]){outline:2px solid Highlight;outline-offset:-2px}
  .cw-swatch:has(input:checked){border-color:Highlight}
  .cw-swatch-dot{forced-color-adjust:none}
  .cw-nav-item[aria-current="page"]{outline:2px solid Highlight;outline-offset:-2px}
  .cw-pick-row:has(.cw-checkbox:checked){outline:1px solid Highlight;outline-offset:-1px}
  /* A message, a chip and the bar of a verification keep their edge when their tint is gone. */
  .cw-chip,.cw-alert,.cw-verify,.cw-toast{border:1px solid CanvasText}
  /* The summary of the public page is a tinted panel: it keeps an edge too. */
  .cw-opt-summary{border:1px solid CanvasText}
  /* A list of choices keeps the system's own arrow (the drawn one is a gradient in a colour that may not show). */
  select.cw-input{-webkit-appearance:auto;appearance:auto;background-image:none;padding-inline-end:12px}
  /* The bar of how much of the profile is filled in. */
  progress.cw-meter{forced-color-adjust:none;border:1px solid CanvasText;background:Canvas;color:Highlight}
  progress.cw-meter::-webkit-progress-bar{background:Canvas}
  progress.cw-meter::-webkit-progress-value,progress.cw-meter::-moz-progress-bar{background:Highlight}
}

/* ---------- Public page options ---------- */
/* What the public page shows: summed up under the visibility of the credential's page, and set in a dialog of the
   shell, groups of switches beside the real public page in a frame. From 768px the dialog has two columns and fits the
   viewport: the frame takes the height there is, and the switches scroll on their own only when they are taller.
   Below, the dialog is the shell's bottom sheet and the preview waits behind a button. The frame shows a 390px page
   scaled to 340px, so a phone-sized page is seen at its own width. */

/* The summary: a quiet inset panel (as the badge strip), its heading and Adjust on one row, then the name on a row of its
   own and the other options as inline items that wrap. An item that is off is muted and its eye crossed out; a screen
   reader hears yes or no. */
.cw-opt-summary{display:flex;flex-direction:column;gap:6px;margin-top:4px;padding:10px 12px;border-radius:12px;background:var(--bg)}
.cw-opt-summary-head{display:flex;align-items:center;gap:12px}
.cw-opt-summary-head .cw-t-label{flex:1 1 auto;min-width:0;margin:0}
.cw-opt-summary-head .cw-btn{flex:none}
.cw-opt-summary-list{display:flex;flex-wrap:wrap;gap:2px 12px;margin:0;padding:0;list-style:none;font-size:13px}
.cw-opt-summary-list li{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%}
.cw-opt-summary-list li>span:not(.cw-ic){overflow-wrap:anywhere}
.cw-opt-summary-list li.cw-opt-off{color:var(--muted)}
/* The name (always the first option) is a row of its own: a long name wraps inside it, and the other items share at
   most two rows under it. */
.cw-opt-summary-list li[data-summary-option="full-name"]{flex:1 0 100%}

/* The dialog's line beside its title: what was stored, in the colour of its kind. */
/* While it is empty it is a live region only: rendered, so that it is in the accessibility tree and a text written into it later
   is announced, but out of the flow like .cw-sr-only (no box, no flex line, no gap). With a text it is beside the title, taking
   what is left and never less than its longest word (a text that must be read cannot be squeezed to nothing, also with the
   user's own text spacing; break-word keeps min-content at the longest word, anywhere would not); the title keeps wrapping
   between words. */
.cw-opt-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0;font-size:13px;font-weight:500;color:var(--ok)}
.cw-opt-status:not(:empty){position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;flex:1 1 0;min-width:min-content;overflow-wrap:break-word;align-self:center}
/* On a phone it is a row of its own under the title and the close button, in the full width; the markup order stays. */
@media (max-width:480px){
  .cw-pub-dialog .cw-dialog-head{flex-wrap:wrap;row-gap:4px}
  .cw-pub-dialog .cw-dialog-head h2{flex:1 1 0}
  .cw-pub-dialog .cw-dialog-head .cw-opt-status{order:1;flex:1 0 100%;min-width:0;text-align:start}
}
.cw-opt-status.cw-opt-status-bad{color:var(--bad)}
/* Where the dialog scrolls as a whole (the phone sheet below 768px, and from 768px on a viewport lower than 560px, where the
   scrim scrolls), its head stays in view: the line that says what was stored or refused is beside the title and would scroll
   away with it, and a refusal would put a switch back without anyone seeing why. Opaque, above the rows, with the corners
   of the dialog; the rows brought into view by the keyboard stop below it (scroll-padding on whatever scrolls: a fixed
   allowance for the head, its title on up to two lines and the status row, not its measured height). The low-viewport gate is
   the exact negation of the fitting rule's (min-height:560px), so that no fractional height falls between them. From 768px
   on a viewport of 560px or more the head is outside the scrolling column already. */
@media (max-width:767px){
  .cw-pub-dialog .cw-dialog-head{position:sticky;top:0;z-index:2;background:var(--surface);border-radius:20px 20px 0 0;padding-bottom:10px}
  .cw-dialog.cw-pub-dialog{scroll-padding-top:96px}
}
@media (max-width:480px){.cw-dialog.cw-pub-dialog{scroll-padding-top:136px}}
@media (min-width:768px) and (not (min-height:560px)){
  .cw-pub-dialog .cw-dialog-head{position:sticky;top:0;z-index:2;background:var(--surface);border-radius:18px 18px 0 0;padding-bottom:10px}
  .cw-scrim.cw-pub-scrim{scroll-padding-top:96px}
}

.cw-pub-body{gap:12px}

.cw-opt-layout{display:grid;gap:16px;grid-template-columns:minmax(0,1fr);align-items:start}
.cw-opt-main{display:flex;flex-direction:column;min-width:0}
.cw-opt-grp{display:flex;flex-direction:column}
.cw-opt-group{margin:0;padding:10px 0 2px;border-top:1px solid var(--line-2);font-size:12.5px;font-weight:500;color:var(--muted)}
.cw-opt-grp:first-child .cw-opt-group{padding-top:4px;border-top:0}
/* Rows closer than in a settings page: the dialog shows every switch beside the preview without scrolling. */
.cw-opt-grp .cw-set-row{padding:9px 0}
.cw-opt-group+.cw-set-row{padding-top:6px;border-top:0}
/* The stylesheet takes the room under a last row away; a group keeps it, so that its last hint does not touch the next caption's line. */
.cw-opt-grp .cw-set-row:last-child{padding-bottom:10px}
.cw-opt-grp:last-of-type .cw-set-row:last-child{padding-bottom:0}
/* The files group ends with its notice: the row before it keeps the room a last row has (the notice, hidden, takes none). */
.cw-pub-dialog .cw-opt-grp>.cw-set-row:nth-last-child(2){padding-bottom:10px}
.cw-opt-main .cw-set-row .cw-lbl label{display:block;min-height:24px}
.cw-set-row.cw-opt-locked .cw-lbl b,.cw-set-row.cw-opt-locked .cw-lbl span{color:var(--muted)}
.cw-set-row.cw-opt-locked .cw-lbl label{cursor:not-allowed}
.cw-set-row.cw-opt-locked .cw-switch{opacity:.45;cursor:not-allowed}
.cw-opt-notice{margin:0;padding-top:10px;border-top:1px solid var(--line-2)}
.cw-opt-notice:not([hidden]){margin-top:10px}
.cw-opt-notice:not([hidden])+.cw-opt-notice{margin-top:0;border-top:0;padding-top:6px}
/* In the credential's dialog a notice stands under the switch it speaks of, as a line of that switch (no rule above it, as
   the bulk dialog's notices have, which keep the rules above). */
.cw-pub-dialog .cw-opt-grp>.cw-opt-notice{margin:0;padding:0;border-top:0}
.cw-pub-dialog .cw-opt-grp>.cw-opt-notice:not([hidden]){margin:-3px 0 8px}
.cw-pub-dialog .cw-opt-grp>.cw-opt-notice:not([hidden])~.cw-opt-notice:not([hidden]){margin-top:0}
.cw-opt-preview{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0}
/* "Skip the preview": reached by Tab, seen only while it has focus, when it lies over the top of the frame it stands in. It is
   out of the flow, so the column is the same with it and without it. */
.cw-opt-skip{position:absolute;z-index:2;inset-block-start:4px;inset-inline-start:4px;box-sizing:border-box;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cw-app a.cw-opt-skip:focus{display:flex;align-items:center;width:auto;max-width:calc(100% - 8px);height:44px;padding:0 16px;overflow:visible;clip-path:none;white-space:normal;border-radius:10px;background:var(--accent);color:var(--on-accent);font-size:14px;font-weight:500;text-decoration:none}
.cw-opt-caption{margin:0;font-size:12.5px;font-weight:500;color:var(--muted)}
/* A phone shows the public page as it is, unscaled, in the room there is. */
.cw-opt-frame{position:relative;box-sizing:border-box;width:100%;height:562px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.cw-opt-frame iframe{display:block;width:100%;height:100%;border:0}
.cw-opt-toggle{justify-self:start}
.cw-opt-preview a[data-preview-open]{position:relative}
/* The link is 19.5px tall: 10px up (the gap to the frame, not over it) and 15px down (inside the dialog's padding) make 44.5px. */
.cw-opt-preview a[data-preview-open]::after{content:"";position:absolute;inset:-10px -4px -15px}
/* From 768px: two columns, the switches and the preview. The frame is 342px wide (340 and its edge) and shows the 390px
   page scaled to 340px (390 * .8718 = 340); the framed page is as tall as the frame divided by the same scale. The
   frame is its phone height (562px) unless the dialog fits the viewport (below). */
@media (min-width:768px){
  .cw-scrim.cw-pub-scrim{padding:30px 16px}
  .cw-dialog.cw-pub-dialog{width:min(1040px,100%)}
  .cw-pub-body{padding-bottom:20px}
  .cw-pub-body .cw-opt-layout{display:flex;align-items:stretch;gap:20px}
  /* The 4px around the switches keep their focus ring inside the column when it scrolls. */
  .cw-pub-body .cw-opt-main{flex:1 1 auto;padding:4px;margin:-4px}
  .cw-app .cw-opt-preview[hidden]{display:flex!important}
  .cw-app .cw-opt-toggle{display:none!important}
  .cw-opt-preview{flex:none;width:342px;max-width:100%}
  .cw-opt-frame{position:relative;flex:0 1 562px;min-height:240px;width:342px;max-width:100%;height:auto}
  .cw-opt-frame iframe{position:absolute;top:0;inset-inline-start:0;width:390px;height:calc(100% / .8718);transform:scale(.8718);transform-origin:top left}
  [dir="rtl"] .cw-opt-frame iframe{transform-origin:top right}
}
/* Where the viewport is tall enough for what the dialog cannot do without (its head, the address and a frame of 240px),
   it fits the viewport: never taller than it less 60px (30px above and below), its body sharing that height between
   the switches, which scroll on their own when they need to, and the preview, whose frame takes what is left up to its
   phone height. On a shorter viewport (a phone in landscape, a laptop zoomed in) the dialog is as tall as what it holds
   and the scrim scrolls, so nothing is cut off. */
@media (min-width:768px) and (min-height:560px){
  /* dvh: the height left by the browser's toolbars (a tablet's 100vh is taller than what is seen); vh where unknown. */
  .cw-dialog.cw-pub-dialog{max-height:calc(100vh - 60px);max-height:calc(100dvh - 60px);overflow:hidden}
  .cw-pub-body{flex:1 1 auto;min-height:0}
  .cw-pub-body .cw-opt-layout{flex:1 1 auto;min-height:0}
  .cw-pub-body .cw-opt-main{min-height:0;overflow:auto}
  .cw-opt-preview{min-height:0}
}

/* ---------- Paper ---------- */
/* Printed, a page is its content: the bars and the footers of the shell are left out. */
@media print{.cw-topbar,.cw-pubbar,.cw-moment-bar,.cw-foot,.cw-pub-foot{display:none!important}}

