/*
Theme Name: MaxiSquad Theme
Theme URI: https://maxisquad.com
Author: MaxiSquad
Author URI: https://maxisquad.com
Description: Minimal custom theme for MaxiSquad
Version: 1.0
Text Domain: maxisquad-theme
*/

/* ======================================================
   TABLE OF CONTENTS
   ------------------------------------------------------
   01. Theme Variables
   02. Global Reset / Base Elements
   03. Header / Top Navigation
   04. Page Layout
   05. Buttons
   06. Home Page
   07. Auth Pages: Login / Signup
   08. App / Dashboard Pages
   09. Responsive Base Layout
   10. Mobile Bottom Navigation
   11. Company Feed Layout
   12. Company Feed Composer / Cards
   13. Company Feed Menus / Dropdowns
   14. Company Feed Edit States
   15. Company Feed Seen Modal
   16. Company Feed Comments
   17. Company Feed Alerts / Empty States
   18. Company Feed Confirm Modal
   19. Avatar Images
   20. Mobile Tap Highlight Fixes
====================================================== */

/* ======================================================
   01. THEME VARIABLES
   Global colors, shadows, radius values, and max widths.
====================================================== */

:root{
  --msq-bg:#f6f7fb;
  --msq-surface:#ffffff;
  --msq-surface-2:#f9fafb;
  --msq-text:#111827;
  --msq-muted:#6b7280;
  --msq-border:#e5e7eb;
  --msq-accent:#111827;
  --msq-accent-2:#1f2937;
  --msq-shadow:0 10px 30px rgba(0,0,0,.06);
  --msq-shadow-lg:0 20px 50px rgba(17,24,39,.10);
  --msq-radius:16px;
  --msq-radius-lg:24px;
  --msq-max:1200px;
}

/* ======================================================
   02. GLOBAL RESET / BASE ELEMENTS
   General browser reset and shared element styling.
====================================================== */

*{
  box-sizing:border-box;
  min-width:0;
}

html{
  scroll-behavior:smooth;
}

html,
body{
  margin:0;
  padding:0;
  background:linear-gradient(180deg, #f8fafc 0%, #f6f7fb 100%);
  color:var(--msq-text);
  font-family:Arial, Helvetica, sans-serif;
  overflow-x:hidden;
}

body{
  line-height:1.5;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

button,
input,
select,
textarea{
  font:inherit;
}

button{
  cursor:pointer;
}

input,
select,
textarea{
  width:100%;
  max-width:100%;
  border:1px solid var(--msq-border);
  background:#fff;
  border-radius:12px;
  padding:12px 14px;
  color:var(--msq-text);
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input:focus,
select:focus,
textarea:focus{
  border-color:#c7ced9;
  box-shadow:0 0 0 4px rgba(17,24,39,.06);
}

table{
  width:100%;
  border-collapse:collapse;
}

th,
td{
  vertical-align:top;
}

h1,
h2,
h3,
h4,
h5,
h6{
  line-height:1.1;
  letter-spacing:-.02em;
}

p{
  line-height:1.65;
}

/* ======================================================
   03. HEADER / TOP NAVIGATION
   Fixed site header, brand logo, desktop nav, mobile nav,
   settings dropdown, CTA buttons, and chat badge.
====================================================== */

.msq-site-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:9999;
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(229,231,235,.95);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.msq-site-header-inner{
  max-width:var(--msq-max);
  margin:0 auto;
  padding:14px 24px;
  display:grid;
  grid-template-columns:180px 1fr 180px;
  align-items:center;
  gap:20px;
}

.msq-brand{
  font-size:20px;
  font-weight:800;
  letter-spacing:.2px;
  justify-self:start;
}

.msq-brand a{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.msq-brand-logo{
  display:block;
  height:44px;
  width:auto;
  max-width:none;
}

.msq-nav{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  justify-content:stretch;
  min-width:0;
}

.msq-nav-authenticated{
  grid-column:2 / 4;
  display:grid;
  grid-template-columns:1fr 180px;
  align-items:center;
  gap:14px;
}

/* Header settings dropdown */
.msq-header-settings{
  position:relative;
  justify-self:end;
}

.msq-header-settings-menu{
  position:relative;
}

.msq-header-settings-menu summary{
  list-style:none;
  cursor:pointer;
}

.msq-header-settings-menu summary::-webkit-details-marker{
  display:none;
}

.msq-header-settings-toggle{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid var(--msq-border);
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--msq-text);
  transition:.18s ease;
}

.msq-header-settings-toggle:hover{
  background:#f9fafb;
  border-color:#d1d5db;
}

.msq-header-settings-toggle svg{
  width:18px;
  height:18px;
  fill:currentColor;
  display:block;
}

.msq-header-settings-dropdown{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  min-width:190px;
  background:#fff;
  border:1px solid var(--msq-border);
  border-radius:16px;
  box-shadow:var(--msq-shadow-lg);
  padding:8px;
  display:grid;
  gap:4px;
  z-index:300;
}

.msq-header-settings-dropdown a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  color:var(--msq-text);
  font-size:14px;
  font-weight:600;
}

.msq-header-settings-dropdown a:hover{
  background:#f9fafb;
}

/* Public header nav */
.msq-nav-public{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  width:auto;
  flex-wrap:nowrap;
}

.msq-nav-public > a{
  flex:0 0 auto !important;
}

.msq-nav-link{
  color:var(--msq-muted);
  font-size:14px;
  font-weight:600;
}

.msq-nav-link:hover{
  color:var(--msq-text);
}

.msq-header-cta{
  width:auto !important;
  min-width:120px !important;
  padding:10px 16px !important;
  flex:0 0 auto !important;
  flex-shrink:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:nowrap !important;
  background:#FF0000 !important;
  color:#fff !important;
  border:1px solid #FF0000 !important;
  border-radius:12px !important;
  text-decoration:none !important;
  -webkit-text-fill-color:#fff !important;
}

.msq-header-cta:hover{
  background:#E00000 !important;
  border-color:#E00000 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

.msq-nav-login{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:120px !important;
  padding:10px 16px !important;
  border:1px solid var(--msq-border) !important;
  border-radius:12px !important;
  background:#fff !important;
  color:var(--msq-text) !important;
  text-decoration:none !important;
  font-weight:600 !important;
  white-space:nowrap !important;
  flex:0 0 auto !important;
  flex-shrink:0 !important;
  -webkit-text-fill-color:var(--msq-text) !important;
}

/* Authenticated desktop nav */
.msq-nav-desktop{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex-wrap:wrap;
  padding:6px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:999px;
}

.msq-header-nav-icon-link{
  position:relative;
  display:inline-flex !important;
  align-items:center !important;
  gap:7px !important;
  padding:9px 13px;
  border-radius:999px;
  color:#6b7280;
  font-size:14px;
  font-weight:700;
  line-height:1;
  transition:.18s ease;
}

.msq-header-nav-icon-link svg{
  width:14px !important;
  height:14px !important;
  flex:0 0 14px !important;
  display:block !important;
  fill:currentColor !important;
}

.msq-header-nav-icon-link svg *{
  stroke-width:1.8 !important;
}

.msq-header-nav-icon-link:hover{
  background:#fff;
  color:#111827;
}

.msq-header-nav-icon-link.is-active{
  background:#FF0000;
  color:#fff !important;
  box-shadow:0 8px 18px rgba(255,0,0,.16);
}

.msq-header-nav-icon-link.is-active::after{
  content:none !important;
}

.msq-header-nav-badge{
  position:absolute;
  top:0px;
  right:-8px;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#FF0000;
  color:#fff;
  border:2px solid #fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:900;
  line-height:1;
  font-style:normal;
  z-index:5;
}

/* Header mobile dropdown */
.msq-nav-mobile{
  display:none;
  align-items:center;
  gap:8px;
}

.msq-mobile-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:8px 12px;
  background:#fff;
  border:1px solid var(--msq-border);
  border-radius:999px;
  color:var(--msq-text) !important;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
}

.msq-mobile-more{
  position:relative;
}

.msq-mobile-more summary{
  list-style:none;
  cursor:pointer;
}

.msq-mobile-more summary::-webkit-details-marker{
  display:none;
}

.msq-mobile-dropdown{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  min-width:180px;
  background:#fff;
  border:1px solid var(--msq-border);
  border-radius:16px;
  box-shadow:var(--msq-shadow-lg);
  padding:8px;
  display:grid;
  gap:4px;
  z-index:200;
}

.msq-mobile-dropdown a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  color:var(--msq-text) !important;
  font-size:14px;
  font-weight:600;
}

.msq-mobile-dropdown a:hover{
  background:#f9fafb;
}

/* ======================================================
   04. PAGE LAYOUT
   Main wrapper, cards, footer visibility, app/public layouts.
====================================================== */

.msq-page-wrap{
  max-width:var(--msq-max);
  margin:0 auto;
  padding:96px 24px 24px;
  width:100%;
}

.msq-site-footer{
  display:none;
}

.msq-page-card{
  background:var(--msq-surface);
  border:1px solid var(--msq-border);
  border-radius:var(--msq-radius);
  box-shadow:var(--msq-shadow);
  padding:24px;
}

.msq-public-page .msq-page-card{
  max-width:900px;
  margin:0 auto;
}

.msq-app-page .msq-page-wrap{
  max-width:none;
}

/* Tighten the top gap under the fixed header on app pages. */
.msq-app-page .msq-page-wrap{
  padding-top:106px !important;
}

/* ======================================================
   05. BUTTONS
   Shared button styles used across public and app pages.
====================================================== */

.msq-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 20px;
  border-radius:12px;
  font-weight:700;
  transition:.18s ease;
  border:1px solid transparent;
}

.msq-btn:hover{
  transform:translateY(-1px);
}

.msq-btn-primary{
  background:var(--msq-accent);
  color:#fff !important;
  box-shadow:0 10px 20px rgba(17,24,39,.12);
}

.msq-btn-primary:hover{
  background:var(--msq-accent-2);
}

.msq-btn-secondary{
  background:#fff;
  color:var(--msq-text) !important;
  border:1px solid var(--msq-border);
}

.msq-btn-secondary:hover{
  background:#f9fafb;
}

/* ======================================================
   06. HOME PAGE
   Public landing page hero, cards, feature grid, split cards,
   check list, and CTA card.
====================================================== */

.msq-home{
  max-width:var(--msq-max);
  margin:0 auto;
  padding:64px 24px 24px;
}

.msq-hero{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:24px;
  align-items:stretch;
  padding:40px 0 24px;
}

.msq-hero-copy{
  background:#fff;
  border:1px solid var(--msq-border);
  border-radius:var(--msq-radius-lg);
  box-shadow:var(--msq-shadow-lg);
  padding:44px;
}

.msq-eyebrow{
  display:inline-block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--msq-muted);
  margin-bottom:16px;
}

.msq-hero h1{
  font-size:56px;
  line-height:1.02;
  margin:0 0 18px;
  max-width:700px;
}

.msq-hero p{
  font-size:18px;
  line-height:1.7;
  color:var(--msq-muted);
  max-width:680px;
  margin:0;
}

.msq-hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:28px;
}

.msq-hero-panel{
  display:grid;
  gap:16px;
}

.msq-mini-card{
  background:#fff;
  border:1px solid var(--msq-border);
  border-radius:var(--msq-radius-lg);
  box-shadow:var(--msq-shadow);
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:140px;
}

.msq-mini-label{
  font-size:13px;
  color:var(--msq-muted);
  margin-bottom:8px;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:700;
}

.msq-mini-value{
  font-size:28px;
  font-weight:800;
  color:var(--msq-text);
}

.msq-home-section{
  padding:24px 0;
}

.msq-section-heading{
  text-align:center;
  max-width:760px;
  margin:0 auto 24px;
}

.msq-section-heading h2{
  font-size:36px;
  margin:0 0 12px;
}

.msq-section-heading p{
  color:var(--msq-muted);
  margin:0;
  font-size:17px;
}

.msq-feature-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.msq-feature-card{
  background:#fff;
  border:1px solid var(--msq-border);
  border-radius:20px;
  box-shadow:var(--msq-shadow);
  padding:28px;
}

.msq-feature-card h3{
  margin:0 0 12px;
  font-size:22px;
}

.msq-feature-card p{
  margin:0;
  color:var(--msq-muted);
  line-height:1.7;
}

.msq-split-card{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  background:#fff;
  border:1px solid var(--msq-border);
  border-radius:24px;
  box-shadow:var(--msq-shadow);
  padding:32px;
  align-items:start;
}

.msq-split-card h2{
  margin:0 0 14px;
  font-size:34px;
}

.msq-split-card p{
  margin:0;
  color:var(--msq-muted);
  line-height:1.75;
}

.msq-check-list{
  display:grid;
  gap:12px;
}

.msq-check-list div{
  background:var(--msq-surface-2);
  border:1px solid var(--msq-border);
  border-radius:14px;
  padding:14px 16px;
  font-weight:700;
}

.msq-cta-card{
  text-align:center;
  background:#fff;
  border:1px solid var(--msq-border);
  border-radius:24px;
  box-shadow:var(--msq-shadow-lg);
  padding:44px 28px;
}

.msq-cta-card h2{
  margin:0 0 12px;
  font-size:36px;
}

.msq-cta-card p{
  margin:0;
  color:var(--msq-muted);
  font-size:17px;
}

.msq-cta-card .msq-hero-actions{
  justify-content:center;
}

/* ======================================================
   07. AUTH PAGES: LOGIN / SIGNUP
   Frontend login and signup forms.
====================================================== */

.msq-signup-form,
.msq-login-form{
  width:100%;
  max-width:520px !important;
  margin:120px auto 32px !important;
  background:#fff;
  border:1px solid var(--msq-border);
  border-radius:24px;
  box-shadow:var(--msq-shadow-lg);
  padding:32px;
}

body.msq-login-page,
body.msq-signup-page{
  background:#f3f4f6 !important;
}

body.msq-login-page .msq-page-wrap,
body.msq-signup-page .msq-page-wrap{
  min-height:100vh;
  background:#f3f4f6 !important;
  padding-bottom:32px !important;
}

.msq-signup-form h2,
.msq-login-form h2{
  margin:0 0 18px;
  font-size:34px;
  line-height:1.1;
}

.msq-signup-form p,
.msq-login-form p{
  margin:0 0 16px;
}

.msq-signup-form label,
.msq-login-form label{
  display:inline-block;
  font-size:14px;
  font-weight:700;
  margin-bottom:8px;
}

.msq-signup-form button,
.msq-login-form button{
  width:100%;
  padding:14px 18px;
  border:0;
  border-radius:12px;
  background:var(--msq-accent);
  color:#fff;
  font-weight:700;
  box-shadow:0 10px 20px rgba(17,24,39,.12);
}

.msq-signup-form button:hover,
.msq-login-form button:hover{
  background:var(--msq-accent-2);
}

.msq-signup-form input,
.msq-login-form input{
  width:100% !important;
}

/* ======================================================
   08. APP / DASHBOARD PAGES
   Dashboard sizing, tables, app headings, and app links.
====================================================== */

.msq-dashboard{
  max-width:1200px !important;
  width:100% !important;
  margin:40px auto !important;
  padding:24px !important;
}

.msq-dashboard h1{
  letter-spacing:-.03em;
}

.msq-dashboard table th{
  font-size:13px;
  color:var(--msq-muted);
  text-transform:uppercase;
  letter-spacing:.04em;
}

.msq-dashboard table td,
.msq-dashboard table th{
  font-size:14px;
}

.msq-dashboard a{
  color:var(--msq-text);
  font-weight:600;
}

.msq-dashboard a:hover{
  text-decoration:underline;
}

.msq-app-page h1{
  font-size:38px;
  margin-bottom:16px;
}

.msq-app-page h2{
  font-size:24px;
}

.msq-app-page h3{
  font-size:18px;
}

.msq-app-page p a,
.msq-app-page table a{
  font-weight:600;
}

/* ======================================================
   09. RESPONSIVE BASE LAYOUT
   Header, public page, auth page, and app page adjustments.
====================================================== */

@media (max-width: 1024px){
  .msq-hero h1{
    font-size:46px;
  }
}

@media (max-width: 900px){
  .msq-site-header-inner{
    padding:10px 12px;
    gap:10px;
    grid-template-columns:auto 1fr auto;
  }

  .msq-nav-authenticated{
    grid-column:auto;
    display:flex;
    grid-template-columns:none;
    align-items:center;
    justify-content:flex-end;
  }

  .msq-header-settings-toggle{
    width:38px;
    height:38px;
  }

  .msq-header-settings-toggle svg{
    width:17px;
    height:17px;
  }

  .msq-brand{
    font-size:17px;
  }

  .msq-brand-logo{
    height:38px;
  }

  .msq-nav-public{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    width:auto;
    flex-wrap:nowrap;
  }

  .msq-nav-public > a{
    flex:0 0 auto !important;
  }

  .msq-nav-link{
    font-size:13px;
  }

  .msq-header-cta{
    width:auto !important;
    min-width:110px !important;
    padding:9px 14px !important;
    white-space:nowrap !important;
    flex:0 0 auto !important;
    flex-shrink:0 !important;
  }

  .msq-nav-login{
    min-width:110px !important;
    padding:9px 14px !important;
    flex:0 0 auto !important;
    flex-shrink:0 !important;
  }

  .msq-nav-desktop{
    display:none;
  }

  .msq-nav-mobile{
    display:flex;
  }

body:not(.msq-app-page) .msq-page-wrap{
  padding:78px 14px 14px !important;
}

  .msq-home{
    padding:46px 14px 14px;
  }

  .msq-hero,
  .msq-feature-grid,
  .msq-split-card{
    grid-template-columns:1fr;
  }

  .msq-hero{
    gap:16px;
    padding:0 0 10px;
  }

  .msq-hero-copy{
    padding:22px;
    border-radius:20px;
  }

  .msq-hero h1{
    font-size:34px;
    line-height:1.05;
    margin-bottom:12px;
  }

  .msq-hero p{
    font-size:16px;
    line-height:1.6;
  }

  .msq-eyebrow{
    font-size:11px;
    margin-bottom:10px;
  }

  .msq-hero-actions{
    flex-direction:column;
    gap:10px;
    margin-top:20px;
  }

  .msq-home .msq-btn,
  .msq-signup-form button,
  .msq-login-form button{
    width:100%;
    min-height:48px;
    padding:14px 16px;
    border-radius:12px;
  }

  .msq-hero-panel{
    gap:12px;
  }

  .msq-mini-card{
    min-height:auto;
    padding:18px;
    border-radius:18px;
  }

  .msq-mini-label{
    font-size:11px;
  }

  .msq-mini-value{
    font-size:22px;
  }

  .msq-home-section{
    padding:12px 0;
  }

  .msq-section-heading{
    text-align:left;
    margin-bottom:16px;
  }

  .msq-section-heading h2{
    font-size:28px;
    margin-bottom:8px;
  }

  .msq-section-heading p{
    font-size:15px;
  }

  .msq-feature-card{
    padding:20px;
    border-radius:18px;
  }

  .msq-feature-card h3{
    font-size:19px;
    margin-bottom:8px;
  }

  .msq-feature-card p{
    font-size:15px;
    line-height:1.6;
  }

  .msq-split-card{
    gap:16px;
    padding:22px;
    border-radius:20px;
  }

  .msq-split-card h2{
    font-size:28px;
    margin-bottom:10px;
  }

  .msq-split-card p{
    font-size:15px;
    line-height:1.65;
  }

  .msq-check-list{
    gap:10px;
  }

  .msq-check-list div{
    padding:12px 14px;
    border-radius:12px;
    font-size:14px;
  }

  .msq-cta-card{
    padding:24px 18px;
    border-radius:20px;
  }

  .msq-cta-card h2{
    font-size:28px;
    margin-bottom:8px;
  }

  .msq-cta-card p{
    font-size:15px;
  }

.msq-signup-form,
.msq-login-form{
  margin:32px auto 20px !important;
  padding:22px 18px;
  border-radius:20px;
}

  .msq-signup-form h2,
  .msq-login-form h2{
    font-size:28px;
    margin-bottom:16px;
  }

  .msq-signup-form p,
  .msq-login-form p{
    margin-bottom:14px;
  }

  .msq-signup-form input,
  .msq-login-form input,
  .msq-signup-form select,
  .msq-login-form select{
    min-height:46px;
    padding:12px 13px;
    border-radius:12px;
    font-size:16px;
  }

  .msq-signup-form button,
  .msq-login-form button{
    min-height:48px;
    border-radius:12px;
    font-size:15px;
  }

  .msq-dashboard{
    margin:18px auto !important;
    padding:14px !important;
    max-width:100% !important;
    width:100% !important;
  }

  .msq-dashboard h1{
    font-size:30px;
  }

  .msq-dashboard h2{
    font-size:22px;
  }

  .msq-dashboard h3{
    font-size:17px;
  }

  .msq-dashboard > div[style*="display:grid"]{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }

  .msq-app-page [style*="max-width:1000px"],
  .msq-app-page [style*="max-width:1100px"],
  .msq-app-page [style*="max-width:900px"],
  .msq-app-page [style*="max-width:800px"]{
    width:100% !important;
    max-width:100% !important;
    margin:18px auto !important;
    padding:14px !important;
  }

  .msq-app-page [style*="grid-template-columns:340px 1fr"],
  .msq-app-page [style*="grid-template-columns:360px 1fr"],
  .msq-app-page [style*="grid-template-columns:repeat(2,1fr)"],
  .msq-app-page [style*="grid-template-columns:repeat(3,1fr)"]{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:14px !important;
  }

  .msq-app-page [style*="padding:24px"],
  .msq-app-page [style*="padding:20px"],
  .msq-app-page [style*="padding:32px"]{
    max-width:100% !important;
    width:100% !important;
  }

  .msq-app-page [style*="display:flex;justify-content:space-between"]{
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:10px !important;
  }

  .msq-app-page form,
  .msq-app-page input,
  .msq-app-page select,
  .msq-app-page textarea,
  .msq-app-page button{
    max-width:100% !important;
  }

  body:not(.msq-app-page) h1{
    font-size:30px !important;
    line-height:1.08;
  }

  .msq-app-page table,
  .msq-dashboard table{
    min-width:640px !important;
  }

  .msq-app-page div[style*="overflow-x:auto"],
  .msq-dashboard div[style*="overflow-x:auto"]{
    width:100% !important;
    max-width:100% !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }
}

@media (max-width: 640px){
  .msq-site-header-inner{
    padding:10px;
  }

  .msq-nav-authenticated{
    gap:6px;
  }

  .msq-header-settings-toggle{
    width:36px;
    height:36px;
  }

  .msq-header-settings-toggle svg{
    width:16px;
    height:16px;
  }

  .msq-header-settings-dropdown{
    right:0;
    min-width:170px;
  }

  .msq-brand{
    font-size:16px;
  }

  .msq-brand-logo{
    height:34px;
  }

  .msq-nav-public{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:6px;
    width:auto;
    flex-wrap:nowrap;
  }

  .msq-nav-public > a{
    flex:0 0 auto !important;
  }

  .msq-nav-link{
    font-size:12px;
  }

  .msq-nav-login{
    min-width:104px !important;
    padding:8px 12px !important;
    font-size:12px !important;
    flex:0 0 auto !important;
    flex-shrink:0 !important;
  }

  .msq-header-cta{
    width:auto !important;
    min-width:104px !important;
    padding:8px 12px !important;
    font-size:12px !important;
    white-space:nowrap !important;
    flex:0 0 auto !important;
    flex-shrink:0 !important;
  }

  .msq-nav-mobile{
    gap:6px;
  }

  .msq-mobile-pill{
    min-height:32px;
    padding:7px 10px;
    font-size:12px;
  }

  .msq-mobile-dropdown{
    min-width:160px;
  }

body:not(.msq-app-page) .msq-page-wrap,
.msq-home{
  padding:42px 12px 12px !important;
}

  .msq-hero-copy,
  .msq-mini-card,
  .msq-feature-card,
  .msq-split-card,
  .msq-cta-card{
    padding:18px;
  }

  .msq-hero h1{
    font-size:30px;
  }

  .msq-section-heading h2,
  .msq-cta-card h2,
  .msq-split-card h2{
    font-size:24px;
  }

.msq-signup-form,
.msq-login-form{
  margin:24px auto 18px !important;
  padding:18px 16px;
  border-radius:18px;
}

  .msq-signup-form h2,
  .msq-login-form h2{
    font-size:24px;
  }

  .msq-dashboard{
    padding:12px !important;
  }

  .msq-app-page table th,
  .msq-app-page table td,
  .msq-dashboard table th,
  .msq-dashboard table td{
    padding:8px !important;
    font-size:13px !important;
  }
}

/* ======================================================
   10. MOBILE BOTTOM NAVIGATION
   Fixed app bottom nav shown on mobile screens only.
====================================================== */

/* Global app-page mobile standard:
   hide top header and align all app pages consistently. */
@media (max-width:700px){
  body.msq-app-page .msq-site-header,
  body.msq-app-page header.msq-site-header,
  body.msq-app-page .site-header,
  body.msq-app-page .wp-site-blocks > header,
  body.msq-app-page .msq-top-nav,
  body.msq-app-page .msq-app-header{
    display:none !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    overflow:hidden !important;
  }

  body.msq-app-page{
    padding-top:0 !important;
  }

  body.msq-app-page .msq-page-wrap,
  body.msq-app-page main.msq-page-wrap{
    padding-top:14px !important;
    padding-left:12px !important;
    padding-right:12px !important;
    padding-bottom:96px !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
    max-width:none !important;
    width:100% !important;
  }

  body.msq-app-page .msq-dashboard,
  body.msq-app-page .msq-admin-compact-page,
  body.msq-app-page .msq-billing-page,
  body.msq-app-page .msq-create-quote-page,
  body.msq-app-page .msq-create-invoice-page,
  body.msq-app-page .msq-chat-page,
  body.msq-app-page .msq-clients-page,
  body.msq-app-page .msq-jobs-page,
  body.msq-app-page .msq-revenue-page,
  body.msq-app-page .msq-timesheets-page,
  body.msq-app-page .msq-workers-page,
  body.msq-app-page .msq-feed-page{
    padding-top:0 !important;
    margin-top:0 !important;
    position:static !important;
    top:auto !important;
  }

  body.msq-app-page h1,
  body.msq-app-page .msq-page-title,
  body.msq-app-page .msq-timesheets-title,
  body.msq-app-page .msq-admin-compact-section-head h2,
  body.msq-app-page .msq-billing-header h1,
  body.msq-app-page .msq-create-quote-header h1,
  body.msq-app-page .msq-create-invoice-topbar h1,
  body.msq-app-page .msq-chat-sidebar-head h1,
  body.msq-app-page .msq-clients-header h1,
  body.msq-app-page .msq-jobs-header h1,
  body.msq-app-page .msq-revenue-head h1,
  body.msq-app-page .msq-workers-topbar h1,
  body.msq-app-page .msq-feed-hero h1{
    margin-top:0 !important;
    margin-bottom:12px !important;
    font-size:26px !important;
    line-height:1.08 !important;
    letter-spacing:-.035em !important;
  }

  body.msq-app-page .msq-billing-header,
  body.msq-app-page .msq-create-quote-header,
  body.msq-app-page .msq-create-invoice-topbar,
  body.msq-app-page .msq-chat-sidebar-head,
  body.msq-app-page .msq-clients-header,
  body.msq-app-page .msq-jobs-header,
  body.msq-app-page .msq-revenue-head,
  body.msq-app-page .msq-timesheets-header,
  body.msq-app-page .msq-workers-topbar,
  body.msq-app-page .msq-admin-compact-section-head,
  body.msq-app-page .msq-feed-hero{
    margin-top:0 !important;
  }
}

.msq-bottom-nav{
  display:none;
}

@media (max-width: 900px){
  body.msq-app-page{
    padding-bottom:84px;
  }

  /* Hide old header mobile pills on app pages when bottom nav is active. */
  .msq-app-page .msq-nav-authenticated .msq-nav-mobile{
    display:none !important;
  }

  .msq-bottom-nav{
    display:block;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:10001;
    padding:0;
    margin:0;
    background:#ffffff;
    border-top:1px solid #e5e7eb;
    box-shadow:none;
    pointer-events:auto;
  }

  .msq-bottom-nav-shell{
    width:100%;
    max-width:none;
    margin:0;
    padding:8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:0;
    align-items:end;
    background:#ffffff;
    border-radius:0;
    box-shadow:none;
    border:0;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }

  .msq-bottom-nav-item{
    position:relative;
    min-height:64px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    text-decoration:none;
    color:var(--msq-muted);
    background:transparent;
    border-radius:0;
    box-shadow:none;
    padding:8px 4px 10px;
    transition:color .18s ease;
  }

  .msq-bottom-nav-badge{
    position:absolute;
    top:7px;
    left:50%;
    right:auto;
    transform:translateX(8px);
    min-width:18px;
    height:18px;
    padding:0 5px;
    border-radius:999px;
    background:#FF0000;
    color:#fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:10px;
    font-weight:800;
    line-height:1;
    border:2px solid #fff;
    z-index:2;
  }

  .msq-bottom-nav-item:hover{
    color:var(--msq-text);
    background:transparent;
    transform:none;
  }

  .msq-bottom-nav-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:auto;
    height:auto;
    background:transparent;
    border-radius:0;
    box-shadow:none;
    line-height:0;
    flex:0 0 auto;
  }

  .msq-bottom-nav-icon svg{
    width:22px;
    height:22px;
    display:block;
    fill:currentColor;
  }

  .msq-bottom-nav-label{
    font-size:12px;
    line-height:1;
    font-weight:600;
    letter-spacing:0;
    white-space:nowrap;
  }

  /* Remove special floating Home treatment. */
  .msq-bottom-nav-item.is-home{
    transform:none !important;
    gap:6px !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  .msq-bottom-nav-item.is-home:hover{
    transform:none !important;
  }

  .msq-bottom-nav-item.is-home .msq-bottom-nav-icon{
    width:auto !important;
    height:auto !important;
    border-radius:0 !important;
    background:transparent !important;
    color:inherit !important;
    box-shadow:none !important;
    border:0 !important;
  }

  .msq-bottom-nav-item.is-home .msq-bottom-nav-icon svg{
    width:22px !important;
    height:22px !important;
    fill:currentColor !important;
  }

  .msq-bottom-nav-item.is-home .msq-bottom-nav-label{
    color:inherit !important;
    font-size:12px !important;
    font-weight:600 !important;
    letter-spacing:0 !important;
  }

  /* Active state indicator. */
  .msq-bottom-nav-item.is-active{
    color:#FF0000;
    background:transparent !important;
  }

  .msq-bottom-nav-item.is-active::after{
    content:'';
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    bottom:0;
    width:28px;
    height:3px;
    border-radius:999px;
    background:#FF0000;
  }

  .msq-bottom-nav-item.is-home::after{
    content:none !important;
  }

  .msq-bottom-nav-item.is-home.is-active::after{
    content:'';
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    bottom:0;
    width:28px;
    height:3px;
    border-radius:999px;
    background:#FF0000;
  }
}

@media (max-width: 640px){
  body.msq-app-page{
    padding-bottom:80px;
  }

  .msq-bottom-nav-shell{
    padding:8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .msq-bottom-nav-item{
    min-height:60px;
    gap:5px;
    padding:7px 2px 9px;
  }

  .msq-bottom-nav-icon svg{
    width:21px;
    height:21px;
  }

  .msq-bottom-nav-label{
    font-size:11px;
  }

  .msq-bottom-nav-item.is-home .msq-bottom-nav-icon svg{
    width:21px !important;
    height:21px !important;
  }

  .msq-bottom-nav-item.is-home .msq-bottom-nav-label{
    font-size:11px !important;
  }

  .msq-bottom-nav-item.is-active::after,
  .msq-bottom-nav-item.is-home.is-active::after{
    width:24px;
  }
}

/* ======================================================
   11. COMPANY FEED LAYOUT
   Main company feed page shell and hero.
====================================================== */

.msq-feed-page{
  max-width:980px;
  margin:0px auto 80px;
  padding:0 14px;
}

.msq-feed-hero{
  margin-bottom:14px;
}

.msq-feed-hero h1{
  margin:0;
  font-size:26px;
  font-weight:850;
  letter-spacing:-.035em;
}

.msq-feed-hero p{
  margin:4px 0 0;
  color:#6b7280;
  font-size:14px;
}

/* ======================================================
   12. COMPANY FEED COMPOSER / CARDS
   Composer box, post cards, post meta, avatars, body, seen row.
====================================================== */

.msq-feed-composer,
.msq-feed-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  box-shadow:0 4px 16px rgba(17,24,39,.035);
}

.msq-feed-composer{
  padding:12px;
  margin-bottom:12px;
}

.msq-feed-composer textarea{
  width:100%;
  min-height:58px;
  border:0;
  resize:vertical;
  outline:none;
  background:#f9fafb;
  border-radius:12px;
  padding:8px;
  font:inherit;
  font-size:14px;
  line-height:1.45;
}

.msq-feed-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:8px;
}

.msq-feed-actions button,
.msq-feed-comment-form button{
  border:0;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-weight:750;
  cursor:pointer;
}

.msq-feed-actions button{
  padding:8px 14px;
  font-size:13px;
}

.msq-feed-list{
  display:grid;
  gap:10px;
}

.msq-feed-card{
  padding:12px;
}

.msq-feed-meta{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:7px;
  position:relative;
}

.msq-feed-avatar{
  width:34px;
  height:34px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:850;
  flex:0 0 auto;
}

.msq-feed-name{
  font-size:14px;
  font-weight:850;
  line-height:1.15;
}

.msq-feed-time{
  font-size:12px;
  color:#6b7280;
  line-height:1.2;
  margin-top:2px;
}

.msq-feed-body{
  display:block;
  color:#111827;
  line-height:1.5;
  font-size:14px;
  margin:0 0 8px 0;
  padding:0;
  text-align:left;
}

.msq-feed-seen-row{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin:2px 0 8px;
}

.msq-feed-seen-btn{
  display:inline-flex;
  align-items:center;
  gap:5px;
  border:0;
  background:transparent;
  color:#6b7280;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
  padding:4px 2px;
  width:auto;
}

.msq-feed-seen-btn svg{
  width:16px;
  height:16px;
}

.msq-feed-seen-static{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#6b7280;
  font-size:12px;
  font-weight:750;
  padding:4px 2px;
}

.msq-feed-seen-static svg{
  width:16px;
  height:16px;
}

.msq-feed-character-count{
  display:flex;
  justify-content:flex-end;
  color:#6b7280;
  font-size:12px;
  font-weight:750;
  margin:6px 2px 0;
}

/* ======================================================
   13. COMPANY FEED MENUS / DROPDOWNS
   Post and comment three-dot menus.
====================================================== */

.msq-feed-menu{
  position:relative;
  margin-left:auto;
}

.msq-feed-menu-btn{
  width:32px;
  height:32px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#111827;
  font-size:22px;
  line-height:1;
  font-weight:800;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.msq-feed-comment .msq-feed-menu-btn{
  width:24px;
  height:24px;
  font-size:16px;
  font-weight:800;
}

.msq-feed-menu-btn:hover{
  background:#f3f4f6;
}

.msq-feed-menu-dropdown{
  position:absolute;
  top:36px;
  right:0;
  width:170px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  box-shadow:0 16px 40px rgba(17,24,39,.14);
  padding:6px;
  z-index:50;
  display:none;
}

.msq-feed-menu.is-open .msq-feed-menu-dropdown{
  display:grid;
  gap:2px;
}

.msq-feed-menu-item{
  width:100%;
  border:0;
  background:transparent;
  color:#111827;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 11px;
  border-radius:10px;
  font-size:13px;
  font-weight:750;
  cursor:pointer;
  text-align:left;
}

.msq-feed-menu-icon{
  width:18px;
  height:18px;
  color:#111827;
  flex:0 0 18px;
}

.msq-feed-menu-item.is-danger .msq-feed-menu-icon{
  color:#dc2626;
}

.msq-feed-menu-item:hover{
  background:#f9fafb;
}

.msq-feed-menu-item.is-danger{
  color:#dc2626;
}

.msq-feed-menu-divider{
  height:1px;
  background:#e5e7eb;
  margin:4px 6px;
}

.msq-feed-inline-delete{
  margin:0;
}

/* ======================================================
   14. COMPANY FEED EDIT STATES
   Inline post edit and inline comment edit styling.
====================================================== */

.msq-feed-edit-form{
  display:none;
  margin:8px 0;
}

.msq-feed-card.is-editing .msq-feed-edit-form{
  display:block;
}

.msq-feed-card.is-editing .msq-feed-body,
.msq-feed-card.is-editing .msq-feed-seen-row{
  display:none;
}

.msq-feed-edit-form textarea{
  width:100%;
  min-height:90px;
  resize:vertical;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px;
  font:inherit;
  font-size:14px;
  line-height:1.45;
  background:#f9fafb;
}

.msq-feed-edit-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:8px;
}

.msq-feed-edit-actions button{
  border:0;
  border-radius:999px;
  padding:8px 13px;
  font-size:13px;
  font-weight:750;
  cursor:pointer;
}

.msq-feed-edit-cancel{
  background:#f3f4f6;
  color:#111827;
}

.msq-feed-edit-save{
  background:#111827;
  color:#fff;
}

.msq-feed-comment-edit-form{
  display:none;
  margin-top:7px;
}

.msq-feed-comment.is-editing .msq-feed-comment-body{
  display:none;
}

.msq-feed-comment.is-editing .msq-feed-comment-edit-form{
  display:block;
}

.msq-feed-comment-edit-form textarea{
  width:100%;
  min-height:70px;
  resize:vertical;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:8px;
  outline:none;
  font:inherit;
  font-size:13px;
  line-height:1.35;
  background:#fff;
}

.msq-feed-comment-edit-actions{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  margin-top:7px;
}

.msq-feed-comment-edit-actions button{
  border:0;
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
}

.msq-feed-comment-edit-cancel{
  background:#f3f4f6;
  color:#111827;
}

.msq-feed-comment-edit-save{
  background:#111827;
  color:#fff;
}

/* ======================================================
   15. COMPANY FEED SEEN MODAL
   Seen-by modal overlay, panel, person rows, and close button.
====================================================== */

.msq-feed-seen-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:flex-end;
  justify-content:center;
  background:rgba(17,24,39,.42);
  padding:16px;
}

.msq-feed-seen-modal.is-open{
  display:flex;
}

.msq-feed-seen-panel{
  width:100%;
  max-width:520px;
  max-height:70vh;
  overflow:auto;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  box-shadow:0 20px 60px rgba(17,24,39,.22);
  padding:18px;
}

.msq-feed-seen-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
}

.msq-feed-seen-head h3{
  margin:0;
  font-size:20px;
  letter-spacing:-.03em;
}

.msq-feed-seen-head p{
  margin:4px 0 0;
  color:#6b7280;
  font-size:13px;
}

.msq-feed-seen-close{
  width:34px;
  height:34px;
  border:0;
  border-radius:999px;
  background:#f3f4f6;
  color:#111827;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

.msq-feed-seen-list{
  display:grid;
}

.msq-feed-seen-person{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 0;
  border-top:1px solid #f3f4f6;
}

.msq-feed-seen-person-avatar{
  width:30px;
  height:30px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:850;
  flex:0 0 auto;
}

.msq-feed-seen-person-name{
  font-size:14px;
  font-weight:800;
}

.msq-feed-seen-person-time{
  margin-left:auto;
  color:#6b7280;
  font-size:12px;
  white-space:nowrap;
}

@media (min-width:641px){
  .msq-feed-seen-modal{
    align-items:center;
  }
}

/* ======================================================
   16. COMPANY FEED COMMENTS
   Comment list, comment row, comment meta, comment body,
   and comment form.
====================================================== */

.msq-feed-comments{
  margin-left:0;
  padding-top:8px;
  border-top:1px solid #f3f4f6;
  display:grid;
  gap:7px;
}

.msq-feed-comment{
  background:#f9fafb;
  border-radius:12px;
  padding:8px 10px;
  text-align:left;
  position:relative;
}

.msq-feed-comment-meta{
  display:flex;
  align-items:center;
  gap:7px;
}

.msq-feed-comment-avatar{
  width:22px;
  height:22px;
  border-radius:999px;
  background:#4b5563;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:850;
  flex:0 0 auto;
}

.msq-feed-comment-name{
  font-size:12.5px;
  font-weight:850;
  line-height:1.15;
}

.msq-feed-comment-time{
  font-size:10.5px;
  color:#6b7280;
  line-height:1.15;
  white-space:nowrap;
}

/* Keeps the comment three-dot menu pinned to the far right. */
.msq-feed-comment .msq-feed-menu{
  margin-left:auto;
}

.msq-feed-comment-body{
  display:block;
  margin:5px 0 0 0;
  padding:0;
  color:#111827;
  line-height:1.4;
  font-size:13px;
  text-align:left;
}

.msq-feed-comment-form{
  display:flex;
  gap:7px;
  align-items:flex-start;
  margin-top:2px;
}

.msq-feed-comment-form textarea{
  width:100%;
  min-height:36px;
  max-height:80px;
  resize:vertical;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:8px;
  outline:none;
  font:inherit;
  font-size:13px;
  line-height:1.3;
  background:#fff;
}

.msq-feed-comment-form button{
  padding:9px 12px;
  font-size:12px;
  flex:0 0 auto;
}

@media (max-width:640px){
  .msq-feed-page{
    width:100% !important;
    max-width:none !important;
    margin:0 auto 80px !important;
    padding:0 2px !important;
  }

  .msq-feed-hero h1{
    font-size:26px !important;
  }

  .msq-feed-body,
  .msq-feed-comments{
    margin-left:0;
  }

  .msq-feed-comment-body{
    margin-left:0;
  }

  .msq-feed-comment-form{
    flex-direction:column;
  }

  .msq-feed-comment-form button{
    width:100%;
  }
}

/* ======================================================
   17. COMPANY FEED ALERTS / EMPTY STATES
   Success/error notices and empty feed card.
====================================================== */

.msq-feed-alert{
  margin-bottom:10px;
  padding:9px 11px;
  border-radius:12px;
  font-weight:700;
  font-size:13px;
}

.msq-feed-success{
  border:1px solid #86efac;
  background:#f0fdf4;
  color:#166534;
}

.msq-feed-error{
  border:1px solid #fca5a5;
  background:#fef2f2;
  color:#991b1b;
}

.msq-feed-empty{
  background:#fff;
  border:1px dashed #d1d5db;
  border-radius:14px;
  padding:18px;
  color:#6b7280;
  text-align:center;
  font-size:14px;
}

/* ======================================================
   18. COMPANY FEED CONFIRM MODAL
   Delete confirmation overlay and buttons.
====================================================== */

.msq-feed-confirm-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(17,24,39,.45);
  padding:18px;
}

.msq-feed-confirm-modal.is-open{
  display:flex;
}

.msq-feed-confirm-box{
  width:100%;
  max-width:380px;
  background:#fff;
  border-radius:20px;
  padding:20px;
  box-shadow:0 24px 70px rgba(17,24,39,.25);
}

.msq-feed-confirm-box h3{
  margin:0 0 8px;
  font-size:20px;
}

.msq-feed-confirm-box p{
  margin:0;
  color:#6b7280;
  font-size:14px;
}

.msq-feed-confirm-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:18px;
}

.msq-feed-confirm-cancel,
.msq-feed-confirm-delete{
  border:0;
  border-radius:999px;
  padding:9px 14px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.msq-feed-confirm-cancel{
  background:#f3f4f6;
  color:#111827;
}

.msq-feed-confirm-delete{
  background:#dc2626;
  color:#fff;
}

/* ======================================================
   19. AVATAR IMAGES
   Makes uploaded profile photos fill circular avatars.
====================================================== */

.msq-feed-avatar img,
.msq-feed-comment-avatar img,
.msq-feed-seen-person-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:999px;
  display:block;
}

/* ======================================================
   20. MOBILE TAP HIGHLIGHT FIXES
   Removes the blue square/highlight when tapping bottom nav
   items on mobile browsers.
====================================================== */

.msq-bottom-nav,
.msq-bottom-nav *,
.msq-bottom-nav-item{
  -webkit-tap-highlight-color:transparent;
}

.msq-bottom-nav-item{
  outline:none;
  box-shadow:none;
  user-select:none;
  -webkit-user-select:none;
  touch-action:manipulation;
}

.msq-bottom-nav-item:focus,
.msq-bottom-nav-item:active,
.msq-bottom-nav-item:focus-visible{
  outline:none;
  box-shadow:none;
  background:transparent !important;
}

/* Signup mobile: anchor card and remove page scroll */
@media (max-width:640px){
  body.msq-signup-page,
  body.msq-signup-page html{
    height:100%;
    overflow:hidden !important;
  }

  body.msq-signup-page .msq-page-wrap{
    height:100vh !important;
    min-height:100vh !important;
    overflow:hidden !important;
    padding:74px 12px 12px !important;
    display:flex !important;
    align-items:flex-start !important;
    justify-content:center !important;
  }

  body.msq-signup-page .msq-signup-form{
    margin:10px auto 0 !important;
    padding:16px 16px !important;
    max-height:calc(100vh - 92px) !important;
    overflow:hidden !important;
  }

  body.msq-signup-page .msq-signup-form h2{
    font-size:22px !important;
    margin-bottom:14px !important;
  }

  body.msq-signup-page .msq-signup-form p{
    margin-bottom:10px !important;
  }

  body.msq-signup-page .msq-signup-form label{
    margin-bottom:6px !important;
  }

  body.msq-signup-page .msq-signup-form input{
    min-height:42px !important;
    padding:10px 12px !important;
  }

  body.msq-signup-page .msq-signup-form button{
    min-height:46px !important;
  }
}

@media (max-width:640px){
  html:has(body.msq-signup-page),
  body.msq-signup-page{
    height:100vh !important;
    max-height:100vh !important;
    overflow:hidden !important;
    overscroll-behavior:none !important;
    position:fixed !important;
    inset:0 !important;
    width:100% !important;
  }

  body.msq-signup-page .msq-page-wrap{
    overflow:hidden !important;
  }
}

/* Login mobile: anchored card, no scroll, no tall wrapper */
@media (max-width:640px){
  html:has(body.msq-login-page),
  body.msq-login-page{
    height:100vh !important;
    max-height:100vh !important;
    overflow:hidden !important;
    overscroll-behavior:none !important;
    position:fixed !important;
    inset:0 !important;
    width:100% !important;
    background:#f3f4f6 !important;
  }

  body.msq-login-page .msq-page-wrap{
    height:auto !important;
    min-height:0 !important;
    padding:118px 12px 0 !important;
    overflow:visible !important;
    display:block !important;
    background:#f3f4f6 !important;
  }

  body.msq-login-page .msq-login-form{
    margin:0 auto !important;
    padding:18px 16px !important;
    max-height:none !important;
    overflow:visible !important;
  }
}

/* Company Switcher */
.msq-company-switcher{
  position:relative;
  justify-self:end;
}

.msq-company-switcher-menu{
  position:relative;
}

.msq-company-switcher-menu summary{
  list-style:none;
  cursor:pointer;
}

.msq-company-switcher-menu summary::-webkit-details-marker{
  display:none;
}

.msq-company-switcher-toggle{
  min-height:42px;
  max-width:230px;
  padding:8px 11px;
  border:1px solid var(--msq-border);
  border-radius:14px;
  background:#fff;
  display:flex;
  align-items:center;
  gap:8px;
  color:#111827;
}

.msq-company-switcher-icon,
.msq-company-switcher-option-icon{
  width:26px;
  height:26px;
  border-radius:9px;
  background:#fff1f1;
  color:#FF0000;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.msq-company-switcher-icon svg,
.msq-company-switcher-option-icon svg,
.msq-company-switcher-caret svg{
  width:15px;
  height:15px;
  fill:currentColor;
}

.msq-company-switcher-name{
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.msq-company-switcher-caret{
  margin-left:auto;
  color:#6b7280;
  display:flex;
}

.msq-company-switcher-dropdown{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  width:310px;
  background:#fff;
  border:1px solid var(--msq-border);
  border-radius:18px;
  box-shadow:var(--msq-shadow-lg);
  padding:10px;
  z-index:500;
}

.msq-company-switcher-label{
  padding:6px 8px 10px;
  color:#6b7280;
  font-size:12px;
  font-weight:800;
}

.msq-company-switcher-form{
  margin:0;
}

.msq-company-switcher-option{
  width:100%;
  border:0;
  background:transparent;
  padding:10px 8px;
  border-radius:13px;
  display:flex;
  align-items:center;
  gap:9px;
  color:#111827;
  box-shadow:none;
  text-align:left;
}

.msq-company-switcher-option:hover,
.msq-company-switcher-option.is-active{
  background:#f9fafb;
}

.msq-company-switcher-option-name{
  flex:1;
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.msq-company-switcher-role{
  font-size:11px;
  font-weight:900;
  padding:4px 8px;
  border-radius:999px;
}

.msq-company-switcher-role.is-owner{
  background:#fff1f1;
  color:#FF0000;
}

.msq-company-switcher-role.is-worker{
  background:#ecfdf5;
  color:#16a34a;
}

.msq-company-switcher-check{
  color:#FF0000;
  font-weight:900;
  font-size:14px;
}

.msq-company-switcher-create{
  margin-top:8px;
  padding:12px 8px 4px;
  border-top:1px solid var(--msq-border);
  display:flex;
  align-items:center;
  gap:10px;
  color:#FF0000;
  font-weight:900;
  font-size:14px;
}

/* Mobile */
@media (max-width:900px){
  .msq-company-switcher-toggle{
    max-width:150px;
    min-height:38px;
    padding:7px 9px;
  }

  .msq-company-switcher-name{
    max-width:85px;
    font-size:12px;
  }

  .msq-company-switcher-dropdown{
    right:-46px;
    width:280px;
  }
}

/* Fix reset password instruction text wrapping */
body.login #login p.message,
body.login #login .message,
body.login #login .notice,
body.login #login .success{
    box-sizing:border-box !important;
    width:100% !important;
    max-width:100% !important;
    overflow-wrap:break-word !important;
    word-break:normal !important;
    white-space:normal !important;
    line-height:1.55 !important;
}

/* Keep the reset password form/card from clipping text */
body.login div#login{
    box-sizing:border-box !important;
    width:100% !important;
}

body.login form{
    box-sizing:border-box !important;
    width:100% !important;
    max-width:100% !important;
    overflow:visible !important;
}

/* ======================================================
   MAXISQUAD ADD JOB SHEET - COMPACT POLISHED STYLE
====================================================== */

.msq-schedule-job-create-sheet .msq-schedule-sheet-panel {
    width: min(520px, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 28px) !important;
    padding: 18px !important;
    border-radius: 26px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 28px 80px rgba(17, 24, 39, .24) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.msq-schedule-sheet-head {
    margin: 0 44px 16px 0;
}

.msq-schedule-sheet-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.msq-schedule-sheet-head h2 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 28px !important;
    line-height: 1.05 !important;
    letter-spacing: -.04em !important;
}

.msq-schedule-sheet-head p {
    margin: 7px 0 0 !important;
    color: #6b7280 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

.msq-schedule-job-create-sheet .msq-schedule-sheet-close {
    top: 16px !important;
    right: 16px !important;
    width: 38px !important;
    height: 38px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 999px !important;
    background: #f9fafb !important;
    color: #111827 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.msq-schedule-job-create-sheet .msq-schedule-sheet-close:hover {
    background: #111827 !important;
    color: #ffffff !important;
}

#msq_schedule_job_form {
    display: grid !important;
    gap: 10px !important;
}

#msq_schedule_job_form .msq-schedule-form-field {
    display: grid !important;
    gap: 6px !important;
    margin: 0 !important;
}

#msq_schedule_job_form .msq-schedule-form-field > span {
    color: #374151 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
}

#msq_schedule_job_form input,
#msq_schedule_job_form select,
#msq_schedule_job_form textarea {
    min-height: 44px !important;
    width: 100% !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    background: #f9fafb !important;
    color: #111827 !important;
    padding: 11px 13px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

#msq_schedule_job_form textarea {
    min-height: 78px !important;
    resize: vertical !important;
    line-height: 1.45 !important;
}

#msq_schedule_job_form input:focus,
#msq_schedule_job_form select:focus,
#msq_schedule_job_form textarea:focus {
    background: #ffffff !important;
    border-color: #111827 !important;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, .08) !important;
    outline: none !important;
}

#msq_schedule_job_form .msq-schedule-form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

#msq_schedule_job_form .msq-schedule-worker-picker-btn {
    width: 100% !important;
    min-height: 44px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    background: #f9fafb !important;
    color: #111827 !important;
    padding: 11px 13px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-align: left !important;
    box-shadow: none !important;
}

#msq_schedule_job_form .msq-schedule-worker-picker-btn:hover {
    background: #ffffff !important;
    border-color: #111827 !important;
}

#msq_schedule_selected_workers_text {
    display: block !important;
    margin-top: 2px !important;
    color: #6b7280 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.msq-schedule-task-section {
    display: grid !important;
    gap: 12px !important;
    margin: 0 !important;
}

.msq-schedule-task-builder {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* The first + Add Task List button */
#msq_schedule_toggle_tasks {
    background: #ffffff !important;
}

/* New task list header with top-right X */
.msq-schedule-task-builder-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 2px !important;
}

.msq-schedule-task-builder-title {
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
}

.msq-schedule-task-builder-subtitle {
    margin-top: 3px !important;
    color: #6b7280 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.msq-schedule-task-builder-x {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.msq-schedule-task-builder-x:hover {
    background: #fee2e2 !important;
    border-color: #fecaca !important;
    color: #b91c1c !important;
}

/* ======================================================
   ADD JOB - MULTIPLE TASK LISTS
====================================================== */

#msq_schedule_task_lists {
    display: grid !important;
    gap: 12px !important;
}

.msq-schedule-task-list-card {
    display: grid !important;
    gap: 12px !important;
    padding: 14px !important;
    border: 1px dashed #d1d5db !important;
    border-radius: 18px !important;
    background: #f9fafb !important;
}

.msq-schedule-task-builder-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.msq-schedule-task-builder-title {
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
}

.msq-schedule-task-builder-subtitle {
    margin-top: 3px !important;
    color: #6b7280 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.msq-schedule-task-builder-x {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.msq-schedule-task-builder-x:hover {
    background: #fee2e2 !important;
    border-color: #fecaca !important;
    color: #b91c1c !important;
}

.msq-schedule-task-list-card .msq-schedule-form-field {
    margin: 0 !important;
}

.msq-schedule-task-list-card .msq-schedule-form-field > span {
    margin-bottom: 6px !important;
}

.msq-schedule-task-list-title-input {
    min-height: 42px !important;
    background: #ffffff !important;
}

.msq-schedule-task-list-items {
    display: grid !important;
    gap: 10px !important;
}

.msq-schedule-task-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 8px !important;
    align-items: center !important;
}

.msq-schedule-task-text {
    min-height: 42px !important;
    background: #ffffff !important;
}

.msq-schedule-task-remove {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.msq-schedule-task-remove:hover {
    background: #fee2e2 !important;
    border-color: #fecaca !important;
    color: #b91c1c !important;
}

.msq-schedule-add-task-to-list {
    margin-top: 0 !important;
    background: #ffffff !important;
}

#msq_schedule_add_task_list,
.msq-schedule-add-task-list-main {
    margin-top: 0 !important;
    background: #ffffff !important;
}

#msq_schedule_job_form .msq-schedule-save-btn {
    width: 100% !important;
    min-height: 48px !important;
    margin-top: 4px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: #FF0000 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    box-shadow: 0 14px 26px rgba(255, 0, 0, .22) !important;
}

#msq_schedule_job_form .msq-schedule-save-btn:hover {
    background: #e00000 !important;
}

#msq_schedule_job_form .msq-schedule-save-btn.is-saving {
    opacity: .72 !important;
    cursor: wait !important;
}

@media (max-width: 640px) {
    .msq-schedule-job-create-sheet .msq-schedule-sheet-panel {
        width: calc(100vw - 18px) !important;
        max-height: calc(100dvh - 18px) !important;
        padding: 16px !important;
        border-radius: 24px !important;
    }

    .msq-schedule-sheet-head h2 {
        font-size: 25px !important;
    }

    .msq-schedule-sheet-head p {
        font-size: 12px !important;
    }

    #msq_schedule_job_form {
        gap: 9px !important;
    }

    #msq_schedule_job_form .msq-schedule-form-grid {
        gap: 8px !important;
    }

    .msq-schedule-task-builder {
        padding: 13px !important;
    }
}

.msq-job-task-cards {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.msq-job-edit-task-lists {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.msq-job-edit-task-list-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px dashed #d1d5db;
    border-radius: 18px;
    background: #f9fafb;
}

.msq-job-edit-task-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.msq-job-edit-task-list-remove {
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    box-shadow: none;
}

.msq-job-edit-task-list-remove:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

.msq-job-edit-task-list-items {
    display: grid;
    gap: 8px;
}

/* ======================================================
   JOB VIEW TASK CHECKLIST - WHITE SPACE FIX
====================================================== */

.msq-job-task-cards,
.msq-job-task-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.msq-job-task-cards {
    display: grid !important;
    gap: 14px !important;
    margin-top: 18px !important;
}

.msq-job-task-card {
    display: grid !important;
    gap: 14px !important;
    overflow: visible !important;
    margin-top: 0 !important;
}

.msq-job-task-list,
.msq-job-task-items,
.msq-job-task-list-items {
    display: grid !important;
    gap: 10px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.msq-job-task-item {
    position: relative !important;
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 10px !important;
    align-items: center !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px !important;
    overflow: hidden !important;
}

.msq-job-task-checkbox {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    max-width: 1px !important;
    max-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
}

.msq-job-task-checkmark {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    flex: 0 0 24px !important;
    box-sizing: border-box !important;
}

.msq-job-task-text {
    min-width: 0 !important;
    line-height: 1.35 !important;
}

/* ======================================================
   MAXISQUAD HOMEPAGE V2
====================================================== */

.msq-home-v2{
  padding-top:18px;
}

.msq-hero-v2{
  align-items:stretch;
}

.msq-hero-v2 .msq-hero-copy{
  position:relative;
  overflow:hidden;
}

.msq-hero-v2 .msq-hero-copy::before{
  content:"";
  position:absolute;
  right:-90px;
  top:-90px;
  width:220px;
  height:220px;
  border-radius:999px;
  background:rgba(255,0,0,.08);
}

.msq-hero-v2 .msq-hero-copy::after{
  content:"";
  position:absolute;
  right:70px;
  bottom:-70px;
  width:160px;
  height:160px;
  border-radius:999px;
  background:rgba(17,24,39,.06);
}

.msq-hero-v2 .msq-hero-copy > *{
  position:relative;
  z-index:2;
}

.msq-hero-panel-v2{
  display:grid;
  grid-template-rows:auto 1fr;
  gap:16px;
}

.msq-orbit-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.msq-orbit-card{
  background:#fff;
  border:1px solid var(--msq-border);
  border-radius:24px;
  box-shadow:var(--msq-shadow);
  padding:22px;
  min-height:150px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.msq-orbit-card.is-large{
  min-height:190px;
  background:#111827;
  color:#fff;
  border-color:#111827;
  box-shadow:var(--msq-shadow-lg);
}

.msq-orbit-card strong{
  display:block;
  margin-top:14px;
  font-size:20px;
  letter-spacing:-.03em;
}

.msq-orbit-card p{
  margin:8px 0 0;
  color:#6b7280;
  line-height:1.5;
  font-size:14px;
}

.msq-orbit-card.is-large p{
  color:rgba(255,255,255,.72);
}

.msq-icon-bubble,
.msq-feature-icon,
.msq-command-icon{
  width:46px;
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:#f3f4f6;
  font-size:22px;
}

.msq-orbit-card.is-large .msq-icon-bubble{
  background:rgba(255,255,255,.12);
}

.msq-stats-strip{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
}

.msq-stats-strip div{
  background:#fff;
  border:1px solid var(--msq-border);
  border-radius:20px;
  box-shadow:var(--msq-shadow);
  padding:20px;
}

.msq-stats-strip strong{
  display:block;
  font-size:28px;
  line-height:1;
  letter-spacing:-.04em;
  color:#111827;
}

.msq-stats-strip span{
  display:block;
  margin-top:8px;
  color:#6b7280;
  font-size:14px;
  font-weight:700;
}

.msq-section-kicker{
  display:inline-flex;
  margin-bottom:10px;
  padding:7px 10px;
  border:1px solid #fee2e2;
  border-radius:999px;
  background:#fff5f5;
  color:#dc2626;
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.msq-feature-grid-v2{
  grid-template-columns:repeat(3, 1fr);
}

.msq-feature-card-v2{
  position:relative;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.msq-feature-card-v2:hover{
  transform:translateY(-4px);
  border-color:#d1d5db;
  box-shadow:0 18px 40px rgba(17,24,39,.10);
}

.msq-feature-card-v2 h3{
  margin-top:16px;
}

.msq-command-center{
  display:grid;
  grid-template-columns:1fr .9fr;
  gap:24px;
  align-items:stretch;
  background:#111827;
  color:#fff;
  border-radius:28px;
  padding:34px;
  box-shadow:var(--msq-shadow-lg);
  overflow:hidden;
  position:relative;
}

.msq-command-center::before{
  content:"";
  position:absolute;
  right:-100px;
  top:-100px;
  width:260px;
  height:260px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
}

.msq-command-copy{
  position:relative;
  z-index:2;
}

.msq-command-copy h2{
  margin:0 0 14px;
  font-size:38px;
  letter-spacing:-.04em;
}

.msq-command-copy p{
  margin:0;
  color:rgba(255,255,255,.74);
  max-width:640px;
}

.msq-home-checks{
  display:grid;
  gap:10px;
  margin-top:24px;
}

.msq-home-checks span{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-weight:800;
}

.msq-command-card{
  position:relative;
  z-index:2;
  background:#fff;
  color:#111827;
  border-radius:24px;
  padding:18px;
  box-shadow:0 24px 70px rgba(0,0,0,.22);
}

.msq-command-top{
  display:flex;
  gap:7px;
  margin-bottom:16px;
}

.msq-command-top span{
  width:10px;
  height:10px;
  border-radius:999px;
  background:#e5e7eb;
}

.msq-command-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#fff;
}

.msq-command-row + .msq-command-row{
  margin-top:10px;
}

.msq-command-row strong{
  display:block;
  font-size:15px;
}

.msq-command-row p{
  margin:2px 0 0;
  color:#6b7280;
  font-size:13px;
  line-height:1.4;
}

.msq-cta-card-v2{
  position:relative;
  overflow:hidden;
  background:#fff;
}

.msq-cta-card-v2::before{
  content:"";
  position:absolute;
  left:-80px;
  top:-80px;
  width:180px;
  height:180px;
  border-radius:999px;
  background:rgba(255,0,0,.08);
}

.msq-cta-card-v2::after{
  content:"";
  position:absolute;
  right:-80px;
  bottom:-80px;
  width:180px;
  height:180px;
  border-radius:999px;
  background:rgba(17,24,39,.06);
}

.msq-cta-card-v2 > *{
  position:relative;
  z-index:2;
}

@media (max-width:900px){
  .msq-orbit-grid,
  .msq-stats-strip,
  .msq-feature-grid-v2,
  .msq-command-center{
    grid-template-columns:1fr;
  }

  .msq-command-center{
    padding:24px;
    border-radius:24px;
  }

  .msq-command-copy h2{
    font-size:30px;
  }

  .msq-stats-strip div{
    padding:18px;
  }
}

@media (max-width:640px){
  .msq-home-v2{
    padding-top:0;
  }

  .msq-orbit-grid{
    gap:12px;
  }

  .msq-orbit-card,
  .msq-orbit-card.is-large{
    min-height:auto;
    padding:18px;
    border-radius:20px;
  }

  .msq-feature-card-v2:hover{
    transform:none;
  }

  .msq-command-center{
    padding:20px;
    border-radius:22px;
  }

  .msq-command-card{
    border-radius:20px;
    padding:14px;
  }

  .msq-command-row{
    padding:12px;
  }

  .msq-stats-strip strong{
    font-size:24px;
  }
}

/* ======================================================
   ADD JOB TASK LIST - CURRENT CLASS OVERRIDE
====================================================== */

.msq-schedule-job-create-sheet .msq-schedule-task-area {
    border: 1px solid #e5e7eb !important;
    border-radius: 18px !important;
    padding: 14px !important;
    margin: 4px 0 6px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.msq-schedule-job-create-sheet .msq-schedule-task-head {
    display: block !important;
    margin: 0 0 12px !important;
}

.msq-schedule-job-create-sheet .msq-schedule-task-head strong {
    display: block !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

.msq-schedule-job-create-sheet .msq-schedule-task-head small {
    display: block !important;
    margin-top: 3px !important;
    color: #6b7280 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.msq-schedule-job-create-sheet .msq-schedule-add-task-list-btn {
    width: 100% !important;
    min-height: 42px !important;
    margin-top: 12px !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #111827 !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    white-space: normal !important;
    box-shadow: none !important;
}

.msq-schedule-job-create-sheet .msq-schedule-add-task-list-btn:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
}

.msq-schedule-job-create-sheet .msq-schedule-task-lists {
    display: grid !important;
    gap: 10px !important;
    margin-top: 14px !important;
}

.msq-schedule-job-create-sheet .msq-schedule-task-list-box {
    position: relative !important;
    display: grid !important;
    gap: 10px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    background: #f9fafb !important;
    padding: 12px !important;
    box-shadow: none !important;
}

.msq-schedule-job-create-sheet .msq-schedule-task-list-remove {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #6b7280 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    padding: 0 0 2px !important;
    box-shadow: none !important;
}

.msq-schedule-job-create-sheet .msq-schedule-task-list-remove:hover {
    background: #fee2e2 !important;
    border-color: #fecaca !important;
    color: #b91c1c !important;
}

.msq-schedule-job-create-sheet .msq-schedule-task-title-field {
    padding-right: 40px !important;
    margin: 0 !important;
}

.msq-schedule-job-create-sheet .msq-schedule-task-title-field span {
    color: #6b7280 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
}

.msq-schedule-job-create-sheet .msq-schedule-task-title-field input {
    min-height: 40px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.msq-schedule-job-create-sheet .msq-schedule-task-row-list {
    display: grid !important;
    gap: 8px !important;
}

.msq-schedule-job-create-sheet .msq-schedule-task-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 34px !important;
    align-items: center !important;
    gap: 8px !important;
}

.msq-schedule-job-create-sheet .msq-schedule-task-row input {
    width: 100% !important;
    min-height: 40px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #111827 !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.msq-schedule-job-create-sheet .msq-schedule-task-row button {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #9ca3af !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    padding: 0 0 2px !important;
    box-shadow: none !important;
}

.msq-schedule-job-create-sheet .msq-schedule-task-row button:hover {
    background: #fee2e2 !important;
    border-color: #fecaca !important;
    color: #b91c1c !important;
}

.msq-schedule-job-create-sheet .msq-schedule-add-task-btn {
    width: 100% !important;
    min-height: 40px !important;
    margin-top: 2px !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    box-shadow: none !important;
}

.msq-schedule-job-create-sheet .msq-schedule-add-task-btn:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
}

@media (max-width: 640px) {
    .msq-schedule-job-create-sheet .msq-schedule-task-head {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    .msq-schedule-job-create-sheet .msq-schedule-add-task-list-btn {
        width: 100% !important;
    }

    .msq-schedule-job-create-sheet .msq-schedule-task-area {
        padding: 12px !important;
    }
}

/* ======================================================
   GLOBAL APP PAGE MOBILE HEADER / TITLE STANDARD
   Final override copy - keeps all app pages aligned.
====================================================== */

@media (max-width:700px){
  body.msq-app-page .msq-site-header,
  body.msq-app-page header.msq-site-header,
  body.msq-app-page .site-header,
  body.msq-app-page .wp-site-blocks > header,
  body.msq-app-page .msq-top-nav,
  body.msq-app-page .msq-app-header{
    display:none !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    overflow:hidden !important;
  }

  body.msq-app-page{
    padding-top:0 !important;
  }

body.msq-app-page .msq-page-wrap,
body.msq-app-page main.msq-page-wrap{
    padding-top:14px !important;
    padding-left:12px !important;
    padding-right:12px !important;
    padding-bottom:12px !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
    max-width:none !important;
    width:100% !important;
}

  body.msq-app-page .msq-dashboard,
  body.msq-app-page .msq-admin-compact-page,
  body.msq-app-page [style*="max-width:1000px"],
  body.msq-app-page [style*="max-width:1100px"],
  body.msq-app-page .msq-billing-page,
  body.msq-app-page .msq-create-quote-page,
  body.msq-app-page .msq-create-invoice-page,
  body.msq-app-page .msq-chat-page,
  body.msq-app-page .msq-clients-page,
  body.msq-app-page .msq-jobs-page,
  body.msq-app-page .msq-revenue-page,
  body.msq-app-page .msq-timesheets-page,
  body.msq-app-page .msq-workers-page,
  body.msq-app-page .msq-si-page{
    padding-top:0 !important;
    margin-top:0 !important;
    position:static !important;
    top:auto !important;
  }

  body.msq-app-page .msq-page-title,
  body.msq-app-page .msq-timesheets-title,
  body.msq-app-page .msq-si-header h1,
  body.msq-app-page .msq-admin-compact-section-head h2,
  body.msq-app-page .msq-billing-header h1,
  body.msq-app-page .msq-create-quote-header h1,
  body.msq-app-page .msq-create-invoice-topbar h1,
  body.msq-app-page .msq-chat-sidebar-head h1,
  body.msq-app-page .msq-clients-header h1,
  body.msq-app-page .msq-jobs-header h1,
  body.msq-app-page .msq-revenue-head h1,
  body.msq-app-page .msq-workers-topbar h1{
    margin-top:0 !important;
    margin-bottom:12px !important;
    font-size:26px !important;
    line-height:1.08 !important;
    letter-spacing:-.035em !important;
  }

  body.msq-app-page .msq-billing-header,
  body.msq-app-page .msq-create-quote-header,
  body.msq-app-page .msq-create-invoice-topbar,
  body.msq-app-page .msq-chat-sidebar-head,
  body.msq-app-page .msq-clients-header,
  body.msq-app-page .msq-jobs-header,
  body.msq-app-page .msq-revenue-head,
  body.msq-app-page .msq-timesheets-header,
  body.msq-app-page .msq-workers-topbar,
  body.msq-app-page .msq-si-header,
  body.msq-app-page .msq-admin-compact-section-head{
    margin-top:0 !important;
  }
}

/* Company Feed mobile width override */
@media (max-width:700px){
  body.msq-app-page .msq-page-wrap:has(.msq-feed-page),
  body.msq-app-page main.msq-page-wrap:has(.msq-feed-page){
    padding-left:6px !important;
    padding-right:6px !important;
  }

  body.msq-app-page .msq-feed-page{
    width:100% !important;
    max-width:none !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }

  body.msq-app-page .msq-feed-composer,
  body.msq-app-page .msq-feed-card,
  body.msq-app-page .msq-feed-upcoming,
  body.msq-app-page .msq-feed-empty,
  body.msq-app-page .msq-feed-alert{
    width:100% !important;
    max-width:none !important;
  }
}