/* type scale: .75 · .875 · 1 · 1.25 · 1.5 · 1.875 rem (six sizes) */
/* ---- App shell + content: mirrors Ymir (Tailwind/shadcn values from its bundle) ---- */
:root{--card:#fff;--link:var(--primary);--fg:hsl(222.2 84% 4.9%);--muted:hsl(210 40% 96.1%);--muted-fg:hsl(215.4 16.3% 44%);--border:hsl(214.3 31.8% 91.4%);--primary:hsl(221.2 83.2% 53.3%);
  --btn:#2563eb;--btn-hover:#1d4ed8;--navy:#1e2a4a;--navy-light:#2d3a5a;--blue:#3b82f6;--ok:#15803d;--warn:#b45309;--bad:#dc2626}
*{box-sizing:border-box}
body.app{margin:0;height:100vh;display:flex;flex-direction:column;background:#fff;color:var(--fg);
  font:14px/1.5 ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}
a{color:var(--link);text-decoration:none}a:hover{text-decoration:underline}
.ic{width:1.25rem;height:1.25rem;flex:none}
.skip{position:absolute;left:-999px}.skip:focus{left:8px;top:8px;z-index:60;background:#fff;padding:1rem;color:var(--primary)}
.topbar{height:4rem;background:var(--navy);border-bottom:1px solid var(--navy-light);display:flex;align-items:center;justify-content:space-between;padding:0 1.5rem;flex:none}
.topbar-left{display:flex;align-items:center;gap:1rem}.topbar-logo img{height:2rem;width:auto;filter:brightness(0) invert(1);display:block}
.topbar-btn{background:none;border:0;color:#d1d5db;padding:.5rem;border-radius:.375rem;cursor:pointer;display:flex}.topbar-btn:hover{color:#fff;background:var(--navy-light)}
.usermenu{position:relative}.usermenu summary{list-style:none;display:flex;align-items:center;gap:.5rem;color:#d1d5db;cursor:pointer;padding:.375rem .75rem;border-radius:.375rem}
.usermenu summary::-webkit-details-marker{display:none}.usermenu summary:hover{background:var(--navy-light);color:#fff}.usermenu summary .ic{width:1rem;height:1rem}
.avatar{width:2rem;height:2rem;border-radius:9999px;background:var(--blue);display:flex;align-items:center;justify-content:center;color:#fff}.avatar .ic{width:1rem;height:1rem}
.who{display:flex;flex-direction:column;line-height:1.2}.who-name{font-size:.875rem;font-weight:500;color:#fff}.who-role{font-size:.75rem;color:#9ca3af}
.menu{position:absolute;right:0;top:calc(100% + .375rem);width:14rem;background:#fff;border:1px solid var(--border);border-radius:.375rem;box-shadow:0 10px 15px -3px rgb(0 0 0/.1),0 4px 6px -4px rgb(0 0 0/.1);padding:.25rem;z-index:50}
.menu-head{padding:.375rem .5rem}.menu-name{margin:0;font-size:.875rem;font-weight:500}.menu-mail{margin:0;font-size:.75rem;color:var(--muted-fg)}
.menu hr{border:0;border-top:1px solid var(--border);margin:.25rem -.25rem}
.menu a,.menu button{display:flex;align-items:center;width:100%;padding:.375rem .5rem;font-size:.875rem;color:var(--fg);border-radius:.25rem;background:none;border:0;cursor:pointer;font-family:inherit;text-decoration:none}
.menu a:hover,.menu button:hover{background:var(--muted)}.menu .ic{width:1rem;height:1rem;margin-right:.5rem}.menu .menu-logout{color:var(--bad)}
.shell{flex:1;display:flex;overflow:hidden;position:relative}
.sidebar{display:flex;flex-direction:column;background:#fff;border-right:1px solid var(--border);width:16rem;transition:width .3s;flex:none;height:100%}
.side-scroll{flex:1;padding:1rem 0;overflow-y:auto}.sidebar ul{list-style:none;margin:0;padding:0}.sidebar li+li{margin-top:.125rem}
.side-section button{display:flex;width:100%;align-items:center;justify-content:space-between;padding:1rem 1rem .25rem;background:none;border:0;cursor:pointer;
  font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--muted-fg);font-family:inherit}
.side-section button:hover{color:var(--fg);background:none}.side-section .chev{width:1rem;height:1rem;transition:transform .15s}.side-section button[aria-expanded="false"] .chev{transform:rotate(-90deg)}
.side-link{display:flex;align-items:center;padding:.625rem 1rem;font-size:.875rem;font-weight:500;color:var(--muted-fg);border-left:4px solid transparent;transition:all .15s;text-decoration:none!important}
.side-link .ic{margin-right:.75rem}.side-link:hover{background:var(--muted);color:var(--fg)}
.side-link.active{color:#1d4ed8;border-left-color:var(--primary);background:hsl(221.2 83.2% 53.3%/.1);animation:slide-in-left .2s ease-out}
@keyframes slide-in-left{from{transform:translateX(-4px);opacity:.6}to{transform:none;opacity:1}}
.side-collapse{display:flex;align-items:center;justify-content:center;padding:.5rem;margin:.5rem;color:var(--muted-fg);background:none;border:0;border-radius:.375rem;cursor:pointer}
.side-collapse:hover{color:var(--fg);background:var(--muted)}
body.side-min .sidebar{width:4rem}body.side-min .side-link span,body.side-min .side-section{display:none}body.side-min .side-link{justify-content:center;padding:.625rem 0}
body.side-min .side-link .ic{margin:0}body.side-min .side-collapse .ic{transform:rotate(180deg)}
.main{flex:1;overflow-x:hidden;overflow-y:auto;padding:1.5rem;min-width:0}
.appfoot{height:3rem;background:var(--navy);border-top:1px solid var(--navy-light);display:flex;align-items:center;justify-content:center;padding:0 1.5rem;flex:none}
.appfoot p{margin:0;font-size:.875rem;color:#9ca3af}
.overlay{display:none}.mobile-only{display:none}
@media (max-width:767px){.topbar{height:3.5rem;padding:0 .75rem}.topbar-left,.topbar-right{gap:.375rem;min-width:0}.usermenu summary{padding:.375rem .5rem}.mobile-only{display:flex}.who{display:none}.main{padding:.75rem}
  .sidebar{position:fixed;top:0;bottom:0;left:0;z-index:50;transform:translateX(-100%);transition:transform .3s;width:16rem!important}
  body.drawer-open .sidebar{transform:none}body.drawer-open .overlay{display:block;position:fixed;inset:0;background:rgb(0 0 0/.5);z-index:40}
  .side-collapse{display:none}body.side-min .side-link span,body.side-min .side-section{display:revert}}
/* content */
h1{font-size:1.5rem;font-weight:700;color:#111827;margin:0 0 1rem}h2{font-size:1rem;font-weight:600;letter-spacing:-.01em;margin:0 0 .75rem}
.card{background:#fff;border:1px solid var(--border);border-radius:.5rem;box-shadow:0 1px 2px 0 rgb(0 0 0/.05);padding:1.5rem;margin-bottom:1.5rem;overflow-x:auto}
.grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));margin-bottom:1.5rem}
.stat{background:#fff;border:1px solid var(--border);border-radius:.5rem;box-shadow:0 1px 2px 0 rgb(0 0 0/.05);padding:1rem 1.25rem}
.stat span:first-child{font-size:.875rem;color:var(--muted-fg)}.stat b{display:block;font-size:1.5rem;font-weight:700;margin:.25rem 0}
.cols{display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(min(420px,100%),1fr))}.cols>*{min-width:0}
/* Hard rule: whatever holds cards is spaced like a card, so stacked blocks never touch */
.cols,.board,form:has(> .card){margin-bottom:1.5rem}
table{width:100%;border-collapse:collapse;font-size:.875rem}th,td{text-align:left;padding:.625rem .75rem;border-bottom:1px solid var(--border);vertical-align:top}
th{color:var(--muted-fg);font-weight:500;white-space:nowrap}tr:hover td{background:hsl(210 40% 96.1%/.5)}
.muted{color:var(--muted-fg)}.small{font-size:.75rem}.nowrap{white-space:nowrap}.sort-h{color:inherit;text-decoration:none;white-space:nowrap}.sort-h:hover{text-decoration:underline}.info-col{min-width:14rem;max-width:22rem;line-height:1.35}.right{text-align:right}
.tag{display:inline-flex;align-items:center;padding:.125rem .625rem;border-radius:9999px;font-size:.75rem;font-weight:600;background:var(--muted);color:var(--fg);border:1px solid transparent}
.tag.ok{background:#dcfce7;color:var(--ok)}.tag.warn{background:#fef3c7;color:var(--warn)}.tag.bad{background:#fee2e2;color:#b91c1c}.tag.off{background:#f3f4f6;color:#4b5563}
form.inline{display:inline}.filters{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;margin-bottom:1rem}
input,select,textarea{font:inherit;font-size:.875rem;height:2.5rem;padding:.5rem .75rem;border:1px solid var(--border);border-radius:calc(.5rem - 2px);background:#fff;color:var(--fg)}
textarea{height:auto;width:100%}input[type=checkbox]{height:auto}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible{outline:none;box-shadow:0 0 0 2px var(--card),0 0 0 4px var(--primary)}
button,.btn{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;height:2.5rem;font:inherit;font-size:.875rem;font-weight:500;padding:.5rem 1rem;border-radius:calc(.5rem - 2px);
  border:1px solid var(--btn);background:var(--btn);color:#fff;cursor:pointer;transition:background-color .15s}
/* one primary style (blue, v0.69.0); navy is the secondary style */
button:where(:not([class*=toastui])):hover{background:var(--btn-hover)}button.secondary,.btn.secondary{background:var(--navy);border-color:var(--navy)}button.secondary:hover,.btn.secondary:hover{background:var(--navy-light)}button.ghost,.btn.ghost{background:#fff;color:var(--fg);border-color:var(--border)}button.ghost:hover,.btn.ghost:hover{background:var(--muted)}
button.danger{background:var(--bad);border-color:var(--bad)}
.formgrid{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));align-items:end}.formgrid label{display:flex;flex-direction:column;gap:.375rem;font-size:.875rem;font-weight:500}
.checks label{display:inline-flex;align-items:center;gap:.375rem;margin-right:.75rem;font-size:.875rem}
.pager{display:flex;gap:.25rem;flex-wrap:wrap;margin-top:.5rem}.pager a,.pager span{padding:.25rem .625rem;border:1px solid var(--border);border-radius:.375rem;background:#fff;font-size:.875rem}
.pager .cur{background:var(--navy);color:#fff;border-color:var(--navy)}
.error{color:var(--bad);margin:.5rem 0}code{background:var(--muted);padding:.125rem .375rem;border-radius:.25rem;overflow-wrap:break-word}  /* break-word: a long path still breaks, a {placeholder} or a domain stays whole (UI review 2026-10-23) */
.banner{background:#fef3c7;border:1px solid #f59e0b;padding:.625rem 1rem;border-radius:.5rem;margin:0 0 1rem}
.flash{background:#dcfce7;border:1px solid #16a34a;padding:.625rem 1rem;border-radius:.5rem;margin:0 0 1rem}
.actions{display:flex;gap:.625rem;flex-wrap:wrap;align-items:center}
.qr{display:block;margin:10px auto;width:220px;height:220px;image-rendering:pixelated}
td form{display:flex;gap:.375rem;align-items:center;flex-wrap:nowrap}
td input,td select,td button{height:2rem;padding:.25rem .5rem;font-size:.75rem}td input[name=note]{width:7rem}
.tag{white-space:nowrap}
[hidden]{display:none!important}

/* ---- Sign-in screens: mirror the Njordium sign-in page (Tailwind/shadcn values from its bundle) ---- */
.auth{min-height:100vh;display:flex;align-items:center;justify-content:center;background-image:linear-gradient(to bottom right,#1e2a4a,#2d3a5a);
  font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";color:var(--fg);margin:0}
.auth-wrap{max-width:28rem;width:100%;margin:0 1rem}
.auth-card{background:var(--card);border-radius:.75rem;box-shadow:0 25px 50px -12px rgb(0 0 0/.25);padding:2rem}
.auth-head{text-align:center;margin-bottom:2rem}
.auth-logo{width:100%;height:auto;max-height:6rem;object-fit:contain;margin-bottom:1.25rem}
.auth-sub{font-size:.875rem;line-height:1.25rem;color:var(--muted-fg);margin:0}
.auth-form>*+*{margin-top:1.5rem}.auth-field>*+*{margin-top:.5rem}
.auth-label{display:block;font-size:.875rem;font-weight:500;line-height:1}
.auth-input{display:flex;height:2.5rem;width:100%;border-radius:calc(.5rem - 2px);border:1px solid hsl(214.3 31.8% 91.4%);background:#fff;padding:.5rem .75rem;
  font-size:.875rem;line-height:1.25rem;color:inherit;font-family:inherit;box-sizing:border-box}
.auth-input::placeholder{color:var(--muted-fg)}
.auth-input:focus-visible{outline:none;box-shadow:0 0 0 2px var(--card),0 0 0 4px var(--primary)}
.auth-btn{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;width:100%;height:2.5rem;padding:.5rem 1rem;border:0;
  border-radius:calc(.5rem - 2px);font-size:.875rem;font-weight:500;font-family:inherit;color:#fff;cursor:pointer;transition:background-color .15s}
.auth-btn:focus-visible{outline:none;box-shadow:0 0 0 2px var(--card),0 0 0 4px var(--primary)}
.auth-btn.green{background:#15803d}.auth-btn.green:hover{background:#166534}.auth-btn.navy{background:#1e2a4a}.auth-btn.navy:hover{background:#2d3a5a}
.auth-btn svg,.auth-mfa svg{width:1rem;height:1rem;margin-right:.5rem;flex:none}
/* a step-by-step sign-in (a second step, a second-factor choice): the step's title, who is signing in (the address and a
   "Not you?" link), notes and info lines inside the card (core v0.3.0, from the SSO portal) */
.auth-title{font-size:1rem;font-weight:600;text-align:center;margin:-1rem 0 1.5rem}
.auth-who{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:-.5rem 0 1.5rem;padding:.5rem .75rem;
  border:1px solid var(--border);border-radius:calc(.5rem - 2px);font-size:.875rem;overflow-wrap:anywhere}
.auth-card .auth-note{margin:0 0 1.5rem}.auth-info{font-size:.875rem;text-align:center;color:var(--muted-fg)}
.auth-error{font-size:.875rem;color:#ef4444;margin:0}
.auth-divider{position:relative;display:flex;justify-content:center;font-size:.75rem;text-transform:uppercase;color:var(--muted-fg)}
.auth-divider:before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px solid var(--border)}
.auth-divider span{position:relative;background:var(--card);padding:0 .5rem}
.auth-link{display:block;width:100%;text-align:center;font-size:.875rem;color:var(--muted-fg);background:none;border:0;cursor:pointer;font-family:inherit}
.auth-link:hover{color:hsl(222.2 84% 4.9%)}
.auth-mfa{margin-top:1.5rem;display:flex;align-items:center;justify-content:center;font-size:.875rem;color:var(--muted-fg)}
.auth-foot{text-align:center;font-size:.875rem;color:rgb(209 213 219);margin-top:1.5rem}
.auth-qr{display:block;margin:0 auto;width:12rem;height:12rem;image-rendering:pixelated}
.auth-key{font-size:.75rem;color:var(--muted-fg);text-align:center;word-break:break-all}
.auth-key code{background:hsl(210 40% 96.1%);padding:.125rem .375rem;border-radius:.25rem;color:hsl(222.2 84% 4.9%)}
.auth-text{font-size:.875rem;line-height:1.25rem;color:var(--muted-fg);margin:0;text-align:center}
.auth-alert{margin-bottom:1.5rem;border:1px solid #ef4444;color:#ef4444;border-radius:.5rem;padding:.75rem 1rem;font-size:.875rem}
.auth-pw{position:relative}.auth-pw .auth-input{padding-right:2.5rem}
.auth-eye{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);background:none;border:0;padding:0;cursor:pointer;color:#9ca3af;display:flex}
.auth-eye:hover{color:#4b5563}.auth-eye svg{width:1rem;height:1rem}.auth-eye .eye-off,.auth-eye.on .eye-open{display:none}.auth-eye.on .eye-off{display:block}
.auth-row{display:flex;align-items:center;justify-content:space-between;padding-top:.5rem}
.auth-check{display:flex;align-items:center;gap:.5rem;cursor:pointer;font-size:.875rem;color:var(--muted-fg)}
.auth-check input{width:1rem;height:1rem;border-radius:.25rem;accent-color:#1e2a4a}
.auth-link.small{width:auto;font-size:.75rem}.auth-link{text-decoration:none}
[hidden]{display:none!important}
/* ---- Ymir page patterns (from the logged-in demo) ---- */
.page-head{margin-bottom:1.5rem}.page-head h1{margin:0}.page-sub{margin:.25rem 0 0;font-size:1rem;color:var(--muted-fg)}.crumb{margin:0 0 .25rem;font-size:.875rem;color:var(--muted-fg)}
.section-title{font-size:1rem;font-weight:700;margin:1.75rem 0 1rem}
.stats{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));margin-bottom:.5rem}
.stat{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding:1.5rem;color:inherit;text-decoration:none!important;background:#fff;border:1px solid var(--border);border-radius:.5rem;box-shadow:0 1px 2px 0 rgb(0 0 0/.05)}
.stat:hover{box-shadow:0 4px 6px -1px rgb(0 0 0/.1),0 2px 4px -2px rgb(0 0 0/.1)}
.stat p{margin:0}.stat-label{font-size:.875rem;color:var(--muted-fg)}.stat-num{font-size:1.875rem;font-weight:700;line-height:2.25rem;margin-top:.25rem!important;white-space:nowrap}
.stat>div{min-width:0}
/* a figure stays on one line; app.js shrinks it only when it does not fit its tile (UI review 2026-10-23) */
.stat-num{max-width:100%}
.stat-of{font-size:1.5rem;font-weight:400;color:var(--muted-fg)}.stat-note{font-size:.75rem;color:var(--muted-fg);margin-top:.25rem!important}
.badge-ic{width:3rem;height:3rem;border-radius:9999px;display:flex;align-items:center;justify-content:center;flex:none}.badge-ic .ic{width:1.5rem;height:1.5rem}
.badge-ic.blue{background:#eff6ff;color:#2563eb}.badge-ic.amber{background:#fefce8;color:#ca8a04}.badge-ic.green{background:#f0fdf4;color:#16a34a}
.badge-ic.purple{background:#faf5ff;color:#9333ea}.badge-ic.teal{background:#f0fdfa;color:#0d9488}.badge-ic.red{background:#fef2f2;color:#dc2626}
.table-frame{border:1px solid var(--border);border-radius:.375rem;overflow:auto;background:#fff;margin-bottom:1rem}
table.data{font-size:1rem}table.data tr:first-child th{background:var(--navy);color:#fff;font-weight:500;font-size:.875rem;padding:.75rem 1rem;position:sticky;top:0}
/* label and value tables (company details, a document's facts, ESPD, records of processing): no header row, the labels column as wide as its text */
table.data.facts th,table.data.facts tr:first-child th{background:none;color:var(--muted-fg);font-weight:500;font-size:.875rem;width:1%;white-space:nowrap;position:static;padding:.45rem 1.5rem .45rem 0;vertical-align:top}table.data.facts td{padding:.45rem 0;font-size:.9375rem}
html[data-compact] table.data.facts th,html[data-compact] table.data.facts tr:first-child th{padding:.3rem 1rem .3rem 0}html[data-compact] table.data.facts td{padding:.3rem 0}
table.data td{padding:1rem;font-size:.875rem}table.data tr:hover td{background:hsl(210 40% 96.1%/.5)}
.toolcard{padding:1.5rem}.toolbar{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.toolbar .segmented{margin-bottom:0}.key-state{margin:.25rem 0 1rem;font-size:.875rem;color:var(--muted-fg)}
.search{flex:1;min-width:16rem;position:relative;display:flex;align-items:center}.search .ic{position:absolute;left:.75rem;width:1rem;height:1rem;color:var(--muted-fg)}
.search input{width:100%;padding-left:2.25rem}.showing{margin:1rem 0;font-size:.875rem}
button .ic,.btn .ic{width:1rem;height:1rem;margin-right:.5rem}a.btn{text-decoration:none!important}a.btn.ghost{background:#fff;color:var(--fg);border:1px solid var(--border)}a.btn.ghost:hover{background:var(--muted)}
.segmented{display:inline-flex;gap:.25rem;padding:.25rem;border:1px solid var(--border);border-radius:.5rem;background:#fff;margin-bottom:1.5rem;flex-wrap:wrap}
.segmented a{padding:.375rem .75rem;border-radius:.375rem;font-size:.875rem;color:var(--muted-fg);text-decoration:none!important}.segmented a:hover{color:var(--fg)}
.segmented a.on{background:#2563eb;color:#fff}
.segmented a.on .seg-n{background:#fff;color:#1d4ed8;font-weight:600}  /* active tab: white on #2563eb 5.2:1, its count #1d4ed8 on white 6.7:1 (was 3.7:1 and white on grey) */
.topbar-right{display:flex;align-items:center;gap:1rem}.bell{position:relative;color:#d1d5db;display:flex;padding:.5rem;border-radius:.375rem}.bell:hover{color:#fff;background:var(--navy-light)}
.bell-count{position:absolute;top:-.125rem;right:-.25rem;min-width:1.25rem;height:1.25rem;padding:0 .25rem;border-radius:9999px;background:#dc2626;color:#fff;font-size:.75rem;font-weight:600;display:flex;align-items:center;justify-content:center}
.menu-version{margin:.25rem .5rem;font-size:.75rem;color:var(--muted-fg)}
.tag{border:1px solid transparent}.tag.outline{background:#fff;border-color:var(--border);color:var(--muted-fg)}
@media (max-width:767px){.stats{grid-template-columns:1fr 1fr}.stat{padding:1rem}.stat-num{font-size:1.5rem;line-height:1.25}.badge-ic{width:2.5rem;height:2.5rem}.search{min-width:100%}}
.bellmenu{position:relative}.bellmenu summary{list-style:none;cursor:pointer}.bellmenu summary::-webkit-details-marker{display:none}
.notif{width:22rem;padding:.25rem}.notif-head{margin:0;padding:.5rem .75rem;font-size:.875rem;font-weight:600;border-bottom:1px solid var(--border)}
.menu .notif-item{display:flex;align-items:flex-start;gap:.75rem;padding:.625rem .75rem;line-height:1.35}.notif-item b{font-weight:600;font-size:.875rem}
.badge-ic.sm{width:2rem;height:2rem}.badge-ic.sm .ic{width:1rem;height:1rem;margin:0}.notif-empty{margin:0;padding:1rem .75rem;font-size:.875rem;color:var(--muted-fg)}
/* tender profile test, grouped countries, small buttons */
.toolbar-inline{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
button.small,.btn.small{height:2rem;padding:.2rem .6rem;font-size:.75rem}
/* notifications */
tr.unread td{background:#f8fafc}.notif-all{justify-content:center;font-size:.75rem}
/* Integration Settings (Ymir layout) */
.tabbar{display:flex;gap:.25rem;background:#f1f5f9;border-radius:6px;padding:4px;margin:0 0 1rem;overflow-x:auto}
.tabbar .tab{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;height:32px;padding:0 .75rem;border-radius:4px;font-size:.875rem;color:#4b5563;text-decoration:none!important;white-space:nowrap}
.tabbar .tab .ic{width:1rem;height:1rem}.tabbar .tab.active{background:#fff;color:#020817;font-weight:500;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.int-wrap{padding:1.5rem}.int-title{font-size:1.5rem;font-weight:700;margin:0}.int-wrap>.page-sub{margin:.25rem 0 1.25rem}
.int-card{border:1px solid var(--border);border-radius:8px;padding:1rem 1rem .75rem;margin:0 0 1.5rem;background:#fff}
.int-head{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.int-head h3{margin:0;font-size:1rem;font-weight:600}
.int-actions{margin-left:auto}.int-actions button .ic{width:1rem;height:1rem}
.int-desc{margin:.5rem 0 .75rem;font-size:.875rem;color:var(--muted-fg)}
.int-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem 1rem;margin:.5rem 0}.int-grid.four{grid-template-columns:repeat(5,minmax(0,1fr))}.int-grid input:not([type=checkbox]):not([type=radio]),.int-grid select,.int-grid textarea{width:100%;min-width:0}
.int-grid label{display:flex;flex-direction:column;gap:.375rem;font-size:.875rem;font-weight:500}
.hint{font-size:.75rem;color:var(--muted-fg);font-weight:400;margin:.25rem 0}.int-label{font-size:.875rem;font-weight:500;margin:1rem 0 .5rem}
.inline-check{display:inline-flex;gap:.3rem;align-items:center;margin-left:.5rem}
.radio-card{display:flex;gap:.6rem;align-items:flex-start;border:1px solid var(--border);border-radius:6px;padding:.5rem .75rem;margin:0 0 .5rem;font-size:.875rem;cursor:pointer}
.radio-card input{margin-top:.3rem}.radio-card:has(input:checked){border-color:#93c5fd;background:#f8fbff}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem;margin:1rem 0}.stat-grid div{border:1px solid var(--border);border-radius:6px;padding:.6rem .75rem;font-size:.75rem;color:var(--muted-fg)}
.stat-grid span{display:block;font-size:1.25rem;font-weight:700;color:var(--fg)}
details.int-more{border-top:1px solid var(--border);margin-top:.75rem;padding-top:.5rem}details.int-more summary{cursor:pointer;font-size:.875rem;font-weight:500}
.int-foot{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.75rem}.panel{background:#f1f5f9;border-radius:8px;padding:1rem;margin:.5rem 0}
.switch{position:relative;display:inline-block;width:36px;height:20px;flex:none}.switch input{opacity:0;width:0;height:0;position:absolute}
.switch .slider{position:absolute;inset:0;background:#e2e8f0;border-radius:9999px;transition:background .15s;cursor:pointer}
.switch .slider:before{content:"";position:absolute;width:16px;height:16px;left:2px;top:2px;background:#fff;border-radius:50%;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .15s}
.switch input:checked+.slider{background:#2563eb}.switch input:checked+.slider:before{transform:translateX(16px)}.switch input:focus-visible+.slider{box-shadow:0 0 0 2px var(--card),0 0 0 4px var(--primary)}
@media (max-width:720px){.int-grid,.int-grid.four{grid-template-columns:1fr}.stat-grid{grid-template-columns:1fr 1fr}.tabbar .tab{flex:none}}
.int-wrap>.page-sub{font-size:.875rem}.int-head h3{font-weight:500}
/* User Management / Audit Logs (Ymir layout) */
.um-head{display:flex;align-items:flex-start;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.um-title{display:flex;align-items:center;gap:.5rem}.um-title .ic{width:1.25rem;height:1.25rem}
.um-head .int-actions{display:flex;gap:.5rem;flex-wrap:wrap}.um-head button .ic,.um-head .btn .ic{width:1rem;height:1rem;margin-right:.4rem}
button.primary,.btn.primary{background:var(--btn);border-color:var(--btn)}button.primary:hover,.btn.primary:hover{background:var(--btn-hover)}
.um-search{display:flex;align-items:center;gap:.5rem;border:1px solid var(--border);border-radius:6px;padding:0 .75rem;margin:0 0 1rem;background:#fff}
.um-search .ic{width:1rem;height:1rem;color:var(--muted-fg)}.um-search input{border:0;flex:1;height:2.5rem;outline:none;box-shadow:none;background:transparent}
.um-user{display:inline-flex;align-items:center;gap:.6rem}.avatar{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:50%;background:#1e2a4a;color:#fff;font-size:.75rem;font-weight:600}
.role{display:inline-block;padding:.15rem .6rem;border-radius:9999px;font-size:.75rem;font-weight:600}.role.admin{background:#e0e7ff;color:#3730a3}.role.user{background:#f1f5f9;color:#334155}
.um-actions{white-space:nowrap}.um-actions form{display:inline}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;background:transparent;border:0;color:var(--fg)}
.icon-btn:hover{background:var(--muted)}.icon-btn .ic{width:1rem;height:1rem;margin:0}.icon-btn.amber{color:#d97706}.icon-btn.blue{color:#2563eb}.icon-btn.red{color:#dc2626}.icon-btn.green{color:#16a34a}
.icon-btn[disabled]{opacity:.35;cursor:not-allowed}
dialog.dlg{border:0;border-radius:10px;padding:1.5rem;width:min(720px,94vw);max-height:90vh;overflow:auto;box-shadow:0 20px 50px rgba(15,23,42,.3)}
dialog.dlg::backdrop{background:rgba(15,23,42,.55)}.dlg-head{display:flex;justify-content:space-between;align-items:center}.dlg-head h2{margin:0;font-size:1.25rem}
.dlg-x{background:transparent;border:0;color:var(--muted-fg);font-size:1.5rem;width:2rem;height:2rem;padding:0}
.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.4rem 0;font-size:.875rem;cursor:pointer}
.audit-filters{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center;margin-bottom:.75rem}.audit-filters .um-search{flex:1;min-width:16rem;margin:0}
.audit-detail summary{list-style:none;cursor:pointer;display:inline-flex}.audit-detail summary::-webkit-details-marker{display:none}.audit-detail .ic{width:1rem;height:1rem}
.audit-detail div{margin-top:.25rem;font-size:.75rem;color:var(--muted-fg);max-width:28rem;white-space:normal;word-break:break-word}
td.trunc{max-width:14rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.auth-note{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;border-radius:6px;padding:.6rem .75rem;font-size:.875rem;margin:0 0 1rem}.auth-intro{font-size:.875rem;margin:0 0 1rem}
/* light tables (User Management, Audit Logs) as in Ymir */
table.data.light tr:first-child th{background:#fff;color:var(--muted-fg);font-size:.875rem;font-weight:500;border-bottom:1px solid var(--border)}
table.data.light td{background:#fff;padding:.75rem 1rem;font-size:.875rem;vertical-align:middle}table.data.light tr:hover td{background:#f8fafc}
.um-table .um-user{white-space:nowrap}.um-table td:nth-child(2){overflow-wrap:break-word;min-width:12rem}.um-actions{width:1%}.um-actions .icon-btn{width:1.9rem}
.um-table td,.um-table th{padding-left:.6rem;padding-right:.6rem}.um-actions .icon-btn{width:1.75rem}.um-table td:nth-child(2){min-width:10rem}
/* AI Providers (Ymir layout) */
.feature-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;border:1px solid var(--border);border-radius:8px;padding:.75rem 1rem;margin:0 0 .75rem;font-size:.875rem;cursor:pointer}
/* ---- Dark theme (Settings > Application) ---- */
html[data-eff=dark]{--fg:#e5e7eb;--muted:#1f2937;--muted-fg:#9ca3af;--border:#334155;--card:#111827;--link:#93b4ff;color-scheme:dark}
html[data-eff=dark] body.app{background:#0b1220}
html[data-eff=dark] .card,html[data-eff=dark] .int-card,html[data-eff=dark] .table-frame,html[data-eff=dark] dialog.dlg,html[data-eff=dark] .menu,
html[data-eff=dark] .um-search,html[data-eff=dark] .feature-row,html[data-eff=dark] .radio-card,html[data-eff=dark] .ai-card,html[data-eff=dark] .stat-grid div,
html[data-eff=dark] .sidebar,html[data-eff=dark] td,html[data-eff=dark] table.data.light td,html[data-eff=dark] table.data.light tr:first-child th{background:#111827;color:var(--fg)}
html[data-eff=dark] .panel,html[data-eff=dark] .tabbar,html[data-eff=dark] .ai-result,html[data-eff=dark] tr.unread td{background:#1e293b}
html[data-eff=dark] .tabbar .tab.active{background:#0b1220;color:var(--fg)}
html[data-eff=dark] input,html[data-eff=dark] select,html[data-eff=dark] textarea{background:#0b1220;color:var(--fg);border-color:var(--border)}
html[data-eff=dark] .side-link{color:#cbd5e1}html[data-eff=dark] .side-link.active,html[data-eff=dark] .side-link:hover{background:#1e293b;color:#fff}
html[data-eff=dark] .role.user,html[data-eff=dark] .tag{background:#1f2937;color:#e5e7eb}html[data-eff=dark] button.ghost,html[data-eff=dark] .btn.ghost{background:#111827;color:var(--fg)}
html[data-eff=dark] .footer{background:#0b1220}
/* ---- Compact view ---- */
html[data-compact] table.data td,html[data-compact] table.data.light td{padding:.35rem .6rem;font-size:.75rem}
html[data-compact] table.data tr:first-child th{padding:.4rem .6rem}html[data-compact] .card{padding:1rem;margin-bottom:1rem}.cols,.board,form:has(> .card){margin-bottom:1rem}
/* Settings (Ymir layout) */
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;align-items:start}.settings-grid .card{margin:0}
.settings-grid h2{font-size:1.25rem;margin:0}label.stack{display:flex;flex-direction:column;gap:.375rem;font-size:.875rem;font-weight:500;margin:.75rem 0}
label.stack .ic{width:1rem;height:1rem;display:inline}input.ro{background:var(--muted);color:var(--muted-fg)}button.wide{width:100%;margin-top:.5rem}
.sec-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;border:1px solid var(--border);border-radius:8px;padding:.65rem .9rem;margin:.6rem 0;font-size:.875rem}
.inline-form{display:flex;gap:.5rem;align-items:center;margin:.25rem 0 .5rem}.inline-form input{width:9rem}select.narrow{width:auto;min-width:8rem}
.sortable{list-style:none;margin:.5rem 0;padding:0}.sortable li{display:flex;align-items:center;gap:.5rem;border:1px solid var(--border);border-radius:6px;padding:.4rem .6rem;margin:0 0 .4rem;font-size:.875rem;cursor:grab;background:#fff}
.sortable li.dragging{opacity:.5}.sortable .grip{color:var(--muted-fg)}.sort-btns{margin-left:auto;display:flex}
html[data-eff=dark] .sortable li{background:#111827}
@media (max-width:900px){.settings-grid{grid-template-columns:1fr}}
html[data-eff=dark] h1,html[data-eff=dark] h2,html[data-eff=dark] h3,html[data-eff=dark] .page-head h1{color:var(--fg)}
label.stack>span.lbl{display:inline-flex;align-items:center;gap:.4rem}
html[data-eff=dark] input.ro{background:#1f2937;color:var(--muted-fg)}
dialog.result-dlg{width:min(520px,94vw);text-align:center;padding:1.75rem 1.75rem 1.25rem}
.result-mark svg{width:3rem;height:3rem}.result-dlg.ok .result-mark{color:#16a34a}.result-dlg.err .result-mark{color:#dc2626}
.result-dlg h2{margin:.5rem 0 .15rem;font-size:1.25rem}.result-sub{margin:0 0 1rem;color:var(--muted-fg);font-size:.875rem}
.result-lead{margin:.25rem 0 .75rem;overflow-wrap:anywhere}
.result-list{list-style:none;margin:0 auto 1rem;padding:.5rem .75rem;text-align:left;max-height:40vh;overflow:auto;border:1px solid var(--border);border-radius:8px;font-size:.875rem}
.result-list li{padding:.2rem 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.result-list li:last-child{border-bottom:0}
.result-foot{display:flex;justify-content:center}.result-foot button{min-width:7rem}
.mi-wizard-error{color:#dc2626;margin:.5rem 0 0}
table.data.compact td,table.data.compact th{padding:.35rem .5rem;font-size:.875rem}
.link-btn{background:none;border:0;padding:0 .25rem;color:var(--primary);font:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:.25rem;height:auto}.link-btn .ic{width:.9rem;height:.9rem}
.red-text{color:#dc2626!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.seg-n{display:inline-block;min-width:1.2rem;padding:0 .3rem;margin-left:.2rem;border-radius:9px;background:var(--muted);font-size:.75rem;text-align:center}
.co-cell{white-space:nowrap}.co-cell>.co-logo,.co-cell>.co-avatar{vertical-align:middle;margin-right:.5rem}.co-logo{width:20px;height:20px;object-fit:contain;border-radius:4px;flex:none;background:#fff}
.co-logo.lg{width:32px;height:32px;margin-right:.6rem;vertical-align:-6px}.co-avatar{width:20px;height:20px;border-radius:4px;flex:none;display:inline-flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;background:var(--muted);color:var(--muted-fg)}
main[aria-busy=true] .table-frame,main[aria-busy=true] table.data{opacity:.6;transition:opacity .15s}
.auth-note{font-size:.875rem;color:#0369a1;background:#e0f2fe;border-radius:6px;padding:.5rem .75rem;margin:0 0 .5rem}
.kw-chip{display:inline-flex;align-items:center;gap:.35rem;padding:.25rem .55rem;border-radius:999px;border:1px solid var(--border);background:var(--muted);font-size:.875rem;line-height:1.3}
.kw-n{font-size:.75rem;font-weight:600;padding:0 .4rem;border-radius:999px;background:#dbeafe;color:#1e40af}
.kw-x{border:0;background:transparent;color:inherit;opacity:.6;cursor:pointer;padding:0 .1rem;font-size:1rem;line-height:1}.kw-x:hover{opacity:1}
.kw-x,.kw-chip.sug{height:auto;font-weight:400}.kw-x{padding:0 .1rem;border:0}
.kw-x:hover{background:transparent}
.warn-text{color:var(--warn)}
.topbar-logo{display:inline-flex;align-items:center;gap:.75rem;text-decoration:none}.topbar-product{color:#fff;font-size:1rem;font-weight:500;letter-spacing:.02em;padding-left:.75rem;border-left:1px solid rgba(255,255,255,.25);white-space:nowrap}.topbar-product b{color:#7dd3fc;font-weight:600}@media (max-width:640px){.topbar-product{display:none}}
.steps{display:flex;gap:.5rem;list-style:none;padding:0;margin:0 0 1rem;flex-wrap:wrap}.steps li{display:flex;align-items:center;gap:.45rem;padding:.35rem .8rem;border-radius:999px;background:var(--muted);color:var(--muted-fg);font-size:.875rem}
.steps li span{display:inline-flex;width:1.35rem;height:1.35rem;border-radius:50%;align-items:center;justify-content:center;background:#fff;font-weight:600;font-size:.75rem}
.steps li.on{background:var(--navy);color:#fff}.steps li.on span{color:var(--navy)}.steps li.done{background:#dcfce7;color:var(--ok)}
[data-addco] .int-title{display:flex;align-items:center;gap:.5rem}
.rel{display:inline-flex;align-items:flex-end;gap:2px;height:16px;vertical-align:middle}.rel i{display:block;width:5px;border-radius:1px;background:#e2e8f0}
.rel i:nth-child(1){height:6px}.rel i:nth-child(2){height:11px}.rel i:nth-child(3){height:16px}
/* leads */
.lead-why{display:flex;gap:.5rem;align-items:flex-end;flex-wrap:wrap}.lead-why[hidden]{display:none}
ul.plain{list-style:none;padding:0;margin:0 0 1rem}ul.plain li{padding:.2rem 0}.small-btn{font-size:.75rem;padding:.25rem .6rem;white-space:nowrap}
/* saved searches */
.span-all{grid-column:1/-1}
.flow{display:flex;flex-wrap:wrap;gap:.25rem;list-style:none;padding:0;margin:.25rem 0 .75rem}.flow li{padding:.25rem .7rem;border-radius:999px;background:var(--muted);color:var(--muted-fg);font-size:.75rem}.flow li.done{background:#dcfce7;color:#166534}.flow li.on{background:#1e2a52;color:#fff;font-weight:600}
.howto{margin:-.25rem 0 1rem;font-size:.875rem}.howto summary{cursor:pointer;color:var(--muted-fg)}.howto p{margin:.4rem 0 0;max-width:62rem}
.earlier{margin-top:.3rem;padding:.3rem .5rem;border-left:3px solid #93c5fd;background:var(--muted);border-radius:4px}
.verdict{margin:.25rem 0 .75rem}
.tag.info{background:#dbeafe;color:#1e40af}
.main [id]{scroll-margin-top:1rem}
.date-field{position:relative;display:block}.date-field input[type=text]{width:100%;padding-right:2.25rem}
.date-native{position:absolute;left:0;bottom:0;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0}
.date-pick{position:absolute;right:.35rem;top:50%;transform:translateY(-50%);display:flex;padding:.3rem;background:none;border:0;color:var(--muted-fg);cursor:pointer}
.date-pick:hover{background:none;color:var(--fg)}.date-pick:disabled{display:none}
.md-editor{margin-top:.35rem;text-align:left}.md-editor .toastui-editor-defaultUI{border-color:var(--border);border-radius:.5rem}
.md-editor button:not(.toastui-editor-toolbar-icons):not(.toastui-editor-ok-button){background:none;color:inherit}
/* Pearl band (Ymir StepIndicator): 40px circles, blue active with ring, green done, 4px connector filling green */
.pearls{display:flex;width:100%;align-items:flex-start;list-style:none;margin:.25rem 0 1rem;padding:0;overflow-x:auto}
.pearl{display:flex;flex:1;align-items:flex-start;min-width:0}.pearl:last-child{flex:none}
.pearl-step{display:flex;flex-direction:column;align-items:center;padding:.125rem .25rem;border-radius:.375rem;color:inherit;text-decoration:none}
a.pearl-step:hover{background:var(--muted)}a.pearl-step:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.pearl-dot{display:flex;width:2.5rem;height:2.5rem;align-items:center;justify-content:center;border-radius:999px;font-size:.875rem;font-weight:600;
  background:#f3f4f6;color:#9ca3af;border:2px solid #e5e7eb;transition:all .2s}
.pearl-dot .ic{width:1.25rem;height:1.25rem}
.pearl-label{margin-top:.375rem;font-size:.75rem;font-weight:500;white-space:nowrap;text-align:center;color:#9ca3af}
.pearl.active .pearl-dot{background:#2563eb;color:#fff;border-color:#2563eb;box-shadow:0 0 0 4px #dbeafe,0 4px 6px -1px #bfdbfe}.pearl.active .pearl-label{color:#1d4ed8}
.pearl.done .pearl-dot,.pearl.approved .pearl-dot{background:#16a34a;color:#fff;border-color:#16a34a;box-shadow:0 4px 6px -1px #bbf7d0}
.pearl.done .pearl-label,.pearl.approved .pearl-label{color:#15803d}
.pearl.awaiting .pearl-dot{background:#f59e0b;color:#fff;border-color:#f59e0b;box-shadow:0 4px 6px -1px #fde68a}.pearl.awaiting .pearl-label{color:#b45309}
.pearl.rejected .pearl-dot{background:#dc2626;color:#fff;border-color:#dc2626;box-shadow:0 4px 6px -1px #fecaca}.pearl.rejected .pearl-label{color:#b91c1c}
.pearl-bar{flex:1;min-width:1.5rem;height:.25rem;margin:1.25rem .5rem 0;border-radius:999px;background:#e5e7eb;overflow:hidden}
.pearl-bar span{display:block;height:100%;width:0;border-radius:999px;background:#22c55e;transition:width .5s}.pearl-bar span.fill{width:100%}
/* Company page tabs: all sections show without JavaScript; with it, one tab at a time (the one holding the #anchor) */
.co-tabs-on .co-tab{display:none}.co-tabs-on .co-tab.on{display:block}
.int-grid label.inline-check{flex-direction:row;align-items:center;gap:.5rem;margin-left:0;font-weight:400}.int-grid label.inline-check input{width:auto}
#main-content[aria-busy=true] .table-frame,#main-content[aria-busy=true] .showing{opacity:.55;transition:opacity .15s}
.pre-wrap{white-space:pre-wrap}
.funnel{list-style:none;padding:0;margin:0 0 1rem}.funnel li{margin:0}
.cols-2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
@media (max-width:1023px){.cols-2{grid-template-columns:1fr}}
@media (max-width:640px){.stat-grid{grid-template-columns:1fr 1fr}}
/* an icon before text: the same breathing room as in the buttons and the sidebar. :where() keeps the specificity at a
   single class, so every rule above that places an icon on purpose (sidebar, buttons, badges, menus) still wins */
:where(h1,h2,h3,h4,p,li,td,th,dt,dd,b,strong,label,a,span,summary,legend,caption) > .ic{margin-right:.5rem;vertical-align:-.2em}
/* containers that already space their children with a flex gap: no second gap */
:where(.um-title,.tabbar .tab,.saved-chip,.kw-chip,.co-hit,[data-addco] .int-title,.inline-check,.checks label,.int-grid label,.feature-row,.toggle-row,
.sec-row,.stat,.link-btn,.test-box,.topbar-left,.topbar-right,.notif-item,.int-head,.um-head,.audit-filters,.ai-card,.steps,.flow,
.toolbar-inline,.actions,.pager,.lead-why,.lead-note,.saved-current,.sum-label,.rel,.ai-spark,.topbar-logo,.role-pick,.radio-card,.auth-check,
.mi-bars,.inline-form,.set-checks,.kw-box,.co-results,.lead-form,.saved-bar,.um-search,.um-user,.int-foot,.segmented,.usermenu summary) > .ic{margin-right:0}
/* Trust Center (public) */
body.trust{background:var(--muted)}
/* country picker (_countries.html): chips and a text box that looks like one input */
.cpick{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;min-height:2.5rem;min-width:12rem;padding:.25rem .375rem;border:1px solid var(--border);border-radius:calc(.5rem - 2px);background:#fff;cursor:text}
.cpick:focus-within{box-shadow:0 0 0 2px var(--card),0 0 0 4px var(--primary)}
.cpick-chips{display:contents}
.cpick .chip{display:inline-flex;align-items:center;gap:.125rem;padding:.125rem .25rem .125rem .5rem;border-radius:9999px;background:var(--muted);font-size:.75rem;line-height:1.4;white-space:nowrap}
.cpick .chip-x{border:0;background:none;color:var(--muted-fg);cursor:pointer;font-size:1rem;line-height:1;padding:0 .25rem;height:auto;border-radius:9999px}
.cpick .chip-x:hover{color:var(--bad)}
.cpick .cpick-in{flex:1;min-width:9rem;border:0;height:1.875rem;padding:.125rem .25rem;background:transparent;box-shadow:none}
.cpick .cpick-in:focus-visible{box-shadow:none}
.cpick .cpick-err{flex-basis:100%;padding:0 .25rem}
html[data-eff=dark] .cpick{background:#0b1220;border-color:var(--border)}
html[data-eff=dark] .cpick .cpick-in{background:transparent}
/* in-app feedback: the menu button (as in Inspect360 TPRM) and its form */
.side-feedback{display:flex;align-items:center;gap:.5rem;margin:.25rem .75rem .5rem;padding:.5rem .75rem;border:1px solid var(--border);border-radius:.375rem;background:#fff;color:var(--muted-fg);font:inherit;font-size:.875rem;font-weight:500;cursor:pointer;text-align:left}
.side-feedback:hover{background:var(--muted);color:var(--fg)}
.side-feedback kbd{margin-left:auto;font:inherit;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-fg);opacity:.7}
body.side-min .side-feedback{justify-content:center;margin:.25rem .5rem .5rem;padding:.5rem 0}body.side-min .side-feedback span,body.side-min .side-feedback kbd{display:none}
html[data-eff=dark] .side-feedback{background:transparent}
dialog.fb-dlg{width:min(620px,94vw)}.fb-dlg .fb-field{display:block;margin:.875rem 0;border:0;padding:0}.fb-dlg legend{font-weight:600;margin-bottom:.375rem;padding:0}
.fb-dlg label.fb-field{font-weight:600}.fb-dlg label.fb-field textarea{display:block;width:100%;height:auto;margin-top:.375rem;font-weight:400}
.fb-dlg label.inline-check.fb-field{font-weight:400;display:flex;align-items:center;gap:.5rem;margin:.5rem 0}
.fb-chip{display:inline-flex;align-items:center;gap:.375rem;margin:0 .375rem .375rem 0;padding:.25rem .625rem;border:1px solid var(--border);border-radius:.375rem;font-size:.875rem;cursor:pointer}
.fb-chip:hover{background:var(--muted)}.fb-chip input{height:auto;margin:0}
.fb-err{color:var(--bad);font-size:.75rem;font-weight:400;margin-left:.375rem}
.fb-context{margin:.875rem 0;border:1px solid var(--border);border-radius:.5rem;background:hsl(210 40% 96.1%/.5)}
.fb-context>summary{display:flex;justify-content:space-between;padding:.5rem .75rem;cursor:pointer;font-weight:600;font-size:.875rem}
.fb-ctx{display:grid;grid-template-columns:max-content 1fr;gap:.25rem .75rem;margin:0;padding:.5rem .75rem;border-top:1px solid var(--border);font-size:.75rem}
.fb-ctx dt{color:var(--muted-fg)}.fb-ctx dd{margin:0;word-break:break-all}
.fb-errors{margin:0 .75rem .75rem;max-height:8rem;overflow:auto;white-space:pre-wrap;font-size:.75rem}
.fb-done{text-align:center}.fb-done .int-foot{justify-content:center}
html[data-eff=dark] .fb-context{background:transparent}
/* the signals timeline (timeline.py, _timeline.html): a lane per kind */
.tl-bar{display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:center;margin-bottom:.375rem}
.tl-ranges{margin:0;padding:.125rem}.tl-ranges button{font-size:.75rem;padding:.2rem .6rem;height:auto;border:0;border-radius:.375rem;background:transparent;color:var(--muted-fg);box-shadow:none;cursor:pointer}
.tl-ranges button:hover{color:var(--fg)}.tl-ranges button.on{background:var(--blue);color:#fff}html[data-eff=dark] .tl-ranges{background:transparent}
.tl-legend{display:flex;flex-wrap:wrap;gap:.25rem}.tl-key{display:inline-flex;align-items:center;gap:.3rem;border:1px solid var(--border);background:transparent;border-radius:9999px;padding:.05rem .5rem;font-size:.75rem;height:auto;cursor:pointer;color:var(--fg)}
.tl-key[aria-pressed=false]{opacity:.45;text-decoration:line-through}.tl-sw{width:.625rem;height:.625rem;border-radius:9999px;display:inline-block}
.tl-svg{width:100%;height:auto;display:block}.tl-svg[hidden]{display:none}
.tl-recent{fill:hsl(221 83% 53%/.07)}.tl-tick{stroke:var(--border);stroke-dasharray:2 3}.tl-tick-l,.tl-foot{font-size:.75rem;fill:var(--muted-fg)}
.tl-lane-line{stroke:var(--border)}.tl-lane-l{font-size:.75rem;fill:var(--muted-fg)}
.tl-dot{stroke:#fff;stroke-width:1.5}.tl-p:hover .tl-dot,.tl-p:focus .tl-dot{stroke:var(--fg);stroke-width:2}
.tl-hollow .tl-dot{fill:#fff!important;stroke-width:2}
html[data-eff=dark] .tl-dot{stroke:#0b1220}html[data-eff=dark] .tl-hollow .tl-dot{fill:#0b1220!important}
.tl-k-breach .tl-dot,.tl-sw.tl-k-breach{fill:#dc2626;background:#dc2626}.tl-hollow.tl-k-breach .tl-dot{stroke:#dc2626}.tl-hide-breach .tl-p.tl-k-breach{display:none}
.tl-k-leak .tl-dot,.tl-sw.tl-k-leak{fill:#991b1b;background:#991b1b}.tl-hollow.tl-k-leak .tl-dot{stroke:#991b1b}.tl-hide-leak .tl-p.tl-k-leak{display:none}
.tl-k-supplier .tl-dot,.tl-sw.tl-k-supplier{fill:#7c3aed;background:#7c3aed}.tl-hollow.tl-k-supplier .tl-dot{stroke:#7c3aed}.tl-hide-supplier .tl-p.tl-k-supplier{display:none}
.tl-k-exposure .tl-dot,.tl-sw.tl-k-exposure{fill:#ea580c;background:#ea580c}.tl-hollow.tl-k-exposure .tl-dot{stroke:#ea580c}.tl-hide-exposure .tl-p.tl-k-exposure{display:none}
.tl-k-phishing .tl-dot,.tl-sw.tl-k-phishing{fill:#db2777;background:#db2777}.tl-hollow.tl-k-phishing .tl-dot{stroke:#db2777}.tl-hide-phishing .tl-p.tl-k-phishing{display:none}
.tl-k-regulator .tl-dot,.tl-sw.tl-k-regulator{fill:#d97706;background:#d97706}.tl-hollow.tl-k-regulator .tl-dot{stroke:#d97706}.tl-hide-regulator .tl-p.tl-k-regulator{display:none}
.tl-k-nis2 .tl-dot,.tl-sw.tl-k-nis2{fill:#2563eb;background:#2563eb}.tl-hollow.tl-k-nis2 .tl-dot{stroke:#2563eb}.tl-hide-nis2 .tl-p.tl-k-nis2{display:none}
.tl-k-lookalike .tl-dot,.tl-sw.tl-k-lookalike{fill:#0891b2;background:#0891b2}.tl-hollow.tl-k-lookalike .tl-dot{stroke:#0891b2}.tl-hide-lookalike .tl-p.tl-k-lookalike{display:none}
.tl-k-techchange .tl-dot,.tl-sw.tl-k-techchange{fill:#64748b;background:#64748b}.tl-hollow.tl-k-techchange .tl-dot{stroke:#64748b}.tl-hide-techchange .tl-p.tl-k-techchange{display:none}
.tl-k-plan .tl-dot,.tl-sw.tl-k-plan{fill:#94a3b8;background:#94a3b8}.tl-hollow.tl-k-plan .tl-dot{stroke:#94a3b8}.tl-hide-plan .tl-p.tl-k-plan{display:none}
.tl-k-hiring .tl-dot,.tl-sw.tl-k-hiring{fill:#16a34a;background:#16a34a}.tl-hollow.tl-k-hiring .tl-dot{stroke:#16a34a}.tl-hide-hiring .tl-p.tl-k-hiring{display:none}
.tl-k-jobchange .tl-dot,.tl-sw.tl-k-jobchange{fill:#65a30d;background:#65a30d}.tl-hollow.tl-k-jobchange .tl-dot{stroke:#65a30d}.tl-hide-jobchange .tl-p.tl-k-jobchange{display:none}
.tl-k-engagement .tl-dot,.tl-sw.tl-k-engagement{fill:#0d9488;background:#0d9488}.tl-hollow.tl-k-engagement .tl-dot{stroke:#0d9488}.tl-hide-engagement .tl-p.tl-k-engagement{display:none}
.tl-k-visit .tl-dot,.tl-sw.tl-k-visit{fill:#a3a3a3;background:#a3a3a3}.tl-hollow.tl-k-visit .tl-dot{stroke:#a3a3a3}.tl-hide-visit .tl-p.tl-k-visit{display:none}
/* What's new */
.rn-body ul{margin:.25rem 0 .5rem 1.25rem;padding:0}.rn-body li{margin:.375rem 0;line-height:1.5}.rn-body p{line-height:1.5}
.rn-item{border-top:1px solid var(--border);padding:.5rem 0}.rn-item:first-of-type{border-top:0}.rn-item>summary{cursor:pointer}
.rn-tech{margin-top:.5rem}.rn-tech>summary{cursor:pointer;color:var(--muted-fg)}  /* v0.15.0: _whatsnew.html's administrators' part (the SSO Portal's rule) */
.menu-new{margin-left:auto;font-size:.75rem;padding:0 .375rem}a.menu-version{display:block;color:var(--muted-fg);font-size:.75rem;padding:.25rem .5rem}
a.appver{color:inherit;text-decoration:none}a.appver:hover{text-decoration:underline}
/* the timeline as a dashboard card */
.tl-card{border:1px solid var(--border);border-radius:.625rem;padding:.875rem 1rem 1rem;background:#fff;box-shadow:0 1px 2px rgb(0 0 0/.04);margin:.75rem 0 1rem}
.tl-head{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.25rem;margin-bottom:.625rem}.tl-head h3{margin:0;font-size:1rem;font-weight:600}
.tl-stats{display:flex;flex-wrap:wrap;gap:.5rem;flex:1}.tl-stats>div{display:flex;flex-direction:column;min-width:5.5rem;padding:.375rem .625rem;border:1px solid var(--border);border-radius:.5rem;background:hsl(210 40% 98%)}
.tl-stats b{font-size:1rem;line-height:1.2}.tl-stats span{font-size:.75rem;color:var(--muted-fg)}.tl-stats .tl-alert{border-color:#fecaca;background:#fef2f2}.tl-stats .tl-alert b{color:var(--bad)}
.tl-card .tl-legend{margin-bottom:.5rem}.tl-plot{border-top:1px solid var(--border);padding-top:.5rem}
html[data-eff=dark] .tl-card{background:#0f172a}html[data-eff=dark] .tl-stats>div{background:#111827}html[data-eff=dark] .tl-stats .tl-alert{background:#2a1215;border-color:#7f1d1d}
/* the timeline card's header: the title and the range switch on one row, the figures as a grid below; on a phone the
   drawing keeps a readable width and scrolls inside the card (never the page) */
.tl-head{display:grid;grid-template-columns:1fr auto;align-items:center}.tl-head h3{grid-column:1;grid-row:1}
.tl-head .tl-ranges{grid-column:2;grid-row:1}.tl-stats{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(auto-fill,minmax(8rem,1fr))}
.tl-stats>div{min-width:0}.tl-stats b{white-space:nowrap}
.tl-plot{overflow-x:auto;-webkit-overflow-scrolling:touch}.tl-svg{min-width:640px}
/* Signal sources: the feed column never widens the table; its address is a short link */
.feed-cell{max-width:26rem}
/* Administration Dashboard (TPRM's AdminPage): label · note · state rows, upkeep buttons, configuration links */
.ad-list{list-style:none;margin:0;padding:0}.ad-list li{display:grid;grid-template-columns:minmax(9rem,1fr) minmax(10rem,1fr) auto;gap:.75rem;align-items:center;padding:.45rem 0;border-bottom:1px solid var(--border)}
.ad-list li:last-child{border-bottom:0}.ad-note{min-width:0;overflow-wrap:anywhere}.ad-cols .card h2 svg{width:1.1rem;height:1.1rem;vertical-align:-.15rem;margin-right:.25rem}
.ad-actions{display:flex;flex-wrap:wrap;gap:.5rem}.ad-links{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:.4rem 1rem}
.ad-links a{display:inline-flex;align-items:center;gap:.4rem}.ad-links svg{width:1rem;height:1rem}
.ad-ok{color:var(--ok)}.ad-warn{color:var(--warn)}.ad-bad{color:var(--bad)}.ad-quick{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));margin-bottom:.5rem}.ad-qa{display:block;padding:1.25rem 1.5rem;color:inherit;text-decoration:none!important;background:#fff;border:1px solid var(--border);border-radius:.5rem;box-shadow:0 1px 2px 0 rgb(0 0 0/.05)}.ad-qa:hover{border-color:var(--primary)}.ad-qa-head{display:flex;align-items:center;gap:.75rem;margin:0 0 .9rem;font-weight:600;font-size:1rem;color:var(--fg)}.ad-qa-ic{width:2.25rem;height:2.25rem;border-radius:.5rem;display:flex;align-items:center;justify-content:center;flex:none}.ad-qa-ic .ic{width:1.15rem;height:1.15rem}.ad-qa-ic.blue{background:#dbeafe;color:#2563eb}.ad-qa-ic.amber{background:#ffedd5;color:#ea580c}.ad-qa-ic.purple{background:#f3e8ff;color:#9333ea}.ad-qa-ic.teal{background:#f1f5f9;color:#475569}.ad-qa-num{font-size:1.5rem;font-weight:700;line-height:1.75rem;margin:0}.ad-qa-num svg{width:1.6rem;height:1.6rem}.ad-qa-note{font-size:.75rem;color:var(--muted-fg);margin:.25rem 0 0}html[data-eff=dark] .ad-qa{background:#111827}html[data-eff=dark] .ad-qa-ic{filter:saturate(.8) brightness(.9)}
@media (max-width:767px){.ad-list li{grid-template-columns:1fr auto}.ad-list .ad-note{grid-column:1/-1;grid-row:2}.ad-cols{grid-template-columns:1fr}}
/* Administration Dashboard, System health: Service Health and Docker Containers (the look of Ymir's SystemHealth) */
.sh-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));margin-bottom:.75rem}
.sh-card{margin:0;min-width:0}.sh-wrap .sh-meta{white-space:normal;overflow-wrap:anywhere}.sh-row>.sh-badge{flex:none}.sh-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem;flex-wrap:wrap;margin-bottom:.75rem}
.sh-head h2{display:flex;align-items:center;gap:.5rem;margin:0;font-size:1.25rem}.sh-ic{width:1.25rem;height:1.25rem}.sh-ic.green{color:#16a34a}.sh-ic.blue{color:#2563eb}
.sh-sub{margin:.15rem 0 0;font-size:.875rem;color:var(--muted-fg)}.sh-tools{display:flex;align-items:center;gap:.5rem}
.sh-time{display:inline-flex;align-items:center;gap:.25rem;font-size:.75rem;color:var(--muted-fg)}
.sh-overall{font-size:.875rem;font-weight:500;margin:0 0 .75rem;display:flex;align-items:center;gap:.5rem}
.sh-rows{display:grid;gap:.75rem}.sh-row{display:flex;align-items:center;gap:.75rem;padding:.75rem;background:var(--muted);border-radius:.5rem}
.sh-what{flex:1;min-width:0}.sh-name{margin:0;font-weight:500;font-size:.875rem}.sh-meta{margin:0;font-size:.75rem;color:var(--muted-fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sh-tile{display:flex;align-items:center;justify-content:center;padding:.5rem;border-radius:.5rem;flex:none}
.sh-tile.healthy{background:#dcfce7;color:#16a34a}.sh-tile.degraded{background:#fef9c3;color:#ca8a04}.sh-tile.unhealthy{background:#fee2e2;color:#dc2626}.sh-tile.off{background:#f1f5f9;color:#64748b}
.sh-badge{display:inline-block;padding:.1rem .6rem;border-radius:9999px;font-size:.75rem;font-weight:600;white-space:nowrap}
.sh-badge.healthy{background:#dcfce7;color:#15803d}.sh-badge.degraded{background:#fef9c3;color:#a16207}.sh-badge.unhealthy{background:#fee2e2;color:#b91c1c}.sh-badge.off{background:#f1f5f9;color:#475569}
.sh-plain{color:var(--muted-fg);display:flex;flex:none}
.sh-right{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}
.sh-pill{display:inline-block;padding:.1rem .6rem;border-radius:9999px;font-size:.75rem;font-weight:600;white-space:nowrap;border:1px solid transparent}
.sh-pill.ok{background:#3b5bdb;color:#fff}.sh-pill.bad{background:#dc2626;color:#fff}.sh-pill.wait{border-color:var(--border);color:var(--fg)}
.sh-pill.done{background:#f1f5f9;color:#475569}
.sh-up{font-size:.75rem;color:var(--muted-fg);white-space:nowrap}
button.sh-btn{height:2rem;width:2rem;padding:0;background:transparent;border:0;color:var(--fg)}button.sh-btn:hover{background:var(--border)}
.sh-empty{text-align:center;padding:2rem 0;font-size:.875rem;color:var(--muted-fg);margin:0}
.ad-build{margin:.25rem 0 1rem}
dialog.sh-log{width:min(95vw,56rem)}.sh-log-text{background:#000;color:#4ade80;font:.75rem/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;padding:1rem;border-radius:.375rem;max-height:60vh;overflow:auto;white-space:pre-wrap;word-break:break-all;margin:0}
@media (max-width:640px){.sh-box{flex-wrap:wrap}.sh-box .sh-right{width:100%;justify-content:flex-start}}
html[data-eff=dark] .sh-row{background:#1e293b}
html[data-eff=dark] .sh-tile.healthy,html[data-eff=dark] .sh-badge.healthy{background:#14532d;color:#86efac}html[data-eff=dark] .sh-tile.unhealthy,html[data-eff=dark] .sh-badge.unhealthy{background:#7f1d1d;color:#fca5a5}
html[data-eff=dark] .sh-tile.degraded,html[data-eff=dark] .sh-badge.degraded{background:#713f12;color:#fde68a}
/* Security Monitoring (Ymir's SecurityMonitoring): pill tabs on a muted strip */
.sh-ic.amber{color:#ea580c}
/* Database Operations and Backup Visibility (Ymir's DatabaseOperations / BackupVisibilityPage) */
.sh-sum{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;color:inherit;text-decoration:none!important;margin-bottom:.5rem}.sh-sum:hover{border-color:var(--primary)}
.sh-sum .sh-overall{margin:0}.sh-sum-rows{display:flex;gap:1rem;flex-wrap:wrap;flex:1}.sh-sum-item{display:inline-flex;align-items:center;gap:.4rem;font-size:.875rem;font-weight:500}
.sh-sum-item .sh-tile{padding:.3rem}.sh-sum-go{display:inline-flex;align-items:center;gap:.2rem;font-size:.875rem;color:var(--primary);font-weight:500}
/* A long address or name in a table (links, code) may break, so it never widens the table (the user's rule) */
table td a,table td code,table td .url{overflow-wrap:break-word}  /* break-word, not anywhere: anywhere let columns collapse to a letter wide (names broken mid-word, UI review 2026-10-23) */

/* People profiles: the form in sections, options as compact chips (v0.27.0) */
.pf-field{border:0;margin:0 0 .75rem;padding:0;min-width:0}.pf-field legend{font-size:.875rem;font-weight:500;margin-bottom:.4rem;padding:0}
.opt-chips{display:flex;flex-wrap:wrap;gap:.4rem}
.opt-chip{display:inline-flex;align-items:center;gap:.4rem;padding:.3rem .7rem;border:1px solid var(--border);border-radius:9999px;font-size:.875rem;font-weight:400;cursor:pointer;background:var(--card,#fff)}
.opt-chip:has(input:checked){border-color:var(--primary);background:color-mix(in srgb,var(--primary) 10%,transparent)}.opt-chip input{margin:0}
html[data-eff=dark] .opt-chip{background:transparent}

/* A visiting organisation's page (v0.27.0): bars in eleven steps (no inline styles: the page's CSP) */
.small-num{font-size:1rem!important}

.toggle-row.inline{display:inline-flex;padding:0;gap:.5rem}
.sh-tile.waiting{background:#e0f2fe;color:#0369a1}.sh-badge.waiting{background:#e0f2fe;color:#075985}
.sh-meta.sh-detail{white-space:normal}
/* the security rating (v0.29.0): bands A-F, the supply-chain map, the heatmap */
.hint.inline-hint{display:block;margin-top:.15rem}
.table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-scroll>table{margin-bottom:0}.table-frame{max-width:100%}
/* the footer: a fixed strip on wide screens; on a phone it scrolls with the content and covers nothing */
.appfoot.in-main{display:none}
@media (max-width:767px){body>.appfoot{display:none}.appfoot.in-main{display:flex;height:auto;margin:1.5rem -.75rem -.75rem;padding:.75rem;text-align:center}}
.ad-attention{border-left:4px solid var(--warn)}.ad-attention.all-clear{border-left-color:var(--ok)}.ad-att{list-style:none;margin:0;padding:0}
.ad-att li{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;padding:.5rem 0;border-top:1px solid var(--border)}.ad-att li:first-child{border-top:0}.ad-att .btn{margin-left:auto}
.row-more{display:inline-block}.row-more>summary{list-style:none;cursor:pointer;display:inline}.row-more>summary::-webkit-details-marker{display:none}
.row-more>summary:after{content:" ▾"}.row-more[open]>summary:after{content:" ▴"}.row-more-list{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.25rem}
.triage-on{outline:2px solid var(--blue);outline-offset:-2px}
/* the pages of the area this page is in: one row of tabs, scrolling sideways on a phone */
.top-search input{width:14rem;max-width:40vw;padding:.35rem .6rem;border-radius:.375rem;border:1px solid var(--navy-light);background:var(--navy-light);color:#fff}.top-search input::placeholder{color:#cbd5e1}
@media (max-width:767px){.top-search input{width:8rem}}
.filters-btn{display:none}
@media (max-width:640px){
  .filters-btn{display:inline-flex}
  main form.toolbar.foldable:not(.open)>:not(.filters-btn):not(.search):not([type=hidden]){display:none}  /* only filter bars with their Filters button (app.js): never an action form */
  table.data.cardable,table.data.cardable tbody,table.data.cardable tr,table.data.cardable td{display:block;width:100%}
  table.data.cardable tr:first-child:has(th){display:none}
  table.data.cardable tr{border:1px solid var(--border);border-radius:.5rem;margin:.5rem 0;padding:.35rem .6rem}
  table.data.cardable td{border:0;padding:.2rem 0;white-space:normal!important}
  table.data.cardable td[data-label]:before{content:attr(data-label);display:block;font-size:.75rem;color:var(--muted-fg);text-transform:uppercase;letter-spacing:.03em}
  table.data.cardable td:empty{display:none}
}
@media (max-width:640px){.pearl{min-width:4.25rem}.pearl-label{white-space:normal;max-width:4.5rem;font-size:.75rem;line-height:1.15}}
/* the top bar's search: the box on wide screens, an icon to the search page on a phone (no sideways scroll) */
.top-search-ic{display:none;color:#d1d5db;padding:.5rem}.top-search-ic .ic{width:1.25rem;height:1.25rem}
@media (max-width:767px){.top-search{display:none}.top-search-ic{display:flex}}
.side-section button.here{color:#1d4ed8;font-weight:700}
/* System Health's three cards: one header line each (title and one line of what it shows; checked at and Refresh at the right) */
.sh-card .sh-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:nowrap;min-height:3.75rem}
.sh-card .sh-title{flex:1;min-width:0}.sh-card .sh-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:.15rem 0 0}
.sh-card .sh-tools{display:flex;align-items:center;gap:.5rem;flex:none;white-space:nowrap}.sh-card .sh-time{display:inline-flex;align-items:center;gap:.25rem;font-size:.75rem;color:var(--muted-fg)}
/* Reference bids as folders (v0.46.0): buyer › year › procurement › group */
.inline-details{display:inline-block;margin-left:.5rem}
/* the menu's section names never get the focus ring (a browser that rings a clicked button showed it as a blue bracket);
   keyboard focus is shown by underlining the name instead */
.side-section button:focus,.side-section button:focus-visible{box-shadow:none;outline:none}
.side-section button:focus-visible span{text-decoration:underline;text-underline-offset:3px}
/* CPV search on tender profiles */
.pre-line{white-space:pre-line;max-width:75ch}

/* a table wider than its card scrolls inside it: a soft shadow at the edge says there is more (UI review 2026-10-23) */
.table-scroll,.table-frame{background:linear-gradient(to right,#fff 30%,rgba(255,255,255,0)) left/2.5rem 100% no-repeat local,linear-gradient(to left,#fff 30%,rgba(255,255,255,0)) right/2.5rem 100% no-repeat local,radial-gradient(farthest-side at 0 50%,rgba(15,23,42,.18),transparent) left/.75rem 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,rgba(15,23,42,.18),transparent) right/.75rem 100% no-repeat scroll;background-color:#fff}
html[data-eff=dark] .table-scroll,html[data-eff=dark] .table-frame{background:linear-gradient(to right,#111827 30%,rgba(17,24,39,0)) left/2.5rem 100% no-repeat local,linear-gradient(to left,#111827 30%,rgba(17,24,39,0)) right/2.5rem 100% no-repeat local,radial-gradient(farthest-side at 0 50%,rgba(0,0,0,.5),transparent) left/.75rem 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,rgba(0,0,0,.5),transparent) right/.75rem 100% no-repeat scroll;background-color:#111827}
/* phones: tables as cards with one border level, fields left-aligned, an empty list's message without a box (UI review 2026-10-23) */
@media (max-width:640px){
  .table-frame:has(table.cardable),.table-scroll:has(table.cardable){border:0;border-radius:0;background:none;box-shadow:none}
  table.data.cardable td{text-align:left!important}
  table.data.cardable tr:has(>td[colspan]:only-child){border:0;padding:0;margin:.25rem 0}
  .segmented{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
  .segmented a{white-space:nowrap;flex:none}
}
/* tab strips that scroll: the same edge shadow as tables (the active tab is scrolled into view by app.js) */
.tabbar{background:linear-gradient(to right,#f1f5f9 30%,rgba(241,245,249,0)) left/2rem 100% no-repeat local,linear-gradient(to left,#f1f5f9 30%,rgba(241,245,249,0)) right/2rem 100% no-repeat local,radial-gradient(farthest-side at 0 50%,rgba(15,23,42,.2),transparent) left/.6rem 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,rgba(15,23,42,.2),transparent) right/.6rem 100% no-repeat scroll;background-color:#f1f5f9}
html[data-eff=dark] .tabbar{background:linear-gradient(to right,#1e293b 30%,rgba(30,41,59,0)) left/2rem 100% no-repeat local,linear-gradient(to left,#1e293b 30%,rgba(30,41,59,0)) right/2rem 100% no-repeat local,radial-gradient(farthest-side at 0 50%,rgba(0,0,0,.5),transparent) left/.6rem 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,rgba(0,0,0,.5),transparent) right/.6rem 100% no-repeat scroll;background-color:#1e293b}
/* cards side by side keep their own height: no stretched, half-empty cards (UI review 2026-10-23) */
.cols,.ad-cols,.sh-grid{align-items:start}
/* System Health rows stay inside their card: the text column may shrink, the status pill keeps its size */
.sh-row>*{min-width:0}.sh-row>.tag,.sh-row>.pill,.sh-row>[class*=status]{flex:none}
/* Account › Security: a label above, then an input and its button of one height (UI review 2026-10-23) */
.sec-form{display:grid;gap:.3rem;margin:.5rem 0 .75rem}
.field-row{display:flex;gap:.5rem;align-items:stretch}.field-row input{flex:1;min-width:0;max-width:22rem}.field-row button{flex:none}
/* the text editor's Markdown / WYSIWYG switch sits inside the editor's frame (it stuck out with a stray border, UI review 2026-10-23) */
.toastui-editor-defaultUI .toastui-editor-mode-switch{border-top:1px solid var(--border);margin:0;padding-right:.5rem;box-sizing:border-box;background:transparent}
.toastui-editor-defaultUI .toastui-editor-mode-switch .tab-item{margin-top:-1px;border-radius:0 0 4px 4px}
/* the step indicators scroll sideways on a phone: the same edge shadow says there are more steps */
.pearls{background:linear-gradient(to right,#fff 30%,rgba(255,255,255,0)) left/2rem 100% no-repeat local,linear-gradient(to left,#fff 30%,rgba(255,255,255,0)) right/2rem 100% no-repeat local,radial-gradient(farthest-side at 0 50%,rgba(15,23,42,.18),transparent) left/.6rem 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,rgba(15,23,42,.18),transparent) right/.6rem 100% no-repeat scroll}
html[data-eff=dark] .pearls{background:linear-gradient(to right,#111827 30%,rgba(17,24,39,0)) left/2rem 100% no-repeat local,linear-gradient(to left,#111827 30%,rgba(17,24,39,0)) right/2rem 100% no-repeat local,radial-gradient(farthest-side at 0 50%,rgba(0,0,0,.5),transparent) left/.6rem 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,rgba(0,0,0,.5),transparent) right/.6rem 100% no-repeat scroll}
/* phones: a label-and-value table puts each label above its value (values were clipped at the card's edge) */
@media (max-width:640px){table.data.facts,table.data.facts tbody,table.data.facts tr,table.data.facts th,table.data.facts td{display:block;width:auto}
  table.data.facts th,table.data.facts tr:first-child th{padding:.5rem 0 0;white-space:normal}table.data.facts td{padding:.1rem 0 .5rem;overflow-wrap:anywhere}}
/* an empty list shows only its message: the header row is hidden, in a <thead> or as a body's first row of th cells (v0.9.1: tr:first-child alone also hid the message, the first row of a <tbody>) */
table.data.is-empty thead tr,table.data.is-empty tr:first-child:has(> th){display:none}table.data.is-empty td{border:0}
/* long status pills in a card's header wrap inside it on a phone instead of running past the edge */
.int-head{flex-wrap:wrap;row-gap:.35rem}.int-head .tag{white-space:normal;max-width:100%;text-align:left}
/* v0.69.0: Delete and Remove are red outline buttons, set apart from Save (left end of a right-aligned footer, right end of a toolbar) */
button.del,.btn.del{background:#fff;color:var(--bad);border-color:#fca5a5}button.del:where(:not([class*=toastui])):hover,.btn.del:hover{background:#fef2f2;border-color:var(--bad)}
.int-foot>.del{order:-1;margin-right:auto}:is(.toolbar,.toolbar-inline)>.del{order:9;margin-left:auto}td .del{margin-left:.25rem}
html[data-eff=dark] button.del{background:transparent;color:#f87171;border-color:#7f1d1d}html[data-eff=dark] button.del:hover{background:#2a0f12}
/* v0.69.0: one border level: a section of provider or rule cards is a heading over the cards, not a card around them */
.int-section{padding:0;margin-bottom:1.5rem;min-width:0;overflow-x:auto}.int-section>.int-title,.int-section>.um-head{margin-top:.25rem}
/* v0.70.0: the save bar of a long editing page stays at the bottom of the screen while its form is in view */
.savebar{position:sticky;bottom:0;z-index:5;background:#fff;border-top:1px solid var(--border);padding:.75rem 0;margin-top:1rem;justify-content:flex-end}
.savebar .savebar-state{margin-right:auto;font-size:.875rem;color:var(--muted-fg)}.savebar.dirty .savebar-state{color:var(--warn);font-weight:600}
html[data-eff=dark] .savebar{background:#111827}
.card:has(.savebar){overflow:visible}/* a scrolling card would hold the sticky bar in place */
/* core v0.3.0: no motion for those who asked their system for less (WCAG 2.3.3) */
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
html[data-eff=dark] .tabbar .tab{color:var(--muted-fg)}  /* core v0.4.0: AA contrast on the light tab bar; dark keeps its token */
/* v0.10.0: grouped headers (_table.html th_group) stay in view with the column headers below them; a sticky first column */
table.data:has(tr.th-group) thead{position:sticky;top:0;z-index:3}
table.data:has(tr.th-group) thead th{position:static;background:var(--navy);color:#fff;font-weight:500;font-size:.875rem;padding:.6rem 1rem}
table.data tr.th-group th{text-align:center;padding:.35rem 1rem;border-bottom:1px solid rgba(255,255,255,.25)}table.data tr.th-group th.th-blank{border-bottom:0}
table.data.sticky-first :is(th,td):first-child{position:sticky;left:0;z-index:2;background:var(--card)}table.data.sticky-first thead :is(th,td):first-child{background:var(--navy);z-index:4}
th.sortable a{color:inherit;text-decoration:none;display:inline-flex;align-items:center;gap:.3rem}th.sortable a:hover{text-decoration:underline}
.sort-mark{font-size:.7em;opacity:.55}th.sorted .sort-mark{opacity:1}
td.count{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}td.count span[title],td.count a[title]{cursor:help}
.col-toggle{position:relative;display:inline-block}.col-toggle>summary{list-style:none;cursor:pointer}.col-toggle>summary::-webkit-details-marker{display:none}
.col-toggle .col-menu{position:absolute;right:0;z-index:20;min-width:14rem;background:var(--card);border:1px solid var(--border);border-radius:.5rem;padding:.4rem .75rem;box-shadow:0 8px 24px rgb(0 0 0/.12)}
/* v0.10.0: setting up the second factor (_signin.html enrol_step): the two ways side by side, one column below the tablet breakpoint */
.auth-card:has(.enrol-grid){max-width:56rem}
.enrol-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:stretch;margin-top:1rem}
.enrol-card{display:flex;flex-direction:column;gap:.75rem;border:1px solid var(--border);border-radius:.75rem;padding:1.25rem}
.enrol-card .auth-form{display:flex;flex-direction:column;gap:.75rem;flex:1}.enrol-card .auth-btn{margin-top:auto}
.enrol-title{display:flex;align-items:center;gap:.5rem;font-size:1rem;margin:0}.enrol-title svg{width:1.1rem;height:1.1rem}.enrol-card .auth-qr{align-self:center}
@media (max-width:767px){.enrol-grid{grid-template-columns:1fr}}
/* v0.10.0: users and invitations (_accounts.html): a user's roles only while the account is a user */
form:has(input[name=kind][value=admin]:checked) .kind-user-only{display:none}
.um-table .role+.role{margin-left:.25rem}.roles-matrix td.center{text-align:center}
/* v0.11.1: the API client secret shown once (_apiclients.html secret_once) */
.secret-once{border-left:4px solid var(--warn)}.secret-once input{font-family:ui-monospace,monospace}
/* v0.14.1: dark mode for what stayed light (Rosetta's G23), and contrast at WCAG AA (G24) */
html[data-eff=dark] .pager a,html[data-eff=dark] .pager span:not(.cur),html[data-eff=dark] .stat{background:var(--card);color:var(--fg);border-color:var(--border)}
html[data-eff=dark] .ad-qa-ic{filter:none}html[data-eff=dark] .ad-qa-ic.blue{background:#1e3a8a;color:#93c5fd}html[data-eff=dark] .ad-qa-ic.amber{background:#7c2d12;color:#fdba74}
html[data-eff=dark] .ad-qa-ic.purple{background:#581c87;color:#d8b4fe}html[data-eff=dark] .ad-qa-ic.teal{background:#334155;color:#cbd5e1}
html[data-eff=dark] .sh-tile.off,html[data-eff=dark] .sh-badge.off{background:#1f2937;color:#cbd5e1}html[data-eff=dark] .role.admin{background:#312e81;color:#c7d2fe}
html[data-eff=dark] .sh-sum-go{color:var(--link)}html[data-eff=dark] .red-text{color:#f87171!important}
/* v0.16.0: the shared sorter (core.js): a header's sort button, and a hand-ordered table shown in another order */
th button.th-sort{display:inline-flex;align-items:center;gap:.3rem;height:auto;background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;cursor:pointer;white-space:nowrap}
th button.th-sort:hover{background:none;text-decoration:underline}th button.th-sort:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:2px}
table.reordered .grip{visibility:hidden}table.reordered tr[draggable]{cursor:default}
/* v0.17.0: the command bar (_command.html, core.js) and the news row (_news.html), from Midlari */
dialog.core-cmd{width:min(40rem,calc(100vw - 2rem));max-height:min(32rem,calc(100vh - 4rem));max-height:min(32rem,calc(100dvh - 4rem));margin:12vh auto auto;padding:0;border:1px solid var(--border);border-radius:.75rem;background:var(--card);color:var(--fg);box-shadow:0 20px 50px rgba(0,0,0,.25);overflow:hidden;flex-direction:column}
dialog.core-cmd[open]{display:flex}dialog.core-cmd::backdrop{background:rgba(15,23,42,.45)}
.core-cmd-form{display:flex;align-items:center;gap:.5rem;padding:.5rem .875rem;border-bottom:1px solid var(--border)}
.core-cmd-form svg{flex:none;width:1.1rem;height:1.1rem;color:var(--muted-fg)}
.core-cmd-input{flex:1;min-width:0;border:0;background:transparent;color:inherit;font-size:1rem;padding:.5rem 0;outline:none;box-shadow:none}
.core-cmd-list{list-style:none;margin:0;padding:.25rem;overflow-y:auto;flex:1}
.core-cmd-list ul{list-style:none;margin:0;padding:0}.core-cmd-group{display:block;padding:.5rem .625rem .25rem;font-size:.7rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted-fg)}
.core-cmd-opt{display:flex;align-items:baseline;gap:.5rem;padding:.5rem .625rem;border-radius:.5rem;cursor:pointer;min-width:0}
.core-cmd-opt[aria-selected=true]{background:var(--muted);outline:2px solid #1d4ed8;outline-offset:-2px}
.core-cmd-label{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.core-cmd-sub{color:var(--muted-fg);font-size:.8125rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}
.core-cmd-kind{margin-left:auto;flex:none}
.core-cmd-status:empty{display:none}.core-cmd-status,.core-cmd-keys{margin:0;padding:.375rem .875rem;font-size:.75rem}
.core-cmd-keys{border-top:1px solid var(--border);color:var(--muted-fg)}
.core-cmd-open{display:inline-flex;align-items:center;gap:.375rem}.core-cmd-open kbd{font:inherit;font-size:.7rem;padding:0 .3rem;border:1px solid var(--border);border-radius:.25rem;color:var(--muted-fg)}
.core-news-list{list-style:none;margin:0;padding:0}.core-news-list>li+li{border-top:1px solid var(--border)}
.core-news-row{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .5rem;padding:.5rem 0;font-size:.875rem;min-width:0}
.core-news-at{color:var(--muted-fg);font-variant-numeric:tabular-nums;white-space:nowrap}
.core-news-src{color:var(--muted-fg);font-weight:500}
.core-news-ev{gap:.25rem}.core-news-ev svg{width:.875rem;height:.875rem;flex:none}
.core-news-ev.warn{border-color:currentColor;font-weight:700;color:#92400e}
.core-news-title{flex:1 1 16rem;min-width:0;color:var(--fg);font-weight:500;overflow-wrap:anywhere}a.core-news-title:hover{text-decoration:underline}
.core-news-chip{display:inline-flex;padding:0 .5rem;border:1px solid var(--border);border-radius:9999px;font-size:.75rem;color:var(--fg);text-decoration:none;white-space:nowrap}
a.core-news-chip:hover{background:var(--muted)}
.core-news-more{color:var(--muted-fg);font-size:.75rem;white-space:nowrap}.core-news-react{margin-left:auto;white-space:nowrap}
.core-news-lang{font-size:.6875rem;padding:0 .375rem}.core-news-detail{flex:1 0 100%;min-width:0;color:var(--muted-fg);font-size:.8125rem}
@media (max-width:639px){dialog.core-cmd{margin-top:1rem;max-height:calc(100dvh - 2rem)}.core-cmd-keys,.core-cmd-open kbd{display:none}}
html[data-eff=dark] .core-cmd-opt[aria-selected=true]{outline-color:#93b4ff}html[data-eff=dark] .core-news-ev.warn{background:#422006;color:#fcd34d}
