/* =========================================================
   A2TDEV Responsive Upgrade 06
   Client portal, project request, and project workspace
   Loaded after all older page styles so this layer can normalize mobile UX.
   ========================================================= */

:root{
  --a2t-mobile-page-pad: clamp(10px, 3.6vw, 16px);
  --a2t-mobile-card-radius: 16px;
  --a2t-mobile-touch: 46px;
  --a2t-mobile-header-h: 72px;
}

body:has(.a2t-client-portal-shell),
body:has(.a2t-pr-page),
body:has(.a2cw){
  overflow-x:hidden;
}

.a2t-client-portal-shell,
.a2t-pr-page,
.a2cw{
  text-size-adjust:100%;
  -webkit-text-size-adjust:100%;
}

.a2t-client-portal-shell *,
.a2t-pr-page *,
.a2cw *{
  min-width:0;
}

.a2t-client-portal-shell img,
.a2t-pr-page img,
.a2cw img,
.a2t-client-portal-shell video,
.a2t-pr-page video,
.a2cw video,
.a2t-client-portal-shell iframe,
.a2t-pr-page iframe,
.a2cw iframe{
  max-width:100%;
}

.a2t-client-portal-shell input,
.a2t-client-portal-shell select,
.a2t-client-portal-shell textarea,
.a2t-pr-page input,
.a2t-pr-page select,
.a2t-pr-page textarea,
.a2cw input,
.a2cw select,
.a2cw textarea{
  max-width:100%;
  font-size:16px;
}

.a2t-client-portal-shell button,
.a2t-client-portal-shell a,
.a2t-pr-page button,
.a2t-pr-page a,
.a2cw button,
.a2cw a{
  -webkit-tap-highlight-color:transparent;
}

@supports (height: 100dvh){
  .a2t-client-portal-shell,
  .a2t-pr-page,
  .a2cw{
    min-height:calc(100dvh - var(--a2t-mobile-header-h));
  }
}

/* -------------------------------------------------------------------------
   Client requests dashboard: desktop/tablet resilience
   ------------------------------------------------------------------------- */
.a2t-requests-page .a2t-client-portal-layout,
.a2t-client-portal-shell .a2t-client-portal-layout{
  width:min(1480px, calc(100% - 36px));
}

.a2t-client-portal-shell .a2t-client-dashboard-main,
.a2t-requests-page .a2t-requests-main{
  min-width:0;
}

.a2t-client-portal-shell .a2t-dashboard-breadcrumb,
.a2cw-breadcrumb{
  scrollbar-width:none;
}
.a2t-client-portal-shell .a2t-dashboard-breadcrumb::-webkit-scrollbar,
.a2cw-breadcrumb::-webkit-scrollbar{
  display:none;
}

.a2t-requests-page .a2t-dashboard-stats{
  align-items:stretch;
}

.a2t-requests-page .a2t-stat-card{
  min-width:0;
}

.a2t-requests-page .a2t-stat-card > span:not(.a2t-stat-icon),
.a2t-requests-page .a2t-stat-card small,
.a2t-requests-page .a2t-stat-card strong{
  overflow-wrap:anywhere;
}

.a2t-requests-page .a2t-project-toolbar,
.a2t-requests-page .a2t-project-search,
.a2t-requests-page .a2t-project-filters,
.a2t-requests-page .a2t-project-table-wrap{
  min-width:0;
}

.a2t-requests-page .a2t-project-search input{
  min-height:var(--a2t-mobile-touch);
}

.a2t-requests-page .a2t-project-filters{
  scrollbar-width:none;
}
.a2t-requests-page .a2t-project-filters::-webkit-scrollbar{
  display:none;
}

.a2t-project-table-wrap{
  overflow:visible;
}

.a2t-project-table td,
.a2t-project-table th{
  vertical-align:middle;
}

.a2t-project-table td:first-child strong,
.a2t-project-table td:first-child span,
.a2t-project-table td[data-label="Category"],
.a2t-project-table td[data-label="Budget"],
.a2t-project-table td[data-label="Last Update"]{
  overflow-wrap:anywhere;
}

.a2t-table-actions{
  position:relative;
}

.a2t-row-menu{
  position:relative;
}

.a2t-row-menu-panel{
  z-index:50;
}

.a2t-row-menu-panel a,
.a2t-row-menu-panel button{
  text-align:left;
}

/* -------------------------------------------------------------------------
   Project request form: responsive desktop base cleanup
   ------------------------------------------------------------------------- */
.a2t-pr-page{
  max-width:100%;
  color:var(--pr-text, var(--a2t-text, #07111f));
}

.a2t-pr-layout,
.a2t-pr-form-card,
.a2t-pr-side,
.a2t-pr-section,
.a2t-pr-form-header,
.a2t-pr-progress,
.a2t-pr-submit{
  min-width:0;
}

.a2t-pr-form-card{
  width:100%;
}

.a2t-pr-field,
.a2t-pr-review-item,
.a2t-pr-summary-card,
.a2t-pr-choice-card,
.a2t-pr-flow-item{
  min-width:0;
}

.a2t-pr-field input,
.a2t-pr-field select,
.a2t-pr-field textarea{
  width:100%;
}

.a2t-pr-field textarea{
  min-height:116px;
  resize:vertical;
}

.a2t-pr-choice-card,
.a2t-pr-review-box,
.a2t-pr-summary-card,
.a2t-pr-upload{
  overflow:hidden;
}

.a2t-pr-choice-copy,
.a2t-pr-choice-copy strong,
.a2t-pr-choice-copy span,
.a2t-pr-review-item strong,
.a2t-pr-review-item span,
.a2t-pr-summary-card strong,
.a2t-pr-summary-card span{
  overflow-wrap:anywhere;
}

.a2t-pr-step[hidden]{
  display:none!important;
}

/* -------------------------------------------------------------------------
   Project workspace: responsive desktop base cleanup
   ------------------------------------------------------------------------- */
.a2cw{
  max-width:100%;
}

.a2cw-layout,
.a2cw-breadcrumb,
.a2cw-main,
.a2cw-content-grid,
.a2cw-stage-stack,
.a2cw-stage,
.a2cw-sidebar,
.a2cw-card,
.a2cw-side-card{
  min-width:0;
}

.a2cw-full-text,
.a2cw-full-notes,
.a2cw-request-description-grid,
.a2cw-view-rows,
.a2cw-progress-body,
.a2cw-review-content,
.a2cw-mini-facts,
.a2cw-min-files,
.a2cw-min-side-list,
.a2cw-payment-breakdown{
  min-width:0;
  overflow-wrap:anywhere;
}

.a2cw-min-files a{
  min-width:0;
}

.a2cw-min-files strong,
.a2cw-min-files small,
.a2cw-mini-side strong,
.a2cw-min-side-list strong,
.a2cw-view-rows strong,
.a2cw-payment-breakdown strong,
.a2cw-progress-summary strong{
  min-width:0;
  overflow-wrap:anywhere;
}

.a2cw-action-details textarea{
  width:100%;
}

/* -------------------------------------------------------------------------
   Tablet breakpoint: reduce multi-column pressure
   ------------------------------------------------------------------------- */
@media(max-width:1180px){
  .a2t-requests-page .a2t-client-portal-layout,
  .a2t-client-portal-shell .a2t-client-portal-layout{
    width:min(100% - 28px, 1120px)!important;
    gap:18px!important;
  }

  .a2t-requests-page .a2t-dashboard-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .a2t-pr-page{
    width:min(100% - 28px, 980px)!important;
    padding-top:36px!important;
  }

  .a2t-pr-layout{
    grid-template-columns:1fr!important;
    gap:18px!important;
  }

  .a2t-pr-side{
    position:static!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(280px,380px)!important;
    gap:18px!important;
    align-items:start!important;
  }

  .a2t-pr-side .a2t-pr-kicker,
  .a2t-pr-side .a2t-pr-title,
  .a2t-pr-side .a2t-pr-lead,
  .a2t-pr-side .a2t-pr-product-card,
  .a2t-pr-side .a2t-pr-side-note{
    grid-column:1;
  }

  .a2t-pr-side .a2t-pr-flow{
    grid-column:2;
    grid-row:1 / span 5;
    margin-top:0!important;
  }

  .a2cw-content-grid{
    grid-template-columns:1fr!important;
  }

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

@media(max-width:900px){
  .a2t-pr-side{
    grid-template-columns:1fr!important;
  }

  .a2t-pr-side .a2t-pr-flow{
    grid-column:auto;
    grid-row:auto;
  }

  .a2t-pr-title{
    max-width:760px;
  }

  .a2cw-sidebar{
    grid-template-columns:1fr!important;
  }
}

/* -------------------------------------------------------------------------
   Mobile: dashboard cards instead of desktop table
   ------------------------------------------------------------------------- */
@media(max-width:760px){
  body:has(.a2t-client-portal-shell),
  body:has(.a2t-pr-page),
  body:has(.a2cw){
    background:var(--a2t-bg, #ffffff)!important;
  }

  html[data-theme="dark"] body:has(.a2t-client-portal-shell),
  html[data-theme="dark"] body:has(.a2t-pr-page),
  html[data-theme="dark"] body:has(.a2cw){
    background:#05070d!important;
  }

  .a2t-requests-page,
  .a2t-client-portal-shell{
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
    margin:0!important;
    overflow:visible!important;
  }

  .a2t-requests-page .a2t-client-portal-layout,
  .a2t-client-portal-shell .a2t-client-portal-layout{
    width:100%!important;
    max-width:100%!important;
    display:block!important;
    padding:12px var(--a2t-mobile-page-pad) 46px!important;
    margin:0!important;
  }

  .a2t-requests-page .a2t-client-dashboard-main,
  .a2t-client-portal-shell .a2t-client-dashboard-main,
  .a2t-requests-page .a2t-requests-main{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  .a2t-requests-page .a2t-dashboard-breadcrumb,
  .a2t-client-portal-shell .a2t-dashboard-breadcrumb{
    width:calc(100vw - (var(--a2t-mobile-page-pad) * 2))!important;
    display:flex!important;
    gap:8px!important;
    overflow-x:auto!important;
    white-space:nowrap!important;
    padding:2px 0 10px!important;
    margin:0!important;
    font-size:12px!important;
  }

  .a2t-requests-page .a2t-dashboard-stats{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    margin:0 0 14px!important;
  }

  .a2t-requests-page .a2t-stat-card{
    min-height:118px!important;
    border-radius:var(--a2t-mobile-card-radius)!important;
    padding:14px!important;
    box-shadow:none!important;
  }

  .a2t-requests-page .a2t-stat-icon{
    width:36px!important;
    height:36px!important;
    border-radius:12px!important;
    font-size:15px!important;
  }

  .a2t-requests-page .a2t-stat-card > span:not(.a2t-stat-icon){
    font-size:11px!important;
    line-height:1.2!important;
    letter-spacing:.04em!important;
    text-transform:uppercase!important;
  }

  .a2t-requests-page .a2t-stat-card strong{
    font-size:clamp(20px, 7.4vw, 28px)!important;
    line-height:1!important;
    letter-spacing:-.045em!important;
  }

  .a2t-requests-page .a2t-stat-card small{
    font-size:11px!important;
    line-height:1.25!important;
  }

  .a2t-requests-page .a2t-section-block{
    border-radius:18px!important;
    padding:14px!important;
    box-shadow:none!important;
    overflow:visible!important;
  }

  .a2t-requests-page .a2t-dashboard-hero.compact{
    display:block!important;
    padding:0!important;
    margin:0 0 14px!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }

  .a2t-requests-page .a2t-section-heading,
  .a2t-requests-page .a2t-dashboard-hero h2{
    margin:0 0 6px!important;
    font-size:clamp(22px, 7vw, 30px)!important;
    line-height:1.05!important;
    letter-spacing:-.045em!important;
  }

  .a2t-requests-page .a2t-muted,
  .a2t-requests-page .a2t-dashboard-hero p{
    margin:0!important;
    font-size:13px!important;
    line-height:1.45!important;
  }

  .a2t-requests-page .a2t-project-toolbar{
    display:grid!important;
    gap:10px!important;
    margin:0 0 12px!important;
  }

  .a2t-requests-page .a2t-project-search{
    width:100%!important;
    min-height:48px!important;
    border-radius:15px!important;
    padding-inline:13px!important;
  }

  .a2t-requests-page .a2t-project-search input{
    height:48px!important;
    min-height:48px!important;
    font-size:15px!important;
  }

  .a2t-requests-page .a2t-project-filters{
    width:calc(100vw - (var(--a2t-mobile-page-pad) * 2) - 28px)!important;
    display:flex!important;
    gap:8px!important;
    overflow-x:auto!important;
    padding:0 2px 3px!important;
    margin:0!important;
    -webkit-overflow-scrolling:touch!important;
    scroll-snap-type:x proximity;
  }

  .a2t-requests-page .a2t-project-filters button{
    flex:0 0 auto!important;
    min-height:38px!important;
    border-radius:999px!important;
    padding:0 13px!important;
    font-size:12px!important;
    font-weight:900!important;
    scroll-snap-align:start;
  }

  .a2t-project-table-wrap{
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }

  .a2t-project-table,
  .a2t-project-table thead,
  .a2t-project-table tbody,
  .a2t-project-table tr,
  .a2t-project-table td{
    display:block!important;
    width:100%!important;
  }

  .a2t-project-table{
    border:0!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    background:transparent!important;
  }

  .a2t-project-table thead{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0 0 0 0)!important;
    white-space:nowrap!important;
    border:0!important;
  }

  .a2t-project-table tbody{
    display:grid!important;
    gap:12px!important;
  }

  .a2t-project-table tr{
    position:relative!important;
    border:1px solid var(--a2t-line, #e5eaf2)!important;
    border-radius:17px!important;
    background:var(--a2t-surface, #fff)!important;
    padding:13px!important;
    box-shadow:none!important;
    overflow:visible!important;
  }

  html[data-theme="dark"] .a2t-project-table tr{
    background:#0d1422!important;
    border-color:#1e293b!important;
  }

  .a2t-project-table td{
    border:0!important;
    min-height:34px!important;
    padding:8px 0!important;
    color:var(--a2t-text, #07111f)!important;
  }

  .a2t-project-table td + td{
    border-top:1px solid var(--a2t-line, #e5eaf2)!important;
  }

  html[data-theme="dark"] .a2t-project-table td + td{
    border-top-color:#1e293b!important;
  }

  .a2t-project-table td:not(:first-child):not([data-label="Actions"]){
    display:grid!important;
    grid-template-columns:minmax(84px,.42fr) minmax(0,1fr)!important;
    gap:12px!important;
    align-items:center!important;
  }

  .a2t-project-table td:not(:first-child)::before{
    content:attr(data-label);
    color:var(--a2t-muted, #667085);
    font-size:11px;
    font-weight:950;
    letter-spacing:.055em;
    text-transform:uppercase;
  }

  .a2t-project-table td:first-child{
    padding-top:0!important;
    padding-bottom:11px!important;
  }

  .a2t-project-table td:first-child strong{
    display:block!important;
    margin:0 0 5px!important;
    color:var(--a2t-text, #07111f)!important;
    font-size:16px!important;
    line-height:1.25!important;
    font-weight:950!important;
    letter-spacing:-.02em!important;
  }

  .a2t-project-table td:first-child span{
    display:inline-flex!important;
    width:auto!important;
    max-width:100%!important;
    min-height:26px!important;
    align-items:center!important;
    border:1px solid var(--a2t-line, #e5eaf2)!important;
    border-radius:999px!important;
    background:var(--a2t-soft, #f6f8fc)!important;
    color:var(--a2t-muted, #667085)!important;
    padding:0 10px!important;
    font-size:11px!important;
    font-weight:900!important;
  }

  html[data-theme="dark"] .a2t-project-table td:first-child span{
    background:#111a2b!important;
    border-color:#1e293b!important;
  }

  .a2t-project-table td[data-label="Status"] .a2t-status-pill{
    justify-self:start!important;
    max-width:100%!important;
    white-space:normal!important;
    line-height:1.2!important;
    text-align:left!important;
  }

  .a2t-project-table td[data-label="Budget"]{
    font-weight:950!important;
  }

  .a2t-project-table td[data-label="Actions"]{
    padding-bottom:0!important;
  }

  .a2t-table-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 46px!important;
    gap:10px!important;
    align-items:center!important;
  }

  .a2t-table-actions .a2t-btn{
    width:100%!important;
    min-height:46px!important;
    justify-content:center!important;
    border-radius:14px!important;
    font-size:13px!important;
  }

  .a2t-row-menu .a2t-icon-btn{
    width:46px!important;
    height:46px!important;
    border-radius:14px!important;
  }

  .a2t-row-menu-panel{
    position:absolute!important;
    right:0!important;
    top:calc(100% + 8px)!important;
    width:min(238px, calc(100vw - 52px))!important;
    border-radius:15px!important;
    padding:8px!important;
    background:var(--a2t-surface, #fff)!important;
    border:1px solid var(--a2t-line, #e5eaf2)!important;
    box-shadow:0 18px 40px rgba(15,23,42,.16)!important;
  }

  html[data-theme="dark"] .a2t-row-menu-panel{
    background:#0d1422!important;
    border-color:#1e293b!important;
    box-shadow:0 18px 40px rgba(0,0,0,.36)!important;
  }

  .a2t-row-menu-panel a,
  .a2t-row-menu-panel button{
    min-height:42px!important;
    border-radius:11px!important;
    padding:9px 11px!important;
    font-size:13px!important;
    line-height:1.2!important;
  }

  .a2t-project-empty-filter{
    border-radius:16px!important;
    padding:18px!important;
    text-align:center!important;
  }
}

/* -------------------------------------------------------------------------
   Mobile: project request guided form
   ------------------------------------------------------------------------- */
@media(max-width:760px){
  .a2t-pr-page{
    width:100%!important;
    max-width:100%!important;
    padding:12px var(--a2t-mobile-page-pad) 48px!important;
    margin:0!important;
    overflow:visible!important;
  }

  .a2t-pr-layout{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
  }

  .a2t-pr-side,
  .a2t-pr-form-card{
    border-radius:18px!important;
    box-shadow:none!important;
  }

  .a2t-pr-side{
    position:static!important;
    display:block!important;
    padding:18px!important;
    background:linear-gradient(180deg, var(--pr-card, #fff), var(--pr-soft, #f7f8fb))!important;
  }

  .a2t-pr-kicker{
    min-height:30px!important;
    padding:0 11px!important;
    font-size:10px!important;
  }

  .a2t-pr-title{
    margin:14px 0 10px!important;
    font-size:clamp(27px, 9vw, 38px)!important;
    line-height:1.02!important;
    letter-spacing:-.055em!important;
  }

  .a2t-pr-lead{
    font-size:13px!important;
    line-height:1.55!important;
  }

  .a2t-pr-product-card{
    margin-top:14px!important;
    border-radius:14px!important;
    padding:13px!important;
  }

  .a2t-pr-flow{
    display:flex!important;
    gap:9px!important;
    overflow-x:auto!important;
    margin-top:16px!important;
    padding-bottom:2px!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
    scroll-snap-type:x proximity;
  }

  .a2t-pr-flow::-webkit-scrollbar{
    display:none!important;
  }

  .a2t-pr-flow-item{
    flex:0 0 min(252px, 78vw)!important;
    grid-template-columns:34px minmax(0,1fr)!important;
    gap:10px!important;
    border-radius:14px!important;
    padding:11px!important;
    scroll-snap-align:start;
  }

  .a2t-pr-flow-num{
    width:32px!important;
    height:32px!important;
    border-radius:10px!important;
  }

  .a2t-pr-flow-item strong{
    font-size:13px!important;
  }

  .a2t-pr-flow-item span{
    font-size:12px!important;
    line-height:1.35!important;
  }

  .a2t-pr-side-note{
    margin-top:14px!important;
    border-radius:14px!important;
    padding:12px!important;
    font-size:12.5px!important;
    line-height:1.45!important;
  }

  .a2t-pr-form-card{
    overflow:visible!important;
  }

  .a2t-pr-form-header{
    padding:18px!important;
    border-radius:18px 18px 0 0!important;
  }

  .a2t-pr-form-header h1{
    font-size:clamp(25px, 8vw, 34px)!important;
    line-height:1.05!important;
  }

  .a2t-pr-form-header p{
    font-size:13px!important;
    line-height:1.45!important;
  }

  .a2t-pr-progress{
    position:sticky!important;
    top:var(--a2t-mobile-header-h)!important;
    z-index:40!important;
    display:flex!important;
    grid-template-columns:none!important;
    gap:8px!important;
    overflow-x:auto!important;
    border-bottom:1px solid var(--pr-line, #e5eaf2)!important;
    background:var(--pr-card-strong, #fff)!important;
    padding:10px 12px!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
  }

  .a2t-pr-progress::-webkit-scrollbar{
    display:none!important;
  }

  .a2t-pr-progress button,
  .a2t-pr-progress a{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:108px!important;
    min-height:38px!important;
    border-radius:999px!important;
    padding:0 12px!important;
    font-size:12px!important;
    white-space:nowrap!important;
  }

  .a2t-pr-section{
    padding:18px!important;
    border-radius:0!important;
  }

  .a2t-pr-section-head{
    display:block!important;
    margin-bottom:14px!important;
  }

  .a2t-pr-section-head h2{
    margin:0 0 5px!important;
    font-size:20px!important;
    line-height:1.15!important;
    letter-spacing:-.03em!important;
  }

  .a2t-pr-section-head p{
    margin:0!important;
    font-size:13px!important;
    line-height:1.45!important;
  }

  .a2t-pr-choice-grid,
  .a2t-pr-grid,
  .a2t-pr-summary,
  .a2t-pr-review-fields{
    grid-template-columns:1fr!important;
    gap:11px!important;
  }

  .a2t-pr-choice-card{
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr)!important;
    grid-template-rows:auto!important;
    align-items:start!important;
    justify-items:stretch!important;
    gap:12px!important;
    min-height:0!important;
    padding:14px!important;
    text-align:left!important;
    border-radius:15px!important;
  }

  .a2t-pr-choice-icon{
    position:static!important;
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    min-height:32px!important;
    margin:0!important;
    display:grid!important;
    place-items:center!important;
  }

  .a2t-pr-choice-icon i{
    font-size:22px!important;
  }

  .a2t-pr-choice-copy,
  .a2t-pr-choice-card strong,
  .a2t-pr-choice-copy > span{
    text-align:left!important;
  }

  .a2t-pr-choice-card strong{
    margin:0 0 5px!important;
    font-size:14px!important;
    line-height:1.2!important;
  }

  .a2t-pr-choice-copy > span{
    font-size:12.5px!important;
    line-height:1.42!important;
  }

  .a2t-pr-dynamic-intro{
    border-radius:14px!important;
    padding:12px!important;
    font-size:13px!important;
    line-height:1.45!important;
  }

  .a2t-pr-field label{
    margin-bottom:7px!important;
    font-size:12px!important;
    line-height:1.3!important;
  }

  .a2t-pr-field input,
  .a2t-pr-field select,
  .a2t-pr-field textarea{
    min-height:48px!important;
    border-radius:14px!important;
    padding:12px 13px!important;
    font-size:16px!important;
    line-height:1.35!important;
  }

  .a2t-pr-field textarea{
    min-height:120px!important;
  }

  .a2t-pr-help,
  .a2t-pr-step-note{
    font-size:12px!important;
    line-height:1.45!important;
  }

  .a2t-pr-review-box{
    border-radius:15px!important;
    padding:14px!important;
  }

  .a2t-pr-review-box h3{
    font-size:16px!important;
  }

  .a2t-pr-review-item{
    grid-template-columns:1fr!important;
    gap:4px!important;
    padding:10px 0!important;
  }

  .a2t-pr-review-item strong{
    font-size:12px!important;
    letter-spacing:.04em!important;
    text-transform:uppercase!important;
  }

  .a2t-pr-review-item span{
    font-size:13px!important;
    line-height:1.5!important;
  }

  .a2t-pr-upload{
    border-radius:15px!important;
    padding:14px!important;
  }

  .a2t-pr-upload input[type="file"]{
    width:100%!important;
    font-size:13px!important;
  }

  .a2t-pr-step-actions,
  .a2t-pr-submit{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  .a2t-pr-step-actions{
    margin-top:18px!important;
  }

  .a2t-pr-step-actions.right{
    justify-content:stretch!important;
  }

  .a2t-pr-btn,
  .a2t-pr-btn-secondary,
  .a2t-pr-submit button{
    width:100%!important;
    min-height:50px!important;
    border-radius:14px!important;
    padding:0 16px!important;
    justify-content:center!important;
    font-size:14px!important;
  }

  .a2t-pr-submit{
    padding:18px!important;
    border-radius:0 0 18px 18px!important;
  }

  .a2t-pr-submit p{
    margin:0!important;
    font-size:12.5px!important;
    line-height:1.45!important;
  }
}

/* -------------------------------------------------------------------------
   Mobile: project workspace
   ------------------------------------------------------------------------- */
@media(max-width:760px){
  .a2cw{
    width:100%!important;
    max-width:100%!important;
    min-height:auto!important;
    padding:12px var(--a2t-mobile-page-pad) 46px!important;
    margin:0!important;
    overflow-x:hidden!important;
    background:var(--a2cw-bg, #f8fafc)!important;
  }

  .a2cw-breadcrumb,
  .a2cw-layout{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
  }

  .a2cw-breadcrumb{
    min-height:30px!important;
    height:auto!important;
    display:flex!important;
    gap:8px!important;
    overflow-x:auto!important;
    white-space:nowrap!important;
    padding:0 0 10px!important;
    font-size:12px!important;
  }

  .a2cw-main{
    display:grid!important;
    gap:10px!important;
  }

  .a2cw-hero{
    min-height:0!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    align-items:start!important;
    padding:18px!important;
    border-radius:18px!important;
    box-shadow:none!important;
  }

  .a2cw-kicker{
    margin-bottom:10px!important;
    font-size:10px!important;
    line-height:1!important;
  }

  .a2cw-hero h1{
    max-width:100%!important;
    margin:0 0 8px!important;
    font-size:clamp(25px, 8.8vw, 34px)!important;
    line-height:1.05!important;
    letter-spacing:-.05em!important;
  }

  .a2cw-hero p{
    font-size:13px!important;
    line-height:1.35!important;
  }

  .a2cw-status{
    min-height:34px!important;
    width:auto!important;
    max-width:100%!important;
    align-self:start!important;
    justify-self:start!important;
    white-space:normal!important;
    text-align:left!important;
    border-radius:999px!important;
    padding:7px 11px!important;
    font-size:11px!important;
    line-height:1.2!important;
  }

  .a2cw-stepper{
    position:sticky!important;
    top:var(--a2t-mobile-header-h)!important;
    z-index:35!important;
    width:100%!important;
    display:flex!important;
    gap:8px!important;
    overflow-x:auto!important;
    border-radius:16px!important;
    padding:10px!important;
    background:var(--a2cw-card, #fff)!important;
    box-shadow:none!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
    scroll-snap-type:x proximity;
  }

  .a2cw-stepper::-webkit-scrollbar{
    display:none!important;
  }

  .a2cw-step{
    flex:0 0 min(146px, 46vw)!important;
    min-width:min(146px, 46vw)!important;
    display:grid!important;
    grid-template-columns:32px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    gap:1px 9px!important;
    align-items:center!important;
    scroll-snap-align:start!important;
    border:1px solid var(--a2cw-line, #e5eaf2)!important;
    border-radius:13px!important;
    background:var(--a2cw-soft, #f6f8fc)!important;
    padding:10px!important;
  }

  .a2cw-step::after{
    display:none!important;
  }

  .a2cw-step span{
    grid-row:1 / 3!important;
    width:30px!important;
    height:30px!important;
    font-size:11px!important;
  }

  .a2cw-step strong{
    font-size:12px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .a2cw-step small{
    font-size:10px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .a2cw-content-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    margin-top:0!important;
  }

  .a2cw-stage-stack,
  .a2cw-stage,
  .a2cw-sidebar{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  .a2cw-stage[hidden],
  .a2cw-side-card[hidden]{
    display:none!important;
  }

  .a2cw-card,
  .a2cw-side-card{
    border-radius:16px!important;
    box-shadow:none!important;
  }

  .a2cw-min-card,
  .a2cw-min-side-card{
    padding:16px!important;
  }

  .a2cw-min-card h2,
  .a2cw-min-side-card h2{
    margin-bottom:12px!important;
    font-size:16px!important;
    line-height:1.2!important;
  }

  .a2cw-min-head{
    gap:10px!important;
  }

  .a2cw-mini-facts,
  .a2cw-min-split,
  .a2cw-stage-clean-split,
  .a2cw-request-description-grid,
  .a2cw-view-rows,
  .a2cw-review-fields,
  .a2cw-sidebar{
    grid-template-columns:1fr!important;
  }

  .a2cw-mini-facts{
    gap:0!important;
  }

  .a2cw-mini-facts div{
    grid-template-columns:32px minmax(0,1fr)!important;
    border-right:0!important;
    border-top:0!important;
    border-bottom:1px solid var(--a2cw-line, #e5eaf2)!important;
    padding:10px 0!important;
  }

  .a2cw-mini-facts div:last-child{
    border-bottom:0!important;
  }

  .a2cw-mini-facts i{
    width:32px!important;
    height:32px!important;
    border-radius:10px!important;
  }

  .a2cw-mini-facts span,
  .a2cw-view-rows span,
  .a2cw-request-description-grid span,
  .a2cw-progress-summary small,
  .a2cw-payment-total span,
  .a2cw-payment-breakdown span{
    font-size:11px!important;
    line-height:1.25!important;
  }

  .a2cw-mini-facts strong,
  .a2cw-request-description-grid strong,
  .a2cw-view-rows strong{
    font-size:13px!important;
    line-height:1.4!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  .a2cw-mini-side{
    grid-template-columns:1fr!important;
  }

  .a2cw-mini-side div{
    grid-template-columns:minmax(74px,.34fr) minmax(0,1fr)!important;
    gap:10px!important;
    border-right:0!important;
    border-bottom:1px solid var(--a2cw-line, #e5eaf2)!important;
    padding:10px 0!important;
  }

  .a2cw-mini-side div:last-child{
    border-bottom:0!important;
  }

  .a2cw-mini-side strong{
    max-width:none!important;
    text-align:left!important;
    white-space:normal!important;
  }

  .a2cw-full-text,
  .a2cw-full-notes p,
  .a2cw-proposal-milestone p,
  .a2cw-review-content p{
    font-size:13px!important;
    line-height:1.6!important;
  }

  .a2cw-min-chips{
    gap:8px!important;
  }

  .a2cw-min-chips span{
    width:100%!important;
    min-height:36px!important;
    justify-content:flex-start!important;
    border-radius:12px!important;
    padding:9px 11px!important;
    font-size:12px!important;
  }

  .a2cw-min-files{
    gap:8px!important;
  }

  .a2cw-min-files a{
    grid-template-columns:34px minmax(0,1fr)!important;
    gap:10px!important;
    min-height:54px!important;
    border-radius:13px!important;
    padding:10px!important;
  }

  .a2cw-min-files i{
    width:34px!important;
    height:34px!important;
    border-radius:10px!important;
  }

  .a2cw-min-files strong{
    white-space:normal!important;
    font-size:12.5px!important;
    line-height:1.35!important;
  }

  .a2cw-min-files small{
    grid-column:2!important;
    white-space:normal!important;
    font-size:11px!important;
  }

  .a2cw-progress-item{
    border-radius:14px!important;
  }

  .a2cw-progress-item summary{
    grid-template-columns:minmax(0,1fr) 28px!important;
    gap:10px!important;
    padding:13px!important;
  }

  .a2cw-progress-summary strong{
    font-size:13px!important;
    line-height:1.3!important;
  }

  .a2cw-progress-body{
    padding:13px!important;
  }

  .a2cw-proposal-milestone{
    grid-template-columns:28px minmax(0,1fr)!important;
    gap:10px!important;
    border-radius:13px!important;
    padding:12px!important;
  }

  .a2cw-proposal-milestone-index{
    width:28px!important;
    height:28px!important;
  }

  .a2cw-proposal-milestone strong{
    font-size:13px!important;
    line-height:1.35!important;
  }

  .a2cw-payment-total{
    display:grid!important;
    gap:4px!important;
    align-items:start!important;
    margin:12px 0!important;
  }

  .a2cw-payment-total strong{
    font-size:24px!important;
  }

  .a2cw-payment-breakdown{
    gap:7px!important;
  }

  .a2cw-payment-breakdown div{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
  }

  .a2cw-min-side-list div{
    grid-template-columns:32px minmax(0,1fr) auto!important;
    gap:9px!important;
  }

  .a2cw-min-side-list strong{
    max-width:150px!important;
    white-space:normal!important;
  }

  .a2cw-action-details summary{
    min-height:46px!important;
    grid-template-columns:20px minmax(0,1fr) auto!important;
    border-radius:13px!important;
    padding:12px!important;
  }

  .a2cw-action-details form{
    gap:9px!important;
  }

  .a2cw-action-details textarea,
  .a2cw-file-input,
  .a2cw-review-form textarea,
  .a2cw-review-form input[type="text"],
  .a2cw-review-form input[type="url"],
  .a2cw-min-upload input[type="file"]{
    min-height:46px!important;
    border-radius:13px!important;
    font-size:16px!important;
  }

  .a2cw-action-details textarea,
  .a2cw-review-form textarea{
    min-height:112px!important;
  }

  .a2cw-primary,
  .a2cw-outline,
  .a2cw-soft-btn{
    width:100%!important;
    min-height:46px!important;
    border-radius:13px!important;
    padding:10px 13px!important;
    font-size:13px!important;
  }

  .a2cw-review-result{
    grid-template-columns:1fr!important;
    gap:12px!important;
    padding:14px!important;
    border-radius:14px!important;
  }

  .a2cw-review-score strong{
    font-size:24px!important;
  }

  .a2cw-star-rating{
    gap:6px!important;
  }

  .a2cw-star-rating label{
    font-size:30px!important;
  }
}

/* -------------------------------------------------------------------------
   Very small phones: prevent edge overflow and reduce density carefully
   ------------------------------------------------------------------------- */
@media(max-width:430px){
  :root{
    --a2t-mobile-page-pad:10px;
  }

  .a2t-requests-page .a2t-dashboard-stats{
    grid-template-columns:1fr!important;
  }

  .a2t-requests-page .a2t-stat-card{
    min-height:96px!important;
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr)!important;
    grid-template-rows:auto auto auto!important;
    gap:2px 11px!important;
    align-items:center!important;
  }

  .a2t-requests-page .a2t-stat-icon{
    grid-row:1 / 4!important;
  }

  .a2t-project-table td:not(:first-child):not([data-label="Actions"]){
    grid-template-columns:1fr!important;
    gap:4px!important;
    align-items:start!important;
  }

  .a2t-project-table td:not(:first-child)::before{
    font-size:10px!important;
  }

  .a2t-table-actions{
    grid-template-columns:1fr!important;
  }

  .a2t-row-menu .a2t-icon-btn{
    width:100%!important;
  }

  .a2t-row-menu-panel{
    right:auto!important;
    left:0!important;
    width:100%!important;
  }

  .a2t-pr-side,
  .a2t-pr-form-header,
  .a2t-pr-section,
  .a2t-pr-submit,
  .a2cw-hero,
  .a2cw-min-card,
  .a2cw-min-side-card{
    padding:14px!important;
  }

  .a2t-pr-title{
    font-size:27px!important;
  }

  .a2t-pr-progress button,
  .a2t-pr-progress a{
    min-width:96px!important;
    font-size:11px!important;
  }

  .a2t-pr-choice-card{
    grid-template-columns:30px minmax(0,1fr)!important;
    padding:12px!important;
  }

  .a2t-pr-choice-icon{
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    min-height:28px!important;
  }

  .a2t-pr-choice-icon i{
    font-size:19px!important;
  }

  .a2cw-step{
    flex-basis:132px!important;
    min-width:132px!important;
  }

  .a2cw-mini-side div,
  .a2cw-min-side-list div,
  .a2cw-payment-breakdown div{
    grid-template-columns:1fr!important;
    gap:4px!important;
  }

  .a2cw-min-side-list i{
    display:none!important;
  }

  .a2cw-min-side-list strong,
  .a2cw-payment-breakdown strong{
    max-width:none!important;
    text-align:left!important;
  }
}

@media(max-width:360px){
  .a2t-requests-page .a2t-project-filters,
  .a2t-requests-page .a2t-dashboard-breadcrumb{
    width:calc(100vw - 20px)!important;
  }

  .a2t-project-table tr{
    padding:11px!important;
  }

  .a2t-pr-form-header h1,
  .a2cw-hero h1{
    font-size:24px!important;
  }

  .a2t-pr-flow-item{
    flex-basis:82vw!important;
  }

  .a2cw-step{
    flex-basis:124px!important;
    min-width:124px!important;
  }
}
