/* KerisHR 1.7 — 2026 interface refresh */
:root{
  --kh-bg:#f6f4ef;
  --kh-bg-2:#efeee8;
  --kh-surface:#ffffff;
  --kh-surface-soft:#fbfaf7;
  --kh-ink:#172019;
  --kh-ink-2:#27332b;
  --kh-muted:#778078;
  --kh-muted-2:#9ca39c;
  --kh-line:#e9e8e2;
  --kh-line-strong:#dedfd8;
  --kh-green:#183b27;
  --kh-green-2:#245238;
  --kh-green-3:#47745a;
  --kh-green-soft:#eef5ef;
  --kh-gold:#bd9252;
  --kh-gold-soft:#f6eddf;
  --kh-orange:#e8612b;
  --kh-red:#c64d46;
  --kh-red-soft:#fdf0ee;
  --kh-amber:#b97819;
  --kh-amber-soft:#fff5e5;
  --kh-blue:#4c6ea8;
  --kh-blue-soft:#eef3fb;
  --kh-radius-xs:10px;
  --kh-radius-sm:14px;
  --kh-radius:18px;
  --kh-radius-lg:24px;
  --kh-shadow-sm:0 1px 2px rgba(27,42,31,.03),0 8px 24px rgba(27,42,31,.035);
  --kh-shadow:0 1px 2px rgba(22,35,26,.03),0 18px 50px rgba(22,35,26,.06);
  --kh-sidebar:258px;
}

*{box-sizing:border-box}
html{background:var(--kh-bg)}
body.kerishr-standalone{margin:0!important;background:var(--kh-bg)!important;color:var(--kh-ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}
body.kerishr-standalone a{-webkit-tap-highlight-color:transparent}
body:has(.kerishr-shell) .site-header,body:has(.kerishr-shell) header:not(.kh-topbar),body:has(.kerishr-shell) .site-footer,body:has(.kerishr-shell) footer:not(.kh-mobile-nav),body:has(.kh-login-page) .site-header,body:has(.kh-login-page) .site-footer{display:none!important}
.kerishr-shell,.kh-login-page{font-family:inherit;color:var(--kh-ink)}

/* ===== APP SHELL ===== */
.kerishr-shell{width:100vw;min-height:100dvh;margin-left:calc(50% - 50vw);display:grid;grid-template-columns:var(--kh-sidebar) minmax(0,1fr);background:
  radial-gradient(circle at 80% 0%,rgba(210,191,153,.12),transparent 26rem),
  linear-gradient(180deg,#f9f8f4 0,#f5f4ef 38%,#f3f3ee 100%)}
.kh-workspace{min-width:0;min-height:100dvh}
.kh-sidebar{position:sticky;top:0;height:100dvh;padding:18px 14px 16px;background:
  radial-gradient(circle at 10% 92%,rgba(191,145,78,.12),transparent 13rem),
  linear-gradient(180deg,#173725 0%,#112c1d 100%);color:#fff;display:flex;flex-direction:column;z-index:80;border-right:1px solid rgba(255,255,255,.04)}
.kh-side-brand{display:flex;align-items:center;gap:12px;padding:7px 8px 24px}
.kh-brand-mark{position:relative;width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;border-radius:14px;background:linear-gradient(145deg,#e1c083 0%,#b78339 100%);color:white;font-family:Georgia,serif;font-size:20px;font-weight:700;box-shadow:0 9px 24px rgba(5,15,8,.20)}
.kh-brand-mark:after{content:"";position:absolute;inset:5px;border:1px solid rgba(255,255,255,.28);border-radius:10px}
.kh-side-brand strong,.kh-mobile-brand strong{font-family:Georgia,"Times New Roman",serif;font-size:22px;line-height:1;letter-spacing:-.45px;font-weight:600;color:#fff}
.kh-side-brand strong span,.kh-mobile-brand strong span,.kh-login-logo span{color:#d7b06e}
.kh-side-brand small{display:block;margin-top:5px;font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#91a796}
.kh-sidebar nav{display:flex;flex-direction:column;gap:5px}
.kh-sidebar nav a{position:relative;display:flex;align-items:center;gap:11px;min-height:43px;padding:0 12px;border-radius:13px;color:#b8c8bd;text-decoration:none;font-size:12px;font-weight:650;transition:.18s ease}
.kh-sidebar nav a .dashicons{width:18px;height:18px;font-size:18px;color:#9eb1a3;transition:.18s ease}
.kh-sidebar nav a:hover{background:rgba(255,255,255,.06);color:#fff;transform:translateX(1px)}
.kh-sidebar nav a.active{background:#f4ead9;color:#183523;box-shadow:0 9px 20px rgba(5,20,10,.12)}
.kh-sidebar nav a.active .dashicons{color:#9a6c2b}
.kh-sidebar nav a.active:after{content:"";position:absolute;right:10px;width:5px;height:5px;border-radius:50%;background:#bc9152}
.kh-side-foot{margin-top:auto;padding:17px 9px 6px;display:flex;align-items:center;gap:10px;border-top:1px solid rgba(255,255,255,.10)}
.kh-role-dot{width:8px;height:8px;border-radius:99px;background:#7fd38c;box-shadow:0 0 0 4px rgba(127,211,140,.09)}
.kh-side-foot small{display:block;color:#76907f;font-size:8px;text-transform:uppercase;letter-spacing:.08em}
.kh-side-foot strong{display:block;margin-top:2px;color:#eaf0eb;font-size:11px;font-weight:650}

.kh-topbar{position:sticky;top:0;z-index:60;height:72px;padding:0 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:rgba(249,248,244,.86);backdrop-filter:blur(22px) saturate(140%);border-bottom:1px solid rgba(224,225,217,.8)}
.kh-mobile-brand{display:none;align-items:center;gap:9px}
.kh-top-title{min-width:0}
.kh-top-title small{display:block;margin-bottom:3px;color:#969d96;font-size:8px;letter-spacing:.12em;text-transform:uppercase;font-weight:750}
.kh-top-title strong{display:block;font-size:16px;line-height:1.2;color:#243028;font-weight:720;letter-spacing:-.2px}
.kh-user-menu{display:flex;align-items:center;gap:10px;min-width:0}
.kh-avatar,.kh-profile-badge{display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#224c33,#173924);color:#fff;font-weight:800;box-shadow:0 5px 16px rgba(24,59,39,.14)}
.kh-avatar{width:38px;height:38px;font-size:11px;border:3px solid #fff}
.kh-profile-badge{width:48px;height:48px;font-size:13px}
.kh-user-copy{min-width:0}
.kh-user-copy strong,.kh-user-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kh-user-copy strong{font-size:11px;font-weight:750;color:#243028}
.kh-user-copy small{max-width:190px;margin-top:2px;font-size:9px;color:#939b94}
.kh-logout{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;color:#7c857e;text-decoration:none;transition:.15s ease}
.kh-logout:hover{background:#fff;color:var(--kh-red);box-shadow:var(--kh-shadow-sm)}

.kh-content{width:100%;max-width:1480px;margin:0 auto;padding:30px 34px 104px}
.kh-page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 22px}
.kh-page-header>div:first-child{min-width:0}
.kh-kicker{display:inline-flex;align-items:center;gap:7px;color:#a67c40;font-size:9px;font-weight:850;letter-spacing:.16em;text-transform:uppercase}
.kh-kicker:before{content:"";width:16px;height:1px;background:#c7a36a}
.kh-page-header h1{margin:6px 0 5px;font-family:Georgia,"Times New Roman",serif;font-size:34px;line-height:1.04;font-weight:500;letter-spacing:-.8px;color:#17241b}
.kh-page-header p{margin:0;color:#7e877f;font-size:12px;line-height:1.6}
.kh-date-chip{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid var(--kh-line);border-radius:999px;background:rgba(255,255,255,.72);color:#7a837c;font-size:10px;white-space:nowrap;box-shadow:0 1px 0 rgba(255,255,255,.8) inset}

/* ===== SURFACES / TYPOGRAPHY ===== */
.kh-panel{position:relative;margin:0 0 16px;padding:19px;background:rgba(255,255,255,.91);border:1px solid rgba(228,228,220,.92);border-radius:20px;box-shadow:var(--kh-shadow-sm)}
.kh-panel:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
.kh-panel.grow,.grow{flex:1;min-width:0}
.kh-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px}
.kh-section-head.inside{margin-bottom:14px}
.kh-section-head h3{margin:0;color:#263229;font-size:13px;font-weight:760;letter-spacing:-.15px}
.kh-section-head a,.kh-section-head span{color:#8b938d;text-decoration:none;font-size:9px;font-weight:650}
.kh-section-head a:hover{color:var(--kh-green)}
.kh-label{display:block;color:#8b948c;font-size:8px;font-weight:800;letter-spacing:.10em;text-transform:uppercase}
.kh-notice{margin:0 0 18px;padding:12px 15px;border:1px solid #d8e8d8;border-radius:13px;background:#f0f7f0;color:#2d693a;font-size:11px;font-weight:700;box-shadow:var(--kh-shadow-sm)}
.kh-access-card{max-width:520px;margin:90px auto;padding:26px;border:1px solid var(--kh-line);border-radius:22px;background:#fff;text-align:center;box-shadow:var(--kh-shadow)}
.kh-empty-state{padding:32px 18px;color:#959c96;font-size:11px;text-align:center;border:1px dashed #dddfd8;border-radius:14px;background:#fbfbf8}

/* ===== KPI / DASHBOARD ===== */
.kh-metric-grid{display:grid;gap:12px;margin-bottom:16px}
.kh-metric-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.kh-metric-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.kh-metric-grid>div{position:relative;overflow:hidden;min-width:0;padding:17px 17px 16px;border:1px solid var(--kh-line);border-radius:17px;background:#fff;box-shadow:0 1px 0 rgba(255,255,255,.75) inset}
.kh-metric-grid>div:after{content:"";position:absolute;width:64px;height:64px;right:-22px;top:-22px;border-radius:50%;background:rgba(40,83,55,.035)}
.kh-metric-grid>div>span,.kh-sales-hero>span{display:block;color:#7f8881;font-size:9px;font-weight:650}
.kh-metric-grid>div>strong{display:block;margin-top:7px;color:#183b27;font-size:24px;line-height:1.05;letter-spacing:-.7px;font-weight:780;overflow-wrap:anywhere}
.kh-metric-grid>div>small{display:block;margin-top:6px;color:#9ba19c;font-size:8px}
.kh-dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.kh-action-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid #efefe9;color:var(--kh-ink);text-decoration:none;transition:.15s ease}
.kh-action-row:first-of-type{border-top:0}
.kh-action-row:hover{padding-left:4px}
.kh-action-row strong,.kh-action-row small{display:block}
.kh-action-row strong{font-size:11px;font-weight:750}
.kh-action-row small{margin-top:3px;color:#969d97;font-size:8px}
.kh-panel-icon{width:39px;height:39px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px}
.kh-panel-icon.green{background:#edf6ee;color:#347345}.kh-panel-icon.amber{background:#fbf0df;color:#a8732a}.kh-panel-icon.blue{background:#eef3fa;color:#4c6fa8}
.kh-count{min-width:27px;height:27px;display:grid;place-items:center;padding:0 7px;border-radius:999px;background:#f3f4ef;color:#5c685f;font-size:9px;font-weight:850}
.kh-sales-hero{padding:19px;border:1px solid #e5e7de;border-radius:16px;background:linear-gradient(135deg,#edf5ee 0%,#f8f2e8 100%)}
.kh-sales-hero strong{display:block;margin:8px 0 4px;color:#183b27;font-size:33px;line-height:1;letter-spacing:-1.2px;font-weight:800}
.kh-sales-hero small{color:#778178;font-size:9px}

/* ===== TABLES ===== */
.kh-table-wrap{overflow:auto;border-radius:14px}
.kh-table{width:100%;border-collapse:separate;border-spacing:0;font-size:11px}
.kh-table thead th{position:sticky;top:0;z-index:1;padding:10px 12px;border-bottom:1px solid #e8e9e3;background:#fafaf7;color:#929a93;text-align:left;font-size:8px;letter-spacing:.08em;text-transform:uppercase;font-weight:850;white-space:nowrap}
.kh-table thead th:first-child{border-radius:10px 0 0 0}.kh-table thead th:last-child{border-radius:0 10px 0 0}
.kh-table td{padding:12px;border-bottom:1px solid #efefea;vertical-align:middle;white-space:nowrap;color:#38443c}
.kh-table tbody tr{transition:.14s ease}.kh-table tbody tr:hover{background:#fbfcf9}
.kh-table tbody tr:last-child td{border-bottom:0}
.kh-table td strong{font-size:11px;color:#233027;font-weight:760}
.kh-table .empty{text-align:center;color:#9ba29c;padding:30px}
.kh-table code{padding:4px 6px;border-radius:7px;background:#f0f2ed;color:#516057;font-size:9px}
.block{display:block!important;margin-top:3px;color:#929a93;font-size:8px!important}
.error{max-width:360px;color:var(--kh-red)!important;white-space:normal}
.kh-person{display:flex;align-items:center;gap:9px}
.kh-person>span{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#eff3ed,#e7ece5);color:#4c5a50;font-size:9px;font-weight:850}
.kh-person small{display:block;margin-top:2px;color:#929a93;font-size:8px}

/* ===== STATUS / LINKS / BUTTONS ===== */
.kh-status{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;font-size:8px;font-weight:800;white-space:nowrap}
.kh-status.green{background:#eaf6eb;color:#337041}.kh-status.red{background:#fcedeb;color:#aa4540}.kh-status.amber{background:#fff2df;color:#99651a}.kh-status.blue{background:#edf3fb;color:#476aa1}.kh-status.muted{background:#f1f2ef;color:#727a74}
.kh-link{color:#28563a;font-weight:750;text-decoration:none}.kh-link:hover{text-decoration:underline}.kh-link.danger{color:var(--kh-red)}
.kh-inline-actions{display:flex;gap:6px}
.kh-mini-btn{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;border-radius:9px;text-decoration:none;font-size:8px;font-weight:850;transition:.14s ease}
.kh-mini-btn.approve{background:#eaf5eb;color:#296a38}.kh-mini-btn.reject{background:#fcedeb;color:#a1413b}.kh-mini-btn:hover{filter:brightness(.98);transform:translateY(-1px)}
.kh-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 14px;border:1px solid transparent;border-radius:12px;font:inherit;font-size:10px;font-weight:800;text-decoration:none;cursor:pointer;transition:.16s ease}
.kh-btn.primary{background:linear-gradient(180deg,#214a31,#173b27);color:#fff;box-shadow:0 7px 17px rgba(24,59,39,.14)}
.kh-btn.primary:hover{transform:translateY(-1px);box-shadow:0 10px 21px rgba(24,59,39,.18)}
.kh-btn.ghost{border-color:#e1e3dc;background:#fff;color:#31543d}.kh-btn.ghost:hover{background:#f8faf7;border-color:#ccd5cd}
.kh-btn.small{min-height:31px;padding:6px 10px;border-radius:9px;font-size:8px}.kh-btn.wide{width:100%}.kh-btn.clock{font-size:13px;padding:14px}

/* ===== FORMS ===== */
.kh-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.kh-form-grid.compact{grid-template-columns:repeat(6,minmax(0,1fr))}
.kh-form-grid label{display:block;color:#526058;font-size:9px;font-weight:780;line-height:1.35}
.kh-form-grid input,.kh-form-grid select,.kh-form-grid textarea,.kh-filter-inline input,.kh-filter-inline select,.kh-period-form input{width:100%;min-height:42px;margin-top:6px;padding:10px 12px;border:1px solid #dedfd9;border-radius:11px;outline:none;background:#fff;color:#263129;font:inherit;font-size:11px;box-shadow:0 1px 0 rgba(255,255,255,.9) inset;transition:.15s ease}
.kh-form-grid textarea{min-height:88px;resize:vertical}
.kh-form-grid input::placeholder,.kh-form-grid textarea::placeholder{color:#adb2ad}
.kh-form-grid input:focus,.kh-form-grid select:focus,.kh-form-grid textarea:focus,.kh-filter-inline input:focus,.kh-filter-inline select:focus,.kh-period-form input:focus{border-color:#8da693;box-shadow:0 0 0 3px rgba(36,82,56,.08)}
.kh-form-grid input[type=file]{padding:8px;background:#fbfcfa}
.span-2{grid-column:span 2}.kh-form-span{grid-column:1/-1}
.kh-form-actions{display:flex;align-items:end;gap:8px}
.kh-upload{padding:10px;border:1px dashed #cfd4cd;border-radius:12px;background:#fbfcfa}.kh-upload input{border:0;padding:4px 0}.kh-upload span{display:block;color:#8f9891;font-size:8px;font-weight:500}
.kh-info-box{margin-bottom:16px;padding:13px 14px;border:1px solid #ebe8dc;border-radius:13px;background:#faf7ee}.kh-info-box strong{font-size:11px}.kh-info-box p{margin:4px 0 0;color:#838c85;font-size:10px}
.kh-period-form input{width:auto;margin:0;background:#fff}
.kh-filter-inline{display:flex;align-items:center;gap:8px}.kh-filter-inline input,.kh-filter-inline select{width:auto;margin:0;min-height:36px;padding:7px 9px}
.kh-field-help{display:block;margin-top:5px;color:#8f9791;font-size:8px;font-weight:500}
.kh-field-title{display:block;margin-bottom:8px;color:#344238;font-size:10px;font-weight:800}

/* ===== STAFF HOME ===== */
.is-staff .kh-content{max-width:900px}
.kh-staff-hello{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:5px 2px}
.kh-staff-hello>div:first-child>span{display:block;margin-bottom:4px;color:#9b8564;font-size:9px;font-weight:700}
.kh-staff-hello h1{margin:0;font-family:Georgia,"Times New Roman",serif;color:#17241b;font-size:31px;line-height:1.08;font-weight:500;letter-spacing:-.7px}
.kh-staff-hello p{margin:6px 0 0;color:#838c84;font-size:11px}
.kh-today-shift{display:flex;align-items:center;gap:13px;padding:18px 19px;background:linear-gradient(135deg,#fff 0%,#faf6ed 100%);border-color:#e8e2d6}
.kh-today-shift .kh-panel-icon{width:42px;height:42px;background:#e8f3e9;color:#2f6f40;border-radius:13px}
.kh-today-shift h2{margin:4px 0 2px;font-size:20px;line-height:1.1;letter-spacing:-.5px}
.kh-today-shift p{margin:0;color:#858e87;font-size:9px}
.kh-session-summary-link{display:flex;align-items:center;justify-content:space-between;gap:14px;color:inherit;text-decoration:none;background:linear-gradient(135deg,#173b27,#214a31);border-color:#173b27;box-shadow:0 15px 28px rgba(24,59,39,.14)}
.kh-session-summary-link:before{display:none}.kh-session-summary-link .kh-label,.kh-session-summary-link>div:first-child small{color:#b9c8bc}.kh-session-summary-link>div:first-child span,.kh-session-summary-link>div:first-child strong,.kh-session-summary-link>div:first-child small{display:block}.kh-session-summary-link>div:first-child strong{margin:4px 0;color:#fff;font-size:14px}.kh-session-summary-link>div:first-child small{font-size:9px}.kh-session-money{color:#fff;font-size:21px;font-weight:850;white-space:nowrap}
.kh-balance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 19px}
.kh-balance-grid>div{padding:14px;border:1px solid var(--kh-line);border-radius:16px;background:#fff;box-shadow:var(--kh-shadow-sm)}
.kh-balance-grid>div:nth-child(1){background:linear-gradient(145deg,#f2f8f2,#fff)}.kh-balance-grid>div:nth-child(2){background:linear-gradient(145deg,#fff4f0,#fff)}.kh-balance-grid>div:nth-child(3){background:linear-gradient(145deg,#fbf5e7,#fff)}
.kh-balance-grid span,.kh-balance-grid strong,.kh-balance-grid small{display:block}.kh-balance-grid span{color:#768078;font-size:8px}.kh-balance-grid strong{margin:5px 0 2px;color:#203126;font-size:17px}.kh-balance-grid small{color:#a0a6a1;font-size:8px}
.kh-quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:10px}
.kh-quick-actions a{display:flex;min-height:88px;align-items:center;justify-content:center;flex-direction:column;gap:8px;padding:12px 8px;border:1px solid var(--kh-line);border-radius:16px;background:#fff;color:#344139;text-decoration:none;font-size:9px;font-weight:750;box-shadow:var(--kh-shadow-sm);transition:.16s ease}
.kh-quick-actions a:first-child{background:linear-gradient(145deg,#173b27,#26563a);border-color:#214d34;color:#fff}.kh-quick-actions a:hover{transform:translateY(-2px);box-shadow:var(--kh-shadow)}
.kh-quick-actions .dashicons{font-size:20px;width:20px;height:20px}

/* ===== PLATFORM / PERFORMANCE ===== */
.kh-platform-overview{display:grid;grid-template-columns:1fr 1fr;gap:10px;background:transparent;border:0;box-shadow:none;padding:0}
.kh-platform-overview:before{display:none}
.kh-platform-stat{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid var(--kh-line);border-radius:17px;background:#fff;box-shadow:var(--kh-shadow-sm)}
.kh-platform-stat>div small,.kh-platform-stat>div strong,.kh-platform-stat>div span{display:block}.kh-platform-stat>div small{font-size:8px;color:#8e9690}.kh-platform-stat>div strong{margin:3px 0;color:#193b28;font-size:18px}.kh-platform-stat>div span{font-size:8px;color:#969d97}.kh-platform-stat.total{justify-content:center;text-align:center}
.kh-platform-dot{width:10px;height:10px;display:inline-block;flex:0 0 auto;border-radius:50%}.kh-platform-dot.tiktok{background:#171717;box-shadow:0 0 0 4px #eeeeeb}.kh-platform-dot.shopee{background:#e7622c;box-shadow:0 0 0 4px #fff0e9}
.kh-role-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.kh-role-cards>div{padding:14px;border:1px solid var(--kh-line);border-radius:14px;background:#fafbf8}.kh-role-cards strong{font-size:10px}.kh-role-cards p{margin:5px 0 0;color:#838c84;font-size:9px;line-height:1.5}

/* ===== SCHEDULE ===== */
.kh-schedule-list{display:grid;gap:10px}
.kh-shift-card{display:flex;align-items:center;gap:13px;padding:13px;border:1px solid var(--kh-line);border-radius:17px;background:#fff;box-shadow:var(--kh-shadow-sm);transition:.15s ease}
.kh-shift-card:hover{transform:translateY(-1px);box-shadow:var(--kh-shadow)}
.kh-shift-card.today{border-color:#c9dccb;background:linear-gradient(135deg,#f1f8f1,#fff)}
.kh-shift-date{width:50px;flex:0 0 50px;padding:8px 4px;border-radius:13px;background:#f4f4ef;text-align:center}.kh-shift-card.today .kh-shift-date{background:#dff0e2}
.kh-shift-date span,.kh-shift-date strong,.kh-shift-date small{display:block}.kh-shift-date span{color:#8b938d;font-size:8px;text-transform:uppercase}.kh-shift-date strong{margin:1px 0;color:#26342a;font-size:20px;line-height:1}.kh-shift-date small{margin-top:2px;color:#8b938d;font-size:8px}
.kh-shift-card .grow>strong,.kh-shift-card .grow>span,.kh-shift-card .grow>small{display:block}.kh-shift-card .grow>strong{color:#243128;font-size:11px}.kh-shift-card .grow>span{margin-top:4px;color:#536158;font-size:9px;font-weight:700}.kh-shift-card .grow>small{margin-top:3px;color:#959d96;font-size:8px}

/* ===== LIVE SESSION FORM ===== */
.kh-session-form-panel{overflow:hidden}
.kh-platform-picker{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.kh-platform-choice{position:relative;cursor:pointer}.kh-platform-choice>input{position:absolute;opacity:0;pointer-events:none}
.kh-platform-choice>span{display:block;padding:14px 15px;border:1px solid var(--kh-line);border-radius:15px;background:#fafbf8;transition:.16s ease}
.kh-platform-choice>span i{width:21px;height:21px;display:inline-grid;place-items:center;margin-right:8px;border:2px solid #cbd1ca;border-radius:7px;vertical-align:middle}.kh-platform-choice>span strong{font-size:11px}.kh-platform-choice>span small{display:block;margin:6px 0 0 31px;color:#8d968f;font-size:8px}
.kh-platform-choice>input:checked+span{border-color:#9fbba3;background:#eff7ef;box-shadow:0 0 0 3px rgba(36,82,56,.045)}.kh-platform-choice>input:checked+span i{border-color:var(--kh-green);background:var(--kh-green)}.kh-platform-choice>input:checked+span i:after{content:"✓";color:#fff;font-size:11px;font-style:normal;font-weight:900}
.kh-platform-choice.shopee>input:checked+span{border-color:#e9b39d;background:#fff4ef}.kh-platform-choice.shopee>input:checked+span i{border-color:#e7622c;background:#e7622c}
.kh-live-duration{padding:12px 14px;border:1px solid #e3e3db;border-radius:14px;background:linear-gradient(135deg,#eff6ef,#faf5e9)}.kh-live-duration span,.kh-live-duration strong,.kh-live-duration small{display:block}.kh-live-duration span{color:#8b938d;font-size:8px}.kh-live-duration strong{margin:2px 0;color:#183b27;font-size:20px}.kh-live-duration small{color:#9aa19b;font-size:7px}
.kh-platform-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end;padding:14px;border:1px solid var(--kh-line);border-radius:16px;background:#fbfcf9}.kh-platform-fields.is-hidden{display:none}.kh-platform-head{grid-column:1/-1;display:flex;align-items:center;gap:9px;padding-bottom:3px}.kh-platform-head strong{font-size:10px}
.kh-session-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:0;overflow:hidden;border-radius:16px;background:linear-gradient(135deg,#173b27,#244e35);box-shadow:0 12px 26px rgba(24,59,39,.13)}
.kh-session-preview>div{padding:14px 15px;border-left:1px solid rgba(255,255,255,.12)}.kh-session-preview>div:first-child{border-left:0}.kh-session-preview span,.kh-session-preview strong{display:block}.kh-session-preview span{color:#afc1b3;font-size:8px}.kh-session-preview strong{margin-top:4px;color:#fff;font-size:15px;overflow-wrap:anywhere}

/* ===== LIVE SESSION CARDS ===== */
.kh-session-card-list{display:grid;gap:11px;margin-top:10px}
.kh-session-card{padding:15px;border:1px solid var(--kh-line);border-radius:18px;background:#fff;box-shadow:var(--kh-shadow-sm)}
.kh-session-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:12px;border-bottom:1px solid #eeeeea}.kh-session-card-top>div:first-child span,.kh-session-card-top>div:first-child strong,.kh-session-card-top>div:first-child small{display:block}.kh-session-card-top>div:first-child span{color:#909891;font-size:8px}.kh-session-card-top>div:first-child strong{margin:3px 0;color:#243128;font-size:13px}.kh-session-card-top>div:first-child small{color:#939b94;font-size:8px}
.kh-session-breakdown{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px 0}.kh-session-breakdown>div{min-width:0;padding:10px;border-radius:12px;background:#f8f9f6}.kh-session-breakdown small,.kh-session-breakdown strong,.kh-session-breakdown em{display:block}.kh-session-breakdown small{margin:3px 0;color:#929a93;font-size:7px}.kh-session-breakdown strong{font-size:11px}.kh-session-breakdown em{margin-top:3px;color:#929a93;font-size:7px;font-style:normal}.kh-session-breakdown .kh-platform-dot{margin-bottom:3px}
.kh-session-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding-top:10px;border-top:1px solid #eeeeea}

/* ===== HISTORY ===== */
.kh-history-list{display:grid;gap:0}.kh-history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #eeeeea}.kh-history-row:first-child{border-top:0}.kh-history-row strong,.kh-history-row small{display:block}.kh-history-row strong{font-size:10px}.kh-history-row small{margin-top:3px;color:#929a93;font-size:8px}

/* ===== LOGIN ===== */
.kh-login-page{min-height:100dvh;display:grid;grid-template-columns:minmax(320px,.9fr) minmax(440px,1.1fr);background:#f7f4ed}
.kh-login-brand{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;padding:58px;background:
 radial-gradient(circle at 20% 10%,rgba(212,181,124,.22),transparent 20rem),
 linear-gradient(160deg,#173924,#0f2b1b);color:#fff}
.kh-login-brand:after{content:"";position:absolute;width:360px;height:360px;right:-150px;top:-110px;border:1px solid rgba(255,255,255,.08);border-radius:50%;box-shadow:0 0 0 44px rgba(255,255,255,.025),0 0 0 88px rgba(255,255,255,.02)}
.kh-login-logo{position:relative;z-index:1;font-family:Georgia,"Times New Roman",serif;font-size:52px;letter-spacing:-1.8px}.kh-login-brand p{position:relative;z-index:1;margin:10px 0 0;color:#a9bcae;font-size:12px;letter-spacing:.04em}
.kh-login-card{align-self:center;width:min(440px,calc(100% - 44px));margin:auto;padding:34px;border:1px solid #e7e4dc;border-radius:25px;background:rgba(255,255,255,.95);box-shadow:0 28px 80px rgba(36,42,35,.11)}
.kh-login-card .kh-kicker:before{display:none}.kh-login-card h1{margin:8px 0 6px;font-family:Georgia,"Times New Roman",serif;font-size:35px;font-weight:500;letter-spacing:-.7px}.kh-login-card>p{margin:0 0 24px;color:#7f887f;font-size:11px}
.kh-login-card label{display:block;color:#4f5b52;font-size:9px;font-weight:800}.kh-login-card input[type=text],.kh-login-card input[type=password]{width:100%;min-height:46px;margin:7px 0 15px;padding:11px 13px;border:1px solid #dedfd8;border-radius:12px;background:#fff;font:inherit;font-size:12px;outline:none}.kh-login-card input:focus{border-color:#8ea795;box-shadow:0 0 0 3px rgba(36,82,56,.08)}.kh-login-card .login-remember{margin:0 0 16px}.kh-login-card .login-remember label{display:flex;align-items:center;gap:8px;font-weight:600}.kh-login-card .login-submit{margin:0}.kh-login-card .button-primary{width:100%;min-height:45px;border:0;border-radius:12px;background:linear-gradient(180deg,#214a31,#173b27);color:#fff;font-weight:800;cursor:pointer}.kh-login-card small{display:block;margin-top:18px;color:#979e98;font-size:8px;text-align:center}

/* ===== MOBILE DRAWER / NAV ===== */
.kh-mobile-nav{display:none}.kh-mobile-drawer,.kh-drawer-backdrop{display:none}

/* ===== RESPONSIVE MANAGEMENT ===== */
@media(max-width:1100px){
  :root{--kh-sidebar:220px}
  .kh-content{padding-left:24px;padding-right:24px}
  .kh-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kh-form-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}
  .kh-role-cards{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:820px){
  body.kerishr-standalone{background:#f5f4ef!important}
  .kerishr-shell{display:block;min-height:100dvh;background:#f5f4ef}
  .kh-sidebar{display:none}
  .kh-topbar{height:62px;padding:0 16px;background:rgba(249,248,244,.92)}
  .kh-mobile-brand{display:flex}.kh-mobile-brand .kh-brand-mark{width:31px;height:31px;border-radius:10px;font-size:15px}.kh-mobile-brand .kh-brand-mark:after{inset:4px;border-radius:7px}.kh-mobile-brand strong{font-size:18px;color:#173725}
  .kh-top-title{display:none}.kh-user-copy{display:none}.kh-avatar{width:34px;height:34px;border-width:2px}.kh-logout{width:30px;height:30px}
  .kh-content{max-width:none!important;padding:20px 16px calc(92px + env(safe-area-inset-bottom))}
  .kh-page-header{align-items:flex-start;margin-bottom:18px}.kh-page-header h1{font-size:28px}.kh-page-header p{font-size:10px}.kh-date-chip{display:none}
  .kh-metric-grid.four,.kh-metric-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.kh-metric-grid>div{padding:14px}.kh-metric-grid>div>strong{font-size:20px}
  .kh-dashboard-grid{grid-template-columns:1fr}
  .kh-form-grid,.kh-form-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.span-2{grid-column:span 2}
  .kh-panel{padding:15px;border-radius:18px}
  .kh-table-wrap{margin-left:-4px;margin-right:-4px}
  .kh-filter-inline{width:100%;flex-wrap:wrap}.kh-filter-inline input,.kh-filter-inline select{flex:1;min-width:120px}
  .kh-role-cards{grid-template-columns:1fr 1fr}
  .kh-mobile-nav{position:fixed;z-index:100;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);min-height:62px;padding:7px 6px;border:1px solid rgba(220,220,213,.88);border-radius:20px;background:rgba(255,255,255,.93);backdrop-filter:blur(24px) saturate(150%);box-shadow:0 16px 45px rgba(25,40,29,.13)}
  .kh-mobile-nav a,.kh-mobile-nav button{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;border:0;border-radius:13px;background:transparent;color:#929a94;text-decoration:none;font:inherit;cursor:pointer;min-width:0}
  .kh-mobile-nav a.active,.kh-mobile-nav button.active{background:#edf4ee;color:#1f4a31}.kh-mobile-nav a.active:before{content:"";position:absolute;top:3px;width:18px;height:2px;border-radius:99px;background:#ba8d4d}
  .kh-mobile-nav .dashicons{width:20px;height:20px;font-size:20px}.kh-mobile-nav small{font-size:7px;font-weight:720;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .kh-mobile-drawer{position:fixed;z-index:120;left:12px;right:12px;bottom:calc(82px + env(safe-area-inset-bottom));display:block;padding:10px;border:1px solid var(--kh-line);border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(24,38,28,.18);opacity:0;visibility:hidden;transform:translateY(12px);transition:.18s ease}.kh-mobile-drawer.open{opacity:1;visibility:visible;transform:translateY(0)}
  .kh-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:6px 8px 10px}.kh-drawer-head strong{font-size:12px}.kh-drawer-head button{width:31px;height:31px;border:0;border-radius:10px;background:#f2f3ef;color:#526058;font-size:20px}
  .kh-mobile-drawer>a{display:flex;align-items:center;gap:10px;padding:11px;border-radius:11px;color:#334139;text-decoration:none;font-size:10px;font-weight:700}.kh-mobile-drawer>a:hover{background:#f5f7f3}.kh-mobile-drawer>a .dashicons{font-size:17px;width:17px;height:17px;color:#708077}
  .kh-drawer-backdrop{position:fixed;z-index:110;inset:0;display:block;background:rgba(18,26,20,.24);backdrop-filter:blur(2px);opacity:0;visibility:hidden;transition:.18s ease}.kh-drawer-backdrop.open{opacity:1;visibility:visible}
}

/* ===== STAFF: APP-LEVEL MOBILE EXPERIENCE ===== */
@media(max-width:820px){
  .is-staff .kh-topbar{height:58px;border-bottom:0;background:transparent;backdrop-filter:none}.is-staff .kh-mobile-brand .kh-brand-mark{background:transparent;box-shadow:none;color:#b88845;width:22px;height:28px}.is-staff .kh-mobile-brand .kh-brand-mark:after{display:none}.is-staff .kh-mobile-brand strong{font-family:Georgia,"Times New Roman",serif;font-size:17px}.is-staff .kh-logout{display:none}
  .is-staff .kh-content{padding-top:5px;padding-left:14px;padding-right:14px}
  .kh-staff-hello{margin:0 0 15px;padding:5px 1px}.kh-staff-hello h1{font-size:28px}.kh-staff-hello p{font-size:9px}.kh-profile-badge{width:43px;height:43px;font-size:11px}
  .kh-today-shift{padding:15px;border-radius:19px}.kh-today-shift .kh-panel-icon{width:39px;height:39px}.kh-today-shift h2{font-size:17px}.kh-today-shift p{font-size:8px}.kh-today-shift .kh-btn{align-self:center}
  .kh-session-summary-link{padding:15px;border-radius:19px}.kh-session-money{font-size:18px}
  .kh-section-head{margin-top:3px;padding:0 2px}.kh-section-head h3{font-size:11px}
  .kh-balance-grid{gap:8px;margin:9px 0 17px}.kh-balance-grid>div{padding:12px 10px;border-radius:15px}.kh-balance-grid span{font-size:7px}.kh-balance-grid strong{font-size:15px}.kh-balance-grid small{font-size:7px}
  .kh-metric-grid.performance{grid-template-columns:repeat(2,1fr);gap:8px}.kh-metric-grid.performance>div{padding:12px;border-radius:15px}.kh-metric-grid.performance>div>span{font-size:7px}.kh-metric-grid.performance>div>strong{font-size:17px}
  .kh-platform-overview{gap:8px}.kh-platform-stat{padding:12px;border-radius:15px}.kh-platform-stat>div strong{font-size:15px}
  .kh-quick-actions{grid-template-columns:repeat(4,1fr);gap:7px}.kh-quick-actions a{min-height:72px;padding:9px 5px;border-radius:15px;font-size:7px}.kh-quick-actions .dashicons{font-size:18px;width:18px;height:18px}
  .is-staff .kh-mobile-nav{left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));border-radius:21px;min-height:64px}
  .is-staff .kh-mobile-nav a.active{background:transparent;color:#193e29}.is-staff .kh-mobile-nav a.active:after{content:"";position:absolute;top:5px;width:34px;height:34px;border-radius:12px;background:#edf4ee;z-index:-1}.is-staff .kh-mobile-nav a.active:before{display:none}
  .is-staff .kh-page-header.staff{margin-top:3px}.is-staff .kh-page-header.staff h1{font-size:28px}
  .is-staff .kh-session-form-panel{padding:14px}.is-staff .kh-platform-picker{gap:8px}.is-staff .kh-platform-choice>span{padding:12px 10px}.is-staff .kh-platform-choice>span small{margin-left:0}
  .is-staff .kh-platform-fields{grid-template-columns:1fr 1fr;padding:12px;gap:8px}.is-staff .kh-session-preview{grid-template-columns:repeat(3,1fr)}.is-staff .kh-session-preview>div{padding:12px 8px}.is-staff .kh-session-preview strong{font-size:12px}
  .is-staff .kh-session-card{padding:13px;border-radius:17px}.is-staff .kh-session-breakdown{gap:6px}.is-staff .kh-session-breakdown>div{padding:9px 7px}
}

@media(max-width:560px){
  .kh-form-grid,.kh-form-grid.compact{grid-template-columns:1fr}.span-2,.kh-form-span{grid-column:1/-1}.kh-form-actions{align-items:stretch}.kh-form-actions .kh-btn{flex:1}
  .kh-platform-picker{grid-template-columns:1fr 1fr}.kh-platform-fields{grid-template-columns:1fr 1fr}.kh-session-preview{grid-template-columns:repeat(3,1fr)}
  .kh-role-cards{grid-template-columns:1fr}
  .kh-session-breakdown{grid-template-columns:repeat(3,1fr)}
  .kh-session-money{font-size:16px}.kh-session-summary-link{align-items:flex-start}
  .kh-shift-card .kh-btn{padding:7px 8px}
  .kh-page-header h1{font-size:26px}
}

@media(max-width:390px){
  .kh-content{padding-left:11px;padding-right:11px}.kh-metric-grid.four,.kh-metric-grid.three{gap:8px}.kh-metric-grid>div{padding:12px}.kh-metric-grid>div>strong{font-size:18px}
  .kh-balance-grid{grid-template-columns:1fr 1fr}.kh-balance-grid>div:last-child{grid-column:1/-1}
  .kh-quick-actions{grid-template-columns:repeat(2,1fr)}.kh-quick-actions a{min-height:67px}
  .kh-platform-overview{grid-template-columns:1fr}
  .kh-session-breakdown{grid-template-columns:1fr 1fr}.kh-session-breakdown>div:last-child{grid-column:1/-1}
}

/* ===== LOGIN MOBILE ===== */
@media(max-width:760px){
  .kh-login-page{display:block;min-height:100dvh;padding:34px 17px;background:linear-gradient(180deg,#173724 0,#173724 34%,#f7f4ed 34%,#f7f4ed 100%)}
  .kh-login-brand{min-height:180px;padding:24px 12px;background:transparent}.kh-login-brand:after{display:none}.kh-login-logo{font-size:39px}.kh-login-brand p{font-size:10px}
  .kh-login-card{width:100%;margin:-14px auto 0;padding:25px 20px;border-radius:23px}.kh-login-card h1{font-size:31px}
}

/* ===== V1.3.1 TYPOGRAPHY SCALE =====
   Improve scanability on high-resolution desktop screens and mobile.
   The layout stays compact, but headings and key labels no longer rely on sub-10px type. */
.kh-side-brand small{font-size:10px}
.kh-sidebar nav a{font-size:13px}
.kh-side-foot small{font-size:9px}
.kh-side-foot strong{font-size:12px}
.kh-top-title small{font-size:10px}
.kh-top-title strong{font-size:18px}
.kh-user-copy strong{font-size:12px}
.kh-user-copy small{font-size:10px}
.kh-kicker{font-size:10px}
.kh-page-header h1{font-size:38px}
.kh-page-header p{font-size:13px}
.kh-date-chip{font-size:11px}
.kh-section-head h3{font-size:16px}
.kh-section-head a,.kh-section-head span{font-size:11px}
.kh-label{font-size:10px}
.kh-notice,.kh-empty-state{font-size:12px}
.kh-metric-grid>div>span,.kh-sales-hero>span{font-size:11px}
.kh-metric-grid>div>small{font-size:10px}
.kh-action-row strong{font-size:13px}
.kh-action-row small{font-size:10px}
.kh-count{font-size:10px}
.kh-sales-hero small{font-size:10px}
.kh-table{font-size:12px}
.kh-table thead th{font-size:10px}
.kh-table td strong{font-size:12px}
.kh-table code{font-size:10px}
.block{font-size:10px!important}
.kh-person>span{font-size:10px}
.kh-person small{font-size:10px}
.kh-status{font-size:10px}
.kh-mini-btn{font-size:10px}
.kh-btn{font-size:12px}
.kh-btn.small{font-size:10px}
.kh-form-grid label{font-size:11px}
.kh-form-grid input,.kh-form-grid select,.kh-form-grid textarea,.kh-filter-inline input,.kh-filter-inline select,.kh-period-form input{font-size:12px}
.kh-upload span{font-size:10px}
.kh-info-box strong{font-size:12px}
.kh-info-box p{font-size:11px}
.kh-field-help{font-size:10px}
.kh-field-title{font-size:12px}
.kh-staff-hello>div:first-child>span{font-size:10px}
.kh-staff-hello h1{font-size:34px}
.kh-staff-hello p{font-size:12px}
.kh-today-shift h2{font-size:22px}
.kh-today-shift p{font-size:10px}
.kh-session-summary-link>div:first-child strong{font-size:15px}
.kh-session-summary-link>div:first-child small{font-size:10px}
.kh-balance-grid span{font-size:10px}
.kh-balance-grid strong{font-size:18px}
.kh-balance-grid small{font-size:9px}
.kh-quick-actions a{font-size:10px}
.kh-platform-stat>div small{font-size:10px}
.kh-platform-stat>div span{font-size:9px}
.kh-role-cards strong{font-size:12px}
.kh-role-cards p{font-size:10px}
.kh-shift-date span,.kh-shift-date small{font-size:9px}
.kh-shift-card .grow>strong{font-size:12px}
.kh-shift-card .grow>span{font-size:10px}
.kh-shift-card .grow>small{font-size:9px}
.kh-platform-choice>span strong{font-size:12px}
.kh-platform-choice>span small{font-size:10px}
.kh-live-duration span{font-size:10px}
.kh-live-duration small{font-size:9px}
.kh-platform-head strong{font-size:12px}
.kh-session-preview span{font-size:9px}
.kh-session-card-top>div:first-child span{font-size:9px}
.kh-session-card-top>div:first-child strong{font-size:14px}
.kh-session-card-top>div:first-child small{font-size:9px}
.kh-session-breakdown small,.kh-session-breakdown em{font-size:9px}
.kh-session-breakdown strong{font-size:12px}
.kh-history-row strong{font-size:12px}
.kh-history-row small{font-size:10px}
.kh-login-card>p{font-size:12px}
.kh-login-card label{font-size:11px}
.kh-login-card small{font-size:10px}

@media(max-width:820px){
  .kh-mobile-brand strong{font-size:20px}
  .kh-page-header h1{font-size:32px}
  .kh-page-header p{font-size:12px}
  .kh-metric-grid>div>span{font-size:10px}
  .kh-metric-grid>div>small{font-size:9px}
  .kh-mobile-nav small{font-size:8.5px}
  .kh-drawer-head strong{font-size:14px}
  .kh-mobile-drawer>a{font-size:12px}

  .is-staff .kh-mobile-brand strong{font-size:19px}
  .kh-staff-hello h1{font-size:32px}
  .kh-staff-hello p{font-size:11px}
  .kh-today-shift h2{font-size:20px}
  .kh-today-shift p{font-size:10px}
  .kh-section-head h3{font-size:15px}
  .kh-section-head a,.kh-section-head span{font-size:10px}
  .kh-balance-grid span{font-size:9px}
  .kh-balance-grid strong{font-size:17px}
  .kh-balance-grid small{font-size:8.5px}
  .kh-metric-grid.performance>div>span{font-size:9px}
  .kh-metric-grid.performance>div>strong{font-size:19px}
  .kh-platform-stat>div strong{font-size:17px}
  .kh-quick-actions a{font-size:9px}
  .is-staff .kh-page-header.staff h1{font-size:32px}
  .is-staff .kh-session-preview strong{font-size:14px}
}

@media(max-width:560px){
  .kh-page-header h1{font-size:30px}
  .kh-section-head h3{font-size:15px}
  .kh-form-grid label{font-size:11px}
  .kh-form-grid input,.kh-form-grid select,.kh-form-grid textarea{font-size:13px}
}

@media(max-width:390px){
  .kh-page-header h1{font-size:29px}
  .kh-staff-hello h1{font-size:30px}
  .kh-metric-grid>div>strong{font-size:19px}
}


/* ===== WEEKLY ROSTER V1.4 ===== */
.kh-roster-header{align-items:flex-end}
.kh-roster-actions{display:flex;align-items:center;gap:10px}
.kh-week-toolbar{display:flex;align-items:center;gap:10px;margin:0 0 16px}
.kh-week-arrow{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--kh-line);border-radius:13px;background:#fff;color:var(--kh-green);text-decoration:none;box-shadow:var(--kh-shadow-sm)}
.kh-week-arrow:hover{background:#f7faf6;border-color:#cfd9d0}
.kh-week-range{min-width:220px;height:42px;display:flex;align-items:center;gap:10px;padding:0 14px;border:1px solid var(--kh-line);border-radius:13px;background:#fff;box-shadow:var(--kh-shadow-sm)}
.kh-week-range span{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--kh-muted)}
.kh-week-range strong{font-size:14px;color:var(--kh-ink)}
.kh-roster-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px}
.kh-roster-metrics>div{padding:16px 17px;border:1px solid var(--kh-line);border-radius:17px;background:#fff;box-shadow:var(--kh-shadow-sm)}
.kh-roster-metrics span{display:block;font-size:11px;font-weight:750;color:var(--kh-muted)}
.kh-roster-metrics strong{display:block;margin:6px 0 2px;font-family:Georgia,"Times New Roman",serif;font-size:26px;font-weight:600;line-height:1;color:var(--kh-green)}
.kh-roster-metrics small{font-size:10px;color:var(--kh-muted-2)}
.kh-roster-panel{padding:0;overflow:hidden}
.kh-roster-scroll{width:100%;overflow:auto;overscroll-behavior-inline:contain}
.kh-roster-grid{width:100%;min-width:1280px;border-collapse:separate;border-spacing:0;table-layout:fixed}
.kh-roster-grid th,.kh-roster-grid td{border-right:1px solid #e7e6df;border-bottom:1px solid #e7e6df}
.kh-roster-grid th:last-child,.kh-roster-grid td:last-child{border-right:0}
.kh-roster-grid tbody tr:last-child td{border-bottom:0}
.kh-roster-grid thead th{position:sticky;top:0;z-index:2;height:54px;padding:10px;background:#f3ecef;color:#5e5159;font-size:11px;font-weight:800;text-align:center;white-space:nowrap}
.kh-roster-grid thead th.date-col{width:82px;background:#f7f4df}
.kh-roster-grid thead th.day-col{width:110px;background:#f7f4df}
.kh-roster-grid thead th.activity-col{width:190px;background:#eaf1f7;color:#45576a}
.kh-roster-date,.kh-roster-day{padding:12px 8px;background:#fffdf0;text-align:center}
.kh-roster-date{font-size:11px;color:#6b684e}
.kh-roster-day{font-size:13px;font-weight:750;color:#35372d}
.kh-roster-slot{height:72px;padding:6px;background:#fafafa;vertical-align:middle}
.kh-roster-cell{width:100%;min-height:58px;padding:8px 7px;border:1px dashed #dddcd5;border-radius:12px;background:#fff;color:#788078;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font:inherit;cursor:pointer;transition:.15s ease}
.kh-roster-cell:hover{border-color:#9fb3a4;background:#f7faf7;transform:translateY(-1px)}
.kh-roster-cell .dashicons{width:18px;height:18px;font-size:18px;color:#9da79f}
.kh-roster-cell strong{font-size:12px;font-weight:850;color:#172019;text-transform:uppercase;letter-spacing:.01em}
.kh-roster-cell small{font-size:9px;font-weight:700;color:#7a847c}
.kh-roster-cell.assigned{border-style:solid;border-color:#d8e3da;background:#f1f7f2;box-shadow:0 4px 12px rgba(29,67,43,.05)}
.kh-roster-cell.assigned.part-time{border-color:#d9e2f0;background:#f1f5fb}
.kh-roster-cell.assigned.part-time strong{color:#36567d}
.kh-roster-cell.has-warning{border-color:#e5bd79;background:#fff8eb}
.kh-roster-cell.has-warning small{color:#a66a13}
.kh-roster-activity{padding:7px;background:#f3f7fb;vertical-align:top}
.kh-activity-stack{display:flex;flex-direction:column;gap:5px}
.kh-no-activity{display:block;padding:10px 0;color:#a7afb5;text-align:center}
.kh-activity-chip{position:relative;display:block;padding:7px 24px 7px 8px;border:1px solid #d9e4ef;border-radius:10px;background:#fff;color:#3f5263}
.kh-activity-chip strong{display:block;font-size:10px}
.kh-activity-chip small{display:block;margin-top:2px;font-size:8.5px;color:#738393;line-height:1.25}
.kh-activity-chip a{position:absolute;right:7px;top:7px;color:#9aa6b0;font-size:15px;line-height:1;text-decoration:none}
.kh-activity-chip.type-off{background:#eef4fa}
.kh-activity-chip.type-shoot{background:#fff5ea;border-color:#f1dcc2;color:#76522a}
.kh-activity-add{width:100%;padding:6px;border:0;border-radius:9px;background:transparent;color:#5b7185;font-size:9px;font-weight:800;cursor:pointer}
.kh-activity-add:hover{background:#e8f0f7}
.kh-workload-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.kh-workload-card{padding:15px;border:1px solid var(--kh-line);border-radius:16px;background:#fff}
.kh-workload-card.part-time{background:#f8fafc}
.kh-workload-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.kh-workload-top strong{display:block;font-size:13px}
.kh-workload-top small{display:block;margin-top:4px;font-size:9px;color:var(--kh-muted)}
.kh-workload-top>span{font-size:14px;font-weight:850;color:var(--kh-green);white-space:nowrap}
.kh-workload-card.part-time .kh-workload-top>span{color:#4d6e9b}
.kh-workload-bar{height:6px;margin:12px 0 8px;border-radius:99px;background:#eceeea;overflow:hidden}
.kh-workload-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#315e42,#6c9077)}
.kh-workload-card.part-time .kh-workload-bar i{background:linear-gradient(90deg,#5876a0,#89a1c1)}
.kh-workload-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9px;color:var(--kh-muted)}
.kh-workload-foot strong{color:#566259;font-size:9px}
.kh-block-list{margin-top:8px}
.kh-block-card{border-color:#dce5ee;background:#f7fafc}

/* modal */
body.kh-modal-open{overflow:hidden}
.kh-modal{position:fixed;z-index:500;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;visibility:hidden;transition:.16s ease}
.kh-modal.open{opacity:1;visibility:visible}
.kh-modal-backdrop{position:absolute;inset:0;background:rgba(16,28,20,.34);backdrop-filter:blur(5px)}
.kh-modal-card{position:relative;z-index:1;width:min(440px,100%);max-height:calc(100dvh - 40px);overflow:auto;padding:25px;border:1px solid rgba(255,255,255,.7);border-radius:22px;background:#fff;box-shadow:0 30px 90px rgba(16,31,21,.22);transform:translateY(10px) scale(.985);transition:.18s ease}
.kh-modal.open .kh-modal-card{transform:translateY(0) scale(1)}
.kh-modal-x{position:absolute;right:14px;top:14px;width:34px;height:34px;border:0;border-radius:11px;background:#f2f3ef;color:#59635b;font-size:22px;cursor:pointer}
.kh-modal-card h2{margin:7px 42px 5px 0;font-family:Georgia,"Times New Roman",serif;font-size:28px;font-weight:600;letter-spacing:-.5px}
.kh-modal-card>p{margin:0 36px 18px 0;color:var(--kh-muted);font-size:11px;line-height:1.5}
.kh-modal-card form{display:grid;gap:13px}
.kh-modal-card label{display:grid;gap:7px;font-size:11px;font-weight:800;color:#4c584f}
.kh-modal-card input,.kh-modal-card select{width:100%;min-height:45px;padding:10px 12px;border:1px solid #dedfd8;border-radius:12px;background:#fff;color:var(--kh-ink);font:inherit;font-size:13px;outline:none}
.kh-modal-card input:focus,.kh-modal-card select:focus{border-color:#8ea795;box-shadow:0 0 0 3px rgba(36,82,56,.08)}
.kh-modal-note{display:flex;align-items:flex-start;gap:8px;padding:10px 11px;border-radius:12px;background:#f4f7f3;color:#657168}
.kh-modal-note .dashicons{flex:0 0 auto;margin-top:1px;color:#54735d}
.kh-modal-note p{margin:0;font-size:10px;line-height:1.45}
.kh-remove-form{margin-top:9px}
.kh-btn.danger{border-color:#efd5d1;background:#fff6f4;color:#a9433d}
.kh-btn.danger:hover{background:#fdecea}
.kh-section-head.inside>div>p{margin:4px 0 0;color:var(--kh-muted);font-size:10px}

@media(max-width:1180px){
  .kh-roster-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kh-workload-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:820px){
  .kh-roster-header{display:flex;flex-direction:column;gap:14px}
  .kh-roster-actions{width:100%}.kh-roster-actions .kh-btn{width:100%}
  .kh-week-toolbar{flex-wrap:wrap}
  .kh-week-range{min-width:0;flex:1}
  .kh-roster-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .kh-roster-metrics>div{padding:13px}
  .kh-roster-metrics strong{font-size:23px}
  .kh-roster-panel{margin-left:-16px;margin-right:-16px;border-radius:0;border-left:0;border-right:0}
  .kh-roster-scroll{padding-left:16px;padding-right:16px}
  .kh-workload-grid{grid-template-columns:1fr}
  .kh-modal{align-items:flex-end;padding:10px}
  .kh-modal-card{width:100%;max-height:88dvh;padding:22px 18px calc(20px + env(safe-area-inset-bottom));border-radius:24px 24px 18px 18px}
  .kh-modal-card h2{font-size:26px}
}

@media(max-width:560px){
  .kh-roster-metrics{grid-template-columns:1fr 1fr}
  .kh-roster-metrics span{font-size:10px}
  .kh-roster-metrics small{font-size:9px}
  .kh-week-range strong{font-size:12px}
}

/* ======================================================================
   V1.5 — STAFF APP REDESIGN
   Staff-facing screens now use a true mobile-app visual hierarchy.
   Management screens intentionally keep the existing workspace system.
   ====================================================================== */
.is-staff{--kh-app-pad:16px;--kh-app-radius:22px;--kh-app-line:#e7e9e4;--kh-app-soft:#f6f7f3;--kh-app-green:#173c28;--kh-app-gold:#b88b4c}
.is-staff .kh-content{max-width:920px}
.is-staff .kh-page-header.staff{align-items:flex-start}
.is-staff .kh-page-header.staff h1{font-family:inherit;font-weight:780;letter-spacing:-1px}
.is-staff .kh-page-header.staff p{max-width:580px}

/* Staff home */
.kh-staff-app-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 20px}
.kh-staff-app-head>div>span{display:block;margin-bottom:5px;color:#9a805b;font-size:11px;font-weight:750}
.kh-staff-app-head h1{margin:0;color:#14221a;font-size:34px;line-height:1.06;font-weight:800;letter-spacing:-1.25px}
.kh-staff-app-head p{margin:7px 0 0;color:#7f8981;font-size:12px}
.kh-staff-avatar{display:grid;place-items:center;flex:0 0 auto;width:58px;height:58px;border:1px solid #dce3dd;border-radius:19px;background:linear-gradient(145deg,#1d4930,#153823);color:#fff;text-decoration:none;box-shadow:0 12px 25px rgba(22,58,37,.13)}
.kh-staff-avatar span{font-size:15px;font-weight:850;line-height:1}.kh-staff-avatar small{margin-top:-4px;color:#bfd0c3;font-size:7px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}

.kh-staff-schedule-hero{margin-bottom:16px;padding:20px;border:1px solid #e2e5de;border-radius:24px;background:linear-gradient(145deg,#fffdf8 0,#fff 55%,#f0f6f1 100%);box-shadow:0 12px 34px rgba(32,44,35,.055)}
.kh-staff-card-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}
.kh-staff-card-head h2{margin:3px 0 0;color:#1d2b22;font-size:18px;line-height:1.15;font-weight:800;letter-spacing:-.35px}
.kh-staff-card-head>a{color:#587161;text-decoration:none;font-size:10px;font-weight:750}
.kh-app-eyebrow{display:block;color:#ad8750;font-size:8px;font-weight:900;letter-spacing:.16em}
.kh-space-top{margin-top:23px}
.kh-home-session-stack{display:grid;gap:9px;margin-top:16px}
.kh-home-session-row{display:flex;align-items:center;gap:12px;min-height:66px;padding:11px 12px;border:1px solid #e9e9e3;border-radius:17px;background:rgba(255,255,255,.88)}
.kh-session-order{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:11px;background:#edf4ee;color:#214b32;font-size:12px;font-weight:900}
.kh-home-session-row .grow>strong,.kh-home-session-row .grow>span{display:block}.kh-home-session-row .grow>strong{font-size:13px;color:#1b2b21}.kh-home-session-row .grow>span{margin-top:4px;color:#849087;font-size:9px}
.kh-session-cta{display:inline-flex;align-items:center;gap:5px;padding:8px 10px;border-radius:11px;background:#173c28;color:#fff;text-decoration:none;font-size:9px;font-weight:850;white-space:nowrap}.kh-session-cta.done{background:#eef5ef;color:#2e6743}.kh-session-cta span{font-size:13px}
.kh-day-status{display:flex;align-items:center;gap:12px;margin-top:16px;padding:13px;border:1px solid #e8e9e3;border-radius:17px;background:#fff}.kh-day-status.upcoming{background:#f8faf7}.kh-day-status-icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:#f3ebde;color:#a2702f}.kh-day-status strong,.kh-day-status span{display:block}.kh-day-status strong{font-size:12px}.kh-day-status span{margin-top:3px;color:#8c958e;font-size:9px}.kh-day-status>a{margin-left:auto;color:#305b3e;text-decoration:none;font-size:9px;font-weight:800}

.kh-performance-hero{position:relative;overflow:hidden;margin:0 0 16px;padding:20px;border-radius:24px;background:linear-gradient(145deg,#102d1c 0%,#183d28 54%,#275039 100%);color:#fff;box-shadow:0 18px 36px rgba(20,57,36,.16)}
.kh-performance-hero:after{content:"";position:absolute;width:190px;height:190px;right:-95px;top:-100px;border:1px solid rgba(255,255,255,.09);border-radius:50%;box-shadow:0 0 0 34px rgba(255,255,255,.025),0 0 0 68px rgba(255,255,255,.018)}
.kh-performance-hero-top{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.kh-performance-hero-top>div:first-child>span,.kh-performance-hero-top>div:first-child>strong,.kh-performance-hero-top>div:first-child>small{display:block}.kh-performance-hero-top>div:first-child>span{color:#b7c5bb;font-size:8px;font-weight:850;letter-spacing:.13em}.kh-performance-hero-top>div:first-child>strong{margin-top:8px;font-size:31px;line-height:1;letter-spacing:-1.2px}.kh-performance-hero-top>div:first-child>small{margin-top:6px;color:#a9bcaf;font-size:9px}.kh-performance-hero-top>a{position:relative;z-index:2;padding:7px 9px;border:1px solid rgba(255,255,255,.16);border-radius:10px;color:#eaf2ec;text-decoration:none;font-size:8px;font-weight:800}
.kh-performance-mini-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:19px}.kh-performance-mini-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.kh-performance-mini-grid>div{min-width:0;padding:10px;border:1px solid rgba(255,255,255,.10);border-radius:13px;background:rgba(255,255,255,.055)}.kh-performance-mini-grid span,.kh-performance-mini-grid strong{display:block}.kh-performance-mini-grid span{color:#aebeb2;font-size:7px}.kh-performance-mini-grid strong{margin-top:5px;color:#fff;font-size:11px;overflow-wrap:anywhere}
.kh-performance-rate{text-align:right}.kh-performance-rate small,.kh-performance-rate strong{display:block}.kh-performance-rate small{color:#afc0b4;font-size:8px}.kh-performance-rate strong{margin-top:5px;font-size:15px}

.kh-latest-session-card{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:13px 14px;border:1px solid #dfe9e1;border-radius:18px;background:#f4f9f4;color:inherit;text-decoration:none}.kh-latest-session-icon{width:36px;height:36px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:#dceee0;color:#2e7043}.kh-latest-session-card .grow>span,.kh-latest-session-card .grow>strong,.kh-latest-session-card .grow>small{display:block}.kh-latest-session-card .grow>span{color:#718079;font-size:8px}.kh-latest-session-card .grow>strong{margin-top:2px;font-size:11px}.kh-latest-session-card .grow>small{margin-top:2px;color:#8d9790;font-size:8px}.kh-latest-session-value{font-size:14px;font-weight:850;color:#183b27;white-space:nowrap}

.kh-app-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:11px}.kh-app-actions>a{display:flex;min-width:0;min-height:104px;flex-direction:column;justify-content:space-between;padding:12px;border:1px solid var(--kh-app-line);border-radius:18px;background:#fff;color:#26342b;text-decoration:none;box-shadow:0 7px 20px rgba(29,44,33,.035)}.kh-app-actions>a.primary{background:linear-gradient(145deg,#173c28,#25563a);border-color:#214e34;color:#fff}.kh-app-action-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#f1f4ef;color:#345c40}.kh-app-actions>a.primary .kh-app-action-icon{background:rgba(255,255,255,.13);color:#fff}.kh-app-action-icon .dashicons{width:18px;height:18px;font-size:18px}.kh-app-actions strong,.kh-app-actions small{display:block}.kh-app-actions strong{margin-top:12px;font-size:10px}.kh-app-actions small{margin-top:3px;color:#929a94;font-size:7px;line-height:1.3}.kh-app-actions>a.primary small{color:#bdd0c1}

.kh-app-balance-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:11px}.kh-app-balance-row>div{min-width:0;padding:13px 12px;border:1px solid var(--kh-app-line);border-radius:17px;background:#fff}.kh-app-balance-row>div.annual{background:linear-gradient(145deg,#f2f8f2,#fff)}.kh-app-balance-row>div.medical{background:linear-gradient(145deg,#fff2ee,#fff)}.kh-app-balance-row>div.emergency{background:linear-gradient(145deg,#fcf5e7,#fff)}.kh-balance-icon{width:30px;height:30px;display:grid;place-items:center;margin-bottom:10px;border-radius:10px;background:rgba(255,255,255,.8);color:#3c7049}.kh-balance-icon .dashicons{width:16px;height:16px;font-size:16px}.kh-app-balance-row small,.kh-app-balance-row strong,.kh-app-balance-row>div>span:last-child{display:block}.kh-app-balance-row small{color:#7a857d;font-size:8px}.kh-app-balance-row strong{margin-top:4px;color:#1d2d23;font-size:15px;white-space:nowrap}.kh-app-balance-row>div>span:last-child{margin-top:2px;color:#9aa19b;font-size:7px}.kh-app-balance-row.large{margin:0 0 16px}.kh-app-balance-row.large>div{padding:15px}.kh-app-balance-row.large strong{font-size:18px}

.kh-app-platform-row{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:11px}.kh-app-platform-row>div{display:flex;align-items:center;gap:11px;padding:14px;border:1px solid var(--kh-app-line);border-radius:18px;background:#fff}.kh-app-platform-row small,.kh-app-platform-row strong,.kh-app-platform-row div div span{display:block}.kh-app-platform-row small{color:#8c958e;font-size:8px}.kh-app-platform-row strong{margin:3px 0;font-size:15px;color:#1b2c21}.kh-app-platform-row div div span{color:#929a94;font-size:8px}

/* Schedule app cards */
.kh-app-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 2px 9px}.kh-app-list-head:first-child{margin-top:0}.kh-app-list-head h3{margin:0;font-size:13px;font-weight:820;color:#26342b}.kh-app-list-head>span{color:#969e98;font-size:8px}
.kh-app-schedule-list{display:grid;gap:9px}.kh-app-shift-card{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--kh-app-line);border-radius:19px;background:#fff;box-shadow:0 8px 24px rgba(28,41,31,.035)}.kh-app-shift-card.is-today{border-color:#cbdccd;background:linear-gradient(145deg,#f2f8f2,#fff)}
.kh-app-date{width:50px;flex:0 0 50px;padding:8px 4px;border-radius:14px;background:#f3f4f0;text-align:center}.kh-app-shift-card.is-today .kh-app-date{background:#dfeee2}.kh-app-date small,.kh-app-date strong,.kh-app-date span{display:block}.kh-app-date small{color:#7e8981;font-size:7px;font-weight:800;text-transform:uppercase}.kh-app-date strong{margin:1px 0;color:#1d2c23;font-size:21px;line-height:1}.kh-app-date span{color:#8f9891;font-size:7px}
.kh-app-shift-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.kh-app-shift-title>strong{font-size:11px;color:#1c2b22}.kh-app-shift-card .grow>p{margin:4px 0 0;color:#516058;font-size:9px;font-weight:700}.kh-app-shift-card .grow>small{display:block;margin-top:3px;color:#989f99;font-size:8px}.kh-app-pill{display:inline-flex;align-items:center;padding:4px 6px;border-radius:999px;font-size:6px;font-weight:850;white-space:nowrap}.kh-app-pill.today,.kh-app-pill.reported{background:#dff0e2;color:#2c6a3f}.kh-app-pill.upcoming{background:#edf2f8;color:#50709a}.kh-app-pill.pending{background:#fff1dc;color:#a06b20}.kh-app-shift-action{flex:0 0 auto;padding:7px 8px;border-radius:10px;background:#f0f5f0;color:#2d5d3b;text-decoration:none;font-size:8px;font-weight:850}.kh-app-shift-action span{font-size:11px}
.kh-app-empty{padding:38px 20px;border:1px dashed #dfe2dc;border-radius:20px;background:#fbfcf9;text-align:center}.kh-app-empty>span{display:grid;place-items:center;width:46px;height:46px;margin:0 auto 11px;border-radius:15px;background:#eef3ee;color:#4e6d59}.kh-app-empty strong,.kh-app-empty p{display:block}.kh-app-empty strong{font-size:12px}.kh-app-empty p{margin:5px 0 0;color:#929a94;font-size:9px}.kh-app-empty.compact{padding:25px 16px}

/* Staff forms */
.kh-app-form-panel{overflow:hidden;padding:0!important}.kh-app-form-panel:before{display:none}.kh-app-form-intro{display:flex;align-items:center;gap:11px;padding:16px 17px;border-bottom:1px solid #ecece6;background:linear-gradient(145deg,#fbfaf6,#fff)}.kh-app-form-icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:13px;background:#eaf3eb;color:#315f3e}.kh-app-form-icon .dashicons{width:18px;height:18px;font-size:18px}.kh-app-form-intro strong,.kh-app-form-intro small{display:block}.kh-app-form-intro strong{font-size:12px}.kh-app-form-intro small{margin-top:3px;color:#929b94;font-size:8px}
.kh-app-form-panel form{padding:17px}.kh-field-subtitle{display:block;margin:4px 0 9px;color:#929a94;font-size:8px}.kh-file-field>span{color:#a1a7a2;font-size:8px;font-weight:650}.kh-staff-submit-actions{margin-top:2px}.kh-staff-submit-actions .kh-btn{min-height:48px;border-radius:14px;font-size:11px}
.kh-staff-history-panel{margin-top:17px}.kh-staff-history-panel .kh-history-row{padding:13px 0}.kh-history-icon{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:11px;background:#f2f4f0;color:#55705e}.kh-history-icon .dashicons{width:16px;height:16px;font-size:16px}
.kh-performance-page-hero{margin-bottom:13px}.kh-app-platform-performance{grid-template-columns:repeat(3,minmax(0,1fr))}.kh-app-period-form input{border-radius:11px}

/* Bottom navigation: central Live action behaves like a native app primary action. */
@media(max-width:820px){
  body.kerishr-standalone{background:#f7f7f3!important}
  .is-staff .kh-workspace{min-height:100dvh}
  .is-staff .kh-topbar{height:56px;padding:0 15px;background:rgba(247,247,243,.94);backdrop-filter:blur(16px);border-bottom:1px solid rgba(230,231,225,.65)}
  .is-staff .kh-mobile-brand{gap:6px}.is-staff .kh-mobile-brand .kh-brand-mark{width:20px;height:24px;font-size:17px}.is-staff .kh-mobile-brand strong{font-size:18px;letter-spacing:-.4px}.is-staff .kh-user-menu{margin-left:auto}.is-staff .kh-avatar{display:grid;width:32px;height:32px;font-size:9px;border:2px solid #fff}.is-staff .kh-logout{display:none}
  .is-staff .kh-content{padding:14px 14px calc(100px + env(safe-area-inset-bottom))}
  .kh-staff-app-head{margin:0 1px 17px}.kh-staff-app-head>div>span{font-size:9px}.kh-staff-app-head h1{font-size:27px;letter-spacing:-1px}.kh-staff-app-head p{margin-top:5px;font-size:9px}.kh-staff-avatar{width:50px;height:50px;border-radius:17px}.kh-staff-avatar span{font-size:13px}
  .kh-staff-schedule-hero{padding:16px;border-radius:22px}.kh-staff-card-head h2{font-size:16px}.kh-staff-card-head>a{font-size:9px}.kh-app-eyebrow{font-size:7px}.kh-home-session-row{min-height:63px;padding:10px}.kh-session-order{width:32px;height:32px}.kh-home-session-row .grow>strong{font-size:11px}.kh-home-session-row .grow>span{font-size:8px}.kh-session-cta{padding:7px 8px;font-size:8px}
  .kh-performance-hero{padding:17px;border-radius:22px}.kh-performance-hero-top>div:first-child>strong{font-size:27px}.kh-performance-mini-grid{gap:5px;margin-top:16px}.kh-performance-mini-grid>div{padding:9px 7px;border-radius:11px}.kh-performance-mini-grid span{font-size:6.5px}.kh-performance-mini-grid strong{font-size:10px}
  .kh-app-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.kh-app-actions>a{min-height:89px;padding:11px;border-radius:17px}.kh-app-actions strong{margin-top:9px;font-size:10px}.kh-app-actions small{font-size:7px}
  .kh-app-balance-row{gap:7px}.kh-app-balance-row>div{padding:11px 9px;border-radius:15px}.kh-balance-icon{width:28px;height:28px;margin-bottom:8px}.kh-app-balance-row small{font-size:7px}.kh-app-balance-row strong{font-size:13px}.kh-app-balance-row.large strong{font-size:15px}
  .kh-app-platform-row{gap:7px}.kh-app-platform-row>div{padding:12px 10px;border-radius:16px}.kh-app-platform-row strong{font-size:13px}

  .is-staff .kh-page-header.staff.kh-app-page-head{margin:0 0 15px;padding:0 1px}.is-staff .kh-page-header.staff.kh-app-page-head h1{margin-top:4px;font-size:27px;font-family:inherit;font-weight:800;letter-spacing:-.9px}.is-staff .kh-page-header.staff.kh-app-page-head p{font-size:9px;line-height:1.45}.is-staff .kh-page-header.staff.kh-app-page-head .kh-kicker{font-size:7px}
  .kh-app-shift-card{padding:10px;border-radius:17px}.kh-app-date{width:46px;flex-basis:46px}.kh-app-date strong{font-size:19px}.kh-app-shift-title>strong{font-size:10px}.kh-app-shift-card .grow>p{font-size:8px}.kh-app-shift-card .grow>small{font-size:7.5px}.kh-app-shift-action{padding:6px 7px;font-size:7.5px}

  .kh-app-form-intro{padding:14px}.kh-app-form-panel form{padding:14px}.kh-app-form-intro strong{font-size:11px}.kh-app-form-intro small{font-size:7.5px}
  .is-staff .kh-form-grid label{font-size:10px}.is-staff .kh-form-grid input,.is-staff .kh-form-grid select,.is-staff .kh-form-grid textarea{min-height:46px;margin-top:7px;padding:11px 12px;border-radius:12px;font-size:13px}.is-staff .kh-form-grid textarea{min-height:96px}
  .is-staff .kh-staff-session-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.is-staff .kh-session-date-field{grid-column:1/-1}.is-staff .kh-session-time-field{grid-column:auto}.is-staff .kh-live-duration{grid-column:1/-1}.is-staff .kh-platform-picker{gap:8px}.is-staff .kh-platform-choice>span{min-height:64px;padding:12px}.is-staff .kh-platform-fields{grid-column:1/-1}.is-staff .kh-session-preview{grid-column:1/-1;border-radius:15px}.is-staff .kh-session-preview>div{padding:12px 9px}
  .is-staff .kh-staff-request-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.is-staff .kh-staff-request-form .span-2{grid-column:1/-1}.is-staff .kh-claim-form>label:nth-of-type(3){grid-column:1/-1}
  .kh-staff-history-panel{padding:14px}.kh-staff-history-panel .kh-section-head.inside{margin-bottom:3px}.kh-history-row strong{font-size:11px}.kh-history-row small{font-size:8.5px}
  .kh-app-platform-performance{grid-template-columns:1fr 1fr}.kh-app-platform-performance .kh-platform-stat.total{grid-column:1/-1}

  .is-staff .kh-mobile-nav.kh-staff-nav{left:10px;right:10px;bottom:calc(9px + env(safe-area-inset-bottom));min-height:68px;padding:7px 5px;border-radius:23px;grid-template-columns:repeat(5,1fr);background:rgba(255,255,255,.96);border:1px solid rgba(220,224,217,.92);box-shadow:0 18px 46px rgba(20,38,26,.16)}
  .is-staff .kh-mobile-nav.kh-staff-nav a{gap:4px;color:#929b94}.is-staff .kh-mobile-nav.kh-staff-nav a.active{background:transparent;color:#1b4930}.is-staff .kh-mobile-nav.kh-staff-nav a.active:after,.is-staff .kh-mobile-nav.kh-staff-nav a.active:before{display:none}.is-staff .kh-mobile-nav.kh-staff-nav .dashicons{width:19px;height:19px;font-size:19px}.is-staff .kh-mobile-nav.kh-staff-nav small{font-size:7.5px;font-weight:750;overflow:visible}
  .is-staff .kh-mobile-nav.kh-staff-nav .kh-nav-live{transform:translateY(-17px)}.is-staff .kh-mobile-nav.kh-staff-nav .kh-nav-live small{margin-top:1px;color:#46604f}.kh-live-nav-icon{width:48px;height:48px;display:grid;place-items:center;border:4px solid #f7f7f3;border-radius:17px;background:linear-gradient(145deg,#1e4c32,#153923);color:#fff;box-shadow:0 10px 22px rgba(21,57,35,.24)}.kh-live-nav-icon .dashicons{width:21px!important;height:21px!important;font-size:21px!important}.is-staff .kh-mobile-nav.kh-staff-nav .kh-nav-live.active .kh-live-nav-icon{background:linear-gradient(145deg,#bb955a,#9e7439)}
}

@media(max-width:430px){
  .kh-app-balance-row{grid-template-columns:repeat(3,minmax(0,1fr))}.kh-app-balance-row>div{padding-left:8px;padding-right:8px}.kh-app-balance-row strong{font-size:12px}
  .kh-performance-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kh-performance-mini-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
  .kh-app-platform-row{grid-template-columns:1fr 1fr}
  .kh-home-session-row{gap:9px}.kh-session-order{display:none}
}

@media(max-width:360px){
  .kh-app-balance-row{grid-template-columns:1fr 1fr}.kh-app-balance-row>div:last-child{grid-column:1/-1}.kh-app-actions{grid-template-columns:1fr 1fr}.kh-app-shift-action{padding:6px}.kh-app-pill{display:none}
}

/* V1.6 — explicit WordPress account connection */
.kh-account-link-card{display:flex;align-items:center;gap:14px;margin:0 0 18px;padding:16px 18px;border:1px solid #dfe4dd;border-radius:18px;background:linear-gradient(180deg,#fff,#fafbf8);box-shadow:0 8px 24px rgba(31,52,39,.05)}
.kh-account-link-card.is-connected{border-color:#d8e8da;background:linear-gradient(180deg,#fbfefb,#f4faf4)}
.kh-account-link-card.is-disconnected{border-color:#f0d5d2;background:#fff9f8}
.kh-account-link-icon{width:44px;height:44px;display:grid;place-items:center;flex:0 0 44px;border-radius:14px;background:#eaf4eb;color:#245238}
.kh-account-link-card.is-disconnected .kh-account-link-icon{background:#fcedeb;color:#aa4540}
.kh-account-link-icon .dashicons{width:22px;height:22px;font-size:22px}
.kh-account-link-copy{min-width:0;flex:1}.kh-account-link-copy h3{margin:2px 0 3px;font-size:16px;line-height:1.25;color:#263129}.kh-account-link-copy p{margin:0;color:#758078;font-size:11px}
.kh-account-link-card>.kh-btn{flex:0 0 auto}
@media(max-width:720px){.kh-account-link-card{align-items:flex-start;flex-wrap:wrap}.kh-account-link-card>.kh-btn{width:100%}.kh-account-link-copy h3{font-size:17px}.kh-account-link-copy p{font-size:12px}}

/* ===== V1.7.1 STAFF LIVE AUTO-SCAN ===== */
.kh-scan-page-head{margin-bottom:14px}.kh-scan-page-head h1{font-size:38px!important;letter-spacing:-1.15px}
.kh-ai-scan-shell{max-width:920px;margin:0 auto}.kh-simple-scan{display:grid;gap:12px}
.kh-live-schedule-chip{display:flex;align-items:center;gap:11px;margin:0 0 2px;padding:11px 13px;border:1px solid #e0e5de;border-radius:16px;background:#fff;box-shadow:var(--kh-shadow-sm)}
.kh-live-schedule-icon{width:36px;height:36px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:#edf4ee;color:#285338}.kh-live-schedule-icon .dashicons{width:18px;height:18px;font-size:18px}
.kh-live-schedule-chip strong,.kh-live-schedule-chip small{display:block}.kh-live-schedule-chip strong{font-size:11px;color:#223128}.kh-live-schedule-chip small{margin-top:2px;font-size:8px;color:#8a938c}
.kh-simple-upload-panel{padding:16px;border-radius:22px}.kh-simple-upload-panel:before{display:none}.kh-live-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.kh-live-source{overflow:hidden;border:1px solid #e3e6e0;border-radius:19px;background:#fbfcf9}.kh-live-source-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 13px;border-bottom:1px solid #eceee9;background:#fff}
.kh-live-source-brand{display:flex;align-items:center;gap:10px;min-width:0}.kh-live-source-brand strong{font-size:13px;color:#202c24}.kh-live-source-status{padding:5px 8px;border-radius:999px;background:#f1f2ef;color:#89918b;font-size:8px;font-weight:800;white-space:nowrap}.kh-live-source-status.scanning{background:#fff4df;color:#986518}.kh-live-source-status.added{background:#eef1ec;color:#68736a}.kh-live-source-status.ready{background:#e9f5eb;color:#2e6a40}.kh-live-source-status.error{background:#fbeae8;color:#a44a43}
.kh-brand-logo{width:39px;height:39px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px}.kh-brand-logo-tiktok{position:relative;overflow:hidden;background:#101010;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}.kh-tt-note{position:relative;z-index:2;display:block;transform:rotate(-7deg);font-family:Arial,sans-serif;font-size:25px;font-weight:900;line-height:1;text-shadow:-2px 1px 0 #26f4ee,2px -1px 0 #fe2c55}.kh-brand-logo-shopee{background:#ee5b26;color:#ee5b26}.kh-brand-logo-shopee svg{width:27px;height:27px;overflow:visible}.kh-brand-logo-shopee svg path:first-child,.kh-brand-logo-shopee svg path:nth-child(2){fill:#fff;stroke:#fff}.kh-brand-logo-shopee svg path:nth-child(3){stroke:#ee5b26}
.kh-scan-preview{position:relative;min-height:180px;display:grid;place-items:center;overflow:hidden;margin:11px;border:1.5px dashed #d8ddd7;border-radius:15px;background:linear-gradient(145deg,#f8f9f6,#fdfdfb)}.kh-scan-preview-empty{text-align:center;color:#8f9891}.kh-scan-preview-empty .dashicons{display:block;width:29px;height:29px;margin:0 auto 5px;font-size:29px;color:#a8b0aa}.kh-scan-preview-empty strong{display:block;font-size:10px;color:#546057}
.kh-scan-preview.has-image{display:block;min-height:0;height:210px;border-style:solid;background:#111}.kh-scan-preview.has-image img{display:block;width:100%;height:100%;object-fit:contain;background:#111}.kh-scan-remove{position:absolute;right:8px;top:8px;width:31px;height:31px;display:grid;place-items:center;border:0;border-radius:10px;background:rgba(18,25,20,.78);color:#fff;cursor:pointer;backdrop-filter:blur(10px)}.kh-scan-remove .dashicons{width:16px;height:16px;font-size:16px}
.kh-scan-upload-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 11px 11px}.kh-scan-action{position:relative;min-height:45px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 11px;border:1px solid #dfe3dd;border-radius:13px;background:#fff;color:#354239;font-size:10px;font-weight:820;cursor:pointer;transition:.15s ease}.kh-scan-action:hover{border-color:#cfd6cf;background:#fdfefc}.kh-scan-action.primary{border-color:#d6e3d8;background:#edf5ee;color:#285338}.kh-scan-action input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.kh-scan-action .dashicons{width:16px;height:16px;font-size:16px}
.kh-live-summary-form{margin:0}.kh-live-summary-card{padding:18px;border-radius:22px;transition:.18s ease}.kh-live-summary-card.is-hidden{display:none}.kh-live-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.kh-live-summary-head h2{margin:0;color:#1e2b23;font-size:18px;letter-spacing:-.3px}.kh-live-summary-status{padding:6px 9px;border-radius:999px;font-size:8px;font-weight:850}.kh-live-summary-status.scanning{background:#fff4df;color:#996616}.kh-live-summary-status.waiting{background:#f0f1ed;color:#7d867f}.kh-live-summary-status.ready{background:#e9f5eb;color:#2f6d42}.kh-live-summary-status.error{background:#fbeae8;color:#a44a43}
.kh-live-summary-metrics{display:grid;grid-template-columns:repeat(3,1fr);overflow:hidden;border-radius:17px;background:linear-gradient(145deg,#173b27,#244d34)}.kh-live-summary-metrics>div{padding:15px 14px;border-left:1px solid rgba(255,255,255,.10)}.kh-live-summary-metrics>div:first-child{border-left:0}.kh-live-summary-metrics span,.kh-live-summary-metrics strong{display:block}.kh-live-summary-metrics span{color:#b6c5b9;font-size:8px}.kh-live-summary-metrics strong{margin-top:5px;color:#fff;font-size:17px;letter-spacing:-.3px}.kh-live-summary-card.is-scanning .kh-live-summary-metrics strong{opacity:.42}
.kh-live-note{display:block;margin-top:13px;color:#39463d;font-size:10px;font-weight:800}.kh-live-note>span{color:#99a09a;font-weight:600}.kh-live-note textarea{width:100%;min-height:82px;margin-top:7px;padding:11px 12px;border:1px solid #dfe3dd;border-radius:13px;background:#fff;color:#253129;font:inherit;font-size:12px;resize:vertical;box-sizing:border-box}.kh-live-note textarea:focus{outline:none;border-color:#9fbaa6;box-shadow:0 0 0 3px rgba(36,82,56,.06)}
.kh-save-detected{margin-top:11px;min-height:48px!important}.kh-save-detected:disabled{opacity:.42;cursor:not-allowed}

@media(max-width:760px){
  .kh-scan-page-head{margin-bottom:11px}.kh-scan-page-head h1{font-size:30px!important;letter-spacing:-.9px}
  .kh-ai-scan-shell{width:100%;max-width:none}.kh-live-schedule-chip{padding:10px 11px;border-radius:15px}.kh-live-schedule-icon{width:34px;height:34px;border-radius:11px}.kh-live-schedule-chip strong{font-size:10px}.kh-live-schedule-chip small{font-size:7.5px}
  .kh-simple-upload-panel{padding:11px!important;border-radius:19px!important}.kh-live-upload-grid{grid-template-columns:1fr;gap:10px}.kh-live-source{border-radius:17px}.kh-live-source-head{padding:10px 11px}.kh-live-source-brand strong{font-size:12px}.kh-live-source-status{font-size:7.5px}.kh-brand-logo{width:37px;height:37px;border-radius:12px}.kh-tt-note{font-size:24px}.kh-brand-logo-shopee svg{width:26px;height:26px}
  .kh-scan-preview{min-height:150px;margin:9px;border-radius:13px}.kh-scan-preview.has-image{height:190px}.kh-scan-upload-actions{gap:7px;padding:0 9px 9px}.kh-scan-action{min-height:46px;border-radius:12px;font-size:10px}
  .kh-live-summary-card{padding:15px!important;border-radius:19px!important}.kh-live-summary-head h2{font-size:17px}.kh-live-summary-metrics>div{padding:13px 10px}.kh-live-summary-metrics span{font-size:7.5px}.kh-live-summary-metrics strong{font-size:14px}.kh-live-note{font-size:10px}.kh-live-note textarea{min-height:78px;font-size:12px}.kh-save-detected{min-height:49px!important}
}

@media(max-width:410px){
  .kh-live-summary-metrics{grid-template-columns:1fr}.kh-live-summary-metrics>div{border-left:0;border-top:1px solid rgba(255,255,255,.10)}.kh-live-summary-metrics>div:first-child{border-top:0}.kh-live-summary-metrics>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.kh-live-summary-metrics strong{margin-top:0;font-size:15px}
}

/* ===== V1.7.2 COMPACT STAFF LIVE MOBILE ===== */
@media(max-width:760px){
  .kh-scan-page-head{margin-bottom:8px}
  .kh-scan-page-head h1{font-size:28px!important;letter-spacing:-.75px}
  .kh-simple-scan{gap:8px}
  .kh-live-schedule-chip{margin-bottom:0;padding:8px 9px;border-radius:13px;gap:8px}
  .kh-live-schedule-icon{width:30px;height:30px;border-radius:9px}
  .kh-live-schedule-icon .dashicons{width:16px;height:16px;font-size:16px}
  .kh-live-schedule-chip strong{font-size:10px;line-height:1.25}
  .kh-live-schedule-chip small{font-size:7.5px;line-height:1.25}

  .kh-simple-upload-panel{padding:8px!important;border-radius:17px!important}
  .kh-live-upload-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .kh-live-source{min-width:0;border-radius:15px}
  .kh-live-source-head{padding:7px 8px;gap:5px}
  .kh-live-source-brand{gap:6px;min-width:0}
  .kh-live-source-brand strong{font-size:11px;line-height:1.1;white-space:nowrap}
  .kh-brand-logo{width:30px;height:30px;border-radius:9px}
  .kh-tt-note{font-size:20px}
  .kh-brand-logo-shopee svg{width:21px;height:21px}
  .kh-live-source-status{display:none;padding:3px 5px;font-size:6.5px}
  .kh-live-source-status.scanning,.kh-live-source-status.added,.kh-live-source-status.ready,.kh-live-source-status.error{display:inline-flex}

  .kh-scan-preview{min-height:76px;margin:6px;border-radius:10px}
  .kh-scan-preview-empty .dashicons{width:21px;height:21px;margin-bottom:3px;font-size:21px}
  .kh-scan-preview-empty strong{font-size:8.5px}
  .kh-scan-preview.has-image{height:104px}
  .kh-scan-remove{right:5px;top:5px;width:27px;height:27px;border-radius:8px}
  .kh-scan-remove .dashicons{width:14px;height:14px;font-size:14px}

  .kh-scan-upload-actions{grid-template-columns:1fr 1fr;gap:4px;padding:0 6px 6px}
  .kh-scan-action{min-width:0;min-height:36px;gap:4px;padding:0 5px;border-radius:9px;font-size:9px;line-height:1;font-weight:800}
  .kh-scan-action .dashicons{width:13px;height:13px;font-size:13px}

  .kh-live-summary-card{padding:14px!important;border-radius:17px!important}
  .kh-live-summary-head{margin-bottom:10px}
  .kh-live-summary-head h2{font-size:20px;letter-spacing:-.45px}
  .kh-live-summary-status{padding:5px 8px;font-size:7.5px}
  .kh-live-summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr));border-radius:15px}
  .kh-live-summary-metrics>div{padding:13px 12px;border-left:1px solid rgba(255,255,255,.10);border-top:1px solid rgba(255,255,255,.10)}
  .kh-live-summary-metrics>div:first-child{grid-column:1/-1;padding:16px 14px;border-left:0;border-top:0}
  .kh-live-summary-metrics>div:nth-child(2){border-left:0}
  .kh-live-summary-metrics span{font-size:9px;font-weight:650;letter-spacing:.05px}
  .kh-live-summary-metrics strong{margin-top:4px;font-size:20px;line-height:1.05;letter-spacing:-.45px}
  .kh-live-summary-metrics>div:first-child strong{margin-top:6px;font-size:30px;letter-spacing:-1px}
  .kh-live-summary-card.is-scanning .kh-live-summary-metrics strong{opacity:.5}

  .kh-live-note{margin-top:10px;font-size:10px}
  .kh-live-note textarea{min-height:64px;margin-top:5px;padding:9px 10px;border-radius:11px;font-size:12px}
  .kh-save-detected{margin-top:9px;min-height:47px!important}
}

@media(max-width:370px){
  .kh-live-upload-grid{gap:6px}
  .kh-live-source-head{padding:6px}
  .kh-live-source-brand{gap:5px}
  .kh-live-source-brand strong{font-size:10px}
  .kh-brand-logo{width:27px;height:27px;border-radius:8px}
  .kh-tt-note{font-size:18px}
  .kh-brand-logo-shopee svg{width:19px;height:19px}
  .kh-scan-preview{min-height:68px;margin:5px}
  .kh-scan-preview.has-image{height:92px}
  .kh-scan-upload-actions{gap:3px;padding:0 5px 5px}
  .kh-scan-action{min-height:34px;padding:0 4px;font-size:8.4px}
  .kh-live-summary-metrics>div:first-child strong{font-size:27px}
  .kh-live-summary-metrics strong{font-size:18px}
}

/* V1.8.10: camera + gallery/files upload, side-by-side on desktop and phone. */
.kh-ai-scan-shell .kh-scan-upload-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
.kh-ai-scan-shell .kh-scan-action{min-width:0;width:100%;box-sizing:border-box;white-space:nowrap}
.kh-ai-scan-shell .kh-scan-action input[type="file"]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.kh-ai-scan-shell .kh-scan-action:focus-within{outline:2px solid #3a7750;outline-offset:2px}
@media(max-width:370px){
  .kh-ai-scan-shell .kh-scan-upload-actions{gap:3px;padding:0 5px 5px}
  .kh-ai-scan-shell .kh-scan-action{font-size:8.4px;padding:0 3px;gap:3px}
  .kh-ai-scan-shell .kh-scan-action .dashicons{width:12px;height:12px;font-size:12px}
}


/* v1.7.4: summary is always visible; scan results update in place */
.kh-live-summary-card.is-waiting .kh-live-summary-metrics strong{opacity:.55}
.kh-live-summary-status.waiting:empty{display:none}


/* v1.7.5: staff Leave & Claims mobile form hardening */
@media(max-width:560px){
  .is-staff .kh-app-form-panel{border-radius:18px}
  .is-staff .kh-app-form-intro{padding:13px 14px;gap:10px}
  .is-staff .kh-app-form-intro strong{font-size:13px;line-height:1.25}
  .is-staff .kh-app-form-intro small{font-size:9px;line-height:1.4}
  .is-staff .kh-app-form-panel form{padding:14px}

  /* Later staff-specific rules used to re-open this to two columns. Keep every
     request field comfortably full-width on a phone. */
  .is-staff .kh-staff-request-form,
  .is-staff .kh-leave-form,
  .is-staff .kh-claim-form{grid-template-columns:minmax(0,1fr)!important;gap:13px!important}
  .is-staff .kh-staff-request-form>label,
  .is-staff .kh-staff-request-form>.span-2,
  .is-staff .kh-claim-form>label:nth-of-type(3),
  .is-staff .kh-staff-submit-actions{grid-column:1/-1!important;min-width:0}

  .is-staff .kh-staff-request-form label{min-width:0;font-size:11px;line-height:1.35}
  .is-staff .kh-staff-request-form input,
  .is-staff .kh-staff-request-form select,
  .is-staff .kh-staff-request-form textarea{display:block;box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0!important;margin-top:7px;font-size:16px!important}
  .is-staff .kh-staff-request-form input,
  .is-staff .kh-staff-request-form select{min-height:50px}
  .is-staff .kh-staff-request-form textarea{min-height:104px;line-height:1.45;resize:vertical}

  /* Prevent Safari/iOS date controls from using an intrinsic width wider than the card. */
  .is-staff .kh-staff-request-form input[type="date"],
  .is-staff .kh-staff-request-form input[type="number"]{-webkit-appearance:none;appearance:none;inline-size:100%;max-inline-size:100%}
  .is-staff .kh-staff-request-form input[type="date"]::-webkit-date-and-time-value{text-align:left;min-height:22px}

  /* Native file controls are a common overflow source on small phones. */
  .is-staff .kh-file-field{overflow:hidden;padding:12px;border:1px dashed #d9ded7;border-radius:14px;background:#fafbf8}
  .is-staff .kh-file-field>span{font-size:9px}
  .is-staff .kh-file-field input[type="file"]{min-height:44px!important;margin-top:8px!important;padding:5px!important;border:0!important;border-radius:10px!important;background:#fff!important;font-size:12px!important;overflow:hidden;color:#556159}
  .is-staff .kh-file-field input[type="file"]::file-selector-button{margin-right:8px;padding:9px 10px;border:0;border-radius:9px;background:#eaf2eb;color:#28543a;font:inherit;font-size:11px;font-weight:800}
  .is-staff .kh-file-field input[type="file"]::-webkit-file-upload-button{margin-right:8px;padding:9px 10px;border:0;border-radius:9px;background:#eaf2eb;color:#28543a;font:inherit;font-size:11px;font-weight:800}
  .is-staff .kh-file-field .kh-field-help{display:block;margin-top:6px;font-size:9px;line-height:1.4}

  .is-staff .kh-staff-submit-actions{margin-top:1px}
  .is-staff .kh-staff-submit-actions .kh-btn{width:100%;min-height:52px;border-radius:14px;font-size:13px}

  .is-staff .kh-staff-history-panel{padding:13px;border-radius:18px}
  .is-staff .kh-history-row{gap:9px;padding:12px 0}
  .is-staff .kh-history-row .grow{min-width:0}
  .is-staff .kh-history-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
  .is-staff .kh-history-row small{font-size:10px;line-height:1.35}
  .is-staff .kh-history-row .kh-status{flex:0 0 auto;white-space:nowrap}
}

@media(max-width:370px){
  .is-staff .kh-app-form-panel form{padding:12px}
  .is-staff .kh-staff-request-form{gap:11px!important}
  .is-staff .kh-file-field{padding:10px}
}

/* v1.8.0: OpenAI live-session scanner */
.kh-live-scan-message{margin:-2px 0 11px;padding:9px 11px;border:1px solid #f0d2ce;border-radius:12px;background:#fff6f4;color:#95443d;font-size:10px;font-weight:700;line-height:1.4}
.kh-live-scan-message[hidden]{display:none!important}
.kh-settings-divider{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 2px;padding-top:18px;border-top:1px solid #e7e9e5}
.kh-settings-divider h3{margin:3px 0 0;font-size:18px;color:#1e2b23}
.kh-settings-divider .kh-status{flex:0 0 auto}
@media(max-width:680px){
  .kh-live-scan-message{margin:-1px 0 9px;padding:8px 10px;border-radius:10px;font-size:9px}
  .kh-settings-divider{align-items:flex-start}.kh-settings-divider h3{font-size:17px}
}

/* ===== V1.8.4 SIMPLE PREVIOUS LIVE ===== */
.kh-live-previous-inline{margin:0 10px 10px;padding:8px;border:1px solid #e1e6df;border-radius:13px;background:#fafbf8;display:grid;gap:7px}
.kh-live-previous-inline[hidden],.kh-live-restart-extra[hidden],.kh-previous-warning[hidden]{display:none!important}
.kh-add-previous-live{min-height:38px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px dashed #cfd7cf;border-radius:10px;background:#fff;color:#46534a;font-size:9px;font-weight:850;cursor:pointer}
.kh-add-previous-live:hover{border-color:#294f38;color:#294f38;background:#f7faf6}
.kh-add-previous-live>span.dashicons{width:14px;height:14px;font-size:14px}
.kh-add-previous-live input{display:none!important}
.kh-live-restart-extra{display:block}
.kh-restart-preview{position:relative;min-width:0;height:56px;display:flex;align-items:center;justify-content:center;gap:5px;overflow:hidden;border:1px solid #d7ddd5;border-radius:10px;background:#fff;color:#7a847d}
.kh-restart-preview>span{width:14px;height:14px;font-size:14px}
.kh-restart-preview>strong{font-size:8px;font-weight:800;white-space:nowrap}
.kh-restart-preview.has-image img{width:100%;height:100%;display:block;object-fit:cover}
.kh-restart-preview .kh-scan-remove{top:4px;right:4px;width:24px;height:24px}
.kh-previous-warning{padding:8px 9px;border:1px solid #ead7b5;border-radius:10px;background:#fffaf0;display:grid;gap:5px;color:#5e5038}
.kh-previous-warning>strong{font-size:9px;font-weight:900;color:#483d2d}
.kh-previous-warning>span{font-size:8px;font-weight:650;line-height:1.35}
.kh-previous-warning>div{display:flex;gap:5px}
.kh-previous-warning button{min-height:30px;padding:0 9px;border:1px solid #d8c59f;border-radius:8px;background:#fff;color:#54482f;font:inherit;font-size:8px;font-weight:850;cursor:pointer}
.kh-previous-warning button:first-child{border-color:#294f38;background:#294f38;color:#fff}
@media(max-width:700px){
  .kh-live-previous-inline{margin:0 6px 6px;padding:6px;border-radius:10px;gap:5px}
  .kh-add-previous-live{min-height:34px;border-radius:8px;font-size:8px}
  .kh-restart-preview{height:45px;border-radius:8px}
  .kh-restart-preview>strong{font-size:7.5px}
  .kh-previous-warning{padding:7px;border-radius:8px;gap:4px}
  .kh-previous-warning>strong{font-size:8px}
  .kh-previous-warning>span{font-size:7.5px}
  .kh-previous-warning button{min-height:28px;padding:0 7px;font-size:7.5px}
}
@media(max-width:430px){
  .kh-live-previous-inline{margin:0 5px 5px;padding:5px}
  .kh-add-previous-live{min-height:32px;font-size:7.5px}
  .kh-restart-preview{height:42px}
}

/* V1.8.5 — station-scoped, compact handovers; respects the V1.8.4 scanner shell. */
.kh-live-station-picker{display:grid;gap:7px;margin:0 0 12px;padding:12px 14px;background:#fff;border:1px solid #e4e9e3;border-radius:14px}
.kh-live-station-picker>label{font-size:11px;font-weight:850;color:#283c2d}
.kh-live-station-picker select,.kh-station-editor input,.kh-station-editor select,.kh-emergency-handover input,.kh-emergency-handover select{width:100%;min-height:40px;padding:8px 11px;border:1px solid #dce3da;border-radius:10px;background:#fff;color:#26372b;font-size:12px}
.kh-live-station-picker small,.kh-live-takeovers small,.kh-missing-handover small{color:#66746b;font-size:10px;line-height:1.45}
.kh-live-takeovers{display:grid;gap:8px;margin-bottom:12px;padding:12px;border:1px solid #d7e5d5;border-radius:14px;background:#f6faf5}
.kh-live-takeovers h3{margin:0;font-size:13px;color:#304838}
.kh-live-takeovers form{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:8px 10px;border:1px solid #e1e9df;border-radius:10px;background:#fff}
.kh-live-takeovers form>div{display:grid;gap:3px}
.kh-live-takeovers strong{font-size:12px}
.kh-live-credit-preview{display:flex;justify-content:space-between;align-items:center;margin:10px 0 2px;padding:10px 12px;border:1px solid #e3ebdf;border-radius:11px;background:#f7faf5;font-size:11px;font-weight:700;color:#48624b}
.kh-live-credit-preview strong{font-size:14px;color:#25442d}
.kh-platform-validation{display:grid;gap:7px;margin:8px 0;padding:11px;border:1px solid #ecd9b4;border-radius:11px;background:#fffaf0;color:#5c4c32}
.kh-platform-validation[hidden]{display:none}
.kh-platform-validation strong{font-size:12px}
.kh-platform-validation p{margin:0;font-size:11px;line-height:1.5}
.kh-platform-validation button{justify-self:start}
.kh-validation-help{font-size:10px;color:#72654a}
.kh-handover-action{margin-top:7px;min-height:42px;border:1px solid #b8cbb9;color:#294d33}
.kh-station-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:12px 0}
.kh-station-editor>label,.kh-emergency-handover form>label{display:grid;gap:5px;font-size:11px;font-weight:700}
.kh-station-staff{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:9px 14px;margin:5px 0}
.kh-station-staff>strong,.kh-station-staff>p{width:100%;margin:0}
.kh-station-staff>p{font-size:11px;color:#68786d}
.kh-station-staff>label{display:flex;align-items:center;gap:5px;font-size:11px}
.kh-station-staff input[type=checkbox]{width:15px;height:15px;min-height:auto;padding:0}
.kh-station-editor>.kh-btn{justify-self:start}
.kh-missing-handover,.kh-cancel-draft{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:4px}
.kh-link-button{padding:0;border:0;background:none;font-size:10px;font-weight:700;text-decoration:underline;cursor:pointer;color:#536b58}
.kh-audit-evidence{padding:10px 12px;margin:9px 0;border:1px solid #e1e6df;border-radius:10px;background:#fff;font-size:11px}
.kh-audit-evidence summary{font-weight:750;cursor:pointer}
.kh-audit-evidence a{display:inline-block;margin:8px 5px 5px 0;font-size:11px}
.kh-audit-evidence form{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.kh-audit-evidence form input{flex:1;min-width:180px;padding:8px;border:1px solid #dce4da;border-radius:9px}
.kh-review-text{color:#aa662b;font-weight:750}
.kh-emergency-handover form{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin-top:9px}
.kh-emergency-handover form label{flex:1;min-width:170px}
.kh-evidence-locked-message{font-size:11px;color:#65736a;margin:3px 0 10px}
.kh-locked-evidence{display:none}
@media(max-width:650px){
  .kh-live-station-picker{margin-bottom:9px;padding:9px;border-radius:11px}
  .kh-live-station-picker select{min-height:38px}
  .kh-station-editor{grid-template-columns:1fr;gap:9px}
  .kh-live-takeovers{padding:9px}
  .kh-live-takeovers form{padding:9px}
  .kh-handover-action{min-height:40px}
  .kh-live-credit-preview{padding:8px 10px}
}

/* V1.8.6 — simple Auto / Manual switch */
.kh-mode-switch{display:flex;gap:4px;background:#f1f2f4;border-radius:14px;padding:4px;margin-bottom:10px;width:100%;max-width:420px}
.kh-mode-button{flex:1;border:0;border-radius:11px;background:transparent;color:#49505a;padding:12px 18px;font:inherit;font-weight:700;cursor:pointer}
.kh-mode-button.is-active{background:#fff;color:#151515;box-shadow:0 1px 5px rgba(0,0,0,.08)}
.kh-mode-help{font-size:13px;color:#626873;margin:0 0 14px;line-height:1.5}
.kh-manual-fields{padding:10px 0 14px}
.kh-manual-fields[hidden],.kh-simple-upload-panel[hidden]{display:none!important}
.kh-manual-intro{font-size:13px;color:#626873;margin:0 0 14px}
.kh-manual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kh-manual-fields label{display:flex;flex-direction:column;font-size:12px;font-weight:650;color:#4f5560;gap:6px}
.kh-manual-fields input,.kh-manual-fields textarea{width:100%;max-width:100%;box-sizing:border-box;min-width:0;border:1px solid #dfe2e6;border-radius:10px;padding:11px 12px;font:inherit;font-size:14px;background:#fff;color:#151515}
.kh-manual-platforms{display:grid;gap:12px;margin:14px 0}
.kh-manual-platform{border:1px solid #eceef0;border-radius:12px;padding:13px}
.kh-manual-platform .kh-manual-check{display:flex;flex-direction:row;align-items:center;font-size:14px;color:#171717;font-weight:700;gap:8px;margin-bottom:12px}
.kh-manual-check input{width:auto}
.kh-manual-platform-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kh-manual-reason span{font-weight:400;color:#9a4545}
@media(max-width:580px){.kh-mode-switch{max-width:none}.kh-manual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kh-manual-grid label:first-child,.kh-manual-grid label:last-child{grid-column:1/-1}.kh-manual-platform-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}}

.kh-manual-audit{padding:10px 14px;font-size:12px;color:#6b4a24;background:#fff9ec;border-radius:10px;margin:8px 0}.kh-manual-audit strong{color:#9b5b16}

/* V1.8.9: compact date/time-only correction for partially read Auto screenshots. */
.kh-auto-time-confirm{margin:11px 0 13px;padding:13px;border-radius:12px;border:1px solid #d9e4d9;background:#f6f9f6;color:#203f30}
.kh-auto-time-confirm[hidden]{display:none!important}
.kh-auto-time-confirm strong{display:block;font-size:13px;margin-bottom:5px}
.kh-auto-time-confirm p{font-size:11px;line-height:1.45;margin:0 0 10px;color:#506357}
.kh-time-confirm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.kh-time-confirm-grid label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:700;min-width:0}
.kh-time-confirm-grid input{width:100%;min-width:0;box-sizing:border-box;background:white;border:1px solid #d1ded4;border-radius:9px;padding:10px 9px;color:#24392a;font-size:14px;min-height:40px}
.kh-auto-time-confirm small{display:block;margin-top:9px;color:#48664f;font-size:10px;line-height:1.4}
@media(max-width:370px){.kh-time-confirm-grid{grid-template-columns:1fr}}

.kh-live-scan-message.is-info{border-color:#d9e4d9;background:#f4f8f4;color:#345e40}

/* V1.8.12 — Staff Home only: clear, app-style performance-first dashboard.
   All styles are scoped to the home view; management and other HR pages stay intact. */
.kh-tab-home .kh-home-v2{width:100%;max-width:980px;margin:0 auto;color:#18281e}
.kh-tab-home .kh-home-welcome{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:29px}
.kh-tab-home .kh-home-welcome-copy{min-width:0}
.kh-tab-home .kh-home-date{display:block;margin:0 0 9px;color:#786a50;font-size:13px;line-height:1.4;font-weight:700}
.kh-tab-home .kh-home-welcome h1{margin:0;color:#1b3222;font-size:clamp(28px,3.3vw,38px);font-weight:800;line-height:1.16;letter-spacing:-1.05px;overflow-wrap:anywhere}
.kh-tab-home .kh-home-welcome-dot{color:#b58c50}
.kh-tab-home .kh-home-welcome p{margin:9px 0 0;max-width:570px;color:#657269;font-size:15px;line-height:1.5}
.kh-tab-home .kh-home-monogram{display:grid;place-items:center;flex:0 0 auto;width:66px;height:66px;border-radius:21px;background:linear-gradient(145deg,#1e4d32,#123222);border:3px solid #fff;color:#fff;font-size:20px;font-weight:800;box-shadow:0 12px 24px rgba(17,55,32,.12)}
.kh-tab-home .kh-home-section{margin-top:30px}
.kh-tab-home .kh-home-section:first-of-type{margin-top:0}
.kh-tab-home .kh-home-section-heading{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:15px}
.kh-tab-home .kh-home-section-heading>div{min-width:0}
.kh-tab-home .kh-home-eyebrow{display:block;margin-bottom:4px;color:#93703a;font-size:11px;font-weight:800;letter-spacing:.1em}
.kh-tab-home .kh-home-section-heading h2{margin:0;color:#1b3223;font-size:24px;font-weight:800;letter-spacing:-.55px;line-height:1.24}
.kh-tab-home .kh-home-heading-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:0 10px;border-radius:12px;color:#24583a;font-size:14px;font-weight:750;text-decoration:none;white-space:nowrap}
.kh-tab-home .kh-home-heading-link .dashicons{font-size:17px;width:17px;height:17px}
.kh-tab-home .kh-home-heading-link:hover{background:#e9f0e8}
.kh-tab-home .kh-home-sales-card{position:relative;isolation:isolate;overflow:hidden;padding:27px 28px 23px;border-radius:25px;background:linear-gradient(125deg,#102c1d 0%,#1d492f 66%,#26593a 100%);color:#fff;box-shadow:0 18px 36px rgba(19,62,35,.15)}
.kh-tab-home .kh-home-sales-card:before{content:"";position:absolute;z-index:-1;right:-115px;top:-156px;width:380px;height:380px;border:1px solid rgba(255,255,255,.1);border-radius:50%;box-shadow:0 0 0 40px rgba(255,255,255,.025),0 0 0 85px rgba(255,255,255,.018)}
.kh-tab-home .kh-home-sales-head{display:flex;align-items:start;justify-content:space-between;gap:16px}
.kh-tab-home .kh-home-sales-label{display:block;color:#f7faf6;font-size:16px;font-weight:750;line-height:1.4}
.kh-tab-home .kh-home-sales-month{display:block;margin-top:4px;color:#b4cab9;font-size:13px;line-height:1.4}
.kh-tab-home .kh-home-sales-pill{padding:8px 12px;border:1px solid rgba(255,255,255,.17);border-radius:999px;background:rgba(255,255,255,.09);font-size:12px;font-weight:700;color:#ebf5ed;white-space:nowrap}
.kh-tab-home .kh-home-sales-total{display:flex;align-items:baseline;flex-wrap:wrap;gap:9px;margin:23px 0 7px;color:#fff;font-variant-numeric:tabular-nums}
.kh-tab-home .kh-home-sales-total>span{font-size:22px;font-weight:650;color:#c3d8c8}
.kh-tab-home .kh-home-sales-total>strong{min-width:0;font-size:clamp(36px,5vw,56px);line-height:1.08;font-weight:830;letter-spacing:-1.75px;overflow-wrap:anywhere}
.kh-tab-home .kh-home-sales-caption{margin:0;color:#c2d4c6;font-size:13px;line-height:1.5}
.kh-tab-home .kh-home-sales-platforms{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-top:24px;padding-top:19px;border-top:1px solid rgba(255,255,255,.2)}
.kh-tab-home .kh-home-platform-item{min-width:0;padding:1px 16px 1px 0}
.kh-tab-home .kh-home-platform-item+div{padding:1px 0 1px 21px;border-left:1px solid rgba(255,255,255,.19)}
.kh-tab-home .kh-home-platform-name{display:flex;align-items:center;gap:8px;color:#e4eee6;font-size:13px;font-weight:730}
.kh-tab-home .kh-home-platform-mark{display:inline-block;width:9px;height:9px;flex:0 0 auto;border-radius:50%}
.kh-tab-home .kh-home-platform-mark.tiktok{background:#fff;box-shadow:2px 1px 0 #fa567e,-2px -1px 0 #69deee}
.kh-tab-home .kh-home-platform-mark.shopee{background:#ff985b}
.kh-tab-home .kh-home-platform-item strong{display:block;margin:8px 0 4px;color:#fff;font-size:clamp(16px,2.2vw,22px);line-height:1.25;font-weight:780;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.kh-tab-home .kh-home-platform-item small{display:block;color:#bed0c3;font-size:12px;line-height:1.4}
.kh-tab-home .kh-home-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:13px}
.kh-tab-home .kh-home-metric{display:flex;flex-direction:column;min-width:0;min-height:134px;padding:18px 15px 16px;border:1px solid #e5e9e1;border-radius:19px;background:#fff;box-shadow:0 4px 15px rgba(28,48,32,.035)}
.kh-tab-home .kh-home-metric-icon{display:grid;place-items:center;width:32px;height:32px;margin-bottom:13px;border-radius:10px;background:#edf4eb;color:#27583c}
.kh-tab-home .kh-home-metric-icon .dashicons{width:18px;height:18px;font-size:18px}
.kh-tab-home .kh-home-metric small{display:block;color:#68766d;font-size:13px;line-height:1.4;font-weight:650}
.kh-tab-home .kh-home-metric strong{display:block;margin-top:5px;color:#1c3927;font-size:clamp(20px,2.3vw,27px);line-height:1.15;letter-spacing:-.55px;font-weight:810;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.kh-tab-home .kh-home-empty-note{margin:13px 0 0;color:#6d796e;font-size:13px;line-height:1.5}
.kh-tab-home .kh-home-leave-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.kh-tab-home .kh-home-leave-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:193px;padding:20px 18px;border:1px solid #e7ebe4;border-radius:21px;background:#fff}
.kh-tab-home .kh-home-leave-card.annual{background:#eef5ed;border-color:#dce9db}
.kh-tab-home .kh-home-leave-card.medical{background:#f7f7fa;border-color:#e9e9f0}
.kh-tab-home .kh-home-leave-card.emergency{background:#faf4e9;border-color:#f0e6d4}
.kh-tab-home .kh-home-leave-symbol{display:grid;place-items:center;width:40px;height:40px;margin-bottom:16px;border-radius:13px;background:rgba(255,255,255,.77);color:#2e6846}
.kh-tab-home .kh-home-leave-card.medical .kh-home-leave-symbol{color:#5f6585}
.kh-tab-home .kh-home-leave-card.emergency .kh-home-leave-symbol{color:#9a6a2f}
.kh-tab-home .kh-home-leave-symbol .dashicons{width:22px;height:22px;font-size:22px}
.kh-tab-home .kh-home-leave-label{font-size:15px;line-height:1.35;font-weight:760;color:#253a2c}
.kh-tab-home .kh-home-leave-number{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin-top:10px;color:#182c21;font-size:36px;line-height:1.08;letter-spacing:-1px;font-weight:850;font-variant-numeric:tabular-nums}
.kh-tab-home .kh-home-leave-number span{font-size:15px;letter-spacing:0;font-weight:650;color:#5d6a60}
.kh-tab-home .kh-home-leave-card>small{margin-top:6px;color:#68766d;font-size:12px;line-height:1.45}
.kh-tab-home .kh-home-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.kh-tab-home .kh-home-quick-action{display:flex;align-items:center;gap:12px;min-width:0;min-height:89px;padding:15px 14px;border:1px solid #e4e9e1;border-radius:18px;background:#fff;color:#1f3828;text-decoration:none;box-shadow:0 4px 15px rgba(28,48,32,.035);transition:transform .15s ease,box-shadow .15s ease}
.kh-tab-home .kh-home-quick-action.live{background:#f0f5ef;border-color:#dbe9db}
.kh-tab-home .kh-home-quick-action:hover{transform:translateY(-2px);box-shadow:0 9px 23px rgba(28,48,32,.08)}
.kh-tab-home .kh-home-quick-icon{display:grid;place-items:center;flex:0 0 auto;width:43px;height:43px;border-radius:13px;background:#edf2eb;color:#26543a}
.kh-tab-home .kh-home-quick-action.live .kh-home-quick-icon{background:#1e4a31;color:#fff}
.kh-tab-home .kh-home-quick-icon .dashicons{font-size:22px;width:22px;height:22px}
.kh-tab-home .kh-home-quick-copy{display:block;flex:1;min-width:0}
.kh-tab-home .kh-home-quick-copy strong{display:block;font-size:15px;line-height:1.25;font-weight:780}
.kh-tab-home .kh-home-quick-copy small{display:block;margin-top:4px;color:#738075;font-size:12px;line-height:1.4}
.kh-tab-home .kh-home-quick-action>.dashicons{flex:0 0 auto;font-size:18px;width:18px;height:18px;color:#76907a}
.kh-tab-home .kh-home-recent-card{display:flex;align-items:center;gap:13px;min-height:92px;padding:17px 18px;border:1px solid #e5e9e3;border-radius:20px;background:#fff;color:#1d3727;text-decoration:none}
.kh-tab-home .kh-home-recent-icon{display:grid;place-items:center;flex:0 0 auto;width:46px;height:46px;border-radius:14px;background:#eaf2e9;color:#2f6945}
.kh-tab-home .kh-home-recent-icon .dashicons{font-size:22px;width:22px;height:22px}
.kh-tab-home .kh-home-recent-main{display:block;flex:1;min-width:0}
.kh-tab-home .kh-home-recent-main strong,.kh-tab-home .kh-home-recent-value strong{display:block;font-size:15px;line-height:1.3;font-weight:770;overflow-wrap:anywhere}
.kh-tab-home .kh-home-recent-main small,.kh-tab-home .kh-home-recent-value small{display:block;margin-top:5px;color:#718074;font-size:12px;line-height:1.4}
.kh-tab-home .kh-home-recent-value{display:block;text-align:right;min-width:0;font-variant-numeric:tabular-nums}
.kh-tab-home .kh-home-recent-card>.dashicons{flex:0 0 auto;width:18px;height:18px;color:#7a907d}
.kh-tab-home .kh-home-v2 a:focus-visible{outline:3px solid #c5943f;outline-offset:3px}

@media(max-width:820px){
  .kh-tab-home .kh-home-v2{padding:1px 0 8px}
  .kh-tab-home .kh-home-welcome{margin-bottom:26px}
  .kh-tab-home .kh-home-welcome h1{font-size:clamp(27px,6vw,34px)}
  .kh-tab-home .kh-home-monogram{width:54px;height:54px;border-radius:17px;font-size:17px}
  .kh-tab-home .kh-home-sales-card{padding:23px 21px 20px;border-radius:23px}
  .kh-tab-home .kh-home-sales-total>strong{font-size:clamp(34px,6vw,47px)}
  .kh-tab-home .kh-home-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .kh-tab-home .kh-home-leave-grid{gap:10px}
  .kh-tab-home .kh-home-leave-card{padding:18px 14px}
  .kh-tab-home .kh-home-quick-grid{grid-template-columns:1fr}
  .kh-tab-home .kh-home-quick-action{min-height:76px}
  .kh-tab-home .kh-home-section-heading h2{font-size:23px}
  .is-staff.kh-tab-home .kh-mobile-nav.kh-staff-nav small{font-size:11px;line-height:1.2}
  .is-staff.kh-tab-home .kh-mobile-nav.kh-staff-nav a{gap:3px}
}
@media(max-width:540px){
  .kh-tab-home .kh-home-welcome{gap:10px;margin-bottom:22px}
  .kh-tab-home .kh-home-date{font-size:12px;margin-bottom:7px}
  .kh-tab-home .kh-home-welcome h1{font-size:27px;letter-spacing:-.8px}
  .kh-tab-home .kh-home-welcome p{font-size:14px;margin-top:7px}
  .kh-tab-home .kh-home-monogram{width:47px;height:47px;border-radius:15px;font-size:15px}
  .kh-tab-home .kh-home-section{margin-top:27px}
  .kh-tab-home .kh-home-section-heading{margin-bottom:12px}
  .kh-tab-home .kh-home-section-heading h2{font-size:22px}
  .kh-tab-home .kh-home-heading-link{font-size:13px;padding:0 4px}
  .kh-tab-home .kh-home-sales-card{padding:20px 19px 18px}
  .kh-tab-home .kh-home-sales-label{font-size:15px}
  .kh-tab-home .kh-home-sales-month{font-size:12px}
  .kh-tab-home .kh-home-sales-total{gap:7px;margin-top:20px}
  .kh-tab-home .kh-home-sales-total>span{font-size:19px}
  .kh-tab-home .kh-home-sales-total>strong{font-size:clamp(31px,8vw,43px);letter-spacing:-1.1px}
  .kh-tab-home .kh-home-sales-platforms{margin-top:20px;padding-top:17px}
  .kh-tab-home .kh-home-platform-item{padding-right:9px}
  .kh-tab-home .kh-home-platform-item+div{padding-left:14px}
  .kh-tab-home .kh-home-platform-item strong{font-size:16px;letter-spacing:-.35px}
  .kh-tab-home .kh-home-platform-name{font-size:12px}
  .kh-tab-home .kh-home-platform-item small{font-size:12px}
  .kh-tab-home .kh-home-metric{min-height:122px;padding:15px 13px}
  .kh-tab-home .kh-home-metric-icon{margin-bottom:10px}
  .kh-tab-home .kh-home-metric small{font-size:13px}
  .kh-tab-home .kh-home-metric strong{font-size:24px}
  .kh-tab-home .kh-home-leave-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kh-tab-home .kh-home-leave-card.annual{grid-column:1/-1;min-height:153px}
  .kh-tab-home .kh-home-leave-card{min-height:177px}
  .kh-tab-home .kh-home-leave-symbol{width:35px;height:35px;margin-bottom:12px}
  .kh-tab-home .kh-home-leave-number{font-size:31px}
  .kh-tab-home .kh-home-leave-label{font-size:14px}
  .kh-tab-home .kh-home-recent-card{flex-wrap:wrap;gap:11px;padding:14px}
  .kh-tab-home .kh-home-recent-value{order:3;flex-basis:100%;text-align:left;padding-left:58px}
  .kh-tab-home .kh-home-recent-card>.dashicons{margin-left:auto}
}
@media(max-width:350px){
  .kh-tab-home .kh-home-sales-pill{font-size:11px;padding:7px 9px}
  .kh-tab-home .kh-home-sales-total>strong{font-size:30px}
  .kh-tab-home .kh-home-platform-item strong{font-size:15px}
  .kh-tab-home .kh-home-heading-link{font-size:12px}
  .kh-tab-home .kh-home-metric strong{font-size:21px}
}
@media(prefers-reduced-motion:reduce){.kh-tab-home .kh-home-quick-action{transition:none}}
