/* v128 Premium Housekeeping — Housekeeper + Head Housekeeper screens.
   Visual language follows "Housekeeping Premium" (Claude design). */
:root{
  --phk-bg:#f6f4fb;--phk-ink:#1c1830;--phk-mu:#6b6780;--phk-mu2:#8a849c;--phk-mu3:#a39db5;
  --phk-bd:#ebe8f3;--phk-bd2:#e6e2ef;--phk-soft:#f1eef8;--phk-soft2:#f8f7fb;
  --phk-grad:linear-gradient(135deg,#7c3aed,#db2777);--phk-violet:#7c3aed;--phk-green:#12804a;--phk-red:#e11d48;
  --phk-font:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
}
@keyframes phkBlink{0%,100%{opacity:1}50%{opacity:.15}}
@keyframes phkUp{from{transform:translateY(24px);opacity:.4}to{transform:none;opacity:1}}
@keyframes phkFade{from{opacity:0}to{opacity:1}}
@keyframes phkPop{from{transform:scale(.94);opacity:0}to{transform:none;opacity:1}}

/* Page shell for hk / head roles */
html body.phk-role{background:var(--phk-bg)}
html body.phk-role #app{background:var(--phk-bg);padding-bottom:0!important}
html body.phk-role .topbar{position:relative!important;top:auto!important;background:var(--phk-bg)!important;border-bottom:0!important;box-shadow:none!important;height:auto!important;min-height:52px;padding:8px 14px 2px!important}
html body.phk-role .topbar .brand-text{font-family:var(--phk-font)}
html body.phk-role .nav-tabs{position:relative!important;top:auto!important;bottom:auto!important;background:var(--phk-bg)!important;border:0!important;box-shadow:none!important;min-height:0!important;padding:4px 14px 6px!important;gap:6px!important}
html body.phk-role .nav-tab,html body.phk-role .nav-more-trigger{flex:none!important;max-width:none!important;min-width:0!important;overflow:visible!important;height:34px;min-height:34px!important;padding:0 13px!important;border-radius:99px!important;border:1px solid var(--phk-bd2)!important;background:#fff!important;color:#4a4560!important;font:700 12.5px var(--phk-font)!important;margin:0!important;box-shadow:none!important;white-space:nowrap!important;display:inline-flex!important;align-items:center;gap:5px;width:auto!important}
html body.phk-role .nav-tab.active{background:var(--phk-ink)!important;border-color:var(--phk-ink)!important;color:#fff!important}
html body.phk-role .nav-tab::after,html body.phk-role .nav-tab::before{display:none!important}
html body.phk-role #globalDatePicker{width:118px!important;min-width:118px!important;font-size:14px!important}

html body .phk-page,html body #page-hk_rooms.phk-page,html body #page-verify.phk-page{padding:0!important;max-width:none!important;background:var(--phk-bg)!important;margin:0!important}
.phk-page>:not(.phk-root){display:none!important}
.phk-root{font-family:var(--phk-font);color:var(--phk-ink);-webkit-font-smoothing:antialiased;max-width:560px;margin:0 auto;padding:0 0 calc(110px + env(safe-area-inset-bottom));box-sizing:border-box}
.phk-root *,.phk-layer *{box-sizing:border-box}
.phk-root button,.phk-layer button{font-family:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.phk-root button:disabled,.phk-layer button:disabled{cursor:default}
.phk-root input,.phk-root textarea,.phk-layer input,.phk-layer textarea{font-family:inherit}

/* Sticky header */
.phk-top{position:sticky;top:0;z-index:30;background:var(--phk-bg);padding:8px 16px 10px;display:flex;flex-direction:column;gap:10px}
.phk-top.hhk{gap:12px}
.phk-hrow{display:flex;align-items:center;gap:10px}
.phk-avatar{width:40px;height:40px;border-radius:14px;background:var(--phk-grad);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;flex:none}
.phk-avatar.dark{background:var(--phk-ink)}
.phk-htxt{flex:1;min-width:0}
.phk-title{font-size:16px;font-weight:800;letter-spacing:-.01em}
.phk-sub{font-size:12px;color:var(--phk-mu);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phk-bell{position:relative;width:40px;height:40px;border-radius:13px;border:1px solid var(--phk-bd2);background:#fff;color:var(--phk-ink);display:flex;align-items:center;justify-content:center;padding:0;flex:none}
.phk-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;border-radius:9px;background:var(--phk-red);color:#fff;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid var(--phk-bg);box-sizing:content-box;padding:0 3px}
.phk-badge.violet{background:var(--phk-violet)}
.phk-prog{background:#fff;border:1px solid var(--phk-bd);border-radius:16px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.phk-prog-top{display:flex;align-items:baseline;justify-content:space-between}
.phk-prog-top b{font-size:17px;font-weight:800}
.phk-prog-top .of{color:var(--phk-mu2)}
.phk-prog-top .lbl{font-size:13px;font-weight:700}
.phk-prog-top .pct{font-size:12px;font-weight:700;color:var(--phk-violet)}
.phk-bar{display:flex;gap:2px;height:6px;border-radius:99px;background:#f0edf6;overflow:hidden}
.phk-bar i{display:block;height:100%}
.phk-prog-line{font-size:11.5px;color:var(--phk-mu);font-weight:500}
.phk-filters{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.phk-filters::-webkit-scrollbar{display:none}
.phk-filter{flex:none;height:34px;padding:0 12px;border-radius:99px;border:1px solid var(--phk-bd2);background:#fff;color:#4a4560;font-size:12.5px;font-weight:700;display:flex;align-items:center;gap:6px}
.phk-filter .n{min-width:18px;height:18px;border-radius:9px;background:var(--phk-soft);font-size:10.5px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}
.phk-filter.on{background:var(--phk-ink);border-color:var(--phk-ink);color:#fff}
.phk-filter.on .n{background:rgba(255,255,255,.18)}

/* Room rows */
.phk-list{padding:2px 10px 24px;display:flex;flex-direction:column;gap:6px}
.phk-row{position:relative;z-index:1;flex:none;display:grid;grid-template-columns:18px 48px minmax(0,1fr) auto 24px;align-items:center;column-gap:5px;height:58px;padding:0 2px 0 0;border-radius:15px;border:1px solid var(--rbd);background:var(--rbg);box-shadow:0 1px 2px rgba(28,24,48,.04);user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transition:transform .18s ease,height .22s ease,background .3s,border-color .3s}
.phk-row.tall{height:82px}
.phk-root.comfy .phk-row{height:66px}.phk-root.comfy .phk-row.tall{height:90px}
.phk-row.dragging{z-index:5;transition:none;box-shadow:0 16px 32px rgba(40,20,80,.2)}
.phk-grip{height:100%;display:flex;align-items:center;justify-content:center;color:#c3bdd3;cursor:grab;touch-action:none;padding-left:4px}
.phk-num{font-size:21px;font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums;line-height:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.phk-num.long{font-size:13px;letter-spacing:-.01em;white-space:normal;line-height:1.1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.phk-num span{display:inline-block}
.phk-num .pri{color:#c0262d}
.phk-num .blink{animation:phkBlink 1.1s ease-in-out infinite}
.phk-mid{min-width:0;display:flex;flex-direction:column;gap:4px}
.phk-l1{display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden}
.phk-type{font-size:9.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--phk-mu2);min-width:0;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.phk-chip{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:99px;font-size:11px;font-weight:700;white-space:nowrap;flex:none}
.phk-note{display:flex;align-items:center;gap:4px;min-width:0;color:var(--phk-mu)}
.phk-note span{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phk-note.late{color:#b45309;font-weight:700}
.phk-note.info{color:#6526d1;font-weight:600}
.phk-rtimer{font-size:23px;font-weight:800;letter-spacing:-.02em;color:#9a5200;font-variant-numeric:tabular-nums;line-height:1}
.phk-rsub{font-size:11.5px;color:var(--phk-mu);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phk-acts{display:flex;align-items:center;gap:6px}
.phk-more{width:24px;height:36px;border:0;background:transparent;color:#9a94ad;display:flex;align-items:center;justify-content:center;padding:0}
.phk-btn-start{height:34px;padding:0 12px;border:0;border-radius:11px;background:var(--phk-grad);color:#fff;font-size:12.5px;font-weight:700;display:flex;align-items:center;gap:6px;box-shadow:0 4px 12px rgba(124,58,237,.28);white-space:nowrap}
.phk-btn-pause{width:38px;height:38px;border-radius:12px;border:1px solid #f0d9a6;background:#fff;color:#9a5200;display:flex;align-items:center;justify-content:center;padding:0}
.phk-btn-finish{height:38px;padding:0 13px;border:0;border-radius:12px;background:var(--phk-green);color:#fff;font-size:12.5px;font-weight:700;display:flex;align-items:center;gap:5px;white-space:nowrap}
.phk-btn-resume{height:34px;padding:0 12px;border-radius:11px;border:1.5px solid var(--phk-violet);background:#fff;color:var(--phk-violet);font-size:12.5px;font-weight:700;display:flex;align-items:center;gap:6px;white-space:nowrap}
.phk-btn-rework{height:34px;padding:0 12px;border:0;border-radius:11px;background:var(--phk-red);color:#fff;font-size:12.5px;font-weight:700;white-space:nowrap;box-shadow:0 4px 12px rgba(225,29,72,.25)}
.phk-btn-inspect{height:34px;padding:0 13px;border:0;border-radius:11px;background:var(--phk-grad);color:#fff;font-size:12.5px;font-weight:700;box-shadow:0 4px 12px rgba(124,58,237,.28);white-space:nowrap}
.phk-done{display:flex;align-items:center;gap:5px;padding-right:4px;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.phk-done i{width:20px;height:20px;border-radius:10px;color:#fff;display:flex;align-items:center;justify-content:center}
.phk-vtick{width:22px;height:22px;border-radius:11px;background:#0b5a91;color:#fff;display:flex;align-items:center;justify-content:center;margin-right:4px}
.phk-with{font-size:11.5px;font-weight:700;color:#b3133a;padding-right:4px;white-space:nowrap}
.phk-ltimer{font-size:15px;font-weight:800;font-variant-numeric:tabular-nums;padding-right:4px}
.phk-busy{opacity:.55;pointer-events:none}
.phk-hint{text-align:center;font-size:11px;color:var(--phk-mu3);padding-top:6px}
.phk-empty{margin:18px 16px;background:#fff;border:1px solid var(--phk-bd);border-radius:20px;padding:26px 18px;text-align:center;color:var(--phk-mu)}
.phk-empty b{display:block;color:var(--phk-ink);font-size:16px;margin-bottom:4px}

/* Overlay layer: sheets, popups, camera, lightbox, toast */
.phk-layer{font-family:var(--phk-font);color:var(--phk-ink);-webkit-font-smoothing:antialiased}
.phk-scrim{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(18,12,32,.42);z-index:9400;animation:phkFade .18s ease}
.phk-sheet{position:fixed;left:0;right:0;bottom:0;margin:0 auto;width:100%;max-width:560px;max-height:91vh;max-height:91dvh;background:#fff;border-radius:30px 30px 0 0;z-index:9401;display:flex;flex-direction:column;box-shadow:0 -12px 40px rgba(20,10,40,.18);animation:phkUp .22s ease}
.phk-sheet.short{max-height:88vh;max-height:88dvh}
.phk-grab{width:38px;height:5px;border-radius:3px;background:#dcd7e8;margin:10px auto 2px;flex:none}
.phk-sbody{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:8px 20px 18px;display:flex;flex-direction:column;gap:20px}
.phk-sbody.g18{gap:18px}
.phk-sfoot{flex:none;padding:12px 20px calc(18px + env(safe-area-inset-bottom));border-top:1px solid #f0edf6;display:flex;gap:10px}
.phk-shead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.phk-eyebrow{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--phk-mu2)}
.phk-bignum{display:flex;align-items:center;gap:10px;margin-top:2px;flex-wrap:wrap}
.phk-bignum span.n{font-size:40px;font-weight:800;letter-spacing:-.04em;line-height:1.05}
.phk-bignum .phk-chip{height:24px;padding:0 10px;font-size:12px}
.phk-x{width:36px;height:36px;border-radius:18px;border:0;background:#f3f1f8;color:#4a4560;display:flex;align-items:center;justify-content:center;padding:0;flex:none}
.phk-timercard{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-radius:18px;background:#fffaf0;border:1px solid #f3d189}
.phk-timercard .k{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#9a5200}
.phk-timercard .v{font-size:30px;font-weight:800;letter-spacing:-.02em;color:#9a5200;font-variant-numeric:tabular-nums;line-height:1.1}
.phk-timercard .r{font-size:12px;color:#9a5200;font-weight:600;text-align:right}
.phk-sec{display:flex;flex-direction:column;gap:8px}
.phk-sec-t{font-size:12px;font-weight:700;color:#4a4560}
.phk-sec-t .soft{font-weight:500;color:var(--phk-mu2)}
.phk-seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:15px;background:var(--phk-soft)}
.phk-seg button{height:46px;border:0;border-radius:12px;background:transparent;color:#7d7791;font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px}
.phk-seg button.on{background:#fff;color:var(--phk-ink);box-shadow:0 2px 8px rgba(40,20,80,.10)}
.phk-seg.locked button:not(.on){opacity:.55}
.phk-svc{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.phk-svc button{text-align:left;padding:12px;border-radius:16px;border:1.5px solid var(--phk-bd);background:#fff;display:flex;flex-direction:column;gap:8px;color:var(--phk-ink)}
.phk-svc button.on{border-color:var(--phk-violet);background:#f7f3ff}
.phk-svc .top{display:flex;justify-content:space-between;width:100%}
.phk-svc .ic{width:34px;height:34px;border-radius:11px;display:flex;align-items:center;justify-content:center}
.phk-svc .dot{width:18px;height:18px;border-radius:9px;border:2px solid #d4cfe0;box-sizing:border-box}
.phk-svc button.on .dot{border-color:var(--phk-violet);background:var(--phk-violet)}
.phk-svc .nm{font-size:13.5px;font-weight:700}
.phk-svc .ds{font-size:11.5px;color:var(--phk-mu);margin-top:2px}
.phk-svc.simple button{height:56px;align-items:center;justify-content:center;font-size:14px;font-weight:700;text-align:center}
.phk-info{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;background:var(--phk-soft2);font-size:13px;color:#4a4560;font-weight:500}
.phk-info .ic{width:30px;height:30px;border-radius:10px;background:#f1eaff;color:var(--phk-violet);display:flex;align-items:center;justify-content:center;flex:none}
.phk-fdnote{padding:12px 14px;border-radius:14px;background:#f6f2ff;border:1px solid #e4dafc}
.phk-fdnote .k{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--phk-violet)}
.phk-fdnote .v{font-size:14px;font-weight:600;margin-top:3px}
.phk-fdnote.late{background:#fff7ed;border-color:#fed7aa}.phk-fdnote.late .k{color:#b45309}
.phk-ta{width:100%;border:1px solid var(--phk-bd2);background:#faf9fc;border-radius:14px;padding:12px 14px;font-size:16px;color:var(--phk-ink);resize:none;outline:none}
.phk-ta:focus{border-color:#c9b8f7;background:#fff}
.phk-grid2{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.phk-grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}
.phk-kv{padding:10px 12px;border-radius:12px;background:var(--phk-soft2);min-width:0}
.phk-kv .k{font-size:11px;color:var(--phk-mu2);font-weight:600}
.phk-kv .v{font-size:13.5px;font-weight:700;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.phk-log{display:flex;flex-direction:column}
.phk-log div{display:grid;grid-template-columns:16px 72px 1fr;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #f2f0f7}
.phk-log i{width:8px;height:8px;border-radius:4px;background:#c9b8f7}
.phk-log .t{font-size:12px;color:var(--phk-mu2);font-variant-numeric:tabular-nums}
.phk-log .x{font-size:13px;font-weight:600}
.phk-bigbtn{flex:1;height:52px;border:0;border-radius:16px;font-size:15px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px}
.phk-bigbtn.grad{background:var(--phk-grad);color:#fff;box-shadow:0 8px 20px rgba(124,58,237,.28)}
.phk-bigbtn.green{background:var(--phk-green);color:#fff}
.phk-bigbtn.red{background:var(--phk-red);color:#fff}
.phk-bigbtn.ghost{border:1px solid var(--phk-bd2);background:#fff;color:var(--phk-ink)}
.phk-bigbtn.pause{flex:none;width:120px;border:1.5px solid #f0d9a6;background:#fff;color:#9a5200}
.phk-bigbtn.dark{background:var(--phk-ink);color:#fff}
.phk-tool{display:flex;gap:8px;flex-wrap:wrap}
.phk-tool button{height:38px;padding:0 13px;border-radius:12px;border:1px solid var(--phk-bd2);background:#fff;color:#4a4560;font-size:12.5px;font-weight:700;display:flex;align-items:center;gap:6px}

/* Photos */
.phk-thumbs{display:flex;gap:4px}
.phk-th{position:relative;width:40px;height:40px;border-radius:10px;border:0;padding:0;overflow:hidden;background:repeating-linear-gradient(135deg,#2b2834 0 6px,#34303f 6px 12px);color:#b9b3c9;display:flex;align-items:center;justify-content:center}
.phk-th.l{width:44px;height:44px}
.phk-img{position:absolute;top:0;right:0;bottom:0;left:0;background-size:cover;background-position:center;background-repeat:no-repeat}
.phk-pgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.phk-ph{position:relative;aspect-ratio:4/3;border-radius:14px;border:0;padding:0;overflow:hidden;background:repeating-linear-gradient(135deg,#2b2834 0 12px,#312d3b 12px 24px);color:#b9b3c9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:11px}
.phk-ph.big{width:100%;border-radius:16px}
.phk-ph .tag{position:absolute;left:6px;bottom:6px;right:6px;text-align:left;font-size:10.5px;font-weight:700;color:#fff;background:rgba(225,29,72,.92);border-radius:7px;padding:3px 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phk-ph .tag.ok{background:rgba(18,128,74,.94)}
.phk-ph .tag.neutral{background:rgba(28,24,48,.78)}

/* Rework */
.phk-rwbadge{height:24px;padding:0 10px;border-radius:99px;background:#ffdbe3;color:#b3133a;font-size:11.5px;font-weight:800;display:inline-flex;align-items:center;letter-spacing:.02em}
.phk-quote{padding:12px 14px;border-radius:14px;background:#fff6f8;border:1px solid #fbd0da;font-size:14px;font-weight:600;color:#3b1220}
.phk-issue{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:54px;padding:6px 8px 6px 12px;border-radius:15px;border:1px solid var(--phk-bd);background:#fff}
.phk-issue.fixed{border-color:#c6ead5;background:#f3fbf6}
.phk-tick{width:26px;height:26px;border-radius:8px;border:2px solid #d4cfe0;background:#fff;color:#fff;display:flex;align-items:center;justify-content:center;padding:0}
.phk-issue.fixed .phk-tick{border-color:var(--phk-green);background:var(--phk-green)}
.phk-issue .nm{font-size:14px;font-weight:700;cursor:pointer;background:none;border:0;padding:0;text-align:left;color:var(--phk-ink)}
.phk-issue.fixed .nm{color:var(--phk-mu2);text-decoration:line-through}
.phk-prev{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:56px;padding:6px 8px 6px 12px;border-radius:15px;border:1px solid #f3d189;background:#fffaf0}
.phk-prev.ok{border-color:#c6ead5;background:#f3fbf6}
.phk-prev .dot{width:22px;height:22px;border-radius:11px;background:#e2a019;color:#fff;display:flex;align-items:center;justify-content:center}
.phk-prev.ok .dot{background:var(--phk-green)}
.phk-prev .st{font-size:11.5px;font-weight:700;color:#b45309;margin-top:1px}
.phk-prev.ok .st{color:#11703f}
.phk-notready{padding:14px;border-radius:14px;background:var(--phk-soft2);font-size:13.5px;color:#4a4560;font-weight:500}
.phk-actpair{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
.phk-actpair .rw{height:60px;border-radius:18px;border:1.5px solid #f7b8c7;background:#fff2f5;color:#b3133a;font-size:16px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px}
.phk-actpair .ok{height:60px;border:0;border-radius:18px;background:var(--phk-green);color:#fff;font-size:16px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 8px 20px rgba(18,128,74,.25)}

/* Popups */
.phk-center{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(18,12,32,.55);z-index:9450;display:flex;align-items:center;justify-content:center;padding:20px;animation:phkFade .18s}
.phk-card{width:100%;max-width:420px;background:#fff;border-radius:28px;padding:22px 18px 18px;display:flex;flex-direction:column;gap:14px;box-shadow:0 30px 60px rgba(20,10,40,.3);animation:phkPop .2s ease;max-height:90vh;overflow:auto}
.phk-card-h{display:flex;align-items:center;gap:12px}
.phk-card-ic{width:48px;height:48px;border-radius:16px;background:#ffe4ea;color:var(--phk-red);display:flex;align-items:center;justify-content:center;flex:none}
.phk-card-ic.violet{background:#f1eaff;color:var(--phk-violet)}
.phk-card-t{font-size:19px;font-weight:800;letter-spacing:-.01em}
.phk-card-s{font-size:13px;color:var(--phk-mu)}
.phk-poprow{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border-radius:16px;border:1px solid #f7b8c7;background:#fff2f5;text-align:left;color:var(--phk-ink);width:100%}
.phk-poprow .n{font-size:22px;font-weight:800;letter-spacing:-.03em;color:#b3133a}
.phk-poprow .s{display:block;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phk-poprow .m{display:block;font-size:11.5px;color:#8a5262;margin-top:1px}
.phk-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.phk-pair button{height:50px;border-radius:15px;font-size:14.5px;font-weight:700}
.phk-pair .l{border:1px solid var(--phk-bd2);background:#fff;color:var(--phk-ink)}
.phk-pair .r{border:0;background:var(--phk-ink);color:#fff}
.phk-pair .g{border:0;background:var(--phk-grad);color:#fff;box-shadow:0 8px 20px rgba(124,58,237,.28)}

/* Full screens (all rework, builder) */
.phk-full{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9420;background:var(--phk-bg);display:flex;flex-direction:column;animation:phkFade .15s}
.phk-full-in{width:100%;max-width:560px;margin:0 auto;flex:1;min-height:0;display:flex;flex-direction:column;background:var(--phk-bg)}
.phk-fhead{flex:none;padding:calc(14px + env(safe-area-inset-top)) 16px 12px;display:flex;align-items:center;gap:10px;background:#fff;border-bottom:1px solid var(--phk-bd)}
.phk-back{width:38px;height:38px;border-radius:12px;border:1px solid var(--phk-bd2);background:#fff;color:var(--phk-ink);display:flex;align-items:center;justify-content:center;padding:0;flex:none}
.phk-fbody{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:14px 14px 30px;display:flex;flex-direction:column;gap:14px}
.phk-ffoot{flex:none;padding:12px 16px calc(16px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--phk-bd)}
.phk-rwcard{background:#fff;border:1px solid #f7b8c7;border-radius:22px;padding:14px;display:flex;flex-direction:column;gap:12px}
.phk-pill{height:28px;padding:0 10px;border-radius:99px;background:#ffdbe3;color:#b3133a;font-size:12px;font-weight:700;display:inline-flex;align-items:center}
.phk-camcard{background:var(--phk-ink);border-radius:22px;padding:16px;color:#fff;display:flex;flex-direction:column;gap:12px}
.phk-camcard .ic{width:44px;height:44px;border-radius:14px;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;flex:none}
.phk-camcard .row{display:flex;align-items:center;gap:12px}
.phk-camcard .btns{display:grid;grid-template-columns:1.4fr 1fr;gap:8px}
.phk-camcard .btns button:first-child{height:46px;border:0;border-radius:14px;background:#fff;color:var(--phk-ink);font-size:14px;font-weight:800}
.phk-camcard .btns button:last-child{height:46px;border-radius:14px;border:1px solid rgba(255,255,255,.28);background:transparent;color:#fff;font-size:14px;font-weight:700}
.phk-strip{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}
.phk-strip .it{flex:none;width:96px;display:flex;flex-direction:column;gap:5px}
.phk-strip .box{position:relative;width:96px;height:96px;border-radius:14px;overflow:hidden}
.phk-strip .box>button:first-child{position:absolute;top:0;right:0;bottom:0;left:0;border:0;padding:0;background:repeating-linear-gradient(135deg,#2b2834 0 8px,#34303f 8px 16px)}
.phk-strip .rm{position:absolute;top:5px;right:5px;width:22px;height:22px;border-radius:11px;border:0;background:rgba(0,0,0,.6);color:#fff;display:flex;align-items:center;justify-content:center;padding:0}
.phk-strip .tg{font-size:10.5px;font-weight:700;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.phk-bissue{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:6px;align-items:center}
.phk-bissue .t{height:48px;display:flex;align-items:center;gap:12px;padding:0 12px;border-radius:14px;border:1px solid var(--phk-bd);background:#fff;text-align:left;color:var(--phk-ink)}
.phk-bissue.on .t{border-color:#f7b8c7;background:#fff2f5}
.phk-bissue .bx{width:22px;height:22px;border-radius:7px;border:2px solid #d4cfe0;background:#fff;color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.phk-bissue.on .bx{border-color:var(--phk-red);background:var(--phk-red)}
.phk-bissue .t span:last-child{font-size:14px;font-weight:600}
.phk-bissue .c{position:relative;width:42px;height:48px;border-radius:14px;border:1px solid var(--phk-bd);background:#fff;color:#4a4560;display:flex;align-items:center;justify-content:center;padding:0}
.phk-bissue .c b{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;border-radius:9px;background:var(--phk-red);color:#fff;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center}
.phk-custom{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin-top:2px}
.phk-custom input{height:46px;border-radius:14px;border:1px dashed #d4cfe0;background:#fff;padding:0 14px;font-size:16px;outline:none;min-width:0}
.phk-custom button{height:46px;padding:0 16px;border-radius:14px;border:0;background:var(--phk-soft);color:#4a4560;font-size:13.5px;font-weight:700}
.phk-send{width:100%;height:54px;border:0;border-radius:16px;background:linear-gradient(135deg,#e11d48,#db2777);color:#fff;font-size:15px;font-weight:800;box-shadow:0 8px 20px rgba(225,29,72,.25)}
.phk-send:disabled{opacity:.45}

/* Camera */
.phk-cam{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9460;background:#000;color:#fff;display:flex;flex-direction:column}
.phk-cam-h{flex:none;padding:calc(14px + env(safe-area-inset-top)) 16px 10px;display:flex;align-items:center;justify-content:space-between;width:100%;max-width:560px;margin:0 auto}
.phk-round{width:40px;height:40px;border-radius:20px;border:0;background:rgba(255,255,255,.14);color:#fff;display:flex;align-items:center;justify-content:center;padding:0}
.phk-view{flex:1;min-height:0;margin:0 12px;border-radius:24px;position:relative;overflow:hidden;background:repeating-linear-gradient(135deg,#16141b 0 18px,#1b1922 18px 36px);display:flex;align-items:center;justify-content:center;width:calc(100% - 24px);max-width:536px;align-self:center}
.phk-corner{position:absolute;width:28px;height:28px;border:3px solid rgba(255,255,255,.8)}
.phk-corner.a{top:18px;left:18px;border-right:0;border-bottom:0;border-radius:6px 0 0 0}
.phk-corner.b{top:18px;right:18px;border-left:0;border-bottom:0;border-radius:0 6px 0 0}
.phk-corner.c{bottom:18px;left:18px;border-right:0;border-top:0;border-radius:0 0 0 6px}
.phk-corner.d{bottom:18px;right:18px;border-left:0;border-top:0;border-radius:0 0 6px 0}
.phk-preset{position:absolute;top:18px;left:50%;transform:translateX(-50%);height:30px;padding:0 12px;border-radius:99px;background:var(--phk-red);font-size:12px;font-weight:700;display:flex;align-items:center;white-space:nowrap}
.phk-camhint{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:11px;color:#8f89a3;letter-spacing:.08em;text-align:center;padding:0 30px}
.phk-shutterbar{flex:none;height:150px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 28px calc(20px + env(safe-area-inset-bottom));width:100%;max-width:560px;margin:0 auto}
.phk-gal{justify-self:start;width:50px;height:50px;border-radius:14px;border:1.5px solid rgba(255,255,255,.35);background:rgba(255,255,255,.08);color:#fff;display:flex;align-items:center;justify-content:center;padding:0}
.phk-shutter{width:78px;height:78px;border-radius:39px;border:4px solid #fff;background:transparent;padding:5px;display:flex;align-items:center;justify-content:center}
.phk-shutter span{width:100%;height:100%;border-radius:50%;background:#fff;display:block}
.phk-camdone{justify-self:end;height:44px;padding:0 16px;border-radius:22px;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:14px;font-weight:700}
.phk-review{flex:none;padding:14px 14px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;width:100%;max-width:560px;margin:0 auto}
.phk-tags{display:flex;flex-wrap:wrap;gap:6px;max-height:30vh;overflow:auto}
.phk-tags button{height:30px;padding:0 11px;border-radius:99px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#e9e6f2;font-size:12px;font-weight:600}
.phk-tags button.on{border-color:var(--phk-red);background:var(--phk-red);color:#fff}
.phk-rv3{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:8px}
.phk-rv3 button{height:50px;border-radius:15px;font-size:14px;font-weight:800}
.phk-rv3 .a{border:1px solid rgba(255,255,255,.25);background:transparent;color:#fff;font-weight:700}
.phk-rv3 .b{border:0;background:var(--phk-grad);color:#fff}
.phk-rv3 .c{border:0;background:#fff;color:var(--phk-ink)}
.phk-shot{position:absolute;top:0;right:0;bottom:0;left:0;background-size:contain;background-position:center;background-repeat:no-repeat;background-color:#111}

/* Lightbox */
.phk-lb{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9480;background:#07060a;display:flex;flex-direction:column;color:#fff}
.phk-lb-stage{flex:1;min-height:0;overflow:hidden;touch-action:none;position:relative;cursor:zoom-in}
.phk-lb-in{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;transform-origin:center center}
.phk-lb-img{width:100%;height:100%;pointer-events:none;background-size:contain;background-position:center;background-repeat:no-repeat}
.phk-lb-foot{flex:none;padding:12px 16px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px}
.phk-lb-tags{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.phk-lb-tags span{height:28px;padding:0 11px;border-radius:99px;background:var(--phk-red);color:#fff;font-size:12px;font-weight:700;display:inline-flex;align-items:center}
.phk-lb-thumbs{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
.phk-lb-thumbs button{position:relative;width:46px;height:46px;border-radius:10px;border:2px solid transparent;opacity:.5;padding:0;overflow:hidden;background:repeating-linear-gradient(135deg,#2b2834 0 6px,#34303f 6px 12px)}
.phk-lb-thumbs button.on{border-color:#fff;opacity:1}
.phk-lb-hint{text-align:center;font-size:11.5px;color:#8f89a3}

/* Notifications dropdown */
.phk-ndrop-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9430}
.phk-ndrop{position:fixed;z-index:9431;width:min(320px,calc(100vw - 28px));background:#fff;border-radius:20px;box-shadow:0 20px 50px rgba(20,10,40,.22);border:1px solid var(--phk-bd);padding:8px;display:flex;flex-direction:column;max-height:70vh;overflow:auto;animation:phkPop .16s ease}
.phk-ndrop .h{font-size:12px;font-weight:700;color:var(--phk-mu2);padding:8px 10px 6px;letter-spacing:.06em;text-transform:uppercase;display:flex;justify-content:space-between;align-items:center}
.phk-ndrop .h button{border:0;background:none;color:var(--phk-violet);font-size:11px;font-weight:800;text-transform:none;letter-spacing:0}
.phk-ndrop .it{display:grid;grid-template-columns:10px 1fr;gap:10px;align-items:start;padding:10px;border:0;border-radius:12px;background:transparent;text-align:left;color:var(--phk-ink);width:100%}
.phk-ndrop .it.unread{background:#faf7ff}
.phk-ndrop .it i{width:8px;height:8px;border-radius:4px;margin-top:5px}
.phk-ndrop .it b{display:block;font-size:13px;font-weight:700}
.phk-ndrop .it small{display:block;font-size:11.5px;color:var(--phk-mu2);margin-top:2px}
.phk-ndrop .empty{padding:16px 10px;font-size:13px;color:var(--phk-mu)}

/* Toast */
.phk-toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(26px + env(safe-area-inset-bottom));width:calc(100% - 32px);max-width:528px;z-index:9600;background:var(--phk-ink);color:#fff;border-radius:16px;padding:13px 16px;font-size:13.5px;font-weight:600;display:flex;align-items:center;gap:10px;box-shadow:0 14px 30px rgba(20,10,40,.3);animation:phkUp .2s ease;font-family:var(--phk-font)}
.phk-toast i{width:22px;height:22px;border-radius:11px;background:var(--phk-violet);display:flex;align-items:center;justify-content:center;flex:none}
.phk-toast.warn i{background:#e2a019}
.phk-toast.err i{background:var(--phk-red)}

.phk-file{position:fixed;left:-1000px;top:0;width:1px;height:1px;opacity:0}
body.phk-lock{overflow:hidden}
@media (min-width:700px){
  .phk-root{padding-top:6px}
  .phk-top{border-radius:0 0 22px 22px}
}
@media (max-width:360px){
  .phk-row{grid-template-columns:16px 42px minmax(0,1fr) auto 22px;column-gap:4px}
  .phk-num{font-size:19px}
  .phk-btn-start{padding:0 9px;font-size:12px}
}

/* Existing popups restyled to the premium look for housekeeping roles */
html body.phk-role .v77-switch-popup{z-index:9455!important;background:rgba(18,12,32,.55)!important;padding:20px!important}
html body.phk-role .v77-switch-popup .modal{max-width:420px!important;width:100%!important;border-radius:28px!important;overflow:hidden!important;border:0!important;box-shadow:0 30px 60px rgba(20,10,40,.3)!important;font-family:var(--phk-font)!important;animation:phkPop .2s ease}
html body.phk-role .v77-switch-hero{background:#f6f2ff!important;border-bottom:1px solid #e4dafc!important;padding:20px 20px 16px!important}
html body.phk-role .v77-switch-hero h3{font-size:19px!important;font-weight:800!important;letter-spacing:-.01em;color:var(--phk-ink)!important}
html body.phk-role .v77-switch-hero div{color:#6526d1!important;font-weight:700!important;font-size:14px}
html body.phk-role .v77-switch-popup .mb{padding:16px 20px 20px!important}
html body.phk-role .v77-switch-popup .btn{height:54px!important;border:0!important;border-radius:16px!important;background:var(--phk-grad)!important;color:#fff!important;font:800 15.5px var(--phk-font)!important;box-shadow:0 8px 20px rgba(124,58,237,.28)!important;width:100%}
html body.phk-role .v83-camera-modal .modal{font-family:var(--phk-font)}

/* v131 — undo, finish confirm, quick-clean reminder, verify-only list */
.phk-undo{color:#4a4560}
.phk-undo:active,.phk-bell:active{transform:scale(.94)}
.phk-vstats{display:flex;gap:6px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}.phk-vstats::-webkit-scrollbar{display:none}
.phk-vstats span{display:inline-flex;align-items:center;gap:6px;flex:none;height:28px;padding:0 10px;border-radius:99px;background:#fff;border:1px solid var(--phk-bd);font-size:12px;font-weight:700;color:#4a4560;white-space:nowrap}
.phk-vstats i{width:8px;height:8px;border-radius:4px;flex:none}
.phk-vstats .c i{background:#22a565}.phk-vstats .r i{background:#7c3aed}.phk-vstats .v i{background:#3b8fd6}
.phk-empty-ic{width:52px;height:52px;border-radius:18px;margin:0 auto 10px;background:#e3f6ec;color:var(--phk-green);display:flex;align-items:center;justify-content:center}
.phk-undo-load{padding:14px;text-align:center;font-size:13px;font-weight:600;color:var(--phk-mu)}
.phk-undo-list{display:flex;flex-direction:column;gap:6px;max-height:42vh;overflow:auto}
.phk-undo-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:14px;background:var(--phk-soft2);border:1px solid var(--phk-bd)}
.phk-undo-row .n{font-size:22px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.phk-undo-row .f{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end;min-width:0}
.phk-undo-row .ar{color:var(--phk-mu2);font-weight:800}
.phk-undo-more{font-size:12px;font-weight:700;color:var(--phk-mu);text-align:center}
.phk-pair button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.phk-pair button:disabled{opacity:.55}
.phk-quick{align-items:center;text-align:center;border:2px solid #fde3b0}
.phk-quick-ic{width:64px;height:64px;border-radius:22px;background:#fff4dc;color:#b45309;display:flex;align-items:center;justify-content:center;animation:phkBlink 1.4s ease-in-out 3}
.phk-quick-s{font-size:14px;line-height:1.45;color:#4a4560;font-weight:500}

/* v136 — repeat room notes (e.g. "Clean AC vent" every N verified cleans) */
.phk-note.task{color:#9a5b00;font-weight:800}
.phk-note.task span{background:#fff4d6;border:1px solid #f6d58b;border-radius:7px;padding:1px 7px}
.phk-tasks{display:flex;flex-direction:column;gap:8px}
.phk-task{display:flex;align-items:center;gap:10px;padding:10px 10px 10px 12px;border-radius:14px;background:#fff8e6;border:1.5px solid #f6d58b}
.phk-task .i{width:30px;height:30px;border-radius:9px;background:#f59e0b;color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.phk-task .i svg{width:16px;height:16px}
.phk-task .b{flex:1;min-width:0}
.phk-task .k{font-size:10.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#a16207}
.phk-task .v{font-size:15px;font-weight:800;color:#3b2a06}
.phk-task .s{font-size:12.5px;color:#6b5a2e;margin-top:1px}
.phk-task-done{flex:none;height:40px;padding:0 12px;border:0;border-radius:11px;background:#16a34a;color:#fff;font-weight:800;font-size:14px;display:flex;align-items:center;gap:6px;cursor:pointer}
.phk-task-done svg{width:15px;height:15px}
.phk-task-done:active{transform:scale(.96)}
button.phk-r{border:0;cursor:pointer;font-family:inherit}
/* v138 — finished rework = green "rework clean" */
.phk-vstats .r i{background:#16a34a!important}
