/* Same shell, contextual destinations. No second phone menu. */
html.u2-p-community:not(.u2-inframe) body>.top{display:flex}
html.u2-context-ready.u2-p-tasks:not(.u2-ops-overview) .ops2-today{display:none}
.u2-community-compose{border:1px solid var(--border);border-radius:16px;background:var(--surface);overflow:hidden;margin-bottom:18px}.u2-community-compose summary{padding:18px;min-height:52px;cursor:pointer;color:var(--accent-deep);font-weight:600;font-size:13px}.u2-community-compose .comp{border:0;box-shadow:none;margin:0}.u2-community-compose .u2w-section-title{display:none}.u2-community-compose[hidden],html.u2-context-community[data-community-section="calls"] .u2-community-compose{display:none!important}
@media(max-width:1100px){html.u2-p-community .u2w-community-aside>.u2-community-compose{grid-row:1;margin-bottom:0}}
.u2-ops-shortcuts[hidden],.u2-workspace-return[hidden],.u2-community-empty[hidden],.cops2-overview[hidden],.u2-section-tabs [hidden]{display:none!important}
.u2-context-sheet{box-sizing:border-box;width:min(520px,calc(100% - 24px));max-height:min(80dvh,700px);padding:22px;margin:auto auto 12px;border:1px solid var(--border,#e6e2f0);border-radius:22px;background:var(--surface,#fff);color:var(--text,#1c1830);box-shadow:0 24px 80px #17152835;overflow:auto}
.u2-context-sheet::backdrop{background:#17152870;backdrop-filter:blur(3px)}
.u2-context-sheet header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.u2-context-sheet h2{font-size:20px;letter-spacing:-.5px;margin:0}.u2-context-close{width:44px;height:44px;border:1px solid var(--border,#e6e2f0);border-radius:12px;background:var(--bg,#f7f6fc);color:inherit;font-size:24px;cursor:pointer}
.u2-context-links{display:grid;grid-template-columns:1fr 1fr;gap:10px}.u2-context-links button{display:flex;gap:12px;align-items:center;min-height:64px;padding:14px;border:1px solid var(--border,#e6e2f0);border-radius:12px;background:var(--bg,#f7f6fc);color:inherit;text-align:left;font:600 14px Inter,system-ui,sans-serif;cursor:pointer}.u2-context-links button:hover,.u2-context-links button[aria-current]{border-color:var(--accent,#7c3aed);background:var(--soft,#f3eaff);color:var(--accent-deep,#6d28d9)}
.u2-context-nav button:focus-visible,.u2-context-sheet button:focus-visible{outline:3px solid var(--accent,#7c3aed);outline-offset:2px}.u2-context-sheet .u2-ic{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.u2-workspace-return{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.u2-workspace-return button{border:1px solid var(--border,#e6e2f0);border-radius:var(--radius-sm,10px);padding:9px 15px;min-height:40px;color:var(--accent-deep,#6d28d9);background:var(--surface,#fff);font:600 12px Inter,system-ui,sans-serif;cursor:pointer}.u2-workspace-return span{color:var(--text-muted,#6b6785);font-size:12px}
.u2-ops-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}.u2-ops-shortcuts button{min-height:84px;padding:17px;text-align:left;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);cursor:pointer;font:600 14px Inter,system-ui,sans-serif}.u2-ops-shortcuts small{display:block;margin-top:7px;color:var(--text-muted);font-size:12px;font-weight:400}
html.u2-ops-overview #main,html.u2-ops-overview .ops2-section-heading,html.u2-ops-overview #ops2-calendar-controls,html.u2-ops-overview #ops2-filters{display:none!important}html.u2-ops-overview .ops2-today{margin:0}html.u2-ops-overview .ops2-tabs{margin-bottom:20px}
html.u2-context-community[data-community-section="calls"] :is(.u2w-community-feed,.comp,#contest,#search,#chips,#feed),html.u2-context-community[data-community-section="wins"] :is(#calls,#recordings){display:none!important}
html.u2-context-community[data-community-section="calls"] .u2w-community-layout{display:block}html.u2-context-community[data-community-section="calls"] .u2w-community-aside{width:100%}
.u2-community-empty{padding:28px;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--text-muted);text-align:center}
html.u2-context-ready.u2-p-prospecting #prOv>.app{flex-direction:column;flex-wrap:nowrap}
html.u2-context-ready.u2-p-prospecting #prOv .main{flex:1 1 auto;min-height:0}
html.ui2 .u2-section-tabs,html.ui2.u2-context-ready #prOv aside.u2-section-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:6px;border:1px solid var(--border);border-radius:16px;background:var(--surface);width:auto;flex:0 0 auto;margin:16px 32px 0}
html.ui2 .u2-community-tabs{margin:20px 0;grid-template-columns:repeat(4,minmax(0,1fr))}
html.ui2 .u2-section-tabs>button,html.ui2 #prOv .u2-section-tabs>button.nv{display:flex;justify-content:center;align-items:center;min-width:0;min-height:44px;padding:10px 12px;border:1px solid transparent;border-radius:10px;background:transparent;box-shadow:none;color:var(--text-muted);font:600 12px Inter,system-ui,sans-serif;line-height:1.4;cursor:pointer;white-space:normal}
html.ui2 .u2-section-tabs>button[aria-current="page"],html.ui2 #prOv .u2-section-tabs>button.on{background:var(--soft);color:var(--accent-deep);border-color:color-mix(in srgb,var(--accent) 20%,transparent)}
html.ui2 #prOv .u2-section-tabs>:not(button.nv){display:none!important}
html.u2-context-community .u2-community-composer{padding:18px;border-radius:16px}html.u2-context-community .u2-community-composer textarea{min-height:96px}html.u2-context-community .search{padding-left:14px}
@media(max-width:960px){
 html.ui2 .u2-context-nav button{appearance:none;display:flex;flex:1;min-width:0;min-height:48px;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:5px 1px;border:0;border-radius:10px;background:transparent;color:var(--text-muted);font:550 10px Inter,system-ui,sans-serif;cursor:pointer;position:relative}
 html.ui2 .u2-context-nav button[aria-current]{background:var(--soft);color:var(--accent-deep)}
 html.u2-context-standalone body{padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}
 html.u2-context-ready .ops2-tabs,html.ui2.u2-context-ready.u2-p-prospecting #prOv aside.u2-section-tabs,html.ui2.u2-context-ready .u2-community-tabs{display:none!important}
 html.u2-context-ready .ops2-heading{margin-bottom:12px}html.u2-context-ready .ops2-heading>span,html.u2-context-ready .ops2-heading .ops2-eyebrow{display:none}
 .u2-ops-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.u2-ops-shortcuts button{min-height:76px;padding:14px}
 html.u2-context-community #dmfab{display:none!important}html.u2-context-community .dmov{z-index:100}html.u2-context-community .dmpanel{padding-bottom:env(safe-area-inset-bottom)}
 .u2-workspace-return{margin-bottom:12px}.u2-context-sheet{padding:18px 16px calc(18px + env(safe-area-inset-bottom))}
}

/* Desktop Community: an open composer in the reading column, useful context beside it. */
@media(min-width:1101px){
 html.u2-p-community .wrap{max-width:1280px;margin:0 auto;padding:30px 32px 64px}
 html.u2-p-community .u2w-eyebrow{display:none}
 html.u2-p-community .h1{font-size:30px;margin-bottom:8px}
 html.u2-p-community .wrap>.sub{margin-bottom:18px;font-size:13px}
 html.ui2 .u2-community-tabs{width:max-content;max-width:100%;grid-template-columns:repeat(4,minmax(105px,1fr));margin:0 0 24px;padding:5px;border-radius:12px}
 html.u2-p-community .u2w-community-layout{grid-template-columns:minmax(0,1fr) 300px;gap:24px}
 html.u2-p-community:not(.u2-community-sidebar) .u2w-community-layout{grid-template-columns:minmax(0,820px);justify-content:center}
 html.u2-p-community:not(.u2-community-sidebar) .u2w-community-aside{display:none}
 html.u2-p-community .u2w-community-aside>.card{margin:0 0 16px}
 html.u2-p-community .u2w-community-aside .callrow{padding:16px;gap:10px}
 html.u2-p-community .u2w-community-aside .ch{padding:16px}
 html.u2-p-community .u2-community-compose{margin:0 0 20px;border-radius:14px}
 html.u2-p-community .u2-community-compose summary{padding:16px 20px;border-bottom:1px solid var(--border);min-height:48px}
 html.u2-p-community .u2-community-compose:not([open]) summary{border-bottom:0}
 html.u2-p-community .u2-community-compose .comp{padding:18px 20px}
 html.u2-p-community .u2-community-compose textarea{min-height:90px}
 html.u2-p-community .post{padding:22px;border-radius:14px;margin-bottom:16px}
 html.u2-p-community .post p{font-size:14px;line-height:1.7}
 html.u2-p-community .post h3{font-size:19px;margin-top:16px}
 html.u2-p-community .search{margin-bottom:10px}
 html.u2-context-community[data-community-section="calls"] .u2w-community-layout{display:block;max-width:960px}
 html.u2-context-community[data-community-section="calls"] .u2w-community-aside{display:block;width:100%}
}
@media(max-width:1100px){
 /* (2026-10-12) the draw and call lists show in the Feed on narrow screens — placed under the post box by ui2-workspace-nav.js */
 html.u2-p-community .u2w-community-feed>.u2-community-compose{margin-bottom:18px}
}

/* Section menus (Operations "More", Prospecting, Community …) look and act like the main Menu sheet (Colin, 2026-10-12):
   full-width bottom sheet, plain × close, white bordered tiles, current page in soft purple. */
html.ui2 .u2-context-sheet{width:100%;max-width:100%;margin:auto 0 0 0;border:0;border-radius:20px 20px 0 0;box-shadow:none;padding:18px 16px calc(18px + env(safe-area-inset-bottom));max-height:82dvh;background:var(--surface);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html.ui2 .u2-context-sheet::backdrop{background:#0f0d1870;backdrop-filter:blur(3px)}
html.ui2 .u2-context-sheet header{margin:2px 4px 14px}
html.ui2 .u2-context-sheet h2{font-size:15px;font-weight:700;letter-spacing:0}
html.ui2 .u2-context-close{width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:var(--text-muted);font-size:18px;line-height:1;display:inline-grid;place-items:center;padding:0}
html.ui2 .u2-context-close:hover{background:var(--surface-2)}
html.ui2 .u2-context-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
html.ui2 .u2-context-links button{min-height:48px;padding:9px 12px;gap:11px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text-muted);font:500 12.5px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-width:0}
html.ui2 .u2-context-links button span{min-width:0;overflow:hidden;text-overflow:ellipsis}
html.ui2 .u2-context-links button:hover{background:var(--surface-2);color:var(--text)}
html.ui2 .u2-context-links button[aria-current]{background:var(--soft);color:var(--accent-deep);font-weight:650;border-color:var(--soft)}
html.ui2 .u2-context-sheet .u2-ic{width:18px;height:18px}
html.ui2 .u2-context-sheet button:focus{outline:none}
html.ui2 .u2-context-sheet button:focus-visible{outline:3px solid var(--accent);outline-offset:1px}
@media(min-width:961px){html.ui2 .u2-context-sheet{width:min(560px,100%);margin:auto auto 0}}
/* Phones: the bottom bar has Home, so the top "← Tracker / ← Portal" button on Community is just clutter (Colin, 2026-10-12).
   It still works behind the scenes — the bottom bar's Home uses it. */
@media(max-width:960px){html.u2-context-community #back{display:none!important}}
html.ui2 .u2-context-links button{background:transparent}
html.ui2 .u2-context-sheet .u2-ic{width:17px;height:17px}
html.ui2 .u2-context-close .u2-ic{width:17px;height:17px}

/* Approved site-wide contract: workspace destinations nest in the existing sidebar. */
html.ui2 .u2-context-sub{display:flex;flex-direction:column;gap:2px;margin:5px 0 12px 20px;padding:2px 0 2px 10px;border-left:1px solid var(--border)}
html.ui2 .u2-context-sub button{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:9px;width:100%;min-height:36px;padding:8px 9px;border-radius:8px;color:var(--text-muted);font:500 12px/1.4 Inter,system-ui,sans-serif;cursor:pointer}
html.ui2 .u2-context-sub button>span{min-width:0;flex:1;overflow-wrap:anywhere}
html.ui2 .u2-context-sub button .u2-ic{width:15px;height:15px}
html.ui2 .u2-context-sub button:hover{background:var(--surface-2);color:var(--text)}
html.ui2 .u2-context-sub button[aria-current]{background:var(--soft);color:var(--accent-deep);font-weight:650}
html.ui2 .u2-context-sub button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
html.ui2 :is(.u2-context-sub,.u2-context-nav) button:disabled{opacity:.5;cursor:default}
html.ui2 .u2-bottom[hidden]{display:none!important}
html.ui2 .u2-bottom button .u2-count{position:absolute;top:1px;right:calc(50% - 26px);font-size:9px;line-height:15px;margin:0;padding:0 4px;background:var(--soft);color:var(--accent-deep);border-radius:8px}
html.ui2 .u2-bottom button>span{max-width:100%;text-align:center;overflow-wrap:anywhere}
@media(min-width:961px){
 html.ui2.u2-has-sections :is(.ops2-tabs,.u2-community-tabs,.cops2-tabs,.u2-owned-section-tabs,.cr2-jumps){display:none!important}
 html.ui2.u2-has-sections #prOv aside.u2-section-tabs{display:none!important}
 html.ui2.u2-p-studio.u2-hasside :is(.sidebar,.topbar .theme-toggle){display:none!important}
 html.ui2.u2-p-studio.u2-hasside .app-main{margin-left:0}
}
@media(max-width:960px){
 html.ui2.u2-has-sections :is(.cops2-tabs,.u2-owned-section-tabs,.cr2-jumps){display:none!important}
 html.ui2.u2-page.u2-hasside body,html.ui2.c2-shared-phone body{padding-bottom:calc(var(--u2-bottom-height,76px) + 16px)!important}
 html.ui2.c2-shared-phone .cnav.c2-nav{display:none!important}
 html.ui2.u2-p-studio.u2-hasside :is(.sidebar,.bottom-nav){display:none!important}
 html.ui2.u2-p-studio.u2-hasside .app-main{margin-left:0;padding-bottom:0}
 html.ui2 .u2-context-sheet .u2-context-close{min-height:44px;min-width:44px}
}
html.ui2.u2-p-studio.u2-hasside>.bottom-nav,html.ui2.u2-p-studio.u2-hasside body>.bottom-nav{display:none!important}
/* If a desktop frame is narrowed to phone width, its parent retains the one menu. */
@media(max-width:960px){
 html.c2-frame-on .c2-frames{display:block;position:fixed;left:0;right:0;top:var(--c2-frame-top,64px);bottom:var(--u2-bottom-height,76px);z-index:5}
 html.c2-frame-on .c2-frames>iframe{position:absolute;inset:0;border:0;width:100%;height:100%;visibility:hidden}
 html.c2-frame-on .c2-frames>iframe.on{visibility:visible}
 html.c2-frame-on :is(#view,.ro-note,#pwaInstall,#pwaHow){display:none!important}
 html.c2-frame-on body{overflow:hidden}
}
html.c2-embed :is(.c2-context-bottom,.cnav.c2-nav){display:none!important}

@media(min-width:961px){html.ui2.u2-has-sections .u2s-detail-tabs{display:none!important}}

/* Keep long More menus reachable when the viewport becomes short. */
html.ui2 .u2-context-sheet,html.ui2 .u2-sheet>div{overscroll-behavior:contain}
@media(max-width:960px) and (max-height:700px){
 html.ui2 .u2-context-sheet,html.ui2 .u2-sheet>div{max-height:calc(100dvh - 24px)}
}
