:root {
  --navy: #10131b;
  --navy-2: #171b26;
  --blue: #1b49e8;
  --blue-dark: #1237b3;
  --blue-soft: #eaf0ff;
  --orange: #f2a33a;
  --green: #21a676;
  --red: #e2574c;
  --ink: #171923;
  --muted: #727787;
  --line: #e7e9ef;
  --surface: #fff;
  --canvas: #f5f6f8;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(17, 22, 39, .08);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: "DM Sans", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden, [hidden] { display: none !important; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font: 700 11px/1.2 "Manrope", sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: #94abff; }
.muted { color: var(--muted); }

/* Successful login transition */
.loading-screen { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; overflow: hidden; padding: 24px; color: #fff; background: var(--navy); transition: opacity .35s ease, visibility .35s ease; }
.loading-screen::before, .loading-screen::after { position: absolute; content: ""; border-radius: 50%; }
.loading-screen::before { width: 560px; height: 560px; right: -170px; bottom: -240px; border: 1px solid rgba(84,119,255,.28); box-shadow: 0 0 0 90px rgba(40,74,210,.055), 0 0 0 180px rgba(40,74,210,.035); }
.loading-screen::after { width: 340px; height: 340px; left: -190px; top: -170px; background: radial-gradient(circle, rgba(42,79,230,.22), transparent 68%); }
.loading-screen.leaving { opacity: 0; visibility: hidden; }
.loading-card { position: relative; z-index: 1; width: min(100%, 430px); text-align: center; animation: loading-rise .5s ease both; }
.loading-logo { width: 220px; height: 78px; margin: 0 auto 38px; overflow: hidden; }
.loading-logo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0) invert(1); }
.loading-mark { display: flex; height: 28px; align-items: end; justify-content: center; gap: 5px; margin-bottom: 25px; }
.loading-mark span { width: 5px; border-radius: 5px; background: #6685ff; animation: loading-bars .85s ease-in-out infinite alternate; }
.loading-mark span:nth-child(1) { height: 12px; }
.loading-mark span:nth-child(2) { height: 24px; animation-delay: .16s; }
.loading-mark span:nth-child(3) { height: 17px; animation-delay: .32s; }
.loading-card h1 { margin: 0 0 10px; font: 800 31px/1.2 "Manrope", sans-serif; letter-spacing: -.04em; }
.loading-card > p:not(.eyebrow) { margin: 0; color: #a7adbb; font-size: 13px; }
.loading-track { position: relative; width: 240px; height: 3px; margin: 30px auto 18px; overflow: hidden; border-radius: 9px; background: rgba(255,255,255,.1); }
.loading-track span { position: absolute; width: 45%; height: 100%; left: -45%; border-radius: inherit; background: linear-gradient(90deg, #3157ee, #7893ff); animation: loading-track 1.1s ease-in-out infinite; }
.loading-actions { display: flex; justify-content: center; gap: 10px; margin: 24px auto 18px; }
.loading-actions .primary-button, .loading-actions .secondary-button { min-width: 110px; }
.loading-card small { color: #5f6675; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
@keyframes loading-bars { to { height: 7px; opacity: .45; } }
@keyframes loading-track { 0% { left: -45%; } 100% { left: 100%; } }
@keyframes loading-rise { from { opacity: 0; transform: translateY(10px); } }

/* Authentication */
.auth-screen { display: grid; min-height: 100vh; grid-template-columns: minmax(460px, 1.12fr) minmax(440px, .88fr); }
.auth-brand { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 54px 7vw 48px; color: #fff; background: var(--navy); }
.auth-brand::before { position: absolute; width: 520px; height: 520px; content: ""; right: -170px; bottom: -140px; border: 1px solid rgba(75,110,255,.35); border-radius: 50%; box-shadow: 0 0 0 75px rgba(40,74,210,.07), 0 0 0 150px rgba(40,74,210,.045); }
.auth-brand::after { position: absolute; inset: 0; content: ""; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, transparent, #000); }
.auth-logo { position: relative; z-index: 1; width: 245px; height: 85px; object-fit: cover; object-position: center; filter: brightness(0) invert(1); }
.auth-copy { position: relative; z-index: 1; max-width: 650px; margin: auto 0; }
.auth-copy h1 { margin: 0 0 28px; font: 800 clamp(48px, 5vw, 78px)/1.02 "Manrope", sans-serif; letter-spacing: -.055em; }
.auth-copy h1 span { color: #5579ff; }
.auth-copy > p:last-child { max-width: 510px; margin: 0; color: #b8bdc9; font-size: 17px; line-height: 1.7; }
.auth-proof { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; color: #8f96a8; font-size: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #50d59a; box-shadow: 0 0 0 5px rgba(80,213,154,.12); }
.auth-panel { display: grid; place-items: center; padding: 48px; background: #fff; }
.auth-form { width: min(100%, 420px); }
.auth-form h2 { margin: 0 0 8px; font: 800 36px/1.2 "Manrope", sans-serif; letter-spacing: -.04em; }
.auth-form > .muted { margin: 0 0 34px; font-size: 14px; }
.auth-form > label { display: block; margin: 0 0 20px; color: #363a48; font-size: 13px; font-weight: 700; }
.auth-form input { width: 100%; height: 52px; margin-top: 8px; padding: 0 16px; border: 1px solid #dfe2e8; border-radius: 10px; outline: none; background: #fafbfc; transition: .2s; }
.auth-form input:focus, .form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,73,232,.1); background: #fff; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.password-toggle { position: absolute; right: 6px; bottom: 5px; border: 0; }
.form-row { display: flex; align-items: center; justify-content: space-between; margin: -2px 0 24px; font-size: 12px; }
.check { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.check input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
.link-button { padding: 0; color: var(--blue); border: 0; background: none; font-weight: 700; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; padding: 0 20px; color: #fff; border: 0; border-radius: 9px; background: var(--blue); font-weight: 700; box-shadow: 0 8px 18px rgba(27,73,232,.2); transition: .2s; }
.primary-button:hover { transform: translateY(-1px); background: var(--blue-dark); }
.primary-button.danger-button { background: #bd3e35; box-shadow: 0 8px 18px rgba(189,62,53,.2); }
.primary-button.danger-button:hover { background: #a8322a; }
.secondary-button.danger { color: #a8322a; border-color: #efc4c0; background: #fff7f6; }
.secondary-button.danger:hover { background: #ffecea; }
.auth-submit { width: 100%; height: 54px; justify-content: space-between; padding: 0 20px; }
.demo-access { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 24px 0 0; padding: 17px; border-radius: 12px; background: #f5f7fc; }
.demo-access > span { grid-column: 1/-1; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.demo-access button { padding: 9px; color: var(--blue); border: 1px solid #dae2ff; border-radius: 7px; background: #fff; font-size: 12px; font-weight: 700; }
.auth-help { margin: 25px 0 0; color: #9297a4; font-size: 12px; text-align: center; }
.mobile-brand { display: none; }

/* App shell */
.app-shell { display: flex; min-height: 100vh; background: var(--canvas); }
.sidebar { position: fixed; top: 0; left: 0; z-index: 20; display: flex; width: 244px; height: 100vh; height: 100dvh; flex-direction: column; overflow: hidden; padding: 22px 14px max(18px, env(safe-area-inset-bottom)); color: #bbc0cd; background: var(--navy); }
.sidebar-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sidebar-brand { display: block; height: 58px; margin: 0 8px; overflow: hidden; }
.sidebar-brand img { width: 178px; height: 62px; object-fit: cover; filter: brightness(0) invert(1); }
.sidebar-close { display: none; }
.main-nav { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 4px; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; }
.main-nav > * { flex-shrink: 0; }
.nav-label { margin: 16px 12px 8px; color: #606676; font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; width: 100%; gap: 12px; min-height: 44px; padding: 0 13px; color: #9298a7; border: 0; border-radius: 8px; background: none; font-size: 13px; font-weight: 600; text-align: left; transition: .16s; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item.active { color: #fff; background: var(--blue); box-shadow: 0 5px 17px rgba(27,73,232,.22); }
.nav-icon { display: grid; width: 20px; place-items: center; font-size: 16px; }
.sidebar-bottom { flex-shrink: 0; padding-top: 10px; border-top: 1px solid #292d38; }
.support-card { display: flex; align-items: center; gap: 10px; margin: 10px 4px 0; padding: 12px; border: 1px solid #292d38; border-radius: 10px; }
.support-card > span { display: grid; width: 25px; height: 25px; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #252b38; font-weight: 700; }
.support-card strong, .support-card small { display: block; }
.support-card strong { color: #d8dbe2; font-size: 11px; }
.support-card small { margin-top: 2px; color: #6f7584; font-size: 9px; }
.sign-out { color: #d8dbe2; }
.app-main { width: calc(100% - 244px); min-height: 100vh; margin-left: 244px; }
.topbar { display: flex; min-height: 88px; align-items: center; justify-content: space-between; padding: 16px 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(12px); }
.topbar h1 { margin: 0; font: 800 23px/1.2 "Manrope", sans-serif; letter-spacing: -.03em; }
.topbar-heading { min-width: 0; overflow-wrap: anywhere; }
.topbar .eyebrow { margin-bottom: 5px; color: #8d92a0; font-size: 9px; }
.topbar-actions { display: flex; flex-shrink: 0; align-items: center; gap: 20px; }
.icon-button { display: grid; width: 40px; height: 40px; place-items: center; color: #5f6472; border: 1px solid #e5e7ec; border-radius: 9px; background: #fff; }
.notification-button { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.notification-button i { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: var(--orange); }
.profile-menu { display: flex; align-items: center; gap: 10px; min-width: 190px; padding: 0; color: inherit; border: 0; background: none; text-align: left; }
.avatar { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; border-radius: 10px; background: var(--blue); font-size: 12px; font-weight: 800; }
.profile-menu strong, .profile-menu small { display: block; }
.profile-menu strong { font-size: 12px; }
.profile-menu small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.profile-menu > span { margin-left: auto; color: #989dab; }
.page-content { padding: 28px 34px 48px; }
.mobile-menu { display: none; }

/* Components */
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-intro h2 { margin: 0; font: 800 26px/1.25 "Manrope", sans-serif; letter-spacing: -.035em; }
.page-intro p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; }
.secondary-button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; color: #454a59; border: 1px solid #dfe2e8; border-radius: 9px; background: #fff; font-size: 12px; font-weight: 700; }
.secondary-button:hover { border-color: #bdc3d0; background: #fafafa; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { position: relative; overflow: hidden; min-height: 137px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat-card::after { position: absolute; width: 58px; height: 58px; content: ""; right: -19px; bottom: -19px; border: 12px solid var(--tone, #eaf0ff); border-radius: 50%; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 600; }
.stat-icon { display: grid; width: 31px; height: 31px; place-items: center; color: var(--stat-color, var(--blue)); border-radius: 8px; background: var(--tone, var(--blue-soft)); font-size: 14px; }
.stat-value { margin-top: 14px; font: 800 28px/1 "Manrope", sans-serif; letter-spacing: -.04em; }
.stat-meta { margin-top: 10px; color: #9398a4; font-size: 10px; }
.trend-up { color: var(--green); font-weight: 700; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .85fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 3px 14px rgba(20,24,38,.025); }
.card-header { display: flex; min-height: 66px; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #edf0f3; }
.card-header h3 { margin: 0; font: 800 14px "Manrope", sans-serif; }
.card-header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.text-button { padding: 6px; color: var(--blue); border: 0; background: none; font-size: 11px; font-weight: 700; }
.project-list { padding: 0 20px; }
.project-row { display: grid; grid-template-columns: minmax(190px, 1.4fr) minmax(130px, 1fr) 72px 92px; align-items: center; gap: 16px; min-height: 79px; border-bottom: 1px solid #edf0f3; }
.project-row:last-child { border-bottom: 0; }
.project-name { display: flex; align-items: center; gap: 11px; }
.project-mark { display: grid; width: 35px; height: 35px; place-items: center; flex: 0 0 auto; color: var(--blue); border-radius: 8px; background: var(--blue-soft); font-size: 15px; }
.project-name strong, .project-name small { display: block; }
.project-name strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.project-name small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 8px; background: #edf0f4; }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.progress-value { margin-top: 6px; color: var(--muted); font-size: 9px; }
.status-pill { display: inline-flex; width: max-content; align-items: center; gap: 5px; padding: 5px 8px; color: #1d8562; border-radius: 999px; background: #e6f6f0; font-size: 9px; font-weight: 700; }
.status-pill.warning { color: #a66a17; background: #fff3df; }
.status-pill.blue { color: #3455c5; background: #eaf0ff; }
.status-pill.gray { color: #6d7280; background: #f0f1f4; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.activity-list { padding: 5px 20px 10px; }
.activity-item { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 13px 0; }
.activity-icon { display: grid; width: 28px; height: 28px; place-items: center; color: var(--blue); border-radius: 50%; background: var(--blue-soft); font-size: 11px; }
.activity-item p { margin: 0; color: #464b58; font-size: 10px; line-height: 1.45; }
.activity-item p strong { color: #20232d; }
.activity-item time { display: block; margin-top: 4px; color: #a0a4ae; font-size: 9px; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.quick-action { display: flex; min-height: 76px; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; }
.quick-action:hover { border-color: #cbd5fb; box-shadow: var(--shadow); }
.quick-action span { display: grid; width: 34px; height: 34px; place-items: center; flex: 0 0 auto; color: var(--blue); border-radius: 8px; background: var(--blue-soft); }
.quick-action strong { display: block; font-size: 11px; }
.quick-action small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }

/* Data pages */
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.search-box { position: relative; flex: 1; max-width: 370px; }
.search-box input { width: 100%; height: 42px; padding: 0 15px 0 38px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #fff; }
.search-box span { position: absolute; top: 11px; left: 14px; color: #9297a4; }
.filter-bar select { height: 42px; padding: 0 34px 0 13px; color: #555a67; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 11px; }
.performance-filters { flex-wrap: wrap; }
.team-filters { flex-wrap: wrap; }
.team-headcount { grid-template-columns: repeat(3, 1fr); }
.performance-filters .search-box { min-width: 270px; }
.date-filter { display: flex; height: 42px; align-items: center; gap: 7px; padding: 0 8px 0 11px; color: #858a96; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.date-filter input { width: 116px; color: #555a67; border: 0; outline: none; background: transparent; font-size: 10px; }
.data-card { overflow: hidden; }
.inactive-team-card { margin-top: 20px; }
.table-section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 18px; border-bottom: 1px solid #edf0f3; }
.table-section-title strong, .table-section-title small { display: block; }
.table-section-title strong { font-size: 12px; }
.table-section-title small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 400; }
.table-section-title > span { display: grid; min-width: 30px; height: 30px; place-items: center; color: var(--blue); border-radius: 8px; background: var(--blue-soft); font-size: 11px; font-weight: 800; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 13px 18px; color: #8c919f; background: #fafbfc; font-size: 9px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 16px 18px; border-top: 1px solid #edf0f3; font-size: 11px; }
.data-table tbody tr:hover { background: #fbfcff; }
.person { display: flex; align-items: center; gap: 10px; }
.person-avatar { display: grid; width: 32px; height: 32px; place-items: center; color: #fff; border-radius: 9px; background: #67748d; font-size: 10px; font-weight: 800; }
.person-avatar.inactive-avatar { background: #9ba0aa; }
.person strong, .person small { display: block; }
.person small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.rating { color: #e89623; font-weight: 800; }
.row-actions { display: flex; gap: 5px; }
.mini-button { padding: 6px 9px; color: #5b6070; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 9px; font-weight: 700; }
.mini-button.danger { color: #b64b43; border-color: #f0d2cf; }
.mini-button.danger:hover { background: #fff0ee; }
.application-actions { align-items: center; white-space: nowrap; }
.contract-download-button { color: #176a50; border-color: #b9ddcf; background: #f2fbf7; }
.contract-download-button:hover { border-color: #7bc3a8; background: #e8f8f1; }
.project-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { overflow: hidden; }
.project-cover { position: relative; height: 86px; padding: 15px; color: #fff; background: linear-gradient(135deg, #171c2a, #24377c); }
.project-cover::after { position: absolute; width: 120px; height: 120px; content: ""; right: -20px; top: -65px; border: 18px solid rgba(91,123,255,.18); border-radius: 50%; }
.project-cover .status-pill { position: relative; z-index: 1; }
.project-body { padding: 17px; }
.project-body h3 { margin: 0; font: 800 14px "Manrope", sans-serif; }
.project-body > p { min-height: 32px; margin: 5px 0 14px; color: var(--muted); font-size: 10px; }
.project-details { display: flex; justify-content: space-between; margin: 13px 0; color: #777c89; font-size: 9px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { position: relative; min-height: 190px; padding: 21px; transition: .2s; }
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-icon { display: grid; width: 43px; height: 43px; place-items: center; margin-bottom: 22px; color: var(--blue); border-radius: 11px; background: var(--blue-soft); font-size: 19px; }
.feature-card h3 { margin: 0 0 7px; font: 800 14px "Manrope", sans-serif; }
.feature-card p { margin: 0 0 16px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.tool-usage { display: block; margin: 12px 0 44px; color: #8b909c; font-size: 9px; }
.feature-actions { position: absolute; right: 15px; bottom: 15px; left: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feature-actions .text-button { position: static; }
.feature-actions .mini-button:disabled { cursor: not-allowed; opacity: .45; }
.project-toolbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.project-toolbox > strong { width: 100%; margin-bottom: 3px; font-size: 12px; }
.project-toolbox > p { margin: 0; font-size: 10px; }
.previous-employees, .project-current-team, .employee-assignment-history, .employee-performance-history { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-heading strong, .section-heading small { display: block; }
.section-heading strong { font-size: 12px; }
.section-heading small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 400; }
.section-heading > span { display: grid; min-width: 26px; height: 26px; place-items: center; color: var(--blue); border-radius: 7px; background: var(--blue-soft); font-size: 10px; font-weight: 800; }
.previous-employee-row { display: grid; grid-template-columns: minmax(150px,1fr) auto auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #edf0f3; }
.previous-metrics { display: flex; gap: 12px; color: var(--muted); font-size: 8px; }
.previous-metrics span, .previous-metrics strong { display: block; text-align: center; }
.previous-metrics strong { margin-bottom: 3px; color: #333845; font-size: 10px; }
.previous-empty { margin: 0; padding: 14px 0; font-size: 10px; }
.project-team-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #edf0f3; }
.project-closed-note { margin-top: 16px; padding: 11px 13px; color: #5f6470; border: 1px solid #dfe2e8; border-radius: 8px; background: #f5f6f8; font-size: 10px; line-height: 1.5; }
.performance-history-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 0; border: 0; border-top: 1px solid #edf0f3; background: transparent; text-align: left; }
.performance-history-row:hover { color: var(--blue); }
.performance-history-row span:last-child { text-align: right; }
.performance-history-row strong, .performance-history-row small { display: block; }
.performance-history-row strong { font-size: 10px; }
.performance-history-row small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.assignment-history-row { display: grid; grid-template-columns: 58px minmax(150px,1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #edf0f3; }
.assignment-history-row strong, .assignment-history-row small { display: block; }
.assignment-history-row strong { font-size: 10px; }
.assignment-history-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.assignment-state { padding: 5px 7px; color: #737987; border-radius: 6px; background: #f0f1f3; font-size: 8px; font-weight: 800; text-align: center; text-transform: uppercase; }
.assignment-state.current { color: #147452; background: #e7f7f1; }
.readonly-badge { display: inline-flex; min-height: 36px; align-items: center; padding: 0 13px; color: #6d7280; border: 1px solid #dfe2e8; border-radius: 8px; background: #f5f6f8; font-size: 10px; font-weight: 700; }
.readonly-notice { margin-top: 20px; padding: 14px 16px; color: #626875; border: 1px solid #dfe2e8; border-radius: 10px; background: #f7f8fa; font-size: 11px; }
.company-property-notice { margin-top: 18px; padding: 20px; border-left: 3px solid var(--blue); }
.company-property-notice strong { font-size: 12px; }
.company-property-notice p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.policy-inline { padding: 12px; color: #415078; border-radius: 8px; background: var(--blue-soft); font-weight: 500; line-height: 1.55; }
.access-actions { flex-wrap: wrap; }
.tool-chip { position: relative; display: inline-flex; }
.tool-chip .secondary-button { padding-right: 32px; }
.chip-remove { position: absolute; top: 50%; right: 7px; width: 20px; height: 20px; padding: 0; color: #8a8f9b; border: 0; border-radius: 5px; background: #f1f2f5; transform: translateY(-50%); }
.chip-remove:hover { color: #b63b32; background: #ffe9e7; }
.project-summary { grid-template-columns: repeat(4, 1fr); }
.empty-state { padding: 60px 20px; color: var(--muted); text-align: center; }
.empty-state span { display: grid; width: 55px; height: 55px; margin: auto auto 14px; place-items: center; border-radius: 50%; background: var(--blue-soft); font-size: 22px; }

/* Website leads, mailing, and applicant tracking */
.integration-loading { display: grid; min-height: 280px; place-items: center; align-content: center; gap: 10px; padding: 35px; color: var(--muted); text-align: center; }
.integration-loading strong { color: #242833; font: 800 14px "Manrope", sans-serif; }
.integration-loading p { margin: 0; font-size: 11px; }
.integration-spinner { width: 34px; height: 34px; border: 3px solid #dfe6ff; border-top-color: var(--blue); border-radius: 50%; animation: integration-spin .8s linear infinite; }
.integration-error > span { display: grid; width: 42px; height: 42px; place-items: center; color: #b63b32; border-radius: 50%; background: #fff0ee; font-weight: 800; }
.integration-error .primary-button { margin-top: 8px; }
.integration-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 20px; }
.integration-section { margin-top: 20px; }
.integration-list { max-height: 585px; overflow: auto; padding: 0 20px; }
.integration-list-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid #edf0f3; }
.integration-list-item:last-child { border-bottom: 0; }
.integration-list-item strong, .integration-list-item small { display: block; }
.integration-list-item strong { font-size: 11px; }
.integration-list-item small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.count-label { color: var(--muted); font-size: 9px; white-space: nowrap; }
.campaign-body { min-height: 150px !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.compact-select { min-width: 126px; height: 34px; padding: 0 8px; color: #555a67; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 10px; }
.inline-link { color: var(--blue); text-decoration: none; }
.inline-link:hover { text-decoration: underline; }
.cell-note { max-width: 410px; max-height: 4.5em; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.5; white-space: pre-wrap; }
.applicant-invite { overflow: hidden; }
.inline-form { display: grid; grid-template-columns: minmax(240px, 1fr) auto; align-items: end; gap: 12px; padding: 20px; }
.inline-form .form-control { min-width: 270px; }
.applicant-invite-form { padding: 20px; }
.invite-form-grid { display: grid; grid-template-columns: minmax(280px, 1.35fr) minmax(230px, .65fr); gap: 16px; }
.subcontractor-invite-fields { display: grid; grid-column: 1/-1; grid-template-columns: minmax(230px, .65fr) minmax(280px, 1.35fr); gap: 16px; padding: 17px; border: 1px solid #dce5ff; border-radius: 10px; background: #f7f9ff; }
.invite-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; }
.invite-form-actions small { max-width: 480px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.optional-label { color: var(--muted); font-size: 8px; font-weight: 500; }
.applicant-type-tag { display: table; margin: 5px 0; padding: 3px 7px; color: #4c5b7e; border-radius: 99px; background: #eef2fb; font-size: 8px; font-weight: 700; }
.applicant-type-tag.contractor { color: #7a4b0b; background: #fff1d7; }
.compensation-note { display: inline-block; max-width: 240px; margin-top: 4px; line-height: 1.4; }
.integration-code { display: grid; gap: 6px; margin: 0 20px 20px; padding: 15px 17px; color: #155f48; border: 1px solid #bce5d6; border-radius: 9px; background: #eaf8f3; }
.integration-code strong { font-size: 11px; }
.integration-code span { font: 800 16px "Manrope", sans-serif; letter-spacing: .04em; }
.integration-code small { font-size: 9px; }
.integration-code.sensitive { margin: 14px 0 0; color: #8b342e; border-color: #efc6c2; background: #fff0ee; }
.application-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.application-field { min-width: 0; padding: 13px 15px; background: #fff; }
.application-field small, .application-field strong { display: block; }
.application-field small { margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.application-field strong { overflow-wrap: anywhere; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.agreement-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 16px; overflow: hidden; border: 1px solid #dce5ff; border-radius: 10px; background: #dce5ff; }
.agreement-summary > div { min-width: 0; padding: 13px 15px; background: #f7f9ff; }
.agreement-summary small, .agreement-summary strong { display: block; }
.agreement-summary small { margin-bottom: 5px; color: #68789b; font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.agreement-summary strong { color: #303a51; font-size: 10px; line-height: 1.5; }
.agreement-summary strong span { color: var(--muted); font-size: 8px; font-weight: 500; }
.sensitive-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px; border: 1px solid #f0d2cf; border-radius: 9px; background: #fff8f7; }
.sensitive-panel strong, .sensitive-panel small { display: block; }
.sensitive-panel strong { color: #8b342e; font-size: 11px; }
.sensitive-panel small { margin-top: 4px; color: #a66a65; font-size: 9px; }
@keyframes integration-spin { to { transform: rotate(360deg); } }

/* Modal */
.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(11,14,21,.62); backdrop-filter: blur(4px); animation: fade .15s ease; }
.modal { width: min(100%, 560px); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; border-radius: 16px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.25); animation: rise .2s ease; }
.modal-header { display: flex; align-items: start; justify-content: space-between; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font: 800 20px "Manrope", sans-serif; }
.modal-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.modal-close { width: 31px; height: 31px; color: #747987; border: 0; border-radius: 8px; background: #f1f2f5; }
.modal-form { padding: 21px 24px 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; color: #484c59; font-size: 11px; font-weight: 700; }
.field.full { grid-column: 1/-1; }
.form-control { width: 100%; min-height: 43px; margin-top: 7px; padding: 10px 12px; border: 1px solid #dde0e7; border-radius: 8px; outline: none; background: #fbfbfc; font-size: 12px; }
textarea.form-control { min-height: 88px; resize: vertical; }
.range-line { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.range-line input { flex: 1; accent-color: var(--blue); }
.range-output { display: grid; width: 42px; height: 34px; place-items: center; color: var(--blue); border-radius: 7px; background: var(--blue-soft); font-weight: 800; }
.member-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; max-height: 170px; margin-top: 7px; padding: 9px; overflow-y: auto; border: 1px solid #dde0e7; border-radius: 8px; background: #fbfbfc; }
.member-picker label { display: grid; grid-template-columns: 18px 1fr; align-items: center; padding: 8px; border-radius: 7px; background: #fff; font-size: 11px; font-weight: 600; }
.member-picker label:hover { background: var(--blue-soft); }
.member-picker input { grid-row: 1 / 3; accent-color: var(--blue); }
.member-picker small { color: var(--muted); font-size: 8px; font-weight: 400; }
.project-team-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.project-team-toolbar .search-box { flex: 1; }
.project-team-picker { max-height: 340px; }
.project-team-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 12px; color: #46506b; border-radius: 8px; background: var(--blue-soft); font-size: 9px; }
.project-team-summary strong { font-size: 11px; }
.project-team-help { margin: 12px 0 0; font-size: 9px; line-height: 1.55; }
.picker-empty { grid-column: 1/-1; padding: 14px; color: #717786; text-align: center; }
.picker-empty strong, .picker-empty small { display: block; }
.picker-empty strong { margin-bottom: 4px; color: #454a57; font-size: 11px; }
.picker-empty small { font-size: 9px; line-height: 1.45; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.form-error { margin-top: 16px; padding: 11px 13px; color: #a23b34; border: 1px solid #f0c7c3; border-radius: 8px; background: #fff1ef; font-size: 11px; line-height: 1.45; }
.primary-button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.toast-root { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 10px; }
.toast { display: flex; max-width: 360px; align-items: center; gap: 10px; padding: 13px 16px; color: #fff; border-radius: 10px; background: #171b24; box-shadow: 0 12px 35px rgba(0,0,0,.2); font-size: 11px; animation: rise .2s ease; }
.toast.success::before { content: "✓"; color: #6be0ad; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1050px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .project-cards, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .integration-layout { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { min-height: 100vh; padding: 28px; }
  .mobile-brand { display: block; width: 190px; height: 70px; margin-bottom: 35px; overflow: hidden; }
  .mobile-brand img { width: 100%; height: 100%; object-fit: cover; }
  body.mobile-nav-open { overflow: hidden; }
  .sidebar { width: min(300px, calc(100vw - 48px)); transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar-close { display: grid; width: 44px; height: 44px; flex-shrink: 0; place-items: center; border: 1px solid #353b48; border-radius: 8px; color: #fff; background: none; font-size: 25px; }
  .sidebar.open { transform: none; }
  .sidebar-scrim { position: fixed; z-index: 15; inset: 0; display: none; background: rgba(0,0,0,.4); }
  .sidebar-scrim.open { display: block; }
  .app-main { width: 100%; margin: 0; }
  .mobile-menu { display: grid; width: 44px; height: 44px; flex-shrink: 0; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 20px; }
  .topbar { position: sticky; top: 0; z-index: 10; justify-content: flex-start; gap: 10px; padding: 12px; }
  .topbar-actions { gap: 8px; margin-left: auto; }
  .profile-menu > div:nth-child(2), .profile-menu > span { display: none; }
  .profile-menu { min-width: 44px; min-height: 44px; justify-content: center; }
  .page-content { padding: 22px 18px 40px; }
  .content-grid { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: minmax(150px, 1fr) minmax(100px, .7fr) 70px; }
  .project-row > :last-child { display: none; }
}
@media (max-width: 580px) {
  .topbar h1 { font-size: 17px; }
  .stats-grid, .project-cards, .feature-grid, .quick-actions { grid-template-columns: 1fr; }
  .page-intro { align-items: stretch; flex-direction: column; }
  .page-intro .primary-button { width: 100%; }
  .page-intro .button-row { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .page-intro .button-row button { width: 100%; }
  .project-row { grid-template-columns: 1fr 82px; }
  .project-row > :nth-child(2) { display: none; }
  .data-card { overflow-x: auto; }
  .data-table { min-width: 650px; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .search-box { max-width: none; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .member-picker { grid-template-columns: 1fr; }
  .project-team-toolbar { align-items: stretch; flex-direction: column; }
  .project-team-toolbar .button-row { justify-content: flex-end; }
  .project-summary { grid-template-columns: 1fr; }
  .previous-employee-row { grid-template-columns: 1fr auto; }
  .previous-metrics { grid-column: 1/-1; justify-content: flex-start; }
  .inline-form, .application-detail-grid, .invite-form-grid, .subcontractor-invite-fields, .agreement-summary { grid-template-columns: 1fr; }
  .inline-form .form-control { min-width: 0; }
  .inline-form .primary-button { width: 100%; }
  .invite-form-actions { align-items: stretch; flex-direction: column; }
  .invite-form-actions .primary-button { width: 100%; }
}

@media (max-height: 500px) {
  .sidebar { padding-top: 10px; }
  .sidebar-header { margin-bottom: 4px; }
  .sidebar-bottom .support-card { display: none; }
}

/* Personal employee / subcontractor portal */
.worker-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:32px; margin-bottom:24px; color:white; background:linear-gradient(125deg,#172b50,#214ea2); border-radius:16px; }
.worker-hero h2 { margin:8px 0; font:800 24px Manrope,sans-serif; }
.worker-hero p,.worker-hero small { color:#d6e4fc; }
.worker-hours-total { min-width:150px; display:grid; text-align:center; }
.worker-hours-total strong { font:800 64px Manrope,sans-serif; line-height:1.1; }
.worker-hours-total span { margin-top:8px; color:#d6e4fc; }
.worker-days { display:grid; grid-template-columns:repeat(7,1fr); padding:24px 12px; }
.worker-days > div { display:grid; gap:9px; text-align:center; border-right:1px solid var(--line); }
.worker-days > div:last-child { border:0; }
.worker-days strong { font-size:24px; }.worker-days strong span { font-size:12px; color:var(--muted); }
.worker-days small { font-size:11px; color:var(--muted); }
.worker-days .worker-day-project { overflow:hidden; padding:0 5px; color:var(--blue); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.worker-shortcuts { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:24px; }
.worker-shortcuts button { display:grid; gap:10px; padding:24px; text-align:left; color:var(--ink); transition:transform .15s; }
.worker-shortcuts button:hover { transform:translateY(-3px); }.worker-shortcuts span { color:var(--blue); font-size:24px; }.worker-shortcuts small { color:var(--muted); }
.worker-stack { display:grid; gap:16px; margin-top:20px; }.worker-letter,.worker-document { display:flex; align-items:center; gap:20px; padding:24px; }
.worker-letter > div:nth-child(2),.worker-document > div:nth-child(2) { flex:1; min-width:0; }.worker-letter h3,.worker-document h3 { margin:5px 0; font-size:16px; }
.worker-letter p,.worker-document p { font-size:12px; line-height:1.6; color:var(--muted); overflow-wrap:anywhere; }.worker-letter small,.worker-document small { color:var(--muted); font-size:11px; }
.worker-letter-mark,.worker-document-icon { display:grid; place-items:center; width:52px; height:52px; flex-shrink:0; font-size:28px; color:#a46f17; background:#fff3d6; border-radius:14px; }
.worker-document-icon { color:var(--blue); background:var(--blue-soft); }.worker-note { padding:0 24px 22px; font-size:13px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.worker-profile { padding:24px; }.worker-profile .person { margin-bottom:24px; }.worker-profile h3 { margin:0; }.worker-profile p { margin:5px 0; color:var(--muted); }
.worker-application { margin-top:20px; }.worker-application summary { cursor:pointer; padding:15px 0; font-weight:600; font-size:13px; }.application-field strong { overflow-wrap:anywhere; }
.worker-rating-summary { display:flex; gap:24px; align-items:center; padding:28px; margin-bottom:24px; }.worker-rating-summary strong { font-size:36px; }.worker-rating-summary strong small { font-size:16px; }.worker-rating-summary p { color:var(--muted); font-size:12px; }.worker-rating-summary > small { margin-left:auto; color:var(--muted); line-height:1.9; }.worker-star { font-size:44px; color:#d29626; }
.worker-score-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; padding:24px; }.worker-score-grid > div { display:grid; gap:10px; }.worker-score-grid small { color:var(--muted); font-size:12px; }.worker-score-grid strong { font-size:22px; }.worker-score-grid strong span { font-size:12px; color:var(--muted); }
.worker-admin-tabs { display:flex; flex-wrap:wrap; padding:12px 24px 0; gap:6px; border-bottom:1px solid var(--line); }.worker-admin-tabs button { padding:12px; background:none; border:0; border-bottom:2px solid transparent; color:var(--muted); font-weight:600; }.worker-admin-tabs button.active { border-color:var(--blue); color:var(--blue); }
.worker-wide-modal { width:min(100%,880px); }.worker-hours-inputs { display:grid; grid-template-columns:repeat(7,1fr); gap:10px; margin:22px 0; }.worker-hours-inputs input { width:100%; min-width:0; padding:10px 6px; }.worker-hours-inputs small { font-size:10px; color:var(--muted); font-weight:400; }
.worker-file-preview { padding:18px; }.worker-file-preview iframe { width:100%; height:65vh; border:0; }.worker-file-preview a { text-decoration:none; }.worker-letter-body { white-space:pre-wrap; line-height:1.8; overflow-wrap:anywhere; font-size:14px; }.worker-type-label { display:block; margin-top:4px; font-size:10px; color:var(--muted); }
#worker-admin-content .field { margin-bottom:12px; }#worker-admin-content .worker-document,#worker-admin-content .worker-letter { padding:16px; }#worker-credentials input { width:100%; margin:12px 0; }.demo-access { flex-wrap:wrap; }.demo-access button { margin-bottom:5px; }
.bulk-hours-modal { width:min(1100px,100%); }
.bulk-import-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:14px; }
.bulk-import-summary > div { padding:14px; border:1px solid var(--line); border-radius:10px; background:#fafbfc; }
.bulk-import-summary strong,.bulk-import-summary span { display:block; }
.bulk-import-summary strong { font:800 19px Manrope,sans-serif; }
.bulk-import-summary span { margin-top:4px; color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.bulk-resolution-section,.bulk-result-section { margin-top:22px; }
.bulk-resolution-section > h3,.bulk-section-heading h3 { margin:0; font:800 14px Manrope,sans-serif; }
.bulk-resolution-section > p,.bulk-section-heading p { margin:4px 0 12px; color:var(--muted); font-size:10px; }
.bulk-match { display:grid; grid-template-columns:minmax(190px,.8fr) minmax(260px,1.2fr); gap:14px; align-items:center; margin-top:9px; padding:13px; border:1px solid #eadcbf; border-radius:10px; background:#fffbf2; }
.bulk-match.new { border-color:#e0e3e9; background:#f8f9fb; }
.bulk-match > div:first-child > strong { display:block; margin-top:7px; font-size:11px; }
.bulk-match > div:last-child { display:grid; gap:8px; }
.bulk-match .check,.bulk-duplicate .check { font-size:10px; }
.bulk-new-name { margin:0; color:#4e5462; font-size:11px; }
.bulk-alert { display:grid; gap:4px; margin-top:16px; padding:13px 15px; color:#8a5815; border:1px solid #efd59f; border-radius:10px; background:#fff7e7; font-size:10px; }
.bulk-section-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; }
.bulk-section-heading > strong { color:var(--muted); font-size:10px; }
.bulk-results { display:grid; gap:12px; margin-top:12px; }
.bulk-hours-result { overflow:hidden; box-shadow:none; }
.bulk-hours-result .card-header > strong { color:var(--blue); font:800 16px Manrope,sans-serif; }
.bulk-days-preview { display:grid; grid-template-columns:repeat(7,1fr); }
.bulk-days-preview > div { min-width:0; padding:11px 9px; border-right:1px solid #edf0f3; text-align:center; }
.bulk-days-preview > div:last-child { border-right:0; }
.bulk-days-preview small,.bulk-days-preview strong { display:block; }
.bulk-days-preview small { overflow:hidden; color:var(--muted); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.bulk-days-preview strong { margin-top:5px; font-size:11px; }
.bulk-duplicate { display:grid; gap:5px; padding:11px 14px; color:#8a5815; border-top:1px solid #efd59f; background:#fff7e7; font-size:10px; }
@media(max-width:700px) {
  .worker-hero { padding:24px; align-items:start; }.worker-hero h2 { font-size:19px; }.worker-hours-total { min-width:90px; }.worker-hours-total strong { font-size:44px; }
  .worker-shortcuts { grid-template-columns:1fr; }.worker-letter,.worker-document { flex-wrap:wrap; gap:14px; }.worker-letter .row-actions,.worker-document .row-actions { width:100%; }
  .worker-days { grid-template-columns:repeat(4,1fr); row-gap:24px; }.worker-days > div:nth-child(4) { border:0; }.worker-hours-inputs { grid-template-columns:repeat(2,1fr); }
  .worker-rating-summary { flex-wrap:wrap; gap:16px; }.worker-rating-summary > small { margin-left:0; width:100%; }.worker-score-grid { grid-template-columns:repeat(2,1fr); }
  .worker-admin-tabs { padding:8px 12px 0; gap:0; }.worker-admin-tabs button { padding:10px 8px; font-size:11px; }.modal-actions { flex-wrap:wrap; }
  .bulk-import-summary { grid-template-columns:repeat(2,1fr); }
  .bulk-match { grid-template-columns:1fr; }
  .bulk-days-preview { grid-template-columns:repeat(2,1fr); }
  .bulk-days-preview > div { border-bottom:1px solid #edf0f3; }
}
