.aci-projects,.aci-project-dialog{font:16px/1.5 system-ui;color:#193d59}.aci-projects{max-width:1080px;margin:auto;padding:24px}.aci-projects h1,.aci-projects>p,.aci-projects>a{color:white}.aci-project-panel{background:#dfe4e8;border:1px solid #768b9d;border-radius:16px;padding:20px;margin:18px 0}.aci-projects button,.aci-project-dialog button,.aci-project-add{border:1px solid #234f70;border-radius:9px;background:#234f70;color:white;padding:10px 14px;font:inherit;cursor:pointer;min-height:44px}.aci-projects button:disabled,.aci-project-dialog button:disabled{opacity:.6;cursor:wait}.aci-projects .orange{background:#ffb547;color:#193d59}.aci-projects .danger{background:#a22b2b}.aci-project-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.aci-projects label,.aci-project-dialog label{display:block;font-weight:600;margin:12px 0}.aci-projects input,.aci-projects select,.aci-projects textarea,.aci-project-dialog input,.aci-project-dialog select,.aci-project-dialog textarea{box-sizing:border-box;width:100%;padding:10px;border:1px solid #677e91;border-radius:8px;background:white;color:#162f43;font:inherit}.aci-project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.aci-project-dialog{width:min(620px,90vw);max-height:85vh;overflow:auto;border:2px solid #ffb547;border-radius:16px;padding:22px}.aci-project-dialog::backdrop{background:#10263ccc}.aci-project-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px}.aci-project-dialog header h2{margin:0}.aci-project-card{border:1px solid #8296a6;border-radius:12px;background:#f4f6f8;padding:16px;margin:12px 0;overflow-wrap:anywhere}.aci-project-card a{color:#164769}.aci-project-status{font-weight:700;color:#22593d}.aci-project-message{background:#fff3cf;color:#172f44;padding:12px;border-radius:9px}.aci-projects textarea{min-height:90px}.aci-projects button:focus-visible,.aci-project-dialog button:focus-visible{outline:3px solid #ffb547;outline-offset:3px}@media(max-width:600px){.aci-projects{padding:12px}.aci-project-panel{padding:14px}.aci-project-actions>*{flex:1 1 180px}}

body[data-account-type="company"] .aci-project-add { display:none; }

.aci-project-connect{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;border:1px solid #ffb547;border-radius:9px;background:#ffb547;color:#193d59!important;font-weight:700;text-decoration:none}.aci-project-connect:hover{background:#ffc568}.aci-project-connect:focus-visible{outline:3px solid white;outline-offset:3px}

/* GC workspace follows the My Company portal's blue section treatment. */
body.aci-gc-workspace{background:#e8f0f5!important;color:#17212b}
.aci-gc-workspace .aci-projects{max-width:950px;padding:42px 22px;font-family:Arial,sans-serif}
.aci-gc-workspace .aci-projects>p,.aci-gc-workspace .aci-projects>a{color:#16293f}
.aci-gc-header{background:linear-gradient(120deg,#16293f,#2d6684);color:white;padding:28px;border-radius:16px;box-shadow:0 8px 24px #16293f26;border-bottom:6px solid #2d6684;margin-bottom:20px}
.aci-gc-header h1{font-size:2.4rem;margin:.2rem 0;color:white}
.aci-gc-header p{margin:.6rem 0 0}.aci-gc-header .eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.12em;margin:0}
.aci-gc-workspace .aci-project-panel{background:white;border:1px solid #dce3e8;border-top:4px solid #2d6684;box-shadow:0 7px 20px #16293f14;border-radius:14px;padding:22px;margin:20px 0}
.aci-gc-workspace .aci-project-panel h2{color:#16293f;margin-top:0}
.aci-gc-workspace .aci-project-card{background:#edf3f7;border-color:#b9cdd9}
.aci-gc-workspace .aci-projects button:not(.danger),.aci-gc-workspace .aci-project-connect{background:#2d6684;color:white!important;border-color:#2d6684}
@media(max-width:600px){.aci-gc-workspace .aci-projects{padding:20px 12px}.aci-gc-header{padding:22px}.aci-gc-header h1{font-size:2rem}.aci-gc-workspace .aci-project-panel{padding:16px}}

/* Saved candidates stay compact until the user opens their private editor. */
.aci-projects .aci-project-saved-card{padding:10px 12px;margin:8px 0}
.aci-project-card-summary{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
.aci-project-card-summary h3{font-size:1rem;line-height:1.3;margin:0;flex:1 1 200px}
.aci-project-card-summary .aci-project-status{font-size:.8rem;line-height:1.3;margin:0}
.aci-project-card-editor>summary{cursor:pointer;font-size:.8rem;font-weight:600;padding:6px 0 0;color:#234f70}
.aci-project-card-editor>summary:focus-visible{outline:3px solid #ffb547;outline-offset:3px}
.aci-project-note-indicator{font-weight:400}
.aci-project-card-editor[open]>summary{padding-bottom:8px;border-bottom:1px solid #b9cdd9}
.aci-project-card-editor small{display:block;margin-top:8px;font-size:.75rem}

.aci-personal-rating{font-size:.8rem;font-weight:700;color:#193d59;white-space:nowrap}

.aci-project-card-editor fieldset{border:1px solid #b9cdd9;border-radius:8px;margin:14px 0;padding:12px;min-width:0}
.aci-project-contact-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:end;border-bottom:1px solid #b9cdd9;padding-bottom:10px;margin-bottom:10px}
.aci-project-contact-row label{margin:0;font-size:.8rem}
.aci-project-work-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:4px 12px;max-height:200px;overflow:auto;margin-top:8px}
.aci-project-work-options label{display:flex;align-items:center;gap:6px;margin:3px 0;font-size:.85rem}
.aci-project-work-options input{width:auto;flex-shrink:0}
@media(max-width:650px){.aci-project-contact-row{grid-template-columns:1fr}.aci-project-contact-row button{justify-self:start}}

.aci-project-status-rating{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
.aci-project-status-rating>label{min-width:0}
.aci-project-status-rating select{min-width:0;width:100%}

.aci-project-contact-row .aci-remember-title{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:.75rem}.aci-remember-title input{width:auto}

/* Compact contact fields share one aligned row. */
.aci-project-contact-row{grid-template-columns:1fr 1fr .9fr 1.2fr auto;align-items:start;gap:8px}
.aci-project-contact-row>label,.aci-project-contact-row>div{min-width:0}
.aci-project-contact-row label{line-height:20px}
.aci-project-contact-row input:not([type="checkbox"]),.aci-project-contact-row select{display:block;height:36px;min-height:36px;min-width:0;width:100%;padding:6px 8px;font-size:13px;line-height:20px;margin:0;box-sizing:border-box}
.aci-project-contact-row>[data-remove-contact]{margin-top:20px;height:36px;min-height:36px;padding:6px 8px;font-size:12px}
.aci-project-contacts{overflow-x:auto}
@media(max-width:650px){.aci-project-contact-row{min-width:620px;grid-template-columns:1fr 1fr .9fr 1.2fr auto}}

.aci-project-record-dialog{padding:0;border:0;border-radius:18px;width:min(760px,calc(100% - 2rem));max-height:92vh;overflow:auto;background:white;color:#17212b;box-shadow:0 30px 100px #0006;font:16px/1.55 Arial,sans-serif}
.aci-project-record-dialog::backdrop{background:#08111ab8;backdrop-filter:blur(3px)}
.aci-project-record-dialog .dialog-close{position:absolute;right:1rem;top:1rem;border:0;border-radius:50%;width:38px;height:38px;background:#edf1f3;color:#17212b;font-size:1.5rem;cursor:pointer;z-index:2}
.aci-project-record-dialog .profile-stats strong,.aci-project-record-dialog .profile-stats span{display:block}
.aci-project-record-dialog .btn{display:inline-flex;padding:.8rem 1.15rem;border:1px solid #245b86;border-radius:7px;background:white;color:#173b59;font:700 14px Arial,sans-serif;cursor:pointer}
.aci-project-record-dialog a{color:#245b86}

.aci-project-card-editor .aci-project-subcontract-note{color:#ff2020;font-size:11px;font-weight:700;margin:0 0 4px 22px;line-height:1.3}.aci-project-card-editor .aci-project-subcontract-note[hidden]{display:none}

.aci-project-saved-card.aci-not-selected{background:#fce0e8!important;border:1px solid #c75b64!important}.aci-not-selected .aci-project-status{color:#b00020!important;font-weight:800!important}.aci-status-outcomes{font-size:13px;line-height:1.5}.aci-status-outcomes p{margin:8px 0}.aci-status-dialog{width:min(460px,92vw);max-height:85vh;overflow:auto;border:0;border-radius:14px;padding:20px;color:#173b59}.aci-status-dialog::backdrop{background:#102638b3}.aci-status-dialog label{display:block;margin:12px 0}.aci-status-dialog input,.aci-status-dialog textarea{display:block;width:100%;box-sizing:border-box;padding:8px}.aci-status-dialog button{padding:8px 14px;margin:4px;background:#245b86;color:white;border:0;border-radius:6px}.aci-status-dialog h2{font-size:20px}

/* Contact card status colors: selector follows the current form choice too. */
body .aci-projects article.aci-project-saved-card{background:#d8e9f6!important;border:1px solid #87aecb!important}
body .aci-projects article.aci-project-saved-card:is(.aci-selected,[data-project-status="selected"]){background:#cce5d5!important;border-color:#79a88a!important}
body .aci-projects article.aci-project-saved-card:is(.aci-not-selected,[data-project-status="not_selected"]){background:#fce0e8!important;border-color:#c75b64!important}
body .aci-projects article.aci-project-saved-card:has(select[name="status"] option:checked:not([value="selected"]):not([value="not_selected"])){background:#d8e9f6!important;border-color:#87aecb!important}
body .aci-projects article.aci-project-saved-card:has(select[name="status"] option[value="selected"]:checked){background:#cce5d5!important;border-color:#79a88a!important}
body .aci-projects article.aci-project-saved-card:has(select[name="status"] option[value="not_selected"]:checked){background:#fce0e8!important;border-color:#c75b64!important}
body .aci-projects .aci-project-saved-card .aci-project-status{color:#244e6c!important;font-weight:800}
body .aci-projects .aci-project-saved-card:is(.aci-selected,[data-project-status="selected"]) .aci-project-status{color:#245d38!important}
body .aci-projects .aci-project-saved-card:is(.aci-not-selected,[data-project-status="not_selected"]) .aci-project-status{color:#b00020!important}
body .aci-projects .aci-project-saved-card fieldset,body .aci-projects .aci-project-saved-card .aci-status-outcomes{background:rgba(255,255,255,.45)}

body .aci-projects .aci-project-saved-card:is(.aci-selected,[data-project-status="selected"]) .aci-project-status,
body .aci-projects .aci-project-saved-card:has(select[name="status"] option[value="selected"]:checked) .aci-project-status{color:#176b36!important;font-size:1rem!important;font-weight:800!important;padding:4px 9px;border:1px solid #70aa82;border-radius:6px;background:#e9f7ed}

.aci-project-card-summary .aci-project-status-block{display:flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:100%}.aci-project-card-summary .aci-project-status-date{font-size:.8rem;line-height:1.35;color:#244e6c}.aci-project-status-date[hidden]{display:none}

.aci-time-wheels{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.aci-time-wheels select{width:100%;height:110px;overflow-y:auto;border:1px solid #8da6bb;border-radius:10px;background:#edf4fa;color:#193d59;font:inherit;text-align:center}.aci-time-wheels option{padding:8px}.aci-status-dialog fieldset{border:1px solid #9cb3c5;border-radius:10px;margin:12px 0}.aci-meeting-city{display:grid;grid-template-columns:2fr 1fr;gap:10px}

.aci-project-card-summary .aci-project-public-rating{flex:0 0 132px;max-width:132px}.aci-project-public-rating .aci-score-gauge{width:100px;margin:0 auto 5px}.aci-project-public-rating small{font-size:.68rem;line-height:1.25;text-align:center}.aci-project-public-rating .aci-card-score-toggle{width:100%}.aci-project-public-rating .aci-score-gauge figcaption b{font-size:24px}.aci-project-public-rating .aci-score-gauge figcaption span{font-size:9px}

#profile-dialog .aci-record-add-project{position:fixed;z-index:100;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 13px;border:2px solid #ffb347;border-radius:999px;background:#173b59;color:#fff;font:700 14px/1.2 Arial,sans-serif;box-shadow:0 3px 14px #0004;cursor:pointer;max-width:calc(50vw - 22px)}
#profile-dialog .aci-record-add-project[hidden]{display:none!important}
#profile-dialog .aci-record-add-project:disabled{opacity:.7;cursor:wait}
#profile-dialog .aci-record-add-project:focus-visible{outline:3px solid #ffb347;outline-offset:3px}
#profile-dialog .aci-record-project-status{margin:0 52px 14px 0;padding:10px 14px;border-radius:10px;background:#e5eff7;color:#173b59!important;-webkit-text-fill-color:#173b59!important;font:700 14px/1.4 Arial,sans-serif}
#profile-dialog .aci-record-project-status.is-saved{background:#e1f3e5;color:#176139!important;-webkit-text-fill-color:#176139!important}
@media(max-width:480px){#profile-dialog .aci-record-add-project{font-size:12px;padding:9px 10px}#profile-dialog .aci-record-return-top{font-size:12px;padding:9px 10px;max-width:calc(50vw - 22px)}}
.aci-contractor-save-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap;width:100%;margin-top:12px}.aci-contractor-save-actions>.aci-project-add{flex:0 0 auto;margin:0}.aci-contractor-save-actions>.aci-card-selection{flex:0 1 auto;width:auto!important;margin:0!important;padding:0!important}.aci-project-dialog .aci-project-picker-option{display:flex;align-items:center;gap:12px;background:#e7eff5;border:1px solid #a0b8ca;border-radius:10px;padding:12px;margin:8px 0}.aci-project-dialog .aci-project-picker-option input{width:22px;height:22px;flex:0 0 22px;margin:0;accent-color:#245b86}.aci-project-saved-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:2147483647;display:flex;align-items:center;gap:16px;padding:14px 18px;border:2px solid #59b57a;border-radius:14px;background:#173b59;color:#fff;box-shadow:0 4px 24px #0005;max-width:90vw;font:600 16px/1.4 Arial,sans-serif}.aci-project-saved-toast button{background:transparent;color:white;border:0;font-size:26px;cursor:pointer}

/* Keep the new-project close control visible throughout the form. */
.aci-project-dialog[aria-label="New project"]>header{position:sticky;top:-22px;z-index:5;margin:-22px -22px 18px;padding:14px 18px;background:#edf3f8;border-bottom:1px solid #b7c8d5}
.aci-project-dialog[aria-label="New project"]>header>button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:1px solid #245b80;border-radius:12px;background:#173b59;color:#fff;font:400 30px/1 Arial,sans-serif;box-shadow:0 3px 12px #0003}

/* Keep Add to Project directly beneath Write a Review. */
.contractor-card .aci-card-actions>[data-review-company]{grid-column:2;grid-row:1}.contractor-card .aci-card-actions>.aci-project-under-review{grid-column:2;grid-row:2}
