/* Shared interface: clear tasks, consistent names, original trade colours. */
:root{--bg:#f5f7fb;--surface:#fff;--ink:#203248;--navy:#10283e;--muted:#52657b;--border:#e1e8f1;--primary:#245ece;--primary-dark:#1d4faf;--soft:#edf3ff;--placeholder:#65758a;--sidebar:226px}
body,.app{background:var(--bg)}
.workspace{max-width:1240px;padding:30px 36px 40px}
.workspace-sidebar{background:#fff;padding:30px 14px 22px}
.workspace-brand{padding-bottom:34px}
.navigation{gap:5px}
.nav-button{font-size:14px;min-height:46px;border-radius:10px}
.nav-button.active{background:#edf3ff;color:#204fa8}
.nav-button i{font-size:17px}
.sidebar-foot{border-top:1px solid var(--border);padding-top:18px}
.app-header{min-height:76px;padding-inline:36px;background:#fff}
#notifications-shortcut{background:#f3f6fa;border:0;border-radius:11px}
.menu-button{background:#fff;border-color:var(--border);border-radius:10px;color:#375472}
.section-heading{margin-bottom:24px;gap:14px;align-items:center}
#section-title{font-size:28px;line-height:1.3;letter-spacing:-.7px;font-weight:650}
#section-intro{font-size:14px;margin-top:6px;max-width:52ch}
.section-heading .actions:empty{display:none}
.primary,.outline,.danger{min-height:46px;font-size:14px;border-radius:10px;padding:10px 16px}
.primary{background:#245ece;border-color:#245ece}
.outline{background:#fff;border-color:#95a9c2;color:#2c5283}
.primary:hover{background:#1d4faf;border-color:#1d4faf}
.text-button{color:#2456ae;min-height:42px}
.home-layout{display:flex;flex-direction:column;gap:28px}
.home-main{display:grid;width:100%;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:20px;align-items:start}
.home-hero{display:grid;grid-template-columns:minmax(0,1fr) 30%;padding:0;gap:0;background:#edf3ff;color:var(--ink);border:1px solid #dae5f7;border-radius:16px;box-shadow:none;overflow:hidden;min-height:204px}
.home-hero::after{display:none}
.hero-copy{padding:24px;align-self:center;min-width:0}
.hero-label{font-size:10px;letter-spacing:1px;color:#49658a;margin-bottom:10px}
.hero-copy h2{color:var(--navy);font-size:24px;font-weight:650;letter-spacing:-.6px;line-height:1.25}
.hero-description{color:#49617e;font-size:13px;line-height:1.6;margin-top:9px;max-width:36ch}
.hero-button{margin-top:18px;min-width:0;max-width:100%;width:fit-content;min-height:46px;padding:11px 16px;background:#245ece;border:1px solid #245ece;color:#fff;border-radius:10px;font-size:14px;font-weight:600}
.hero-button:hover{background:#1d4faf;color:#fff;border-color:#1d4faf}
.hero-visual{min-width:0;align-self:stretch;background:url('scenes/planning.webp') 70% center/cover no-repeat}
.home-hero[data-scene=site] .hero-visual{background-image:url('scenes/site.webp')}
.home-hero[data-scene=craft] .hero-visual{background-image:url('scenes/craft.webp');background-position:75% center}
.home-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.home-shortcuts>.action-link{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:122px;padding:18px;border:1px solid var(--border);border-radius:14px;background:#fff}
.home-shortcuts>.action-link>i:first-child{background:#edf3ff;color:#2456ae;width:36px;height:36px;border-radius:10px;font-size:18px}
.home-shortcuts>.action-link>i:last-child{display:none}
.home-shortcuts>.action-link strong{font-size:14px;line-height:1.4}
.home-shortcuts>.action-link small{font-size:12px;line-height:1.5;margin-top:4px;color:#52657b}
.home-shortcuts>.action-link:only-child{grid-column:1/-1;min-height:100px;flex-direction:row;align-items:center}
.home-shortcuts>.action-link:hover{background:#f9fbff;border-color:#b4c8e3}
.home-main>.home-section-title,.home-main>.action-link{grid-column:1/-1;margin:0}
.home-main>.action-link{background:#fff9eb;border-color:#eadab7}
.home-side{width:100%}
.home-section-title{margin:0 0 14px}
.home-section-title h2{font-size:18px;line-height:1.4;font-weight:600}
#dashboard[data-view=home] .home-side>.home-section-title:first-child{min-height:0}
#dashboard[data-view=home] #section-title{font-size:24px}
#dashboard[data-view=home] #section-intro{font-size:13px}
.home-records{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.home-records>.empty{grid-column:1/-1;min-height:190px}
.work-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 10px;padding:20px;border-radius:14px;border-color:var(--border);background:#fff}
.work-row-title{grid-column:1/-1;gap:12px;align-items:center}
.work-row-title h3{font-size:16px;line-height:1.4;font-weight:600;letter-spacing:-.2px}
.work-row-title .record-subtitle{font-size:13px;line-height:1.5;margin-top:3px}
.work-row-date{grid-column:1;align-items:flex-start;gap:8px;font-size:12px;line-height:1.5;color:#52657b;min-width:0}
.work-row-date>i{margin-top:3px;color:#627c9b}
.work-row-date small{display:block;font-size:12px;line-height:1.5;margin-top:3px}
.work-row>.badge{grid-column:2;align-self:start;justify-self:end;max-width:110px;text-align:center}
.work-row-footer{grid-column:1/-1;border-top:1px solid #eaf0f7;padding-top:12px;gap:10px;margin-top:0}
.work-row-footer button{min-height:42px;border-radius:8px;border:1px solid #c6d7ed;color:#2456ae;background:#f5f9ff;font-size:13px;padding:8px 12px;font-weight:600}
.compact-rate{font-size:21px;letter-spacing:-.5px;font-weight:650;color:var(--navy)}
.compact-rate small{font-size:12px}
.trade-symbol{width:44px;height:44px;flex-basis:44px;border-radius:12px;box-shadow:none!important;text-shadow:none}
.trade-symbol svg{width:26px;height:26px}
.card{padding:24px;border-color:var(--border);border-radius:14px;box-shadow:none}
.card-top h3{font-size:17px;font-weight:600}
.contact-card>.record-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
.contact-card .contact-email{grid-column:1/-1}
.contact-card .record-subtitle{margin-top:6px}
.payment-card>.record-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
.payment-card>.record-facts>div:last-child{grid-column:1/-1}
.payment-card .record-facts{max-width:560px}
#dashboard[data-view=payables] .record-list{align-items:start}
.grid,.record-list{gap:16px}
.badge{padding:4px 8px;font-size:11px;line-height:1.5;border-radius:6px}
.record-facts{gap:20px 16px}
.record-facts dt{font-size:12px}
.record-facts dd{font-size:14px}
.search-row{padding:18px;background:#fff;border:1px solid var(--border);border-radius:12px;margin-bottom:22px}
.search-row input,.search-row select,.field input,.field select,.field textarea{border-radius:9px;border-color:#8295ae;box-shadow:none;background:#fff}
/* Reserve space for dropdown arrows instead of letting native arrows hug the edge. */
.field select:not([multiple]):not([size]),.search-row select:not([multiple]):not([size]),.welcome .field select:not([multiple]):not([size]),#dialog-content .field select:not([multiple]):not([size]){appearance:none;-webkit-appearance:none;padding-right:44px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2352677f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px}
.search-field>span{font-size:13px;color:#3f5672}
.subnav{background:#edf2f9;border-color:#dce5f1;padding:4px;margin-bottom:24px}
.subnav button{min-height:44px;font-size:13px}
.empty{min-height:230px;border-color:var(--border);border-radius:14px;padding:30px 24px}
.empty>i{background:#edf3ff;color:#416eab}
.empty h3{font-size:18px;font-weight:600}
.empty p{font-size:14px;max-width:42ch}
.form-layout{gap:24px;grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr)}
.form-card>h2,.form-card>h3{font-size:18px;font-weight:600}
.account-menu{margin:26px 0 0;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.account-menu .action-link{min-height:70px;padding:16px;border-radius:12px}
.account-menu .action-link small{display:none}
.action-link>i:last-child{display:grid;place-items:center;width:20px;height:20px}
.profile-editor{padding:0;overflow:hidden}
.form-layout:has(>.profile-editor){grid-template-columns:1fr;max-width:800px}
#dashboard[data-view=profile] .account-menu{max-width:800px}
.profile-editor>summary{display:flex;align-items:center;gap:14px;list-style:none;cursor:pointer;padding:22px 24px;min-height:88px}
.profile-editor>summary::-webkit-details-marker{display:none}
.profile-editor>summary>i{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:11px;background:#edf3ff;color:#2456ae}
.profile-editor>summary>span:nth-child(2){min-width:0;flex:1}
.profile-editor summary strong{display:block;font-size:17px;font-weight:600}
.profile-editor summary small{display:block;margin-top:4px;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.profile-editor .edit-label{color:#2456ae;font-size:13px;font-weight:600;flex-shrink:0}
.profile-editor[open]>summary{border-bottom:1px solid var(--border)}
.profile-editor>form{margin:0;padding:4px 24px 24px}
.profile-editor>form>.primary.full{width:100%}
.staff-tasks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:28px;align-items:start}
.staff-task{padding:0}
.staff-task>summary{padding:20px 24px;min-height:70px;cursor:pointer;color:var(--navy);font-size:16px;font-weight:600;line-height:1.5}
.staff-task[open]>summary{border-bottom:1px solid var(--border)}
.staff-task>summary{border-radius:13px}
.staff-task[open]>summary,.profile-editor>summary{border-radius:13px 13px 0 0}
.profile-editor>summary:focus-visible,.staff-task>summary:focus-visible{outline-offset:-4px}
.staff-task>.intro{margin:20px 24px 0}
.staff-task>form{padding:0 24px 24px}
.staff-assignments{grid-template-columns:repeat(2,minmax(0,1fr))}
#dashboard[data-view=notifications] .record-list{gap:0;border:1px solid var(--border);border-radius:14px;overflow:hidden;background:#fff}
#dashboard[data-view=notifications] .record-list:empty{display:none}
.notification-card{padding:20px 24px;border:0;border-bottom:1px solid var(--border);border-radius:0;background:#fff}
.notification-card:last-child{border-bottom:0}
.notification-card.is-unread{border-left:3px solid #5381d5;padding-left:21px}
.notification-time{font-size:12px;line-height:1.6;color:var(--muted)}
.notification-card .card-top{align-items:center;gap:10px;margin-bottom:9px}
.notification-card .note{margin:0;line-height:1.7;font-size:14px;color:var(--ink)}
.working-time-form>.row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.working-time-form>.row .field{margin:0}
.working-time-form>.row{margin-bottom:22px}
#dashboard[data-view=home] .home-shortcuts:has(>.action-link:nth-child(3))>.action-link:last-child{grid-column:1/-1;flex-direction:row;align-items:center;min-height:72px}
.app-footer{padding:16px 36px;border-color:var(--border)}
.detail-layout>.card{border-radius:14px}
.request-progress-card h2{font-size:18px;font-weight:600}
.request-progress-card .intro{font-size:14px;line-height:1.65;margin:10px 0 22px}
.request-timeline{list-style:none;padding:0;margin:0;display:grid;gap:0}
.request-timeline li{position:relative;min-height:48px;padding:0 0 20px 28px;font-size:13px;color:#607188}
.request-timeline li::before{content:'';position:absolute;left:0;top:5px;width:12px;height:12px;background:#fff;border:2px solid #93a6bf;border-radius:50%;z-index:1}
.request-timeline li:not(:last-child)::after{content:'';position:absolute;left:5px;top:17px;width:2px;bottom:0;background:#dde6f3}
.request-timeline li.complete{color:#244e90}
.request-timeline li.complete::before{background:#245ece;border-color:#245ece}
.request-timeline li[aria-current=step]{font-weight:650}
.booking-summary{margin-top:10px;padding:12px 14px;border-radius:9px;background:#edf3ff;color:#244e90;font-size:14px;font-weight:600}
.loading-state{display:flex;align-items:center;justify-content:center;min-height:140px;color:#52657b;font-size:14px}
button[aria-busy=true]{cursor:wait;opacity:.75}
button[aria-busy=true]::after{content:'';display:inline-block;width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;margin-left:8px;vertical-align:middle;animation:button-spin .8s linear infinite}
@keyframes button-spin{to{transform:rotate(360deg)}}
#dialog{border-radius:16px;border-color:var(--border)}
#dialog::backdrop,#navigation-dialog::backdrop{backdrop-filter:none;background:rgba(16,40,62,.42)}
#dialog .dialog-head h2{font-size:19px;font-weight:600}
#dialog-content .field input,#dialog-content .field select,#dialog-content .field textarea{border-color:#8295ae;border-radius:9px}
#dialog-progress{background:#f3f7ff}
.wizard-heading{font-size:23px;font-weight:600}
.review-group{border-radius:12px}.review-group-head{background:#f5f8fd}
.welcome-story{background:#10283e;isolation:isolate}
.welcome-story::before{z-index:-1;background:linear-gradient(180deg,#10283e 0%,#10283ef5 30%,#10283e99 68%,#10283e55 100%),url('scenes/site.webp') 65% bottom/cover no-repeat}
.story-copy{margin-top:clamp(80px,17vh,170px)}
.story-copy h1{font-size:clamp(36px,3.3vw,48px);font-weight:600}
.welcome-main{background:#f8faff}
.welcome .auth-card h2{font-size:30px;font-weight:600}
.welcome .primary{box-shadow:none}
.welcome .field input,.welcome .field select{border-color:#8295ae}
.welcome .account-option{box-shadow:none;border-radius:12px}
@media(max-width:1100px){
 .workspace{padding:28px}.app-header{padding-inline:28px}.home-main{grid-template-columns:minmax(0,1.3fr) minmax(220px,1fr);gap:18px}
 .home-records{grid-template-columns:repeat(2,minmax(0,1fr))}.form-layout{grid-template-columns:1fr}
 .staff-tasks{grid-template-columns:1fr}
 .home-shortcuts{grid-template-columns:1fr}.home-shortcuts>.action-link{min-height:86px;flex-direction:row;align-items:center;padding:16px}
}
@media(max-width:900px){
 .app-header{min-height:74px;padding:12px 24px;background:#fff;backdrop-filter:none}
 .workspace{padding:24px}.mobile-navigation{padding:9px 12px calc(9px + env(safe-area-inset-bottom,0px));box-shadow:0 -2px 12px #10283e04}
 .mobile-tab.active{color:#245ece}.mobile-tab.active i{background:#eaf1ff;box-shadow:0 0 0 7px #eaf1ff}
 .app-footer{padding-inline:24px}
}
@media(max-width:700px){
 .welcome-story{background:#f8faff;color:var(--ink);padding:30px 28px 20px}
 .welcome-story::before{display:none}.welcome-main{padding:0 28px 16px}
 .auth-shell{margin:20px auto auto;padding:24px 0 32px}.welcome .auth-card h2{font-size:28px}
}
@media(max-width:650px){
 .app-header{padding:12px 20px}.workspace{padding:22px 20px 28px}.mobile-brand .crewford-logo{width:142px}
 #section-title{font-size:26px}.section-heading{margin-bottom:20px;gap:14px}#section-intro{font-size:13px;line-height:1.6}
 .section-heading .actions{margin-top:0}.section-heading .actions>.primary{width:100%}
 #dashboard[data-view=home] #section-title{font-size:23px}#dashboard[data-view=home] .section-heading{margin-bottom:20px}
 .home-main{display:flex;flex-direction:column;gap:14px}.home-main>*{width:100%}.home-layout{gap:24px}
 .home-hero{min-height:0;grid-template-columns:minmax(0,1fr) 28%;border-radius:14px}
 .hero-copy{padding:20px 18px}.hero-label{font-size:9px;letter-spacing:.9px;margin-bottom:8px}.hero-copy h2{font-size:22px;line-height:1.25}
 .hero-description{font-size:12px;margin-top:8px}.hero-button{font-size:13px;min-height:46px;margin-top:16px;padding:10px 14px}
 .home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .home-shortcuts>.action-link{min-height:100px;flex-direction:column;align-items:flex-start;padding:16px;gap:10px}
 .home-shortcuts>.action-link>i:first-child{width:34px;height:34px;font-size:17px}
 .home-shortcuts>.action-link strong{font-size:13px}.home-shortcuts>.action-link small{display:none}
 .home-shortcuts>.action-link:only-child{min-height:72px;flex-direction:row;align-items:center}
 .home-records{grid-template-columns:1fr;gap:12px}.home-section-title{margin-bottom:12px}.home-section-title h2{font-size:17px}
 .work-row{padding:18px;gap:12px 8px;border-radius:14px}.work-row-title h3{font-size:16px}.work-row-title .record-subtitle{font-size:12px}
 .work-row-footer{padding-top:10px}.compact-rate{font-size:21px}.work-row-footer button{font-size:12px;min-height:42px}
 .card{padding:20px}.record-facts{gap:18px 12px}.card-top h3{font-size:16px}.search-row{padding:16px;gap:12px}
 .account-menu{grid-template-columns:1fr;gap:10px;margin-top:22px}.form-layout{gap:18px}.detail-layout>.card{padding:20px}
 .profile-editor,.staff-task{padding:0}
 .profile-editor>summary{padding:20px}.profile-editor>form{padding:0 20px 20px}.profile-editor summary strong{font-size:16px}
 .staff-task>summary{padding:18px 20px;font-size:15px}.staff-task>form{padding:0 20px 20px}.staff-task>.intro{margin:18px 20px 0}.staff-assignments{grid-template-columns:1fr}
 .notification-card{padding:18px 20px}.notification-card.is-unread{padding-left:17px}
 .app-footer{padding-inline:20px}.empty{min-height:220px}#dialog{border-radius:18px 18px 0 0}#dialog.request-dialog{border-radius:0}
}
@media(max-width:360px){
 .workspace{padding-inline:16px}.app-header{padding-inline:16px}.mobile-brand .crewford-logo{width:130px}
 .hero-copy{padding:18px 16px}.hero-copy h2{font-size:21px}.hero-button{font-size:12px;padding-inline:12px}
 .work-row{padding:16px}.work-row>.badge{max-width:84px}.compact-rate{font-size:20px}
 .welcome-story,.welcome-main{padding-inline:22px}
}
@media(prefers-reduced-motion:reduce){button[aria-busy=true]::after{animation:none}.app-header{backdrop-filter:none}}
@media(hover:hover){
 .record-extra>summary:hover,.staff-task>summary:hover,.profile-editor>summary:hover{background:#f4f7fc}
}
@media(forced-colors:active){
 .field select:not([multiple]):not([size]),.search-row select:not([multiple]):not([size]),.welcome .field select:not([multiple]):not([size]),#dialog-content .field select:not([multiple]):not([size]){appearance:auto;-webkit-appearance:auto;background-image:none}
}

@media(min-width:1101px){
 #dashboard[data-view=payables] #content>.record-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .form-layout:has(>.profile-editor)>.form-card:not(.profile-editor)>.record-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Quiet list controls; the active state is also exposed to assistive technology. */
.list-switch{display:flex;flex-wrap:wrap;gap:6px;padding:5px;background:#edf2f9;border:1px solid #dce5f1;border-radius:12px;margin-bottom:20px;width:fit-content;max-width:100%}
.list-choice{min-height:44px;min-width:0;padding:9px 14px;border-radius:8px;background:transparent;color:#425b79;font-size:13px;line-height:1.5;font-weight:500}
.list-choice[aria-pressed=true]{background:#fff;color:#204fa8;font-weight:600;box-shadow:0 1px 3px #10283e0a}
.list-choice:hover{background:#f8faff}
.status-guidance{font-size:13px;line-height:1.65;color:var(--muted);margin:12px 0 0;max-width:58ch}
.decision-note{margin-top:16px}
.search-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;grid-column:3}
@media(max-width:650px){.search-row .search-field:nth-child(2),.search-actions{grid-column:1/-1}}
@media(max-width:650px){
 .list-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:4px}.list-switch[data-choices="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}.list-choice{padding-inline:8px}
}
