/* Shared phone presentation only; no pricing, access or data changes. */
.ix-menu-toggle{display:none}
.ix-home .icon{width:20px;height:20px;flex-shrink:0}
.ov-metric>span>.icon{width:18px;height:18px;flex-shrink:0;margin-left:auto}
.demo-strip .save-status{margin-inline:10px}
@media(max-width:800px){
  html{scroll-padding-bottom:calc(100px + env(safe-area-inset-bottom));-webkit-text-size-adjust:100%}
  .workspace{height:100svh;height:100dvh;min-height:0;overflow:hidden}
  .workspace-main{display:flex;flex-direction:column;height:100%;min-height:0}
  .workspace .topbar,.workspace .demo-strip{flex-shrink:0}
  .workspace .mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:relative;inset:auto;flex-shrink:0;border-radius:16px 16px 0 0;padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));gap:2px;box-sizing:border-box;background:#fff}
  .workspace .mobile-nav a{width:100%;min-width:0;min-height:56px;padding:6px 0;gap:5px;font-size:12px;line-height:1.3;box-sizing:border-box;text-align:center}
  .workspace .mobile-nav .icon{width:21px;height:21px}
  .workspace .content,.workspace .content:has(.op-kpis),.workspace .content:has(.ov-dashboard){flex:1;width:100%;min-width:0;box-sizing:border-box;min-height:0;overflow:auto;overscroll-behavior-y:contain;scroll-padding-bottom:24px;padding-bottom:32px}
  .workspace :is(input,select,textarea),.signin-page :is(input,select,textarea),.account-page :is(input,select,textarea){font-size:16px!important}
  .workspace :is(button,a.btn){min-height:44px}
  .workspace .page-head p{font-size:14px;line-height:1.6}
  .workspace .field,.workspace .small,.workspace .op-kpi small{font-size:13px;line-height:1.5}
  .workspace .page-head .eyebrow{font-size:11px;letter-spacing:.09em}
  .workspace .demo-strip{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:8px 16px;font-size:12px;line-height:1.5}
  .workspace .demo-strip .access-summary{min-width:0;flex:1 1 140px}
  .workspace .demo-strip .access-detail{display:none}
  .workspace .demo-strip .save-status{margin:0;font-size:12px}
  .workspace .demo-strip .save-status.has-error{flex-basis:100%;color:#9b2828;font-weight:600}
  .workspace .demo-strip button{min-height:44px;margin-left:auto}
  .ix-guide .ix-nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:12px 6%;gap:0;min-height:72px}
  .ix-menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:44px;padding:8px 14px;border:1px solid #777;border-radius:10px;background:white;color:#202124;font-size:15px}
  .ix-guide .ix-nav>nav{display:none;width:100%;flex-basis:100%;padding:12px 0 4px;margin:0;gap:4px}
  .ix-guide .ix-nav>nav.is-open{display:flex;flex-direction:column;align-items:stretch}
  .ix-guide .ix-nav>nav :is(button,a){display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:12px;font-size:16px!important;text-align:left;box-sizing:border-box}
  .ix-guide .ix-nav .interix-wordmark{width:115px}
  .ix-guide .ix-hero h1{font-size:clamp(40px,11vw,54px);line-height:1.08;letter-spacing:-.035em}
  .ix-guide .ix-hero-actions{align-items:stretch;flex-direction:column;gap:14px}
  .ix-guide .ix-hero-actions :is(a,button){min-height:48px;justify-content:center;font-size:15px!important}
  .ix-guide .ix-fine{font-size:13px;line-height:1.6}
  .ix-guide .ix-lede{font-size:16px;line-height:1.65}
  .ix-guide .ix-kicker{font-size:11px;line-height:1.6}
  dialog{max-height:calc(100svh - 24px);max-height:calc(100dvh - 24px)}
  dialog .close{width:44px;min-width:44px;height:44px;flex-shrink:0}
  dialog :is(button,.btn){min-height:44px}
  dialog :is(input,select,textarea){font-size:16px!important}
  dialog .notice,dialog .small{font-size:13px;line-height:1.5}
  #toast{bottom:calc(90px + env(safe-area-inset-bottom))}
}
@media print{.workspace .demo-strip{display:none!important}}
/* Proportional workspace controls and pricing review alignment. Display only. */
@media screen {
 .workspace :is(input,select):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]):not([type=hidden]):not([type=submit]):not([type=button]),
 dialog :is(input,select):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]):not([type=hidden]):not([type=submit]):not([type=button]){box-sizing:border-box;min-height:40px;height:40px;padding:8px 10px;font-size:14px;line-height:22px}
 .workspace textarea,dialog textarea{box-sizing:border-box;font-size:14px;line-height:1.5;padding:10px 12px}
 .workspace .form-grid{align-items:start;gap:14px 18px}
 .workspace .sidebar .op-nav-group>summary{font-size:12px;padding:10px 12px;line-height:18px}
 .workspace .sidebar .nav-link{display:flex;align-items:center;gap:10px}
 #tax-form{align-items:flex-end;gap:10px}
 #tax-form .field{margin:0;max-width:9rem}
 #tax-form .btn{min-height:40px;height:40px;padding:8px 14px;margin:0}
 #wizard-content table:has([data-selling-rate]){width:100%;min-width:0;table-layout:auto;font-size:14px}
 #wizard-content table:has([data-selling-rate]) :is(th,td){padding:12px 10px;vertical-align:middle}
 #wizard-content table:has([data-selling-rate]) th{font-size:11px;line-height:1.4;letter-spacing:.04em}
 #wizard-content table:has([data-selling-rate]) :is(th,td):nth-child(3){text-align:center}
 #wizard-content table:has([data-selling-rate]) :is(th,td):nth-child(4),
 #wizard-content table:has([data-selling-rate]) :is(th,td):nth-child(6){text-align:right;font-variant-numeric:tabular-nums}
 #wizard-content table:has([data-selling-rate]) td:first-child{min-width:8rem}
 #wizard-content table:has([data-selling-rate]) td:nth-child(2){min-width:8rem;line-height:1.55}
 #wizard-content [data-selling-rate]{width:8.5rem!important;max-width:100%;text-align:right;font-variant-numeric:tabular-nums}
 #wizard-content table:has([data-selling-rate]) td:nth-child(5){width:10rem;min-width:9rem}
 #wizard-content table:has([data-selling-rate]) small{font-size:12px;line-height:1.45;margin-top:5px}
 #wizard-content [data-rate-feedback]{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:4px}
 #wizard-content [data-rate-feedback] .btn{font-size:12px;padding:6px 9px;min-height:32px;margin:0}
 #wizard-content .review-totals>div{padding:10px 0;align-items:center;gap:16px}
 #wizard-content .review-totals strong{font-variant-numeric:tabular-nums;text-align:right}
}
@media screen and (max-width:800px){
 .workspace :is(input,select):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]):not([type=hidden]):not([type=submit]):not([type=button]),
 dialog :is(input,select):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]):not([type=hidden]):not([type=submit]):not([type=button]){min-height:44px;height:44px;font-size:16px;line-height:22px;padding:10px}
 #tax-form .btn{height:44px;min-height:44px}
 #wizard-content [data-rate-feedback] .btn{min-height:44px}
 .workspace .form-grid{gap:12px}
}
@media screen and (max-width:600px){
 #wizard-content .table-wrap:has([data-selling-rate]){overflow:visible}
 #wizard-content table:has([data-selling-rate]){display:block;min-width:0;width:100%}
 #wizard-content table:has([data-selling-rate]) thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #wizard-content table:has([data-selling-rate]) tbody{display:grid;gap:12px}
 #wizard-content table:has([data-selling-rate]) tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:14px;border:1px solid var(--border,#d8dedd);border-radius:12px}
 #wizard-content table:has([data-selling-rate]) tbody td{display:block;padding:0;border:0;width:auto;min-width:0;text-align:left;overflow-wrap:anywhere}
 #wizard-content table:has([data-selling-rate]) tbody td:nth-child(-n+2){grid-column:1/-1}
 #wizard-content table:has([data-selling-rate]) tbody td::before{display:block;color:#596661;font-size:12px;font-weight:600;line-height:1.4;margin-bottom:4px}
 #wizard-content table:has([data-selling-rate]) tbody td:nth-child(2)::before{content:'Measurements (W × H × D)'}
 #wizard-content table:has([data-selling-rate]) tbody td:nth-child(3)::before{content:'Quantity'}
 #wizard-content table:has([data-selling-rate]) tbody td:nth-child(4)::before{content:'Suggested rate'}
 #wizard-content table:has([data-selling-rate]) tbody td:nth-child(5)::before{content:'Your rate'}
 #wizard-content table:has([data-selling-rate]) tbody td:nth-child(6)::before{content:'Total amount'}
 #wizard-content [data-selling-rate]{width:100%!important;text-align:left}
 #wizard-content table:has([data-selling-rate]) tbody td:nth-child(6){font-weight:600}
 #wizard-content .review-totals{width:100%;max-width:none;margin:20px 0}
}
@media screen{
 dialog .form-grid{align-items:start;gap:14px 18px}
 .workspace .field,dialog .field{gap:6px}
 #property-form input[name=area],#customer-v3 input[name=area],#quote-margin-settings input{width:100%;max-width:14rem}
}
@media screen and (max-width:800px){dialog .form-grid{gap:12px}}
@media screen{
 #quote-margin-settings{align-items:flex-end;gap:10px}
 #quote-margin-settings .field{margin:0}
 #quote-margin-settings>.btn{min-height:40px;margin:0}
}
@media screen and (max-width:800px){#quote-margin-settings>.btn{min-height:44px}}
@media screen and (max-width:600px){
 #wizard-content table:has([data-selling-rate]) tbody td:nth-child(5){width:auto;min-width:0}
 #wizard-content [data-selling-rate]{min-width:0!important;max-width:100%}
}
@media screen and (max-width:360px){
 #wizard-content table:has([data-selling-rate]) tbody td:nth-child(5),
 #wizard-content table:has([data-selling-rate]) tbody td:nth-child(6){grid-column:1/-1}
}
/* Align actions with their controls, not the label above each control. */
@media screen {
 .workspace .quote-tools,.workspace .quote-tools>.row{align-items:flex-end}
 .workspace .row:has(>label>select):has(>.btn),
 .workspace .row:has(>.field>input):has(>.btn),
 dialog .row:has(>label>select):has(>.btn),
 dialog .row:has(>.field>input):has(>.btn){align-items:flex-end;flex-wrap:wrap}
 .workspace .op-quote-layout{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0}
 .workspace :is(.quote-tools,.op-filters,.catalogue-filters,.package-toolbar,.admin-filters) .btn{min-height:40px;box-sizing:border-box;margin-block:0;display:inline-flex;align-items:center;justify-content:center}
 .workspace .quote-tools>.row{gap:10px;flex-wrap:wrap;max-width:100%}
 .workspace :is(.op-filters,.catalogue-filters,.package-toolbar,.admin-filters) label{margin-block:0}
}
@media screen and (max-width:800px){
 .workspace :is(.quote-tools,.op-filters,.catalogue-filters,.package-toolbar,.admin-filters) .btn{min-height:44px}
}
@media screen and (max-width:600px){
 .workspace .quote-tools>.row{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
 .workspace .quote-tools .op-quote-layout{grid-column:1/-1;width:100%}
 .workspace .quote-tools .btn{white-space:normal;width:100%;min-width:0;height:auto}
}

/* Keep modal scrolling inside the dialog, including on narrow touch screens. */
@media screen {
 html:has(dialog[open]),body:has(dialog[open]){overflow:hidden}
 dialog[open]{overscroll-behavior:contain}
}

@media screen and (max-width:600px){
 dialog .table-wrap[aria-label]::before{content:'Swipe to see all columns';display:block;font-size:12px;color:var(--muted);padding:8px 0}
 dialog .table-wrap[tabindex]:focus-visible{outline:2px solid var(--green);outline-offset:2px}
}

/* Compact mobile command area: primary actions first, secondary actions disclosed. */
@media screen and (max-width:600px){
 .workspace .quote-tools{display:flex;gap:8px;padding:12px;margin-bottom:16px;border-radius:12px}
 .workspace .quote-tools>.row{display:contents}
 .workspace .quote-tools .op-quote-layout{display:flex;flex-direction:row;align-items:center;gap:10px;width:100%;font-size:12px}
 .workspace .op-quote-layout select{flex:1;min-width:0;width:auto}
 .workspace .quote-tools>.row>.btn{width:auto;flex:1 1 auto;font-size:13px;padding:8px 12px}
 .compact-quote-actions{flex:1 1 auto;min-width:0}
 .compact-quote-actions summary{min-height:44px;display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;font-size:13px;color:var(--green);padding:8px;box-sizing:border-box;border:1px solid var(--line);border-radius:9px;list-style:none}
 .compact-quote-actions summary::after{content:none}
 .compact-quote-actions summary::-webkit-details-marker{display:none}
 .action-chevron{display:block;flex:none;align-self:center}
 .compact-quote-actions[open] .action-chevron{transform:rotate(180deg)}
 .compact-quote-actions[open]{flex-basis:100%}
 .compact-quote-actions[open] summary{justify-content:flex-start}
 .compact-quote-actions>div{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding-top:8px}
 .workspace .quote-tools .compact-quote-actions .btn{font-size:13px;min-height:44px;padding:8px}
 .workspace .topbar{padding-block:10px;gap:6px 10px}
 .workspace .topbar .presentation-switch{flex-basis:auto;max-width:none;margin:0 0 0 auto;width:auto;min-height:36px;padding:6px 10px;font-size:12px}
 .workspace .demo-strip{padding-block:5px;min-height:0;margin-bottom:10px}
 .workspace .page-head{margin-bottom:16px}
 #customer-v3 .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #customer-v3 .field:has([name=name]),#customer-v3 .field:has([name=email]),#customer-v3 .field:has([name=property]),#customer-v3 .field:has([name=address]){grid-column:1/-1}
 #customer-v3 .field{font-size:12px;line-height:1.35;gap:4px;min-width:0}
 #customer-v3 input{width:100%;min-width:0;max-width:100%}

}

@media screen and (max-width:600px){
 .workspace .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto}
 .workspace .topbar .workspace-context{grid-column:1;grid-row:1/3;min-width:0}
 .workspace .topbar>.row{grid-column:2;justify-self:end;gap:6px}
 .workspace .topbar .presentation-switch{grid-column:2;justify-self:end;min-height:32px}
 #customer-v3 .form-grid{align-items:end}
}
@media screen and (max-width:600px){
 .workspace .ux-guide-button{width:auto!important;align-self:flex-start;min-height:36px;padding:6px 10px;font-size:12px}
}

/* One control rhythm for mobile quotation actions. */
@media screen and (max-width:600px){
 .workspace .quote-tools{padding:10px;gap:8px}
 .workspace .quote-tools>.row>.btn,.workspace .quote-tools .compact-quote-actions .btn,.workspace .compact-quote-actions summary,.workspace .ux-guide-button{
 font-family:inherit;font-size:12px;font-weight:500;line-height:20px;min-height:40px;height:40px;padding:9px 8px;border-radius:8px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;
 }
 .workspace .compact-quote-actions summary{width:100%}
 .workspace .quote-tools>.row>.btn{flex:1 1 0}
 .workspace .compact-quote-actions{flex:1 1 0}
 .workspace .compact-quote-actions[open]{flex-basis:100%}
 .workspace .quote-tools .op-quote-layout select{height:40px;min-height:40px;padding-block:8px}
 .workspace .ux-guide-button .icon{width:14px;height:14px;display:block;flex:none}
}
@media screen and (max-width:600px){.workspace .page-head .ux-page-actions>.ux-guide-button{flex:0 0 auto;width:auto!important;min-height:40px;height:40px;padding:9px 10px;font-size:12px;line-height:20px}.workspace .page-head .ux-page-actions{gap:6px}}
/* Quotation review: compact command strip, with the document taking priority. */
@media screen and (max-width:600px){
 .workspace:has(.quote-tools) .demo-strip{margin-bottom:0;padding-block:2px;gap:6px}
 .workspace:has(.quote-tools) .demo-strip button{min-height:32px;height:32px;padding:4px 8px}
 .workspace .content:has(.quote-tools){padding-top:12px}
 .workspace .content:has(.quote-tools) .page-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 8px;margin-bottom:10px}
 .workspace .content:has(.quote-tools) .page-head>div:first-child{display:contents}
 .workspace .content:has(.quote-tools) .page-head .eyebrow{grid-column:1;grid-row:1;margin:0}
 .workspace .content:has(.quote-tools) .page-head h1{grid-column:1/-1;grid-row:2;margin:0;font-size:24px;line-height:1.2}
 .workspace .content:has(.quote-tools) .page-head p{grid-column:1/-1;grid-row:3;margin:0;font-size:12px;line-height:1.5}
 .workspace .content:has(.quote-tools) .ux-page-actions{grid-column:2;grid-row:1}
 .workspace .page-head .ux-page-actions>.ux-guide-button{height:32px;min-height:32px;padding:5px 7px;line-height:20px}
 .workspace .quote-tools{padding:8px;gap:6px;margin-bottom:10px;border-radius:8px}
 .workspace .quote-tools>.row>.btn,.workspace .quote-tools .compact-quote-actions .btn,.workspace .compact-quote-actions summary{height:32px;min-height:32px;padding:5px 8px;line-height:20px;border-radius:6px}
 .workspace .quote-tools>.row>.btn,.workspace .compact-quote-actions{flex:0 1 auto}
 .workspace .compact-quote-actions[open]{flex:1 1 100%}
 .workspace .quote-tools .op-quote-layout{gap:8px}
 .workspace .quote-tools .op-quote-layout select{height:32px;min-height:32px;padding:3px 24px 3px 8px;flex:0 1 auto;width:145px;font-size:16px}
}
@media screen and (max-width:600px){.workspace .quote-tools{justify-content:flex-start}.workspace .quote-tools #op-quote-layout{height:32px;min-height:32px;padding:3px 24px 3px 8px}}



/* Full-width panel; controls retain their natural content width. */
@media screen and (max-width:600px){
 .workspace .quote-tools{width:100%;max-width:100%;box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px}
 .workspace .quote-tools .op-quote-layout{width:100%;gap:8px;font-size:12px;white-space:nowrap}
 .workspace .quote-tools #op-quote-layout{width:145px;min-width:0;flex:0 1 auto;font-size:16px}
 .workspace .quote-tools>.row>.btn,.workspace .compact-quote-actions{width:auto;flex:0 0 auto}
 .workspace .quote-tools>.row>.btn{padding-inline:8px}
 .workspace .compact-quote-actions[open]{flex:0 0 100%}
 .workspace .compact-quote-actions[open] summary{width:fit-content}
 .workspace .compact-quote-actions>div{display:flex;flex-wrap:wrap;gap:8px}
 .workspace .quote-tools .compact-quote-actions .btn{width:auto;flex:0 0 auto}
}
@media screen and (max-width:360px){.workspace .quote-tools{gap:6px}.workspace .quote-tools>.row>.btn,.workspace .compact-quote-actions summary{padding-inline:6px}}
/* Screen review density; printed documents keep their existing layout. */
@media screen{
 .workspace .content:has(.quote-tools){padding-top:16px}
 .workspace .quote-tools{gap:10px;padding:12px;margin-bottom:16px}
 .workspace .table-proposal .proposal-heading{padding-bottom:12px;gap:12px}
 .workspace .table-proposal .quotation-document-title{margin-top:14px;margin-bottom:6px}
 .workspace .table-proposal .proposal-parties{margin:16px 0;gap:16px}
 .workspace .table-proposal .proposal-parties h3{margin:6px 0}
 .workspace .table-proposal .proposal-parties p{margin:6px 0;line-height:1.5}
 .workspace .table-proposal table{min-width:760px}
 .workspace .table-proposal tbody td:first-child{min-width:220px}
 .workspace .table-proposal .table-wrap:focus-visible{outline:2px solid var(--green);outline-offset:3px}
}
@media screen and (max-width:900px){
 .workspace .table-proposal .table-wrap::before{content:'Swipe horizontally to see measurements, rates and amounts';display:block;font-size:12px;color:var(--quote-muted);padding:0 0 8px}
}
@media screen and (max-width:600px){
 .workspace .content:has(.quote-tools){padding-top:12px}
 .workspace .quote-tools{padding:8px;gap:8px;margin-bottom:10px}
 .workspace .table-proposal{padding:16px}
 .workspace .table-proposal .proposal-heading{grid-template-columns:minmax(0,1fr) auto}
 .workspace .table-proposal .proposal-heading h2{font-size:16px;line-height:1.4;margin-top:0}
 .workspace .table-proposal .proposal-heading p{margin:5px 0;font-size:13px;line-height:1.5}
 .workspace .table-proposal .proposal-parties{gap:10px}
 .workspace .table-proposal .proposal-parties h3{font-size:15px}
 .workspace .table-proposal .proposal-parties p{font-size:13px}
 .workspace .table-proposal .quotation-bank dd{margin-left:0;overflow-wrap:anywhere}
}
@media screen and (max-width:360px){.workspace .quote-tools{gap:6px}}
@media screen{
 .workspace .quote-tools{justify-content:flex-start;align-items:flex-end}
 .workspace .quote-tools>.row{display:contents}
 .workspace .quote-tools>.row>.btn{flex:0 0 auto;width:auto;margin-left:0}
 .workspace .table-proposal .terms-copy{font-size:13px;line-height:1.65}
 .workspace .table-proposal .payment-snapshot{font-size:12px}
 .workspace .table-proposal .payment-snapshot>div{padding-block:12px}
}
@media screen{.workspace .quote-tools{width:100%;max-width:850px;margin-inline:auto;box-sizing:border-box}}
/* Shared action density: retain readable fields, avoid stretched commands. */
@media screen and (max-width:800px){
 .workspace .demo-strip{margin-bottom:0;padding-block:2px}
 .workspace .demo-strip button{min-height:32px;height:32px;padding:4px 8px}
 .workspace .content{padding-top:14px}
 .workspace .page-head{gap:10px;margin-bottom:14px}
 .workspace .page-head h1{margin-block:8px}
 .workspace .ux-page-actions{gap:8px;align-items:center}
 .workspace .page-head .ux-page-actions>.btn{flex:0 0 auto;width:auto!important;min-height:36px;height:auto;padding:7px 10px;font-size:12px;line-height:20px}
 .workspace :is(.catalogue-toolbar,.package-toolbar,.op-filters) .btn{flex:0 0 auto;width:auto;min-height:36px;padding:7px 10px;font-size:12px;line-height:20px;align-self:end}
 .workspace .catalogue-toolbar{gap:8px;margin-bottom:14px}
 .workspace .op-filters{gap:10px;align-items:end}
 .workspace .op-filters label{min-width:0}
}
@media screen and (max-width:800px){
 .workspace .plan-title .ux-page-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px}
 .workspace .plan-title .ux-page-actions>.row{display:contents}
 .workspace .plan-title .ux-page-actions .btn{flex:0 0 auto;width:auto!important;min-height:36px;height:auto;padding:7px 10px;font-size:12px;line-height:20px}
}
@media screen and (max-width:800px){.workspace .mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center}}
/* Subtle raised action surfaces; no floating overlay or extra controls. */
@media screen{
 .workspace .btn,dialog .btn,.workspace .compact-quote-actions summary{
  box-shadow:0 2px 3px rgb(20 40 34 / 7%),0 1px 1px rgb(20 40 34 / 4%),inset 0 1px 0 rgb(255 255 255 / 55%);
  transition:box-shadow .15s ease,transform .15s ease;
 }
 .workspace .btn.primary,dialog .btn.primary{box-shadow:0 3px 6px rgb(20 40 34 / 15%),inset 0 1px 0 rgb(255 255 255 / 16%)}
 .workspace .btn:active,dialog .btn:active,.workspace .compact-quote-actions summary:active{transform:translateY(1px);box-shadow:inset 0 1px 2px rgb(20 40 34 / 12%)}
 .workspace .btn:disabled,dialog .btn:disabled{box-shadow:none;transform:none}
 .workspace .btn:focus-visible,dialog .btn:focus-visible,.workspace .compact-quote-actions summary:focus-visible{outline:2px solid var(--green,#244b40);outline-offset:3px}
}
@media screen and (hover:hover){.workspace .btn:not(:disabled):hover,dialog .btn:not(:disabled):hover{box-shadow:0 4px 8px rgb(20 40 34 / 12%),inset 0 1px 0 rgb(255 255 255 / 50%)}}
@media(prefers-reduced-motion:reduce){.workspace .btn,dialog .btn,.workspace .compact-quote-actions summary{transition:none}}
@media screen{.workspace th .btn,.workspace .op-tabs .btn,.workspace .sidebar .btn{box-shadow:none;transform:none}}
/* Consistent dialog rhythm without enlarging command buttons. */
@media screen{
 dialog form>.field+.field,dialog form>.form-grid+.field{margin-top:12px}
}
@media screen and (max-width:600px){
 #modal .form-grid{gap:12px}
 dialog .field{gap:4px;font-size:13px;line-height:1.4;min-width:0}
 #modal form .btn{min-height:36px;padding:7px 10px;font-size:13px;line-height:20px;width:auto}
}

@media screen and (min-width:701px) and (max-width:1100px){
 .workspace .topbar{display:grid;grid-template-columns:1fr auto;height:auto;gap:10px;padding:14px 24px}
 .workspace .topbar .workspace-context{grid-column:1/-1;min-width:0;justify-content:space-between}
 .workspace .topbar .workspace-identity{max-width:75%}
 .workspace .topbar>.row{justify-self:end}
 .workspace .topbar .presentation-switch{margin:0;max-width:none}
}
