/* The visitor's own tools. They look like the real things (generic, no product logos),
   in their own type and colours. Hypha's look never paints over them. */

.win {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgb(16 24 20 / 0.07),
    0 2px 4px rgb(16 24 20 / 0.05),
    0 18px 48px rgb(16 24 20 / 0.13),
    0 48px 120px rgb(16 24 20 / 0.10);
  contain: layout paint;
}

/* =================== SPREADSHEET =================== */

.sheet {
  --rh: 26px;
  font-family: var(--f-sheet);
  color: #202124;
  background: #f9fbfd;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.sheet svg { width: 20px; height: 20px; flex: none; }

.sh-app {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 2px 12px;
  height: 60px;
  flex: none;
  font-family: var(--f-app);
}
.sh-logo svg { width: 34px; height: 34px; }
.sh-doc { min-width: 0; }
.sh-title { display: flex; align-items: center; gap: 6px; font-size: 17px; color: #1f1f1f; line-height: 1.2; }
.sh-name { white-space: nowrap; }
.sh-ico { display: inline-flex; opacity: 0.85; }
.sh-ico svg { width: 18px; height: 18px; }
.sh-menus { display: flex; gap: 0; font-size: 13.5px; color: #1f1f1f; margin-top: 2px; white-space: nowrap; }
.sh-menus span { padding: 2px 6px; border-radius: 4px; }
.sh-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.sh-right .sh-ico svg { width: 21px; height: 21px; }
.sh-share {
  display: inline-flex; align-items: center; gap: 7px;
  background: #c2e7ff; color: #001d35;
  border-radius: 999px; padding: 9px 18px 9px 14px;
  font-size: 14px; font-weight: 500;
}
.sh-lock svg { width: 15px; height: 15px; color: #001d35; }
.sh-me {
  width: 32px; height: 32px; border-radius: 50%;
  background: #5c6bc0; color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 500;
}
.sh-mobile { display: none; }
/* 2026-11-02 founder walk: on a narrow window the clock and comment icons sat on top of "Extensions" and "Help" (the
   menus have no room to give, and in a 3D-tilted screen text draws a few % wider than its box). The menu words never
   move: as the bar narrows the right-hand extras step out, least needed first, each step keeping ~21 px (5% of the
   menus) of air after "Help". Thresholds are the bar's content width: icons 685, then 615, 562, 540 px of need. */
.sheet:not(.is-phone) .sh-app { container-type: inline-size; }
@container (max-width: 706px) { .sh-right > .sh-ico { display: none; } }
@container (max-width: 636px) {
  .sh-me { display: none; }
  .sh-share { padding-left: 11px; padding-right: 14px; }
}
@container (max-width: 584px) { .sh-lock { display: none; } }
@container (max-width: 561px) { .sh-logo { display: none; } }

.sh-tools {
  flex: none;
  margin: 2px 10px 7px;
  height: 38px;
  border-radius: 999px;
  background: #edf2fa;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 12px;
  overflow: hidden;
  white-space: nowrap;
}
.sh-tools svg { width: 19px; height: 19px; margin: 0 3px; }
.sh-tx { font-size: 13px; color: #444746; padding: 0 5px; display: inline-flex; align-items: center; gap: 4px; }
.sh-tx i { width: 0; height: 0; border: 4px solid transparent; border-top: 5px solid #444746; margin-top: 4px; }
.sh-font { min-width: 74px; justify-content: space-between; }
.sh-size b { font-weight: 400; border: 1px solid #747775; border-radius: 4px; padding: 1px 6px; }
.sh-tools .sh-pm { width: 16px; height: 16px; margin: 0 2px; }
.sh-tsep { width: 1px; height: 20px; background: #c7c7c7; margin: 0 5px; flex: none; }

.sh-fbar {
  flex: none;
  display: flex;
  align-items: center;
  height: 30px;
  background: #fff;
  border-top: 1px solid #e1e3e1;
  font-size: 13px;
}
.sh-ref {
  width: 96px;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid #e1e3e1;
  color: #1f1f1f;
}
.sh-fx { width: 40px; text-align: center; color: #9aa0a6; border-right: 1px solid #e1e3e1; height: 100%; display: grid; place-items: center; }
.sh-fx i { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 14px; }
.sh-fval { flex: 1; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1f1f1f; }

.sh-body {
  flex: 1;
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: 24px 1fr;
  background: #fff;
  border-top: 1px solid #c7c7c7;
}
.sh-corner {
  grid-column: 1; grid-row: 1;
  background: #f8f9fa;
  border-right: 1px solid #c7c7c7;
  border-bottom: 1px solid #c7c7c7;
  z-index: 3;
}
.sh-rncol {
  grid-column: 1; grid-row: 2;
  position: relative;
  background: #f8f9fa;
  border-right: 1px solid #c7c7c7;
  overflow: hidden;
  z-index: 3;
}
.sh-rn {
  position: absolute; left: 0; right: 0; top: 0;
  height: var(--rh);
  display: grid; place-items: center;
  font-size: 11px; color: #5f6368;
  border-bottom: 1px solid #e1e1e1;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.sh-rn.is-sel { background: #d3e3fd; color: #0b57d0; font-weight: 700; }
.sh-pane { grid-column: 2; grid-row: 1 / span 2; position: relative; overflow: hidden; }
.sh-inner { position: absolute; left: 0; top: 0; min-width: 100%; transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
.sh-colhead {
  display: grid;
  grid-template-columns: var(--cols) 400px;
  height: 24px;
  background: #f8f9fa;
  border-bottom: 1px solid #c7c7c7;
}
.sh-ch {
  display: grid; place-items: center;
  font-size: 11px; color: #5f6368;
  border-right: 1px solid #e1e1e1;
}
.sh-ch.is-sel { background: #d3e3fd; color: #0b57d0; font-weight: 700; }
.sh-cells { position: relative; height: 2000px; background-image: linear-gradient(#e1e1e1 1px, transparent 1px); background-size: 100% var(--rh); background-position: 0 calc(var(--rh) - 1px); }
.sh-row {
  position: absolute; left: 0; top: 0;
  display: grid;
  grid-template-columns: var(--cols) 400px;
  height: var(--rh);
  background: #fff;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.sh-c {
  border-right: 1px solid #e1e1e1;
  border-bottom: 1px solid #e1e1e1;
  padding: 0 6px;
  font-size: 13px;
  line-height: calc(var(--rh) - 1px);
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}
.sh-c.is-head { font-weight: 700; }
.sh-c.is-right { text-align: right; }
.sh-c.is-muted { color: #5f6368; }
.sh-c .caret { display: inline-block; width: 1px; height: 15px; background: #1f1f1f; vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.sh-sel {
  position: absolute; left: 0; top: 0;
  border: 2px solid #1a73e8;
  pointer-events: none;
  z-index: 4;
  transition: transform 0.22s cubic-bezier(.2,.7,.2,1), width 0.22s, height 0.22s, opacity 0.2s;
}
.sh-handle { position: absolute; right: -4px; bottom: -4px; width: 7px; height: 7px; background: #1a73e8; border: 1px solid #fff; }

.sh-tabs {
  flex: none;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  background: #f9fbfd;
  border-top: 1px solid #e1e3e1;
  font-family: var(--f-app);
  font-size: 13.5px;
  overflow: hidden;
  white-space: nowrap;
}
.sh-tico { display: inline-flex; padding: 4px 6px; }
.sh-tico svg { width: 19px; height: 19px; }
.sh-tab {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 6px 8px 6px 14px;
  color: #444746;
  border-radius: 8px 8px 0 0;
}
.sh-tab.is-on { background: #e1e9f7; color: #0b57d0; font-weight: 500; }
.sh-tcaret { width: 18px !important; height: 18px !important; color: currentColor; }

/* dropdown chips */
.sh-chip {
  display: inline-flex; align-items: center; gap: 1px;
  height: 20px; line-height: 20px;
  padding: 0 3px 0 9px;
  border-radius: 999px;
  font-size: 12px;
  vertical-align: middle;
  white-space: nowrap;
}
.sh-chip svg { width: 15px !important; height: 15px !important; opacity: 0.8; }
.sh-chip--done { background: #d4edbc; color: #11734b; }
.sh-chip--todo { background: #e8eaed; color: #3c4043; }
.sh-chip--prog { background: #c6dbe1; color: #215a6c; }
.sh-chip--wait { background: #ffe5a0; color: #473821; }
.sh-chip--empty { background: #fff; color: #80868b; box-shadow: inset 0 0 0 1px #c4c7c5; }

/* a range someone else protected */
.sh-c.is-locked {
  background: repeating-linear-gradient(135deg, #f1f3f4 0 6px, #e4e7ea 6px 12px);
  color: #5f6368;
}
.sh-ch .sh-chlock { display: inline-flex; vertical-align: -3px; margin-left: 4px; color: #5f6368; }
.sh-ch .sh-chlock svg { width: 12px; height: 12px; }
/* the lock in a protected cell keeps to the cell's one line (unsized, its icon grew the cell past its row: "Scope" cut) */
.sh-c .sh-chlock { display: inline-flex; vertical-align: -1px; margin-left: 4px; color: #5f6368; line-height: 1; }
.sh-c .sh-chlock svg { width: 12px; height: 12px; }
/* the keep (fix round 2026-10-26): a cell partly under a box laid over the sheet hides its words, keeps its fill and lines */
.sh-c.is-under, .sh-rn.is-under { visibility: hidden; }
.sh-c.is-under::after {
  content: ""; position: absolute; inset: 0; visibility: visible;
  background: inherit; border-right: 1px solid #e1e1e1; border-bottom: 1px solid #e1e1e1;
}

.sh-tip {
  position: absolute;
  z-index: 8;
  background: #202124;
  color: #fff;
  font-family: var(--f-app);
  font-size: 12.5px;
  line-height: 1.35;
  padding: 8px 11px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.25);
  white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
  opacity: 0;
  pointer-events: none;
}
.sh-tip svg { width: 13px; height: 13px; color: #fdd663; }

/* right-click menu */
.sh-menu {
  position: absolute;
  z-index: 9;
  width: 232px;
  background: #fff;
  border-radius: 6px;
  padding: 6px 0;
  font-family: var(--f-app);
  font-size: 13.5px;
  color: #1f1f1f;
  box-shadow: 0 2px 6px rgb(60 64 67 / 0.3), 0 8px 24px rgb(60 64 67 / 0.25);
  opacity: 0;
  transform-origin: 0 0;
  pointer-events: none;
}
.sh-mi-row { display: flex; align-items: center; gap: 12px; padding: 6px 16px; }
.sh-mi-row kbd { margin-left: auto; font: inherit; color: #5f6368; font-size: 12px; }
.sh-mi-row i { width: 16px; height: 16px; flex: none; display: inline-flex; }
.sh-mi-row i svg { width: 16px; height: 16px; }
.sh-mi-row.is-hot { background: #e8eaed; }
.sh-mi-sep { height: 1px; background: #e1e3e1; margin: 6px 0; }

.sh-row.is-new { z-index: 2; }
.sh-row.is-new .sh-c { background: transparent; }
.sh-glow {
  position: absolute; left: 0; top: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}
.sh-cmark { position: absolute; right: 0; top: 0; width: 0; height: 0; border-top: 9px solid #f9ab00; border-left: 9px solid transparent; }

/* phone: the sheet becomes the phone app */
.sheet.is-phone .sh-app { height: 52px; padding: 4px 4px 0 2px; }
.sheet.is-phone .sh-logo,
.sheet.is-phone .sh-doc,
.sheet.is-phone .sh-right { display: none; }
.sheet.is-phone .sh-mobile { display: flex; align-items: center; width: 100%; gap: 2px; }
.sheet.is-phone .sh-mobile .sh-ico { padding: 8px; }
.sheet.is-phone .sh-mobile .sh-ico svg { width: 22px; height: 22px; }
.sheet.is-phone .sh-mname { font-size: 17px; color: #1f1f1f; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet.is-phone .sh-mi { padding: 8px 7px; display: inline-flex; }
.sheet.is-phone .sh-mi svg { width: 21px; height: 21px; }
.sheet.is-phone .sh-tools { display: none; }
.sheet.is-phone .sh-ref { width: 54px; }
.sheet.is-phone .sh-fx { width: 32px; }
.sheet.is-phone .sh-body { grid-template-columns: 34px 1fr; }
.sheet.is-phone .sh-c { font-size: 13px; padding: 0 5px; }
.sheet.is-phone .sh-tabs { height: 44px; }

/* =================== CALENDAR =================== */

.cal {
  font-family: var(--f-app);
  color: #3c4043;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-radius: 0;
}
.cal svg { flex: none; }
.cal-top {
  flex: none;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px 0 14px;
  border-bottom: 1px solid #dadce0;
  white-space: nowrap;
}
.cal-burger svg { width: 24px; height: 24px; margin: 0 6px; }
.cal-glyph { position: relative; width: 38px; height: 38px; display: inline-block; }
.cal-glyph svg { width: 38px; height: 38px; }
.cal-glyph b { position: absolute; left: 0; right: 0; top: 15px; text-align: center; font-size: 12px; color: #5f6b7a; font-weight: 700; }
.cal-app { font-size: 21px; color: #3c4043; margin-right: 30px; }
.cal-todaybtn { border: 1px solid #747775; border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 500; color: #1f1f1f; }
.cal-arrows { display: inline-flex; gap: 8px; margin: 0 4px; }
.cal-arrows svg { width: 22px; height: 22px; }
.cal-month { font-size: 22px; color: #1f1f1f; }
.cal-right { margin-left: auto; display: inline-flex; align-items: center; gap: 18px; }
.cal-right > svg { width: 22px; height: 22px; }
.cal-view { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #747775; border-radius: 999px; padding: 7px 10px 7px 16px; font-size: 14px; font-weight: 500; color: #1f1f1f; }
.cal-view svg { width: 18px; height: 18px; }

.cal-head {
  flex: none;
  display: grid;
  grid-template-columns: 70px repeat(7, 1fr);
  padding-top: 10px;
  border-bottom: 1px solid #dadce0;
}
.cal-tz { font-size: 10px; color: #70757a; align-self: end; padding: 0 0 8px 12px; }
.cal-dh { display: flex; flex-direction: column; align-items: center; gap: 3px; padding-bottom: 10px; }
.cal-dn { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; color: #70757a; }
.cal-dd {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 25px; color: #3c4043;
  /* Monday's date, lit as a door when the scroll is about to go through it */
  background: rgb(11 87 208 / calc(var(--door, 0) * 0.12));
  box-shadow: 0 0 0 calc(var(--door, 0) * 2.5px) rgb(11 87 208 / calc(var(--door, 0) * 0.95));
}
.cal-dd b { font-weight: 400; }
.cal-dh.is-today .cal-dn { color: #0b57d0; }
.cal-dh.is-today .cal-dd { background: #0b57d0; color: #fff; }

.cal-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 70px 1fr; position: relative; }
.cal-hours { display: grid; grid-template-rows: repeat(11, 1fr); }
.cal-hr { font-size: 10px; color: #70757a; text-align: right; padding-right: 10px; transform: translateY(-7px); }
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-image: linear-gradient(to bottom, #e3e5e8 1px, transparent 1px);
  background-size: 100% calc(100% / 11);
}
.cal-col { position: relative; border-left: 1px solid #dadce0; }
.cal-col.is-weekend { background: #fafbfc; }
.cal-ev {
  position: absolute; left: 2px; right: 8px;
  border-radius: 6px;
  padding: 4px 7px;
  color: #fff;
  font-size: 12.5px;
  line-height: 1.25;
  overflow: hidden;
  opacity: 0;
  box-shadow: 0 0 0 1px #fff;
}
/* the title wraps at spaces, never mid-word and never with an ellipsis; calendar.js fit() shrinks a title its box can't hold */
.cal-ev b { display: block; font-weight: 500; overflow: hidden; overflow-wrap: normal; word-break: normal; }
.cal-ev .nw { white-space: nowrap; }
.cal-ev > span { display: block; font-size: 11.5px; opacity: 0.92; white-space: nowrap; }
.cal-ev.is-small { padding: 2px 7px; font-size: 11px; line-height: 1.3; }
.cal-ev.is-small > span { display: none; }
/* a box too short for title and time keeps the title (calendar.js fit) */
.cal-ev.is-tight { padding-top: 2px; padding-bottom: 2px; line-height: 1.12; }
.cal-ev.is-tight > span { display: none; }
.cal-ev--peacock { background: #039be5; }
.cal-ev--lavender { background: #7986cb; }
.cal-ev--graphite { background: #616161; }
.cal-ev--grape { background: #8e24aa; }
.cal-ev--sage { background: #33b679; }
.cal-ev--tangerine { background: #f4511e; }
.cal-ev--banana { background: #f6bf26; color: #3b2f00; }
.cal-now { position: absolute; left: -1px; right: 0; height: 2px; background: #ea4335; z-index: 3; }
.cal-now i { position: absolute; left: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: #ea4335; }

.cal.is-phone .cal-top { height: 50px; gap: 6px; padding: 0 8px 0 4px; }
.cal.is-phone .cal-app,
.cal.is-phone .cal-arrows,
.cal.is-phone .cal-glyph,
.cal.is-phone .cal-right > svg { display: none; }
.cal.is-phone .cal-todaybtn { order: 3; padding: 6px 12px; font-size: 13px; margin-left: auto; }
.cal.is-phone .cal-month { font-size: 19px; }
.cal.is-phone .cal-right { margin-left: 8px; }
.cal.is-phone .cal-view { padding: 5px 6px 5px 10px; font-size: 13px; }
/* a window narrower than a full screen shows the work week (weekends hidden, as the app's own setting does),
   so every event label stays legible */
.cal.is-workweek .cal-head { grid-template-columns: 70px repeat(5, 1fr); }
.cal.is-workweek .cal-dh.is-weekend,
.cal.is-workweek .cal-col.is-weekend { display: none; }
.cal.is-workweek .cal-days { grid-template-columns: repeat(5, 1fr); }
.cal.is-phone .cal-head { grid-template-columns: 36px repeat(5, 1fr); padding-top: 6px; }
/* the time-zone cell stays in the grid (invisible), so each day's name sits over its own column */
.cal.is-phone .cal-tz { visibility: hidden; }
.cal.is-phone .cal-dn { font-size: 10.5px; letter-spacing: 0.04em; }
.cal.is-phone .cal-dd { width: 32px; height: 32px; font-size: 17px; }
.cal.is-phone .cal-dh { padding-bottom: 6px; gap: 2px; }
/* a phone calendar keeps hours tall enough to read and shows the morning first, as the app does before you scroll */
.cal.is-phone .cal-grid { grid-template-columns: 36px 1fr; grid-template-rows: max(100%, 330px); overflow: hidden; }
.cal.is-phone .cal-hr { font-size: 9px; padding-right: 5px; }
.cal.is-phone .cal-ev { left: 1px; right: 3px; padding: 3px 4px; font-size: 10.5px; border-radius: 4px; }
.cal.is-phone .cal-ev b { white-space: normal; line-height: 1.15; }
.cal.is-phone .cal-ev > span { display: none; }
.cal.is-phone .cal-ev.is-tight { padding: 2px 3px; }
.cal.is-phone .cal-ev.is-tight b { line-height: 1.1; }

/* shared bits */
.av { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px; flex: none; }
.caret { display: inline-block; width: 1.5px; height: 1.05em; background: currentColor; vertical-align: -0.15em; margin-left: 1px; animation: blink 1s steps(1) infinite; }

/* =================== INBOX =================== */
.inbox {
  font-family: var(--f-app);
  background: #f6f8fc;
  color: #1f1f1f;
  display: grid;
  grid-template-columns: 64px 1fr;
  height: 100%;
}
.inbox svg { width: 20px; height: 20px; }
.ib-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 12px; }
.ib-compose { width: 46px; height: 46px; border-radius: 14px; background: #c2e7ff; display: grid; place-items: center; color: #001d35; margin-bottom: 10px; }
.ib-ri { position: relative; width: 40px; height: 32px; border-radius: 999px; display: grid; place-items: center; color: #444746; }
.ib-ri.is-on { background: #d3e3fd; color: #041e49; }
.ib-count { position: absolute; left: 26px; top: -5px; background: #b3261e; color: #fff; font-size: 10px; font-weight: 600; border-radius: 999px; padding: 1px 5px; }
.ib-main { background: #fff; border-radius: 14px 0 0 0; margin-top: 8px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.ib-top { padding: 10px 14px 6px; }
.ib-search { display: flex; align-items: center; gap: 10px; background: #e9eef6; border-radius: 999px; height: 40px; padding: 0 14px; color: #444746; font-size: 14px; }
.ib-search span { flex: 1; }
.ib-bar { display: flex; border-bottom: 1px solid #eceff1; padding: 0 8px; }
.ib-tab { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; color: #444746; white-space: nowrap; }
.ib-tab b { font-weight: 500; font-size: 10.5px; background: #e8eaed; color: #3c4043; border-radius: 999px; padding: 1px 6px; }
.ib-tab.is-on { color: #0b57d0; box-shadow: inset 0 -3px 0 #0b57d0; font-weight: 500; }
.ib-tab.is-on svg { color: #0b57d0; width: 18px; height: 18px; }
.ib-list { flex: 1; overflow: hidden; }
.ib-row {
  display: grid;
  grid-template-columns: 28px 26px 150px 1fr auto;
  align-items: center;
  height: 40px;
  padding: 0 14px 0 8px;
  border-bottom: 1px solid #f1f3f4;
  font-size: 13.5px;
  color: #444746;
  background: #f2f6fc;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), opacity 0.45s, background 1.2s;
}
.ib-row.is-unread { background: #fff; color: #1f1f1f; }
.ib-row.is-unread .ib-from, .ib-row.is-unread .ib-text b, .ib-row.is-unread .ib-time { font-weight: 700; }
.ib-row.is-in { transform: translateY(-40px); opacity: 0; background: #fef7e0; }
.ib-chk, .ib-star { color: #c4c7c5; display: grid; place-items: center; }
.ib-chk svg, .ib-star svg { width: 17px; height: 17px; }
.ib-from { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.ib-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ib-text b { font-weight: 400; color: #1f1f1f; }
.ib-text span { color: #5f6368; font-weight: 400; }
.ib-time { font-size: 12px; padding-left: 12px; white-space: nowrap; }
.ib-compose-win {
  position: absolute;
  right: 18px; bottom: 0;
  width: 300px;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.22), 0 0 0 1px rgb(0 0 0 / 0.05);
  font-size: 13px;
  overflow: hidden;
}
.ib-cw-top { display: flex; justify-content: space-between; align-items: center; background: #f2f6fc; padding: 9px 12px; font-weight: 500; font-size: 13.5px; }
.ib-cw-top span { display: flex; gap: 6px; color: #444746; }
.ib-cw-top svg { width: 15px; height: 15px; }
.ib-cw-to, .ib-cw-sub { display: flex; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #f1f3f4; color: #5f6368; }
.ib-to { color: #1f1f1f; }
.ib-cw-body { height: 52px; }
.ib-cw-foot { padding: 8px 12px 12px; }
.ib-send { background: #0b57d0; color: #fff; border-radius: 999px; padding: 7px 18px; font-weight: 500; font-size: 13px; display: inline-block; }

.inbox.is-narrow { grid-template-columns: minmax(0, 1fr); }
.inbox.is-narrow .ib-rail { display: none; }
.inbox.is-narrow .ib-main { border-radius: 0; margin-top: 0; }
.inbox.is-narrow .ib-row { grid-template-columns: 0 0 1fr auto; height: auto; padding: 9px 14px; grid-template-areas: "a b f t" "a b x x"; row-gap: 1px; }
.inbox.is-narrow .ib-chk, .inbox.is-narrow .ib-star { display: none; }
.inbox.is-narrow .ib-from { grid-area: f; }
.inbox.is-narrow .ib-time { grid-area: t; }
.inbox.is-narrow .ib-text { grid-area: x; font-size: 12.5px; }
.inbox.is-narrow .ib-bar .ib-tab:nth-child(3) { display: none; }
.inbox.is-narrow .ib-compose-win { width: auto; left: 10px; right: 10px; }
.inbox.is-narrow .ib-cw-body { height: 10px; }

/* =================== EDITOR =================== */
.editor {
  font-family: var(--f-app);
  background: #1f2023;
  color: #cccccc;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.editor svg { width: 22px; height: 22px; }
.ed-title { height: 34px; flex: none; display: flex; align-items: center; justify-content: center; position: relative; background: #2a2b2f; font-size: 12.5px; color: #a8a8ad; border-bottom: 1px solid #141517; }
.ed-lights { position: absolute; left: 12px; display: flex; gap: 8px; }
.ed-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.ed-lights i:nth-child(2) { background: #febc2e; }
.ed-lights i:nth-child(3) { background: #28c840; }
.ed-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 46px 168px 1fr 270px; }
.ed-act { background: #2a2b2f; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 14px; color: #858589; border-right: 1px solid #141517; }
.ed-act svg:first-child { color: #e6e6e6; }
.ed-tree { background: #232427; font-size: 12.5px; padding: 8px 0; border-right: 1px solid #141517; white-space: nowrap; overflow: hidden; }
.ed-th { font-size: 10.5px; letter-spacing: 0.08em; color: #8b8b90; padding: 4px 14px 8px; }
.ed-f { padding: 3px 14px; color: #c5c5c8; display: flex; }
.ed-f .m { margin-left: auto; color: #e2c08d; font-weight: 600; font-size: 11px; }
.ed-f.is-on { background: #37373d; color: #fff; }
.ed-f.is-dir { color: #d7d7da; }
.ed-main { display: flex; flex-direction: column; min-width: 0; background: #1f2023; }
.ed-tabs { display: flex; height: 34px; flex: none; background: #232427; border-bottom: 1px solid #141517; font-size: 12.5px; }
.ed-tab { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #8f8f94; border-right: 1px solid #141517; white-space: nowrap; }
.ed-tab i { font-style: normal; color: #d4d4d4; font-size: 10px; }
.ed-tab.is-on { background: #1f2023; color: #fff; box-shadow: inset 0 1px 0 #4f8ff7; }
.ed-code { position: relative; flex: 1; font-family: var(--f-code); font-size: 12.5px; line-height: 19px; padding-top: 8px; overflow: hidden; }
.ed-hl { position: absolute; left: 0; right: 0; top: 0; height: 19px; background: rgb(255 255 255 / 0.07); box-shadow: inset 2px 0 0 #4f8ff7; transition: transform 0.5s cubic-bezier(.3,.7,.2,1); }
.ed-ln { position: relative; display: flex; white-space: nowrap; }
.ed-no { width: 44px; text-align: right; padding-right: 16px; color: #6e7681; flex: none; }
.ed-tx { color: #d4d4d4; }
.t-h { color: #6cb6ff; font-weight: 700; }
.t-n { color: #b5cea8; }
.ed-agents { background: #232427; border-left: 1px solid #141517; padding: 10px 10px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; overflow: hidden; }
.ed-ah { font-size: 10.5px; letter-spacing: 0.08em; color: #8b8b90; display: flex; justify-content: space-between; padding: 2px 4px; }
.ed-ah span { letter-spacing: 0; color: #4fc27a; }
.ag { background: #2b2c30; border: 1px solid #36373c; border-radius: 8px; padding: 9px 10px; }
.ag-h { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.ag-h b { color: #f0f0f0; font-weight: 600; }
.ag-h span { color: #8f8f94; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-spin { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #3d6f52; border-top-color: #4fc27a; animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ag-log { display: flex; flex-direction: column; gap: 3px; min-height: 76px; }
.ag-l { color: #c9c9cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.4s, transform 0.4s; }
.ag-l.is-in { opacity: 0; transform: translateY(6px); }
.ag-l.is-diff { font-family: var(--f-code); font-size: 11px; background: rgb(46 160 67 / 0.12); border-radius: 4px; padding: 2px 6px; }
.ag-arrow { color: #6e7681; margin-right: 6px; }
.d-a { color: #56d364; } .d-r { color: #f47067; } .ok { color: #56d364; }
.ed-status { height: 24px; flex: none; display: flex; gap: 18px; align-items: center; padding: 0 12px; background: #2a2b2f; color: #a0a0a5; font-size: 11.5px; border-top: 1px solid #141517; }
.ed-status span:nth-child(2) { color: #4fc27a; }
.ed-sr { margin-left: auto; }

.editor.is-narrow .ed-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.editor.is-narrow .ed-main { min-height: 0; }
.editor.is-narrow .ed-act, .editor.is-narrow .ed-tree { display: none; }
.editor.is-narrow .ed-code { font-size: 11.5px; line-height: 17px; }
.editor.is-narrow .ed-agents { border-left: 0; border-top: 1px solid #141517; flex-direction: row; gap: 8px; padding: 8px; }
.editor.is-narrow .ed-ah { display: none; }
.editor.is-narrow .ag { flex: 1; min-width: 0; padding: 7px 8px; }
.editor.is-narrow .ag-log { min-height: 58px; }
.editor.is-narrow .ag-l { font-size: 11px; }
.editor.is-narrow .ag-h span { display: none; }
.editor.is-narrow .ed-status span:nth-child(4) { display: none; }

/* =================== DEAL BOARD =================== */
.deals { font-family: var(--f-app); background: #f5f6f8; color: #1d2433; display: flex; flex-direction: column; height: 100%; }
.deals svg { width: 15px; height: 15px; flex: none; }
.dl-top { height: 54px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: #fff; border-bottom: 1px solid #e3e6ea; font-size: 13px; white-space: nowrap; }
.dl-top > b { font-size: 17px; }
.dl-views { display: flex; background: #eef0f3; border-radius: 8px; padding: 3px; }
.dl-views span { padding: 4px 10px; border-radius: 6px; color: #596173; }
.dl-views .is-on { background: #fff; color: #1d2433; box-shadow: 0 1px 2px rgb(0 0 0 / 0.1); font-weight: 500; }
.dl-chip { border: 1px solid #d5d9e0; border-radius: 999px; padding: 4px 10px; color: #3f4759; }
.dl-new { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; background: #2f6fed; color: #fff; border-radius: 8px; padding: 7px 12px; font-weight: 500; }
.dl-new svg { width: 14px; height: 14px; }
.dl-board { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 12px; padding: 14px; overflow: hidden; }
.dl-col { background: #eceef2; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; min-width: 0; }
.dl-ch { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; font-size: 12.5px; }
.dl-ch span { background: #dde1e7; border-radius: 999px; padding: 0 7px; font-size: 11px; color: #4a5263; }
.dl-cards { display: flex; flex-direction: column; gap: 8px; }
.dl-card {
  background: #fff;
  border-radius: 8px;
  padding: 9px 10px;
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.08), 0 0 0 1px rgb(16 24 40 / 0.04);
  font-size: 12.5px;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.75s cubic-bezier(.3,.7,.2,1), box-shadow 0.4s;
  position: relative;
}
.dl-card > b { font-size: 13px; }
.dl-who { color: #6a7385; font-size: 12px; }
.dl-sig { display: flex; align-items: center; gap: 6px; color: #4a5263; font-size: 11.5px; }
.dl-sig b { font-weight: 700; color: #1d2433; }
.dl-card.is-hot { box-shadow: 0 0 0 1.5px #2f6fed, 0 1px 2px rgb(16 24 40 / 0.08); z-index: 3; }
.dl-card.is-drag { box-shadow: 0 0 0 1.5px #2f6fed, 0 14px 30px rgb(16 24 40 / 0.22); }
.dl-card.is-ping .opened { background: #fff3c4; border-radius: 3px; }

.deals.is-narrow .dl-views, .deals.is-narrow .dl-chip { display: none; }
.deals.is-narrow .dl-board { grid-template-columns: repeat(4, 196px); padding: 10px; gap: 10px; }

/* =================== TEAM CHAT =================== */
.chat { font-family: var(--f-app); background: #fff; color: #1d1c1d; display: grid; grid-template-columns: 210px 1fr; height: 100%; }
.chat svg { width: 15px; height: 15px; flex: none; }
.ch-side { background: #f3f4f6; border-right: 1px solid #e3e5e8; padding: 10px 8px; font-size: 13.5px; color: #3f4248; overflow: hidden; white-space: nowrap; }
.ch-ws { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 12px; font-size: 16px; }
.ch-ws span { background: #fff; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; box-shadow: 0 0 0 1px #e3e5e8; }
.ch-nav span, .ch-chan, .ch-dm { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; }
.ch-nav { margin-bottom: 8px; }
.ch-sec { font-size: 12.5px; color: #6b6f76; padding: 10px 8px 4px; }
.is-b { font-weight: 700; color: #1d1c1d; }
.ch-chan.is-on { background: #2f6fed; color: #fff; font-weight: 600; }
.ch-badge { margin-left: auto; background: #e01e5a; color: #fff; font-size: 11px; border-radius: 999px; padding: 0 6px; line-height: 17px; }
.ch-dm .dot { width: 8px; height: 8px; border-radius: 50%; background: #2bac76; }
.ch-dm .dot.off { background: transparent; box-shadow: inset 0 0 0 1.5px #8a8d93; }
.ch-main { display: flex; flex-direction: column; min-width: 0; }
.ch-head { height: 48px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #e3e5e8; }
.ch-head b { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.ch-mem { display: flex; align-items: center; gap: 0; font-size: 12px; color: #6b6f76; border: 1px solid #e3e5e8; border-radius: 6px; padding: 3px 8px 3px 4px; }
.ch-mem i { width: 18px; height: 18px; border-radius: 4px; background: #c9ced6; margin-right: -4px; box-shadow: 0 0 0 2px #fff; }
.ch-mem i:nth-child(2) { background: #a7b5c9; } .ch-mem i:nth-child(3) { background: #b9c8b5; margin-right: 6px; }
.ch-msgs { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 16px; gap: 2px; }
.ch-m { display: flex; gap: 10px; padding: 6px 0; transition: opacity 0.4s, transform 0.4s; }
.ch-m.is-in { opacity: 0; transform: translateY(10px); }
.ch-mh { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.ch-mh span { font-size: 11.5px; color: #6b6f76; }
.ch-mt { font-size: 14px; line-height: 1.45; color: #1d1c1d; }
.ch-at { background: #fdf0c8; color: #8a5a00; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.ch-typing { height: 20px; flex: none; display: flex; align-items: center; gap: 3px; padding: 0 16px; font-size: 11.5px; color: #6b6f76; }
.ch-typing i { width: 4px; height: 4px; border-radius: 50%; background: #9aa0a6; animation: dots 1.2s infinite; }
.ch-typing i:nth-child(2) { animation-delay: 0.15s; } .ch-typing i:nth-child(3) { animation-delay: 0.3s; margin-right: 6px; }
@keyframes dots { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.ch-input { margin: 4px 16px 14px; border: 1px solid #c9ccd1; border-radius: 8px; padding: 11px 12px; font-size: 13.5px; color: #8a8d93; flex: none; }

.chat.is-narrow { grid-template-columns: 1fr; }
.chat.is-narrow .ch-side { display: none; }
.chat.is-narrow .ch-mt, .chat.is-narrow .ch-mh { font-size: 13px; }

/* =================== THE BRIEF =================== */
.brief { font-family: var(--f-app); background: #fff; color: #1d2433; padding: 18px 20px 16px; border-radius: 12px; }
.brief svg { width: 16px; height: 16px; }
.bf-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #6a7385; }
.bf-kind { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #2f6fed; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.bf-title { font-size: 19px; font-weight: 600; line-height: 1.25; margin: 10px 0 12px; min-height: 1.25em; letter-spacing: -0.01em; }
.bf-title .caret { display: none; }
.brief.is-blank .bf-title .caret { display: inline-block; }
.bf-sec { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #8a92a3; margin-bottom: 6px; }
.bf-scope { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; }
.bf-scope li { position: relative; padding-left: 20px; min-height: 1.3em; }
.bf-scope li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 10px; height: 6px; border-left: 2px solid #2f6fed; border-bottom: 2px solid #2f6fed; transform: rotate(-45deg); }
.bf-meta { display: flex; gap: 22px; font-size: 13px; margin-bottom: 14px; }
.bf-meta span { display: flex; flex-direction: column; gap: 1px; }
.bf-meta em { font-style: normal; color: #8a92a3; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.bf-meta b { min-height: 1.2em; }
.bf-foot { display: flex; justify-content: space-between; align-items: center; }
/* the posted job and the investigation share one page: the same place, never both at once */
.bf-bodies { display: grid; }
.bf-body { grid-area: 1 / 1; transition: opacity 0.35s; }
.brief .bf-body--inv { opacity: 0; }
.brief.is-inv .bf-body--job { opacity: 0; }
.brief.is-inv .bf-body--inv { opacity: 1; }
.brief.is-inv .bf-kind { color: #1d8252; }
.brief.is-inv .bf-posted { opacity: 0; }
.bf-row { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; font-size: 13.5px; line-height: 1.3; min-height: 20px; }
.bf-row i { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; }
.bf-row--ok i { background: #e6f4ea; color: #1e8e3e; }
.bf-row--ok i svg { width: 13px; height: 13px; }
.bf-row--q i { background: #fef3d6; color: #9a5b00; }
/* the "Might help" label shows with its pills (tools.js helps()), never over an empty row */
.bf-sec--help { opacity: 0; }
.bf-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-pill {
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px dashed #9aa5a0;
  color: #3f4a45;
  opacity: 0;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.bf-pill.is-lit { border-style: solid; border-color: #1d8252; background: #e8f5ee; color: #0f5132; }
.bf-btn { background: #2f6fed; color: #fff; border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600; }
.bf-count { font-size: 12.5px; color: #6a7385; }
.bf-count b { color: #1d2433; }
/* =================== the job board: Upwork's Find Work page, in a browser window (js/tools.js H.buildUpwork) ===================
   Ported exactly from Hero A (hypha-invitation-hero 3f449ca + 0075478, css/sting.css: .st-win, the browser chrome and beat
   3's .st-feed / .st-up rules), every rule scoped under .upw so none of it reaches the rest of the page. Where Hero A
   layers two rules on one part (.st-bar, then .st-feed .st-bar), the one rule here holds the values that win there. */
.upw {
  position: absolute;
  left: 0; top: 0;
  z-index: 16;
  width: calc(100% - 52vw - var(--gutter));
  height: min(660px, 76vh);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  color: #1d1d1f;
  font: 400 18px/1.5 var(--f-app);
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgb(214 255 222 / 0.28),
    0 0 36px rgb(101 219 174 / 0.28),
    0 0 140px rgb(57 241 100 / 0.16),
    0 40px 90px rgb(0 0 0 / 0.55);
  opacity: 0;
  visibility: hidden;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  backface-visibility: hidden;
  pointer-events: none;
}
/* the screen's own sheen: lit from the room's light, upper left */
.upw::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(125deg, rgb(255 255 255 / 0.14) 0%, rgb(255 255 255 / 0) 34%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08);
}
.upw .upw-bar { height: 42px; flex: none; display: flex; align-items: flex-end; gap: 4px; padding: 0 10px 0 14px; background: #dee1e6; border-bottom: 0; font-size: 13px; color: #3c3c43; white-space: nowrap; }
.upw .upw-tl { display: flex; gap: 8px; flex: none; align-self: center; margin-right: 12px; }
.upw .upw-tl b { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.14); }
.upw .upw-tl b:nth-child(2) { background: #febc2e; }
.upw .upw-tl b:nth-child(3) { background: #28c840; }
.upw .upw-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.upw .upw-tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; min-width: 0; max-width: 236px;
  border-radius: 9px 9px 0 0;
  font-size: 12.5px; color: #45474a; overflow: hidden;
}
.upw .upw-tab img { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.upw .upw-tab span { overflow: hidden; text-overflow: ellipsis; }
.upw .upw-tab.is-on { background: #fff; color: #1f1f1f; }
.upw .upw-url { height: 40px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 12px; background: #fff; border-bottom: 1px solid #e3e3e3; color: #5f6368; }
.upw .upw-url .upw-ic { width: 15px; height: 15px; }
.upw .upw-url-box { flex: 1; min-width: 0; height: 28px; border-radius: 14px; background: #f1f3f4; display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 12.5px; color: #202124; white-space: nowrap; overflow: hidden; }
.upw .upw-url-box .upw-ic { width: 12px; height: 12px; color: #5f6368; }
.upw .upw-pages { position: relative; flex: 1; min-height: 0; background: #fff; }
.upw .upw-pg { position: absolute; inset: 0; overflow: hidden; color: #001e00; background: #fff; }
.upw .upw-head { height: 54px; display: flex; align-items: center; gap: 24px; padding: 0 22px; border-bottom: 1px solid #e4ebe4; }
.upw .upw-head > img { height: 21px; width: auto; }
.upw .upw-nav { display: flex; gap: 18px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.upw .upw-me { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: #2c3330; color: #c9d1cd; display: grid; place-items: center; flex: none; }
.upw .upw-me svg { width: 18px; height: 18px; }
.upw .upw-body { padding: 16px 22px; }
.upw .upw-h { font-size: 19px; font-weight: 650; margin: 0 0 12px; letter-spacing: -0.01em; }
.upw .upw-tabs { display: flex; gap: 22px; font-size: 13px; color: #5e6d55; border-bottom: 1px solid #e4ebe4; }
.upw .upw-tabs span { padding-bottom: 9px; }
.upw .upw-tabs b { color: #001e00; font-weight: 600; padding-bottom: 8px; border-bottom: 2px solid #14a800; }
.upw .upw-job { padding: 14px 0 12px; border-bottom: 1px solid #e4ebe4; }
.upw .upw-job-meta { font-size: 12px; color: #5e6d55; margin: 0; }
.upw .upw-job-t { font-size: 16.5px; font-weight: 600; margin: 5px 0 6px; line-height: 1.3; color: #001e00; }
.upw .upw-job-d { font-size: 13px; line-height: 1.5; margin: 9px 0 10px; color: #263826; }
.upw .upw-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.upw .upw-skills span { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: #e9eee9; color: #263826; }
.upw .upw-job-f { display: flex; align-items: center; gap: 14px; margin: 11px 0 0; font-size: 12px; color: #5e6d55; white-space: nowrap; }
.upw .upw-ver { color: #108a00; font-weight: 600; }
.upw .upw-stars { color: #14a800; letter-spacing: 1px; }
.upw .upw-prop { margin-left: auto; }
.upw .upw-prop b { color: #001e00; font-variant-numeric: tabular-nums; }
.upw .upw-bid { margin-top: 14px; padding: 13px 16px 12px; border-radius: 12px; background: #f2f7f2; border: 1px solid #d5e8d4; }
.upw .upw-bid-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; font-weight: 600; }
.upw .upw-bid-v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.upw .upw-bid-v small { font-size: 12px; font-weight: 500; color: #5e6d55; }
.upw .upw-bid-track { position: relative; height: 6px; border-radius: 3px; background: #d5e0d5; margin: 12px 0 9px; }
.upw .upw-bid-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 82%; border-radius: 3px; background: #14a800; }
.upw .upw-bid-k { position: absolute; top: 50%; left: 82%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 2px solid #14a800; box-shadow: 0 1px 4px rgb(0 0 0 / 0.22); }
.upw .upw-bid-note { display: flex; justify-content: space-between; font-size: 11.5px; color: #5e6d55; }
.upw .upw-job--2 { opacity: 0.9; }
/* the post un-writes in place: the cut-off rest of a line keeps its room */
.upw .upw-gone { visibility: hidden; }
@media (max-width: 899px) {
  /* full width on a phone; its height is the page's own, set by js/revelation.js */
  .upw { width: calc(100% - 24px); height: auto; border-radius: 11px; }
  .upw .upw-bar { height: 36px; padding: 0 8px 0 11px; font-size: 11.5px; }
  .upw .upw-tl { gap: 6px; margin-right: 6px; }
  .upw .upw-tl b { width: 10px; height: 10px; }
  .upw .upw-tab { height: 29px; padding: 0 9px; font-size: 11px; gap: 6px; max-width: 150px; }
  .upw .upw-tab img { width: 13px; height: 13px; }
  .upw .upw-url { height: 34px; gap: 8px; padding: 0 8px; }
  .upw .upw-url > .upw-ic { display: none; }
  .upw .upw-url-box { height: 24px; font-size: 11px; }
  .upw .upw-head { height: 44px; padding: 0 14px; gap: 14px; }
  .upw .upw-head > img { height: 17px; }
  .upw .upw-nav { display: none; }
  .upw .upw-me { width: 24px; height: 24px; }
  .upw .upw-body { padding: 10px 14px; }
  .upw .upw-h { font-size: 15px; margin-bottom: 8px; }
  .upw .upw-tabs { gap: 14px; font-size: 11.5px; }
  .upw .upw-job { padding: 10px 0 9px; }
  .upw .upw-job-meta { font-size: 10.5px; }
  .upw .upw-job-t { font-size: 13.5px; margin: 3px 0 4px; }
  .upw .upw-job-d { display: none; }
  .upw .upw-skills span { font-size: 10px; padding: 3px 8px; }
  .upw .upw-skills span:nth-child(n + 4) { display: none; }
  .upw .upw-job-f { gap: 8px; font-size: 10.5px; margin-top: 8px; }
  .upw .upw-job-f .upw-loc { display: none; }
  .upw .upw-bid { margin-top: 9px; padding: 9px 11px; }
  .upw .upw-bid-top { font-size: 11.5px; }
  .upw .upw-bid-v { font-size: 16px; }
  .upw .upw-bid-track { margin: 9px 0 7px; }
  .upw .upw-bid-note { font-size: 10px; }
}
.sheet.is-phone .sh-mi-row kbd { display: none; }
/* the inbox keeps subject and snippet apart with space, not a dash */
.ib-snip { margin-left: 0.6em; }

/* editor below 1366: a slimmer explorer and agents pane give the code pane room for its longest idea line
   (1280x720 cut "1. Invoice chaser a"); a line that still cannot fit ends in an ellipsis */
@media (max-width: 1365px) {
  .editor:not(.is-narrow) .ed-body { grid-template-columns: 46px 140px 1fr 226px; }
  .editor:not(.is-narrow) .ed-code { font-size: 12px; }
  .editor:not(.is-narrow) .ed-tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* week sheet on a phone: the visible grid ends on a whole column. The row number column takes the slack so
   the pane is the first three phone columns (122 + 104 + 84 = 310px, js/arrival.js) plus 4px, which also lets
   the pans to Due and Scope stop clear of any text; with four tabs open the strip lands on a whole tab, so no
   tab name is cut at the left edge */
@media (max-width: 400px) {
  #week-sheet.is-phone .sh-body { grid-template-columns: clamp(34px, calc(100% - 314px), 70px) minmax(0, 1fr); }
  #week-sheet.is-phone .sh-tab:not(.is-on) {
    flex: none;
    width: calc((100% - 104px) / 3);
    min-width: max-content;
    justify-content: center;
    padding: 6px 4px;
  }
  #week-sheet.is-phone .sh-tab:not(.is-on) .sh-tcaret { display: none; }
}
