/* getcompliant Boards (accounts contract, section 21): Case Vault's Boards block, the board view and the staff Boards
   page, in the real workspace only (sketch.js draws nothing in the sample). Nothing here is fixed or sticky: the board
   view is its own page in normal flow, the stage fills the rest of the screen's height, and Excalidraw's layers are
   absolute inside the stage (vendor/excalidraw/SOURCE.md). Panels open over the top of the stage, so nothing below
   them moves. Between 651 and 1150 px the board view takes the sidebar's room (a tablet edits there), and at 650 px
   and under it has the feel check's two header rows and views only. */

/* ---------- the user nav: Boards only for someone with a board (platform.js keeps data-fk-tabs) ---------- */
html:not([data-fk-tabs~=boards]) .nav-user [data-view=boards]{display:none}

/* ---------- Case Vault: the Boards block ---------- */
.sk-block{margin:0 0 26px}
.sk-top{margin-bottom:14px}
.sk-top h3{font-size:14px;font-weight:500;letter-spacing:-.01em}
.sk-top p{font-size:11px;color:var(--muted);margin-top:2px}
.sk-empty{padding:22px 20px;border:1px dashed #dfe2de;border-radius:14px;color:var(--muted);font-size:13px;line-height:1.55}
.sk-empty-h{color:var(--ink);font-weight:500;margin-bottom:2px}
.sk-new{margin:0 0 16px}
.sk-new-form{display:grid;gap:14px;max-width:640px;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:#fff}
.sk-new-form .fk-actions{margin:0}
.sk-who-pick .fk-label{margin-bottom:8px}
/* 44px taps, as Enroll team's form has them (real.css): the team chips, the forms' buttons, and Cancel and Keep it
   (text buttons with room around their words) */
html[data-fk-mode=real] :is(.sk-new-form,.sk-panel) :is(.fk-team,.fk-actions button){min-height:44px}
html[data-fk-mode=real] :is(.sk-new-form,.sk-panel) .fk-actions .text-btn{min-width:44px;padding-left:8px;padding-right:8px;justify-content:center}
.sk-who-hint{margin-top:8px}
.sk-no-phi{margin:0;font-size:12px;color:#5f6662}
.sk-grid .sk-card .fk-board-thumb{position:relative;overflow:hidden;background:#fbfbfa}
.sk-thumb-img{display:block;width:100%;height:100%;object-fit:contain;padding:10px;box-sizing:border-box;-webkit-user-drag:none;user-select:none}
.fk-board-card .sk-thumb-img{display:block;width:100%;height:100%;object-fit:contain;padding:10px}
.sk-art{display:grid;place-items:center;width:100%;height:100%;color:#b8bdb7}
.sk-thumb .sk-art svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}   /* board.css strokes no svg in a thumb (the sample boards draw their own) */
.sk-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* a document's Link a board picker: the team boards first */
.sk-pick{display:grid;gap:10px}
.sk-pick-head{display:flex;align-items:center;gap:8px}
.sk-pick-ico{display:grid;place-items:center;width:20px;height:20px;color:#6f7671}
.sk-pick-ico svg{width:18px;height:18px}
.sk-pick-rows{display:grid;gap:12px}
.sk-pick+.fk-board-pick,.sk-pick+.fk-miro-pick-head,.sk-pick+div{padding-top:14px;border-top:1px solid var(--line)}
.fk-board-opt[disabled]{opacity:1;color:#1f5c3f;background:#f2f8f4;border-color:#b7dcc6;cursor:default}

/* ---------- Import from Miro: a confirm under the row (or the Miro board view), then words while it runs ---------- */
.sk-imp{grid-column:1/-1;margin:2px 0 4px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fbfbfa}
.sk-imp[hidden]{display:none}
.sk-imp-t{font-size:13px;line-height:1.55;color:var(--ink);margin:0 0 8px}
.sk-imp-t:last-child{margin-bottom:0}
.sk-imp-err{color:#a1352c}
.sk-imp .fk-actions{margin-top:10px}
.sk-imp .fk-actions :is(.primary,.text-btn){min-height:44px}
.sk-imp .fk-actions .text-btn{min-width:44px;padding-left:8px;padding-right:8px;justify-content:center}
.fk-miro-view>.fk-miro-body>.sk-imp{margin:0 0 12px}

/* ---------- the board view: its own page ---------- */
.sheet.sk-mode #view-content>.page-meta,.sheet.sk-mode #view-content>.heading,.sheet.sk-mode #view-content>.page-footer{display:none}
.sheet.sk-mode #feedback{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media(min-width:651px){.sheet.sk-mode{padding-top:18px;padding-bottom:18px}}
@media(max-width:650px){.sheet.sk-mode{min-height:0}}   /* a phone: the board view is exactly the screen's height, so the page never scrolls under a finger */
.sk-view{position:relative;display:flex;flex-direction:column;min-width:0;--sk-top:180px;--sk-below:36px}
.sk-head{display:flex;align-items:center;gap:14px;min-width:0;min-height:48px}
.sk-head .back{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:44px;padding:0 8px 0 0;margin:0;font-size:13px;color:#5f6662}
.sk-head .back svg{width:14px;height:14px;transform:rotate(180deg)}
.sk-title{display:flex;align-items:center;gap:6px;min-width:0;flex:0 1 auto;padding-left:14px;border-left:1px solid var(--line)}
.sk-name{font-size:15px;font-weight:600;letter-spacing:-.015em;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;margin:0}
.sk-who{display:flex;align-items:center;gap:4px;min-width:0;flex:0 1 auto;font-size:12px;color:var(--muted)}
.sk-who-t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sk-tb{flex:none;font-size:12px;min-height:44px;min-width:44px;padding:0 6px;justify-content:center}
.sk-save{flex:none;margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap;min-width:46px;text-align:right}
.sk-acts{display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;min-height:44px;margin:0 0 8px -6px}
.sk-act{font-size:12px;min-height:44px;padding:0 6px;color:#3d4340}

/* the stage: in normal flow, the rest of the height (sketch.js measures --sk-top, what sits above it). Inside it, in
   layers: the editor (its own UI, z-index 4 in Excalidraw, stays in that layer), the note, the dim under a panel, the
   page's say lines, and "Opening the board" over all of them until the board is drawn */
.sk-stage{position:relative;overflow:hidden;isolation:isolate;
  height:calc(100dvh - var(--sk-top) - var(--sk-below) - env(safe-area-inset-bottom));min-height:300px;
  border:1px solid var(--line);border-radius:12px;background:#fbfbfa}
@media (hover:hover) and (pointer:fine){.sk-stage{min-height:420px}}
.sk-mount{position:absolute;inset:0;z-index:0}
.sk-mount>.excalidraw{position:absolute;inset:0;width:100%;height:100%}
/* the note: over the top of the drawing, so it never moves it; Excalidraw's own top tools move down below it */
.sk-note{position:absolute;z-index:2;left:0;right:0;top:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:8px 12px;font-size:12px;line-height:1.45;color:#3d4340;background:#f7f8f6;border-bottom:1px solid var(--line)}
.sk-note[hidden]{display:none}
.sk-note p{margin:0;flex:1 1 220px;min-width:0}
.sk-note-acts{display:flex;flex-wrap:wrap;gap:8px}
.sk-note-btn{min-height:40px;font-size:12px}
.sk-stage .excalidraw .FixedSideContainer_side_top{top:calc(var(--editor-container-padding) + var(--sk-note-h,0px));transition:top .24s cubic-bezier(.32,.72,0,1)}
.sk-stage .excalidraw .selected-shape-actions .Island{max-height:calc(var(--sk-stage-h,100vh) - 166px - var(--sk-note-h,0px))!important}
/* a panel open over the stage: the stage dims under it (a tap there closes the panel) */
.sk-scrim{position:absolute;inset:0;z-index:3;background:rgba(247,248,246,.62);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);cursor:default}
.sk-scrim[hidden]{display:none}
/* what the page says while a board shows: a line over the bottom of the stage, clear of Excalidraw's bottom tools */
.sk-said{position:absolute;z-index:2;left:0;right:0;bottom:72px;width:fit-content;max-width:calc(100% - 32px);margin:0 auto;padding:10px 14px;border-radius:10px;background:#fff;
  box-shadow:0 0 0 1px #e8e9e7,0 1px 2px rgba(35,37,39,.04),0 8px 22px rgba(35,37,39,.09);font-size:13px;line-height:1.45;color:var(--ink);text-align:center;pointer-events:none}
.sk-said[hidden]{display:none}
.sk-opening{position:absolute;inset:0;z-index:4;display:grid;place-content:center;justify-items:center;gap:12px;margin:0;font-size:13px;color:var(--muted);background:#fbfbfa;text-align:center;padding:0 20px}
.sk-opening[hidden]{display:none}
.sk-opening .secondary{min-height:44px}

/* panels: over the top of the stage, never pushing it */
.sk-panel{position:absolute;z-index:4;left:0;right:auto;width:min(560px,100%);top:var(--sk-panel-top,96px);max-height:min(70vh,560px);overflow:auto;overscroll-behavior:contain;
  padding:14px 18px 18px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(35,37,39,.05),0 18px 44px rgba(35,37,39,.14)}
.sk-panel[hidden]{display:none}
.sk-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.sk-panel-title{font-size:13px;font-weight:600;letter-spacing:-.01em}
.sk-panel-x{min-height:44px;min-width:44px;font-size:12px;justify-content:center}
.sk-form{display:grid;gap:12px}
.sk-form .fk-actions{margin:0}
.sk-doclist{display:grid;gap:4px;margin-bottom:10px}
.sk-versions .fk-hint{margin:0 0 10px}
.sk-vers{display:grid}
.sk-ver{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;padding:8px 0;border-top:1px solid var(--line)}
.sk-ver-t{font-size:13px;color:var(--ink);min-width:0}
.sk-ver .text-btn{min-height:44px;font-size:12px}
.sk-ver-confirm{flex-basis:100%}
.sk-confirm .fk-confirm-text{margin-bottom:10px}
.sk-confirm-t{font-size:13px;line-height:1.55;color:var(--ink);max-width:560px;overflow-wrap:anywhere;margin:0}
.sk-held{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sk-held-t{font-size:13px}
.sk-held .secondary{min-height:44px}
.sk-gone{max-width:560px}

/* Excalidraw's chrome in the app's palette and type (its own CSS variables), the feel check's look */
.sk-stage .excalidraw{
  --ui-font:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;
  --color-primary:#2f8a63;--color-primary-darker:#277553;--color-primary-darkest:#1f5c3f;
  --color-primary-light:#e6f2eb;--color-primary-light-darker:#d5e8dc;--color-primary-hover:#287a56;
  --color-brand-hover:#287a56;--color-brand-active:#1f5c3f;--color-selection:#2f8a63;--color-promo:#2f8a63;
  --color-surface-high:#eef1ed;--color-surface-mid:#f4f5f3;--color-surface-low:#f0f2ef;--color-surface-lowest:#fff;
  --color-surface-primary-container:#e6f2eb;--color-on-primary-container:#1f5c3f;
  --color-on-surface:#232527;--text-primary-color:#232527;--icon-fill-color:#3d4340;--keybinding-color:#8b918d;
  --color-border-outline:#8b918d;--color-border-outline-variant:#cfd3ce;
  --island-bg-color:#fff;--popup-bg-color:#fff;--popup-text-color:#232527;--popup-secondary-bg-color:#f7f8f6;
  --default-bg-color:#fbfbfa;--default-border-color:#e8e9e7;--dialog-border-color:#e8e9e7;--sidebar-border-color:#e8e9e7;
  --input-bg-color:#fff;--input-border-color:#dedfdd;--input-hover-bg-color:#f7f8f6;--input-label-color:#5f6662;
  --button-hover-bg:#eef1ed;--button-active-bg:#e6f2eb;--button-active-border:#2f8a63;
  --button-gray-1:#f0f2ef;--button-gray-2:#dfe3de;--button-gray-3:#c9cec8;
  --focus-highlight-color:#b9c9bd;--link-color:#2f8a63;--select-highlight-color:#2f8a63;
  --color-slider-track:#dbe8df;--color-slider-thumb:#3d4340;
  --color-danger:#cb342b;--color-danger-dark:#cb342b;--color-danger-darker:#b02d25;--color-danger-darkest:#a1352c;
  --border-radius-md:8px;--border-radius-lg:12px;
  --shadow-island:0 0 0 1px #e8e9e7,0 1px 2px rgba(35,37,39,.04),0 8px 22px rgba(35,37,39,.07);
  --modal-shadow:0 1px 2px rgba(35,37,39,.05),0 18px 44px rgba(35,37,39,.12);
  --overlay-bg-color:rgba(251,251,250,.9)}
.sk-stage .excalidraw-tooltip{--ui-font:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;background:#232527;border-radius:8px;font-size:12px}
.sk-stage .excalidraw .Modal__background{background-color:rgba(35,37,39,.16)}
.sk-stage .excalidraw .Island{border-radius:12px}
/* hidden: the library, the AI, collaboration and Web Embed entry points (contract 21.0, 7), and the loading spinner
   (the stage says "Opening the board" in words instead) */
.sk-stage .excalidraw .default-sidebar-trigger,
.sk-stage .excalidraw .sidebar-trigger,
.sk-stage .excalidraw .collab-button,
.sk-stage .excalidraw [data-testid=toolbar-embeddable],
.sk-stage .excalidraw [data-testid=toolbar-magicframe],
.sk-stage .LoadingMessage{display:none!important}
/* its permanent grey hint line under the tools (design review 10) */
.sk-stage .excalidraw .HintViewer{display:none!important}
/* a shape's context menu taller than the stage scrolls inside it, so Delete is always in reach (design review 10) */
.sk-stage .excalidraw .context-menu{max-height:calc(var(--sk-stage-h,100vh) - 24px);overflow-y:auto;overscroll-behavior:contain}

/* ---------- tablets, 651 to 1150 px: the board view takes the sidebar's room (the real workspace only: the sample's
   shell is as it was) ----------
   Upright iPads edit (a stage of 742 px at 810 and up; minis stay view only). As the page swaps, inside its fade and
   while the page is out of sight, the sidebar's column glides to nothing and the sidebar fades out fast; the sheet's
   sides trim to 18 px. Back out, the same glide the other way, its words fading in late, as the rail's labels do. That
   glide (sk-gliding, set by sketch.js only while it runs) is short and has no long tail: 180 ms, easing in and out (at
   its fastest no quicker than the rail), so its slow start takes in the swap's own long frame, and the page shows
   under 400 ms after the tap (design re-check).
   The rail's own collapse keeps its curve. sketch.js decides edit or view only once the glide has ended */
@media(min-width:651px) and (max-width:1150px){
  html[data-fk-mode=real] .shell{transition:grid-template-columns var(--rail-dur) var(--rail-ease),column-gap var(--rail-dur) var(--rail-ease)}
  html[data-fk-mode=real] .shell>.sheet{transition:padding-left var(--rail-dur) var(--rail-ease),padding-right var(--rail-dur) var(--rail-ease)}
  html[data-fk-mode=real] .shell>.sidebar{transition:padding var(--rail-dur) var(--rail-ease),opacity .22s ease .16s,visibility 0s linear 0s}
  html[data-fk-mode=real] body.sk-board-open .shell{grid-template-columns:0 minmax(0,1fr);column-gap:0}
  html[data-fk-mode=real] body.sk-board-open .shell>.sidebar{opacity:0;visibility:hidden;overflow:hidden;padding-inline:0;pointer-events:none;
    transition:padding var(--rail-dur) var(--rail-ease),opacity .12s ease 0s,visibility 0s linear var(--rail-dur)}
  html[data-fk-mode=real] body.sk-board-open .shell>.sheet{padding-left:18px;padding-right:18px}
  html[data-fk-mode=real] body.sk-gliding .shell{transition:grid-template-columns var(--sk-glide) var(--sk-glide-ease),column-gap var(--sk-glide) var(--sk-glide-ease)}
  html[data-fk-mode=real] body.sk-gliding .shell>.sheet{transition:padding-left var(--sk-glide) var(--sk-glide-ease),padding-right var(--sk-glide) var(--sk-glide-ease)}
  html[data-fk-mode=real] body.sk-gliding .shell>.sidebar{overflow:hidden;transition:padding var(--sk-glide) var(--sk-glide-ease),opacity .1s ease .07s,visibility 0s linear 0s}
  html[data-fk-mode=real] body.sk-gliding.sk-board-open .shell>.sidebar{transition:padding var(--sk-glide) var(--sk-glide-ease),opacity .1s ease 0s,visibility 0s linear var(--sk-glide)}
}
:root{--sk-glide:.18s;--sk-glide-ease:cubic-bezier(.37,0,.63,1)}

/* ---------- a phone, 650 px and under: the feel check's two rows, and the rest of the screen for the board ----------
   Back with the status, then the name with who sees it, as words. A phone views only, so there is no Rename, Change,
   action row or Archive here (the editor's own menu keeps Save as image) */
@media(max-width:650px){
  .sk-head{flex-wrap:wrap;column-gap:10px;row-gap:0;min-height:0}
  .sk-head .back{order:0}
  .sk-save{order:1;margin-left:auto}
  .sk-head::after{content:"";order:2;flex-basis:100%;height:0}
  .sk-title{order:3;flex:0 1 auto;padding-left:0;border-left:0;min-height:30px}
  .sk-who{order:4;flex:0 1 auto;min-height:30px;font-size:13px}
  .sk-name{font-size:17px}
  .sk-head .sk-tb,.sk-acts{display:none}
  .sk-stage{margin-top:8px}
  .sk-panel{width:100%}
  .sk-note-btn{min-height:44px}
  .sk-said{bottom:84px}
}
@media (pointer:coarse){.sk-note-btn{min-height:44px}}
@media(prefers-reduced-motion:reduce){
  .sk-panel,.sk-note,html[data-fk-mode=real] :is(.shell,.shell>.sheet,.shell>.sidebar),.sk-stage .excalidraw .FixedSideContainer_side_top{transition:none!important}
}
