/* Market Research -> 7. My reports -> Boards (2026-10-30), js/market-research/boards.js.
   Option A ("Free grid") of https://claude.ai/artifact/6z8C6oPGnFE18TsnqZYe9f.
   Grid mechanics come from css/vendor-gridstack.css (Gridstack 12.6.0). Tiles
   are plain white cards with no Ascent branding, so a board could be shown
   to a client later. */

/* list card in My reports */
.mb-listcard .card-head .ma-btn{margin-left:auto;padding:6px 11px;font-size:14px}
.mb-none{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:16px 18px;font-size:14px;color:var(--slate)}
.mb-none span{flex:1;min-width:220px;line-height:1.5}
.mb-blist{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;padding:12px 14px}
.mb-bcard{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid #ececef;border-radius:10px;background:#fff;font:inherit;text-align:left;cursor:pointer;color:var(--ink);min-width:0}
.mb-bcard:hover{border-color:var(--coral-300)}
.mb-bcard:focus-visible{outline:2px solid var(--coral-500);outline-offset:2px}
.mb-mini{width:72px;height:40px;flex:0 0 auto;background:#fafafb;border-radius:6px;padding:2px}
.mb-bt{display:flex;flex-direction:column;gap:2px;min-width:0}
.mb-bt b{font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mb-bt small{font-size:14px;color:var(--slate)}

/* board page */
.mb-page{display:flex;flex-direction:column;gap:12px}
.mb-top .ma-msg{white-space:nowrap}
.mb-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#fff;border:1px solid #ececef;border-radius:10px;padding:8px 10px}
.mb-fhint{font-size:14px;color:var(--slate);margin-left:auto}
.mb-shell{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
.mb-shell.with-panel{grid-template-columns:minmax(0,1fr) 280px}
@media (max-width:900px){.mb-shell.with-panel{grid-template-columns:minmax(0,1fr)}.mb-shell.with-panel .mb-panel{order:-1;position:static}}
.mb-gridwrap{min-width:0;position:relative;display:flex;flex-direction:column;gap:12px}
/* Empty board: only the "This board is empty" box shows; the grid has no height or outline until a tile is added. */
.mb-gridwrap.is-empty .mb-grid{min-height:0!important;height:0!important;outline:0!important;background:none!important}
.mb-grid{min-height:120px;border-radius:12px}
.mb-page.arranging .mb-grid{background-image:linear-gradient(to right,rgba(216,90,48,.07) 1px,transparent 1px);background-size:calc(100% / 12) 100%;outline:1px dashed #f3c3b4;outline-offset:3px}
.mb-empty{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:40px 16px;border:1.5px dashed var(--border);border-radius:12px;background:#fff;font-size:14px;color:var(--slate)}
.mb-empty b{font-size:15px;color:var(--ink)}
.mb-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13.5px;color:var(--slate)}
.mb-del{color:var(--slate)}
.mb-del:hover{color:#b42318}

/* tiles */
.mb-grid>.grid-stack-item>.grid-stack-item-content{overflow:hidden!important}
.mb-tile{height:100%;display:flex;flex-direction:column;background:#fff;border:1px solid #e6e6ea;border-radius:12px;overflow:hidden}
.mb-th{display:flex;align-items:center;gap:8px;padding:9px 10px 4px 14px;min-height:38px}
.mb-tt{flex:1;min-width:0;display:flex;flex-direction:column}
.mb-tt b{font-size:14px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mb-tt small{font-size:13.5px;color:var(--slate);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mb-grip{display:none;color:#a3a3ad;flex:0 0 auto}
.mb-x{display:none;width:26px;height:26px;border:0;border-radius:7px;background:none;color:var(--slate);font-size:18px;line-height:1;cursor:pointer;flex:0 0 auto;align-items:center;justify-content:center}
.mb-x:hover{background:#fdf1ed;color:var(--coral-500)}
.mb-x:focus-visible,.mb-open:focus-visible,.mb-pitem:focus-visible{outline:2px solid var(--coral-500);outline-offset:1px}
.mb-open{font-size:14px;flex:0 0 auto}
.mb-tb{flex:1;min-height:0;margin:2px 12px 10px;position:relative;overflow:auto}
.mb-tb .ma-viz{width:100%;height:auto}
.mb-tb .ma-tbl-wrap{border:0}
.mb-lg{margin-top:6px;font-size:13.5px;gap:12px}
.mb-msgbox{height:100%;min-height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;font-size:14px;color:var(--slate);padding:0 10px}
.mb-page.arranging .mb-tile{border:1.5px dashed var(--coral-300)}
.mb-page.arranging .mb-th{cursor:grab;background:#fafafb}
.mb-page.arranging .mb-grip,.mb-page.arranging .mb-x{display:inline-flex}
.mb-page.arranging .mb-open{display:none}
.ui-draggable-dragging .mb-tile{box-shadow:0 12px 28px rgba(0,0,0,.14)}
.mb-grid .grid-stack-placeholder>.placeholder-content{background:#fdf1ed;border:2px dashed var(--coral-300);border-radius:12px}

/* heading-and-note tiles */
.mb-text{background:transparent;border-color:transparent}
.mb-text .mb-th{min-height:0;padding:4px 6px 0}
.mb-page:not(.arranging) .mb-text .mb-th{display:none}
.mb-page.arranging .mb-text{background:#fff}
.mb-text .mb-tb{display:flex;flex-direction:column;justify-content:center;gap:4px;margin:0 14px 8px;overflow:hidden}
.mb-h1{margin:0;font-size:18px;font-weight:800;color:var(--ink);line-height:1.25;outline:0}
.mb-p{margin:0;font-size:14.5px;line-height:1.5;color:#33333a;outline:0;max-width:90ch}
.mb-h1[contenteditable="true"],.mb-p[contenteditable="true"]{border-radius:6px;padding:2px 6px;margin-left:-6px;box-shadow:inset 0 0 0 1px #ececef}
.mb-h1[contenteditable="true"]:focus,.mb-p[contenteditable="true"]:focus{box-shadow:inset 0 0 0 1px var(--coral-300)}
.mb-h1:empty::before,.mb-p:empty::before{content:attr(data-ph);color:#a3a3ad;font-weight:500}
.mb-p:empty:not([contenteditable="true"]){display:none}

/* add panel (closes with X or Escape) */
.mb-panel{position:sticky;top:12px;max-height:calc(100vh - 40px)}
.mb-panel[hidden],.mb-empty[hidden]{display:none}
.mb-panel .card-head{gap:8px}
.mb-px{display:inline-flex;margin-left:auto}
.mb-plist{display:flex;flex-direction:column;gap:6px;padding:10px;overflow:auto}
.mb-psub{font-size:13px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--slate);margin:6px 2px 0}
.mb-pitem{display:flex;align-items:center;gap:10px;width:100%;padding:8px;border:1px solid #ececef;border-radius:9px;background:#fff;font:inherit;text-align:left;cursor:pointer;color:var(--ink)}
.mb-pitem:hover:not(:disabled){border-color:var(--coral-300)}
.mb-pitem:disabled{cursor:default;opacity:.6}
.mb-pitem>span:last-child{display:flex;flex-direction:column;min-width:0}
.mb-pitem b{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mb-pitem small{font-size:13.5px;color:var(--slate)}
.mb-pitem .ma-thumb{width:52px;height:32px}
.mb-pic{width:52px;height:32px;flex:0 0 auto;border-radius:6px;background:#fdf1ed;color:var(--coral-500);font-weight:800;font-size:15px;display:inline-flex;align-items:center;justify-content:center}
/* No text selection while dragging tiles around; headings and notes stay editable. */
.mb-page.arranging .mb-tile{-webkit-user-select:none;user-select:none}
.mb-page.arranging .mb-h1,.mb-page.arranging .mb-p{-webkit-user-select:text;user-select:text}

/* Cut-off charts and tables: a fade on the hidden edge plus a pill that scrolls
   to the rest ("More below" / "More to the right"), or while arranging grows
   the tile to fit ("Resize to fit"). */
.mb-tile{position:relative}
.mb-tile.more-down::after{content:"";position:absolute;left:1px;right:1px;bottom:1px;height:44px;background:linear-gradient(rgba(255,255,255,0),#fff 80%);border-radius:0 0 11px 11px;pointer-events:none;z-index:1}
.mb-tile.more-right::before{content:"";position:absolute;top:40px;right:1px;bottom:1px;width:40px;background:linear-gradient(to right,rgba(255,255,255,0),#fff 80%);border-radius:0 11px 11px 0;pointer-events:none;z-index:1}
.mb-more{position:absolute;right:10px;bottom:8px;z-index:2;font:inherit;font-size:13.5px;font-weight:700;color:var(--coral-500);background:#fdf1ed;border:1px solid var(--coral-300);border-radius:999px;padding:4px 10px;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.08)}
.mb-more:hover{background:#fbe3da}
.mb-more:focus-visible{outline:2px solid var(--coral-500);outline-offset:1px}
.mb-page.arranging .mb-more{background:var(--coral-500);border-color:var(--coral-500);color:#fff}

/* Arrange button: light coral with a coral border so it stands out (Mark, 2026-10-30) */
.ma-btn.mb-arr{background:#fdf1ed;border-color:var(--coral-500);color:var(--coral-500)}
.ma-btn.mb-arr:hover{background:#fbe3da;border-color:var(--coral-500);color:var(--coral-500)}
.ma-btn.mb-arr:disabled{background:#f6f6f8;border-color:var(--border);color:var(--slate)}

/* A heading being typed outside Arrange gets a white card so the fields show. */
.mb-text:has([contenteditable="true"]){background:#fff;border-color:#ececef}

/* My reports list: two stacked columns. Left: Your boards, Your reports.
   Right: Ask Taylor, Templates. Narrow screens: one column, Ask Taylor first. */
.ma-2col{align-items:start}
.ma-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.ma-col>.ma-hero{padding:16px 18px;gap:10px}
.ma-col .ma-hero-ask input{font-size:14px}
.ma-col .mb-blist{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
@media (max-width:980px){.ma-2col{display:flex;flex-direction:column}.ma-col{display:contents}.ma-col>.ma-hero{order:-1}}
