: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}
