:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#111827;background:#f4f6f9;--app-vh:100dvh;--mobile-safe-bottom:max(28px,env(safe-area-inset-bottom))}*{box-sizing:border-box}html,body{width:100%;max-width:100%;overflow-x:hidden}body{margin:0;background:#f4f6f9}button,input,textarea,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.topbar{height:72px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;padding:0 22px;position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:11px}.brand b{display:block;font-size:16px}.brand small{display:block;color:#64748b;margin-top:2px}.logo,.login-logo{background:#111827;color:white;border-radius:14px;display:grid;place-items:center;font-weight:800}.logo{width:42px;height:42px}.login-logo{width:64px;height:64px;font-size:28px;margin:auto}.top-actions{display:flex;gap:8px}.top-link{border:0;background:#f1f5f9;border-radius:10px;padding:10px 13px;font-weight:700}.bottom-nav{display:none}.page{max-width:1120px;margin:0 auto;padding:28px 22px 110px}.page-head,.room-header,.section-title,.floor-title{display:flex;align-items:center;justify-content:space-between;gap:14px}.page-head h1,.room-header h1{margin:2px 0 0;font-size:32px}.page-head p{color:#64748b;margin:8px 0 0}.page-head small,.room-header small{color:#64748b;font-weight:800;letter-spacing:.08em}.primary,.secondary,.success,.danger{border:0;border-radius:12px;padding:12px 16px;font-weight:800}.primary{background:#111827;color:#fff}.secondary{background:#e9eef5;color:#111827}.success{background:#0f766e;color:white}.danger{background:#fee2e2;color:#991b1b}.big{width:100%;padding:15px}.filters{margin:22px 0;display:flex;gap:12px;flex-wrap:wrap}.filters input{width:180px;padding:12px 14px;border:1px solid #d6dce5;border-radius:12px;background:white}.floor-buttons{display:flex;gap:7px;flex-wrap:wrap}.floor-buttons button{border:1px solid #d6dce5;background:#fff;border-radius:10px;padding:10px 12px}.floor-buttons button.active{background:#111827;color:#fff;border-color:#111827}.floor-section{margin:28px 0}.floor-title h2{margin:0}.floor-title span{color:#64748b}.rooms-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:12px}.room-card{position:relative;border:1px solid #e2e8f0;border-radius:16px;background:white;padding:18px;text-align:left;min-height:110px;box-shadow:0 3px 12px rgba(15,23,42,.04)}.room-card b{display:block;font-size:28px}.room-card span{display:block;margin-top:12px;font-size:13px;font-weight:700;color:#64748b}.room-card em{position:absolute;right:12px;top:12px;font-style:normal;background:#dc2626;color:white;border-radius:999px;min-width:26px;height:26px;display:grid;place-items:center;font-weight:800}.room-card.broken{border:2px solid #fecaca;background:#fff7f7}.room-card.pending{border:2px solid #fde68a;background:#fffbeb}.room-card.ok{border-color:#d1fae5}.back{background:none;border:0;color:#475569;padding:0;margin:0 0 22px;font-weight:700}.room-header{background:#fff;border-radius:18px;padding:22px;border:1px solid #e2e8f0;margin-bottom:24px}.section-title{margin:22px 0 12px}.section-title h2{margin:0}.section-title span{background:#e2e8f0;border-radius:999px;padding:4px 10px;font-weight:800}.history-section{margin-top:34px}.issue-list{display:grid;gap:14px}.issue-card{background:#fff;border:1px solid #e2e8f0;border-left:5px solid #dc2626;border-radius:16px;padding:18px}.issue-card.pending{border-left-color:#d97706;background:#fffdf7}.issue-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.issue-top time{font-size:13px;color:#64748b;font-weight:700}.issue-card h3{font-size:19px;margin:14px 0 8px}.issue-card p{color:#64748b;margin:0 0 10px}.status-chip,.room-chip{display:inline-block;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800;margin-right:6px}.status-chip.red{background:#fee2e2;color:#991b1b}.status-chip.yellow{background:#fef3c7;color:#92400e}.room-chip{background:#e2e8f0;color:#334155}.photos{display:flex;gap:8px;overflow:auto;margin:12px 0}.photos img{width:132px;height:100px;object-fit:cover;border-radius:12px;border:1px solid #e5e7eb}.pending-note{background:#fef3c7;color:#92400e;border-radius:10px;padding:10px 12px;margin:12px 0;font-weight:700}.big-action{margin-top:12px;min-width:160px}.action-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.compact .issue-card{opacity:.86;border-left-color:#16a34a}.empty{background:#fff;border:1px dashed #cbd5e1;border-radius:16px;padding:28px;text-align:center;color:#64748b}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{width:min(420px,100%);background:#fff;border-radius:22px;padding:30px;border:1px solid #e2e8f0;box-shadow:0 18px 50px rgba(15,23,42,.08);text-align:center}.login-card h1{margin:14px 0 4px}.login-card p{color:#64748b}.login-card form{text-align:left;margin-top:25px}.login-card label,.modal-card label{display:block;font-weight:700;margin:13px 0}.login-card input,.modal-card input,.modal-card textarea,.modal-card select{width:100%;margin-top:7px;padding:13px 14px;border:1px solid #d6dce5;border-radius:12px;background:#fff}.error{background:#fee2e2;color:#991b1b;border-radius:10px;padding:10px 12px;margin:10px 0}.center{min-height:100vh;display:grid;place-items:center;text-align:center;padding:30px}.modal-bg{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:50;display:flex;align-items:flex-end;justify-content:center;padding:18px}.modal-card{width:min(620px,100%);max-height:calc(100dvh - 36px);overflow:auto;background:#fff;border-radius:22px;padding:22px;padding-bottom:max(22px,env(safe-area-inset-bottom));box-shadow:0 24px 70px rgba(0,0,0,.28)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start}.modal-head h2{margin:3px 0}.modal-head small{color:#64748b}.modal-head button{border:0;background:#f1f5f9;border-radius:10px;width:42px;height:42px;font-size:22px}.created-note{background:#eff6ff;color:#1e40af;border-radius:12px;padding:11px 13px;margin:14px 0}.photo-input{background:#111827;color:#fff;border-radius:13px;padding:14px;text-align:center}.photo-input input{display:none}.secondary-photo{background:#e2e8f0;color:#111827}.preview{display:flex;flex-wrap:wrap;gap:6px}.preview span{background:#f1f5f9;border-radius:8px;padding:6px 8px;font-size:12px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:0;background:#fff;padding-top:14px;padding-bottom:max(4px,env(safe-area-inset-bottom))}.toast{position:fixed;left:50%;bottom:calc(28px + env(safe-area-inset-bottom));transform:translateX(-50%);background:#111827;color:#fff;padding:12px 18px;border-radius:999px;z-index:100;font-weight:800;box-shadow:0 10px 30px rgba(0,0,0,.2)}.staff-list{display:grid;gap:10px}.staff-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:15px;display:flex;justify-content:space-between;align-items:center;gap:12px}.staff-card b,.staff-card span{display:block}.staff-card span{color:#64748b;margin-top:4px}.staff-buttons{display:flex;gap:7px;align-items:center}
@media(max-width:760px){
body{font-size:14px;padding-bottom:calc(74px + var(--mobile-safe-bottom))}
.topbar{height:56px;padding:0 11px}
.brand{gap:8px}.brand b{font-size:13px}.brand small{font-size:10px}.logo{width:34px;height:34px;border-radius:11px}
.top-link{padding:8px 10px;font-size:13px}.top-actions .top-link:first-child{display:none}
.page{padding:14px 11px calc(82px + var(--mobile-safe-bottom))}
.page-head,.room-header,.section-title,.floor-title{gap:10px}
.page-head h1,.room-header h1{font-size:24px;line-height:1.1}.page-head p{font-size:13px;margin-top:5px}
.page-head{align-items:flex-end}.page-head .secondary{padding:9px 11px;font-size:13px}
.filters{margin:14px 0}.filters input{width:100%;margin-bottom:8px;padding:10px 11px}
.floor-buttons{overflow:auto;flex-wrap:nowrap;padding-bottom:2px}.floor-buttons button{white-space:nowrap;padding:8px 10px;font-size:12px}
.floor-section{margin:20px 0}.floor-title h2{font-size:19px}.floor-title span{font-size:12px}
.rooms-grid{grid-template-columns:repeat(3,1fr);gap:7px;margin-top:9px}
.room-card{padding:11px;min-height:82px;border-radius:13px}.room-card b{font-size:22px}.room-card span{font-size:10px;margin-top:7px}.room-card em{right:8px;top:8px;min-width:22px;height:22px;font-size:11px}
.back{margin-bottom:14px}.room-header{display:block;padding:14px;border-radius:15px;margin-bottom:16px}.room-header .primary{width:100%;margin-top:12px;padding:11px}
.section-title{margin:16px 0 9px}.section-title h2{font-size:19px}
.issue-list{gap:10px}.issue-card{padding:13px;border-radius:14px}.issue-card h3{font-size:17px;margin:10px 0 6px}.issue-card p{font-size:13px}.issue-top{display:block}.issue-top time{display:block;margin-top:6px;font-size:12px}
.photos{margin:9px 0}.photos img{width:128px;height:94px}.pending-note{padding:9px 10px;font-size:13px;margin:9px 0}
.big-action,.action-row button{width:100%;padding:11px}.action-row{gap:7px;margin-top:9px}
.bottom-nav{display:grid;grid-template-columns:1fr 1fr;position:fixed;bottom:0;left:0;right:0;z-index:35;background:#fff;border-top:1px solid #e2e8f0;padding:6px 9px var(--mobile-safe-bottom);gap:7px}
.bottom-nav button{border:0;background:#f1f5f9;border-radius:10px;padding:10px 8px;font-size:13px;font-weight:800;min-height:40px}.bottom-nav button.active{background:#111827;color:#fff}
.nav-count{font-size:10px}
.login-wrap{min-height:var(--app-vh);padding:12px 12px var(--mobile-safe-bottom)}
.login-card{padding:20px;border-radius:18px}.login-logo{width:54px;height:54px;font-size:24px}.login-card h1{font-size:24px}.login-card p{margin:5px 0}
.login-card form{margin-top:16px}.login-card label,.modal-card label{margin:10px 0}.login-card input,.modal-card input,.modal-card textarea,.modal-card select{padding:10px 11px;border-radius:10px}
.modal-bg{padding:8px 7px var(--mobile-safe-bottom);align-items:flex-end}
.modal-card{border-radius:18px;width:100%;max-height:calc(var(--app-vh) - var(--mobile-safe-bottom) - 18px);padding:14px 14px 0;overflow:auto}
.modal-head h2{font-size:21px}.modal-head button{width:36px;height:36px;font-size:19px}
.created-note{padding:9px 10px;margin:10px 0;font-size:12px}.photo-input{padding:11px}
.modal-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:7px;position:sticky;bottom:0;background:#fff;padding:10px 0 calc(var(--mobile-safe-bottom) + 4px);margin-top:8px}
.modal-actions button{padding:11px 9px;font-size:13px}
.toast{bottom:calc(var(--mobile-safe-bottom) + 66px);font-size:13px;padding:10px 14px}
.staff-card{display:block;padding:12px}.staff-buttons{margin-top:9px}.staff-buttons button{flex:1;padding:9px 8px;font-size:12px}
}
@media(max-width:420px){.rooms-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px) and (max-height:850px){
.topbar{height:52px}.page{padding-top:11px}.page-head h1,.room-header h1{font-size:22px}
.room-card{min-height:76px}.room-card b{font-size:20px}.issue-card{padding:11px}
.modal-card{max-height:calc(var(--app-vh) - var(--mobile-safe-bottom) - 12px)}
}
/* Viewer / executive dashboard */
.viewer-page{padding-top:22px}
.viewer-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;background:linear-gradient(135deg,#111827,#25334d);color:#fff;border-radius:22px;padding:26px;margin-bottom:18px}
.viewer-hero small{font-size:12px;font-weight:900;letter-spacing:.08em;opacity:.76}.viewer-hero h1{margin:6px 0 8px;font-size:34px}.viewer-hero p{margin:0;max-width:720px;color:#dbe4f0;line-height:1.5}
.viewer-hero .secondary{background:#fff;color:#111827;flex:0 0 auto}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:30px}
.stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:17px;padding:18px;box-shadow:0 3px 12px rgba(15,23,42,.04)}
.stat-card span,.stat-card small{display:block;color:#64748b}.stat-card span{font-size:13px;font-weight:800}.stat-card b{display:block;font-size:34px;margin:7px 0 4px}.stat-card small{font-size:12px}
.danger-stat{border-top:4px solid #dc2626}.warning-stat{border-top:4px solid #d97706}.success-stat{border-top:4px solid #16a34a}.neutral{border-top:4px solid #475569}
.viewer-section{margin:28px 0}.viewer-section .section-title{align-items:flex-end}.viewer-section .section-title h2{margin:0}.viewer-section .section-title p{margin:5px 0 0;color:#64748b;font-size:13px}
.floor-summary-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.floor-summary{border:1px solid #e2e8f0;background:#fff;border-radius:16px;padding:15px;text-align:left;position:relative;min-height:105px}
.floor-summary div b,.floor-summary div span,.floor-summary small{display:block}.floor-summary div b{font-size:17px}.floor-summary div span{margin-top:5px;color:#64748b;font-size:12px;font-weight:700}.floor-summary strong{position:absolute;right:12px;top:12px;font-size:20px}.floor-summary small{margin-top:14px;color:#475569;font-size:11px;line-height:1.35}
.floor-summary.has-problems{border-color:#fecaca;background:#fff8f8}.floor-summary.has-problems strong{color:#dc2626}.floor-summary.all-good{border-color:#d1fae5;background:#f8fffb}.floor-summary.all-good strong{color:#16a34a}
.readonly-badge{display:inline-block;background:#e2e8f0;color:#334155;border-radius:999px;padding:8px 12px;font-weight:800;font-size:12px}
.readonly-note{margin:8px 0 0;color:#64748b;font-size:13px}
.viewer-list .issue-card{box-shadow:0 3px 12px rgba(15,23,42,.035)}

@media(max-width:760px){
.viewer-nav{grid-template-columns:repeat(3,1fr)}
.viewer-hero{padding:18px 15px;border-radius:17px;display:block}.viewer-hero h1{font-size:26px}.viewer-hero p{font-size:13px}.viewer-hero .secondary{width:100%;margin-top:14px}
.stat-grid{grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:20px}.stat-card{padding:13px}.stat-card b{font-size:28px}.stat-card span{font-size:11px}.stat-card small{font-size:10px}
.floor-summary-grid{grid-template-columns:repeat(2,1fr);gap:8px}.floor-summary{min-height:96px;padding:12px}.floor-summary div b{font-size:15px}.floor-summary strong{font-size:18px}
.viewer-section{margin:20px 0}.viewer-section .section-title p{font-size:11px}.readonly-note{font-size:12px}.readonly-badge{margin-top:11px}
}
@media(max-width:390px){
.stat-grid{grid-template-columns:1fr 1fr}.floor-summary-grid{grid-template-columns:1fr 1fr}
.bottom-nav.viewer-nav button{font-size:12px;padding-left:5px;padding-right:5px}
}

/* V8: admin controls + technician realtime notifications */
.page-head-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.notify-btn{border:0;border-radius:12px;padding:12px 14px;font-weight:800;background:#e0f2fe;color:#075985}
.notify-btn.on{background:#dcfce7;color:#166534;cursor:default}.notify-btn.blocked{background:#fee2e2;color:#991b1b}.notify-btn.unsupported{background:#f1f5f9;color:#64748b}
.notify-note{background:#eff6ff;color:#1e40af;border:1px solid #dbeafe;border-radius:13px;padding:11px 13px;margin:12px 0 16px;font-size:13px}
.admin-issue-tools{border-top:1px solid #e2e8f0;margin-top:14px;padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.admin-issue-tools>span{font-size:12px;color:#64748b;font-weight:800}.admin-issue-tools>div{display:flex;gap:7px}
.admin-issue-tools button{padding:9px 11px;font-size:12px}
.status-chip.green{background:#dcfce7;color:#166534}.status-chip.gray{background:#e2e8f0;color:#475569}
.admin-help{background:#f8fafc;border:1px solid #e2e8f0;color:#64748b;border-radius:10px;padding:9px 11px;font-size:12px}
@media(max-width:760px){
.page-head-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}.page-head-actions button{width:100%;padding:10px 8px;font-size:12px}
.notify-note{font-size:11px;padding:9px 10px;margin:8px 0 12px}
.admin-issue-tools{display:block}.admin-issue-tools>div{display:grid;grid-template-columns:1fr 1fr;margin-top:8px}.admin-issue-tools button{width:100%}
}

/* V9: sticky mobile header + notifications for all */
.topbar{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.96);
  backdrop-filter:saturate(180%) blur(16px);
  -webkit-backdrop-filter:saturate(180%) blur(16px);
  border-bottom:1px solid rgba(226,232,240,.95);
}
.header-notify{min-width:42px;padding-left:11px;padding-right:11px;font-size:18px}
.header-notify.on{background:#dcfce7;color:#166534}
.header-notify.blocked{background:#fee2e2;color:#991b1b}
.header-notify.off{background:#eff6ff;color:#1d4ed8}
.header-notify.unsupported{background:#f1f5f9;color:#64748b}

@media(max-width:760px){
  :root{--mobile-top-safe:env(safe-area-inset-top,0px)}
  .topbar{
    top:0;
    min-height:calc(54px + var(--mobile-top-safe));
    height:auto;
    padding-top:var(--mobile-top-safe);
    padding-left:10px;
    padding-right:10px;
  }
  .brand{min-width:0;flex:1}
  .brand>div:last-child{min-width:0}
  .brand b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:170px;display:block}
  .top-actions{gap:5px;flex:0 0 auto}
  .top-link{padding:8px 9px}
  .header-notify{display:inline-flex!important;align-items:center;justify-content:center;min-width:38px;width:38px;height:38px;padding:0;border-radius:11px}
  .page{padding-top:12px}
}

@media(max-width:390px){
  .brand b{max-width:130px}
  .brand small{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
}

/* V10 PWA installation */
.install-app-btn{background:#0f172a;color:#fff;font-weight:850}
.install-app-btn.installed{background:#dcfce7;color:#166534}
.install-help p{line-height:1.55;color:#475569}
.install-steps{display:grid;gap:10px;margin:18px 0}
.install-steps>div{display:grid;grid-template-columns:36px 1fr;align-items:center;gap:10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:13px;padding:11px}
.install-steps b{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#0f172a;color:#fff}
.install-steps span{font-size:14px;line-height:1.4;color:#334155}
.install-tip{background:#eff6ff;border:1px solid #dbeafe;color:#1e40af!important;border-radius:12px;padding:11px 12px}
.modal-actions.one{grid-template-columns:1fr}
@media(max-width:760px){
  .install-app-btn{font-size:11px;padding:8px 9px}
  .top-actions .install-app-btn{display:inline-flex}
}
@media(max-width:390px){
  .install-app-btn{max-width:92px;overflow:hidden;white-space:nowrap}
}

/* V11: issue reporter login */
.issue-reporter{
  display:flex;
  align-items:center;
  gap:6px;
  margin:7px 0 4px;
  font-size:12px;
  color:#64748b;
}
.issue-reporter span{font-weight:700}
.issue-reporter b{
  color:#0f172a;
  background:#eef2f7;
  border-radius:999px;
  padding:4px 8px;
  font-size:12px;
  overflow-wrap:anywhere;
}
@media(max-width:760px){
  .issue-reporter{font-size:11px;margin-top:6px}
  .issue-reporter b{font-size:11px;padding:3px 7px}
}

/* V12 repair workflow */
.priority-chip{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900;margin-left:6px}
.priority-chip.low{background:#e2e8f0;color:#475569}.priority-chip.medium{background:#dbeafe;color:#1d4ed8}
.priority-chip.high{background:#ffedd5;color:#c2410c}.priority-chip.critical{background:#fee2e2;color:#b91c1c}
.overdue-card{border-color:#fecaca!important;box-shadow:0 0 0 1px #fecaca inset}
.overdue-alert{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;padding:9px 11px;border-radius:11px;margin:10px 0;font-weight:850;font-size:13px}
.sla-note{background:#f8fafc;color:#64748b;border:1px solid #e2e8f0;padding:8px 10px;border-radius:10px;margin:9px 0;font-size:12px}
.repair-meta{display:grid;gap:5px;background:#f8fafc;border:1px solid #e2e8f0;padding:10px 11px;border-radius:11px;margin:10px 0;font-size:12px;color:#475569}
.repair-meta b{color:#0f172a}.photo-group{margin:10px 0}.photo-group>b{display:block;font-size:12px;color:#64748b;margin-bottom:7px}.photo-group.after>b{color:#166534}
.overdue-stat{border-top:4px solid #dc2626}
.report-filters{display:flex;align-items:end;gap:9px;flex-wrap:wrap;background:#fff;border:1px solid #e2e8f0;border-radius:15px;padding:12px;margin:14px 0 18px}
.report-filters label{display:grid;gap:5px;font-size:12px;font-weight:800;color:#475569}.report-filters input{padding:10px;border:1px solid #cbd5e1;border-radius:10px}
.report-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin-bottom:18px}.report-stats article{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:14px}.report-stats span{display:block;color:#64748b;font-size:11px;font-weight:800}.report-stats b{display:block;font-size:27px;margin-top:7px}.report-stats .small-value{font-size:17px}
.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.report-panel{background:#fff;border:1px solid #e2e8f0;border-radius:15px;padding:15px}.report-panel h2{font-size:17px;margin:0 0 12px}
.report-row{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid #f1f5f9;font-size:13px}.report-row:last-child{border-bottom:0}.report-row span{display:flex;align-items:center;gap:7px}.priority-dot{width:9px;height:9px;border-radius:50%;display:inline-block}.priority-dot.critical{background:#dc2626}.priority-dot.high{background:#f97316}.priority-dot.medium{background:#3b82f6}.priority-dot.low{background:#94a3b8}
.report-table-wrap{margin-top:12px;overflow:auto}.report-table{min-width:720px}.report-tr{display:grid;grid-template-columns:1.4fr .6fr 1fr 1.1fr 1fr;gap:8px;padding:10px 6px;border-bottom:1px solid #f1f5f9;font-size:12px}.report-th{font-weight:900;color:#475569;background:#f8fafc;border-radius:8px}
.bottom-nav.has-report{grid-template-columns:repeat(3,1fr)}.bottom-nav.viewer-nav.has-report{grid-template-columns:repeat(4,1fr)}
@media(max-width:760px){
  .priority-chip{font-size:10px;padding:3px 7px;margin-left:4px}.repair-meta{font-size:11px}
  .report-filters{display:grid;grid-template-columns:1fr 1fr}.report-filters button{width:100%}
  .report-stats{grid-template-columns:repeat(2,1fr)}.report-grid{grid-template-columns:1fr}
  .report-stats article{padding:12px}.report-stats b{font-size:24px}
  .bottom-nav.viewer-nav.has-report button{font-size:11px;padding-left:3px;padding-right:3px}
}

/* V13 automatic photo compression */
.compress-note{
  margin:8px 0 12px;
  padding:9px 11px;
  border-radius:10px;
  background:#f0fdf4;
  border:1px solid #bbf7d0;
  color:#166534;
  font-size:12px;
  line-height:1.4;
}
@media(max-width:760px){
  .compress-note{font-size:11px;padding:8px 9px}
}

/* V14 multi-hotel */
.topbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.top-center{display:flex;justify-content:center;min-width:0}
.hotel-switch{border:1px solid #dbe3ee;background:#f8fafc;color:#0f172a;border-radius:12px;padding:8px 12px;display:inline-flex;align-items:center;gap:7px;font-weight:850;max-width:220px}
.hotel-switch span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hotel-switch b{font-size:15px;color:#64748b}.hotel-switch.single{cursor:default}
.hotel-picker-wrap{min-height:var(--app-vh);background:#f4f6f9;padding:42px 18px 30px;display:flex;flex-direction:column;align-items:center}
.hotel-picker-head{text-align:center;max-width:560px}.hotel-picker-head small{font-weight:900;letter-spacing:.14em;color:#64748b}.hotel-picker-head h1{font-size:34px;margin:8px 0}.hotel-picker-head p{color:#64748b;line-height:1.5;margin:0 0 24px}
.hotel-picker-list{width:min(620px,100%);display:grid;gap:10px}
.hotel-card{width:100%;border:1px solid #dce4ee;background:#fff;border-radius:18px;padding:17px;display:grid;grid-template-columns:50px 1fr auto;align-items:center;gap:13px;text-align:left;box-shadow:0 4px 16px rgba(15,23,42,.04)}
.hotel-card:hover{border-color:#94a3b8}.hotel-card .hotel-mark{width:48px;height:48px;border-radius:14px;background:#0f172a;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}
.hotel-card.all-hotels .hotel-mark{background:#334155}.hotel-card div b,.hotel-card div small{display:block}.hotel-card div b{font-size:17px;color:#0f172a}.hotel-card div small{margin-top:4px;color:#64748b}.hotel-card>strong{font-size:21px}
.hotel-logout{margin-top:18px;border:0;background:transparent;color:#64748b;font-weight:800;padding:10px}
.hotel-chip{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900;background:#ede9fe;color:#6d28d9;margin-right:5px}
.staff-hotels{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.staff-hotels em{font-style:normal;background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:4px 7px;font-size:10px;font-weight:800}.staff-hotels em.none{background:#f1f5f9;color:#64748b}
.hotel-access-list{display:grid;gap:8px;margin:10px 0 16px}.hotel-check{display:flex;gap:10px;align-items:center;border:1px solid #dce4ee;border-radius:13px;padding:12px;background:#fff}.hotel-check input{width:20px;height:20px}.hotel-check span b,.hotel-check span small{display:block}.hotel-check span small{margin-top:2px;color:#64748b;font-size:11px}
.hotel-check.compact{padding:9px 10px}.staff-hotel-field{border:1px solid #dce4ee;border-radius:13px;padding:10px;margin:0}.staff-hotel-field legend{padding:0 6px;font-size:12px;font-weight:900;color:#475569}
.report-tr.with-hotel{grid-template-columns:1.35fr 1.2fr .6fr 1fr 1.1fr 1fr}
@media(max-width:760px){
  .topbar{grid-template-columns:minmax(0,1fr) auto}.top-center{grid-column:1/-1;grid-row:2;justify-content:stretch;width:100%;padding:0 8px 7px}.hotel-switch{max-width:none;width:100%;justify-content:center;padding:7px 10px;font-size:12px}
  .hotel-picker-wrap{padding-top:28px}.hotel-picker-head h1{font-size:28px}.hotel-card{padding:14px;grid-template-columns:44px 1fr auto}.hotel-card .hotel-mark{width:42px;height:42px;border-radius:12px}.hotel-card div b{font-size:15px}
  .staff-card{align-items:flex-start}.staff-main{min-width:0}.staff-buttons{flex-wrap:wrap;justify-content:flex-end}
}

.topbar{display:grid!important;align-items:center;gap:8px}

/* V16: no deadlines, show elapsed active time */
.age-note{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;padding:9px 11px;border-radius:11px;margin:10px 0;font-weight:850;font-size:13px}

/* V18 individual staff permissions */
.staff-perms{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}
.staff-perms em{font-style:normal;background:#f8fafc;color:#475569;border:1px solid #e2e8f0;border-radius:999px;padding:4px 7px;font-size:10px;font-weight:800}
.staff-perms em.none{color:#94a3b8}
.permission-list{display:grid;gap:8px;margin:10px 0 14px}
.permission-row{display:flex;align-items:center;gap:11px;border:1px solid #dce4ee;border-radius:13px;padding:12px;background:#fff}
.permission-row input{width:21px;height:21px;flex:0 0 auto}
.permission-row span b,.permission-row span small{display:block}
.permission-row span b{color:#0f172a}
.permission-row span small{color:#64748b;margin-top:3px;line-height:1.3}
.permission-note{background:#f8fafc;border:1px solid #e2e8f0;border-radius:11px;padding:10px;color:#64748b;font-size:12px;line-height:1.4;margin-bottom:10px}
.permission-create-field{margin-top:10px}
@media(max-width:760px){
  .staff-buttons button{padding:8px 9px;font-size:12px}
  .permission-row{padding:11px}
}


/* V19 compact room interface */
.page-rooms-v19{padding-top:18px}
.compact-page-head p{margin:8px 0 0;color:#64748b;font-size:15px;font-weight:600}
.compact-panel{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:16px;box-shadow:0 8px 28px rgba(15,23,42,.04);margin-top:16px}
.search-wrap{margin-bottom:12px}
.search-box{display:flex;align-items:center;gap:10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:0 14px}
.search-box span{font-size:24px;color:#94a3b8;line-height:1}
.search-box input{border:0;background:transparent;outline:none;flex:1;width:100%;padding:14px 0;font-size:16px}
.quick-filter-row,.floor-filter-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.quick-filter,.floor-filter-row button{border:1px solid #d6dce5;background:#fff;border-radius:999px;padding:10px 14px;font-weight:800;color:#475569}
.quick-filter.active,.floor-filter-row button.active{background:#2563eb;color:#fff;border-color:#2563eb;box-shadow:0 8px 20px rgba(37,99,235,.18)}
.rooms-summary-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px;padding-top:14px;border-top:1px solid #eef2f7}
.rooms-summary-strip article{background:#fbfdff;border:1px solid #e5edf6;border-radius:16px;padding:14px 16px}
.rooms-summary-strip span{display:block;color:#64748b;font-size:12px;font-weight:800}
.rooms-summary-strip b{display:block;margin-top:6px;font-size:30px;color:#0f172a;line-height:1}
.rooms-summary-strip b.alert{color:#dc2626}
.compact-floor-section{margin:22px 0 0}
.compact-floor-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;padding:0 2px}
.compact-floor-head h2{margin:0;font-size:28px}
.compact-floor-head span{color:#64748b;font-weight:700}
.compact-rooms-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.room-card-v19{border:1px solid #e6edf5;background:#fff;border-radius:20px;padding:16px;text-align:left;min-height:132px;box-shadow:0 4px 14px rgba(15,23,42,.04);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.room-card-v19:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(15,23,42,.08)}
.room-card-v19.state-ok{border-color:#d7f5df}
.room-card-v19.state-issue{background:#fffaf5;border-color:#fde7bf}
.room-card-v19.state-critical{background:#fff6f6;border-color:#fecaca}
.room-card-v19.state-pending{background:#f6faff;border-color:#bfdbfe}
.room-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.room-card-top b{display:block;font-size:42px;line-height:1;color:#0b132b}
.room-mini-hotel{display:inline-block;margin-top:5px;font-size:10px;font-weight:800;color:#64748b;background:#eef2f7;border-radius:999px;padding:4px 7px}
.room-chevron{font-size:30px;line-height:1;color:#94a3b8}
.room-state-line{display:flex;align-items:center;gap:10px;margin-top:18px;font-size:15px;font-weight:800;color:#334155}
.room-state-line i{width:14px;height:14px;border-radius:50%;display:inline-block;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.14)}
.room-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.mini-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:900}
.mini-badge.issue{background:#ffedd5;color:#c2410c}
.mini-badge.critical{background:#fee2e2;color:#b91c1c}
.mini-badge.pending{background:#dbeafe;color:#1d4ed8}
@media(max-width:1100px){
  .compact-rooms-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .page-rooms-v19{padding-top:12px}
  .compact-page-head{align-items:flex-start;flex-wrap:wrap}
  .compact-page-head h1{font-size:26px}
  .compact-page-head p{font-size:14px}
  .compact-panel{padding:12px;border-radius:20px}
  .quick-filter,.floor-filter-row button{padding:10px 13px;font-size:13px}
  .rooms-summary-strip{grid-template-columns:repeat(2,1fr);gap:10px}
  .rooms-summary-strip article{padding:12px}
  .rooms-summary-strip b{font-size:24px}
  .compact-floor-head h2{font-size:20px}
  .compact-rooms-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .room-card-v19{min-height:118px;padding:14px;border-radius:18px}
  .room-card-top b{font-size:28px}
  .room-state-line{margin-top:14px;font-size:13px}
  .room-state-line i{width:12px;height:12px}
  .room-badges{margin-top:14px;gap:6px}
  .mini-badge{font-size:11px;padding:7px 10px}
  .room-chevron{font-size:24px}
}
@media(max-width:420px){
  .search-box input{font-size:15px}
  .quick-filter-row,.floor-filter-row{gap:6px}
  .quick-filter,.floor-filter-row button{padding:9px 11px;font-size:12px}
  .rooms-summary-strip b{font-size:22px}
}


/* V20 automatic dark theme: 18:00–04:59 */
html.dark-theme{
  color-scheme:dark;
  background:#0b1120;
}
html.dark-theme body,
body.dark-theme{
  background:#0b1120;
  color:#e5e7eb;
}
html.dark-theme .topbar{
  background:rgba(11,17,32,.96);
  border-bottom-color:#243044;
}
html.dark-theme .brand b,
html.dark-theme .page-head h1,
html.dark-theme .room-header h1,
html.dark-theme .section-title h2,
html.dark-theme .floor-title h2,
html.dark-theme .compact-floor-head h2,
html.dark-theme .hotel-picker-head h1,
html.dark-theme .modal-card h2,
html.dark-theme .login-card h1{
  color:#f8fafc;
}
html.dark-theme .brand small,
html.dark-theme .page-head small,
html.dark-theme .page-head p,
html.dark-theme .room-header small,
html.dark-theme .floor-title span,
html.dark-theme .compact-floor-head span,
html.dark-theme .hotel-picker-head p,
html.dark-theme .hotel-picker-head small{
  color:#94a3b8;
}
html.dark-theme .page,
html.dark-theme .hotel-picker-wrap,
html.dark-theme .login-wrap{
  background:#0b1120;
}
html.dark-theme .hotel-switch{
  background:#111827;
  color:#f8fafc;
  border-color:#334155;
}
html.dark-theme .hotel-switch b{color:#94a3b8}
html.dark-theme .top-link{
  background:#172033;
  color:#e5e7eb;
}
html.dark-theme .install-app-btn{
  background:#2563eb;
  color:#fff;
}
html.dark-theme .header-notify.off{
  background:#172554;
  color:#93c5fd;
}
html.dark-theme .header-notify.on{
  background:#052e16;
  color:#86efac;
}
html.dark-theme .bottom-nav{
  background:#0f172a;
  border-top-color:#243044;
}
html.dark-theme .bottom-nav button{
  color:#94a3b8;
  background:transparent;
}
html.dark-theme .bottom-nav button.active{
  color:#60a5fa;
}
html.dark-theme .nav-count{
  background:#dc2626;
  color:#fff;
}

/* Main cards and panels */
html.dark-theme .compact-panel,
html.dark-theme .room-header,
html.dark-theme .issue-card,
html.dark-theme .staff-card,
html.dark-theme .report-panel,
html.dark-theme .report-stats article,
html.dark-theme .report-filters,
html.dark-theme .viewer-hero,
html.dark-theme .stat-card,
html.dark-theme .floor-summary,
html.dark-theme .hotel-card,
html.dark-theme .login-card,
html.dark-theme .modal-card,
html.dark-theme .empty{
  background:#111827;
  border-color:#263449;
  color:#e5e7eb;
  box-shadow:none;
}
html.dark-theme .compact-panel{
  box-shadow:0 8px 28px rgba(0,0,0,.18);
}
html.dark-theme .search-box{
  background:#0f172a;
  border-color:#334155;
}
html.dark-theme .search-box input,
html.dark-theme .filters input,
html.dark-theme .modal-card input,
html.dark-theme .modal-card textarea,
html.dark-theme .modal-card select,
html.dark-theme .login-card input,
html.dark-theme .report-filters input{
  background:#0f172a;
  color:#f8fafc;
  border-color:#334155;
}
html.dark-theme input::placeholder,
html.dark-theme textarea::placeholder{
  color:#64748b;
}
html.dark-theme .quick-filter,
html.dark-theme .floor-filter-row button,
html.dark-theme .floor-buttons button{
  background:#111827;
  color:#cbd5e1;
  border-color:#334155;
}
html.dark-theme .quick-filter.active,
html.dark-theme .floor-filter-row button.active,
html.dark-theme .floor-buttons button.active{
  background:#2563eb;
  color:#fff;
  border-color:#2563eb;
}
html.dark-theme .rooms-summary-strip{
  border-top-color:#263449;
}
html.dark-theme .rooms-summary-strip article{
  background:#0f172a;
  border-color:#263449;
}
html.dark-theme .rooms-summary-strip span{color:#94a3b8}
html.dark-theme .rooms-summary-strip b{color:#f8fafc}
html.dark-theme .rooms-summary-strip b.alert{color:#f87171}

/* Compact room cards */
html.dark-theme .room-card-v19{
  background:#111827;
  border-color:#263449;
  box-shadow:none;
}
html.dark-theme .room-card-v19.state-ok{
  background:#101a1a;
  border-color:#1f4d3a;
}
html.dark-theme .room-card-v19.state-issue{
  background:#1e1a12;
  border-color:#6b4e16;
}
html.dark-theme .room-card-v19.state-critical{
  background:#211416;
  border-color:#7f1d1d;
}
html.dark-theme .room-card-v19.state-pending{
  background:#111a2e;
  border-color:#1e40af;
}
html.dark-theme .room-card-top b{color:#f8fafc}
html.dark-theme .room-chevron{color:#64748b}
html.dark-theme .room-state-line{color:#d1fae5}
html.dark-theme .room-mini-hotel{
  background:#1e293b;
  color:#cbd5e1;
}
html.dark-theme .mini-badge.issue{
  background:#3f2b12;
  color:#fdba74;
}
html.dark-theme .mini-badge.critical{
  background:#3b1518;
  color:#fca5a5;
}
html.dark-theme .mini-badge.pending{
  background:#172554;
  color:#93c5fd;
}

/* Issue details */
html.dark-theme .issue-card{
  border-left-color:#ef4444;
}
html.dark-theme .issue-card.pending{
  background:#1e1a12;
  border-left-color:#f59e0b;
}
html.dark-theme .issue-card h3{color:#f8fafc}
html.dark-theme .issue-card p,
html.dark-theme .issue-top time,
html.dark-theme .issue-reporter{
  color:#94a3b8;
}
html.dark-theme .issue-reporter b{
  background:#1e293b;
  color:#e2e8f0;
}
html.dark-theme .room-chip{
  background:#1e293b;
  color:#cbd5e1;
}
html.dark-theme .status-chip.red{
  background:#3b1518;
  color:#fca5a5;
}
html.dark-theme .status-chip.yellow{
  background:#422006;
  color:#fde68a;
}
html.dark-theme .status-chip.green{
  background:#052e16;
  color:#86efac;
}
html.dark-theme .status-chip.gray{
  background:#1e293b;
  color:#cbd5e1;
}
html.dark-theme .priority-chip.low{
  background:#1e293b;color:#cbd5e1;
}
html.dark-theme .priority-chip.medium{
  background:#172554;color:#93c5fd;
}
html.dark-theme .priority-chip.high{
  background:#431407;color:#fdba74;
}
html.dark-theme .priority-chip.critical{
  background:#3b1518;color:#fca5a5;
}
html.dark-theme .age-note{
  background:#172554;
  border-color:#1e3a8a;
  color:#bfdbfe;
}
html.dark-theme .repair-meta,
html.dark-theme .admin-help{
  background:#0f172a;
  border-color:#263449;
  color:#94a3b8;
}
html.dark-theme .repair-meta b{color:#e5e7eb}
html.dark-theme .pending-note{
  background:#422006;
  color:#fde68a;
}
html.dark-theme .photo-group>b{color:#94a3b8}
html.dark-theme .photos img{border-color:#334155}

/* Buttons */
html.dark-theme .primary{
  background:#2563eb;
  color:#fff;
}
html.dark-theme .secondary{
  background:#1e293b;
  color:#e5e7eb;
}
html.dark-theme .success{
  background:#047857;
  color:#fff;
}
html.dark-theme .danger{
  background:#3b1518;
  color:#fca5a5;
}
html.dark-theme .back{color:#93c5fd}

/* Staff */
html.dark-theme .staff-card span{color:#94a3b8}
html.dark-theme .staff-hotels em{
  background:#172554;
  color:#93c5fd;
}
html.dark-theme .staff-perms em{
  background:#1e293b;
  border-color:#334155;
  color:#cbd5e1;
}
html.dark-theme .hotel-check,
html.dark-theme .permission-row{
  background:#0f172a;
  border-color:#334155;
}
html.dark-theme .permission-row span b,
html.dark-theme .hotel-check span b{color:#f8fafc}
html.dark-theme .permission-row span small,
html.dark-theme .hotel-check span small{color:#94a3b8}
html.dark-theme .permission-note,
html.dark-theme .created-note,
html.dark-theme .compress-note,
html.dark-theme .notify-note{
  background:#111c33;
  border-color:#263f68;
  color:#bfdbfe;
}
html.dark-theme .staff-hotel-field{
  border-color:#334155;
}

/* Reports */
html.dark-theme .report-row,
html.dark-theme .report-tr{
  border-bottom-color:#263449;
}
html.dark-theme .report-th{
  background:#0f172a;
  color:#cbd5e1;
}
html.dark-theme .report-stats span,
html.dark-theme .report-row span{color:#94a3b8}
html.dark-theme .report-stats b,
html.dark-theme .report-row b{color:#f8fafc}

/* Hotel picker / modal */
html.dark-theme .hotel-card div b{color:#f8fafc}
html.dark-theme .hotel-card div small{color:#94a3b8}
html.dark-theme .hotel-card .hotel-mark{background:#2563eb}
html.dark-theme .hotel-logout{color:#94a3b8}
html.dark-theme .modal-head button{
  background:#1e293b;
  color:#e5e7eb;
}
html.dark-theme .modal-actions{
  background:#111827;
}
html.dark-theme .preview span{
  background:#1e293b;
  color:#cbd5e1;
}

/* Scrollbar */
html.dark-theme *{
  scrollbar-color:#475569 #0f172a;
}


/* V21 DDV HOTELS premium login */
.ddv-login-wrap{
  position:relative;
  overflow:hidden;
}
.ddv-login-wrap::before,
.ddv-login-wrap::after{
  content:"";
  position:absolute;
  border:1px solid rgba(37,99,235,.12);
  border-radius:50%;
  pointer-events:none;
}
.ddv-login-wrap::before{
  width:720px;height:720px;
  left:-420px;top:-310px;
}
.ddv-login-wrap::after{
  width:600px;height:600px;
  right:-390px;bottom:-330px;
}
.ddv-login-card{
  position:relative;
  z-index:1;
  width:min(470px,100%);
  padding:34px 30px 26px;
  border-radius:26px;
}
.ddv-brand-block{text-align:center}
.ddv-login-card .login-logo{
  width:82px;
  height:58px;
  border-radius:16px;
  font-size:23px;
  letter-spacing:.08em;
  margin:0 auto 10px;
}
.ddv-hotels{
  font-size:17px;
  font-weight:950;
  letter-spacing:.18em;
  color:#0f172a;
}
.ddv-system-label{
  margin-top:4px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:#94a3b8;
  font-weight:800;
}
.ddv-divider{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin:14px 0 12px;
}
.ddv-divider span{
  width:34px;
  height:1px;
  background:#cbd5e1;
}
.ddv-divider i{
  width:7px;
  height:7px;
  transform:rotate(45deg);
  background:#d4a64a;
  display:block;
  border-radius:1px;
}
.ddv-login-card h1{
  margin:0;
  font-size:30px;
  letter-spacing:-.02em;
}
.ddv-hotels-list{
  margin:8px 0 0!important;
  color:#475569!important;
  font-weight:800;
  font-size:13px;
}
.ddv-subtitle{
  margin:7px 0 0!important;
  color:#94a3b8!important;
  font-size:12px;
}
.ddv-login-card form{
  margin-top:24px;
}
.ddv-login-card label{
  font-size:13px;
}
.ddv-login-card input{
  padding:14px 15px;
  border-radius:13px;
}
.ddv-login-button{
  margin-top:6px;
  border-radius:13px;
  font-size:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.ddv-login-button span{
  font-size:19px;
  line-height:1;
}
.ddv-welcome{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:20px;
}
.ddv-welcome span{
  width:46px;
  height:1px;
  background:#e2e8f0;
}
.ddv-welcome small{
  color:#94a3b8;
  font-weight:700;
}
.brand .logo{
  font-size:10px;
  letter-spacing:.06em;
}

/* Dark version */
html.dark-theme .ddv-login-wrap{
  background:
    radial-gradient(circle at 15% 10%,rgba(37,99,235,.12),transparent 30%),
    radial-gradient(circle at 85% 80%,rgba(14,165,233,.07),transparent 26%),
    #0b1120;
}
html.dark-theme .ddv-login-card{
  background:rgba(15,23,42,.88);
  border-color:#314158;
  box-shadow:0 22px 80px rgba(0,0,0,.34),0 0 0 1px rgba(59,130,246,.04) inset;
  backdrop-filter:blur(14px);
}
html.dark-theme .ddv-login-card .login-logo{
  background:linear-gradient(145deg,#e0ecff,#8db5ff);
  color:#0f172a;
  box-shadow:0 8px 28px rgba(37,99,235,.16);
}
html.dark-theme .ddv-hotels{
  color:#f8fafc;
}
html.dark-theme .ddv-system-label{
  color:#64748b;
}
html.dark-theme .ddv-divider span{
  background:#35506f;
}
html.dark-theme .ddv-hotels-list{
  color:#cbd5e1!important;
}
html.dark-theme .ddv-subtitle{
  color:#64748b!important;
}
html.dark-theme .ddv-login-card input{
  background:#0d1729;
  border-color:#334965;
}
html.dark-theme .ddv-login-card input:focus{
  border-color:#3b82f6;
  box-shadow:0 0 0 3px rgba(59,130,246,.12);
  outline:none;
}
html.dark-theme .ddv-login-button{
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  box-shadow:0 12px 28px rgba(37,99,235,.22);
}
html.dark-theme .ddv-welcome span{
  background:#334155;
}
html.dark-theme .ddv-welcome small{
  color:#64748b;
}

@media(max-width:560px){
  .ddv-login-card{
    padding:28px 22px 22px;
    border-radius:22px;
  }
  .ddv-login-card .login-logo{
    width:72px;height:52px;font-size:20px;
  }
  .ddv-hotels{font-size:15px}
  .ddv-login-card h1{font-size:26px}
  .ddv-hotels-list{font-size:12px!important}
  .ddv-subtitle{font-size:11px!important}
}


/* V22 common hotel areas */
.common-areas-section{
  margin:22px 0 8px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:22px;
  padding:16px;
}
.common-areas-head{
  margin-bottom:12px;
  align-items:flex-end;
}
.common-areas-head>div h2{margin:0}
.common-areas-head>div p{
  margin:5px 0 0;
  color:#64748b;
  font-size:12px;
}
.common-areas-head>span{
  min-width:28px;
  height:28px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#eef2ff;
  color:#3730a3;
  font-weight:900;
}
.common-areas-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.common-area-card{
  border:1px solid #d9e2ec;
  border-radius:18px;
  background:#f8fafc;
  padding:15px;
  text-align:left;
  min-height:118px;
}
.common-area-card.state-ok{border-color:#d1fae5;background:#f7fdf9}
.common-area-card.state-issue{border-color:#fde68a;background:#fffbeb}
.common-area-card.state-critical{border-color:#fecaca;background:#fff7f7}
.common-area-card.state-pending{border-color:#bfdbfe;background:#f6faff}
.common-area-card .room-card-top b{
  font-size:25px;
  line-height:1.1;
}
.common-area-icon{
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  margin-bottom:8px;
  border-radius:9px;
  background:#e2e8f0;
  color:#334155;
  font-size:15px;
  font-weight:900;
}
html.dark-theme .common-areas-section{
  background:#111827;
  border-color:#263449;
}
html.dark-theme .common-areas-head>div p{color:#94a3b8}
html.dark-theme .common-areas-head>span{
  background:#172554;
  color:#bfdbfe;
}
html.dark-theme .common-area-card{
  background:#0f172a;
  border-color:#334155;
}
html.dark-theme .common-area-card.state-ok{background:#101a1a;border-color:#1f4d3a}
html.dark-theme .common-area-card.state-issue{background:#1e1a12;border-color:#6b4e16}
html.dark-theme .common-area-card.state-critical{background:#211416;border-color:#7f1d1d}
html.dark-theme .common-area-card.state-pending{background:#111a2e;border-color:#1e40af}
html.dark-theme .common-area-icon{
  background:#1e293b;
  color:#cbd5e1;
}
@media(max-width:760px){
  .common-areas-section{padding:12px;border-radius:18px}
  .common-areas-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .common-area-card{min-height:105px;padding:13px}
  .common-area-card .room-card-top b{font-size:20px}
  .common-areas-head>div p{font-size:11px}
}


/* V23 Executive dashboard */
.executive-page{padding-top:18px}
.executive-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:18px;
  background:linear-gradient(135deg,#0f172a,#1d3151);
  color:#fff;
  border-radius:24px;
  padding:24px;
  box-shadow:0 14px 38px rgba(15,23,42,.12);
}
.executive-eyebrow{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.executive-eyebrow span{font-size:11px;font-weight:950;letter-spacing:.15em;color:#93c5fd}
.executive-eyebrow em{
  font-style:normal;font-size:10px;font-weight:900;
  padding:5px 8px;border-radius:999px;
  background:rgba(255,255,255,.1);color:#dbeafe;
}
.executive-hero h1{font-size:32px;margin:7px 0 4px}
.executive-hero-main>p{margin:0;color:#cbd5e1;font-weight:750}
.executive-health{
  min-width:195px;padding:13px 15px;border-radius:16px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.11);
}
.executive-health small,.executive-health span{display:block}
.executive-health small{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#94a3b8;font-weight:900}
.executive-health b{display:block;font-size:16px;margin:4px 0}
.executive-health span{font-size:11px;color:#cbd5e1}
.executive-health.good b{color:#86efac}
.executive-health.watch b,.executive-health.attention b{color:#fde68a}
.executive-health.critical b{color:#fca5a5}
.executive-refresh{background:#fff!important;color:#111827!important}

.executive-today,.executive-alert-panel{
  background:#fff;border:1px solid #e2e8f0;border-radius:22px;
  padding:18px;margin-top:16px;
}
.executive-section-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:13px
}
.executive-section-head small{font-size:10px;letter-spacing:.12em;font-weight:950;color:#64748b}
.executive-section-head h2{font-size:21px;margin:3px 0 0}
.executive-section-head p{font-size:12px;color:#64748b;margin:5px 0 0}
.executive-report-link{
  border:0;background:#eff6ff;color:#1d4ed8;border-radius:11px;
  padding:9px 12px;font-weight:850;font-size:12px
}
.executive-kpi-grid,.executive-attention-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:10px
}
.executive-kpi-grid article,.executive-attention-grid article{
  background:#f8fafc;border:1px solid #e7edf4;border-radius:16px;padding:14px;
  min-width:0
}
.executive-kpi-grid span,.executive-attention-grid span{font-size:12px;color:#64748b;font-weight:800}
.executive-kpi-grid b,.executive-attention-grid b{
  display:block;font-size:30px;line-height:1;margin:8px 0 6px;color:#0f172a
}
.executive-kpi-grid small,.executive-attention-grid small{font-size:10px;color:#94a3b8}
.executive-attention-grid article.danger{background:#fff7f7;border-color:#fecaca}
.executive-attention-grid article.danger b{color:#dc2626}
.executive-attention-grid .time-value{font-size:22px;line-height:1.08}
.executive-live-dot{font-size:11px;color:#16a34a;font-weight:900}

.executive-hotels-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}
.executive-hotel-card{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  border:1px solid #e2e8f0;background:#fff;border-radius:17px;
  padding:15px;text-align:left
}
.executive-hotel-card.good{border-color:#bbf7d0}
.executive-hotel-card.warning{border-color:#fde68a;background:#fffdf7}
.executive-hotel-card.danger{border-color:#fecaca;background:#fff8f8}
.executive-hotel-card small,.executive-hotel-card span{display:block}
.executive-hotel-card small{font-size:9px;letter-spacing:.11em;color:#94a3b8;font-weight:950}
.executive-hotel-card b{display:block;margin:4px 0;font-size:16px;color:#0f172a}
.executive-hotel-card span{font-size:11px;color:#64748b}
.executive-hotel-numbers{text-align:right}
.executive-hotel-numbers strong{display:block;font-size:26px;color:#0f172a}
.executive-hotel-numbers em{
  display:inline-block;font-style:normal;font-size:9px;border-radius:999px;padding:3px 6px;
  background:#fee2e2;color:#b91c1c;font-weight:900;margin-top:3px
}
.executive-hotel-numbers em.pending{background:#dbeafe;color:#1d4ed8}

.executive-two-col{display:grid;grid-template-columns:1.15fr .85fr;gap:14px}
.executive-panel{
  background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:16px;margin:18px 0 0!important
}
.executive-ranking{display:grid;gap:7px}
.executive-ranking button{
  display:grid;grid-template-columns:28px 1fr auto auto;gap:9px;align-items:center;
  width:100%;border:0;background:#f8fafc;border-radius:12px;padding:10px;text-align:left
}
.executive-ranking i{
  width:25px;height:25px;border-radius:8px;display:grid;place-items:center;
  background:#e2e8f0;color:#475569;font-style:normal;font-size:11px;font-weight:900
}
.executive-ranking div b,.executive-ranking div span{display:block}
.executive-ranking div b{font-size:13px;color:#0f172a}
.executive-ranking div span{font-size:10px;color:#94a3b8;margin-top:2px}
.executive-ranking strong{font-size:18px}
.executive-ranking em{
  font-style:normal;background:#fee2e2;color:#b91c1c;border-radius:999px;
  padding:4px 7px;font-size:9px;font-weight:900
}
.executive-tech-list{display:grid;gap:7px}
.executive-tech-list>div{
  display:flex;justify-content:space-between;gap:10px;background:#f8fafc;
  border-radius:12px;padding:11px
}
.executive-tech-list span{font-size:12px;color:#475569;overflow-wrap:anywhere}
.executive-tech-list b{font-size:12px;color:#0f172a}
.executive-empty{color:#94a3b8;text-align:center;padding:22px 10px;font-size:12px}

.executive-common-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.executive-common-card{
  display:flex;justify-content:space-between;align-items:center;text-align:left;
  border:1px solid #e2e8f0;border-radius:15px;background:#fff;padding:14px
}
.executive-common-card div span,.executive-common-card div b{display:block}
.executive-common-card div span{font-size:10px;color:#94a3b8;font-weight:800}
.executive-common-card div b{font-size:17px;margin-top:3px;color:#0f172a}
.executive-common-card strong{font-size:17px;color:#16a34a}
.executive-common-card.state-issue,.executive-common-card.state-critical{border-color:#fecaca;background:#fff8f8}
.executive-common-card.state-issue strong,.executive-common-card.state-critical strong{color:#dc2626}
.executive-common-card.state-pending{border-color:#bfdbfe;background:#f7faff}
.executive-common-card.state-pending strong{color:#2563eb}

/* Dark executive dashboard */
html.dark-theme .executive-today,
html.dark-theme .executive-alert-panel,
html.dark-theme .executive-panel{
  background:#111827;border-color:#263449
}
html.dark-theme .executive-kpi-grid article,
html.dark-theme .executive-attention-grid article,
html.dark-theme .executive-ranking button,
html.dark-theme .executive-tech-list>div{
  background:#0f172a;border-color:#263449
}
html.dark-theme .executive-kpi-grid b,
html.dark-theme .executive-attention-grid b,
html.dark-theme .executive-ranking div b,
html.dark-theme .executive-tech-list b{color:#f8fafc}
html.dark-theme .executive-attention-grid article.danger{background:#211416;border-color:#7f1d1d}
html.dark-theme .executive-report-link{background:#172554;color:#93c5fd}
html.dark-theme .executive-hotel-card,
html.dark-theme .executive-common-card{background:#111827;border-color:#334155}
html.dark-theme .executive-hotel-card.warning{background:#1e1a12;border-color:#6b4e16}
html.dark-theme .executive-hotel-card.danger,
html.dark-theme .executive-common-card.state-issue,
html.dark-theme .executive-common-card.state-critical{background:#211416;border-color:#7f1d1d}
html.dark-theme .executive-common-card.state-pending{background:#111a2e;border-color:#1e40af}
html.dark-theme .executive-hotel-card b,
html.dark-theme .executive-hotel-numbers strong,
html.dark-theme .executive-common-card div b{color:#f8fafc}
html.dark-theme .executive-ranking i{background:#1e293b;color:#cbd5e1}

@media(max-width:900px){
  .executive-hero{grid-template-columns:1fr auto}
  .executive-refresh{grid-column:1/-1;width:100%}
  .executive-kpi-grid,.executive-attention-grid{grid-template-columns:repeat(2,1fr)}
  .executive-hotels-grid{grid-template-columns:1fr}
  .executive-two-col{grid-template-columns:1fr}
}
@media(max-width:760px){
  .executive-page{padding-top:11px}
  .executive-hero{display:block;padding:17px;border-radius:18px}
  .executive-hero h1{font-size:25px}
  .executive-health{margin-top:13px;min-width:0}
  .executive-refresh{margin-top:10px}
  .executive-today,.executive-alert-panel{padding:12px;border-radius:18px}
  .executive-section-head{align-items:flex-start}
  .executive-section-head h2{font-size:18px}
  .executive-report-link{font-size:10px;padding:8px}
  .executive-kpi-grid,.executive-attention-grid{gap:8px}
  .executive-kpi-grid article,.executive-attention-grid article{padding:11px}
  .executive-kpi-grid b,.executive-attention-grid b{font-size:25px}
  .executive-attention-grid .time-value{font-size:17px}
  .executive-kpi-grid span,.executive-attention-grid span{font-size:10px}
  .executive-kpi-grid small,.executive-attention-grid small{font-size:9px}
  .executive-common-grid{grid-template-columns:1fr 1fr}
}


/* V23.1 viewer navigation fix */
.viewer-all-overview{
  background:#172554;
  color:#bfdbfe;
}
.executive-hero-actions{
  display:flex;
  gap:8px;
  align-items:center;
}
.executive-back-all{
  background:rgba(255,255,255,.12)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.16);
}
html.dark-theme .viewer-all-overview{
  background:#172554;
  color:#bfdbfe;
}
@media(max-width:900px){
  .executive-hero-actions{
    grid-column:1/-1;
    width:100%;
  }
  .executive-hero-actions button{
    flex:1;
  }
}
@media(max-width:760px){
  .viewer-all-overview{
    font-size:10px;
    padding:8px 7px;
  }
  .executive-hero-actions{
    margin-top:10px;
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .executive-hero-actions .executive-refresh{
    margin-top:0;
  }
}


/* V23.2 executive hotel focus tabs */
.executive-hotels-grid-tabs{grid-template-columns:repeat(4,1fr)}
.executive-hotel-card.active-filter{
  border-width:2px;
  box-shadow:0 0 0 3px rgba(37,99,235,.12);
  transform:translateY(-1px);
}
.executive-hotel-card.all{
  background:#eef2ff;
  border-color:#c7d2fe;
}
.executive-detail-banner{
  margin-top:18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:20px;
  padding:16px 18px;
}
.executive-detail-banner small{font-size:10px;letter-spacing:.12em;color:#64748b;font-weight:950}
.executive-detail-banner h2{margin:4px 0 0;font-size:22px}
.executive-detail-banner p{margin:5px 0 0;color:#64748b;font-size:12px}
html.dark-theme .executive-hotel-card.all{background:#172554;border-color:#3750a5}
html.dark-theme .executive-hotel-card.active-filter{box-shadow:0 0 0 3px rgba(96,165,250,.16)}
html.dark-theme .executive-detail-banner{background:#111827;border-color:#263449}
@media(max-width:1100px){.executive-hotels-grid-tabs{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){
  .executive-hotels-grid-tabs{grid-template-columns:1fr}
  .executive-detail-banner{display:block;padding:14px;border-radius:18px}
  .executive-detail-banner button{margin-top:10px;width:100%}
  .executive-detail-banner h2{font-size:18px}
}


/* V23.3 cleaner viewer header */
body .top-center:empty{display:none}
@media(min-width:761px){
  .viewer-nav + .page .executive-hero-actions{justify-content:flex-end}
}


/* V23.4 executive layout order + back navigation */
.executive-hotels-top{
  margin-top:16px;
  margin-bottom:0;
}
.executive-summary-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.executive-back-summary{
  background:#eef2ff;
  color:#3730a3;
  border:1px solid #c7d2fe;
  padding:9px 12px;
  font-size:12px;
}
html.dark-theme .executive-back-summary{
  background:#172554;
  color:#bfdbfe;
  border-color:#3750a5;
}
@media(max-width:760px){
  .executive-summary-head{display:block}
  .executive-summary-actions{
    margin-top:10px;
    display:grid;
    grid-template-columns:1fr;
  }
  .executive-summary-actions button{width:100%}
  .executive-hotels-top{margin-top:12px}
}


/* V23.5 report back navigation */
.report-back-executive{
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:1px solid #cbd5e1;
  background:#fff;
  color:#0f172a;
  border-radius:12px;
  padding:10px 13px;
  margin:0 0 14px;
  font-weight:850;
}
.report-back-executive:hover{
  background:#f8fafc;
}
html.dark-theme .report-back-executive{
  background:#172033;
  color:#e5e7eb;
  border-color:#334155;
}
html.dark-theme .report-back-executive:hover{
  background:#1e293b;
}
@media(max-width:760px){
  .report-back-executive{
    width:100%;
    justify-content:center;
    margin-bottom:10px;
  }
}


/* V23.6 viewer dashboard is strictly read-only below hotel switches */
.viewer-static-card{
  cursor:default!important;
  user-select:none;
}
.floor-summary.viewer-static-card,
.executive-common-card.viewer-static-card,
.executive-ranking .viewer-ranking-row{
  pointer-events:none;
}
.floor-summary.viewer-static-card:hover,
.executive-common-card.viewer-static-card:hover,
.executive-ranking .viewer-ranking-row:hover{
  transform:none!important;
  box-shadow:none!important;
}
.executive-ranking .viewer-ranking-row{
  display:grid;
  grid-template-columns:28px 1fr auto auto;
  gap:9px;
  align-items:center;
  width:100%;
  border:0;
  background:#f8fafc;
  border-radius:12px;
  padding:10px;
  text-align:left;
}
.executive-ranking .viewer-ranking-row i{
  width:25px;height:25px;border-radius:8px;display:grid;place-items:center;
  background:#e2e8f0;color:#475569;font-style:normal;font-size:11px;font-weight:900;
}
.executive-ranking .viewer-ranking-row div b,
.executive-ranking .viewer-ranking-row div span{display:block}
.executive-ranking .viewer-ranking-row div b{font-size:13px;color:#0f172a}
.executive-ranking .viewer-ranking-row div span{font-size:10px;color:#94a3b8;margin-top:2px}
.executive-ranking .viewer-ranking-row strong{font-size:18px}
.executive-ranking .viewer-ranking-row em{
  font-style:normal;background:#fee2e2;color:#b91c1c;border-radius:999px;
  padding:4px 7px;font-size:9px;font-weight:900;
}
html.dark-theme .executive-ranking .viewer-ranking-row{background:#0f172a}
html.dark-theme .executive-ranking .viewer-ranking-row i{background:#1e293b;color:#cbd5e1}
html.dark-theme .executive-ranking .viewer-ranking-row div b{color:#f8fafc}


/* V23.7 in-app photo lightbox */
.photo-thumb{
  border:0;
  background:transparent;
  padding:0;
  border-radius:12px;
  flex:0 0 auto;
  cursor:zoom-in;
}
.photo-thumb img{
  display:block;
  width:132px;
  height:100px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid #e5e7eb;
  transition:transform .15s ease, box-shadow .15s ease;
}
.photo-thumb:hover img{
  transform:scale(1.02);
  box-shadow:0 8px 24px rgba(15,23,42,.14);
}
body.lightbox-open{
  overflow:hidden;
}
.photo-lightbox{
  position:fixed;
  inset:0;
  z-index:1000;
  background:rgba(2,6,23,.94);
  display:grid;
  grid-template-columns:72px minmax(0,1fr) 72px;
  grid-template-rows:auto minmax(0,1fr);
  align-items:center;
  justify-items:center;
  padding:max(18px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.photo-lightbox-top{
  grid-column:1/-1;
  width:min(1100px,100%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 4px 12px;
  color:#fff;
}
.photo-lightbox-top>div{
  min-width:0;
}
.photo-lightbox-caption{
  display:block;
  font-size:14px;
  font-weight:850;
}
.photo-lightbox-counter{
  display:block;
  color:#94a3b8;
  margin-top:3px;
  font-weight:700;
}
.photo-lightbox-close{
  width:46px;
  height:46px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
  background:rgba(255,255,255,.1);
  color:#fff;
  font-size:30px;
  line-height:1;
  display:grid;
  place-items:center;
}
.photo-lightbox-stage{
  grid-column:2;
  grid-row:2;
  width:100%;
  height:100%;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.photo-lightbox-image{
  max-width:100%;
  max-height:calc(100dvh - 110px);
  object-fit:contain;
  border-radius:16px;
  box-shadow:0 24px 80px rgba(0,0,0,.45);
  user-select:none;
  -webkit-user-drag:none;
}
.photo-lightbox-nav{
  grid-row:2;
  width:50px;
  height:64px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:42px;
  line-height:1;
  display:grid;
  place-items:center;
}
.photo-lightbox-nav.prev{grid-column:1}
.photo-lightbox-nav.next{grid-column:3}
.photo-lightbox-nav:hover,
.photo-lightbox-close:hover{
  background:rgba(255,255,255,.16);
}
html.dark-theme .photo-thumb img{
  border-color:#334155;
}
@media(max-width:760px){
  .photo-thumb img{
    width:126px;
    height:94px;
  }
  .photo-lightbox{
    grid-template-columns:48px minmax(0,1fr) 48px;
    padding-top:max(10px,env(safe-area-inset-top));
    padding-left:max(6px,env(safe-area-inset-left));
    padding-right:max(6px,env(safe-area-inset-right));
  }
  .photo-lightbox-top{
    padding:0 5px 8px;
  }
  .photo-lightbox-close{
    width:42px;
    height:42px;
    border-radius:13px;
  }
  .photo-lightbox-nav{
    width:40px;
    height:54px;
    border-radius:14px;
    font-size:36px;
  }
  .photo-lightbox-image{
    max-height:calc(100dvh - 90px);
    border-radius:12px;
  }
}
@media(max-width:520px){
  .photo-lightbox{
    grid-template-columns:1fr;
    display:block;
  }
  .photo-lightbox-stage{
    width:100%;
    height:calc(100dvh - 82px);
    display:flex;
  }
  .photo-lightbox-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:2;
    background:rgba(15,23,42,.58);
  }
  .photo-lightbox-nav.prev{left:8px}
  .photo-lightbox-nav.next{right:8px}
  .photo-lightbox-caption{font-size:13px}
}
