@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;800;900&display=swap');
.kbsd{--kd-bg:#f5f7fb;--kd-surface:#fff;--kd-surface2:#f0f4f9;--kd-ink:#102641;--kd-muted:#64748b;--kd-line:rgba(16,38,65,.13);--kd-gold:#c99800;--kd-blue:#1677ff;--kd-red:#ec5260;--kd-shade:rgba(5,29,62,.05);position:relative;isolation:isolate;min-height:520px;background:var(--kd-bg);color:var(--kd-ink);padding:72px 0 65px;font-family:'Roboto',system-ui,sans-serif!important;line-height:1.5;box-sizing:border-box}
.kbsd [data-photo-fallback][hidden]{display:none!important}
.kbsd *,.kbsd *::before,.kbsd *::after{box-sizing:border-box}
.kbsd[data-kbs-theme="dark"]{--kd-bg:#071b33;--kd-surface:#11263f;--kd-surface2:#1b314a;--kd-ink:#f8fafc;--kd-muted:rgba(233,240,249,.67);--kd-line:rgba(236,244,255,.16);--kd-gold:#ffd21f;--kd-blue:#63adff;--kd-red:#ff7979;--kd-shade:rgba(0,0,0,.16)}
.kbsd__ambient{pointer-events:none;position:absolute;z-index:-1;inset:0 0 auto;height:590px;background:radial-gradient(ellipse at 80% 0%,rgba(22,119,255,.095),transparent 65%),radial-gradient(ellipse at 5% 25%,rgba(255,210,31,.05),transparent 42%)}
.kbsd__container{width:min(1416px,calc(100% - 64px));margin:0 auto}
.kbsd__hero{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:43px 0 38px;border-top:1px solid var(--kd-line)}
.kbsd__intro{min-width:0;flex:1}
.kbsd__eyebrow{display:block;color:var(--kd-gold);letter-spacing:.28em;font-size:12px;font-weight:900;margin-bottom:12px}
.kbsd__hero h1{font-size:clamp(30px,3vw,42px)!important;line-height:1.12!important;letter-spacing:-.032em!important;margin:0 0 15px!important;color:var(--kd-ink)!important;font-weight:900!important}
.kbsd__hero p{margin:0!important;color:var(--kd-muted);font-size:16px}
.kbsd__metric{flex:0 0 206px;min-height:132px;border:1px solid var(--kd-line);border-radius:9px;background:var(--kd-shade);text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}
.kbsd__metric strong{color:var(--kd-gold);font-size:58px;font-weight:900;line-height:1.05;letter-spacing:-.06em}
.kbsd__metric span{margin-top:10px;color:var(--kd-muted);font-size:12px;font-weight:900;letter-spacing:.19em}
.kbsd__search{display:grid;grid-template-columns:minmax(210px,1.3fr) minmax(220px,1.04fr) auto auto;gap:12px;padding:2px 0 32px;border-bottom:1px solid var(--kd-line);align-items:stretch;margin:0}
.kbsd input:not([type=checkbox]):not([type=file]),.kbsd select,.kbsd textarea{display:block;min-height:52px;width:100%;padding:12px 17px;font:inherit;font-size:14px;color:var(--kd-ink);background:var(--kd-surface);border:1px solid var(--kd-line);border-radius:7px;box-shadow:none;outline:none;transition:border-color .15s}
.kbsd input::placeholder{color:var(--kd-muted);opacity:.75}
.kbsd input:focus,.kbsd select:focus,.kbsd textarea:focus{border-color:var(--kd-blue)!important;box-shadow:0 0 0 3px rgba(22,119,255,.12)!important}
.kbsd a{color:var(--kd-blue);text-decoration:none;transition:color .16s}
.kbsd a:hover{color:var(--kd-gold)}
.kbsd__btn{min-height:52px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;gap:9px;padding:13px 22px;border:1px solid var(--kd-line);border-radius:7px;cursor:pointer;text-decoration:none!important;font-size:13px;font-weight:900;font-family:inherit;transition:transform .16s,background .16s,color .16s}
.kbsd__btn:hover{transform:translateY(-1px)}
.kbsd__btn--primary{background:var(--kd-ink)!important;color:var(--kd-bg)!important;border-color:transparent!important}
.kbsd[data-kbs-theme="dark"] .kbsd__btn--primary{background:#fff!important;color:#0a1f3a!important}
.kbsd__btn--primary:hover{background:var(--kd-gold)!important;color:#061f3a!important}
.kbsd__btn--ghost{color:var(--kd-ink)!important;background:transparent!important}
.kbsd__btn--ghost:hover{background:var(--kd-surface2)!important}
.kbsd__sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.kbsd__admin-link{text-align:right;padding:10px 0 0}.kbsd__admin-link a{font-size:12px;font-weight:800}
.kbsd__section-title{margin:40px 0 26px}
.kbsd__section-title h2,.kbsd__results-head h2{font-size:clamp(23px,2.5vw,31px)!important;letter-spacing:-.028em;line-height:1.18!important;color:var(--kd-ink)!important;margin:0 0 7px!important;font-weight:900!important}
.kbsd__section-title p,.kbsd__results-head p{color:var(--kd-muted);font-size:14px;margin:0}
.kbsd__departments{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;overflow:hidden;border-radius:8px;border:1px solid var(--kd-line);background:var(--kd-surface)}
.kbsd__department-card{position:relative;display:flex;flex-direction:column;min-height:221px;padding:25px 24px 20px;background:var(--kd-surface);border-right:1px solid var(--kd-line);border-bottom:1px solid var(--kd-line);color:var(--kd-ink)!important;overflow:hidden;isolation:isolate}
.kbsd__department-card::before{position:absolute;content:"";inset:0;background:linear-gradient(135deg,rgba(22,119,255,.14),rgba(255,210,31,.12),rgba(255,75,75,.09));opacity:0;transition:.2s;z-index:-1}
.kbsd__department-card::after{content:"";position:absolute;inset:0 auto auto;width:100%;height:3px;background:linear-gradient(90deg,#1677ff,#ffd21f,#ff4b4b);transform:scaleX(0);transform-origin:left;transition:.2s}
.kbsd__department-card:hover::before{opacity:1}.kbsd__department-card:hover::after{transform:scaleX(1)}
.kbsd__department-card:hover{color:var(--kd-ink)!important}
/* Naked Lucide outline: no circle, plate, frame or filled background */
.kbsd__dept-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-height:49px}
.kbsd__dept-icon{display:inline-flex;align-items:flex-start;justify-content:flex-start;color:var(--kd-gold);flex:0 0 44px;line-height:0;transition:transform .25s,color .25s}
.kbsd__dept-icon .kbsd__lucide{width:42px;height:42px;display:block;stroke-width:1.25;fill:none;overflow:visible}
.kbsd__department-card:hover .kbsd__dept-icon{transform:translateY(-2px);color:var(--kd-blue)}

.kbsd__department-card:focus-visible{outline:2px solid var(--kd-blue);outline-offset:-3px;z-index:1}
.kbsd__department-card h3{font-size:16px!important;line-height:1.3!important;margin:12px 0 24px!important;font-weight:800!important;color:var(--kd-ink)!important}
.kbsd__dept-bottom{display:flex;justify-content:space-between;gap:10px;margin-top:auto;align-items:center}
.kbsd__dept-bottom small{font-size:12px;color:var(--kd-muted)}.kbsd__dept-bottom>.kbsd__lucide--arrow{color:var(--kd-gold);flex:none;transition:transform .2s}.kbsd__department-card:hover .kbsd__lucide--arrow{transform:translate(2px,-2px)}
.kbsd__results-head{display:flex;align-items:end;justify-content:space-between;gap:22px;margin:36px 0 22px}
.kbsd__view-switch{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.kbsd__view-switch button{font:inherit;font-size:12px;font-weight:800;color:var(--kd-muted);background:var(--kd-surface);border:1px solid var(--kd-line);padding:9px 13px;border-radius:5px;cursor:pointer}
.kbsd__view-switch button[aria-pressed=true]{color:var(--kd-ink);border-color:var(--kd-gold)}
.kbsd__department-label{color:var(--kd-gold);font-size:15px;letter-spacing:.07em;font-weight:900;text-transform:uppercase;margin:26px 0 12px}
.kbsd__unit{margin:0 0 12px;border:1px solid var(--kd-line);border-radius:7px;overflow:hidden;background:var(--kd-surface)}
.kbsd__unit>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 21px;background:var(--kd-surface2);border-bottom:1px solid var(--kd-line);font-size:13px;font-weight:900;color:var(--kd-gold);letter-spacing:.13em;text-transform:uppercase}
.kbsd__unit>summary::-webkit-details-marker{display:none}
.kbsd__unit[open]>summary .kbsd__unit-title>span{transform:rotate(0)}
.kbsd__unit:not([open])>summary .kbsd__unit-title>span{transform:rotate(-90deg)}
.kbsd__unit-title{display:inline-flex;align-items:center;gap:17px}
.kbsd__unit-title>span{transition:.2s;font-size:18px;display:inline-block}
.kbsd__unit>summary small{font-weight:700;color:var(--kd-muted);letter-spacing:0;text-transform:none}
.kbsd__table-wrap{width:100%;overflow-x:auto}
.kbsd__staff-table,.kbsd__manage-table{width:100%;border-collapse:collapse;border-spacing:0;font-size:13.5px;margin:0!important;color:var(--kd-ink)!important;background:transparent!important}
.kbsd__staff-table thead,.kbsd__manage-table thead{background:var(--kd-surface2)}
.kbsd__staff-table th,.kbsd__manage-table th{color:var(--kd-gold)!important;letter-spacing:.17em;font-size:11px;font-weight:900!important;white-space:nowrap;text-align:left;padding:17px 20px!important;border:1px solid var(--kd-line);border-left:0}
.kbsd__staff-table th:last-child{border-right:0}
.kbsd__staff-table td,.kbsd__manage-table td{padding:15px 20px!important;border-bottom:1px solid var(--kd-line)!important;vertical-align:middle!important;background:transparent!important;color:var(--kd-muted);line-height:1.4}
.kbsd__staff-table tbody tr:last-child td,.kbsd__manage-table tbody tr:last-child td{border-bottom:0!important}
.kbsd__staff-table td:first-child{min-width:240px;width:32%}.kbsd__staff-table td:nth-child(2){width:31%}.kbsd__staff-table td:nth-child(3){min-width:185px}.kbsd__staff-table td:nth-child(4){min-width:135px}
.kbsd__staff-table tbody tr:hover{background:var(--kd-shade)}
.kbsd__name-cell{display:flex;align-items:center;gap:12px}.kbsd__name-cell strong{color:var(--kd-ink);font-weight:800;font-size:13px}
.kbsd__avatar{width:40px;height:40px;flex:0 0 40px;border-radius:50%;background:linear-gradient(135deg,#23548c,#112c52);display:flex;align-items:center;justify-content:center;color:#fff;position:relative;overflow:hidden;font-weight:800;font-size:17px}
.kbsd__avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.kbsd__avatar--large{width:66px;height:66px;flex-basis:66px;font-size:25px}
.kbsd__subunit{display:block;color:var(--kd-muted);font-size:11px;margin-top:4px}
.kbsd__muted{opacity:.45}
.kbsd__staff-table td a:not(.kbsd__vcard){color:var(--kd-ink);border-bottom:1px solid var(--kd-gold);overflow-wrap:anywhere}
.kbsd__vcard{display:inline-block;font-size:11px;font-weight:900;color:var(--kd-blue)!important;white-space:nowrap}
.kbsd__cards{display:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px}
.kbsd__person-card{padding:21px;border:1px solid var(--kd-line);border-radius:8px;background:var(--kd-surface2);min-width:0}
.kbsd__profile-top{display:flex;align-items:center;gap:15px}
.kbsd__person-card h3{font-size:15px!important;font-weight:900!important;color:var(--kd-ink)!important;line-height:1.3!important;margin:0 0 5px!important}
.kbsd__person-card p{color:var(--kd-muted);font-size:12px;margin:0;line-height:1.5}
.kbsd__person-unit{color:var(--kd-muted);font-size:11px;letter-spacing:.03em;margin-top:13px}
.kbsd__person-details{display:flex;flex-direction:column;gap:6px;padding:17px 0;overflow-wrap:anywhere;font-size:12px}
.kbsd__person-card>.kbsd__vcard{border-top:1px solid var(--kd-line);display:block;padding-top:14px}
.kbsd__people[data-view-mode=cards] .kbsd__staff-table{display:none}
.kbsd__people[data-view-mode=cards] .kbsd__cards{display:grid}
.kbsd__people[data-show-avatar=false] .kbsd__avatar{display:none}
.kbsd__empty{margin:18px 0;border:1px solid var(--kd-line);background:var(--kd-surface);padding:30px;border-radius:8px;color:var(--kd-muted)}
.kbsd__pagination{display:flex;justify-content:center;align-items:center;gap:26px;padding:25px 0;font-size:13px;color:var(--kd-muted)}
.kbsd__pagination a{font-weight:800}
.kbsd__footer{font-size:11px;text-align:center;color:var(--kd-muted);margin-top:49px;border-top:1px solid var(--kd-line);padding-top:20px;letter-spacing:.05em}
.kbsd__footer span{color:var(--kd-gold);padding:0 8px}
/* Frontend PIC management */
.kbsd--manage{padding-top:30px}.kbsd__hero--manage{align-items:center}
.kbsd__manager-bar{border:1px solid var(--kd-line);border-radius:7px;background:var(--kd-surface);padding:17px 21px;display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}
.kbsd__manager-bar form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;flex:1}
.kbsd__manager-bar label{font-size:12px;font-weight:900;color:var(--kd-muted)}
.kbsd__manager-bar select{width:min(450px,70vw);min-height:43px;margin:0}
.kbsd__manager-count{font-size:12px;color:var(--kd-muted);white-space:nowrap}
.kbsd__panel{background:var(--kd-surface);border:1px solid var(--kd-line);border-radius:8px;margin-bottom:22px;padding:25px}
.kbsd details.kbsd__panel>summary{font-weight:900;color:var(--kd-ink);cursor:pointer}
.kbsd__panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.kbsd__panel-heading h2{font-size:20px!important;margin:0!important;color:var(--kd-ink)!important;font-weight:900!important}
.kbsd__panel-heading a,.kbsd__panel-heading span{font-size:12px}
.kbsd__management-grid{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(230px,1fr);gap:22px}
.kbsd__info{border:1px solid var(--kd-line);border-radius:7px;background:var(--kd-surface2);padding:23px;margin-bottom:18px}
.kbsd__info strong{font-weight:900;font-size:13px;color:var(--kd-gold)}
.kbsd__info p{font-size:12px;line-height:1.65;color:var(--kd-muted);margin:9px 0 0}
.kbsd__editor label,.kbsd__pic-form label{display:block;font-weight:800;color:var(--kd-ink);font-size:12px;min-width:0}
.kbsd__editor label span{color:var(--kd-red)}
.kbsd__editor label input,.kbsd__editor label select,.kbsd__editor label textarea,.kbsd__pic-form label select{margin-top:8px!important;min-height:45px!important;font-size:13px!important}
.kbsd__editor>label{margin:15px 0}
.kbsd__form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.kbsd__upload{padding:22px 0;margin:20px 0;border-top:1px solid var(--kd-line);border-bottom:1px solid var(--kd-line)}
.kbsd__upload input[type=file]{display:block;margin-top:10px;max-width:100%;font-size:12px;color:var(--kd-muted)}
.kbsd__existing-photo{display:flex;align-items:center;gap:20px;margin-top:18px}
.kbsd__existing-photo img{object-fit:cover;border-radius:6px;border:1px solid var(--kd-line)}
.kbsd__existing-photo label{display:flex;align-items:center;gap:8px}
.kbsd__manage-table th{letter-spacing:.08em}.kbsd__manage-table td{font-size:12px}
.kbsd__manage-table td strong{color:var(--kd-ink)}
.kbsd__actions{display:flex;gap:12px;align-items:center}.kbsd__actions form{margin:0}
.kbsd__actions a,.kbsd__actions button,.kbsd__link-danger{background:none!important;border:0!important;padding:0!important;font:inherit;font-weight:800;font-size:12px;cursor:pointer;color:var(--kd-blue)}
.kbsd__actions button,.kbsd__link-danger{color:var(--kd-red)!important}
.kbsd__panel-heading input{max-width:290px;min-height:43px!important}
.kbsd__state{display:inline-block;background:rgba(24,160,110,.1);color:#188757;border:1px solid rgba(24,160,110,.2);padding:4px 8px;font-size:11px;border-radius:5px}
.kbsd__state--off{background:var(--kd-shade);color:var(--kd-muted);border-color:var(--kd-line)}
.kbsd__pic-panel>p{font-size:13px;color:var(--kd-muted)}
.kbsd__pic-form{display:grid;grid-template-columns:minmax(200px,1fr) minmax(200px,1fr) auto;align-items:end;gap:14px;margin:20px 0}
.kbsd__pic-panel .kbsd__manage-table{margin-top:20px!important}
@media(max-width:1150px){.kbsd__departments{grid-template-columns:repeat(3,minmax(0,1fr))}.kbsd__search{grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto}.kbsd__search .kbsd__btn--ghost{grid-column:3}.kbsd__cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.kbsd__management-grid{grid-template-columns:1fr}.kbsd__management-aside{display:grid;grid-template-columns:1fr 1fr;gap:12px}.kbsd__search{grid-template-columns:1fr 1fr}.kbsd__search>.kbsd__btn{width:100%}.kbsd__departments{grid-template-columns:repeat(2,minmax(0,1fr))}.kbsd__pic-form{grid-template-columns:1fr 1fr}.kbsd__pic-form .kbsd__btn{grid-column:1/-1}}
@media(max-width:640px){.kbsd{padding:28px 0 50px}.kbsd__container{width:calc(100% - 30px)}.kbsd__hero{display:block;padding-top:26px}.kbsd__metric{margin-top:27px;min-height:90px;max-width:175px}.kbsd__metric strong{font-size:38px}.kbsd__metric span{font-size:10px}.kbsd__search{grid-template-columns:1fr;gap:10px}.kbsd__search .kbsd__btn--ghost{grid-column:auto}.kbsd__departments{grid-template-columns:1fr 1fr}.kbsd__department-card{min-height:186px;padding:18px 15px}.kbsd__department-card h3{font-size:13px!important}.kbsd__dept-icon{flex-basis:34px}.kbsd__dept-icon .kbsd__lucide{width:32px;height:32px}.kbsd__dept-top{min-height:39px}.kbsd__results-head{display:block}.kbsd__view-switch{margin-top:15px}.kbsd__staff-table{min-width:780px}.kbsd__cards{grid-template-columns:1fr;padding:12px}.kbsd__unit>summary{font-size:11px;letter-spacing:.05em;padding:14px}.kbsd__unit>summary small{font-size:10px}.kbsd__hero--manage .kbsd__btn{margin-top:20px}.kbsd__manager-bar{display:block}.kbsd__manager-bar form{display:block}.kbsd__manager-bar select{width:100%}.kbsd__manager-bar button{margin-top:10px}.kbsd__manager-count{display:block;margin-top:12px}.kbsd__form-grid{grid-template-columns:1fr}.kbsd__management-aside{grid-template-columns:1fr}.kbsd__panel{padding:18px}.kbsd__manage-table{min-width:690px}.kbsd__pic-form{grid-template-columns:1fr}.kbsd__pic-form .kbsd__btn{grid-column:auto}.kbsd__panel-heading{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.kbsd *{transition:none!important;animation:none!important}}

.kbsd__checkbox{display:flex!important;align-items:center;gap:9px;margin:14px 0;font-weight:600!important}
.kbsd__checkbox input{accent-color:#1677ff}

.kbsd[data-kbs-theme="dark"] .kbsd__search a.kbsd__btn--ghost{color:#f8fafc!important}
.kbsd[data-kbs-theme="light"] .kbsd__search a.kbsd__btn--ghost{color:#102641!important}

/* R0.1.8 DEV: KBS full-width background, 1240px centered CONTENT, public + PIC. */
.kbsd{width:100vw;max-width:none;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);overflow-x:clip;text-align:left}
.kbsd__container{width:min(1240px,calc(100% - 56px));max-width:1240px;margin-left:auto;margin-right:auto;text-align:left}
@supports(width:100dvw){.kbsd{width:100dvw;margin-left:calc(50% - 50dvw);margin-right:calc(50% - 50dvw)}}
.kbsd[data-kbs-theme="dark"]{color-scheme:dark}
.kbsd[data-kbs-theme="light"]{color-scheme:light}
.kbsd .kbsd__department-card h3,.kbsd .kbsd__results-head h2,.kbsd .kbsd__section-title h2{font-family:'Roboto',system-ui,sans-serif!important}
/* Sort tools - accessible in both light and dark theme. */
.kbsd__results-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap;min-width:0}
.kbsd__sort-form{display:flex;align-items:center;gap:9px;margin:0}
.kbsd__sort-form label{font-size:12px;font-weight:800;color:var(--kd-muted);white-space:nowrap}
.kbsd .kbsd__sort-form select{width:auto;min-width:170px;max-width:230px;min-height:40px;padding:8px 34px 8px 12px;font-size:12px}
.kbsd__sort-submit{min-height:40px;padding:8px 12px;font:inherit;font-size:12px;font-weight:800;color:var(--kd-ink);background:var(--kd-surface);border:1px solid var(--kd-line);border-radius:6px;cursor:pointer}
.kbsd__sort-link{display:inline-flex;align-items:center;gap:8px;color:var(--kd-gold)!important;text-decoration:none!important;white-space:nowrap}
.kbsd__sort-link:hover{color:var(--kd-blue)!important}
.kbsd__sort-link span{font-size:14px;line-height:1;opacity:.65;letter-spacing:0}
.kbsd__staff-table th[aria-sort="ascending"] .kbsd__sort-link span,.kbsd__staff-table th[aria-sort="descending"] .kbsd__sort-link span{opacity:1;color:var(--kd-blue)}
@media(max-width:900px){.kbsd__container{width:calc(100% - 40px)}.kbsd__results-actions{justify-content:flex-start}}
@media(max-width:640px){.kbsd__container{width:calc(100% - 30px)}.kbsd__sort-form{flex-wrap:wrap}.kbsd .kbsd__sort-form select{min-width:160px}.kbsd__results-actions{gap:12px}}

/* R0.1.8 - tame portal-template width inheritance while keeping full-bleed backing */
.kbsd{--kbs-shell-max:1240px;padding-left:0!important;padding-right:0!important;text-align:left!important}
.kbsd .kbsd__container{max-width:var(--kbs-shell-max)!important;min-width:0;width:calc(100% - 56px)!important;margin-left:auto!important;margin-right:auto!important;float:none!important}
.kbsd__dept-top{justify-content:flex-start}
.kbsd__department-card h3{margin-top:9px!important}
@media(max-width:700px){.kbsd .kbsd__container{width:calc(100% - 30px)!important}}
/* Branded self-contained login page; component only, no Joomla template overrides */
.kbsd--login{min-height:calc(100vh - 150px);padding-top:40px;padding-bottom:60px}
.kbsd__login-back{padding:5px 0 28px;border-bottom:1px solid var(--kd-line)}
.kbsd__login-back a{font-size:12px;font-weight:800;color:var(--kd-muted)!important}
.kbsd__login-back a:hover{color:var(--kd-gold)!important}
.kbsd__login-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,470px);gap:clamp(42px,6vw,100px);align-items:center;min-height:590px;padding:52px 0 28px}
.kbsd__login-intro h1{font-size:clamp(42px,4.3vw,64px)!important;max-width:590px;margin:0 0 26px!important;line-height:1.04!important;letter-spacing:-.055em;font-weight:900!important;color:var(--kd-ink)!important}
.kbsd__login-intro h1 em{font-style:normal;color:var(--kd-gold)}
.kbsd__login-intro>p{max-width:490px;color:var(--kd-muted);font-size:16px;line-height:1.75;margin:0}
.kbsd__login-rule{display:flex;gap:0;max-width:150px;margin:39px 0 34px;height:3px}
.kbsd__login-rule span{flex:1;background:#1677ff}.kbsd__login-rule span:nth-child(2){background:#ffd21f}.kbsd__login-rule span:nth-child(3){background:#ff4b4b}
.kbsd__login-highlights{max-width:470px;border-top:1px solid var(--kd-line)}
.kbsd__login-highlights>div{display:flex;gap:21px;padding:15px 0;border-bottom:1px solid var(--kd-line);color:var(--kd-muted);font-size:13px}
.kbsd__login-number{font-weight:900;color:var(--kd-gold);font-size:12px;letter-spacing:.08em}
.kbsd__login-panel{position:relative;background:var(--kd-surface);border:1px solid var(--kd-line);border-radius:7px;padding:38px 35px 30px;box-shadow:0 20px 70px rgba(0,0,0,.07)}
.kbsd__login-panel::before{content:"";position:absolute;height:3px;left:0;top:0;width:100%;background:linear-gradient(90deg,#1677ff,#ffd21f,#ff4b4b);border-radius:7px 7px 0 0}
.kbsd__login-overline{font-size:11px;letter-spacing:.21em;color:var(--kd-gold);font-weight:900}
.kbsd__login-panel h2{font-size:28px!important;letter-spacing:-.035em;line-height:1.2!important;font-weight:900!important;margin:12px 0 8px!important;color:var(--kd-ink)!important}
.kbsd__login-help{font-size:13px;line-height:1.7;color:var(--kd-muted);margin:0 0 28px}
.kbsd__login-form>label:not(.kbsd__login-remember){display:block;margin-bottom:8px;color:var(--kd-ink);font-size:12px;font-weight:800}
.kbsd .kbsd__login-form>input:not([type=hidden]),.kbsd .kbsd__password-field input{min-height:50px;margin-bottom:21px;background:var(--kd-surface2);border-radius:5px}
.kbsd__password-field{position:relative}
.kbsd .kbsd__password-field input{padding-right:83px}
.kbsd__password-toggle{position:absolute;right:8px;top:7px;border:0!important;background:none!important;color:var(--kd-blue);cursor:pointer;padding:8px;font-size:12px;font-weight:800}
.kbsd__login-extra{font-size:12px;color:var(--kd-muted);margin:-2px 0 17px}
.kbsd__login-extra summary{cursor:pointer;list-style:none;font-weight:700}
.kbsd__login-extra summary::before{content:"+";font-weight:900;color:var(--kd-gold);margin-right:7px}
.kbsd__login-extra[open] summary::before{content:"−"}
.kbsd__login-extra label{display:block;margin:14px 0 5px}
.kbsd__login-remember{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--kd-muted);cursor:pointer;margin:8px 0 23px}
.kbsd__login-remember input{accent-color:var(--kd-blue)}
.kbsd .kbsd__login-submit{width:100%;display:flex;justify-content:space-between;padding:14px 21px;min-height:53px}
.kbsd__login-aux{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:20px 0 0}
.kbsd__login-aux a{font-size:12px;color:var(--kd-blue)!important;font-weight:700}
.kbsd__login-note{margin-top:26px;border-top:1px solid var(--kd-line);padding-top:19px;font-size:11px;line-height:1.65;color:var(--kd-muted)}
.kbsd__login-note>span{font-size:15px;color:var(--kd-gold);margin-right:6px}
.kbsd__login-status{color:#168457;background:rgba(22,132,87,.09);border:1px solid rgba(22,132,87,.18);border-radius:5px;padding:15px;font-size:13px}
.kbsd__login-alert{color:var(--kd-red);background:rgba(232,86,99,.08);border:1px solid rgba(232,86,99,.18);border-radius:5px;padding:15px;font-size:13px;line-height:1.6}
.kbsd__login-logout{margin-top:14px}.kbsd__login-logout .kbsd__btn{width:100%}
.kbsd--login .kbsd__footer{margin-top:10px}
@media(max-width:900px){.kbsd__login-layout{gap:32px;grid-template-columns:1fr;min-height:0;padding:40px 0}.kbsd__login-intro h1{font-size:clamp(37px,7vw,54px)!important}.kbsd__login-highlights{display:none}.kbsd__login-rule{margin:24px 0 10px}.kbsd__login-panel{max-width:520px;width:100%;margin:auto}}
@media(max-width:600px){.kbsd--login{padding-top:18px}.kbsd__login-layout{padding:32px 0 12px;gap:28px}.kbsd__login-panel{padding:29px 22px 24px}.kbsd__login-intro>p{font-size:14px}.kbsd__login-intro h1{font-size:37px!important}.kbsd__login-back{padding-bottom:17px}}

/* R0.1.9: Portal mini PIC - near-sharp KBS components, color variables remain theme-aware. */
.kbsd--portal{padding-top:34px}.kbsd__portal-masthead{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--kd-line);padding:20px 0 22px;gap:18px}.kbsd__portal-masthead .kbsd__eyebrow{margin:0}.kbsd__portal-version{font-size:10px;letter-spacing:.13em;font-weight:800;color:var(--kd-muted)}
.kbsd__portal-shell{display:grid;grid-template-columns:258px minmax(0,1fr);gap:0;border:1px solid var(--kd-line);border-radius:5px;overflow:hidden;min-height:760px;background:var(--kd-surface)}
.kbsd__portal-side{border-right:1px solid var(--kd-line);padding:28px 15px;display:flex;flex-direction:column;gap:26px;background:var(--kd-surface2)}
.kbsd__portal-brand{display:flex;align-items:center;gap:12px;padding:0 8px;color:var(--kd-ink)!important;font-weight:900;font-size:18px;letter-spacing:-.04em;line-height:1.1}
.kbsd__portal-brand>span:last-child{display:flex;flex-direction:column}.kbsd__portal-brand small{font-size:10px;color:var(--kd-muted);font-weight:800;letter-spacing:.1em;margin-top:3px;text-transform:uppercase}
.kbsd__portal-emblem{display:flex;align-items:center;justify-content:center;border:1px solid var(--kd-gold);border-radius:3px;width:44px;height:44px;font-size:14px;letter-spacing:-.06em;color:var(--kd-gold);position:relative}
.kbsd__portal-emblem span{color:var(--kd-blue);position:absolute;top:-8px;right:-5px}
.kbsd__portal-user{display:flex;align-items:center;gap:11px;padding:15px 9px;border:1px solid var(--kd-line);border-radius:4px;min-width:0}
.kbsd__profile-avatar{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;background:#254774;color:white;border-radius:50%;font-size:20px;font-weight:900;flex:none;position:relative}
.kbsd__profile-avatar img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.kbsd__profile-avatar--nav{width:47px;height:47px}.kbsd__profile-avatar--large{width:78px;height:78px;font-size:30px}
.kbsd__portal-user-text{display:flex;flex-direction:column;min-width:0}.kbsd__portal-user-text strong{font-size:13px;overflow-wrap:anywhere;line-height:1.35}.kbsd__portal-user-text small{color:var(--kd-muted);font-size:10px;line-height:1.6;overflow-wrap:anywhere}.kbsd__portal-user-text small b{color:var(--kd-gold)}
.kbsd__portal-nav{display:grid;gap:4px}.kbsd__portal-nav a,.kbsd__portal-side-bottom>a,.kbsd__portal-logout button{display:flex;align-items:center;gap:12px;width:100%;padding:14px 12px;border-radius:3px;background:transparent;border:1px solid transparent;color:var(--kd-ink)!important;font-size:12px;font-weight:800;text-align:left;cursor:pointer;font-family:inherit}
.kbsd__portal-nav a svg,.kbsd__portal-side-bottom svg{flex:none;color:var(--kd-muted)}.kbsd__portal-nav a small{margin-left:auto;color:var(--kd-muted);font-size:10px;font-weight:800}
.kbsd__portal-nav a[aria-current="page"],.kbsd__portal-side-bottom a[aria-current="page"]{background:var(--kd-surface);border-color:var(--kd-line);box-shadow:inset 3px 0 var(--kd-gold)}.kbsd__portal-nav a[aria-current="page"] svg,.kbsd__portal-side-bottom a[aria-current="page"] svg{color:var(--kd-gold)}
.kbsd__portal-nav a:hover,.kbsd__portal-side-bottom>a:hover,.kbsd__portal-logout button:hover{background:var(--kd-shade)}.kbsd__portal-side-bottom{margin-top:auto;border-top:1px solid var(--kd-line);padding-top:12px;display:grid;gap:7px}
.kbsd__portal-logout{margin:0}.kbsd__portal-logout button{color:var(--kd-red)!important}.kbsd__theme-chooser{display:flex;gap:6px;padding:7px 10px}.kbsd__theme-chooser button{border:1px solid var(--kd-line);color:var(--kd-muted);background:var(--kd-surface);border-radius:3px;padding:8px 10px;font:inherit;font-weight:800;font-size:11px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:35px}.kbsd__theme-chooser button[aria-pressed="true"]{border-color:var(--kd-gold);color:var(--kd-gold)}
.kbsd__portal-main{min-width:0;padding:34px clamp(20px,3vw,43px) 25px}.kbsd__portal-top{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-bottom:28px;margin-bottom:26px;border-bottom:1px solid var(--kd-line)}.kbsd__portal-top .kbsd__eyebrow{font-size:10px}.kbsd__portal-top h1{font-size:clamp(24px,2.5vw,32px)!important;letter-spacing:-.035em!important;color:var(--kd-ink)!important;margin:0 0 7px!important;line-height:1.1;font-weight:900}.kbsd__portal-top p{color:var(--kd-muted);font-size:13px;margin:0}.kbsd__portal-top .kbsd__btn{font-size:11px;min-height:42px}
.kbsd__portal-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:26px}.kbsd__portal-stats>a{display:flex;flex-direction:column;padding:20px;background:var(--kd-surface2);border:1px solid var(--kd-line);border-radius:4px;color:var(--kd-ink)!important;min-height:140px}.kbsd__portal-stats span{font-size:10px;letter-spacing:.15em;color:var(--kd-gold);font-weight:900}.kbsd__portal-stats strong{font-size:36px;line-height:1.4;letter-spacing:-.05em}.kbsd__portal-stats small{font-size:11px;color:var(--kd-muted);overflow-wrap:anywhere}.kbsd__portal-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:14px}.kbsd__portal-shortcuts>a{display:block;border:1px solid var(--kd-line);border-radius:4px;padding:26px;color:var(--kd-ink)!important;background:var(--kd-surface)}.kbsd__portal-shortcuts>a:hover{border-color:var(--kd-gold)}.kbsd__portal-shortcuts h2{font-size:20px!important;font-weight:900!important;color:var(--kd-ink)!important;margin:0 0 12px!important}.kbsd__portal-shortcuts p{font-size:12px;color:var(--kd-muted);min-height:38px}.kbsd__portal-shortcuts b{font-size:11px;color:var(--kd-gold);letter-spacing:.1em}.kbsd__portal-admin{margin-top:28px;border-top:1px solid var(--kd-line);padding-top:27px}
.kbsd__manual-steps{display:grid;gap:0;border-top:1px solid var(--kd-line);margin:22px 0}.kbsd__manual-steps>section{display:flex;gap:22px;padding:21px 0;border-bottom:1px solid var(--kd-line)}.kbsd__manual-steps>section>span{color:var(--kd-gold);font-weight:900;letter-spacing:.12em;font-size:12px}.kbsd__manual-steps h3{color:var(--kd-ink)!important;font-size:16px!important;margin:0 0 5px!important;font-weight:900}.kbsd__manual-steps p{color:var(--kd-muted);font-size:13px;line-height:1.7;margin:0}.kbsd__manual>p,.kbsd__account-editor p{color:var(--kd-muted);font-size:13px}
.kbsd__account-current{display:flex;gap:19px;align-items:center;padding:20px;background:var(--kd-surface2);border:1px solid var(--kd-line);border-radius:4px;margin:0 0 26px}.kbsd__account-current>div{display:flex;flex-direction:column;gap:4px}.kbsd__account-current strong{color:var(--kd-ink);font-size:19px}.kbsd__account-current span:not(.kbsd__profile-avatar){font-size:13px;color:var(--kd-gold)}.kbsd__account-current small{color:var(--kd-muted);font-size:11px}.kbsd__helper-copy{font-size:11px;line-height:1.65;color:var(--kd-muted)}
.kbsd--portal .kbsd__panel{border-radius:4px}.kbsd--portal .kbsd__info{border-radius:4px}.kbsd--portal .kbsd__btn{border-radius:4px}.kbsd--portal .kbsd__manager-bar{border-radius:4px}
@media(max-width:1100px){.kbsd__portal-shell{grid-template-columns:226px minmax(0,1fr)}.kbsd__portal-main{padding:25px 22px}.kbsd__portal-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:850px){.kbsd__portal-shell{grid-template-columns:1fr}.kbsd__portal-side{border-right:0;border-bottom:1px solid var(--kd-line);gap:14px;padding:16px}.kbsd__portal-user{max-width:450px}.kbsd__portal-nav{grid-template-columns:repeat(4,minmax(0,1fr))}.kbsd__portal-nav a{font-size:11px;flex-direction:column;text-align:center;gap:5px;padding:10px 6px}.kbsd__portal-nav a small{display:none}.kbsd__portal-side-bottom{display:flex;flex-wrap:wrap;align-items:center;margin:0}.kbsd__portal-side-bottom>a{width:auto}.kbsd__portal-logout{margin-left:auto}.kbsd__portal-logout button{padding:11px}.kbsd__portal-main{padding:22px}.kbsd__portal-top{align-items:flex-start}}
@media(max-width:600px){.kbsd__portal-masthead{align-items:flex-start;flex-direction:column;gap:5px}.kbsd__portal-nav a{font-size:10px}.kbsd__portal-stats{grid-template-columns:1fr 1fr}.kbsd__portal-stats>a:last-child{grid-column:1/-1}.kbsd__portal-shortcuts{grid-template-columns:1fr}.kbsd__portal-top{display:block}.kbsd__portal-top>a{margin-top:16px}.kbsd__portal-user{max-width:none}.kbsd__portal-main{padding:18px 14px}.kbsd__account-current{flex-direction:column;align-items:flex-start}}

.kbsd__login-back{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.kbsd__login-theme{display:flex;align-items:center;gap:5px}.kbsd__login-theme button{background:var(--kd-surface);border:1px solid var(--kd-line);color:var(--kd-muted);border-radius:3px;padding:7px 11px;cursor:pointer;font-family:inherit;font-weight:700;font-size:11px}.kbsd__login-theme button[aria-pressed="true"]{color:var(--kd-gold);border-color:var(--kd-gold)}.kbsd__portal-manual{margin-top:2px;border-top:1px solid var(--kd-line)!important;border-radius:0!important;padding-top:16px!important}


/* R0.1.12 DEV — wide top-nav PIC workspace. Icons are unframed, 1.4px Lucide outlines. */
.kbsd--portal-topnav .kbsd__portal-shell{display:block;min-height:0;overflow:visible}
.kbsd--portal-topnav .kbsd__top-account{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:23px clamp(20px,3vw,38px);background:var(--kd-surface2);border-bottom:1px solid var(--kd-line)}
.kbsd--portal-topnav .kbsd__top-account-actions{display:flex;align-items:center;justify-content:flex-end;gap:22px;min-width:0}
.kbsd--portal-topnav .kbsd__top-person{display:flex;align-items:center;gap:12px;min-width:0;color:var(--kd-ink)!important}
.kbsd--portal-topnav .kbsd__portal-user-text strong{font-size:13px}
.kbsd--portal-topnav .kbsd__theme-chooser{border-left:1px solid var(--kd-line);padding:4px 0 4px 16px}
.kbsd--portal-topnav .kbsd__theme-chooser button{border:0;background:transparent;color:var(--kd-muted);min-width:30px;padding:7px;box-shadow:none}
.kbsd--portal-topnav .kbsd__theme-chooser button[aria-pressed=true]{color:var(--kd-gold);background:transparent}
.kbsd--portal-topnav .kbsd__top-nav-wrap{display:flex;justify-content:space-between;align-items:stretch;border-bottom:1px solid var(--kd-line);padding:0 24px;gap:14px}
.kbsd--portal-topnav .kbsd__top-nav{display:flex;align-items:stretch;gap:2px;flex-wrap:wrap;min-width:0}
.kbsd--portal-topnav .kbsd__top-nav a{display:inline-flex;align-items:center;gap:9px;color:var(--kd-muted)!important;font-size:12px;font-weight:800;padding:19px 14px 17px;border-bottom:2px solid transparent;white-space:nowrap;text-decoration:none!important}
.kbsd--portal-topnav .kbsd__top-nav a svg{flex:none;width:18px;height:18px;color:currentColor}
.kbsd--portal-topnav .kbsd__top-nav a[aria-current=page]{color:var(--kd-ink)!important;border-color:var(--kd-gold);background:transparent}
.kbsd--portal-topnav .kbsd__top-nav a[aria-current=page] svg{color:var(--kd-gold)}
.kbsd--portal-topnav .kbsd__top-nav a:hover{color:var(--kd-ink)!important}
.kbsd--portal-topnav .kbsd__portal-logout{display:flex;align-items:stretch;flex:none}
.kbsd--portal-topnav .kbsd__portal-logout button{height:100%;padding:12px 9px;font-size:12px;width:auto;gap:8px;color:var(--kd-red)!important;border:0;border-radius:0;background:transparent}
.kbsd--portal-topnav .kbsd__portal-logout button svg{color:currentColor}
.kbsd--portal-topnav .kbsd__portal-main{padding:36px clamp(20px,3vw,40px) 24px;max-width:none}
.kbsd--portal-topnav .kbsd__portal-top h1{font-size:clamp(27px,2.7vw,36px)!important}
.kbsd--portal-topnav .kbsd__portal-brand .kbsd__portal-emblem{width:40px;height:40px}
.kbsd--portal-topnav .kbsd__manager-bar select{width:min(470px,55vw)}
.kbsd--portal-topnav .kbsd__portal-stats{gap:15px}
.kbsd--portal-topnav .kbsd__portal-stats>a{min-height:133px}
.kbsd__staff-list-head{display:flex;justify-content:space-between;align-items:center;gap:22px;margin:8px 0 26px}
.kbsd__staff-list-head .kbsd__eyebrow{font-size:10px;margin-bottom:7px}
.kbsd__staff-list-head h2,.kbsd__staff-editor-head h2{font-size:clamp(23px,2.4vw,29px)!important;font-weight:900!important;letter-spacing:-.03em!important;color:var(--kd-ink)!important;margin:0 0 7px!important;line-height:1.2!important}
.kbsd__staff-list-head p,.kbsd__staff-editor-head p{font-size:13px;color:var(--kd-muted);margin:0}
.kbsd__staff-list-head .kbsd__btn svg{width:19px;height:19px}
.kbsd__staff-toolbar{display:grid;grid-template-columns:minmax(210px,2fr) minmax(155px,1fr) minmax(160px,1.2fr) minmax(125px,.75fr);gap:12px;align-items:end;padding:19px;background:var(--kd-surface2);border:1px solid var(--kd-line);border-radius:4px}
.kbsd__staff-toolbar label{min-width:0;display:block;color:var(--kd-muted);font-size:11px;font-weight:800}
.kbsd__staff-toolbar label>span{display:block;margin-bottom:7px}
.kbsd--portal-topnav .kbsd__staff-toolbar input,.kbsd--portal-topnav .kbsd__staff-toolbar select{width:100%;min-width:0;min-height:45px;padding:9px 12px;font-size:12px;border-radius:3px;margin:0}
.kbsd__staff-result-line{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:16px 0 12px;color:var(--kd-muted);font-size:11px}
.kbsd__staff-result-line [data-staff-counter]{color:var(--kd-ink);font-weight:800;font-size:12px}
.kbsd__staff-list-wrap{border:1px solid var(--kd-line);border-radius:4px;overflow:auto}
.kbsd--portal-topnav .kbsd__staff-list-wrap table{width:100%;min-width:1020px;margin:0}
.kbsd__staff-list-wrap th{background:var(--kd-surface2);font-size:11px!important;letter-spacing:.06em;white-space:nowrap}
.kbsd__staff-list-wrap td{vertical-align:middle!important;font-size:12px}
.kbsd__staff-list-wrap tr[hidden]{display:none!important}
.kbsd__staff-list-wrap td:first-child{min-width:195px}
.kbsd__staff-list-wrap td:last-child{min-width:240px}
.kbsd__contact-cell{display:block;overflow-wrap:anywhere}.kbsd__contact-cell small{display:block;color:var(--kd-muted);margin-top:5px}
.kbsd--portal-topnav .kbsd__staff-actions{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.kbsd--portal-topnav .kbsd__staff-actions a,.kbsd--portal-topnav .kbsd__staff-actions button{border:0;background:transparent;padding:3px 0;min-height:0;border-radius:0;box-shadow:none;font-size:11px;font-weight:800;line-height:1.4;color:var(--kd-blue)!important;cursor:pointer;font-family:inherit}
.kbsd--portal-topnav .kbsd__staff-actions .kbsd__link-danger{color:var(--kd-red)!important}
.kbsd--portal-topnav .kbsd__staff-actions form{display:inline-flex;margin:0}
.kbsd__staff-pager{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0;color:var(--kd-muted);font-size:12px}
.kbsd__staff-pager>div{display:flex;gap:7px}
.kbsd--portal-topnav .kbsd__staff-pager .kbsd__btn{min-height:38px;padding:8px 12px;font-size:11px}
.kbsd__staff-pager button:disabled{cursor:not-allowed;opacity:.4;transform:none}
.kbsd__staff-no-results{padding:38px 12px;text-align:center;border:1px solid var(--kd-line);color:var(--kd-muted)}
.kbsd__staff-footnote{color:var(--kd-muted);font-size:11px;margin:20px 0 0}
.kbsd__staff-editor-head{margin:4px 0 23px}
.kbsd__staff-editor-head .kbsd__eyebrow{margin:16px 0 6px;font-size:10px}
.kbsd__back-link{display:inline-flex;align-items:center;color:var(--kd-blue)!important;font-size:12px;font-weight:800}
.kbsd__staff-editor-card{padding:clamp(18px,3vw,35px);max-width:none}
.kbsd__staff-editor-card .kbsd__form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 28px}
.kbsd__editor-actions{display:flex;gap:12px;justify-content:flex-start;flex-wrap:wrap}
@media(max-width:1100px){.kbsd--portal-topnav .kbsd__top-nav-wrap{padding:0 16px}.kbsd--portal-topnav .kbsd__top-nav a{padding:16px 10px;font-size:11px}.kbsd__staff-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.kbsd--portal-topnav .kbsd__top-account{padding:18px;gap:12px;flex-wrap:wrap}.kbsd--portal-topnav .kbsd__top-account-actions{gap:8px;justify-content:space-between;width:100%}.kbsd--portal-topnav .kbsd__top-nav-wrap{display:block;padding:0 14px}.kbsd--portal-topnav .kbsd__top-nav{display:flex;gap:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}.kbsd--portal-topnav .kbsd__top-nav a{flex:none;padding:14px 11px}.kbsd--portal-topnav .kbsd__portal-logout{border-top:1px solid var(--kd-line);justify-content:flex-end}.kbsd--portal-topnav .kbsd__portal-logout button{padding:10px 4px}.kbsd--portal-topnav .kbsd__portal-main{padding:20px 15px}.kbsd__staff-list-head{align-items:stretch;flex-direction:column}.kbsd__staff-list-head .kbsd__btn{align-self:flex-start}.kbsd__staff-toolbar{grid-template-columns:1fr 1fr;padding:13px}.kbsd__staff-toolbar .kbsd__toolbar-search{grid-column:1/-1}.kbsd__staff-editor-card .kbsd__form-grid{grid-template-columns:1fr}.kbsd__staff-result-line{flex-direction:column;align-items:flex-start}.kbsd--portal-topnav .kbsd__manager-bar select{width:100%}}
@media(max-width:420px){.kbsd__staff-toolbar{grid-template-columns:1fr}.kbsd__staff-toolbar .kbsd__toolbar-search{grid-column:auto}.kbsd__staff-pager{flex-wrap:wrap}.kbsd--portal-topnav .kbsd__top-person .kbsd__portal-user-text strong{font-size:12px}}


/* R0.1.12 DEV — account strip, consistent KBS controls & custom dropdown */
.kbsd--portal-topnav .kbsd__top-account-actions{gap:0;flex-wrap:wrap}
.kbsd--portal-topnav .kbsd__top-person{padding-right:17px;cursor:default;text-decoration:none}
.kbsd--portal-topnav .kbsd__account-profile{display:inline-flex;align-items:center;gap:8px;border-left:1px solid var(--kd-line);padding:9px 17px;text-decoration:none!important;color:var(--kd-ink)!important;font-size:12px;font-weight:850;white-space:nowrap}
.kbsd--portal-topnav .kbsd__account-profile svg{width:18px;height:18px;stroke-width:1.4}
.kbsd--portal-topnav .kbsd__account-profile:hover,.kbsd--portal-topnav .kbsd__account-profile[aria-current=page]{color:var(--kd-gold)!important}
.kbsd--portal-topnav .kbsd__theme-chooser{padding-left:15px}
.kbsd--portal-topnav input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),.kbsd--portal-topnav select,.kbsd--portal-topnav .kbsd__select-trigger{box-sizing:border-box;min-height:48px;height:48px;border-radius:3px}
.kbsd--portal-topnav .kbsd__manager-bar .kbsd__btn,.kbsd--portal-topnav .kbsd__staff-toolbar .kbsd__btn{min-height:48px;height:48px;border-radius:3px}
.kbsd--portal-topnav .kbsd__staff-toolbar input,.kbsd--portal-topnav .kbsd__staff-toolbar select{min-height:48px;height:48px}
.kbsd--portal-topnav .kbsd__select-shell{position:relative;display:block;width:100%;min-width:0}
.kbsd--portal-topnav select.kbsd__native-enhanced{position:absolute!important;left:0;top:0;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;min-height:1px!important;z-index:-1}
.kbsd--portal-topnav .kbsd__select-trigger{display:flex;align-items:center;justify-content:space-between;gap:13px;width:100%;padding:10px 14px;border:1px solid var(--kd-line);background:var(--kd-surface)!important;color:var(--kd-ink)!important;font:inherit;font-size:13px;text-align:left;cursor:pointer;outline-offset:3px;box-shadow:none}
.kbsd--portal-topnav .kbsd__select-trigger>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kbsd--portal-topnav .kbsd__select-trigger>svg{width:16px;height:16px;stroke-width:1.5;flex:none;color:var(--kd-gold)}
.kbsd--portal-topnav .kbsd__select-trigger:focus-visible,.kbsd--portal-topnav .kbsd__select-trigger[aria-expanded=true]{border-color:var(--kd-blue);box-shadow:0 0 0 2px rgba(64,151,255,.15)}
.kbsd--portal-topnav .kbsd__select-options{position:absolute;z-index:70;top:calc(100% + 5px);left:0;right:0;max-height:280px;overflow:auto;overscroll-behavior:contain;background:var(--kd-surface2);border:1px solid var(--kd-line);border-radius:4px;box-shadow:0 16px 34px rgba(0,0,0,.28);padding:5px;list-style:none;margin:0!important}
.kbsd--portal-topnav .kbsd__select-options[hidden]{display:none!important}
.kbsd--portal-topnav .kbsd__select-option{display:flex;align-items:center;width:100%;border:0!important;background:transparent!important;color:var(--kd-ink)!important;font:inherit;font-size:13px;text-align:left;line-height:1.35;padding:10px 12px;min-height:42px;border-radius:2px;cursor:pointer}
.kbsd--portal-topnav .kbsd__select-option[aria-selected=true]{color:var(--kd-gold)!important;background:rgba(255,203,22,.08)!important;font-weight:850}
.kbsd--portal-topnav .kbsd__select-option:hover,.kbsd--portal-topnav .kbsd__select-option:focus-visible{background:rgba(100,160,220,.16)!important;outline:0}
.kbsd--portal-topnav .kbsd__staff-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
/* Reorder mode only; the normal list returns intact after cancellation. */
.kbsd__order-mode[hidden]{display:none!important}
.kbsd__staff-list[data-ordering=true]>.kbsd__staff-toolbar,.kbsd__staff-list[data-ordering=true]>.kbsd__staff-result-line,.kbsd__staff-list[data-ordering=true]>.kbsd__staff-list-wrap,.kbsd__staff-list[data-ordering=true]>.kbsd__staff-no-results,.kbsd__staff-list[data-ordering=true]>.kbsd__staff-pager,.kbsd__staff-list[data-ordering=true]>.kbsd__staff-footnote{display:none!important}
.kbsd__staff-list[data-ordering=true] .kbsd__staff-head-actions>a{display:none}
.kbsd__staff-list[data-ordering=true] [data-order-start]{display:none}
.kbsd__order-mode{margin:25px 0}
.kbsd__order-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid var(--kd-line);padding:0 0 19px;margin-bottom:20px}
.kbsd__order-intro h3{margin:6px 0 8px;color:var(--kd-ink);font-size:clamp(19px,2.1vw,26px);font-weight:900}
.kbsd__order-intro p{font-size:12px;line-height:1.6;color:var(--kd-muted);margin:0}
.kbsd__order-count{white-space:nowrap;color:var(--kd-gold);font-weight:850;font-size:11px}
.kbsd__order-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.kbsd__order-group{border:1px solid var(--kd-line);border-radius:3px;background:var(--kd-surface2);min-width:0;overflow:visible}
.kbsd__order-group-title{padding:14px 16px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid var(--kd-line)}
.kbsd__order-group-title h4{font-size:12px;font-weight:900;color:var(--kd-gold);margin:0;line-height:1.5}
.kbsd__order-group-title small{font-size:10px;white-space:nowrap;color:var(--kd-muted)}
.kbsd__order-items{list-style:none;margin:0!important;padding:10px!important;min-height:80px}
.kbsd__order-person{display:flex;gap:12px;align-items:center;padding:12px 10px;border:1px solid var(--kd-line);border-radius:3px;background:var(--kd-surface);margin:0 0 8px;min-width:0;cursor:grab}
.kbsd__order-person:active{cursor:grabbing}
.kbsd__order-person.kbsd__drop-before{box-shadow:0 -3px 0 var(--kd-gold)}
.kbsd__order-person.kbsd__drop-after{box-shadow:0 3px 0 var(--kd-gold)}
.kbsd__order-group.kbsd__drop-group{outline:2px dashed var(--kd-gold);outline-offset:-2px}
.kbsd__order-person.kbsd__dragging{opacity:.4}
.kbsd__grab{font-size:25px;color:var(--kd-gold);line-height:1;flex:none;user-select:none}
.kbsd__order-person-text{flex:1;min-width:0}
.kbsd__order-person-text strong{font-size:12px;display:block;color:var(--kd-ink);overflow-wrap:anywhere}
.kbsd__order-person-text small{display:block;font-size:11px;color:var(--kd-muted);margin-top:4px}
.kbsd__order-person-actions{display:flex;align-items:center;gap:5px;flex:none}
.kbsd__order-person-actions button{border:0;background:transparent;color:var(--kd-blue);font-size:11px;font-weight:800;border-radius:2px;padding:6px;cursor:pointer}
.kbsd__order-person-actions button:hover{color:var(--kd-gold)}
.kbsd__order-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;position:sticky;bottom:0;background:var(--kd-surface2);border:1px solid var(--kd-line);padding:15px 17px;margin-top:22px;z-index:5;border-radius:3px}
.kbsd__order-footer>span{font-size:12px;color:var(--kd-muted)}
.kbsd__order-footer>div{display:flex;gap:8px}
.kbsd__order-footer button:disabled{opacity:.5;cursor:not-allowed}
.kbsd__move-modal{max-width:min(480px,calc(100vw - 28px));width:100%;box-sizing:border-box;background:var(--kd-surface2);color:var(--kd-ink);border:1px solid var(--kd-line);border-radius:5px;box-shadow:0 24px 70px rgba(0,0,0,.45);padding:0}
.kbsd__move-modal::backdrop{background:rgba(1,14,30,.72);backdrop-filter:blur(3px)}
.kbsd__move-modal-content{padding:25px}
.kbsd__move-modal h3{margin:8px 0;color:var(--kd-ink);font-size:23px;font-weight:900}
.kbsd__move-modal p{font-size:13px;color:var(--kd-muted);line-height:1.65}
.kbsd__move-modal label{display:block;color:var(--kd-muted);font-size:12px;font-weight:750;margin:20px 0}
.kbsd__move-modal select{width:100%;margin-top:8px}
.kbsd__move-modal-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
@media(max-width:800px){.kbsd__order-groups{grid-template-columns:1fr}.kbsd__order-intro{flex-direction:column}.kbsd--portal-topnav .kbsd__top-account-actions{justify-content:space-between}}
@media(max-width:620px){.kbsd--portal-topnav .kbsd__account-profile{padding:8px 10px}.kbsd--portal-topnav .kbsd__top-person{padding-right:10px}.kbsd--portal-topnav .kbsd__theme-chooser{padding-left:9px}.kbsd__order-person{gap:8px}.kbsd__order-person-actions{flex-wrap:wrap;justify-content:flex-end}.kbsd__order-footer{flex-wrap:wrap}.kbsd__order-footer>div{width:100%;justify-content:space-between}}

/* R0.1.12 final alignment: label above, selector and Buka on same baseline. */
.kbsd--portal-topnav .kbsd__manager-bar form{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:end;column-gap:12px;row-gap:6px;flex:1;max-width:780px;min-width:0}
.kbsd--portal-topnav .kbsd__manager-bar label{grid-column:1/-1;display:block;line-height:1.35;margin:0}
.kbsd--portal-topnav .kbsd__manager-bar .kbsd__select-shell{grid-column:1;min-width:0}
.kbsd--portal-topnav .kbsd__manager-bar .kbsd__select-trigger{width:100%}
.kbsd--portal-topnav .kbsd__manager-bar form>.kbsd__btn{grid-column:2;align-self:end;height:48px;min-height:48px;margin:0}
@media(max-width:640px){.kbsd--portal-topnav .kbsd__manager-bar form{display:grid;grid-template-columns:minmax(0,1fr) auto;max-width:100%}.kbsd--portal-topnav .kbsd__manager-bar .kbsd__select-shell{min-width:0}.kbsd--portal-topnav .kbsd__manager-bar form>.kbsd__btn{margin:0}}

/* R0.1.13 - independent external agency directory, visually distinct from KBS staff. */
.kbsd__agency-block{margin-top:54px;padding-top:46px;border-top:1px solid var(--kd-line)}
.kbsd__agency-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:23px}
.kbsd__agency-card{display:flex;flex-direction:column;gap:11px;position:relative;min-height:186px;border:1px solid var(--kd-line);background:var(--kd-surface);border-radius:6px;padding:25px 23px!important;color:var(--kd-ink)!important;text-decoration:none!important;transition:background .2s,border-color .2s,transform .2s}
.kbsd__agency-card:hover{background:var(--kd-surface2);border-color:var(--kd-gold);transform:translateY(-2px)}
.kbsd__agency-card strong{font-size:15px;line-height:1.35;color:var(--kd-ink);font-weight:800}
.kbsd__agency-icon{font-family:inherit;font-weight:400;font-size:25px;line-height:1;color:var(--kd-gold)}
.kbsd__agency-card small{font-size:12px;color:var(--kd-muted);line-height:1.45}
.kbsd__agency-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:800;color:var(--kd-blue)}
@media(max-width:980px){.kbsd__agency-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.kbsd__agency-grid{grid-template-columns:1fr}.kbsd__agency-card{min-height:138px}}


/* R0.1.14 DEV — public view alignment / custom KBS dropdown / consistent Roboto.
   Scoped to public view only: PIC portal and Joomla Administrator CSS stay unchanged. */
.kbsd.kbsd--public,
.kbsd.kbsd--public :is(h1,h2,h3,p,span,small,label,a,button,input,select,textarea,summary,table,th,td,strong){font-family:'Roboto',system-ui,sans-serif!important}
.kbsd--public .kbsd__hero h1{font-size:clamp(30px,3vw,42px)!important;font-weight:900!important;letter-spacing:-.03em!important;line-height:1.13!important}
.kbsd--public .kbsd__section-title h2,.kbsd--public .kbsd__results-head h2{font-size:clamp(24px,2.6vw,32px)!important;font-weight:900!important;letter-spacing:-.025em!important}
.kbsd--public .kbsd__search{display:grid;grid-template-columns:minmax(0,1.28fr) minmax(0,1.05fr) auto auto;column-gap:12px;row-gap:12px;align-items:stretch;position:relative}
.kbsd--public .kbsd__search input[type=search],
.kbsd--public .kbsd__search .kbsd__btn,
.kbsd--public .kbsd__search select,
.kbsd--public .kbsd__search .kbsd__select-trigger{box-sizing:border-box!important;height:52px!important;min-height:52px!important;max-height:52px!important;border-radius:4px!important;margin:0!important;line-height:1.4!important;font-size:13px!important;font-weight:700!important}
.kbsd--public .kbsd__search input[type=search]{padding:0 17px!important;font-weight:500!important;min-width:0}
.kbsd--public .kbsd__search .kbsd__btn{padding:0 19px!important;gap:10px!important;white-space:nowrap;text-transform:none!important}
.kbsd--public .kbsd__search .kbsd__btn svg{flex:none;vertical-align:middle}
.kbsd--public .kbsd__search .kbsd__btn:focus-visible,
.kbsd--public .kbsd__view-switch button:focus-visible{outline:2px solid var(--kd-blue);outline-offset:2px}
.kbsd--public .kbsd__select-shell{display:block;position:relative;min-width:0;width:100%;font-family:'Roboto',system-ui,sans-serif!important}
.kbsd--public select.kbsd__native-enhanced{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;opacity:0!important;pointer-events:none!important;z-index:-1;appearance:none!important}
.kbsd--public .kbsd__select-trigger{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:11px!important;width:100%!important;min-width:0!important;cursor:pointer!important;padding:0 14px!important;border:1px solid var(--kd-line)!important;border-radius:4px!important;background:var(--kd-surface)!important;color:var(--kd-ink)!important;text-align:left!important;box-shadow:none!important;appearance:none!important;font-family:'Roboto',system-ui,sans-serif!important;font-size:13px!important;font-weight:700!important;line-height:1.4!important}
.kbsd--public .kbsd__select-trigger>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:100%}
.kbsd--public .kbsd__select-trigger>svg{width:17px;height:17px;flex:none;color:var(--kd-gold);stroke-width:1.5;transition:transform .15s}
.kbsd--public .kbsd__select-trigger[aria-expanded=true] svg{transform:rotate(180deg)}
.kbsd--public .kbsd__select-trigger[aria-expanded=true],.kbsd--public .kbsd__select-trigger:focus-visible{border-color:var(--kd-blue)!important;outline:2px solid transparent;box-shadow:0 0 0 3px rgba(22,119,255,.16)!important}
.kbsd--public .kbsd__select-shell:has(.kbsd__select-trigger[aria-expanded=true]){z-index:102}
.kbsd--public .kbsd__select-options{position:absolute;z-index:105;top:calc(100% + 6px);left:0;right:0;max-height:min(360px,58vh);overflow-y:auto;overscroll-behavior:contain;list-style:none!important;margin:0!important;padding:6px!important;border:1px solid var(--kd-line);border-radius:5px;background:var(--kd-surface2);box-shadow:0 18px 38px rgba(0,0,0,.23);scrollbar-width:thin;scrollbar-color:var(--kd-muted) transparent}
.kbsd--public .kbsd__select-options[hidden]{display:none!important}
.kbsd--public .kbsd__select-options li{list-style:none!important;margin:0!important;padding:0!important}
.kbsd--public .kbsd__select-options li::marker{content:''}
.kbsd--public .kbsd__select-option{display:flex!important;align-items:center!important;width:100%!important;min-height:41px!important;padding:11px 12px!important;background:transparent!important;border:0!important;border-radius:3px!important;box-shadow:none!important;text-align:left!important;color:var(--kd-ink)!important;font-family:'Roboto',system-ui,sans-serif!important;font-size:13px!important;font-weight:600!important;line-height:1.4!important;white-space:normal!important;cursor:pointer!important;word-break:normal!important}
.kbsd--public .kbsd__select-option:hover,.kbsd--public .kbsd__select-option:focus-visible{color:var(--kd-ink)!important;background:rgba(90,158,226,.16)!important;outline:0!important}
.kbsd--public .kbsd__select-option[aria-selected=true]{color:var(--kd-gold)!important;background:rgba(255,200,0,.1)!important;font-weight:900!important}
.kbsd--public .kbsd__select-option[aria-selected=true]::before{content:'✓';font-size:13px;display:inline-block;flex:none;margin-right:10px}
.kbsd--public .kbsd__results-head{align-items:flex-end;gap:20px;margin:38px 0 24px}
.kbsd--public .kbsd__results-head .kbsd__eyebrow{font-weight:900!important}
.kbsd--public .kbsd__result-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;line-height:1.65;color:var(--kd-muted)}
.kbsd--public .kbsd__selected-department{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:8px;max-width:100%}
.kbsd--public .kbsd__selected-label{font-size:10px;letter-spacing:.10em;font-weight:900;color:var(--kd-gold)}
.kbsd--public .kbsd__selected-department strong{font-size:13px;color:var(--kd-ink);font-weight:800}
.kbsd--public .kbsd__result-separator{margin:0 1px;color:var(--kd-muted);opacity:.5}
.kbsd--public .kbsd__result-address{margin-top:6px;font-size:12px;color:var(--kd-muted);line-height:1.5}
.kbsd--public .kbsd__results-actions{display:flex;align-items:center;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.kbsd--public .kbsd__sort-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0}
.kbsd--public .kbsd__sort-form>label{font-size:12px;font-weight:800;white-space:nowrap;color:var(--kd-muted);line-height:1.4;margin:0}
.kbsd--public .kbsd__sort-form>.kbsd__select-shell{width:190px;flex:0 0 190px}
.kbsd--public .kbsd__sort-form>.kbsd__select-shell .kbsd__select-trigger,
.kbsd--public .kbsd__sort-form>.kbsd__select-shell select,
.kbsd--public .kbsd__sort-submit,
.kbsd--public .kbsd__view-switch button{box-sizing:border-box!important;min-height:44px!important;height:44px!important;max-height:44px!important;margin:0!important;border-radius:4px!important;font-size:12px!important;font-weight:800!important;line-height:1.3!important}
.kbsd--public .kbsd__sort-form>.kbsd__select-shell .kbsd__select-trigger{padding:0 12px!important}
.kbsd--public .kbsd__sort-submit{display:inline-flex;align-items:center;justify-content:center;padding:0 15px;border:1px solid var(--kd-line);background:var(--kd-surface);color:var(--kd-ink);font-family:inherit!important;cursor:pointer}
.kbsd--public .kbsd__sort-submit:hover{border-color:var(--kd-gold)}
.kbsd--public .kbsd__view-switch{display:flex;flex-wrap:nowrap;gap:6px;margin:0}
.kbsd--public .kbsd__view-switch button{padding:0 15px!important;white-space:nowrap;background:var(--kd-surface)!important;border:1px solid var(--kd-line)!important;color:var(--kd-muted)!important}
.kbsd--public .kbsd__view-switch button[aria-pressed=true]{border-color:var(--kd-gold)!important;color:var(--kd-ink)!important;background:rgba(255,210,31,.06)!important}
@media(max-width:1150px){.kbsd--public .kbsd__search{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto auto}.kbsd--public .kbsd__results-head{align-items:flex-start;flex-direction:column}.kbsd--public .kbsd__results-actions{justify-content:flex-start;width:100%}}
@media(max-width:920px){.kbsd--public .kbsd__search{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.kbsd--public .kbsd__search .kbsd__btn{justify-self:stretch}}
@media(max-width:640px){.kbsd--public .kbsd__search{grid-template-columns:minmax(0,1fr)}.kbsd--public .kbsd__results-actions{gap:12px}.kbsd--public .kbsd__sort-form{width:100%;display:grid;grid-template-columns:1fr auto;gap:9px}.kbsd--public .kbsd__sort-form>label{grid-column:1/-1}.kbsd--public .kbsd__sort-form>.kbsd__select-shell{grid-column:1;width:100%;flex:auto}.kbsd--public .kbsd__sort-submit{grid-column:2}.kbsd--public .kbsd__view-switch{width:100%}.kbsd--public .kbsd__view-switch button{flex:1;padding:0 10px!important}.kbsd--public .kbsd__selected-department{display:flex;flex:0 0 100%}.kbsd--public .kbsd__result-separator{display:none}}

/* Give mobile result filters a clear separation from context details. */
@media(max-width:640px){.kbsd--public .kbsd__results-actions{margin-top:14px}}


/* R0.1.15: Public directory selected-department heading and concise contact line. */
.kbsd--public .kbsd__results-copy{min-width:0;flex:1 1 470px}
.kbsd--public .kbsd__results-copy h2{font-family:'Roboto',system-ui,sans-serif!important;font-size:clamp(28px,3.25vw,43px)!important;font-weight:900!important;line-height:1.13!important;letter-spacing:-.035em!important;margin:0 0 12px!important;overflow-wrap:break-word;max-width:920px}
.kbsd--public .kbsd__results-copy .kbsd__eyebrow{font-size:12px!important;letter-spacing:.28em!important;margin:0 0 12px!important}
.kbsd--public .kbsd__result-meta{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;line-height:1.6!important;margin:0!important;font-size:13px!important;color:var(--kd-muted)!important}
.kbsd--public .kbsd__result-meta .kbsd__meta-part{overflow-wrap:anywhere}
.kbsd--public .kbsd__result-meta .kbsd__result-separator{display:inline!important;color:var(--kd-muted);opacity:.6}
@media(max-width:1150px){.kbsd--public .kbsd__results-copy{flex-basis:100%;width:100%}}
@media(max-width:640px){.kbsd--public .kbsd__results-copy h2{font-size:clamp(26px,7.5vw,34px)!important;line-height:1.17!important}.kbsd--public .kbsd__result-meta{gap:6px;font-size:12px!important}}


/* R0.1.16: public email cloaking preserves original table/card typography. */
.kbsd--public .kbsd__cloaked-email{display:inline;overflow-wrap:anywhere}
.kbsd--public .kbsd__cloaked-email a{color:inherit!important}
.kbsd--public .kbsd__email-placeholder{font-style:italic;opacity:.68}


/* R0.1.17: KBS portal artwork in public directory ONLY.
   The artwork is centered inside a finite top-of-page ambient layer: long lists
   never stretch the image, tile it or move it into the middle of the results. */
.kbsd--public .kbsd__ambient{
  height:clamp(560px,62vw,790px);
  inset:0 0 auto;
  overflow:hidden;
  background:radial-gradient(ellipse at 80% 0%,rgba(22,119,255,.095),transparent 65%),
             radial-gradient(ellipse at 5% 25%,rgba(255,210,31,.05),transparent 42%);
}
.kbsd--public .kbsd__ambient::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:var(--kbsd-public-bg-image,none);
  background-position:center center;
  background-repeat:no-repeat;
  background-size:cover;
  opacity:.29;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 57%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,#000 57%,transparent 100%);
  pointer-events:none;
}
.kbsd--public[data-kbs-theme="dark"] .kbsd__ambient::before{opacity:.34}
.kbsd--public[data-kbs-theme="light"] .kbsd__ambient::before{opacity:.23}
@media(max-width:640px){
  .kbsd--public .kbsd__ambient{height:620px}
  .kbsd--public .kbsd__ambient::before{background-position:center center}
}


/* R0.1.20 — focused login typography and naked Lucide theme controls. */
.kbsd--login,
.kbsd--login :is(h1,h2,h3,h4,p,span,div,label,input,button,summary,a,small,em,strong){font-family:'Roboto',Arial,system-ui,sans-serif!important}
.kbsd--login .kbsd__login-intro h1{font-family:'Roboto',Arial,system-ui,sans-serif!important;font-weight:900!important;letter-spacing:-.042em!important}
.kbsd--login .kbsd__login-panel h2{font-family:'Roboto',Arial,system-ui,sans-serif!important;font-weight:900!important;letter-spacing:-.028em!important}
.kbsd--login .kbsd__login-theme{gap:11px;display:flex;align-items:center}
.kbsd--login .kbsd__login-theme button{
 display:inline-flex;align-items:center;justify-content:center;
 min-width:35px;min-height:38px;padding:7px!important;margin:0!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
 border-radius:3px;color:var(--kd-muted)!important;cursor:pointer;transition:color .16s,transform .16s
}
.kbsd--login .kbsd__login-theme button svg{width:20px;height:20px;stroke-width:1.35;flex:none}
.kbsd--login .kbsd__login-theme button:hover,
.kbsd--login .kbsd__login-theme button[aria-pressed="true"]{color:var(--kd-gold)!important;background:transparent!important}
.kbsd--login .kbsd__login-theme button:focus-visible{outline:2px solid var(--kd-blue);outline-offset:2px}

/* Naked Lucide 1.35px CRUD controls: no icons enclosed in decorative boxes. */
.kbsd--portal-topnav .kbsd__staff-list-wrap td:last-child{min-width:155px}
.kbsd--portal-topnav .kbsd__staff-actions{gap:8px;flex-wrap:nowrap}
.kbsd--portal-topnav .kbsd__staff-actions .kbsd__icon-action{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
 padding:8px!important;margin:0!important;border:0!important;border-radius:3px!important;
 background:transparent!important;box-shadow:none!important;color:var(--kd-blue)!important;
 line-height:1!important;text-decoration:none!important;cursor:pointer
}
.kbsd--portal-topnav .kbsd__staff-actions .kbsd__icon-action svg{width:19px;height:19px;stroke-width:1.35;flex:none}
.kbsd--portal-topnav .kbsd__staff-actions .kbsd__icon-action:hover{color:var(--kd-gold)!important;background:transparent!important}
.kbsd--portal-topnav .kbsd__staff-actions .kbsd__icon-action.kbsd__link-danger{color:var(--kd-red)!important}
.kbsd--portal-topnav .kbsd__staff-actions .kbsd__icon-action:focus-visible{outline:2px solid var(--kd-blue)!important;outline-offset:1px}

/* Public select: softly separated section heading for published KBS agencies. */
.kbsd--public .kbsd__select-options .kbsd__select-group{
 display:block!important;margin:12px 7px 7px!important;padding:13px 10px 5px!important;
 border-top:1px solid var(--kd-line)!important;color:var(--kd-gold)!important;
 font:900 10px/1.4 'Roboto',Arial,sans-serif!important;letter-spacing:.18em!important;
 background:transparent!important;list-style:none!important;pointer-events:none
}
.kbsd--public .kbsd__select-group + li .kbsd__select-option{margin-top:2px!important}


/* R0.1.21: Logged-in PIC only — eliminate Joomla/Helix template's
   otherwise empty pale header/footer bands and vertical main-body gutters.
   No selectors apply to the public directory, login page or Administrator.
   :has() scopes the template chrome to this specific front-end view. */
html:has(.kbsd--portal-topnav),
body:has(.kbsd--portal-topnav){
  margin:0!important;min-height:100%;
  background-color:#071b33!important;
}
html:has(.kbsd--portal-topnav[data-kbs-theme="light"]),
body:has(.kbsd--portal-topnav[data-kbs-theme="light"]){
  background-color:#f5f7fb!important;
}
/* The portal has its own account header and footer; do not reserve empty
   areas from the public site's Helix header, title and bottom positions. */
body:has(.kbsd--portal-topnav) :is(
  #sp-top-bar, #sp-header, #sp-page-title, #sp-title,
  #sp-breadcrumbs, #sp-bottom, #sp-footer
){display:none!important;}
body:has(.kbsd--portal-topnav) :is(
  #sp-main-body, #sp-component, #sp-main-body .sp-column,
  #sp-main-body .container, #sp-main-body .container-inner
){
  background:transparent!important;
  margin-top:0!important;margin-bottom:0!important;
  padding-top:0!important;padding-bottom:0!important;
}
/* Remove only outer Joomla grid gutters, not any KBS component grid. */
body:has(.kbsd--portal-topnav) #sp-main-body > .container,
body:has(.kbsd--portal-topnav) #sp-main-body > .container > .container-inner{
  width:100%!important;max-width:none!important;
  margin-inline:0!important;padding-inline:0!important;
}
body:has(.kbsd--portal-topnav) #sp-main-body > .container > .row,
body:has(.kbsd--portal-topnav) #sp-main-body > .container > .container-inner > .row{
  margin-inline:0!important;
}
body:has(.kbsd--portal-topnav) #sp-component{padding-inline:0!important;}
.kbsd--portal-topnav{min-height:100dvh; margin-top:0!important; margin-bottom:0!important;}
@supports not (height:100dvh){.kbsd--portal-topnav{min-height:100vh;}}


/* R0.1.24 — Public full-bleed template shell, Helix/Joomla only.
   Keep the normal KBS navbar. Remove the otherwise blank page-title /
   breadcrumb/footer template strips ONLY when the public directory renders.
   The actual directory markup, public cards, and PIC/login layouts are untouched. */
body:has(.kbsd--public){
  margin:0!important;
  background-color:#071b33!important;
  overflow-x:clip;
}
body:has(.kbsd--public[data-kbs-theme="light"]){
  background-color:#f5f7fb!important;
}
body:has(.kbsd--public) :is(
  #sp-page-title,#sp-title,#sp-breadcrumbs,#sp-breadcrumb,
  .sp-page-title,.sp-breadcrumbs,#sp-bottom,#sp-footer
){display:none!important}
/* The main body and component wrappers sometimes carry their own white
   background and 40–80px padding; remove only those, not the global navbar. */
body:has(.kbsd--public) :is(
  #sp-main-body,#sp-component,
  #sp-main-body .sp-column,
  #sp-main-body > .container,
  #sp-main-body > .container > .container-inner,
  #sp-main-body > .container > .row,
  #sp-main-body > .container > .container-inner > .row
){
  background:transparent!important;
  margin-top:0!important;margin-bottom:0!important;
  padding-top:0!important;padding-bottom:0!important;
}
body:has(.kbsd--public) #sp-main-body > .container,
body:has(.kbsd--public) #sp-main-body > .container > .container-inner{
  width:100%!important;max-width:none!important;
  margin-inline:0!important;padding-inline:0!important;
}
body:has(.kbsd--public) #sp-main-body > .container > .row,
body:has(.kbsd--public) #sp-main-body > .container > .container-inner > .row{
  margin-inline:0!important;
}
body:has(.kbsd--public) #sp-component{
  padding-inline:0!important;
}
/* When both Jelajah Bahagian and Agensi cards are disabled, the page may
   be shorter than one screen. Fill the remaining viewport with the same
   dark/light section background; keep the branded footer near the bottom.
   For long lists natural document height takes over (no stretched image). */
.kbsd.kbsd--public{
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  margin-top:0!important;
  margin-bottom:0!important;
  padding-bottom:42px;
}
.kbsd--public > .kbsd__container{
  display:flex;
  flex-direction:column;
  flex:1 0 auto;
}
.kbsd--public .kbsd__footer{
  margin-top:auto!important;
  padding-top:62px;
  border-top:0;
  position:relative;
}
.kbsd--public .kbsd__footer::before{
  content:"";
  position:absolute;
  top:41px;left:0;right:0;
  border-top:1px solid var(--kd-line);
}
/* No tiling or vertical extension of the artwork; background colour fills
   any remaining height while bg-stats is centered in its existing top layer. */
.kbsd--public .kbsd__ambient::before{
  background-repeat:no-repeat!important;
  background-position:center center!important;
}


/* R0.1.25: public-only portal theme synchronization.
   No independent saved PIC theme is allowed to pin the directory to Dark.
   The HTML canvas, Joomla wrapper and KBS section use one matching palette. */
html:has(.kbsd--public),
body:has(.kbsd--public){background-color:#f5f7fb!important;}
html:has(.kbsd--public[data-kbs-theme="dark"]),
body:has(.kbsd--public[data-kbs-theme="dark"]){background-color:#071b33!important;}
.kbsd--public[data-kbs-theme="light"]{color-scheme:light;}
.kbsd--public[data-kbs-theme="dark"]{color-scheme:dark;}
