/* Winslow CRM round 4 (Ryan 2026-10-20): structure only on the current look. Menu spacing, merged-page section strip, section dashboards, phone layout. */
/* ---- left menu: flat, always open, tighter so every section fits ---- */
html.lookA body.r4nav .side .nav a,body.r4nav .side .nav a{padding:2px 8px!important;margin-bottom:1px!important;font-size:13.5px!important;gap:9px!important;min-height:0!important;line-height:1.2}
html.lookA body.r4nav .side .nav a .ic,body.r4nav .side .nav a .ic{width:22px!important;height:22px!important;padding:3px!important;border-radius:7px!important;flex:none}
body.r4nav .side .nav .ngrp.r4-sec{padding:12px 8px 3px!important;margin:0!important;font-size:11px!important}
body.r4nav .side .nav .ngrp.r4-sec:first-child{padding-top:0!important}
body.r4nav .side .brand{padding-bottom:6px!important}
@media (min-width:861px){body.r4nav .side .blogo{max-height:78px;width:auto;max-width:100%}}
body.r4nav .side .nav a .pill{margin-left:auto}
/* ---- merged pages: section strip above the page (Today, Inbox) ---- */
.r4-head{padding:20px 28px 0;max-width:1500px;box-sizing:border-box}
.r4-head-t{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.r4-head-t h1{margin:0;font-size:28px}
.r4-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0;padding-bottom:10px;border-bottom:1px solid var(--line,#e5e7eb)}
.r4-tab{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line,#e5e7eb);background:var(--card,#fff);color:var(--ink,#111);border-radius:999px;padding:6px 14px;font:600 14px Inter,system-ui,sans-serif;text-decoration:none;min-height:34px;box-sizing:border-box}
.r4-tab.on{background:var(--ocean,#0d6e7a);border-color:var(--ocean,#0d6e7a);color:#fff}
html.lookA.dark .r4-tab.on{background:#e3c77d;border-color:#e3c77d;color:#111}
.r4-tn{background:var(--need,#b3261e);color:#fff;border-radius:999px;font:700 11px/18px Inter,sans-serif;min-width:18px;padding:0 5px;text-align:center}
.r4-tn:empty{display:none}
body.r4-merged .mcol .main{padding-top:12px}
body.r4-merged #main > div > .row:first-child > h1.grow,body.r4-merged #main > div > h1:first-child{font-size:20px}
/* ---- section dashboards (Files, Back office) in the dashboard style ---- */
.r4-chips{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible!important}
.r4-chips .hm-chip{flex:none;min-width:0}
.r4-two{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible!important}
.r4-two .hm-chip{flex:none;min-width:0;height:auto;min-height:60px;padding-top:8px;padding-bottom:8px}
.r4-two .hm-chip span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.hm-t .r4-hb,html.lookA .hm-t .r4-hb{background:var(--ocean,#0d6e7a)!important;color:#fff!important}
.r4-list{margin:0 0 14px;padding:14px 16px}.r4-list h2{margin:0 0 6px;font-size:17px}
.r4-li{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-top:1px solid var(--line,#eee);color:inherit;text-decoration:none}
.r4-li:first-of-type{border-top:0}
/* agent campaigns (copy on edit) */
.r4-camps{margin:0 0 14px}.r4-cr{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:9px 0;border-top:1px solid var(--line,#eee)}.r4-ca{display:flex;gap:6px}
.r4-ov{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:80;display:flex;align-items:flex-start;justify-content:center;padding:40px 12px;overflow:auto}
.r4-dlg{max-width:720px;width:100%;box-sizing:border-box}.r4-step{border-top:1px solid var(--line,#eee);padding:8px 0}
/* My actions on the phone: first 6 rows, Show all */
#myact .r4-cut .ma-r.r4-x,#main .card.r4-x{display:none!important}.r4-all{margin:8px 0 0}
/* dashboards: a tile row that is wider than the page wraps instead of scrolling sideways (Broker only row at 1440 px) */
.hm-flow .hm-s{width:calc(var(--n) * var(--tw) + (var(--n) - 1) * var(--sp3,12px));max-width:100%;min-width:0}
.hm-flow .hm-g{grid-template-columns:repeat(auto-fill,var(--tw))}
/* ---- phone layout: full width, 2-column grids, compact cards ---- */
@media (max-width:860px){
  .main{padding:8px 10px 96px!important}
  .tabbar{padding-bottom:env(safe-area-inset-bottom)!important}
  body{padding-bottom:0}
  .r4-head{padding:10px 10px 0}
  .r4-head-t h1{font-size:22px}.r4-head-t .small{display:none}
  .r4-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-top:6px;padding-bottom:8px;gap:5px}.r4-tabs::-webkit-scrollbar{display:none}
  .r4-tab{padding:5px 11px;font-size:13px;min-height:32px;flex:none}
  body.r4-merged .mcol .main{padding-top:6px!important}
  /* stat grids: 2 columns, short */
  .r4-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hm-chips{margin:8px 0 12px!important}
  .hm-chip{height:54px!important}
  .hm-chip b{font-size:22px!important}
  .hm-h{margin-bottom:0}
  .hm-s{margin-bottom:12px!important}
  /* dashboard: My actions rows use the full width */
  #myact .myact{padding:12px!important;margin:10px 0!important}
  #myact .ma-r{flex-wrap:wrap;gap:4px 8px!important;padding:8px 0!important}
  #myact .ma-r > div:nth-child(2){flex:1 1 calc(100% - 100px)!important}
  #myact .ma-r > div:last-child{flex:1 1 100%;justify-content:flex-start!important}
  #trwk .card{padding:10px 12px!important;margin:6px 0!important}
  /* Today and lists: compact cards, no side icon column */
  .tcard{padding:10px 12px!important;margin:0 0 8px!important}
  .tcard > .row:first-child > .fic{display:none}
  .tcard .row[style*="margin-top:10px"]{margin-top:6px!important;gap:5px!important}
  .tcard .btn.s,#main .card .row > .btn.s{min-height:32px!important;padding:4px 9px!important;font-size:12.5px!important}
  .tcard .row > span.grow:empty{display:none}
  .tcard .script{max-height:4.3em;overflow:hidden;margin-top:4px!important;padding:6px 10px!important;font-size:13px;line-height:1.4;cursor:pointer}
  .tcard .script.r4-open{max-height:none}
  .tcard .ring{transform:scale(.85)}
  .main .card{margin-bottom:10px}
  #main label[style*="display:flex"]{flex-wrap:wrap}
  #main .card[style*="border:2px solid"]{padding:10px 12px!important;margin-bottom:8px!important}
  #main .card[style*="border:2px solid"] > .row[style*="margin-top:10px"]{margin-top:6px!important}
  #main .card[style*="border:2px solid"] .btn.s{padding:5px 10px;min-height:32px}
  .main h2{margin-top:12px}
  /* Files: two cards across, shorter photo */
  #main div:has(> a.boa-txc){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  #main a.boa-txc{padding:0 9px 8px!important;font-size:13px}
  #main a.boa-txc .boa-ph{aspect-ratio:auto!important;height:92px!important;margin:0 -9px 6px!important}
  #main a.boa-txc .boa-ph.none svg{width:28px;height:28px}
  #main a.boa-txc .btn{font-size:12px;padding:4px 8px}
  /* Agent hub: two tiles across, short hero */
  .hb-hero{padding:14px!important;gap:10px!important}
  .hb-hero p{display:none}
  .hb-g{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .hb-t{min-height:0!important;padding:8px!important;gap:8px!important;align-items:flex-start!important}
  .hb-t .hb-tx > span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11.5px!important;line-height:1.3!important}
  .hb-t .hb-tx b{font-size:13px!important;line-height:1.25!important}
  .hb-t .hb-pin{display:none}
  html body .hb-t .hb-ti,html body .hb-t.as-ph .hb-ti{width:40px!important;height:40px!important;min-width:40px!important;flex:0 0 40px!important;border-radius:9px!important;margin:0!important}
  html body .hb-t.as-ph{flex-direction:row!important;align-items:flex-start!important}
  .hb-sh{padding:10px 12px!important;min-height:0!important}
  .hb-hero .la-keys{padding:10px 12px!important}
  .hb-nudge a{padding:10px 12px!important}
  .hb-s{margin-bottom:12px!important}
  .la-tiles{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
  .la-tiles > h2{grid-column:1/-1}
  .la-tile{min-height:0!important;height:auto!important}
  .la-tile .ph{height:44px!important}
  .la-tile .tx small{display:none}
}
