:root {
  --ink: #1d2b27;
  --muted: #82908a;
  --green: #18372f;
  --green-2: #254d40;
  --lime: #c9ed79;
  --paper: #f5f6f2;
  --line: #e7eae4;
  --white: #fff;
  --orange: #d88348;
  --red: #ce6356;
  --shadow: 0 12px 35px rgba(31, 48, 41, .07);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.45 'DM Sans', sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 256px; flex: 0 0 256px; background: var(--green); color: #eef5ef; padding: 26px 14px 16px; display: flex; flex-direction: column; min-height: 100vh; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; text-decoration: none; color: inherit; }
.brand-mark { width: 37px; height: 37px; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; font: 800 24px Manrope,sans-serif; display: grid; place-items: center; position: relative; letter-spacing: -3px; padding-right: 3px; }
.brand-mark span { width: 6px; height: 6px; background: var(--lime); border-radius: 50%; position: absolute; right: 6px; top: 7px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font: 800 17px Manrope,sans-serif; letter-spacing: 2px; }
.brand-copy strong span { color: var(--lime); }
.brand-copy small { color: #9caf9f; font-size: 8px; letter-spacing: 1.2px; margin-top: 5px; }
.workspace-label { color: #779184; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; padding: 34px 12px 10px; }
.navigation { display: grid; gap: 3px; }
.nav-link { position: relative; border: 0; color: #b4c5ba; background: transparent; text-align: left; width: 100%; padding: 10px 12px; border-radius: 8px; display: flex; align-items: center; gap: 12px; transition: .16s ease; font-weight: 500; }
.nav-link:hover { background: rgba(255,255,255,.07); color: white; }
.nav-link.active { background: #2b4c40; color: #fff; font-weight: 700; }
.nav-link.active::before { content: ''; position: absolute; left: -14px; width: 3px; height: 22px; border-radius: 0 4px 4px 0; background: var(--lime); }
.nav-icon { width: 18px; text-align: center; font-size: 16px; opacity: .9; }
.nav-label { flex: 1; }
.nav-count { background: #d38a54; color: #fff; font-size: 10px; font-weight: 700; border-radius: 10px; padding: 2px 7px; }
.sidebar-bottom { margin-top: auto; }
.help-card { margin: 16px 3px 13px; border: 1px solid #486356; border-radius: 11px; padding: 13px; position: relative; background: rgba(255,255,255,.035); }
.help-spark { color: var(--lime); font-size: 17px; position: absolute; right: 12px; top: 9px; }
.help-card strong { font-size: 11px; }
.help-card p { color: #a8b9af; font-size: 10px; margin: 5px 0 10px; line-height: 1.5; }
.help-card button { border: 0; padding: 0; color: var(--lime); background: none; font-size: 10px; font-weight: 700; }
.help-card button span { margin-left: 6px; }
.profile { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 10px 7px 2px; border: 0; border-top: 1px solid #3e594d; background: none; color: #eaf0eb; }
.avatar { width: 31px; height: 31px; display: inline-grid; place-items: center; border-radius: 50%; background: #e6edda; color: #385246; font-size: 10px; font-weight: 700; flex: none; }
.avatar-dark { background: #3e5b4d; color: #d4edb4; }
.profile-copy, .top-user > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; line-height: 1.4; }
.profile-copy strong, .top-user strong { font-size: 11px; }
.profile-copy small, .top-user small { font-size: 10px; color: #9bb0a4; }
.profile-more { color: #91a89a; letter-spacing: 2px; }
.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 69px; flex: none; padding: 0 38px; background: rgba(255,255,255,.89); border-bottom: 1px solid #eceee9; display: flex; justify-content: space-between; align-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #9aa49e; font-size: 11px; letter-spacing: .2px; }
.breadcrumb strong { color: #34423b; font-size: 12px; }
.crumb-slash { color: #c4cbc5; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.global-search { width: 245px; height: 34px; border: 1px solid #e8ebe6; background: #fafbf9; display: flex; align-items: center; border-radius: 7px; padding: 0 8px; gap: 8px; color: #909b95; }
.global-search > span { font-size: 18px; line-height: 1; }
.global-search input { background: transparent; border: 0; outline: 0; min-width: 0; flex: 1; font-size: 10px; color: var(--ink); }
.global-search kbd { color: #a8b0ab; font: 9px 'DM Sans'; border: 1px solid #e7eae6; padding: 2px 4px; border-radius: 3px; white-space: nowrap; }
.icon-button { position: relative; width: 31px; height: 31px; border-radius: 8px; border: 1px solid #eceeea; background: #fff; color: #53635a; font-size: 17px; }
.notification-button i { display: none; position: absolute; width: 6px; height: 6px; background: #d8814e; border: 1px solid #fff; border-radius: 50%; top: 5px; right: 5px; }
.notification-button.has-alert i { display: block; }
.topbar-divider { height: 28px; width: 1px; background: #eaede8; }
.top-user { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; color: var(--ink); text-align: left; padding: 0; }
.top-user small { color: #8c9991; }
.chevron { color: #859189; font-size: 15px; }
.mobile-menu { display: none; }
.page-content { flex: 1; width: 100%; max-width: 1600px; margin: 0 auto; padding: 30px 39px 25px; }
.footer { border-top: 1px solid #e9ece6; padding: 13px 39px 16px; color: #94a099; font-size: 9px; display: flex; justify-content: space-between; }
.footer-dot { color: #b8d982; font-size: 7px; margin: 0 5px; vertical-align: 1px; }
.footer-separator { margin: 0 5px; color: #c2c9c3; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { font-family: Manrope,'DM Sans',sans-serif; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.eyebrow { color: #9ba69f; font-size: 9px; letter-spacing: 1.2px; font-weight: 700; text-transform: uppercase; margin-bottom: 7px; }
.page-heading h1 { font-size: 25px; line-height: 1.2; letter-spacing: -.8px; margin: 0; }
.page-heading p { color: #84918a; margin: 7px 0 0; font-size: 11px; }
.heading-actions { display: flex; gap: 8px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; padding: 9px 13px; font-weight: 700; font-size: 10px; transition: .15s ease; text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 4px 10px rgba(24,55,47,.13); }
.btn-primary:hover { background: #254e41; transform: translateY(-1px); }
.btn-secondary { border-color: #e3e8e1; background: #fff; color: #58675f; }
.btn-secondary:hover { border-color: #cbd4cb; background: #fbfcfa; }
.btn-lime { background: var(--lime); color: #2f472c; }
.btn-small { padding: 6px 9px; font-size: 9px; }
.btn-quiet { border: 0; color: #617369; background: transparent; padding-left: 6px; padding-right: 6px; }
.btn-danger { color: #a84d43; border-color: #efd6d1; background: #fff; }
.dashboard-welcome { background: var(--green); border-radius: 12px; color: #f3f6f1; padding: 21px 24px; margin-bottom: 17px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; position: relative; }
.dashboard-welcome::after { content: ''; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(215,239,186,.13); border-radius: 50%; right: 110px; top: -160px; box-shadow: 0 0 0 24px rgba(215,239,186,.025), 0 0 0 49px rgba(215,239,186,.025); }
.welcome-copy { position: relative; z-index: 1; }
.welcome-copy .eyebrow { color: #a2bd9d; margin-bottom: 7px; }
.welcome-copy h1 { font-size: 21px; margin: 0; letter-spacing: -.4px; }
.welcome-copy p { color: #b4c7ba; font-size: 10px; margin: 6px 0 0; }
.welcome-right { text-align: right; z-index: 1; color: #a8bdb0; font-size: 10px; }
.welcome-right strong { display: block; color: #eef5ef; font: 700 16px Manrope; margin-bottom: 4px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 17px; }
.stat-card { border: 1px solid #eaede8; background: #fff; border-radius: 10px; padding: 14px 16px; min-height: 94px; }
.stat-top { color: #84928a; display: flex; justify-content: space-between; align-items: center; font-size: 10px; }
.stat-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: #f0f4e9; color: #5e8059; font-size: 14px; }
.stat-card.warning .stat-icon { background: #fcf1e7; color: #cc864a; }
.stat-value { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.stat-value strong { font: 700 23px Manrope; letter-spacing: -.8px; }
.stat-value span { color: #92a097; font-size: 9px; }
.stat-trend { color: #709463; font-size: 9px; font-weight: 700; }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 13px; align-items: start; }
.panel { background: #fff; border: 1px solid #e9ece7; border-radius: 10px; overflow: hidden; }
.panel-head { min-height: 52px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #eff1ed; }
.panel-head h2 { font-size: 12px; margin: 0; letter-spacing: -.2px; }
.panel-head p { color: #97a19b; font-size: 9px; margin: 4px 0 0; }
.text-link { border: 0; background: transparent; color: #65845d; font-size: 9px; font-weight: 700; }
.job-preview-list { padding: 0 16px; }
.job-preview { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f2ef; }
.job-preview:last-child { border-bottom: 0; }
.date-box { width: 34px; height: 38px; border: 1px solid #e9eee5; background: #f7f9f4; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.date-box strong { font: 700 14px Manrope; }
.date-box span { text-transform: uppercase; color: #84918a; font-size: 8px; }
.job-preview-copy strong { font-size: 10px; display: block; }
.job-preview-copy small { color: #98a29c; font-size: 9px; display: block; margin-top: 3px; }
.job-preview-side { text-align: right; }
.job-preview-side small { color: #a0aaa3; display: block; font-size: 8px; margin-top: 5px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 4px 8px; background: #eff5e8; color: #61844c; font-weight: 700; font-size: 8px; white-space: nowrap; }
.status-pill::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status-pill.orange { color: #bd7b3d; background: #fbf1e6; }
.status-pill.red { color: #bb5a4b; background: #fbefed; }
.status-pill.gray { color: #7b8981; background: #f0f2ef; }
.status-pill.blue { color: #5b7e91; background: #edf4f6; }
.agenda-list { padding: 4px 16px 9px; }
.agenda-row { display: grid; grid-template-columns: 43px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f0f2ef; }
.agenda-row:last-child { border: 0; }
.agenda-time { font: 700 9px Manrope; color: #87938c; padding-top: 2px; }
.agenda-item { border-left: 2px solid #c4de9b; padding-left: 9px; }
.agenda-item strong { display: block; font-size: 10px; }
.agenda-item span { display: block; color: #98a39c; font-size: 9px; margin-top: 3px; }
.alert-list { display: grid; gap: 8px; padding: 12px 15px; }
.alert-row { display: flex; align-items: center; gap: 9px; background: #fcfaf6; border: 1px solid #f2eee6; border-radius: 7px; padding: 9px; }
.alert-symbol { width: 25px; height: 25px; flex: none; display: grid; place-items: center; border-radius: 7px; background: #faeee2; color: #c27b3f; }
.alert-row strong { display: block; font-size: 9px; }
.alert-row span { display: block; color: #98a29c; font-size: 8px; margin-top: 2px; }
.empty-state { padding: 28px 15px; text-align: center; color: #99a49d; font-size: 10px; }
.empty-state strong { color: #52635a; display: block; margin-bottom: 4px; font-size: 11px; }
.toolbar { display: flex; gap: 8px; align-items: center; margin: -6px 0 13px; flex-wrap: wrap; }
.field-search { position: relative; min-width: 210px; flex: 1; max-width: 340px; }
.field-search span { position: absolute; left: 10px; top: 7px; color: #97a29b; }
.field-search input, .select-control { width: 100%; height: 33px; border: 1px solid #e3e8e1; border-radius: 6px; background: #fff; padding: 0 10px; color: #46564d; outline: none; font-size: 10px; }
.field-search input { padding-left: 29px; }
.field-search input:focus, .select-control:focus, .form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: #9fbe83; box-shadow: 0 0 0 3px rgba(184,216,144,.17); }
.select-control { width: auto; min-width: 130px; }
.table-wrap { background: #fff; border: 1px solid #e9ece7; border-radius: 9px; overflow: auto; }
table { border-collapse: collapse; width: 100%; min-width: 650px; text-align: left; }
th { color: #96a19a; text-transform: uppercase; letter-spacing: .55px; font-size: 8px; background: #fbfcfa; font-weight: 700; padding: 11px 13px; border-bottom: 1px solid #edf0eb; white-space: nowrap; }
td { color: #46554d; font-size: 10px; padding: 12px 13px; border-bottom: 1px solid #f0f2ef; vertical-align: middle; }
.compact td { padding-top: 7px; padding-bottom: 7px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdfb; }
.table-primary { color: #293b32; font-weight: 700; }
.table-sub { display: block; color: #99a39d; font-size: 8px; margin-top: 3px; font-weight: 400; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.link-button { background: transparent; border: 0; color: #64835b; font-size: 9px; font-weight: 700; padding: 4px; }
.link-button:hover { text-decoration: underline; }
.section-label { margin: 18px 0 9px; font: 700 10px Manrope; color: #596a60; }
.category-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.category-chip { border: 1px solid #e8ece5; border-radius: 20px; padding: 4px 7px; color: #718078; font-size: 8px; }
.stock-cell { min-width: 120px; }
.stock-meter { width: 78px; height: 4px; display: block; border-radius: 4px; background: #edf0eb; margin-top: 5px; overflow: hidden; }
.stock-meter i { height: 100%; background: #9cc87c; display: block; border-radius: inherit; }
.stock-meter.low i { background: #dc9560; }
.employee-cell { display: flex; align-items: center; gap: 8px; }
.employee-cell .avatar { width: 26px; height: 26px; font-size: 8px; }
.employee-name strong { display: block; font-size: 10px; }
.employee-name small { display: block; color: #99a39d; font-size: 8px; margin-top: 2px; }
.summary-strip { display: flex; gap: 9px; margin-bottom: 13px; flex-wrap: wrap; }
.summary-chip { border: 1px solid #e9ece7; background: #fff; padding: 9px 12px; border-radius: 7px; color: #7f8d84; font-size: 9px; }
.summary-chip strong { color: #2e4237; font: 700 13px Manrope; margin-right: 6px; }
.planner-layout { display: grid; grid-template-columns: 1fr 260px; gap: 13px; align-items: start; }
.calendar-panel { border: 1px solid #e8ece6; border-radius: 9px; overflow: hidden; background: #fff; }
.calendar-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; border-bottom: 1px solid #edf0eb; }
.calendar-head h2 { margin: 0; font-size: 12px; }
.calendar-head span { color: #99a39d; font-size: 9px; }
.planner-days { display: grid; grid-template-columns: repeat(7,minmax(85px,1fr)); overflow-x: auto; }
.planner-day { min-height: 150px; border-right: 1px solid #edf0eb; padding: 9px 7px; background: #fff; }
.planner-day:nth-child(7n) { border-right: 0; }
.planner-day.today { background: #fbfcf7; }
.planner-day-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; color: #93a097; font-size: 8px; text-transform: uppercase; }
.planner-day-head strong { color: #425348; font: 700 12px Manrope; }
.planner-day.today .planner-day-head strong { background: var(--green); color: white; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.calendar-event { display: block; padding: 5px 6px; margin-bottom: 5px; border-radius: 4px; background: #eff5e8; border-left: 2px solid #97bd6f; color: #4b6143; font-size: 8px; line-height: 1.35; }
.calendar-event small { display: block; color: #86977d; font-size: 7px; margin-top: 2px; }
.side-panel { border: 1px solid #e8ece6; border-radius: 9px; overflow: hidden; background: #fff; }
.side-panel .panel-head { padding: 12px; }
.side-panel .panel-head h2 { font-size: 11px; }
.side-list { padding: 5px 12px 12px; }
.side-list-item { padding: 10px 0; border-bottom: 1px solid #f0f2ef; }
.side-list-item:last-child { border: 0; }
.side-list-item strong { display: block; font-size: 9px; }
.side-list-item span { display: block; color: #95a098; font-size: 8px; margin-top: 3px; }
.week-strip { display: flex; gap: 7px; align-items: center; color: #718078; font-size: 9px; }
.week-strip strong { font: 700 12px Manrope; color: #46564d; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: grid; gap: 5px; }
.form-field.full { grid-column: 1/-1; }
.form-field label { color: #66766d; font-size: 9px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #e0e6df; border-radius: 6px; min-height: 35px; outline: 0; padding: 8px 10px; background: #fff; color: #304138; font-size: 10px; }
.form-field textarea { min-height: 75px; resize: vertical; }
.form-hint { color: #98a39c; font-size: 8px; }
.check-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.check-option { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e6ebe4; border-radius: 5px; padding: 6px 8px; color: #596a60; font-size: 9px; }
.check-option input { accent-color: var(--green-2); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(22,36,30,.45); z-index: 20; display: grid; place-items: center; padding: 16px; animation: fade-in .12s ease; }
.modal { width: min(560px,100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 12px; box-shadow: 0 22px 70px rgba(18,32,25,.28); }
.modal-head { position: sticky; top: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 20px 13px; background: #fff; border-bottom: 1px solid #eff1ed; z-index: 1; }
.modal-head h2 { font-size: 15px; margin: 0; }
.modal-head p { margin: 4px 0 0; color: #93a097; font-size: 9px; }
.modal-close { border: 0; background: #f3f5f1; color: #718078; width: 25px; height: 25px; border-radius: 6px; font-size: 15px; }
.modal-body { padding: 16px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 17px; border-top: 1px solid #eff1ed; }
.detail-hero { padding: 14px; border-radius: 8px; background: #f5f8f1; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.detail-hero h3 { font-size: 14px; margin: 0 0 5px; }
.detail-hero p { color: #8c9a90; margin: 0; font-size: 9px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 15px 2px; }
.detail-item label { display: block; text-transform: uppercase; color: #9aa49d; letter-spacing: .5px; font-size: 8px; margin-bottom: 4px; }
.detail-item strong { display: block; font-size: 10px; font-weight: 600; }
.modal-section-title { padding: 12px 0 7px; border-top: 1px solid #eff1ed; color: #617168; font: 700 10px Manrope; }
.activity-item { border-left: 2px solid #cbdfb0; padding: 2px 0 11px 10px; color: #7e8c83; font-size: 9px; }
.activity-item strong { color: #45564c; }
.notice-box { display: flex; gap: 9px; background: #f4f7ee; border: 1px solid #e7eedc; padding: 11px; border-radius: 7px; color: #76856b; font-size: 9px; margin-bottom: 13px; }
.notice-box strong { color: #4b6243; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings-card { background: #fff; border: 1px solid #e8ece6; border-radius: 9px; padding: 15px; }
.settings-card h2 { font-size: 11px; margin: 0 0 6px; }
.settings-card p { color: #8e9b93; font-size: 9px; margin: 0 0 12px; }
.settings-card-title { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; margin-bottom:10px; }
.settings-card-title h2 { margin-bottom:5px; }
.settings-card-title p { margin:0; }
.role-list { display: grid; gap: 6px; }
.role-row { display: flex; justify-content: space-between; align-items: center; padding: 8px; background: #f8faf7; border-radius: 6px; font-size: 9px; }
.role-row span { color: #718077; }
.settings-toggle { display: flex; width:100%; align-items: center; justify-content: space-between; gap:10px; padding: 9px 0; border:0; border-top: 1px solid #eff1ed; font-size: 9px; color: #526359; background:transparent; text-align:left; }
.settings-toggle:first-of-type { border-top: 0; }
.settings-toggle > span:first-child { display:grid; gap:3px; }
.settings-toggle strong { font-size:9px; font-weight:600; }
.settings-toggle small { font-size:8px; color:#97a29b; }
.settings-label { color:#66766d; font-size:9px; font-weight:700; margin-bottom:5px; }
.account-list { display:grid; gap:4px; max-height:340px; overflow:auto; }
.account-row { display:flex; align-items:center; gap:8px; padding:7px 6px; border-bottom:1px solid #eff1ed; min-width:0; }
.account-row:last-child { border-bottom:0; }
.account-row .avatar { width:25px; height:25px; font-size:8px; }
.account-copy { display:flex; flex:1; flex-direction:column; min-width:0; }
.account-copy strong { color:#425349; font-size:9px; }
.account-copy small { color:#929e96; font-size:8px; margin-top:2px; }
.role-access-row { border-radius:5px; background:#f8faf7; padding:8px; }
.permission-list { display:grid; gap:2px; max-height:440px; overflow:auto; }
.permission-row { display:grid; grid-template-columns:minmax(130px,1fr) 92px 92px; gap:8px; align-items:center; border-bottom:1px solid #eff1ed; padding:8px 3px; font-size:9px; }
.permission-row strong { color:#526359; font-size:9px; }
.permission-row label { display:flex; gap:5px; align-items:center; color:#76857b; font-size:8px; }
.permission-row input, .account-row input { accent-color:#315644; }
.btn:disabled, .link-button:disabled, .text-link:disabled { opacity:.4; cursor:not-allowed; text-decoration:none; }
.large-text .nav-link, .large-text td, .large-text .btn, .large-text .link-button, .large-text .text-link, .large-text .panel-head h2, .large-text .page-heading p, .large-text .settings-card p, .large-text .settings-toggle strong, .large-text .status-pill { font-size:1.12em; }
.large-text th, .large-text .settings-toggle small, .large-text .table-sub { font-size:1.08em; }
.high-contrast { --ink:#111b16; --muted:#53645a; --line:#b9c3ba; }
.high-contrast .panel, .high-contrast .settings-card, .high-contrast .table-wrap, .high-contrast .stat-card, .high-contrast .calendar-panel, .high-contrast .side-panel { border-color:#9ba99e; }
.high-contrast td, .high-contrast .settings-card p, .high-contrast .table-sub { color:#425248; }
.high-contrast button:focus-visible, .high-contrast input:focus-visible, .high-contrast select:focus-visible, .high-contrast textarea:focus-visible { outline:2px solid #1f513b; outline-offset:2px; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
.switch { width: 27px; height: 15px; display: inline-flex; align-items: center; padding: 2px; border-radius: 20px; background: #bbd18e; }
.switch i { width: 11px; height: 11px; background: white; border-radius: 50%; margin-left: auto; }
.switch.off { background: #dfe4de; }.switch.off i { margin-left: 0; }
.toast-region { position: fixed; bottom: 24px; right: 23px; z-index: 40; display: grid; gap: 7px; }
.toast { display: flex; gap: 8px; align-items: center; color: white; background: #244b3e; box-shadow: 0 8px 24px rgba(21,46,36,.2); padding: 10px 13px; border-radius: 7px; font-size: 10px; animation: slide-in .2s ease; }
.toast span { color: var(--lime); font-weight: 700; }
.empty-large { padding: 48px 15px; text-align: center; }
.empty-icon { width: 42px; height: 42px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 12px; background: #eef4e6; color: #718d57; font-size: 19px; }
.empty-large h2 { font-size: 14px; margin: 0 0 5px; }
.empty-large p { font-size: 10px; color: #93a097; margin: 0 auto 13px; max-width: 330px; }
.attendance-history { overflow: hidden; }
.attendance-history > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 15px; cursor:pointer; list-style:none; }
.attendance-history > summary::-webkit-details-marker { display:none; }
.attendance-history > summary span { display:grid; gap:3px; }
.attendance-history > summary strong { color:var(--ink); font-size:11px; }
.attendance-history > summary small { color:var(--muted); font-size:9px; }
.attendance-history > summary b { display:grid; place-items:center; width:24px; height:24px; border-radius:6px; background:#f0f4ed; color:#45654f; font-size:15px; }
.attendance-history[open] > summary { border-bottom:1px solid var(--line); }
.attendance-history[open] > summary b { transform:rotate(45deg); }
.attendance-history .table-wrap { border:0; border-radius:0; max-height:560px; overflow:auto; }
.attendance-history .table-wrap thead { position:sticky; top:0; z-index:1; }
@media (max-width:720px) { .attendance-history .table-wrap { max-height:440px; } }
@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes slide-in { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: translateY(0) } }
@media (min-width: 1500px) { .page-content { padding-left: 54px; padding-right: 54px; }.topbar { padding-left: 54px; padding-right: 54px; }.footer { padding-left: 54px; padding-right: 54px; } }
@media (max-width: 1050px) { .sidebar { width: 220px; flex-basis: 220px; }.page-content { padding: 24px; }.topbar { padding: 0 24px; }.footer { padding-left: 24px; padding-right: 24px; }.global-search { width: 200px; }.stats-grid { grid-template-columns: repeat(2,1fr); }.planner-layout { grid-template-columns: 1fr; }.side-panel { display: grid; grid-template-columns: 1fr 2fr; }.side-panel .panel-head { border-bottom: 0; border-right: 1px solid #edf0eb; align-items: flex-start; flex-direction: column; }.side-list { display: flex; gap: 15px; overflow: auto; }.side-list-item { min-width: 115px; } }
@media (max-width: 720px) { .sidebar { position: fixed; z-index: 15; inset: 0 auto 0 0; width: 270px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 8px 0 30px rgba(20,40,30,.12); }.sidebar.open { transform: translateX(0); }.mobile-menu { display: inline-grid; place-items: center; width: 31px; height: 31px; border: 1px solid #e6eae4; border-radius: 7px; background: white; color: #42544a; }.topbar { height: 58px; padding: 0 15px; gap: 10px; }.breadcrumb { margin-right: auto; font-size: 9px; }.topbar-actions { gap: 8px; }.global-search { width: 34px; height: 32px; overflow: hidden; border: 0; background: transparent; padding: 0; justify-content: center; }.global-search input, .global-search kbd { display: none; }.global-search > span { font-size: 20px; }.topbar-divider, .top-user > span:nth-child(2), .top-user .chevron { display: none; }.top-user .avatar { width: 29px; height: 29px; }.page-content { padding: 21px 14px; }.footer { padding: 12px 14px; font-size: 8px; gap: 10px; }.footer span:last-child { max-width: 45%; text-align: right; }.page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 17px; gap: 12px; }.page-heading h1 { font-size: 22px; }.dashboard-welcome { padding: 17px; }.welcome-copy h1 { font-size: 17px; }.welcome-right { display: none; }.stats-grid { gap: 8px; }.stat-card { padding: 11px; min-height: 85px; }.stat-value strong { font-size: 20px; }.dashboard-grid { grid-template-columns: 1fr; }.panel-head { padding-left: 12px; padding-right: 12px; }.job-preview-list,.agenda-list { padding-left: 12px; padding-right: 12px; }.settings-grid { grid-template-columns: 1fr; }.side-panel { display: block; }.side-panel .panel-head { border-right: 0; border-bottom: 1px solid #edf0eb; }.side-list { display: block; }.side-list-item { min-width: 0; }.form-grid { grid-template-columns: 1fr; }.form-field.full { grid-column: auto; }.modal-body { padding: 14px; }.modal-head { padding: 15px 14px 11px; }.modal-foot { padding: 11px 14px 14px; }.detail-grid { gap: 10px; }.toolbar { margin-top: 0; }.field-search { max-width: none; min-width: 100%; }.select-control { flex: 1; }.summary-chip { flex: 1; min-width: 125px; } }
.table-wrap { max-width:100%; overscroll-behavior-inline:contain; }
@media (min-width:721px) and (max-width:1050px) {
  .page-content { min-width:0; padding:22px 18px; }
  .table-wrap table { min-width:760px; }
  .planner-days { grid-template-columns:repeat(7,minmax(90px,1fr)); }
  .page-heading { gap:14px; }
}
@media (max-width:720px) {
  .page-content, .main-area { min-width:0; }
  .table-wrap { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .table-wrap table { min-width:690px; }
  .attendance-history .table-wrap table { min-width:820px; }
  .toolbar { display:flex; flex-wrap:wrap; gap:7px; }
  .toolbar > .btn { flex:1 1 auto; }
  .summary-strip { gap:7px; }
  .summary-chip { flex:1 1 145px; min-width:0; }
  .panel-head { flex-wrap:wrap; gap:8px; }
  .panel-head .text-link { white-space:normal; }
  .row-actions { flex-wrap:wrap; gap:7px; }
  .btn, .link-button, .text-link, .nav-link { min-height:34px; }
  .form-field input, .form-field select, .form-field textarea { min-height:40px; }
  .check-grid { grid-template-columns:1fr; }
  .planner-days { grid-template-columns:repeat(7,minmax(100px,1fr)); }
  .calendar-panel { overflow-x:auto; }
  .calendar-panel > * { min-width:720px; }
  .modal { width:min(100%,560px); max-height:calc(100dvh - 16px); overflow:auto; }
}
.app-shell.logged-out { display:none; }
.login-root:empty { display:none; }
.login-root:not(:empty) { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:20px; background:radial-gradient(circle at 18% 12%,#315d49 0,#18372f 48%,#112b24 100%); }
.login-card { width:min(100%,420px); padding:30px; border:1px solid rgba(255,255,255,.14); border-radius:16px; background:#fff; box-shadow:0 24px 70px rgba(5,20,14,.3); }
.login-brand { display:flex; align-items:center; gap:12px; color:#263d31; font-size:19px; font-weight:800; letter-spacing:.04em; }
.login-brand .brand-mark { margin:0; }
.login-brand-copy { display:grid; gap:2px; }
.login-brand-copy small { color:#87938a; font-size:9px; font-weight:600; letter-spacing:.08em; }
.login-card h1 { margin:27px 0 5px; color:#243a30; font-size:22px; }
.login-card > p { margin:0 0 19px; color:#829087; font-size:11px; line-height:1.5; }
.login-card .form-field { margin:0 0 13px; }
.login-card .form-field label { display:block; margin-bottom:5px; color:#607065; font-size:10px; font-weight:700; }
.login-card .form-field input,.login-card .form-field select { width:100%; min-height:42px; padding:9px 11px; border:1px solid #dfe6df; border-radius:7px; background:white; color:#314239; font:inherit; font-size:12px; }
.login-card .btn { width:100%; min-height:42px; margin-top:5px; }
.login-error { margin:0 0 12px; padding:9px 10px; border-radius:7px; background:#fff1ef; color:#a8473d; font-size:10px; line-height:1.45; }
.login-note { margin-top:14px; color:#89958d; font-size:9px; line-height:1.5; }
.logout-button { padding:7px 10px; border:1px solid #e4e9e4; border-radius:7px; background:#fff; color:#58685d; font-size:9px; cursor:pointer; }
@media (max-width:720px) {
  .login-card { padding:23px 19px; }
  .logout-button { width:30px; height:30px; overflow:hidden; padding:0; font-size:0; }
  .logout-button::after { content:'↪'; font-size:16px; }
}

/* Touch-first layout for iPad portrait and phones */
.sidebar-backdrop,.mobile-navigation { display:none; }
@media (max-width:900px) {
  .sidebar { position:fixed; inset:0 auto 0 0; z-index:40; width:min(304px,86vw); height:100dvh; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-top:max(20px,env(safe-area-inset-top)); padding-bottom:max(16px,env(safe-area-inset-bottom)); transform:translateX(-105%); transition:transform .2s ease; box-shadow:10px 0 36px rgba(15,34,25,.2); }
  .sidebar.open { transform:translateX(0); }
  .sidebar-backdrop.visible { display:block; position:fixed; inset:0; z-index:35; border:0; background:rgba(13,27,21,.42); touch-action:manipulation; }
  .mobile-menu { display:inline-grid; place-items:center; flex:none; width:42px; height:42px; border:1px solid #e3e9e2; border-radius:10px; background:#fff; color:#344c40; font-size:19px; }
  .topbar { min-width:0; padding-inline:clamp(16px,3vw,30px); gap:14px; }
  .page-content { min-width:0; padding:clamp(20px,3vw,32px); }
  .footer { padding-inline:clamp(16px,3vw,30px); }
  .dashboard-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .page-heading { align-items:flex-start; }
  .page-heading h1 { font-size:clamp(23px,3vw,28px); }
  .panel-head h2 { font-size:14px; }
  .panel-head p,.page-heading p,.settings-card p { font-size:11px; }
  .nav-link { min-height:42px; }
  .settings-card { padding:18px; }
  .settings-card h2 { font-size:13px; }
  .settings-toggle { min-height:44px; }
  .settings-toggle strong { font-size:11px; }
  .settings-toggle small { font-size:10px; }
  .form-field label { font-size:11px; }
  .form-field input,.form-field select,.form-field textarea { min-height:42px; font-size:12px; }
  .modal { max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
}
@media (min-width:721px) and (max-width:900px) {
  .topbar { height:64px; }
  .global-search { width:min(28vw,220px); }
  .topbar-actions { gap:11px; }
  .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .planner-layout { grid-template-columns:minmax(0,1fr); }
  .side-panel { display:grid; grid-template-columns:minmax(180px,1fr) minmax(0,2fr); }
  .side-panel .panel-head { border-right:1px solid #edf0eb; border-bottom:0; }
  .side-list { display:flex; gap:12px; overflow-x:auto; }
  .side-list-item { min-width:130px; }
  .table-wrap { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .table-wrap table { min-width:760px; }
}
@media (max-width:720px) {
  body { font-size:15px; }
  .app-shell { min-height:100svh; }
  .main-area { min-width:0; padding-bottom:calc(66px + env(safe-area-inset-bottom)); }
  .topbar { position:sticky; top:0; z-index:10; height:58px; padding:0 12px; gap:10px; }
  .breadcrumb { min-width:0; gap:7px; margin-right:auto; font-size:10px; }
  .breadcrumb span:first-child { display:none; }
  .breadcrumb .crumb-slash { display:none; }
  .breadcrumb strong { font-size:13px; }
  .topbar-actions { gap:7px; }
  .global-search { display:none; }
  .icon-button { width:42px; height:42px; border-radius:10px; }
  .top-user { min-width:42px; min-height:42px; justify-content:center; }
  .top-user .avatar { width:34px; height:34px; }
  .logout-button { width:42px; height:42px; border-radius:10px; display:grid; place-items:center; }
  .page-content { padding:18px 13px 24px; }
  .page-heading { gap:10px; margin-bottom:16px; }
  .page-heading h1 { font-size:24px; }
  .page-heading p { max-width:56ch; font-size:12px; line-height:1.45; }
  .heading-actions { width:100%; display:flex; flex-wrap:wrap; }
  .heading-actions .btn { flex:1 1 150px; min-height:44px; font-size:12px; }
  .dashboard-welcome { min-height:116px; padding:17px; border-radius:14px; }
  .welcome-copy .eyebrow { font-size:10px; }
  .welcome-copy h1 { font-size:21px; }
  .welcome-copy p { font-size:12px; }
  .welcome-right { display:none; }
  .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .stat-card { min-height:104px; padding:13px; border-radius:12px; }
  .stat-top { gap:6px; font-size:11px; line-height:1.3; }
  .stat-icon { width:30px; height:30px; flex:none; }
  .stat-value { flex-wrap:wrap; gap:4px 7px; }
  .stat-value strong { font-size:24px; }
  .stat-value span { font-size:11px; }
  .dashboard-grid { grid-template-columns:minmax(0,1fr); gap:11px; }
  .panel,.calendar-panel,.side-panel { border-radius:12px; }
  .panel-head { min-height:56px; padding:13px; }
  .panel-head h2 { font-size:14px; }
  .panel-head p { font-size:11px; }
  .text-link { min-height:40px; font-size:11px; }
  .job-preview-list,.agenda-list { padding-inline:13px; }
  .job-preview { grid-template-columns:40px minmax(0,1fr); gap:10px; padding:13px 0; }
  .job-preview-side { grid-column:2; display:flex; align-items:center; justify-content:space-between; text-align:left; }
  .job-preview-side small { margin:0; font-size:10px; }
  .job-preview-copy strong,.agenda-item strong { font-size:12px; line-height:1.35; }
  .job-preview-copy small,.agenda-item span { font-size:10px; line-height:1.4; }
  .date-box { width:38px; height:42px; }
  .date-box strong { font-size:16px; }
  .date-box span { font-size:9px; }
  .agenda-row { grid-template-columns:46px minmax(0,1fr); padding:13px 0; }
  .agenda-time { font-size:10px; }
  .alert-list { padding:12px; }
  .alert-row { padding:11px; }
  .alert-row strong { font-size:11px; line-height:1.35; }
  .alert-row span { font-size:10px; line-height:1.4; }
  .summary-strip { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .summary-chip { min-width:0; padding:11px; font-size:10px; line-height:1.35; }
  .summary-chip strong { display:block; margin:0 0 3px; font-size:16px; }
  .toolbar { margin:0 0 12px; gap:8px; }
  .field-search { min-width:100%; max-width:none; }
  .field-search input,.select-control { min-height:42px; font-size:12px; }
  .toolbar > .btn,.toolbar > .select-control { min-height:42px; font-size:11px; }
  .table-wrap { position:relative; width:100%; max-width:100%; overflow-x:auto; overscroll-behavior-inline:contain; -webkit-overflow-scrolling:touch; border-radius:10px; }
  .table-wrap table { min-width:760px; }
  .table-wrap th { padding:12px; font-size:9px; }
  .table-wrap td { padding:12px; font-size:12px; line-height:1.4; }
  .table-primary { font-size:12px; }
  .table-sub { font-size:10px; line-height:1.4; }
  .status-pill { padding:5px 9px; font-size:10px; }
  .link-button { min-height:40px; padding:8px; font-size:11px; }
  .row-actions { justify-content:flex-start; gap:4px; }
  .employee-name strong { font-size:12px; }
  .employee-name small { font-size:10px; }
  .notice-box { padding:12px; font-size:11px; line-height:1.5; }
  .planner-layout { grid-template-columns:minmax(0,1fr); }
  .calendar-panel { width:100%; overflow-x:auto; }
  .calendar-panel > * { min-width:760px; }
  .planner-days { grid-template-columns:repeat(7,minmax(105px,1fr)); }
  .planner-day { min-height:170px; padding:10px 8px; }
  .planner-day-head { font-size:9px; }
  .calendar-event { padding:7px; font-size:10px; }
  .calendar-event small { font-size:9px; }
  .side-panel { display:block; }
  .side-panel .panel-head { border-right:0; border-bottom:1px solid #edf0eb; }
  .side-list { display:block; overflow:visible; }
  .side-list-item { min-width:0; padding:12px 0; }
  .side-list-item strong { font-size:11px; }
  .side-list-item span { font-size:10px; }
  .settings-grid { grid-template-columns:minmax(0,1fr); gap:10px; }
  .settings-card { padding:15px; border-radius:12px; }
  .settings-card h2 { font-size:14px; }
  .settings-card p { font-size:11px; line-height:1.45; }
  .settings-toggle { gap:12px; min-height:50px; }
  .settings-toggle strong { font-size:12px; }
  .settings-toggle small { font-size:10px; line-height:1.35; }
  .form-grid { grid-template-columns:minmax(0,1fr); gap:14px; }
  .form-field.full { grid-column:auto; }
  .form-field label { font-size:11px; }
  .form-field input,.form-field select,.form-field textarea { min-height:46px; padding:10px 12px; font-size:14px; }
  .form-field textarea { min-height:100px; }
  .check-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
  .check-option { min-height:42px; padding:9px 10px; font-size:11px; }
  .modal-backdrop { place-items:end center; padding:8px 8px max(8px,env(safe-area-inset-bottom)); }
  .modal { width:100%; max-width:620px; max-height:calc(100dvh - 16px - env(safe-area-inset-top)); border-radius:16px 16px 12px 12px; }
  .modal-head { padding:16px 16px 12px; }
  .modal-head h2 { font-size:17px; }
  .modal-head p { font-size:11px; }
  .modal-body { padding:15px 16px; }
  .modal-foot { position:sticky; bottom:0; padding:11px 16px max(13px,env(safe-area-inset-bottom)); background:#fff; }
  .modal-foot .btn { flex:1; min-height:46px; font-size:12px; }
  .modal-close { width:36px; height:36px; font-size:20px; }
  .detail-grid { grid-template-columns:minmax(0,1fr); gap:0; }
  .detail-item { padding:10px 0; border-bottom:1px solid #eff1ed; }
  .detail-item label { font-size:9px; }
  .detail-item strong { font-size:12px; line-height:1.45; }
  .detail-hero h3 { font-size:16px; }
  .detail-hero p,.activity-item { font-size:11px; line-height:1.5; }
  .footer { display:none; }
  .mobile-navigation { position:fixed; inset:auto 0 0; z-index:20; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); min-height:calc(62px + env(safe-area-inset-bottom)); padding:5px 5px max(5px,env(safe-area-inset-bottom)); border-top:1px solid #e2e8e1; background:rgba(255,255,255,.97); backdrop-filter:blur(16px); box-shadow:0 -5px 20px rgba(28,48,38,.08); }
  .mobile-nav-link { display:flex; min-width:0; min-height:50px; flex-direction:column; align-items:center; justify-content:center; gap:2px; border:0; border-radius:10px; color:#718078; background:transparent; touch-action:manipulation; }
  .mobile-nav-link > span { display:grid; place-items:center; min-height:22px; font-size:19px; font-weight:700; line-height:1; }
  .mobile-nav-link small { overflow:hidden; max-width:100%; color:inherit; font-size:9px; font-weight:600; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
  .mobile-nav-link.active { color:var(--green); background:#eff5e9; }
  .mobile-nav-link.active > span { color:#446b4d; }
  .login-root:not(:empty) { align-items:start; overflow-y:auto; padding: max(16px,env(safe-area-inset-top)) 14px max(16px,env(safe-area-inset-bottom)); }
  .login-card { width:min(100%,440px); margin:auto; padding:24px 20px; border-radius:18px; }
  .login-card h1 { font-size:24px; }
  .login-card > p { font-size:13px; }
  .login-card .form-field label { font-size:12px; }
  .login-card .form-field input,.login-card .form-field select,.login-card .btn { min-height:48px; font-size:14px; }
  .login-note { font-size:10px; }
}
