:root{--bg:#f5f7f8;--surface:rgba(255,255,255,.82);--surface2:rgba(255,255,255,.96);--line:rgba(12,20,33,.09);--line2:rgba(12,20,33,.14);--text:#071125;--muted:#637083;--muted2:#8b96a8;--lime:#acd037;--lime2:#e8f4c1;--navy:#07142f;--red:#d92d20;--green:#079645;--amber:#c77819;--blue:#2563eb;--shadow:0 22px 64px rgba(17,24,39,.08),0 8px 22px rgba(17,24,39,.05);--soft:0 12px 34px rgba(17,24,39,.06);--r:28px;--r2:20px;--max:1120px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;color:var(--text);background:radial-gradient(circle at 10% 0%,rgba(172,208,55,.12),transparent 26%),radial-gradient(circle at 95% 5%,rgba(7,20,47,.06),transparent 34%),linear-gradient(135deg,#fbfcfa,#eef2f4 52%,#f8faf6);overflow-x:hidden}body:before{content:"";position:fixed;inset:0;background-image:linear-gradient(rgba(7,17,37,.024) 1px,transparent 1px),linear-gradient(90deg,rgba(7,17,37,.024) 1px,transparent 1px);background-size:38px 38px;pointer-events:none;mask-image:linear-gradient(to bottom,#000 0%,transparent 74%)}button,input,select,textarea{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin:0}.hidden{display:none!important}.glass{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow),inset 0 1px 0 rgba(255,255,255,.9);backdrop-filter:blur(24px) saturate(160%);-webkit-backdrop-filter:blur(24px) saturate(160%)}.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;position:relative;z-index:1}.login-card{width:min(450px,100%);border-radius:28px;padding:28px}.login-brand{display:flex;gap:16px;align-items:center;margin-bottom:24px}.login-brand h1{font-size:28px;letter-spacing:-.04em}.login-brand p{color:var(--muted);margin-top:6px}.logo{width:58px;height:58px;border-radius:18px;background:var(--navy);display:grid;place-items:center;box-shadow:0 12px 30px rgba(7,20,47,.16);flex:0 0 auto}.logo.small{width:44px;height:44px;border-radius:15px}.logo img{width:38px}.logo.small img{width:29px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.22em;color:#668a12;font-weight:950}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}.field span,.label{font-size:12px;font-weight:800;color:#4b5565}.field input,.field select,.field textarea{width:100%;min-height:48px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.88);padding:12px 16px;color:var(--text);outline:0}.field textarea{min-height:105px;resize:vertical}.helper{font-size:12px;color:var(--muted);line-height:1.5;text-align:center;margin:6px 0 16px}.btn{min-height:44px;border:0;border-radius:999px;padding:0 20px;font-weight:900;color:var(--text);transition:.16s ease;background:#fff;border:1px solid var(--line)}.btn:active,.icon-btn:active,.module-card:active,.item-card:active,.nav-chip:active{transform:scale(.98)}.btn-primary{background:var(--lime);border-color:var(--lime);box-shadow:0 16px 40px rgba(172,208,55,.22)}.btn-danger{color:var(--red);background:#fff7f6}.full{width:100%}.app{position:relative;z-index:1}.topbar{position:sticky;top:12px;z-index:30;width:min(var(--max),calc(100% - 28px));margin:12px auto 0;border-radius:25px;padding:8px 12px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px}.brand{border:0;background:transparent;display:flex;gap:12px;align-items:center;text-align:left;padding:0}.brand strong{display:block;font-size:15px;letter-spacing:-.02em;margin-top:2px}.topnav{display:flex;justify-content:center;gap:8px;min-width:0}.topnav button{border:0;border-radius:999px;background:transparent;min-height:34px;padding:0 12px;color:#3f4857;font-weight:750;display:flex;gap:6px;align-items:center;white-space:nowrap}.topnav button.active{background:var(--lime);color:#071125}.user-area{display:flex;align-items:center;gap:8px}.user-pill{border:1px solid var(--line);background:#f8fafc;border-radius:999px;min-height:34px;padding:0 12px;display:flex;align-items:center;gap:8px}.user-pill small{color:var(--muted)}.icon-btn{width:38px;height:38px;border:1px solid var(--line);border-radius:999px;background:#fff;display:grid;place-items:center;font-size:20px;color:#111827}.page{width:min(var(--max),calc(100% - 28px));margin:22px auto 70px}.home-hero{border-radius:28px;padding:34px 36px;margin-bottom:26px}.date-line{font-size:11px;font-weight:950;letter-spacing:.22em;text-transform:uppercase;color:#374151;margin-bottom:10px}.home-hero h1{font-size:32px;letter-spacing:-.05em;line-height:1.05}.accent{color:var(--lime)}.home-hero p{max-width:660px;margin-top:10px;color:#4b5565;line-height:1.45}.summary-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.status-chip,.tag{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:850}.status-chip.orange{background:#ffe6c7;color:#8a4500}.status-chip.blue{background:#dbeafe;color:#0754ad}.status-chip.green{background:#e3f5cb;color:#315e00}.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.module-card{min-height:190px;border-radius:24px;padding:24px;text-align:left;border:1px solid var(--line);background:rgba(255,255,255,.85);box-shadow:var(--soft);transition:.18s ease}.module-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.module-icon{width:44px;height:44px;border-radius:999px;display:grid;place-items:center;margin-bottom:24px}.module-icon.warn{background:#ffe4dd}.module-icon.maint{background:#dff3ff}.module-icon.task{background:#e7f7c7}.module-card h3{font-size:18px;margin-bottom:10px}.module-card p{color:#596579;line-height:1.45;min-height:44px}.open-link{display:inline-block;margin-top:20px;color:#75a600;font-weight:850}.module-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:26px 0 18px}.module-head h1{font-size:30px;letter-spacing:-.04em}.module-head .eyebrow{color:#4f5968}.module-actions{display:flex;gap:10px}.filter-row{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:26px}.search{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:20px;min-height:48px;padding:0 16px;box-shadow:var(--soft)}.search input{border:0;outline:0;background:transparent;width:100%;color:var(--text)}.segmented{display:flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;border-radius:20px;padding:5px;box-shadow:var(--soft)}.segmented button{border:0;border-radius:999px;min-height:36px;padding:0 13px;background:#eef2f6;color:#455266;font-weight:760}.segmented button.active{background:#071125;color:#fff}.list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.item-card{border:1px solid var(--line);border-radius:24px;background:rgba(255,255,255,.9);box-shadow:var(--soft);padding:20px;text-align:left;transition:.16s ease}.item-card:hover{transform:translateY(-1px)}.item-card h3{font-size:18px;letter-spacing:-.02em;margin:12px 0 6px}.item-card p{color:var(--muted);line-height:1.4}.meta{color:var(--muted);font-size:13px;margin-top:13px}.tag-row{display:flex;gap:6px;flex-wrap:wrap}.tag.open,.tag.pending,.tag.todo{background:#fff0dd;color:#914600}.tag.in_progress,.tag.review{background:#dbeafe;color:#0754ad}.tag.completed,.tag.done,.tag.approved{background:#def7e9;color:#08783a}.tag.rejected,.tag.high{background:#ffe4e4;color:#b42318}.tag.medium{background:#ffefd7;color:#a15c00}.tag.low{background:#e5f8cf;color:#476e00}.tag.neutral{background:#eef2f6;color:#344054}.card-actions{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}.mini{min-height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:#fff;font-weight:850}.mini.primary{background:var(--lime);border-color:var(--lime)}.mini.danger{color:var(--red)}.empty{grid-column:1/-1;text-align:center;border:1px solid var(--line);background:#fff;border-radius:24px;padding:70px 20px;color:var(--muted);box-shadow:var(--soft)}.kanban{display:grid;grid-template-columns:repeat(4,minmax(230px,1fr));gap:14px;overflow-x:auto;padding-bottom:8px}.column{min-height:220px;border-radius:22px;background:rgba(255,255,255,.7);border:1px solid var(--line);box-shadow:var(--soft);padding:14px}.column-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-weight:900}.count{background:#eef2f6;border-radius:999px;padding:4px 10px}.task-card{border:1px solid var(--line);background:#fff;border-radius:18px;padding:14px;text-align:left;width:100%;margin-bottom:10px}.task-card h3{font-size:15px;margin-bottom:7px}.team-wrap{max-width:860px;margin:0 auto}.team-hero{border-radius:24px;padding:24px;display:flex;align-items:center;justify-content:space-between;margin:26px 0 18px}.team-list{border-radius:24px;background:#fff;border:1px solid var(--line);box-shadow:var(--soft);overflow:hidden}.team-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:18px 22px;border-bottom:1px solid var(--line)}.team-row:last-child{border-bottom:0}.role-pill{background:var(--lime2);border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800;margin-left:8px}.staff-pill{background:#eef2f6}.row-actions{display:flex;gap:8px;flex-wrap:wrap}.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.18);z-index:60;display:none;align-items:center;justify-content:center;padding:18px}.modal-backdrop.open{display:flex}.modal{width:min(760px,100%);max-height:min(88vh,820px);border-radius:30px;overflow:hidden;background:rgba(255,255,255,.92)}.modal.wide{width:min(920px,100%)}.modal-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:24px 28px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:28px;letter-spacing:-.04em}.close{font-size:30px}.modal-body{padding:24px 28px;overflow:auto;max-height:calc(min(88vh,820px) - 104px)}.detail-grid,.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.wide{grid-column:1/-1}.detail-box{border:1px solid var(--line);background:#fff;border-radius:20px;padding:16px}.detail-box span{display:block;color:#8b96a8;font-size:11px;font-weight:900;letter-spacing:.18em;text-transform:uppercase;margin-bottom:8px}.detail-box strong{font-size:17px}.detail-note{border:1px solid var(--line);background:#fff;border-radius:20px;padding:18px;color:#39465a;line-height:1.45}.section-title{grid-column:1/-1;margin:12px 0 2px}.section-title strong{display:block;font-size:15px}.section-title span{display:block;color:var(--muted);font-size:13px;margin-top:3px}.check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.check-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:12px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.media-box{border:1px dashed var(--line2);border-radius:18px;background:#fff;padding:14px;color:var(--muted)}.file-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.file-chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 10px;font-size:12px;color:#485467}.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(20px);background:#071125;color:white;border-radius:999px;padding:12px 18px;font-weight:800;opacity:0;pointer-events:none;transition:.18s;z-index:99}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}@media(max-width:900px){.topbar{grid-template-columns:1fr auto}.topnav{grid-column:1/-1;justify-content:flex-start;overflow:auto;padding-bottom:2px}.user-area{justify-self:end}.module-grid,.list{grid-template-columns:1fr}.filter-row{grid-template-columns:1fr}.kanban{grid-template-columns:repeat(4,260px)}.modal{max-height:92vh}.detail-grid,.form-grid,.check-grid{grid-template-columns:1fr}.wide{grid-column:auto}.team-row{grid-template-columns:1fr}.home-hero{padding:28px 24px}.module-head{align-items:stretch;flex-direction:column}.module-actions{justify-content:flex-start}.brand .eyebrow{display:none}}@media(max-width:560px){.topbar{width:calc(100% - 16px);top:8px;border-radius:22px}.brand strong{font-size:14px}.topnav button span{display:none}.user-pill small{display:none}.page{width:calc(100% - 16px);margin-top:16px}.home-hero h1{font-size:28px}.module-card{min-height:160px}.modal-backdrop{padding:0;align-items:flex-end}.modal{width:100%;max-height:94vh;border-radius:28px 28px 0 0}.modal-head h2{font-size:24px}.modal-actions{position:sticky;bottom:0;background:linear-gradient(to top,#fff 70%,rgba(255,255,255,0));padding-top:16px}.btn{min-height:46px}.login-card{padding:22px}.filter-row{margin-bottom:16px}.segmented{overflow:auto}.segmented button{white-space:nowrap}}

/* v8 fixes: selected filter state + Microsoft Planner-style drag/drop */
.kanban-help{margin:-8px 0 14px;color:var(--muted);font-size:13px;font-weight:650}
.column{transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;}
.column.drag-over{border-color:rgba(172,208,55,.9);background:rgba(245,250,236,.92);box-shadow:0 18px 45px rgba(172,208,55,.18)}
.column-head{gap:8px}.column-head>span:first-child{flex:1}.column-add{width:28px;height:28px;border:0;border-radius:999px;background:#eef2f6;color:#1f2937;font-weight:900;cursor:pointer}.column-add:hover{background:var(--lime)}
.task-card{cursor:grab;transition:transform .14s ease, opacity .14s ease, box-shadow .14s ease, border-color .14s ease;}
.task-card:active{cursor:grabbing}.task-card.dragging{opacity:.55;transform:scale(.98);box-shadow:0 18px 40px rgba(15,23,42,.14);border-color:rgba(172,208,55,.9)}
.drop-empty{border-style:dashed;background:rgba(255,255,255,.55);box-shadow:none;min-height:76px;display:grid;place-items:center}
.board-tabs button.active{background:#071125;color:#fff}

/* v13 profile photo + architecture update */
.user-avatar-mini{width:24px;height:24px;border-radius:999px;display:inline-grid;place-items:center;object-fit:cover;background:var(--lime2);color:#365f00;font-size:11px;font-weight:950;overflow:hidden;flex:0 0 auto}.user-avatar-mini.initials{box-shadow:inset 0 0 0 1px rgba(172,208,55,.45)}.home-hero-profile{display:grid;grid-template-columns:1fr auto;align-items:center;gap:26px}.profile-card{min-width:220px;border:1px solid var(--line);background:rgba(255,255,255,.72);border-radius:26px;padding:18px;display:flex;align-items:center;gap:14px;box-shadow:var(--soft)}.profile-card strong{display:block;font-size:16px}.profile-card small{display:block;color:var(--muted);margin-top:4px}.profile-photo-btn{border:0;background:transparent;padding:0;position:relative;display:grid;place-items:center}.profile-photo{width:78px;height:78px;border-radius:24px;object-fit:cover;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:24px;font-weight:950;box-shadow:0 14px 36px rgba(7,20,47,.12);overflow:hidden}.profile-photo.initials{background:linear-gradient(135deg,var(--navy),#10224d)}.profile-photo.large{width:112px;height:112px;border-radius:32px;font-size:34px}.photo-edit{position:absolute;left:50%;bottom:-8px;transform:translateX(-50%);white-space:nowrap;border-radius:999px;background:var(--lime);color:var(--text);font-size:10px;font-weight:950;padding:5px 8px;box-shadow:0 8px 22px rgba(172,208,55,.22)}.profile-form{display:flex;flex-direction:column;gap:14px}.profile-preview{display:grid;place-items:center;margin:4px 0 6px}.helper.left{text-align:left;margin:0;color:var(--muted)}.team-person{display:flex;align-items:center;gap:12px}.team-avatar{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;object-fit:cover;background:var(--lime2);color:#315e00;font-weight:950;overflow:hidden;flex:0 0 auto}@media(max-width:720px){.home-hero-profile{grid-template-columns:1fr}.profile-card{min-width:0;width:100%;justify-content:flex-start}.profile-photo{width:64px;height:64px;border-radius:20px}.photo-edit{font-size:9px}}

/* v14 workflow hardening: My Work, notifications, audit, media previews, mobile nav */
.notif-btn{position:relative;width:38px;height:38px;border:1px solid var(--line);border-radius:999px;background:#fff;display:grid;place-items:center;font-size:15px}.notif-count{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;border-radius:999px;background:var(--red);color:#fff;font-size:10px;font-weight:950;display:grid;place-items:center;padding:0 5px}.my-work{border-radius:24px;padding:20px;margin-bottom:18px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.section-head h2{font-size:22px;letter-spacing:-.03em}.work-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.work-card{border:1px solid var(--line);background:#fff;border-radius:18px;padding:14px;text-align:left;box-shadow:var(--soft)}.work-card span{display:block;color:#668a12;text-transform:uppercase;letter-spacing:.14em;font-size:10px;font-weight:950;margin-bottom:8px}.work-card strong{display:block;font-size:15px;margin-bottom:5px}.work-card small{color:var(--muted)}.work-empty{grid-column:1/-1;border:1px dashed var(--line2);border-radius:18px;padding:18px;background:rgba(255,255,255,.7)}.work-empty strong,.work-empty span{display:block}.work-empty span{color:var(--muted);margin-top:4px}.empty.compact{padding:30px 18px}.empty-action{margin-top:16px}.notification-list{display:flex;flex-direction:column;gap:10px}.notification-item{border:1px solid var(--line);background:#fff;border-radius:18px;padding:14px;text-align:left;display:flex;flex-direction:column;gap:5px}.notification-item.unread{border-color:rgba(172,208,55,.7);box-shadow:0 0 0 4px rgba(172,208,55,.12)}.notification-item span{color:var(--muted)}.notification-item small{color:var(--muted2)}.audit-list{border-radius:24px;background:#fff;border:1px solid var(--line);box-shadow:var(--soft);overflow:hidden}.audit-row{display:grid;grid-template-columns:1fr auto;gap:16px;padding:16px 20px;border-bottom:1px solid var(--line)}.audit-row:last-child{border-bottom:0}.audit-row span,.audit-row small,.audit-row time{display:block;color:var(--muted);font-size:12px;margin-top:4px}.audit-row b{display:block;text-align:right}.media-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;margin-top:8px}.media-thumb{border:1px solid var(--line);background:#fff;border-radius:16px;overflow:hidden;text-align:left;padding:0}.media-thumb img{width:100%;height:90px;object-fit:cover;display:block}.media-thumb span{display:block!important;letter-spacing:0!important;text-transform:none!important;font-size:12px!important;color:var(--text)!important;padding:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important}.file-icon{height:90px;display:grid!important;place-items:center!important;font-size:28px!important;background:#eef2f6;color:#071125!important}.media-preview{width:100%;max-height:70vh;object-fit:contain;border-radius:18px;background:#000}.comment-list{display:flex;flex-direction:column;gap:10px}.comment-item{border:1px solid var(--line);border-radius:16px;background:#fff;padding:12px}.comment-item p{color:var(--muted);margin:5px 0}.comment-item small{color:var(--muted2)}
@media(max-width:720px){.work-grid{grid-template-columns:1fr}.topnav{position:fixed;left:10px;right:10px;bottom:10px;z-index:55;background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:999px;padding:7px;box-shadow:var(--shadow);backdrop-filter:blur(22px);justify-content:space-around}.topnav button{flex:1;justify-content:center;padding:0 8px}.topnav .admin-only.hidden{display:none!important}.page{margin-bottom:105px}.topbar{padding-bottom:8px}.audit-row{grid-template-columns:1fr}.audit-row b{text-align:left}.media-gallery{grid-template-columns:repeat(2,1fr)}}

/* v15 edit + activity timeline polish */
.timeline-list{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.timeline-item{position:relative;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#fff,rgba(255,255,255,.82));padding:12px 14px 12px 42px;box-shadow:0 8px 24px rgba(17,24,39,.035)}
.timeline-item:before{content:"";position:absolute;left:16px;top:17px;width:10px;height:10px;border-radius:999px;background:var(--lime);box-shadow:0 0 0 5px rgba(172,208,55,.18)}
.timeline-item strong{display:block;font-size:14px;letter-spacing:-.01em;color:var(--text)}
.timeline-item p{color:var(--muted);margin:5px 0 0;line-height:1.35}
.timeline-item small{display:block;color:var(--muted2);margin-top:7px;font-size:12px}

/* v16 due / status rules / export polish */
.tag.danger,.tag.due-overdue{background:#ffe4e4;color:#b42318}
.tag.orange,.tag.due-due_today{background:#ffefd7;color:#a15c00}
.tag.blue,.tag.due-due_week{background:#dbeafe;color:#0754ad}
.tag.green{background:#def7e9;color:#08783a}
.tag.due-no_due,.tag.due-scheduled{background:#eef2f6;color:#344054}
.task-filter-row{margin-bottom:14px}
.module-actions .btn{white-space:nowrap}
@media(max-width:720px){
  .module-actions{width:100%;overflow-x:auto;padding-bottom:4px;justify-content:flex-start}
  .module-actions .btn{flex:0 0 auto}
  .modal{max-height:92svh;overflow:auto}
  .field input[type=file]{font-size:14px;line-height:1.3;padding-top:14px}
  .kanban{scroll-snap-type:x proximity;padding-bottom:16px}
  .column{scroll-snap-align:start;min-width:260px}
  .task-filter-row .segmented{overflow:auto}
}

/* v19: Maintenance detail modal status actions */
.modal-status-actions {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 18px 45px rgba(15,23,42,.06);
}
.status-actions-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6b8f18;
  margin-bottom: 10px;
}
.status-actions-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.status-actions-buttons .btn {
  flex: 1 1 180px;
}
@media (max-width: 640px){
  .status-actions-buttons { flex-direction: column; }
  .status-actions-buttons .btn { width: 100%; flex-basis: auto; }
}

/* v20 mobile UI specialist pass: native-like bottom nav, safe sheets, no form overflow */
html, body { width: 100%; max-width: 100%; }
input, select, textarea, button { max-width: 100%; }

@media (max-width: 760px) {
  body {
    -webkit-text-size-adjust: 100%;
    overscroll-behavior-y: none;
  }

  .app {
    min-height: 100svh;
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .topbar {
    position: sticky !important;
    top: calc(8px + env(safe-area-inset-top, 0px)) !important;
    width: calc(100% - 20px) !important;
    margin: 8px auto 0 !important;
    min-height: 56px;
    grid-template-columns: 1fr auto !important;
    border-radius: 24px !important;
    padding: 7px 9px !important;
    gap: 8px !important;
    z-index: 50 !important;
  }

  .brand {
    min-width: 0;
  }

  .brand .logo.small {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .brand .logo.small img {
    width: 28px;
  }

  .brand strong {
    font-size: 14px !important;
    white-space: nowrap;
  }

  .brand .eyebrow {
    display: block !important;
    font-size: 9px;
    letter-spacing: .18em;
  }

  .user-area {
    gap: 6px;
  }

  .notif-btn,
  .user-pill,
  .topbar > .icon-btn {
    display: none !important;
  }

  .topnav {
    position: fixed !important;
    left: max(12px, env(safe-area-inset-left, 0px)) !important;
    right: max(12px, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    z-index: 80 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px !important;
    padding: 8px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.86) !important;
    border: 1px solid rgba(12,20,33,.10) !important;
    box-shadow: 0 16px 46px rgba(15,23,42,.14), inset 0 1px 0 rgba(255,255,255,.95) !important;
    backdrop-filter: blur(26px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(26px) saturate(180%) !important;
    overflow: visible !important;
  }

  .topnav button {
    width: 100%;
    min-width: 0;
    min-height: 48px !important;
    border-radius: 999px !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 19px;
  }

  .topnav button span {
    display: none !important;
  }

  .topnav button.admin-only:not(.hidden),
  .topnav button[data-go="audit"]:not(.hidden) {
    display: none !important;
  }

  .topnav button.active {
    box-shadow: 0 10px 28px rgba(172,208,55,.28);
  }

  .page {
    width: calc(100% - 24px) !important;
    margin: 18px auto calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .home-hero {
    border-radius: 28px;
    padding: 28px 24px;
  }

  .home-hero h1,
  .module-head h1 {
    font-size: clamp(30px, 9vw, 42px) !important;
    line-height: .98;
  }

  .home-hero p {
    font-size: 16px;
    line-height: 1.42;
  }

  .summary-chips {
    gap: 8px;
  }

  .status-chip,
  .tag {
    font-size: 13px;
    padding: 8px 12px;
  }

  .profile-card {
    border-radius: 24px;
    padding: 18px;
  }

  .module-head {
    margin: 28px 0 16px;
    gap: 14px;
  }

  .module-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .module-actions::-webkit-scrollbar,
  .segmented::-webkit-scrollbar,
  .kanban::-webkit-scrollbar {
    display: none;
  }

  .module-actions .btn {
    flex: 0 0 auto;
    min-height: 56px;
    padding: 0 24px;
    font-size: 17px;
  }

  .filter-row,
  .task-filter-row {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px !important;
  }

  .search {
    min-height: 58px;
    border-radius: 22px;
  }

  .search input {
    font-size: 16px;
  }

  .segmented {
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 22px;
    padding: 6px;
  }

  .segmented button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 18px;
    font-size: 15px;
    white-space: nowrap;
  }

  .list {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .item-card {
    border-radius: 26px;
    padding: 22px;
  }

  .item-card h3 {
    font-size: 22px;
  }

  .card-actions {
    gap: 10px;
  }

  .mini {
    min-height: 44px;
    padding: 0 18px;
    font-size: 15px;
  }

  .kanban {
    display: flex !important;
    gap: 14px;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 2px 20px;
    margin-left: -2px;
    margin-right: -2px;
  }

  .column {
    flex: 0 0 84vw !important;
    min-width: 84vw !important;
    min-height: 310px;
    border-radius: 26px;
    scroll-snap-align: center;
    padding: 18px;
  }

  .column-head {
    font-size: 20px;
  }

  .column-add,
  .count {
    width: 40px;
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
  }

  .task-card {
    border-radius: 22px;
    padding: 18px;
  }

  .task-card h3 {
    font-size: 18px;
  }

  .kanban-help {
    font-size: 15px;
    line-height: 1.35;
  }

  .modal-backdrop {
    padding: 0 !important;
    align-items: flex-end !important;
    overflow: hidden !important;
    background: rgba(15,23,42,.18) !important;
  }

  .modal {
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    max-height: min(91svh, 760px) !important;
    border-radius: 30px 30px 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: rgba(255,255,255,.94) !important;
    box-shadow: 0 -18px 70px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.96) !important;
  }

  .modal::before {
    content: "";
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: rgba(15,23,42,.14);
    align-self: center;
    margin-top: 10px;
    flex: 0 0 auto;
  }

  .modal-head {
    padding: 18px 22px 16px !important;
    flex: 0 0 auto;
    align-items: center !important;
  }

  .modal-head h2 {
    font-size: clamp(26px, 7vw, 34px) !important;
    line-height: 1.02;
  }

  .modal-head .eyebrow {
    font-size: 11px;
  }

  .modal-head .close {
    width: 52px;
    height: 52px;
    font-size: 32px;
    flex: 0 0 auto;
  }

  .modal-body {
    padding: 20px 22px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
  }

  .form-grid,
  .detail-grid,
  .check-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .wide,
  .field,
  .section-title,
  .detail-box,
  .detail-note,
  .check-card,
  .modal-actions {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .field {
    margin-bottom: 0;
  }

  .field input,
  .field select,
  .field textarea {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 58px;
    border-radius: 20px;
    font-size: 16px;
  }

  .field textarea {
    min-height: 118px;
  }

  .field input[type="file"] {
    padding: 16px;
    line-height: 1.35;
    background: #fff;
  }

  .modal-actions {
    position: sticky !important;
    bottom: calc(-24px - env(safe-area-inset-bottom, 0px)) !important;
    z-index: 5;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 10px -22px calc(-24px - env(safe-area-inset-bottom, 0px)) !important;
    padding: 16px 22px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    background: linear-gradient(to top, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 74%, rgba(255,255,255,0) 100%) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .modal-actions .btn {
    width: 100%;
    min-height: 56px;
    font-size: 17px;
  }

  .detail-note,
  .detail-box,
  .timeline-item,
  .comment-item,
  .media-box,
  .modal-status-actions {
    border-radius: 22px;
  }

  .status-actions-buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .toast {
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100% - 28px);
    text-align: center;
  }
}

@media (min-width: 761px) {
  .topnav button[data-go="audit"] {
    display: flex;
  }
}


/* v21 mobile app specialist pass: true bottom nav, simplified home, stable sheets */
.mobile-bottom-nav{display:none;}
body.modal-open{overflow:hidden;touch-action:none;}

@media (max-width:760px){
  body{background-attachment:fixed;}
  .app{padding-bottom:calc(98px + env(safe-area-inset-bottom,0px));}

  /* Keep the top bar as identity/account only. Desktop nav is hidden on phones. */
  .topbar{position:sticky!important;top:calc(8px + env(safe-area-inset-top,0px))!important;width:calc(100% - 20px)!important;margin:8px auto 0!important;grid-template-columns:1fr!important;z-index:20!important;min-height:54px!important;}
  .topbar .topnav{display:none!important;}
  .topbar .user-area{display:none!important;}
  .brand{width:100%;justify-content:flex-start;}

  /* Real mobile bottom navigation. */
  .mobile-bottom-nav{position:fixed;left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:55;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:7px;border-radius:999px;background:rgba(255,255,255,.90);border:1px solid rgba(12,20,33,.10);box-shadow:0 16px 46px rgba(15,23,42,.16),inset 0 1px 0 rgba(255,255,255,.95);backdrop-filter:blur(26px) saturate(180%);-webkit-backdrop-filter:blur(26px) saturate(180%);}
  .mobile-bottom-nav button{border:0;background:transparent;min-height:50px;border-radius:999px;display:flex;align-items:center;justify-content:center;gap:0;font-size:18px;font-weight:900;color:#3f4857;}
  .mobile-bottom-nav button span{display:none;}
  .mobile-bottom-nav button.active{background:var(--lime);color:#071125;box-shadow:0 10px 28px rgba(172,208,55,.28);}
  .mobile-bottom-nav button.admin-only:not(.hidden){display:none;}

  /* Cleaner mobile home: greeting/profile/my-work only, no module shortcut cards. */
  .page{width:calc(100% - 24px)!important;margin:16px auto calc(118px + env(safe-area-inset-bottom,0px))!important;}
  .home-hero{padding:24px 22px!important;margin-bottom:18px!important;}
  .home-hero-profile{display:block!important;}
  .home-hero h1{font-size:clamp(32px,10vw,46px)!important;line-height:.96!important;}
  .home-hero p{font-size:16px!important;line-height:1.4!important;}
  .summary-chips{margin-top:16px!important;}
  .profile-card{margin-top:22px!important;display:flex!important;align-items:center!important;gap:16px!important;}
  .profile-photo{width:86px!important;height:86px!important;border-radius:22px!important;font-size:32px!important;}
  .photo-edit{bottom:0!important;font-size:11px!important;}
  .my-work{padding:22px!important;border-radius:28px!important;margin-bottom:18px!important;}
  .section-head{align-items:flex-start!important;gap:12px!important;}
  .section-head .mini{min-height:46px!important;padding:0 16px!important;white-space:nowrap;}
  .work-empty{padding:20px!important;border-radius:22px!important;}
  .module-grid{display:none!important;}

  /* Module screens: compact and no accidental horizontal overflow. */
  .module-head{display:block!important;margin:24px 0 14px!important;}
  .module-actions{margin-top:14px!important;padding-bottom:2px;}
  .filter-row{width:100%;}
  .segmented{max-width:100%;}
  .list,.item-card,.empty{min-width:0;max-width:100%;}

  /* Stable Apple-like bottom sheets. */
  .modal-backdrop{position:fixed!important;inset:0!important;display:none;align-items:flex-end!important;justify-content:center!important;padding:0!important;overflow:hidden!important;touch-action:none!important;background:rgba(15,23,42,.20)!important;}
  .modal-backdrop.open{display:flex!important;}
  .modal{width:100%!important;max-width:100%!important;height:auto!important;max-height:calc(92dvh - env(safe-area-inset-top,0px))!important;border-radius:30px 30px 0 0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;touch-action:pan-y!important;}
  .modal::before{content:"";width:42px;height:5px;border-radius:999px;background:rgba(15,23,42,.16);align-self:center;margin:10px 0 0;flex:0 0 auto;}
  .modal-head{padding:18px 22px 14px!important;position:relative!important;flex:0 0 auto!important;}
  .modal-head h2{font-size:clamp(25px,7vw,32px)!important;line-height:1.04!important;}
  .modal-head .close{width:52px!important;height:52px!important;}
  .modal-body{height:auto!important;max-height:calc(92dvh - 110px - env(safe-area-inset-top,0px))!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;touch-action:pan-y!important;padding:20px 22px 0!important;}
  .modal-body form,.form-grid,.detail-grid,.check-grid{width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;}
  .field,.field input,.field select,.field textarea,.detail-box,.detail-note,.check-card{min-width:0!important;max-width:100%!important;}
  .field input,.field select,.field textarea{font-size:16px!important;}
  .modal-actions{position:sticky!important;bottom:0!important;margin:14px -22px 0!important;padding:14px 22px calc(16px + env(safe-area-inset-bottom,0px))!important;background:linear-gradient(to top,rgba(255,255,255,.98),rgba(255,255,255,.94) 72%,rgba(255,255,255,0))!important;box-shadow:0 -16px 36px rgba(15,23,42,.05);}

  /* Planner on mobile: horizontal cards but clean snap points. */
  .kanban{padding:2px 0 22px!important;gap:12px!important;scroll-padding-left:0!important;}
  .column{flex:0 0 calc(100vw - 56px)!important;min-width:calc(100vw - 56px)!important;scroll-snap-align:start!important;}
}


/* v22 mobile product-quality pass: premium compact app feel */
@media (max-width:760px){
  :root{
    --shadow:0 14px 38px rgba(17,24,39,.075),0 5px 14px rgba(17,24,39,.045);
    --soft:0 10px 26px rgba(17,24,39,.055);
  }
  html,body{min-height:100%;overflow-x:hidden!important;}
  body{font-size:15px!important;-webkit-text-size-adjust:100%;}
  body:before{background-size:30px 30px;opacity:.75;}
  body.modal-open{overflow:hidden!important;position:fixed;width:100%;}

  /* Mobile header is brand/account only, never module navigation. */
  .topbar{
    position:relative!important;
    top:auto!important;
    width:calc(100% - 24px)!important;
    margin:10px auto 8px!important;
    min-height:50px!important;
    border-radius:22px!important;
    grid-template-columns:1fr auto!important;
    padding:8px 10px!important;
    z-index:12!important;
  }
  .topbar .topnav{display:none!important;}
  .topbar .user-area{display:flex!important;justify-self:end!important;}
  .topbar .notif-btn,.topbar .user-pill{display:none!important;}
  .topbar > .user-area > .icon-btn{display:grid!important;width:38px!important;height:38px!important;font-size:18px!important;}
  .brand{gap:10px!important;min-width:0!important;}
  .brand .logo.small{width:42px!important;height:42px!important;border-radius:15px!important;}
  .brand strong{font-size:14px!important;line-height:1.05!important;}
  .brand .eyebrow{font-size:9px!important;letter-spacing:.18em!important;}

  .page{width:calc(100% - 24px)!important;margin:14px auto calc(96px + env(safe-area-inset-bottom,0px))!important;}
  .home-hero{padding:22px 20px!important;border-radius:26px!important;margin-bottom:14px!important;}
  .date-line{font-size:10px!important;margin-bottom:8px!important;}
  .home-hero h1{font-size:34px!important;line-height:.98!important;letter-spacing:-.055em!important;}
  .home-hero p{font-size:14.5px!important;line-height:1.36!important;margin-top:10px!important;}
  .summary-chips{gap:6px!important;margin-top:14px!important;}
  .status-chip,.tag{font-size:11.5px!important;padding:6px 10px!important;}
  .profile-card{margin-top:16px!important;padding:14px!important;border-radius:22px!important;gap:12px!important;}
  .profile-photo{width:64px!important;height:64px!important;border-radius:18px!important;font-size:26px!important;}
  .photo-edit{font-size:10px!important;padding:4px 8px!important;}
  .profile-card strong{font-size:17px!important;}
  .profile-card small{font-size:13px!important;}
  .profile-card-actions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap;}
  .profile-card-actions .mini{min-height:32px!important;padding:0 12px!important;font-size:12px!important;}

  .my-work{padding:18px!important;border-radius:24px!important;margin-bottom:16px!important;}
  .section-head{gap:10px!important;align-items:center!important;}
  .section-head h2{font-size:24px!important;}
  .section-head .mini{min-height:38px!important;padding:0 13px!important;font-size:13px!important;}
  .work-empty{padding:18px!important;border-radius:18px!important;}
  .work-empty strong{font-size:17px!important;}
  .work-empty span{font-size:14px!important;line-height:1.34!important;}
  .module-grid{display:none!important;}

  /* Module pages: compact, no overflow and filters stay inside their lane. */
  .module-head{display:block!important;margin:18px 0 12px!important;}
  .module-head h1{font-size:32px!important;line-height:1!important;letter-spacing:-.045em!important;}
  .module-actions{margin-top:12px!important;gap:8px!important;overflow-x:auto!important;padding:1px 0 5px!important;scrollbar-width:none;}
  .module-actions .btn{min-height:48px!important;padding:0 18px!important;font-size:15px!important;}
  .filter-row,.task-filter-row{display:flex!important;flex-direction:column!important;gap:8px!important;margin-bottom:14px!important;width:100%!important;overflow:hidden!important;}
  .search{min-height:48px!important;border-radius:18px!important;padding:0 14px!important;box-shadow:var(--soft)!important;}
  .search input{font-size:16px!important;white-space:nowrap!important;text-overflow:ellipsis!important;}
  .segmented{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;display:flex!important;gap:5px!important;padding:5px!important;border-radius:18px!important;scrollbar-width:none!important;}
  .segmented::-webkit-scrollbar{display:none!important;}
  .segmented button{flex:0 0 auto!important;min-height:36px!important;padding:0 14px!important;font-size:13px!important;white-space:nowrap!important;}
  .list{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;width:100%!important;overflow:visible!important;}
  .item-card{border-radius:22px!important;padding:18px!important;min-width:0!important;}
  .item-card h3{font-size:20px!important;margin:10px 0 5px!important;}
  .item-card p,.meta{font-size:14px!important;line-height:1.34!important;}
  .card-actions{gap:8px!important;margin-top:12px!important;}
  .mini{min-height:36px!important;padding:0 13px!important;font-size:13px!important;}
  .empty{padding:42px 16px!important;border-radius:22px!important;font-size:14px!important;}

  /* Planner: mobile-native horizontal board with clean snap and no leaking text. */
  .kanban-help{font-size:13px!important;line-height:1.35!important;margin:8px 0 12px!important;}
  .kanban{display:flex!important;gap:12px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;scroll-padding-left:0!important;padding:2px 0 18px!important;margin:0!important;width:100%!important;}
  .column{flex:0 0 calc(100vw - 58px)!important;min-width:calc(100vw - 58px)!important;min-height:230px!important;border-radius:22px!important;padding:14px!important;scroll-snap-align:start!important;}
  .column-head{font-size:17px!important;margin-bottom:10px!important;}
  .count,.column-add{width:34px!important;min-width:34px!important;height:34px!important;}
  .task-card{border-radius:18px!important;padding:14px!important;}
  .task-card h3{font-size:16px!important;}

  /* True app tab bar, compact and below content. */
  .mobile-bottom-nav{
    left:max(16px,env(safe-area-inset-left,0px))!important;
    right:max(16px,env(safe-area-inset-right,0px))!important;
    bottom:calc(14px + env(safe-area-inset-bottom,0px))!important;
    padding:6px!important;
    gap:4px!important;
    z-index:70!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.92)!important;
  }
  .mobile-bottom-nav button{min-height:46px!important;font-size:17px!important;}

  /* Stable sheets: internal scroll, no horizontal pull, actions never cover content. */
  .modal-backdrop{padding:0!important;align-items:flex-end!important;overflow:hidden!important;touch-action:none!important;z-index:90!important;}
  .modal{width:100%!important;max-width:100%!important;max-height:calc(88dvh - env(safe-area-inset-top,0px))!important;border-radius:28px 28px 0 0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;background:rgba(255,255,255,.96)!important;}
  .modal::before{width:42px!important;height:5px!important;margin:8px 0 0!important;flex:0 0 auto!important;}
  .modal-head{padding:16px 20px 12px!important;flex:0 0 auto!important;align-items:center!important;}
  .modal-head h2{font-size:27px!important;line-height:1.02!important;letter-spacing:-.045em!important;}
  .modal-head .eyebrow{font-size:10px!important;letter-spacing:.20em!important;}
  .modal-head .close{width:46px!important;height:46px!important;font-size:28px!important;}
  .modal-body{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;touch-action:pan-y!important;padding:16px 20px calc(18px + env(safe-area-inset-bottom,0px))!important;}
  .modal-body *{max-width:100%;}
  .form-grid,.detail-grid,.check-grid{grid-template-columns:1fr!important;gap:12px!important;width:100%!important;overflow:visible!important;}
  .wide,.field,.section-title,.detail-box,.detail-note,.check-card,.modal-status-actions,.timeline-list,.comment-list,.media-box{grid-column:1/-1!important;min-width:0!important;max-width:100%!important;}
  .field{gap:7px!important;margin-bottom:0!important;}
  .field span,.label{font-size:12px!important;}
  .field input,.field select,.field textarea{min-height:50px!important;border-radius:17px!important;font-size:16px!important;padding:11px 14px!important;}
  .field textarea{min-height:104px!important;}
  .detail-note,.detail-box,.timeline-item,.comment-item,.media-box,.modal-status-actions{border-radius:18px!important;padding:14px!important;}
  .detail-box strong{font-size:17px!important;line-height:1.25!important;}
  .modal-actions{position:static!important;margin:14px 0 0!important;padding:12px 0 0!important;background:transparent!important;box-shadow:none!important;display:grid!important;grid-template-columns:1fr!important;gap:9px!important;}
  .modal-actions .btn{width:100%!important;min-height:50px!important;font-size:15px!important;}
  .status-actions-buttons{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;}
  .status-actions-buttons .btn{min-height:50px!important;}
  .toast{bottom:calc(78px + env(safe-area-inset-bottom,0px))!important;}
}

/* v23 mobile reference-polish pass
   Design-only pass inspired by the attached mobile-perfect reference.
   No business logic, permissions, localStorage keys, or workflow functions changed. */
@media (max-width: 760px) {
  :root{
    --bg:#f7f9fa;
    --surface:rgba(255,255,255,.88);
    --surface2:rgba(255,255,255,.98);
    --line:rgba(15,23,42,.075);
    --line2:rgba(15,23,42,.12);
    --text:#071125;
    --muted:#647083;
    --shadow:0 10px 30px rgba(15,23,42,.07),0 2px 8px rgba(15,23,42,.035);
    --soft:0 8px 22px rgba(15,23,42,.052);
  }

  html, body {
    width:100%;
    min-height:100%;
    overflow-x:hidden!important;
    background:#f6f8fa!important;
  }

  body{
    font-size:14px!important;
    line-height:1.35;
    overscroll-behavior-y:none;
    -webkit-font-smoothing:antialiased;
    text-rendering:geometricPrecision;
  }

  body:before{
    opacity:.55!important;
    background-size:28px 28px!important;
    mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.72) 36%,transparent 84%)!important;
  }

  body.modal-open{
    overflow:hidden!important;
    position:static!important;
    width:auto!important;
    touch-action:auto!important;
  }

  .app{
    min-height:100dvh;
    padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))!important;
  }

  /* Mobile header: only brand + logout/account action. No module nav on top. */
  .topbar{
    position:relative!important;
    top:auto!important;
    width:calc(100% - 24px)!important;
    margin:10px auto 12px!important;
    min-height:54px!important;
    border-radius:22px!important;
    grid-template-columns:1fr auto!important;
    gap:8px!important;
    padding:8px 10px!important;
    z-index:12!important;
    background:rgba(255,255,255,.88)!important;
    border-color:rgba(15,23,42,.065)!important;
    box-shadow:0 8px 24px rgba(15,23,42,.07),inset 0 1px 0 rgba(255,255,255,.92)!important;
  }

  .topbar .topnav{display:none!important;}
  .topbar .user-area{display:flex!important;align-items:center!important;justify-self:end!important;gap:6px!important;}
  .topbar .notif-btn,.topbar .user-pill{display:none!important;}
  .topbar > .user-area > .icon-btn{display:grid!important;width:38px!important;height:38px!important;font-size:17px!important;background:rgba(255,255,255,.76)!important;}
  .brand{gap:10px!important;min-width:0!important;color:var(--text)!important;text-decoration:none!important;}
  .brand .logo.small{width:42px!important;height:42px!important;border-radius:15px!important;}
  .brand .logo.small img{width:28px!important;}
  .brand strong{font-size:14px!important;line-height:1.05!important;color:var(--text)!important;letter-spacing:-.01em!important;}
  .brand .eyebrow{font-size:8.5px!important;letter-spacing:.19em!important;color:#668a12!important;display:block!important;}

  /* Page shell: compact and clean like a native app. */
  .page{
    width:calc(100% - 24px)!important;
    margin:12px auto calc(100px + env(safe-area-inset-bottom,0px))!important;
  }

  .glass{
    background:rgba(255,255,255,.88)!important;
    border:1px solid rgba(15,23,42,.07)!important;
    box-shadow:0 10px 30px rgba(15,23,42,.07),inset 0 1px 0 rgba(255,255,255,.92)!important;
    backdrop-filter:blur(22px) saturate(145%)!important;
    -webkit-backdrop-filter:blur(22px) saturate(145%)!important;
  }

  /* Home: remove oversized feeling and keep only the high-value mobile content. */
  .home-hero{
    padding:22px 20px!important;
    border-radius:26px!important;
    margin-bottom:14px!important;
  }
  .home-hero-profile{display:block!important;}
  .date-line{font-size:9.5px!important;letter-spacing:.22em!important;margin-bottom:9px!important;color:#344054!important;}
  .home-hero h1{font-size:31px!important;line-height:1.02!important;letter-spacing:-.055em!important;max-width:95%!important;}
  .home-hero p{font-size:14px!important;line-height:1.42!important;margin-top:10px!important;color:#465366!important;}
  .summary-chips{display:flex!important;gap:6px!important;margin-top:14px!important;overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none!important;padding-bottom:1px!important;}
  .summary-chips::-webkit-scrollbar{display:none!important;}
  .status-chip,.tag{font-size:11px!important;line-height:1!important;padding:6px 10px!important;white-space:nowrap!important;border-radius:999px!important;}
  .profile-card{margin-top:16px!important;padding:13px!important;border-radius:22px!important;gap:12px!important;background:rgba(255,255,255,.78)!important;}
  .profile-photo{width:58px!important;height:58px!important;border-radius:17px!important;font-size:24px!important;}
  .photo-edit{font-size:9.5px!important;padding:4px 8px!important;bottom:-6px!important;}
  .profile-card strong{font-size:16px!important;line-height:1.1!important;}
  .profile-card small{font-size:12.5px!important;}
  .profile-card-actions .mini{min-height:31px!important;padding:0 11px!important;font-size:12px!important;}
  .module-grid{display:none!important;}
  .my-work{padding:16px!important;border-radius:24px!important;margin-bottom:14px!important;}
  .section-head{gap:10px!important;align-items:center!important;margin-bottom:12px!important;}
  .section-head h2{font-size:23px!important;line-height:1!important;}
  .section-head .mini{min-height:36px!important;padding:0 13px!important;font-size:12.5px!important;}
  .work-empty{padding:16px!important;border-radius:18px!important;}
  .work-empty strong{font-size:16px!important;}
  .work-empty span{font-size:13.5px!important;line-height:1.34!important;}

  /* Module pages: compact headers and actions. */
  .module-head{display:block!important;margin:18px 0 12px!important;}
  .module-head .eyebrow{font-size:9.5px!important;letter-spacing:.22em!important;}
  .module-head h1{font-size:31px!important;line-height:1!important;letter-spacing:-.045em!important;}
  .module-actions{margin-top:12px!important;display:flex!important;gap:8px!important;overflow-x:auto!important;scrollbar-width:none!important;padding:0 0 4px!important;}
  .module-actions::-webkit-scrollbar{display:none!important;}
  .module-actions .btn{flex:0 0 auto!important;min-height:44px!important;padding:0 18px!important;font-size:14px!important;box-shadow:0 8px 20px rgba(15,23,42,.055)!important;}

  /* Filters: never float over content; one clean stacked search + chip rail. */
  .filter-row,.task-filter-row{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    max-width:100%!important;
    gap:8px!important;
    margin:0 0 14px!important;
    overflow:hidden!important;
  }
  .search{min-height:47px!important;border-radius:18px!important;padding:0 14px!important;box-shadow:0 8px 22px rgba(15,23,42,.055)!important;background:rgba(255,255,255,.92)!important;}
  .search input{font-size:15px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .segmented{width:100%!important;max-width:100%!important;min-width:0!important;display:flex!important;align-items:center!important;gap:5px!important;padding:5px!important;border-radius:18px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;box-shadow:0 8px 22px rgba(15,23,42,.05)!important;background:rgba(255,255,255,.9)!important;}
  .segmented::-webkit-scrollbar{display:none!important;}
  .segmented button{flex:0 0 auto!important;min-height:36px!important;padding:0 13px!important;border-radius:999px!important;font-size:13px!important;line-height:1!important;white-space:nowrap!important;}
  .segmented button.active{background:#071125!important;color:white!important;}
  .board-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;overflow:hidden!important;}
  .board-tabs button{min-width:0!important;padding:0 8px!important;text-overflow:ellipsis!important;overflow:hidden!important;}

  /* Cards and empty states: less huge, more app-like. */
  .list{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;width:100%!important;}
  .item-card{border-radius:22px!important;padding:17px!important;background:rgba(255,255,255,.9)!important;}
  .item-card h3{font-size:19px!important;line-height:1.15!important;margin:10px 0 5px!important;}
  .item-card p,.meta{font-size:13.5px!important;line-height:1.35!important;}
  .card-actions{gap:8px!important;margin-top:12px!important;}
  .mini{min-height:35px!important;padding:0 12px!important;font-size:12.5px!important;}
  .empty{padding:38px 16px!important;border-radius:22px!important;font-size:13.5px!important;}
  .empty-action{min-height:43px!important;padding:0 18px!important;font-size:14px!important;}

  /* Planner: one-column-at-a-time carousel, no half-visible broken layout. */
  .kanban-help{font-size:12.5px!important;line-height:1.35!important;margin:8px 0 12px!important;color:#556275!important;}
  .kanban{display:flex!important;gap:12px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;scroll-padding-left:0!important;padding:1px 0 18px!important;margin:0!important;width:100%!important;scrollbar-width:none!important;}
  .kanban::-webkit-scrollbar{display:none!important;}
  .column{flex:0 0 calc(100vw - 48px)!important;min-width:calc(100vw - 48px)!important;min-height:235px!important;border-radius:22px!important;padding:14px!important;scroll-snap-align:start!important;background:rgba(255,255,255,.82)!important;}
  .column-head{font-size:16px!important;margin-bottom:10px!important;}
  .count,.column-add{width:32px!important;min-width:32px!important;height:32px!important;font-size:13px!important;}
  .task-card{border-radius:18px!important;padding:14px!important;}
  .task-card h3{font-size:15.5px!important;line-height:1.15!important;}

  /* Bottom navigation based on the reference: labels visible, compact, never top. */
  .mobile-bottom-nav{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    left:max(10px,env(safe-area-inset-left,0px))!important;
    right:max(10px,env(safe-area-inset-right,0px))!important;
    bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
    padding:6px!important;
    gap:4px!important;
    z-index:70!important;
    border-radius:24px!important;
    background:rgba(255,255,255,.92)!important;
    border:1px solid rgba(15,23,42,.08)!important;
    box-shadow:0 14px 38px rgba(15,23,42,.14),inset 0 1px 0 rgba(255,255,255,.96)!important;
    backdrop-filter:blur(24px) saturate(160%)!important;
    -webkit-backdrop-filter:blur(24px) saturate(160%)!important;
  }
  .mobile-bottom-nav button{min-height:48px!important;border:0!important;background:transparent!important;border-radius:18px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;font-size:18px!important;font-weight:800!important;color:#526072!important;padding:0!important;}
  .mobile-bottom-nav button span{display:block!important;font-size:10px!important;font-weight:700!important;line-height:1!important;letter-spacing:-.01em!important;}
  .mobile-bottom-nav button.active{background:rgba(172,208,55,.92)!important;color:#071125!important;box-shadow:none!important;}
  .mobile-bottom-nav button.admin-only:not(.hidden){display:none!important;}
  body.modal-open .mobile-bottom-nav{display:none!important;}

  /* Modal sheets: reference-style bottom sheet with internal scroll and fixed footer behavior. */
  .modal-backdrop{position:fixed!important;inset:0!important;z-index:90!important;display:none!important;align-items:flex-end!important;justify-content:center!important;padding:0!important;overflow:hidden!important;background:rgba(15,23,42,.24)!important;touch-action:none!important;}
  .modal-backdrop.open{display:flex!important;}
  .modal{width:100%!important;max-width:100%!important;height:auto!important;max-height:calc(86dvh - env(safe-area-inset-top,0px))!important;border-radius:26px 26px 0 0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;background:rgba(255,255,255,.98)!important;border:1px solid rgba(15,23,42,.08)!important;box-shadow:0 -20px 60px rgba(15,23,42,.18),inset 0 1px 0 rgba(255,255,255,.98)!important;touch-action:auto!important;}
  .modal::before{content:""!important;width:38px!important;height:4px!important;border-radius:999px!important;background:rgba(15,23,42,.15)!important;align-self:center!important;margin:8px 0 0!important;flex:0 0 auto!important;}
  .modal-head{padding:14px 18px 12px!important;min-height:70px!important;display:flex!important;align-items:center!important;gap:12px!important;flex:0 0 auto!important;border-bottom:1px solid rgba(15,23,42,.07)!important;}
  .modal-head h2{font-size:24px!important;line-height:1.04!important;letter-spacing:-.045em!important;max-width:calc(100vw - 96px)!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .modal-head .eyebrow{font-size:9.5px!important;letter-spacing:.22em!important;}
  .modal-head .close{width:44px!important;height:44px!important;font-size:27px!important;flex:0 0 auto!important;background:#fff!important;}
  .modal-body{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;touch-action:pan-y!important;padding:15px 18px calc(18px + env(safe-area-inset-bottom,0px))!important;}
  .modal-body *{max-width:100%!important;}
  .modal-body form,.form-grid,.detail-grid,.check-grid{width:100%!important;max-width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:11px!important;overflow:visible!important;}
  .wide,.field,.section-title,.detail-box,.detail-note,.check-card,.modal-status-actions,.timeline-list,.comment-list,.media-box{grid-column:1/-1!important;min-width:0!important;max-width:100%!important;}
  .section-title{font-size:18px!important;margin:8px 0 2px!important;}
  .field{gap:6px!important;margin:0!important;}
  .field span,.label{font-size:11.5px!important;line-height:1.1!important;color:#4f5b6d!important;}
  .field input,.field select,.field textarea{width:100%!important;min-width:0!important;min-height:46px!important;border-radius:16px!important;font-size:15px!important;padding:10px 13px!important;background:rgba(255,255,255,.94)!important;}
  .field textarea{min-height:94px!important;resize:vertical!important;}
  .field input[type="file"]{min-height:46px!important;font-size:13px!important;line-height:1.2!important;padding:12px!important;}
  .detail-note,.detail-box,.timeline-item,.comment-item,.media-box,.modal-status-actions{border-radius:17px!important;padding:13px!important;background:rgba(255,255,255,.86)!important;}
  .detail-box span{font-size:10px!important;letter-spacing:.18em!important;}
  .detail-box strong{font-size:16px!important;line-height:1.22!important;}
  .timeline-item{padding-left:38px!important;}
  .modal-status-actions{margin:4px 0 10px!important;}
  .status-actions-buttons{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;}
  .status-actions-buttons .btn{width:100%!important;min-height:46px!important;font-size:14px!important;}
  .modal-actions{position:static!important;bottom:auto!important;margin:12px 0 0!important;padding:0!important;background:transparent!important;box-shadow:none!important;display:grid!important;grid-template-columns:1fr!important;gap:8px!important;}
  .modal-actions .btn{width:100%!important;min-height:46px!important;font-size:14px!important;}
  .toast{bottom:calc(76px + env(safe-area-inset-bottom,0px))!important;max-width:calc(100% - 28px)!important;font-size:13px!important;}
}

@media (max-width: 380px){
  .home-hero h1,.module-head h1{font-size:28px!important;}
  .modal-head h2{font-size:22px!important;}
  .mobile-bottom-nav button span{font-size:9.5px!important;}
  .summary-chips{flex-wrap:wrap!important;}
}

/* v24 mobile viewport-lock polish
   CSS-only: fixes initial mobile zoom/overflow without touching app logic. */
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

@media (max-width:760px){
  html,
  body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  body{
    min-width:0!important;
  }

  #appShell,
  .app{
    width:100%!important;
    max-width:100vw!important;
    min-width:0!important;
    overflow-x:hidden!important;
  }

  *,
  *::before,
  *::after{
    min-width:0;
  }

  .topbar{
    width:calc(100vw - 28px)!important;
    max-width:calc(100vw - 28px)!important;
    margin:10px 14px 12px!important;
  }

  .brand{
    max-width:calc(100vw - 92px)!important;
    overflow:hidden!important;
  }

  .brand strong,
  .brand .eyebrow{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .page{
    width:100%!important;
    max-width:100vw!important;
    margin:0 auto calc(104px + env(safe-area-inset-bottom,0px))!important;
    padding:0 14px!important;
    overflow-x:hidden!important;
  }

  .home-hero,
  .my-work,
  .module-card,
  .item-card,
  .empty,
  .team-hero,
  .team-list{
    width:100%!important;
    max-width:100%!important;
  }

  .home-hero{
    padding:21px 20px 20px!important;
  }

  .home-hero h1{
    font-size:clamp(30px, 8.1vw, 34px)!important;
    line-height:1.03!important;
    max-width:100%!important;
    overflow-wrap:normal!important;
    text-wrap:balance!important;
  }

  .home-hero p{
    font-size:14px!important;
    max-width:100%!important;
  }

  .summary-chips{
    width:100%!important;
    max-width:100%!important;
    flex-wrap:wrap!important;
    overflow:visible!important;
    padding-bottom:0!important;
  }

  .status-chip,
  .tag{
    flex:0 1 auto!important;
    max-width:100%!important;
  }

  .profile-card{
    display:grid!important;
    grid-template-columns:70px minmax(0,1fr)!important;
    align-items:center!important;
    gap:12px!important;
  }

  .profile-card .profile-photo-btn{
    grid-row:1 / span 2!important;
  }

  .profile-card-actions{
    grid-column:2!important;
    display:flex!important;
    gap:7px!important;
    flex-wrap:wrap!important;
    min-width:0!important;
  }

  .profile-card-actions .mini{
    flex:0 0 auto!important;
  }

  .module-head{
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
  }

  .module-actions,
  .filter-row,
  .task-filter-row,
  .segmented,
  .search,
  .board-tabs{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  .search input::placeholder{
    text-overflow:ellipsis!important;
  }

  .segmented{
    contain:content!important;
  }

  .segmented button{
    flex:0 0 auto!important;
    max-width:calc(100vw - 48px)!important;
  }

  .board-tabs button{
    white-space:nowrap!important;
  }

  .kanban{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overscroll-behavior-x:contain!important;
  }

  .column{
    flex-basis:calc(100vw - 42px)!important;
    min-width:calc(100vw - 42px)!important;
    max-width:calc(100vw - 42px)!important;
  }

  .mobile-bottom-nav{
    left:12px!important;
    right:12px!important;
    max-width:calc(100vw - 24px)!important;
    width:auto!important;
    bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;
  }

  .mobile-bottom-nav button{
    min-width:0!important;
  }

  .modal-backdrop{
    width:100vw!important;
    max-width:100vw!important;
    overflow:hidden!important;
  }

  .modal{
    width:100vw!important;
    max-width:100vw!important;
    max-height:calc(84dvh - env(safe-area-inset-top,0px))!important;
    border-left:0!important;
    border-right:0!important;
  }

  .modal-body{
    padding:14px 18px calc(96px + env(safe-area-inset-bottom,0px))!important;
  }

  .modal-actions{
    padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
  }

  .modal-head h2{
    font-size:clamp(22px, 6.6vw, 25px)!important;
  }
}

@media (max-width:380px){
  .page{padding-left:12px!important;padding-right:12px!important;}
  .topbar{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;margin-left:12px!important;margin-right:12px!important;}
  .home-hero{padding:19px 18px!important;}
  .home-hero h1{font-size:29px!important;}
  .status-chip{font-size:10.5px!important;padding:6px 9px!important;}
  .column{flex-basis:calc(100vw - 36px)!important;min-width:calc(100vw - 36px)!important;max-width:calc(100vw - 36px)!important;}
}

/* v25 Phase 8 final mobile QA: single bottom nav, scroll-safe sheets, narrow-screen hardening */
@media (max-width:760px){
  body:not(.modal-open) .topbar .topnav{
    display:none!important;
  }

  body:not(.modal-open) .mobile-bottom-nav{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:6px!important;
    left:max(10px,env(safe-area-inset-left,0px))!important;
    right:max(10px,env(safe-area-inset-right,0px))!important;
    bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;
    max-width:calc(100vw - 20px)!important;
    padding:7px!important;
    border-radius:999px!important;
  }

  .mobile-bottom-nav button{
    min-width:0!important;
    min-height:48px!important;
    padding:0 4px!important;
    overflow:hidden!important;
  }

  .mobile-bottom-nav button span{
    max-width:100%!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body.modal-open .mobile-bottom-nav,
  body.modal-open .topbar{
    pointer-events:none!important;
  }

  .login-screen{
    min-height:100svh!important;
    padding:calc(18px + env(safe-area-inset-top,0px)) 14px calc(18px + env(safe-area-inset-bottom,0px))!important;
  }

  .login-card{
    width:calc(100vw - 28px)!important;
    max-width:420px!important;
    padding:22px 18px!important;
    border-radius:24px!important;
  }

  .login-brand{
    gap:12px!important;
    align-items:flex-start!important;
  }

  .login-brand > div:last-child{
    min-width:0!important;
    max-width:100%!important;
  }

  .login-brand h1{
    font-size:clamp(24px,7vw,28px)!important;
    line-height:1.05!important;
    overflow-wrap:normal!important;
  }

  .login-brand p{
    font-size:14px!important;
    line-height:1.35!important;
    max-width:100%!important;
    overflow-wrap:anywhere!important;
  }

  .login-card .helper{
    max-width:100%!important;
    overflow-wrap:anywhere!important;
  }

  .field input,
  .field select,
  .field textarea{
    font-size:16px!important;
  }

  .module-actions{
    padding-bottom:6px!important;
  }

  .module-actions .btn,
  .segmented button{
    white-space:nowrap!important;
  }

  .list,
  .module-grid,
  .work-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }

  .item-card,
  .module-card,
  .work-card,
  .task-card,
  .audit-row,
  .team-row{
    overflow-wrap:anywhere!important;
  }

  .card-actions,
  .row-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
  }

  .card-actions .mini,
  .row-actions .mini{
    width:100%!important;
  }

  .notification-item,
  .timeline-item,
  .comment-item,
  .detail-box,
  .media-thumb{
    min-width:0!important;
  }

  .media-gallery{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .media-thumb span,
  .file-chip{
    overflow-wrap:anywhere!important;
    white-space:normal!important;
  }

  .modal-backdrop.open{
    display:flex!important;
    align-items:flex-end!important;
  }

  .modal{
    height:auto!important;
    max-height:min(88svh,calc(100svh - env(safe-area-inset-top,0px) - 10px))!important;
  }

  .modal-body{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))!important;
  }

  .modal-actions{
    position:sticky!important;
    bottom:0!important;
    margin:14px -18px calc(-20px - env(safe-area-inset-bottom,0px))!important;
    padding:12px 18px calc(14px + env(safe-area-inset-bottom,0px))!important;
    background:linear-gradient(to top,rgba(255,255,255,.98) 72%,rgba(255,255,255,0))!important;
    z-index:2!important;
  }

  .modal-actions .btn{
    min-height:48px!important;
  }
}

@media (max-width:380px){
  .mobile-bottom-nav{
    left:8px!important;
    right:8px!important;
    max-width:calc(100vw - 16px)!important;
    gap:4px!important;
  }

  .mobile-bottom-nav button{
    min-height:46px!important;
    font-size:16px!important;
  }

  .mobile-bottom-nav button span{
    font-size:9px!important;
  }

  .media-gallery{
    grid-template-columns:minmax(0,1fr)!important;
  }
}
