:root{--navy:#082f49;--deep:#06273c;--coral:#ee6959;--paper:#f5f4ef;--white:#fff;--text:#173747;--muted:#617780;--line:#dce4e7;--soft:#edf3f5;--green:#2f6b51;--warn:#9d5924;--danger:#a83c35;font-family:"Microsoft JhengHei","Noto Sans TC",system-ui,sans-serif;color:var(--text);background:var(--paper);font-size:16px;line-height:1.65;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #f5ad83;outline-offset:3px}button{color:inherit}button svg{pointer-events:none}a{color:var(--navy)}h1,h2,h3,p{margin:0}h1{font-size:30px;line-height:1.35;letter-spacing:.01em;color:var(--navy)}h2{font-size:21px;line-height:1.45;color:var(--navy)}h3{font-size:18px;color:var(--navy)}small,.small{font-size:13px}.muted{color:var(--muted)}[hidden]{display:none!important}.demo-ribbon{background:var(--deep);color:#e6f0f4;text-align:center;padding:8px 18px;font-size:12px;letter-spacing:.03em}.site-header{padding:20px max(24px,calc((100vw - 1320px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px;background:var(--white);border-bottom:1px solid var(--line)}.brand{display:flex;gap:16px;align-items:center;border:0;background:none;padding:0;text-align:left}.brand img{width:92px;height:74px;object-fit:contain}.brand strong{display:block;color:var(--navy);font-size:21px;letter-spacing:.04em}.brand small{color:var(--muted);font-size:12px;letter-spacing:.09em}.header-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.save-label{font-size:12px;color:var(--muted);margin-right:8px}.site-footer{max-width:1320px;margin:0 auto;padding:22px 24px;display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;font-size:12px;color:var(--muted);border-top:1px solid var(--line)}#app{max-width:1320px;margin:auto;padding:30px 24px 40px;min-height:570px}.back-link{display:inline-flex;align-items:center;gap:8px;background:none;border:0;padding:0 0 16px;color:var(--navy);min-height:44px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:24px}.page-head p{color:var(--muted);margin-top:8px}.eyebrow{font-size:12px;letter-spacing:.16em;color:var(--muted);margin-bottom:6px}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}.toolbar>input[type=search]{flex:1;min-width:200px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 16px;border:1px solid var(--line);background:var(--white);border-radius:8px;text-decoration:none;color:var(--navy);font-size:15px;white-space:normal;line-height:1.5}.btn:hover{background:#eaf0f3}.btn-primary{background:var(--navy);color:white;border-color:var(--navy)}.btn-primary:hover{background:#124461}.btn-coral{background:var(--coral);border-color:var(--coral);color:white}.btn-coral:hover{background:#dc5d4f}.btn-danger{color:var(--danger);border-color:#e4bbb8}.btn-small{font-size:13px;padding:8px 12px;min-height:38px}.grow{flex:1;min-width:0}.panel{background:var(--white);border:1px solid var(--line);padding:23px;border-radius:13px;min-width:0}.panel+.panel{margin-top:20px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.split{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.65fr);gap:22px;align-items:start}.split>.panel+.panel{margin-top:0}.list{display:flex;flex-direction:column;gap:12px}.list-item{display:flex;gap:12px;align-items:center;text-align:left;min-width:0;width:100%;border:1px solid var(--line);border-radius:9px;background:white;padding:14px}.list-item.is-active,.person-card.is-active{border-color:var(--navy);background:#eff5f7}.list-item .grow{overflow-wrap:anywhere}.person-mini{display:flex;align-items:center;gap:15px;margin-bottom:18px}.avatar{width:56px;height:78px;object-fit:cover;border-radius:7px;flex-shrink:0;background:var(--soft)}.avatar.large{width:100px;height:145px}.badge{display:inline-flex;align-items:center;gap:4px;background:#eaf0f4;color:var(--navy);border-radius:5px;font-size:12px;padding:3px 9px;line-height:1.6}.badge-warn{background:#fff1e5;color:var(--warn)}.badge-good{background:#eaf5ed;color:var(--green)}.badges{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0;border-bottom:1px solid var(--line);padding-bottom:12px}.tab{border:1px solid var(--line);background:white;color:var(--muted);min-height:42px;padding:8px 14px;border-radius:7px}.tab.active,.tab[aria-selected=true]{background:var(--navy);color:white;border-color:var(--navy)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin:16px 0}.field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:14px}.field label{color:var(--muted)}.field small{color:var(--muted)}.full{grid-column:1/-1}input:not([type=checkbox]):not([type=radio]),select,textarea{width:100%;min-height:44px;border:1px solid #cdd9df;border-radius:7px;padding:9px 11px;background:white;color:var(--text);min-width:0}textarea{resize:vertical;min-height:95px}input[type=checkbox],input[type=radio]{width:19px;height:19px;accent-color:var(--navy);flex-shrink:0}label.check{display:flex;align-items:center;gap:10px;min-height:42px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.notice{padding:14px 17px;background:var(--soft);border-radius:8px;color:var(--navy);font-size:14px;margin:16px 0;overflow-wrap:anywhere}.notice-warn{background:#fff2e9;color:#854d22}.file-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:15px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.file-row:last-child{border:0}.timeline{margin-top:16px;display:flex;flex-direction:column;gap:0}.timeline>div,.timeline>li{border-left:2px solid var(--line);padding:5px 0 18px 17px;margin-left:6px;list-style:none}.timeline p{overflow-wrap:anywhere}.empty{padding:35px 20px;text-align:center;color:var(--muted);background:#f7f9f9;border:1px dashed var(--line);border-radius:10px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.person-card{border:1px solid var(--line);background:white;border-radius:12px;padding:13px;text-align:left;min-width:0}.person-card img{width:100%;aspect-ratio:2/2.7;object-fit:cover;border-radius:7px;display:block;margin-bottom:13px}.person-card h3,.person-card p{overflow-wrap:anywhere}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin:20px 0}.photo-card{position:relative;border:1px solid var(--line);padding:10px;background:white;border-radius:10px;text-align:left;min-width:0}.photo-card.active,.photo-card[aria-pressed=true]{border-color:var(--coral);box-shadow:0 0 0 1px var(--coral)}.photo-card img{width:100%;aspect-ratio:2/2.7;object-fit:cover;border-radius:6px;display:block;margin-bottom:10px}.photo-card .badge{position:absolute;left:18px;top:18px;background:white}.photo-stage{background:#153545;display:flex;align-items:center;justify-content:center;min-height:350px;border-radius:10px;padding:15px}.photo-stage img{max-width:100%;max-height:560px;object-fit:contain;border-radius:5px}.photo-detail{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:23px;align-items:start;margin-top:20px}.status-line{font-size:13px;color:var(--muted);padding:10px 0}.portal-welcome{margin:18px 0 28px}.portal-welcome h1{font-size:34px;margin-bottom:12px}.portal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.portal-card{min-height:210px;padding:27px;display:flex;align-items:flex-start;flex-direction:column;gap:14px;text-align:left;border:1px solid var(--line);border-radius:15px;background:white}.portal-card:hover{background:#edf3f5;border-color:var(--navy)}.portal-card strong{font-size:27px;color:var(--navy);font-weight:600}.portal-card .enter{align-self:flex-end;margin-top:auto;color:var(--coral);font-size:15px}.portal-card .number{font-size:12px;letter-spacing:.16em;color:var(--muted)}.task-list{display:flex;flex-direction:column;gap:14px}.task-row{display:flex;align-items:flex-start;gap:15px;border:1px solid var(--line);padding:18px;border-radius:11px;background:white}.task-row .task-check{margin-top:6px}.task-row.done h3{text-decoration:line-through;opacity:.6}.task-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:330px}.task-meta{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:7px}.preview-table{width:100%;border-collapse:collapse;font-size:14px}.preview-table td,.preview-table th{text-align:left;padding:11px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.preview-table th{color:var(--muted);font-weight:400}.token-note{font-size:12px;letter-spacing:.02em;color:var(--muted);margin-top:20px}#toast{position:fixed;z-index:100;bottom:22px;left:50%;transform:translateX(-50%);padding:13px 20px;border-radius:9px;background:var(--navy);color:white;max-width:min(90vw,650px);box-shadow:0 4px 25px #0002;font-size:14px}#toast.error{background:#9b3f36}dialog{border:1px solid var(--line);padding:24px;border-radius:15px;max-width:min(820px,94vw);width:740px;max-height:90vh;overflow:auto;color:var(--text);background:white}dialog::backdrop{background:#07283b80}.dialog-top{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:18px}.dialog-top h2{font-size:22px}dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7f8;padding:17px;font-size:14px}dialog img{max-width:100%;max-height:68vh;display:block;margin:0 auto;object-fit:contain}.help-steps{display:flex;flex-direction:column;gap:14px;padding:0;list-style:none}.help-steps li{padding:15px;background:#f0f5f6;border-radius:9px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.settings-grid .btn{min-height:65px}.file-input-label{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border:1px solid var(--line);padding:10px 16px;border-radius:8px;background:white}.file-input-label input{max-width:230px;font-size:12px}.table-wrap{overflow:auto}hr{border:0;border-top:1px solid var(--line);margin:20px 0}.inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.photo-detail{display:block}.photo-detail>.split{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.list-item .small{display:block}.field+.field{margin-top:3px}fieldset{border:1px solid var(--line);border-radius:8px;padding:15px;min-width:0}legend{padding:0 5px}summary{cursor:pointer;color:var(--navy);padding:9px 0}.timeline .list-item{display:block}
@media(max-width:900px){.site-header{padding:18px 22px;align-items:flex-start}.save-label{display:none}.split{grid-template-columns:minmax(220px,.75fr) minmax(0,1.3fr)}.task-row{flex-wrap:wrap}.task-actions{max-width:none;margin-left:34px}.photo-detail>.split{grid-template-columns:1fr}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.site-header{flex-direction:column;gap:13px;padding:16px 18px}.header-tools{justify-content:flex-start}.brand img{width:73px;height:60px}.brand strong{font-size:19px}#app{padding:24px 16px 30px}.portal-grid,.split{grid-template-columns:1fr}.portal-card{min-height:177px;padding:22px}.portal-welcome h1{font-size:28px}h1{font-size:26px}.panel{padding:18px}.form-grid{grid-template-columns:1fr}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.task-actions{margin-left:0}.task-row .grow{min-width:190px}.settings-grid{grid-template-columns:1fr}.site-footer{padding:20px 16px}.tabs{gap:6px}.tab{font-size:13px;padding:8px 11px}.toolbar>input[type=search]{min-width:100%}.page-head{gap:13px}.page-head .toolbar{margin:0}.dialog-top{align-items:flex-start}.dialog-top h2{font-size:19px}}
@media(max-width:360px){.cards{grid-template-columns:1fr}.brand strong{font-size:17px}.brand img{width:64px}.header-tools .btn{font-size:12px}.photo-grid{gap:10px}.photo-card{padding:7px}.task-row .grow{min-width:160px}.demo-ribbon{font-size:11px}.badge{font-size:11px}}

/* V2: familiar recruitment-workbench rhythm, people-first detail pages. */
:root{--paper:#f8f7f3;--navy:#0a3448;--deep:#082d3e;--coral:#ec6b5c}
.portal-featured{border-color:#ec6b5c;box-shadow:inset 4px 0 0 #ec6b5c}.portal-card{border-radius:8px}.panel{border-radius:8px}.upcoming-panel{margin-top:28px}.schedule-date{display:flex;flex-direction:column;min-width:68px;color:var(--navy);font-weight:600}.schedule-date small{font-weight:400}.list-item small{display:block}.form-grid .field.full{grid-column:1/-1}.table-wrap table{min-width:100%;border-collapse:collapse}.table-wrap th,.table-wrap td{padding:11px;text-align:left;border-bottom:1px solid var(--line)}.table-wrap th{font-size:13px;color:var(--muted)}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}.metric-card{padding:17px;border:1px solid var(--line);background:white;border-radius:7px}.metric-card strong{display:block;font-size:28px;color:var(--navy)}.metric-card span{font-size:13px;color:var(--muted)}
@media(max-width:800px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Layout-first refinement: fewer competing panels, readable working density. */
:root{font-family:"Segoe UI","Microsoft JhengHei","Noto Sans TC",system-ui,sans-serif;line-height:1.55;--paper:#f6f5f1;--muted:#687b84;--line:#dfe6e9}
.demo-ribbon{padding:5px 16px;font-size:11px;line-height:18px;letter-spacing:.02em}
.site-header{padding:13px max(24px,calc((100vw - 1320px)/2));gap:16px}.brand{gap:14px}.brand img{width:74px;height:54px}.brand strong{font-size:20px;letter-spacing:.035em}.brand small{font-size:10px}.header-tools{gap:8px}.save-label{font-size:11px}
.management-return{position:sticky;top:12px;z-index:8;width:max-content;max-width:100%;margin:0 0 12px}.management-return .btn{background:var(--white);box-shadow:0 3px 12px #07283b14}.management-return .btn:hover{background:#eaf0f3}
#app{padding-top:23px}.back-link{padding-bottom:8px;min-height:34px;font-size:14px;margin-bottom:6px}.page-head{margin-bottom:18px;gap:15px}.page-head p{font-size:14px;margin-top:6px}.eyebrow{font-size:10px;letter-spacing:.16em}h1{font-size:28px;font-weight:650;letter-spacing:.01em}h2{font-size:20px;font-weight:650}h3{font-size:17px}.btn{font-size:14px;font-weight:500;min-height:42px;border-radius:7px}.btn-small{font-size:12px;min-height:35px}.tab{font-size:14px;min-height:39px}.panel{border-radius:10px;padding:21px}.notice{padding:12px 15px;font-size:13px}.small,small{font-size:12px}.field{font-size:14px}input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:14px}
.portal-welcome{margin:17px 0 28px}.portal-welcome h1{font-size:34px;font-weight:650;letter-spacing:.025em;margin-bottom:8px}.portal-welcome p{font-size:15px}.portal-grid{gap:18px}.portal-card{min-height:215px;padding:24px 28px;gap:9px;border-radius:12px;box-shadow:0 3px 14px #08344804;transition:background .15s,border-color .15s,transform .15s}.portal-card:hover{transform:translateY(-2px);background:white;box-shadow:0 5px 18px #08344810}.portal-card-top{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:2px}.portal-icon{color:var(--navy);display:flex;align-items:center;justify-content:center;width:43px;height:43px;border-radius:11px;background:#edf3f4}.portal-icon svg{width:29px;height:29px}.portal-card strong{font-size:26px;font-weight:650}.portal-card>.muted{font-size:14px}.portal-card-bottom{display:flex;width:100%;align-items:center;justify-content:space-between;margin-top:12px}.portal-card .number{font-size:10px;letter-spacing:.13em}.portal-card .enter{font-size:14px;margin:0}.portal-featured{box-shadow:inset 3px 0 0 var(--coral);border-color:#e8b7ac}.portal-featured .portal-icon{color:#c95749;background:#fceee8}.portal-card .badge{font-size:11px;font-weight:400;color:#617984;background:#f3f6f7}
.task-row{padding:17px 18px}.task-row h3{font-size:17px}.task-row p{margin-top:4px}.site-footer{padding-top:16px;padding-bottom:16px;font-size:11px}
@media(max-width:680px){.site-header{padding:12px 16px;gap:10px}.brand img{width:61px;height:46px}.brand strong{font-size:19px}.brand small{font-size:9px}.header-tools{gap:7px}.header-tools .btn{min-height:34px;font-size:12px}#app{padding-top:17px}.portal-welcome{margin-top:9px}.portal-welcome h1{font-size:27px}.portal-card{min-height:180px;padding:20px 22px}.portal-card strong{font-size:24px}.portal-card>.muted{font-size:13px}.portal-icon{width:34px;height:34px}.portal-icon svg{width:25px;height:25px}.panel{padding:17px}.page-head{margin-bottom:16px}}
.today-workspace{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:22px;align-items:start}.today-workspace .upcoming-panel{margin:0}.today-workspace .task-row{flex-wrap:wrap}.today-workspace .task-actions{margin-left:34px;max-width:none}.today-workspace .upcoming-panel .list-item{font-size:14px;padding:13px 12px}.today-workspace .upcoming-panel .list-item>span:last-child{white-space:nowrap;font-size:12px}.today-workspace .schedule-date{min-width:56px}.today-workspace h2{font-size:18px}
@media(max-width:900px){.today-workspace{grid-template-columns:1fr}}
.portal-five{grid-template-columns:repeat(6,minmax(0,1fr))}.portal-five .portal-card{grid-column:span 2;min-height:210px}.portal-five .portal-card:nth-child(-n+2){grid-column:span 3}
@media(max-width:900px){.portal-five{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-five .portal-card,.portal-five .portal-card:nth-child(-n+2){grid-column:span 1}.portal-five .portal-card:last-child{grid-column:1/-1}}
@media(max-width:580px){.portal-five{grid-template-columns:1fr}.portal-five .portal-card{min-height:175px}.portal-five .portal-card:last-child{grid-column:span 1}}
.portal-six{grid-template-columns:repeat(12,minmax(0,1fr))}.portal-six .portal-card{grid-column:span 3;min-height:215px}
.portal-six .portal-recruit{grid-column:1/-1}.portal-six .portal-bottom-wide{grid-column:span 6}
@media(max-width:950px){.portal-six{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-six .portal-card{grid-column:span 1}.portal-six .portal-recruit{grid-column:1/-1}.portal-six .portal-bottom-wide[data-area="cases"]{grid-column:1}.portal-six .portal-bottom-wide[data-area="vendors"]{grid-column:2}}
@media(max-width:580px){.portal-six{grid-template-columns:1fr}.portal-six .portal-card{min-height:175px}.portal-six .portal-bottom-wide[data-area]{grid-column:1}}

.portal-grid + .portal-welcome{margin-top:28px}

/* Durable management connection status */
.sync-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:1320px;margin:12px auto 0;padding:10px 18px;border:1px solid var(--line);border-radius:9px;background:#edf3f4;color:var(--navy);font-size:13px;overflow-wrap:anywhere}.sync-bar[data-state="error"],.sync-bar[data-state="conflict"]{background:#fff0e9;border-color:#e4a28a;color:#883e2e}.sync-bar[data-state="saving"]{background:#fff8e6}.connection-error p{margin-top:12px}.connection-error button{margin-top:18px}@media(max-width:680px){.sync-bar{margin:10px 16px 0;padding:10px 12px;align-items:flex-start;flex-wrap:wrap}.sync-bar .btn{flex-shrink:0}.save-label{max-width:100%;overflow-wrap:anywhere}}

.sync-actions{display:flex;gap:8px;flex-wrap:wrap}.sync-bar:has([data-status="error"]){background:#fff0e9;border-color:#e4a28a;color:#883e2e}.sync-bar:has([data-status="saving"]){background:#fff8e6}

/* Keep page controls and selected details reachable with larger rosters. */
html[data-mode="managed"] .talent-roster,html[data-mode="managed"] .vd-list,html[data-mode="managed"] .case-master>.list{max-height:560px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:3px}
html[data-mode="managed"] .talent-roster-card,html[data-mode="managed"] .vd-list-item,html[data-mode="managed"] .case-master>.list>.list-item{flex-shrink:0}
@media(max-width:760px){html[data-mode="managed"] .talent-roster,html[data-mode="managed"] .vd-list,html[data-mode="managed"] .case-master>.list{max-height:340px}}

.list-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:14px;margin-top:14px;border-top:1px solid var(--line)}.list-pagination .toolbar{gap:7px}.list-pagination .btn{min-width:72px}.list-pagination>span{overflow-wrap:anywhere}@media(max-width:420px){.list-pagination{align-items:flex-start;flex-direction:column}.list-pagination .toolbar{width:100%;justify-content:space-between}}

.readonly-mode .demo-ribbon{background:#143a4b}.readonly-mode [aria-disabled="true"]{cursor:not-allowed;opacity:.48}.readonly-mode .readonly-note{border-left:3px solid #557c88;background:#edf3f4;padding:12px 15px}.readonly-mode input:disabled,.readonly-mode textarea:disabled,.readonly-mode select:disabled{color:#425d68;background:#f2f5f5;opacity:1}

.admitted-count-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0 22px}.admitted-count-grid>div{padding:14px;background:#edf3f4;border-radius:8px;min-width:0}.admitted-count-grid small{display:block;color:var(--muted)}.admitted-count-grid strong{display:block;font-size:26px;color:var(--navy)}.admitted-field-list{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.admitted-skip-list>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.admitted-skip-list dd{flex-shrink:0}.admitted-entry-list{max-height:300px;overflow:auto;margin:12px 0}.admitted-entry{display:flex;gap:12px;align-items:flex-start;padding:12px;border-bottom:1px solid var(--line)}.admitted-entry small{display:block;color:var(--muted)}.admitted-actions{margin-top:20px;flex-wrap:wrap}.admitted-actions button{white-space:normal}.admitted-count-grid,.admitted-entry-list{overflow-wrap:anywhere}@media(max-width:520px){.admitted-count-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admitted-actions{display:grid;grid-template-columns:1fr}.admitted-actions button{width:100%}}

.manual-role-fieldset{border:1px solid var(--line);border-radius:9px;padding:14px;margin:18px 0}.manual-role-fieldset legend{padding:0 8px;font-size:14px}.manual-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.manual-role-grid label,.manual-adult-check{display:flex;gap:9px;align-items:flex-start;overflow-wrap:anywhere}.manual-adult-check{padding:14px;background:#edf3f4;border-radius:8px;margin:14px 0}.manual-form-error{color:#9b3f36;margin:12px 0;overflow-wrap:anywhere}.manual-person-actions{margin-top:18px}.manual-unavailable{margin:12px 0 18px}.manual-person-form input{min-width:0}@media(max-width:520px){.manual-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.manual-person-actions{display:grid;grid-template-columns:1fr}.manual-person-actions button{width:100%;white-space:normal}}
dialog[data-purpose="manual-person-create"] .dialog-top .btn{flex-shrink:0;white-space:nowrap}
@media(max-width:600px){.talent-profile-panel .file-row,.case-detail .file-row{flex-wrap:wrap;align-items:flex-start}.talent-profile-panel .file-row>.grow,.case-detail .file-row>.grow{flex-basis:100%;width:100%;min-width:0;overflow-wrap:anywhere}.talent-profile-panel .file-row>.toolbar,.case-detail .file-row>.toolbar{width:100%;flex-wrap:wrap}}

/* Center the featured recruitment entry without changing the other cards. */
.portal-six .portal-recruit{align-items:center;text-align:center}
.portal-six .portal-recruit .portal-card-top,.portal-six .portal-recruit .portal-card-bottom{justify-content:center;position:relative}
.portal-six .portal-recruit .portal-card-top .badge{position:absolute;right:0;top:50%;transform:translateY(-50%)}
.portal-six .portal-recruit .portal-card-bottom .number{position:absolute;left:0;top:50%;transform:translateY(-50%)}

/* Photography service uses the shared talent records and existing controls. */
.photography-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:22px}.photography-hero p{margin-top:8px;max-width:680px;color:var(--muted)}.photography-hero .toolbar{margin:0}
.photography-search{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:20px}.photography-search .field{flex:1 1 170px}.photography-search .field:first-child{flex:2 1 260px}.photography-search .btn{flex:0 0 auto}.photography-search input,.photography-search select{min-width:0}
.photography-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}.photography-grid>.panel+.panel{margin-top:0}.photography-person{display:flex;align-items:flex-start;gap:16px;padding:18px;min-width:0}.photography-portrait{display:block;width:92px;height:124px;flex:0 0 92px;object-fit:cover;border-radius:8px;background:var(--soft)}.photography-info{display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}.photography-name{font-size:20px;color:var(--navy);font-weight:650;overflow-wrap:anywhere}.photography-stage-name,.photography-region{font-size:13px;color:var(--muted);overflow-wrap:anywhere}.photography-roles{display:flex;flex-wrap:wrap;gap:6px;overflow-wrap:anywhere}.photography-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.photography-card-actions .btn{min-height:38px;font-size:13px;padding:8px 10px}.photography-status{margin:16px 0;color:var(--muted);font-size:14px}.photography-error{overflow-wrap:anywhere}.photography-pagination{margin-top:20px}
@media(max-width:1000px){.photography-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.photography-grid{grid-template-columns:1fr}.photography-person{padding:16px;gap:13px}.photography-hero{gap:14px}.photography-search .field{flex-basis:100%}.photography-search .btn{flex:1 1 auto}}

/* Contrast only for the centered recruitment entry. */
.portal-six .portal-recruit{background:#063e50;border-color:#063e50;color:#fff}
.portal-six .portal-recruit:hover{background:#0a4a5e;border-color:#0a4a5e}
.portal-six .portal-recruit>strong{color:#fff}
.portal-six .portal-recruit>.muted{color:#d6e8ef}
.portal-six .portal-recruit .portal-icon{background:#1b5263;color:#d7eaf1}
.portal-six .portal-recruit .badge{background:#1a5263;color:#e0eff4}
.portal-six .portal-recruit .number{color:#b7d1da}
.portal-six .portal-recruit .portal-card-bottom .enter{display:inline-flex;align-items:center;justify-content:center;padding:8px 18px;border:1px solid #ff8b7a;border-radius:999px;background:#ff8b7a;color:#063e50;font-weight:700;line-height:1.4}
.portal-six .portal-recruit:focus-visible{outline:3px solid #063e50;outline-offset:4px;box-shadow:0 0 0 2px #fff}

/* Keep onsite photos beside the welcome heading, with one clear action. */
.portal-welcome-with-photo{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;border:1px solid var(--line);border-radius:12px;background:#fff}
.portal-welcome-copy{min-width:0}.portal-photo-action{flex:0 0 300px;max-width:100%}
.portal-photo-link{display:flex;align-items:center;gap:14px;padding:15px 18px;border:1px solid #eab7a9;border-radius:10px;background:#fff1eb;color:var(--navy);text-decoration:none;transition:background .15s,border-color .15s,box-shadow .15s}
.portal-photo-link:hover{background:#ffe6da;border-color:#d87965;box-shadow:0 3px 12px #0834480d}
.portal-photo-icon{display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border-radius:10px;background:#fff;color:#a44735}.portal-photo-icon svg{width:28px;height:28px}
.portal-photo-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.portal-photo-copy strong{font-size:19px;font-weight:650;letter-spacing:.03em}.portal-photo-copy>span{font-size:12px;color:#655955}.portal-photo-arrow{margin-left:auto;font-size:21px;color:#a44735}
.portal-welcome .portal-photo-hint{margin-top:8px;font-size:12px;line-height:1.5;text-align:center;color:var(--muted)}
@media(max-width:680px){.portal-welcome-with-photo{align-items:stretch;flex-direction:column;gap:18px;padding:20px 18px}.portal-photo-action{flex-basis:auto;width:100%}.portal-photo-link{padding:14px 16px}.portal-welcome-with-photo h1{font-size:25px}}

/* Derived collection reminders are separate from manually completed tasks. */
.receivable-reminders{margin-bottom:28px;border-top:4px solid #c17a4d}.receivable-reminders>.panel-head{align-items:flex-start;gap:16px;flex-wrap:wrap}.receivable-reminders h2{font-size:22px}.receivable-reminders>.panel-head p{margin:6px 0 0}.receivable-reminders>.small{margin:12px 0}.receivable-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.receivable-totals>div{padding:14px 16px;border:1px solid var(--line);border-radius:8px;background:#f3f6f6;min-width:0}.receivable-totals span{display:block;font-size:13px;color:var(--muted);margin-bottom:7px}.receivable-totals strong{font-size:20px;overflow-wrap:anywhere}.receivable-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}.receivable-card{min-width:0;border:1px solid var(--line);border-radius:10px;padding:20px;background:#fff}.receivable-card .panel-head{align-items:flex-start;gap:10px;margin-bottom:12px}.receivable-card h3{font-size:20px;overflow-wrap:anywhere}.receivable-card .panel-head p{margin:5px 0 0}.receivable-owner-money{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:14px;margin-bottom:16px;padding-bottom:15px;border-bottom:1px solid var(--line)}.receivable-owner-money>span{color:#8a502e}.receivable-term{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.receivable-term:last-child{border-bottom:0;padding-bottom:0}.receivable-term>.grow{min-width:0;overflow-wrap:anywhere}.receivable-term .btn{flex:0 0 auto;white-space:normal;max-width:125px}.receivable-term p{margin:5px 0}.receivable-term-status{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0}.receivable-due-today{background:#fbe7d1;color:#84531c}.receivable-pending{background:#e8edf9;color:#425a89}.receivable-more-terms{margin:16px 0 0;padding-top:12px;border-top:1px solid var(--line)}.receivable-empty{padding:20px 0;color:var(--muted)}.receivable-pagination{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:18px}.today-manual-heading{font-size:22px;margin:24px 0 14px}.talent-income-period.receivable-target{outline:3px solid #cb8a60;outline-offset:4px;background:#fff7ed;scroll-margin-top:24px}.talent-income-period.receivable-target:focus{outline:3px solid #a8673a}
@media(max-width:1050px){.receivable-cards{grid-template-columns:1fr}}
@media(max-width:560px){.receivable-reminders{padding:18px}.receivable-totals{grid-template-columns:1fr;gap:8px}.receivable-totals>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px}.receivable-totals span{margin:0}.receivable-totals strong{font-size:18px;text-align:right}.receivable-card{padding:16px}.receivable-term{align-items:flex-start;flex-direction:column}.receivable-term .btn{max-width:none;width:100%}.receivable-owner-money{flex-direction:column}.receivable-card .panel-head>.badge{white-space:nowrap}}

/* Desktop workspaces keep their seven entries beside the tools they use throughout the day. */
#app:has(> .portal-home) {
  max-width: 1500px;
  min-height: auto;
  padding: clamp(14px, 3vh, 30px) clamp(16px, 2.5vw, 36px) 18px;
}
body:has(.portal-home) .site-header {
  padding-inline: max(clamp(16px, 2.5vw, 36px), calc((100% - 1428px) / 2));
}
.portal-home h1 {
  margin: 0 0 clamp(12px, 2.2vh, 22px);
  font-size: clamp(24px, 2.25vw, 32px);
}
.portal-home .home-guide {
  margin: -4px 0 14px;
  color: var(--muted);
}
.home-columns {
  --home-gap: clamp(10px, 1.25vw, 18px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(230px, 22vw, 314px);
  gap: var(--home-gap);
  align-items: stretch;
}
.home-entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--home-gap);
}
.home-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  align-content: center;
  align-items: center;
  column-gap: 8px;
  row-gap: 4px;
  min-width: 0;
  min-height: clamp(105px, 18vh, 166px);
  padding: clamp(12px, 1.55vw, 23px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  text-align: left;
}
.home-entry:hover { border-color: #7395a0; background: #fbfdfd; }
.home-entry-icon, .home-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #19586c;
  background: #eaf2f3;
}
.home-entry-icon svg, .home-tool-icon svg { width: 23px; height: 23px; }
.home-entry > strong {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 650;
  line-height: 1.4;
}
.home-entry-desc {
  grid-column: 1 / -1;
  grid-row: 3;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.home-entry-count {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f3f6f7;
  color: #4d6672;
  font-size: 12px;
  line-height: 1.45;
}
.home-entry-recruit {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: clamp(12px, 1.6vw, 24px);
  min-height: clamp(86px, 15vh, 143px);
  padding-inline: clamp(16px, 2vw, 32px);
  border-color: #073e50;
  color: #fff;
  background: #073e50;
}
.home-entry-recruit:hover { background: #104e60; border-color: #104e60; }
.home-entry-recruit .home-entry-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 49px;
  height: 49px;
  background: #1c5465;
  color: #e5f2f6;
}
.home-entry-recruit .home-entry-icon svg { width: 30px; height: 30px; }
.home-entry-recruit > strong { grid-column: 2; grid-row: 1; }
.home-entry-recruit .home-entry-desc { grid-column: 2; grid-row: 2; color: #d6e8ef; }
.home-entry-open {
  grid-column: 3;
  grid-row: 1 / 3;
  padding: 6px 14px;
  border-radius: 30px;
  background: #ffad9e;
  color: #113b48;
  font-size: 14px;
  font-weight: 650;
}
.home-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  grid-auto-rows: 1fr;
  gap: 10px;
  min-width: 0;
  padding: clamp(12px, 1.3vw, 20px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.home-tools h2 { margin: 0 0 2px; font-size: 18px; }
.home-tool {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 12px;
  border: 1px solid var(--tool-line);
  border-radius: 9px;
  background: var(--tool-bg);
  color: var(--navy);
  text-align: left;
  text-decoration: none;
}
.home-tool-report { --tool-bg: #eef5f5; --tool-line: #c0d5d9; --tool-ink: #276477; }
.home-tool-photo { --tool-bg: #fff2eb; --tool-line: #f0c4b3; --tool-ink: #a14d36; }
.home-tool-md { --tool-bg: #f2f2fa; --tool-line: #d2d0e5; --tool-ink: #62557d; }
.home-tool-docs { --tool-bg: #eff5ec; --tool-line: #c4d5be; --tool-ink: #3c6243; }
.home-tool:hover { border-color: var(--tool-ink); }
.home-tool-icon { background: white; color: var(--tool-ink); }
.home-tool-copy { display: grid; gap: 4px; }
.home-tool-copy strong { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.4; }
.home-tool-copy > span { font-size: 13px; line-height: 1.55; color: #526673; }
.home-tool-arrow { font-size: 19px; color: var(--tool-ink); }
.home-entry:focus-visible, .home-tool:focus-visible { outline: 3px solid #245d75; outline-offset: 3px; }
.portal-home .home-note { margin-top: 12px; font-size: 12px; color: var(--muted); }

@media (min-width: 851px) and (max-height: 670px) {
  .home-entry { padding-block: 10px; }
  .home-entry-icon { width: 28px; height: 28px; }
  .home-tools { grid-auto-rows: auto; gap: 8px; padding: 12px; }
  .home-tool { padding: 7px 10px; }
  .home-tool-copy { gap: 2px; }
  .home-tool-copy > span { font-size: 12px; line-height: 1.4; }
}
@media (max-width: 850px) {
  .home-columns { grid-template-columns: minmax(0, 1fr); }
  .home-entry { min-height: 90px; padding: 10px 13px; }
  .home-entry-recruit { min-height: 74px; }
  .home-tools {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto;
    padding: 12px;
  }
  .home-tools h2 { grid-column: 1 / -1; }
  .home-tool { grid-template-columns: auto minmax(0, 1fr); padding: 9px; gap: 6px; }
  .home-tool-arrow { display: none; }
}
@media (max-width: 600px) {
  .portal-home h1 { margin-bottom: 10px; font-size: 23px; }
  .home-columns, .home-entries { gap: 8px; }
  .home-entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-entry {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 7px;
    row-gap: 2px;
    min-height: 62px;
    padding: 9px;
  }
  .home-entry-icon { grid-column: 1; grid-row: 1 / 3; width: 28px; height: 30px; }
  .home-entry-icon svg { width: 20px; height: 20px; }
  .home-entry > strong { grid-column: 2; grid-row: 1; font-size: 17px; }
  .home-entry-count {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    background: transparent;
    padding: 0;
  }
  .home-entry:not(.home-entry-recruit) .home-entry-desc { display: none; }
  .home-entry-recruit { grid-template-columns: auto minmax(0, 1fr) auto; min-height: 68px; column-gap: 10px; }
  .home-entry-recruit .home-entry-icon { width: 34px; height: 36px; }
  .home-entry-recruit .home-entry-icon svg { width: 24px; height: 24px; }
  .home-entry-recruit .home-entry-desc { font-size: 12px; }
  .home-entry-open { padding: 5px 8px; font-size: 12px; }
  .home-tools { gap: 6px; padding: 10px; }
  .home-tools h2 { font-size: 16px; }
  .home-tool { grid-template-columns: 1fr; align-content: center; justify-items: center; gap: 4px; text-align: center; min-height: 62px; padding: 6px 3px; }
  .home-tool-icon { width: 25px; height: 25px; }
  .home-tool-icon svg { width: 18px; height: 18px; }
  .home-tool-copy strong { font-size: 14px; }
  .home-tool-copy > span { display: none; }
}
@media (min-width: 601px) and (max-width: 850px) and (max-height: 700px) {
  .home-entry:not(.home-entry-recruit) {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 74px;
  }
  .home-entry:not(.home-entry-recruit) .home-entry-icon { grid-row: 1 / 3; }
  .home-entry:not(.home-entry-recruit) > strong { grid-column: 2; grid-row: 1; }
  .home-entry:not(.home-entry-recruit) .home-entry-desc { display: none; }
  .home-entry-count { grid-row: 2; justify-self: start; }
}
@media (max-width: 600px) and (max-height: 600px) {
  body:has(.portal-home) .site-header { padding-block: 8px; }
  #app:has(> .portal-home) { padding: 8px 12px; }
  .portal-home h1 { margin-bottom: 6px; font-size: 21px; }
  .home-columns, .home-entries { gap: 6px; }
  .home-entry { min-height: 54px; padding: 6px 8px; }
  .home-entry-recruit { min-height: 57px; }
  .home-tools { padding: 7px; }
  .home-tool { min-height: 52px; padding-block: 4px; }
  .portal-home .home-note { margin-top: 5px; }
}
@media (max-width: 420px) {
  .home-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-tool { grid-template-columns: auto minmax(0, 1fr); justify-items: start; gap: 6px; min-height: 44px; padding-inline: 7px; text-align: left; }
}
