/* Hypha · JV partner · page 01 · #board · "You are the card" (check/HANDOVER-p01-board.md).
   Somebody else's pipeline board at reading size; their cursor drags "Your business" and the eyes ride with it; the card
   (built at reading size, shown at the board's scale) comes off toward you and turns over; it splits into three
   companies; the week becomes your calendar and the invitation never lands. Paper throughout, nothing lit.
   --u is one pixel at 1440 wide (and at 390 on the phone); --e is the unit inside a card (--U on the big card). */
#board {
  --u: clamp(0.8px, 0.0694vw, 1.3px);
  --cw: calc(352 * var(--u));
  --ch: calc(150 * var(--u));
  --gap: calc(22 * var(--u));
  --rg: calc(16 * var(--u));
  --pad: calc(24 * var(--u));
  --U: calc(var(--u) * 1480 / 352);
}
#board .art { position: absolute; inset: 0; perspective: 1500px; overflow: hidden; }
#board .art > .sheet, #board .art > .cur { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; }
#board .p1b-bd { z-index: 1; transform-origin: 50% 0; }
#board .p1b-co, #board .p1b-cal { z-index: 2; }
#board .p1b-gh, #board .p1b-rq { z-index: 3; }
#board .p1b-you { z-index: 4; width: calc(1480 * var(--u)); height: calc(1480 * 150 / 352 * var(--u)); will-change: auto; }
#board .p1b-cur { z-index: 6; }

/* ---------- somebody else's board ---------- */
#board .p1b-board { width: auto; padding-bottom: calc(520 * var(--u)); background: #f4f5f7; border-radius: 0; box-shadow: 0 0 0 1px #e2e4e8; }
#board .bd-top { gap: calc(14 * var(--u)); padding: calc(16 * var(--u)) var(--pad); border-radius: calc(12 * var(--u)) calc(12 * var(--u)) 0 0; }
#board .bd-top b { flex: none; font-size: max(16px, calc(20 * var(--u))); font-weight: 600; color: #172b4d; }
#board .bd-top .bd-v { margin-right: auto; padding: calc(4 * var(--u)) calc(12 * var(--u)); font-size: max(12px, calc(14 * var(--u))); }
#board .bd-top .ico { width: calc(20 * var(--u)); height: calc(20 * var(--u)); color: #5e6c84; }
#board .bd-cols { display: grid; grid-template-columns: repeat(5, var(--cw)); gap: 0 var(--gap); padding: calc(18 * var(--u)) var(--pad) 0; }
#board .bd-col h4 { margin: 0 calc(4 * var(--u)) calc(12 * var(--u)); font-size: max(12px, calc(13 * var(--u))); }

/* a card: tag and menu, the title, its owner's grey picture and the usual small glyphs */
#board .p1b-k { --f-app: var(--f-sys); --e: var(--u); position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; align-items: center; height: var(--ch); margin-bottom: var(--rg); padding: calc(16 * var(--e)) calc(18 * var(--e)) calc(14 * var(--e)); border-radius: calc(9 * var(--e)); background: #fff; box-shadow: 0 1px 2px rgb(9 30 66 / 0.2), 0 0 0 1px rgb(9 30 66 / 0.04); font-family: var(--f-app, var(--f-sheet)); color: #172b4d; }
#board .p1b-k .bd-t { justify-self: start; padding: calc(2 * var(--e)) calc(9 * var(--e)); border-radius: calc(5 * var(--e)); font-size: max(12px, calc(13 * var(--e))); line-height: 1.35; }
#board .p1b-k > .ico-more { width: calc(18 * var(--e)); height: calc(18 * var(--e)); color: #8590a2; }
#board .p1b-k > b { grid-column: 1 / -1; font-size: calc(21 * var(--e)); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#board .p1b-m { grid-column: 1 / -1; display: flex; align-items: center; gap: calc(12 * var(--e)); color: #8590a2; }
#board .p1b-m .av { flex: none; width: calc(28 * var(--e)); height: calc(28 * var(--e)); margin-right: calc(4 * var(--e)); }
#board .p1b-m .ico { width: calc(17 * var(--e)); height: calc(17 * var(--e)); }
#board .p1b-slot, #board .p1b-mine.is-gone { background: transparent; box-shadow: inset 0 0 0 calc(1.5 * var(--u)) #c1c7d0; }
#board .p1b-slot { outline: calc(1.5 * var(--u)) dashed #c1c7d0; outline-offset: calc(-1.5 * var(--u)); box-shadow: none; }
#board .p1b-mine.is-gone { outline: calc(1.5 * var(--u)) dashed #c1c7d0; outline-offset: calc(-1.5 * var(--u)); box-shadow: none; }
#board .p1b-mine.is-gone > * { visibility: hidden; }

/* ---------- the card at reading size: its front (the board's card, scaled up) and its blank back ---------- */
#board .p1b-face { width: 100%; height: 100%; }
#board .p1b-front { --e: var(--U); height: 100%; margin: 0; }
#board .p1b-back { display: flex; align-items: center; padding: 0 calc(170 * var(--u)); border-radius: calc(9 * var(--U)); background: #fff; box-shadow: 0 0 0 1px rgb(9 30 66 / 0.06); }
#board .p1b-back .cap { position: relative; left: auto; top: auto; width: auto; max-width: calc(1100 * var(--u)); }
#board .p1b-know { font-family: var(--f-body); font-weight: 500; font-size: clamp(28px, 3.05vw, 54px); line-height: 1.2; letter-spacing: -0.015em; color: #1b1f22; }
#board .p1b-know [data-line] + [data-line] { margin-top: 0.55em; }

/* somebody else's cursor: grey, a role on its flag, never a name */
#board .p1b-cur { width: 22px; height: 27px; transform-origin: 0 0; }
#board .p1b-cur svg { display: block; width: 100%; height: 100%; fill: var(--c); stroke: #fff; stroke-width: 1.3; overflow: visible; }
#board .p1b-flag { --f-app: var(--f-sys); position: absolute; left: 18px; top: 25px; padding: 3px 9px 4px; border-radius: 3px 9px 9px 9px; background: var(--c); color: #fff; font: 600 13px/1.3 var(--f-app, var(--f-sheet)); letter-spacing: 0.01em; white-space: nowrap; }

/* ---------- Hypha's voice, placed per shot ---------- */
#board .caps .cap { position: absolute; }
#board .p1b-hd { left: 6vw; top: calc(9 * var(--sv)); width: min(80vw, 1240px); }
#board .p1b-v { left: calc(10vw + 820 * var(--u)); right: 5vw; top: calc(36 * var(--sv)); width: auto; }
#board .p1b-three { left: 6vw; right: 6vw; top: calc(9 * var(--sv)); }
#board .p1b-none { left: 6vw; right: 6vw; top: calc(7 * var(--sv)); }
#board .p1b-none .vo-xl { font-size: clamp(34px, 3.5vw, 60px); line-height: 1.06; }

@media (max-width: 899px) {
  #board { --u: calc(100vw / 390); --cw: calc(250 * var(--u)); --ch: calc(196 * var(--u)); --gap: calc(12 * var(--u)); --rg: calc(12 * var(--u)); --pad: calc(14 * var(--u)); --U: calc(var(--u) * 404 / 250); }
  #board .art { perspective: 1100px; }
  #board .p1b-c3 { display: none; }
  #board .bd-cols { grid-template-columns: repeat(4, var(--cw)); }
  #board .p1b-k > b { font-size: calc(20 * var(--e)); }
  #board .p1b-you { width: calc(404 * var(--u)); height: calc(404 * 196 / 250 * var(--u)); }
  #board .p1b-back { padding: 0 calc(32 * var(--u)); }
  #board .p1b-know { font-size: 20.5px; line-height: 1.3; letter-spacing: -0.01em; }
  #board .p1b-know [data-line] + [data-line] { margin-top: 0.42em; }
  #board .p1b-hd { left: 16px; right: 16px; width: auto; top: calc(8 * var(--sv)); }
  #board .p1b-v { left: 16px; right: 16px; width: auto; top: auto; bottom: calc(8 * var(--sv)); }
  #board .p1b-three, #board .p1b-none { left: 16px; right: 16px; top: calc(7 * var(--sv)); }
  #board .p1b-none .vo-xl { font-size: clamp(26px, 7vw, 32px); }
}

/* ---------- S3 three companies: each paper at reading size; a blank piece of your card until its line arrives ---------- */
#board { --pw: calc(820 * var(--u)); --ph: calc(1040 * var(--u)); }
#board .p1b-co { width: var(--pw); height: var(--ph); will-change: auto; }
#board .p1b-co > article, #board .p1b-fan { --f-app: var(--f-sys); position: relative; width: 100%; height: 100%; font-family: var(--f-app, var(--f-sheet)); color: #1f1f1f; }
#board .p1b-blank { position: absolute; inset: 0; z-index: 3; border-radius: calc(10 * var(--u)); background: #fff; box-shadow: 0 0 0 1px rgb(9 30 66 / 0.06); }
#board .p1b-rt { padding: calc(40 * var(--u)); border-radius: calc(10 * var(--u)); }
#board .rt-top { display: flex; align-items: center; gap: calc(14 * var(--u)); margin-bottom: calc(28 * var(--u)); }
#board .rt-top .ico { width: calc(30 * var(--u)); height: calc(30 * var(--u)); color: #5f6368; }
#board .rt-top b { flex: 1; font-size: calc(30 * var(--u)); font-weight: 600; }
#board .rt-wk { padding: calc(5 * var(--u)) calc(14 * var(--u)); border: 1px solid #dadce0; border-radius: calc(7 * var(--u)); font-size: calc(24 * var(--u)); color: #3c4043; }
#board .rt-g { display: grid; grid-template-columns: calc(130 * var(--u)) repeat(5, 1fr); grid-template-rows: calc(48 * var(--u)); grid-auto-rows: calc(176 * var(--u)); gap: calc(8 * var(--u)); }
/* while the rota fills the frame (its top at max(40px, 7% of the window), js/p01-board.js car) its four rows end above the
   window's foot: a short window shortens the rows (194u = padding, header, day row and gaps), never the words */
#board .rt-g { grid-auto-rows: clamp(calc(64 * var(--u)), calc((var(--stage-h) - max(40px, 0.07 * var(--stage-h)) - 194 * var(--u) - 32px) / 4), calc(176 * var(--u))); }
#board .rt-c, #board .rt-d { align-self: end; font-size: calc(24 * var(--u)); color: #5f6368; text-align: center; white-space: nowrap; }
#board .rt-r { align-self: center; font-size: calc(24 * var(--u)); font-weight: 600; color: #3c4043; }
#board .rt-g > span[class^="ev-"] { padding: calc(12 * var(--u)) calc(8 * var(--u)); border-left: calc(4 * var(--u)) solid var(--ec); border-radius: calc(6 * var(--u)); background: var(--ef); color: var(--et); font-size: calc(20 * var(--u)); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#board .p1b-ml { position: absolute; left: calc(var(--i) * 14 * var(--u)); top: calc(var(--i) * 160 * var(--u)); width: calc(100% - 56 * var(--u)); height: calc(400 * var(--u)); padding: calc(20 * var(--u)) calc(34 * var(--u)); border-radius: calc(10 * var(--u)); box-shadow: 0 1px 3px rgb(60 64 67 / 0.2), 0 0 0 1px rgb(60 64 67 / 0.06); rotate: calc((var(--i) - 2) * 0.6deg); }
#board .p1b-ml:nth-of-type(1) { --i: 0; } #board .p1b-ml:nth-of-type(2) { --i: 1; } #board .p1b-ml:nth-of-type(3) { --i: 2; } #board .p1b-ml:nth-of-type(4) { --i: 3; } #board .p1b-ml:nth-of-type(5) { --i: 4; }
#board .p1b-ml header { display: flex; align-items: center; gap: calc(10 * var(--u)); margin-bottom: calc(8 * var(--u)); font-size: calc(24 * var(--u)); color: #5f6368; }
#board .p1b-ml header .ico { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
#board .p1b-ml header b { font-weight: 500; }
#board .p1b-ml p { display: flex; gap: calc(12 * var(--u)); align-items: baseline; margin: 0 0 calc(8 * var(--u)); font-size: calc(26 * var(--u)); line-height: 1.3; }
#board .p1b-ml p span { color: #5f6368; font-size: calc(24 * var(--u)); }
#board .p1b-ml .ml-su { font-size: calc(30 * var(--u)); font-weight: 600; }
#board .p1b-fo { padding-top: calc(66 * var(--u)); background: transparent; }
#board .fo-tabs { position: absolute; left: 0; top: 0; display: flex; gap: calc(6 * var(--u)); }
#board .fo-tabs span { padding: calc(14 * var(--u)) calc(26 * var(--u)) calc(22 * var(--u)); border-radius: calc(12 * var(--u)) calc(12 * var(--u)) 0 0; background: #dfe3e8; font-size: calc(26 * var(--u)); font-weight: 600; color: #3c4043; white-space: nowrap; }
#board .fo-tabs .is-on { background: #e9ecef; color: #1f1f1f; }
#board .fo-in { position: relative; height: 100%; padding: calc(36 * var(--u)); border-radius: 0 calc(12 * var(--u)) calc(12 * var(--u)) calc(12 * var(--u)); background: #e9ecef; }
#board .fo-in header { display: flex; justify-content: flex-end; margin-bottom: calc(24 * var(--u)); }
#board .fo-in header b { display: none; }
#board .fo-in header .ico { width: calc(34 * var(--u)); height: calc(34 * var(--u)); color: #5f6368; }
#board .fo-av { display: grid; grid-template-columns: repeat(5, 1fr); gap: calc(26 * var(--u)); padding: calc(34 * var(--u)); border-radius: calc(10 * var(--u)); background: #fff; }
#board .fo-av .av { width: 100%; height: auto; aspect-ratio: 1; }
@media (max-width: 899px) {
  #board { --pw: calc(404 * var(--u)); --ph: calc(520 * var(--u)); }
  #board .p1b-rt { padding: 18px 16px; }
  #board .rt-top { gap: 8px; margin-bottom: 12px; }
  #board .rt-top .ico { width: 20px; height: 20px; }
  #board .rt-top b { font-size: 18px; }
  #board .rt-wk { padding: 3px 8px; font-size: 13px; }
  #board .rt-g { grid-auto-flow: column; grid-template-columns: 46px; grid-auto-columns: 1fr; grid-template-rows: 26px repeat(5, 76px); grid-auto-rows: auto; gap: 4px; }
  #board .rt-c, #board .rt-d { align-self: center; font-size: 12px; text-align: left; }
  #board .rt-r { align-self: end; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #board .rt-g > span[class^="ev-"] { padding: 6px 4px; border-left-width: 3px; font-size: 13.5px; line-height: 1.2; white-space: normal; }
  #board .p1b-ml { left: calc(var(--i) * 6px); top: calc(var(--i) * 86px); width: calc(100% - 24px); height: 176px; padding: 12px 16px; rotate: calc((var(--i) - 2) * 0.3deg); }
  #board .p1b-ml header { gap: 6px; margin-bottom: 4px; font-size: 13px; }
  #board .p1b-ml header .ico { width: 15px; height: 15px; }
  #board .p1b-ml p { gap: 8px; margin-bottom: 4px; font-size: 15px; }
  #board .p1b-ml p span { font-size: 13px; }
  #board .p1b-ml .ml-su { font-size: 16px; }
  #board .p1b-fo { padding-top: 42px; }
  #board .fo-tabs { left: 12px; gap: 3px; }
  #board .fo-tabs span { padding: 9px 10px 14px; font-size: 14.5px; }
  #board .fo-in { padding: 16px; }
  #board .fo-in header { margin-bottom: 12px; }
  #board .fo-in header .ico { width: 22px; height: 22px; }
  #board .fo-av { grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 16px; }
}

/* ---------- S5 your own week under the line; the invitation that never lands; two requests waiting at the edge ---------- */
#board { --kw: calc(88vw - 300px); --khw: 64px; --krh: clamp(44px, calc((calc(100 * var(--sv)) - 380px) / 8), 84px); }
#board .p1b-cal { will-change: auto; }
#board .p1b-cl { --w: var(--kw); --hw: var(--khw); --rh: var(--krh); padding-bottom: calc(30 * var(--sv)); background: #fff; }
#board .p1b-cl .cl-top { gap: 14px; padding: 16px 22px; }
#board .p1b-cl .cl-top .ico { width: 24px; height: 24px; }
#board .p1b-cl .cl-m { font-size: 21px; }
#board .p1b-cl .cl-view { padding: 4px 12px; font-size: 15px; }
#board .p1b-cl .cl-days { padding: 10px 0 8px; font-size: 15px; }
#board .p1b-cl .cl-hours span { padding: 5px 10px 0 0; font-size: 13px; }
#board .p1b-cl .cl-ev { padding: 6px 9px; border-left-width: 4px; font-size: 16px; }
#board .p1b-gh { width: calc((var(--kw) - var(--khw)) / 5 * 1.25); height: calc(var(--krh) * 1.9); }
#board .p1b-inv { --f-app: var(--f-sys); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; border: 1.5px dashed #9aa0a6; border-radius: 8px; background: #fff; color: #5f6368; font-family: var(--f-app, var(--f-sheet)); }
#board .p1b-inv .ico { width: 22px; height: 22px; }
#board .p1b-inv b { font-size: 17px; font-weight: 600; }
#board .p1b-rq .req { width: 270px; gap: 14px; padding: 14px 16px; }
#board .p1b-rq .req > .ico { width: 24px; height: 24px; }
#board .p1b-rq .req p { margin: 0; font-size: 16px; }
#board .p1b-rq .req span { font-size: 14px; }
@media (max-width: 899px) {
  #board { --kw: 100vw; --khw: 26px; --krh: clamp(35px, calc((calc(100 * var(--sv)) - 480px) / 8), 50px); }
  #board .p1b-cl { padding-bottom: 6px; border-radius: 0; }
  #board .p1b-cl .cl-top { gap: 8px; padding: 9px 12px; }
  #board .p1b-cl .cl-top .ico { width: 18px; height: 18px; }
  #board .p1b-cl .cl-m { font-size: 15px; }
  #board .p1b-cl .cl-view { padding: 2px 8px; font-size: 12px; }
  #board .p1b-cl .cl-days { padding: 6px 0 5px; font-size: 12px; }
  #board .p1b-cl .cl-hours span { padding: 3px 4px 0 0; font-size: 12px; }
  #board .p1b-cl .cl-ev { padding: 3px 4px; border-left-width: 2px; font-size: 12px; }
  #board .p1b-inv { gap: 4px; }
  #board .p1b-inv .ico { width: 16px; height: 16px; }
  #board .p1b-inv b { font-size: 12.5px; }
  #board .p1b-rq .req { width: calc(50vw - 20px); gap: 8px; padding: 10px; }
  #board .p1b-rq .req > .ico { width: 18px; height: 18px; }
  #board .p1b-rq .req p { font-size: 13px; }
  #board .p1b-rq .req span { font-size: 12.5px; }
}
#board .p1b-five > .sh, #board .p1b-fold > .sh { display: none; }
