/* Bento grid (bento-grid.js): a dashboard of widgets to rearrange and resize. Ported from KokonutUI's Widget Grid (MIT),
 * in the site's colors: its panels, lines and text, and its accent blue. Two columns, six from 36rem of width. */
.bento{--bento-accent:var(--accent,#3b82f6);--bento-line-strong:#334155;container:bento/inline-size;width:100%;max-width:896px}
:root.light .bento{--bento-line-strong:#cbd5e1}
.bento-grid{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row dense;gap:12px;perspective:1400px}
.bento-cell{position:relative;grid-column:span var(--span-n,2);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;transition:opacity .2s ease-out}
@container bento (min-width:36rem){
  .bento-grid{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-flow:row}
  .bento-cell{grid-column:span var(--span,2)}
}
.bento-cell.is-dimmed{opacity:.45}
.bento-cell.is-lifted{z-index:20}
/* The surface is scaled while a resize settles; the shadow fades in as a widget lifts. */
.bento-surface{position:absolute;inset:0;pointer-events:none;transform-origin:top left;border:1px solid var(--line,#222d3e);border-radius:16px;background:var(--panel,#111722);transition:border-color .2s}
.bento-cell.is-lifted .bento-surface{border-color:var(--bento-line-strong)}
.bento-shadow{position:absolute;inset:0;border-radius:16px;opacity:0;box-shadow:0 24px 48px -12px rgba(0,0,0,.7),0 8px 16px -8px rgba(0,0,0,.5)}
:root.light .bento-shadow{box-shadow:0 24px 48px -16px rgba(0,0,0,.22),0 8px 16px -8px rgba(0,0,0,.12)}
.bento-content{position:relative;box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:12px 16px 16px;color:var(--text,#edf2f9)}
.bento-head{display:flex;flex:none;align-items:center;gap:8px;height:28px;margin-bottom:8px}
.bento-icon{display:flex;flex:none;color:var(--muted,#8c9aae)}
.bento-icon svg{width:14px;height:14px}
.bento-title{overflow:hidden;color:var(--muted,#8c9aae);font-size:13px;font-weight:600;white-space:nowrap;text-overflow:ellipsis}
.bento-grip{display:flex;flex:none;align-items:center;justify-content:center;width:28px;height:28px;margin:0 -8px 0 auto;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted,#8c9aae);cursor:grab;touch-action:none;outline:none;transition:background-color .15s,color .15s}
.bento-grip:hover,.bento-cell.is-lifted .bento-grip{background:var(--panel3,#1b2534);color:var(--text,#edf2f9)}
.bento-cell.is-lifted .bento-grip{cursor:grabbing}
.bento-grip:focus-visible{box-shadow:0 0 0 2px var(--bento-accent)}
.bento-grip svg{width:16px;height:16px}
/* A widget's small, medium and large layouts cross-fade as its width changes. */
.bento-body{position:relative;flex:1;min-height:0}
.bento-view{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .22s cubic-bezier(.23,1,.32,1),visibility 0s linear .22s}
.bento-view.is-shown{opacity:1;visibility:visible;transition:opacity .22s cubic-bezier(.23,1,.32,1)}
.bento-resize{position:absolute;right:0;bottom:0;display:flex;align-items:flex-end;justify-content:flex-end;width:28px;height:28px;padding:6px;border:0;border-radius:0 0 16px 0;background:transparent;color:var(--muted,#8c9aae);cursor:ew-resize;touch-action:none;outline:none;opacity:0;transition:opacity .15s,color .15s}
.bento-cell:hover .bento-resize,.bento-resize:focus-visible{opacity:1}
@media (hover:none){.bento-resize{opacity:.7}}
.bento-resize:hover{color:var(--text,#edf2f9)}
.bento-resize:focus-visible{color:var(--bento-accent)}
.bento-resize svg{width:10px;height:10px}
/* Dots at every gutter crossing while a widget is held or resized. */
.bento-slots{position:absolute;top:-6px;left:-6px;width:calc(100% + 12px);height:calc(100% + 12px);overflow:visible;pointer-events:none;color:#475569}
:root.light .bento-slots{color:#94a3b8}
.bento-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* data-bento-theme="light" or "dark" keeps a grid's own look whatever the site's theme (the live summary is light). */
.bento.bento[data-bento-theme="light"]{--panel:#fff;--panel3:#edf2fa;--line:#e2e8f1;--text:#172235;--muted:#607088;--accent:#2563eb;--bento-line-strong:#cbd5e1;color-scheme:light}
.bento.bento[data-bento-theme="dark"]{--panel:#111722;--panel3:#1b2534;--line:#222d3e;--text:#edf2f9;--muted:#8c9aae;--accent:#3b82f6;--bento-line-strong:#334155;color-scheme:dark}
.bento[data-bento-theme="light"] .bento-shadow{box-shadow:0 24px 48px -16px rgba(0,0,0,.22),0 8px 16px -8px rgba(0,0,0,.12)}
.bento[data-bento-theme="dark"] .bento-shadow{box-shadow:0 24px 48px -12px rgba(0,0,0,.7),0 8px 16px -8px rgba(0,0,0,.5)}
.bento[data-bento-theme="light"] .bento-slots{color:#94a3b8}
.bento[data-bento-theme="dark"] .bento-slots{color:#475569}
