/* product: the first page's sections `does`, `examples` and `how`, and the pages /how-it-works/ and /examples/
   (parts/product.py). Every class starts pd-.

   A window is drawn at the app's own size (--pd-w by --pd-hh, a sidebar of 236 and the sheet beside it) and scaled to
   its column by --k, which product.js works out from the column's width; without the script the steps below stand in.
   When the column is as narrow as a phone, product.js marks the frame pd-narrow and the window is drawn as the app
   draws itself on an iPhone instead: the sheet alone, 390 wide, the dock and the agent's button at its foot. */

/* ---------------------------------------------------------------- the frame and its scale */
.pd-frame { --pd-w: 1120px; --pd-hh: 660px; --k: 1; position: relative; width: 100%; height: calc(var(--pd-hh) * var(--k)); }
.pd-scale { position: absolute; top: 0; left: max(0px, calc(50% - var(--pd-w) * var(--k) / 2)); width: var(--pd-w);
  transform: scale(var(--k)); transform-origin: 0 0; }
@media (max-width: 1220px) { .pd-frame { --k: .86; } }
@media (max-width: 1040px) { .pd-frame { --k: .74; } }
@media (max-width: 860px) { .pd-frame { --k: .6; } }
@media (max-width: 620px) { .pd-frame { --k: .5; } }
@media (max-width: 440px) { .pd-frame { --k: .31; } }
.pd-frame.pd-narrow { --pd-w: 390px; }
/* A panel is not scaled: it is laid out at the column's width, at sizes that read. */
.pd-panelframe { height: auto; }
.pd-panelframe > .pd-scale { position: static; width: auto; transform: none; }

/* ---------------------------------------------------------------- the window, as the app draws it (light) */
.pd-win { --pk: #1c1c1f; --pm: #62626a; --pf: #8e8e97; --pl: #00000012; --pa: #2f6fe4; --pok: #1f9d55; --pbad: #d93b3b; --pwarn: #a86b00;
  position: relative; display: flex; height: var(--pd-hh); border-radius: 14px; background: #f1f1ef; color: var(--pk);
  font: 13px/1.45 var(--font); letter-spacing: 0; text-align: left; overflow: hidden;
  box-shadow: 0 0 0 .5px #00000026, 0 40px 80px -36px #00000059, 0 10px 24px -14px #00000026; }
.band.black .pd-win, .pd-dark .pd-win { box-shadow: 0 0 0 .5px #ffffff2e, 0 50px 100px -40px #000000cc, 0 12px 30px -14px #00000080; }
.pd-win p { margin: 0; max-width: none; }
.pd-side { width: 236px; flex: none; display: flex; flex-direction: column; gap: 1px; padding: 0 8px 10px; overflow: hidden; }
.pd-lights { display: flex; align-items: center; gap: 8px; height: 42px; padding-left: 8px; flex: none; }
.pd-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.pd-lights i:nth-child(2) { background: #febc2e; } .pd-lights i:nth-child(3) { background: #28c840; }
.pd-lights .ic { margin-left: 12px; color: var(--pm); }
.pd-row { --d: 0; position: relative; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 8px;
  margin-left: calc(var(--d) * 18px); white-space: nowrap; flex: none; }
.pd-row > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pd-row .ic { color: var(--pm); }
.pd-row.sel { background: #ffffffe6; box-shadow: 0 0 0 .5px #0000001a, 0 1px 2px #00000014; }
.pd-row.sel .ic { color: var(--pk); }
.pd-row.new { background: #dcf3e4; box-shadow: 0 0 0 .5px #1f9d5533; }
/* The guide line from a space down past the spaces within it (seed/main.js `guides`). */
.pd-row.parent::after { content: ""; position: absolute; left: 17px; top: 24px; height: 12px; border-left: 1.5px solid #d4d4d7; }
.pd-row[style*="--d:1"]::before, .pd-row[style*="--d:2"]::before { content: ""; position: absolute; left: -11px; top: -6px; width: 10px; height: 20px;
  border-left: 1.5px solid #d4d4d7; border-bottom: 1.5px solid #d4d4d7; border-bottom-left-radius: 6px; }
.pd-newchat { background: #ffffffa6; box-shadow: 0 0 0 .5px #0000001a; margin-bottom: 6px; }
.pd-side kbd, .pd-hist kbd { font: 11.5px var(--font); color: var(--pf); }
.pd-label { padding: 12px 10px 4px; font-size: 11.5px; color: var(--pf); flex: none; }
.pd-chatrow { display: flex; gap: 8px; padding: 5px 10px; white-space: nowrap; flex: none; }
.pd-chatrow span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .pd-chatrow i { font-style: normal; font-size: 11.5px; color: var(--pf); }
.pd-grow { flex: 1; }
.pd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pa); flex: none; }
.pd-dot.ok { background: var(--pok); } .pd-dot.warn { background: #e0a100; }
.pd-spin { display: inline-block; flex: none; border-radius: 50%; border: 1.6px solid #0000001f; border-top-color: var(--pa);
  animation: pd-spin 1s linear infinite; }
@keyframes pd-spin { to { transform: rotate(360deg); } }
.pd-sheet { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; margin: 8px 8px 8px 0; border-radius: 12px;
  background: #fff; box-shadow: 0 0 0 .5px #0000001a, 0 2px 10px #0000000d; overflow: hidden; }
.pd-sheet-in { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 50px 40px 28px; }
/* The notch: the window's own tint hanging from the top of the sheet, saying what the agent is doing there. */
.pd-notch { position: absolute; z-index: 3; top: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 16px 2px; border-radius: 0 0 16px 16px; background: #f1f1ef; font-size: 12.5px; white-space: nowrap;
  box-shadow: 0 0 0 .5px #0000001a; }
.pd-accent { color: var(--pa); }
.pd-muted { color: var(--pm); } .pd-faint { color: var(--pf); }
.pd-ok-dot { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; background: var(--pok); color: #fff; }
.pd-ok-dot .ic { stroke-width: 3.5; }
.pd-phonebar { display: none; }

/* What a page of a space starts with: the way back, the title, its line, and its actions on the right. */
.pd-head { flex: none; margin-bottom: 18px; }
.pd-back { display: flex; align-items: center; gap: 2px; margin: -8px 0 6px -3px; font-size: 12.5px; color: var(--pm); }
.pd-titlerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-head h4 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.pd-head > p { margin-top: 2px; color: var(--pm); font-size: 13px; }
.pd-fresh { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--pf); }
.pd-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; font-weight: 500;
  white-space: nowrap; color: var(--pk); background: #fff; box-shadow: inset 0 0 0 1px #00000021; flex: none; }
.pd-btn.main { background: var(--pa); color: #fff; box-shadow: 0 1px 2px #2f6fe455, 0 6px 14px -8px #2f6fe4; }
.pd-btn.quiet { background: #0000000a; box-shadow: none; }
.pd-btn.busy { background: #2f6fe414; color: var(--pa); box-shadow: inset 0 0 0 1px #2f6fe455; gap: 8px; }
.pd-btn.busy::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 1.6px solid #2f6fe433; border-top-color: var(--pa);
  animation: pd-spin 1s linear infinite; }
.pd-card { background: #f7f7f6; border-radius: 16px; padding: 14px 16px; min-width: 0; }
.pd-cap { display: flex; align-items: center; gap: 6px; color: var(--pm); font-size: 12.5px; margin-bottom: 10px; }
.pd-cap-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pd-cap-row .pd-cap { margin-bottom: 0; }
.pd-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pd-box { width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px #0000002e; display: grid; place-items: center; flex: none; color: #fff; }
.pd-box .ic { stroke-width: 3.5; }
.pd-sd { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #b0b0b6; }
.pd-sd.ok { background: var(--pok); } .pd-sd.bad { background: var(--pbad); } .pd-sd.warn { background: #d98a00; } .pd-sd.run { background: var(--pa); }
.pd-small { font-size: 12px; color: var(--pm); display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.pd-chip { font-size: 11.5px; font-weight: 500; padding: 2px 7px; border-radius: 6px; white-space: nowrap; line-height: 1.4; }
.pd-chip.good { background: #dff5e7; color: #17733f; } .pd-chip.bad { background: #fde3e3; color: #b42323; }
.pd-chip.run { background: #2f6fe41a; color: var(--pa); }
.pd-face { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; object-fit: cover; }
.pd-you { background: var(--pk); color: #fff; font-size: 10px; font-weight: 600; }

/* ---------------------------------------------------------------- 1. Groceries: aisles, by talking */
.pd-gro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; flex: 1; min-height: 0; }
.pd-aisle { background: #f7f7f6; border-radius: 16px; padding: 12px 14px; }
.pd-aisle-h { font-size: 12.5px; color: var(--pm); margin-bottom: 4px; }
.pd-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--pl); flex-wrap: wrap; }
.pd-aisle-h + .pd-item { border-top: 0; }
.pd-item b { font-weight: 500; flex: 1; min-width: 0; }
.pd-item em { font-style: normal; color: var(--pm); font-variant-numeric: tabular-nums; }
.pd-item.got .pd-box { background: var(--pk); box-shadow: none; }
.pd-item.got b { color: var(--pf); text-decoration: line-through; text-decoration-color: #00000040; font-weight: 400; } .pd-item.got em { color: var(--pf); }
.pd-from { flex-basis: 100%; order: 5; display: flex; align-items: center; gap: 5px; margin: -4px 0 0 26px; font-size: 11.5px; color: var(--pok); }
.pd-item.fresh { position: relative; }
.pd-item.fresh::before { content: ""; position: absolute; inset: 2px -8px; border-radius: 9px; background: #1f9d550f; z-index: -1; }
.pd-aisle { position: relative; isolation: isolate; }
.pd-addrow { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 11px 14px; border-radius: 12px; color: var(--pf);
  box-shadow: inset 0 0 0 1px #0000001a; flex: none; }

/* ---------------------------------------------------------------- 2. Morning: a commute that updated itself */
.pd-morning { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
.pd-leave { background: #11151d; color: #fff; padding: 18px 20px; display: flex; flex-direction: column; }
.pd-leave .pd-cap { color: #ffffff99; }
.pd-leave-big { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.pd-leave p { margin-top: 10px; color: #ffffffb3; font-size: 13px; max-width: 360px; }
.pd-path { position: relative; height: 34px; margin: 22px 6px 0; border-top: 2px dotted #ffffff40; }
.pd-path > span { position: absolute; top: -6px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: 11px; color: #ffffff80; white-space: nowrap; }
.pd-path > span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #11151d; box-shadow: inset 0 0 0 2px #ffffff80; margin-bottom: 4px; }
.pd-path > span:first-of-type::before { background: #7fb0ff; box-shadow: 0 0 0 4px #7fb0ff33; }
.pd-path > span:nth-of-type(3)::before { background: #fff; box-shadow: none; }
.pd-path > span:first-of-type { transform: none; align-items: flex-start; } .pd-path > span:last-of-type { transform: translateX(-100%); align-items: flex-end; }
.pd-path b { color: #fff; font-weight: 500; font-size: 12px; }
.pd-path-now { position: absolute; left: 0; top: -2px; width: 29%; border-top: 2px solid #7fb0ff; }
.pd-sky-big { display: flex; align-items: baseline; gap: 10px; font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.pd-sky-big span { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--pm); }
.pd-rain { display: flex; align-items: flex-end; gap: 3px; height: 74px; margin-top: 18px; }
.pd-rain i { flex: 1; border-radius: 3px 3px 1px 1px; background: #2f6fe42e; }
.pd-rain i.wet { background: var(--pa); }
.pd-axis, .pd-axis2 { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--pf); }
.pd-deps { grid-column: 1 / -1; }
.pd-dep { display: grid; grid-template-columns: 64px minmax(0, 1fr) 70px 96px 28px; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--pl); }
.pd-cap + .pd-dep { border-top: 0; }
.pd-line { justify-self: start; padding: 2px 7px; border-radius: 6px; background: var(--pk); color: #fff; font-size: 11.5px; font-weight: 600; }
.pd-dep b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pd-state { font-size: 12px; } .pd-state.ok { color: var(--pok); } .pd-state.warn { color: var(--pwarn); } .pd-state.bad { color: var(--pbad); text-decoration: line-through; }
.pd-plat { justify-self: end; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: #0000000d; font-size: 11.5px; font-weight: 600; }
.pd-to { color: var(--pm); }
/* The notification it sent, from the app with its icon. */
.pd-toast { position: absolute; z-index: 5; bottom: 24px; right: 24px; width: 330px; display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 14px; border-radius: 18px; background: #f6f6f6f2; color: #1c1c1f; font: 12.5px/1.35 var(--font); text-align: left;
  box-shadow: 0 0 0 .5px #00000026, 0 18px 40px -16px #00000066; }
.pd-toast img { border-radius: 7px; flex: none; }
.pd-toast div { flex: 1; min-width: 0; } .pd-toast b { display: block; font-weight: 600; } .pd-toast span { color: #3a3a40; }
.pd-toast > i { font-style: normal; font-size: 11px; color: #8e8e97; }

/* ---------------------------------------------------------------- 3. Tern: buttons that run commands */
.pd-deploy { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
.pd-cmd { background: #fff; box-shadow: inset 0 0 0 1px #00000017; flex: 1; display: flex; flex-direction: column; }
.pd-fields { display: flex; gap: 8px; }
.pd-field { flex: 1; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px #0000001f; }
.pd-field span { color: var(--pf); } .pd-field b { flex: 1; font-weight: 500; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.pd-field .ic { color: var(--pf); }
.pd-seg { display: flex; padding: 2px; border-radius: 9px; background: #0000000d; }
.pd-seg i { font-style: normal; padding: 5px 12px; border-radius: 7px; color: var(--pm); font-size: 12.5px; }
.pd-seg i.on { background: #fff; color: var(--pk); box-shadow: 0 1px 2px #0000001f; font-weight: 500; }
.pd-going { display: flex; gap: 8px; margin: 12px 0; }
.pd-log { flex: 1; min-height: 0; padding: 10px 12px; border-radius: 10px; background: #16171a; color: #c9cad1;
  font: 11.5px/1.75 ui-monospace, "SF Mono", Menlo, monospace; overflow: hidden; }
.pd-log > div { display: flex; align-items: center; gap: 6px; white-space: nowrap; } .pd-log .ic { color: #6c6d75; }
.pd-log-now { color: #fff; } .pd-log-now .pd-spin { border-color: #ffffff2e; border-top-color: #7fb0ff; }
.pd-twins { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-twins .pd-card { display: flex; flex-direction: column; align-items: flex-start; }
.pd-runs { overflow: hidden; }
.pd-run { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--pl); }
.pd-cap + .pd-run { border-top: 0; }
.pd-run-w { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pd-run-w b { font-weight: 500; } .pd-run-w i { font-style: normal; font-size: 11.5px; color: var(--pf); }
.pd-run-t { font-size: 12px; color: var(--pm); font-variant-numeric: tabular-nums; } .pd-run-t.bad { color: var(--pbad); }
.pd-run .pd-faint { width: 38px; text-align: right; font-size: 11.5px; }

/* ---------------------------------------------------------------- 4. A recipe's own page */
.pd-recipe { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; }
.pd-photo { height: 236px; border-radius: 16px; overflow: hidden; flex: none; background: #eee; }
.pd-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-method { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pd-method li { display: flex; gap: 12px; font-size: 13px; line-height: 1.5; }
.pd-method li span { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #0000000d; font-size: 11.5px; font-weight: 600; }
.pd-ings { display: flex; flex-direction: column; }
.pd-stepper { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #0000001a; color: var(--pm); }
.pd-stepper b { color: var(--pk); font-weight: 600; }
.pd-ing { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--pl); }
.pd-cap-row + .pd-ing { border-top: 0; }
.pd-ing b { flex: 1; font-weight: 500; } .pd-ing em { font-style: normal; color: var(--pm); font-variant-numeric: tabular-nums; }
.pd-ing.have .pd-box { background: var(--pk); box-shadow: none; } .pd-ing.have b { font-weight: 400; color: var(--pm); }
.pd-sent { margin-top: auto; display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: 10px; background: #1f9d5512; color: #17733f; font-size: 12.5px; }
.pd-sent > span:first-of-type { flex: 1; } .pd-sent .ic { stroke-width: 3; }
.pd-link { display: flex; align-items: center; gap: 2px; color: var(--pk); font-weight: 500; }

/* ---------------------------------------------------------------- 5. A deck: a web page inside the space */
.pd-sc-deck .pd-sheet-in { padding: 44px 0 0; }
.pd-deck { flex: 1; min-height: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; background: #ececea; }
.pd-thumbs { grid-row: 1 / 3; display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; overflow: hidden; background: #f6f6f5; border-right: 1px solid var(--pl); }
.pd-thumb { display: flex; gap: 6px; font-size: 10.5px; color: var(--pf); }
.pd-thumb i { flex: 1; aspect-ratio: 16 / 9; border-radius: 5px; background: #fff; box-shadow: 0 0 0 1px #00000014; display: grid; place-items: center; padding: 6px;
  font-style: normal; text-align: center; }
.pd-thumb b { font-size: 8.5px; font-weight: 600; color: var(--pm); line-height: 1.2; }
.pd-thumb.on i { box-shadow: 0 0 0 2px var(--pa); } .pd-thumb.on span { color: var(--pa); font-weight: 600; }
.pd-thumb:first-child i { background: #15161a; } .pd-thumb:first-child b { color: #fff; }
.pd-stage-d { display: grid; place-items: center; padding: 22px 26px 10px; min-height: 0; }
.pd-slide { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; border-radius: 6px; padding: 34px 40px 28px; display: flex; flex-direction: column;
  background: #15161a; color: #fff; box-shadow: 0 20px 40px -20px #00000080; overflow: hidden; }
.pd-slide-k { font-size: 11px; color: #ffffff80; }
.pd-slide h5 { margin-top: 10px; font: 600 22px/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.01em; max-width: 340px; }
.pd-slide-fig { position: absolute; right: 40px; top: 34px; text-align: right; font-size: 44px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.pd-slide-fig em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: 0; color: #f2c46d; }
.pd-slide-bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; margin-top: 18px; }
.pd-slide-bars i { flex: 1; background: #ffffff26; border-radius: 3px 3px 0 0; } .pd-slide-bars i.hot { background: #f2c46d; }
.pd-slide-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; color: #ffffff66; }
.pd-deck-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 26px 14px; }
.pd-deck-bar > span:first-child { display: flex; align-items: center; gap: 10px; color: var(--pm); }
.pd-deck-bar b { color: var(--pk); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 6. A long task, and the notch open over it */
.pd-task { flex: 1; min-height: 0; display: grid; grid-template-columns: 186px minmax(0, 1fr) 186px; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; }
.pd-steps { grid-row: 1 / 4; }
.pd-steps ol { list-style: none; padding: 0; display: flex; flex-direction: column; }
.pd-steps li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; color: var(--pf); line-height: 1.35; }
.pd-steps li > span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 11px; box-shadow: inset 0 0 0 1.5px #0000001f; }
.pd-steps li.done { color: var(--pk); } .pd-steps li.done > span { background: var(--pok); box-shadow: none; color: #fff; } .pd-steps li.done .ic { stroke-width: 3.5; }
.pd-steps li.now { color: var(--pk); font-weight: 500; } .pd-steps li.now > span { box-shadow: none; background: #2f6fe414; }
.pd-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--pl); border-radius: 14px; overflow: hidden; }
.pd-kpis div { background: #f7f7f6; padding: 10px 14px; display: flex; flex-direction: column; }
.pd-kpis b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; } .pd-kpis span { font-size: 11.5px; color: var(--pm); }
.pd-prcard { display: flex; flex-direction: column; } .pd-prcard > b { font-weight: 600; } .pd-prcard .pd-small { margin-top: 6px; }
.pd-found { grid-column: 2 / 4; } .pd-decided { grid-column: 2 / 4; }
.pd-find { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--pl); }
.pd-cap + .pd-find { border-top: 0; }
.pd-sev { width: 7px; height: 7px; border-radius: 50%; flex: none; } .pd-sev.high { background: var(--pbad); } .pd-sev.medium { background: #d98a00; } .pd-sev.low { background: #b0b0b6; }
.pd-sevw { width: 52px; flex: none; font-size: 11.5px; color: var(--pm); }
.pd-find b { flex: 1; min-width: 0; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-find em { font-style: normal; font-size: 11.5px; color: var(--pf); }
.pd-dec { padding: 7px 0; border-top: 1px solid var(--pl); display: flex; flex-direction: column; line-height: 1.35; }
.pd-cap + .pd-dec { border-top: 0; } .pd-dec b { font-weight: 500; } .pd-dec span { font-size: 11.5px; color: var(--pm); }
.pd-onotch { position: absolute; z-index: 4; top: 0; left: 50%; width: 410px; margin-left: -205px; padding: 12px 16px 14px; border-radius: 0 0 22px 22px;
  background: #f1f1ef; box-shadow: 0 0 0 .5px #0000001f, 0 30px 60px -24px #00000059; display: flex; flex-direction: column; gap: 10px; }
.pd-sc-task .pd-notch { display: none; }
.pd-on-head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; } .pd-on-head b { flex: 1; font-weight: 600; }
.pd-on-head .pd-faint { display: flex; gap: 10px; }
.pd-bubble { align-self: flex-end; max-width: 82%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: #fff; box-shadow: 0 0 0 .5px #0000001a; }
.pd-on-say { color: var(--pk); line-height: 1.5; }
.pd-on-step { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--pm); }
.pd-on-step code { font: 11.5px ui-monospace, "SF Mono", Menlo, monospace; padding: 1px 6px; border-radius: 5px; background: #0000000d; color: var(--pk); }
.pd-on-step .pd-faint { margin-left: auto; font-variant-numeric: tabular-nums; }
.pd-on-field { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 6px 0 14px; border-radius: 19px; background: #fff;
  box-shadow: 0 0 0 .5px #0000001f; color: var(--pf); }
.pd-stopb { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--pk); color: #fff; }
.pd-stopb .ic { fill: currentColor; }

/* ---------------------------------------------------------------- a window as narrow as a phone: the app's phone layout */
.pd-narrow .pd-win { height: auto; border-radius: 34px; background: #fff; box-shadow: 0 0 0 .5px #00000026, 0 24px 50px -24px #00000059; }
.band.black .pd-narrow .pd-win { box-shadow: 0 0 0 .5px #ffffff2e, 0 24px 50px -24px #000; }
.pd-narrow .pd-side, .pd-narrow .pd-notch, .pd-narrow .pd-onotch, .pd-narrow .pd-toast { display: none; }
.pd-narrow .pd-sheet { margin: 0; border-radius: 0; box-shadow: none; }
.pd-narrow .pd-sheet-in { padding: 54px 16px 92px; }
.pd-narrow .pd-sheet-in::before { content: ""; position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 14px; background: #000; }
.pd-narrow .pd-phonebar { position: absolute; left: 14px; right: 14px; bottom: 18px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.pd-dock { flex: 1; display: flex; justify-content: space-around; height: 50px; align-items: center; border-radius: 25px; background: #f4f4f3e6;
  box-shadow: 0 0 0 .5px #0000001f, 0 10px 24px -12px #00000040; color: var(--pm); }
.pd-dock span { width: 40px; height: 36px; border-radius: 18px; display: grid; place-items: center; } .pd-dock .on { background: #fff; color: var(--pk); box-shadow: 0 1px 3px #0000001f; }
.pd-ask { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #f4f4f3e6; color: var(--pa); box-shadow: 0 0 0 .5px #0000001f, 0 10px 24px -12px #00000040; }
.pd-narrow .pd-head { margin-bottom: 14px; } .pd-narrow .pd-head h4 { font-size: 24px; }
.pd-narrow .pd-titlerow { flex-wrap: wrap; }
.pd-narrow .pd-gro, .pd-narrow .pd-morning, .pd-narrow .pd-deploy, .pd-narrow .pd-recipe, .pd-narrow .pd-task, .pd-narrow .pd-twins
  { display: flex; flex-direction: column; }
.pd-narrow .pd-gro .pd-aisle:nth-child(3), .pd-narrow .pd-deps .pd-dep:nth-child(n+4), .pd-narrow .pd-run:nth-child(n+5),
.pd-narrow .pd-twins .pd-card:last-child, .pd-narrow .pd-method li:nth-child(n+3), .pd-narrow .pd-ing:nth-child(n+7),
.pd-narrow .pd-decided, .pd-narrow .pd-prcard, .pd-narrow .pd-addrow { display: none; }
.pd-narrow .pd-dep { grid-template-columns: 54px minmax(0, 1fr) 48px 70px; } .pd-narrow .pd-plat { display: none; }
.pd-narrow .pd-leave-big { font-size: 34px; }
.pd-narrow .pd-log { flex: none; height: 108px; } .pd-narrow .pd-photo { height: 180px; }
.pd-narrow .pd-sc-deck .pd-sheet-in, .pd-narrow.pd-sc-deck .pd-sheet-in { padding: 54px 0 92px; }
.pd-narrow .pd-deck { grid-template-columns: minmax(0, 1fr); background: #fff; }
.pd-narrow .pd-deck { grid-template-rows: auto auto auto; }
.pd-narrow .pd-thumbs { grid-row: 2; flex-direction: row; gap: 8px; padding: 4px 14px 8px; background: none; border: 0; }
.pd-narrow .pd-thumb { flex: 1; flex-direction: column; } .pd-narrow .pd-thumb:nth-child(n+5) { display: none; } .pd-narrow .pd-thumb b { font-size: 6px; }
.pd-narrow .pd-deck-bar { grid-row: 3; }
.pd-narrow .pd-rain { height: 56px; }
.pd-narrow .pd-stage-d { padding: 12px 14px 8px; } .pd-narrow .pd-slide { padding: 18px 20px 16px; }
.pd-narrow .pd-slide h5 { font-size: 15px; max-width: 170px; } .pd-narrow .pd-slide-fig { right: 20px; top: 18px; font-size: 26px; }
.pd-narrow .pd-deck-bar { padding: 10px 14px; }
.pd-narrow .pd-kpis { grid-template-columns: repeat(2, 1fr); }
.pd-narrow .pd-fresh { font-size: 11.5px; }

/* ---------------------------------------------------------------- `does`: six spaces, one window at a time */
.pd-does { margin-top: 48px; }
.pd-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-bottom: 28px; }
.pd-tab { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 14px 16px; border: 0; border-radius: 16px;
  background: transparent; color: #ffffff80; font: inherit; text-align: left; cursor: pointer; transition: background .25s, color .25s; }
.pd-tab:hover { color: #fff; background: #ffffff0a; }
.pd-tab[aria-selected="true"] { color: #fff; background: #1c1c1f; box-shadow: inset 0 0 0 1px #ffffff14; }
.pd-tab .pd-tab-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #ffffff14; color: #fff; transition: background .25s, color .25s; }
.pd-tab[aria-selected="true"] .pd-tab-ic { background: #fff; color: var(--ink); }
.pd-tab b { font-size: 14.5px; font-weight: 600; line-height: 1.25; letter-spacing: -.005em; }
.pd-tab-bar { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: #fff; opacity: 0; transform: scaleX(0); transform-origin: left; }
.pd-does.pd-auto .pd-tab[aria-selected="true"] .pd-tab-bar { opacity: .55; animation: pd-fill var(--pd-time, 7s) linear forwards; }
.pd-does.pd-held .pd-tab[aria-selected="true"] .pd-tab-bar { animation-play-state: paused; }
@keyframes pd-fill { to { transform: scaleX(1); } }
.pd-pane + .pd-pane { margin-top: 72px; }
.pd-pane-words { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; margin-top: 30px; }
.pd-pane-words h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.pd-pane-words h3 span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: #ffffff80; }
.pd-pane-words p { color: #ffffffb3; font-size: 16px; line-height: 1.6; max-width: 560px; }
/* With the script, one pane at a time; without it, all six stand one after another. */
.pd-does.pd-js .pd-pane { display: none; margin-top: 0; }
.pd-does.pd-js .pd-pane.on { display: block; animation: pd-in .45s cubic-bezier(.2, .7, .2, 1); }
.pd-does:not(.pd-js) .pd-tabs { display: none; }
@keyframes pd-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------------------------------------------------------------- the look, three times */
.pd-lookband { margin-top: 112px; }
.pd-lookhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 36px; }
.pd-lookhead h3 { text-wrap: balance; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.04; font-weight: 700; letter-spacing: -.04em; }
.pd-lookhead p { color: #ffffffb3; font-size: 16px; line-height: 1.6; }
.pd-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pd-look { margin: 0; min-width: 0; }
.pd-said { margin-bottom: 14px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.pd-said span { display: block; margin-bottom: 3px; font-size: 12.5px; font-weight: 400; letter-spacing: 0; color: var(--faint); }
.band.black .pd-said span { color: #ffffff80; }
.pd-lookwin { --pd-w: 470px; --pd-hh: 390px; }
.pd-lookwin .pd-side { width: 124px; padding: 0 6px 8px; } .pd-lookwin .pd-sheet-in { padding: 28px 18px 16px; }
.pd-lookwin .pd-row { padding: 0 8px; } .pd-lookwin .pd-newchat kbd { display: none; }
.pd-lookwin .pd-head h4 { font-size: 20px; } .pd-lookwin .pd-head { margin-bottom: 12px; }
.pd-lookwin .pd-lk-days { min-height: 0; } .pd-lookwin .pd-lrun:nth-child(n+3) { display: none; }
.pd-lookwin .pd-head .pd-btn { display: none; }
.pd-lk { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; }
.pd-lk-days { display: flex; gap: 8px; height: 100%; min-height: 120px; }
.pd-lk-week { display: flex; flex-direction: column; } .pd-lk-week .pd-lk-days { flex: 1; }
.pd-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pd-dbar { flex: 1; width: 100%; display: flex; align-items: flex-end; border-radius: 8px; background: #0000000a; overflow: hidden; }
.pd-dbar i { width: 100%; background: #c8c8cc; border-radius: 8px 8px 0 0; }
.pd-day.today .pd-dbar i { background: var(--pa); }
.pd-day b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; } .pd-day em { font-style: normal; font-size: 11px; color: var(--pf); }
.pd-lk-chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 8px; background: #2f6fe41a; color: var(--pa); }
.pd-lrun { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--pl); }
.pd-cap + .pd-lrun { border-top: 0; }
.pd-lrun-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #0000000a; color: var(--pm); flex: none; }
.pd-lrun div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; } .pd-lrun b { font-weight: 500; } .pd-lrun i { font-style: normal; font-size: 11.5px; color: var(--pf); }
.pd-lrun em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; } .pd-lrun small { font-weight: 400; color: var(--pf); font-size: 11px; }
.pd-lookwin .pd-lrun:nth-child(n+4) { display: none; }

/* Soft and pink: round, airy, rose ink. */
.pd-look-soft .pd-win { --pk: #4a2033; --pm: #93607a; --pf: #b48aa0; --pl: #e0457f1f; --pa: #d9487a; background: #f6dbe6; font-family: "Avenir Next", "Nunito", var(--font); }
.pd-look-soft .pd-sheet { background: #fff7fa; border-radius: 22px; box-shadow: 0 1px 2px #d9487a1a; }
.pd-look-soft .pd-card { background: #fff; border-radius: 22px; box-shadow: 0 1px 2px #d9487a14, 0 12px 28px -14px #d9487a40; }
.pd-look-soft .pd-row.sel { background: #fff; border-radius: 14px; box-shadow: 0 6px 14px -8px #d9487a66; }
.pd-look-soft .pd-head h4 { font-weight: 500; } .pd-look-soft .pd-btn.main { border-radius: 15px; background: #d9487a; box-shadow: 0 8px 18px -8px #d9487a; }
.pd-look-soft .pd-dbar { border-radius: 14px; background: #d9487a12; } .pd-look-soft .pd-dbar i { background: #e7b0c6; border-radius: 14px; }
.pd-look-soft .pd-lk-chip { background: #d9487a1a; color: #c0306a; border-radius: 12px; }
.pd-look-soft .pd-lrun-ic { border-radius: 50%; background: #d9487a14; color: #d9487a; }
.pd-look-soft .pd-lights i { background: #e7c3d2; }
/* A serious newspaper: serif type, hairlines, square edges, no fills. */
.pd-look-paper .pd-win { --pk: #1d1b17; --pm: #5d574c; --pf: #8a8376; --pl: #1d1b1726; --pa: #1d1b17; background: #e9e4d8; font-family: Georgia, "Times New Roman", serif; border-radius: 6px; }
.pd-look-paper .pd-sheet { background: #f7f3ea; border-radius: 0; box-shadow: -1px 0 0 #1d1b1733; margin: 0; }
.pd-look-paper .pd-card { background: transparent; border-radius: 0; padding: 12px 0 0; border-top: 2px solid #1d1b17; }
.pd-look-paper .pd-row.sel { background: #1d1b170f; border-radius: 0; box-shadow: inset 3px 0 0 #1d1b17; }
.pd-look-paper .pd-head h4 { font-size: 30px; font-weight: 400; letter-spacing: -.01em; }
.pd-look-paper .pd-head { border-bottom: 1px solid #1d1b1733; padding-bottom: 12px; }
.pd-look-paper .pd-btn.main { border-radius: 0; background: #1d1b17; box-shadow: none; }
.pd-look-paper .pd-dbar { border-radius: 0; background: none; border-bottom: 1px solid #1d1b1740; }
.pd-look-paper .pd-dbar i { border-radius: 0; background: #b3ab9b; } .pd-look-paper .pd-day.today .pd-dbar i { background: #1d1b17; }
.pd-look-paper .pd-lk-chip { border-radius: 0; background: none; box-shadow: inset 0 0 0 1px #1d1b17; color: #1d1b17; }
.pd-look-paper .pd-lrun-ic { border-radius: 0; background: none; box-shadow: inset 0 0 0 1px #1d1b1733; }
.pd-look-paper .pd-cap { font-style: italic; } .pd-look-paper .pd-lights i { background: #c7bfae; }
/* Playful and loud: thick outlines, hard shadows, candy colours. */
.pd-look-comic .pd-win { --pk: #121212; --pm: #2a2a2a; --pf: #555; --pl: #12121233; --pa: #7c3aed; background: #ffd23f;
  font-family: "Chalkboard SE", "Comic Sans MS", "Marker Felt", var(--font); box-shadow: 0 0 0 2.5px #121212, 8px 8px 0 #121212; }
.pd-look-comic .pd-sheet { background: #fff8e7; border-radius: 18px; box-shadow: 0 0 0 2.5px #121212, 5px 5px 0 #121212; }
.pd-look-comic .pd-card { border-radius: 16px; box-shadow: 0 0 0 2px #121212, 4px 4px 0 #121212; }
.pd-look-comic .pd-lk-week { background: #b8f2a0; } .pd-look-comic .pd-lk-runs { background: #a8e1ff; }
.pd-look-comic .pd-row.sel { background: #b8f2a0; box-shadow: 0 0 0 2px #121212, 3px 3px 0 #121212; }
.pd-look-comic .pd-newchat { background: #fff; box-shadow: 0 0 0 2px #121212; }
.pd-look-comic .pd-head h4 { font-weight: 700; } .pd-look-comic .pd-btn.main { border-radius: 12px; background: #7c3aed; box-shadow: 0 0 0 2px #121212, 3px 3px 0 #121212; }
.pd-look-comic .pd-dbar { background: #ffffff99; border-radius: 6px; box-shadow: inset 0 0 0 2px #121212; }
.pd-look-comic .pd-dbar i { background: #ff6fa8; border-radius: 0; box-shadow: 0 0 0 2px #121212; } .pd-look-comic .pd-day.today .pd-dbar i { background: #7c3aed; }
.pd-look-comic .pd-lk-chip { background: #fff; color: #121212; box-shadow: 0 0 0 2px #121212; }
.pd-look-comic .pd-lrun-ic { background: #fff; box-shadow: 0 0 0 2px #121212; color: #121212; }
.pd-look-comic .pd-lrun { border-top: 2px dashed #12121240; }

/* ---------------------------------------------------------------- examples: the sentence, then the space */
.pd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pd-ex { display: flex; flex-direction: column; min-width: 0; border-radius: 24px; background: var(--card); padding: 8px; }
.pd-ex.wide { grid-column: span 2; }
.pd-ex-ask { position: relative; padding: 16px 16px 18px 46px; }
.pd-ex-ask::before { content: ""; position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); }
.pd-ex-ask::after { content: ""; position: absolute; left: 25px; top: 36px; bottom: -2px; border-left: 1.5px dashed #00000033; }
.pd-ex-you { display: block; font-size: 12px; color: var(--faint); margin-bottom: 2px; }
.pd-ex-ask p { font-size: 17px; line-height: 1.38; font-weight: 500; letter-spacing: -.012em; color: var(--ink); text-wrap: pretty; }
.pd-ex-space { flex: 1; display: flex; flex-direction: column; padding: 16px 18px 18px; border-radius: 18px; background: #fff;
  box-shadow: 0 0 0 .5px #0000001a, 0 1px 2px #0000000d; color: var(--ink); font-size: 13.5px; line-height: 1.45; min-width: 0; }
.pd-ex-top { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; font-size: 13px; white-space: nowrap; }
.pd-ex-top b { font-weight: 600; } .pd-ex-top .ic { color: var(--muted); }
.pd-ex-top span { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 11.5px ui-monospace, "SF Mono", Menlo, monospace; color: var(--faint); }
.pd-ex-body { flex: 1; display: flex; flex-direction: column; }
.pd-w-big { display: flex; align-items: baseline; gap: 7px; font-size: 30px; font-weight: 600; letter-spacing: -.025em; line-height: 1.05; margin-bottom: 12px; }
.pd-w-big small { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.pd-w-big .pd-chip { align-self: center; margin-left: auto; }
.pd-ex .pd-chip.good { background: #dff5c9; color: #2c6a12; } .pd-ex .pd-chip.bad { background: #fde0e3; color: #b4233a; }
.pd-ex .pd-sd.ok { background: #3e7d1c; } .pd-ex .pd-sd.bad { background: #a3263b; } .pd-ex .pd-sd.warn { background: #b9561c; }
.pd-ex .pd-box { box-shadow: inset 0 0 0 1.5px #00000026; }
.pd-ex .pd-small { color: var(--muted); }
/* Pull requests */
.pd-pr { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pd-pr-w { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pd-pr-w b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pd-pr-w i { font-style: normal; font-size: 12px; color: var(--faint); }
.pd-pr-s { font-size: 12px; color: var(--muted); white-space: nowrap; } .pd-pr-s.bad { color: #a3263b; } .pd-pr-s.warn { color: #9a4a17; }
/* CI: today's runs as lanes on the hours */
.pd-ci { --ci-l: 128px; --ci-r: 64px; position: relative; }
.pd-ci-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.pd-ci-n { width: 118px; flex: none; display: flex; flex-direction: column; line-height: 1.2; }
.pd-ci-n b { font-weight: 500; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pd-ci-n i { font-style: normal; font-size: 11px; color: var(--faint); }
.pd-ci-lane { position: relative; flex: 1; height: 10px; border-radius: 5px; background: #0000000a; }
.pd-ci-lane i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: #3e7d1c; }
.pd-ci-lane i.bad { background: #a3263b; } .pd-ci-lane i.run { background: #2f6fe4; }
.pd-ci-t { width: 54px; text-align: right; font-size: 11.5px; color: var(--faint); display: flex; justify-content: flex-end; }
.pd-tbtn { width: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 3px 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 500; }
.pd-ci-axis { display: flex; justify-content: space-between; margin: 4px 64px 0 128px; font-size: 11px; color: var(--faint); }
/* Signups */
.pd-ex .cline { fill: none; stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.pd-ex .cline.before { stroke: #1111134d; stroke-width: 1.5; stroke-dasharray: 4 4; }
.pd-ex .cline-area { fill: #1111130f; } .pd-ex .cline-dot { fill: var(--ink); }
.pd-ex .chart { display: block; width: 100%; height: auto; overflow: visible; }
.pd-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.pd-legend span { display: flex; align-items: center; gap: 6px; } .pd-legend-r { margin-left: auto; }
.pd-legend .ln { width: 16px; border-top: 2.5px solid var(--ink); } .pd-legend .ln.before { border-top: 1.5px dashed #11111380; }
/* Meetings: the day as a column of hours */
.pd-mts { position: relative; display: flex; flex-direction: column; gap: 6px; }
.pd-mt { display: flex; gap: 10px; }
.pd-mt time { width: 40px; flex: none; padding-top: 7px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pd-mt-b { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; min-height: calc(30px + var(--len) * 26px); padding: 6px 10px;
  border-radius: 10px; background: #0000000a; box-shadow: inset 3px 0 0 #6b6b73; line-height: 1.3; }
.pd-mt-b b { font-weight: 500; } .pd-mt-b i { font-style: normal; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-mt.owe .pd-mt-b { background: #fff4e0; box-shadow: inset 3px 0 0 #b9561c; } .pd-mt.owe .pd-mt-b i { color: #8a4410; }
.pd-mt-now { position: absolute; left: 44px; right: 0; top: 64px; border-top: 1.5px solid #a3263b; }
.pd-mt-now::before { content: ""; position: absolute; left: -4px; top: -4.5px; width: 7px; height: 7px; border-radius: 50%; background: #a3263b; }
.pd-mt-now span { position: absolute; right: 0; top: -17px; font-size: 10.5px; color: #a3263b; font-style: normal; }
/* Errors */
.pd-err { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pd-err-w { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pd-err-w b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pd-err-w i { font-style: normal; font-size: 11.5px; color: var(--faint); }
.pd-spark { flex: none; overflow: visible; } .pd-spark polyline { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.pd-err .pd-chip { width: 44px; text-align: center; }
/* Release */
.pd-rel-top { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.pd-rel-top .chart { width: 66px; flex: none; } .pd-rel-top .pd-w-big { margin-bottom: 2px; } .pd-rel-top .pd-small { margin-top: 0; }
.pd-ex .ring { stroke: var(--ink); } .pd-ex .ring-track { stroke: #00000012; }
.pd-rels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.pd-rel { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.pd-rel b { flex: 1; min-width: 0; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-rel.done .pd-box { background: var(--ink); box-shadow: none; } .pd-rel.done b { color: var(--faint); text-decoration: line-through; text-decoration-color: #00000033; }
.pd-rel .pd-faint { color: var(--faint); font-size: 11.5px; }
/* Invoices */
.pd-inv-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-bottom: 10px; border-radius: 12px; overflow: hidden; background: var(--line); }
.pd-inv-top div { background: #f7f7f6; padding: 8px 10px; display: flex; flex-direction: column; }
.pd-inv-top span { font-size: 11px; color: var(--faint); } .pd-inv-top b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; } .pd-inv-top b.bad { color: #a3263b; }
.pd-inv { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.pd-inv-f { width: 26px; height: 30px; border-radius: 4px; display: grid; place-items: center; flex: none; background: #0000000a; color: var(--muted); }
.pd-inv-w { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; } .pd-inv-w b { font-weight: 500; } .pd-inv-w i { font-style: normal; font-size: 11px; color: var(--faint); }
.pd-inv-v { font-weight: 500; font-variant-numeric: tabular-nums; }
.pd-inv-s { width: 84px; text-align: right; font-size: 11.5px; color: var(--muted); } .pd-inv-s.ok { color: #3e7d1c; } .pd-inv-s.bad { color: #a3263b; }
.pd-drop { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-radius: 10px; border: 1.5px dashed #00000026; color: var(--faint); font-size: 12px; }
.pd-inv:last-of-type { margin-bottom: 10px; }
.pd-after { margin-top: 32px; text-align: center; }

/* ---------------------------------------------------------------- the rest of the day: the draft's tiles, kept */
/* Money: a ledger. Figures in tabular mono, a budget bar with today on it, rows with dotted leaders. */
.pd-ex-money { background: #f3f1ea; }
.pd-ex-money .pd-x { border-top-color: #0000001a; }
.pd-mn-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.pd-mn-big { font-size: 46px; font-weight: 600; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.pd-mn-big sup { font-size: 18px; letter-spacing: 0; color: var(--faint); vertical-align: 18px; margin-left: 2px; }
.pd-mn-sub { margin-top: 8px; color: var(--muted); font-size: 13px; }
.pd-mn-left { text-align: right; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.pd-mn-left b { display: block; font-size: 22px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; color: #2c6a12; letter-spacing: -.02em; }
.pd-mn-bar { position: relative; display: flex; gap: 2px; height: 14px; margin-top: 26px; border-radius: 4px; background: repeating-linear-gradient(-45deg, #0000000d 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 1px #00000014; }
.pd-mn-bar > i { height: 100%; }
.pd-mn-bar > i:first-child { border-radius: 4px 0 0 4px; }
.pd-mn-today { position: absolute; top: -8px; bottom: -8px; width: 0; border-left: 1.5px solid var(--ink); }
.pd-mn-today span { position: absolute; top: -18px; left: -1px; transform: translateX(-50%); font-size: 11px; color: var(--ink); white-space: nowrap; }
.pd-mn-scale { display: flex; justify-content: space-between; margin-top: 8px; font: 11px "SF Mono", Menlo, monospace; color: var(--faint); }
.pd-mn-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); column-gap: 28px; margin-top: 14px; }
.pd-mn-row { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 13.5px; border-top: 1px solid #0000000f; }
.pd-mn-row > i { width: 8px; height: 8px; border-radius: 2px; align-self: center; flex: none; }
.pd-mn-row em { flex: 1; border-bottom: 1.5px dotted #00000030; transform: translateY(-3px); }
.pd-mn-row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.pd-mn-row small { width: 30px; text-align: right; color: var(--faint); font-size: 11.5px; }
.pd-mn-c1 { background: #1d1d1f; } .pd-mn-c2 { background: #5c5c62; } .pd-mn-c3 { background: #8e8e94; } .pd-mn-c4 { background: #b8b8bd; } .pd-mn-c5 { background: #d6d6da; }

/* Sleep: the night. Each night a capsule from bedtime to waking on a clock, last night lit. */
.pd-ex-sleep { background: #14151c; color: #e9e9f0; }
.pd-ex-sleep .pd-ex-top { color: #9a9aab; } .pd-ex-sleep .pd-ex-top .ic { color: #c9c4ff; }
.pd-ex-sleep .pd-x { color: #e9e9f0; border-top-color: #ffffff1a; } .pd-ex-sleep .pd-x span { color: #8b8b9c; }
.pd-sl-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-sl-big { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.pd-sl-big small { font-size: 15px; font-weight: 500; color: #9a9aab; margin: 0 4px 0 1px; letter-spacing: 0; }
.pd-sl-head > span { color: #9a9aab; font-size: 12.5px; }
.pd-sl-chart { display: block; width: 100%; height: auto; margin-top: 14px; overflow: visible; }
.pd-sl-grid { stroke: #ffffff12; stroke-width: 1; stroke-dasharray: 2 3; }
.pd-sl-hr { fill: #8b8b9c; font: 10px "SF Mono", Menlo, monospace; text-anchor: end; }
.pd-sl-cap { fill: #3b3a5c; }
.pd-sl-cap.last { fill: #c9c4ff; filter: drop-shadow(0 0 6px #c9c4ff80); }
.pd-sl-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 11.5px; color: #8b8b9c; }
.pd-sl-foot span:nth-child(2) { color: #c9c4ff; }

/* Diet: a plate. Calories as a ring split by macro, the day's meals as a small log. */
.pd-ex-diet { background: #f4f2ee; }
.pd-dt-top { display: flex; align-items: center; gap: 18px; }
.pd-dt-plate { position: relative; width: 112px; flex: none; }
.pd-dt-ring { display: block; width: 100%; height: auto; }
.pd-dt-track { stroke: #00000010; }
.pd-dt-pr { stroke: #2f6b4f; background: #2f6b4f; } .pd-dt-cb { stroke: #d39a3a; background: #d39a3a; } .pd-dt-ft { stroke: #b85a3c; background: #b85a3c; }
.pd-dt-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.pd-dt-mid b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; } .pd-dt-mid span { font-size: 10.5px; color: var(--muted); }
.pd-dt-macros { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pd-dt-macros > div { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.pd-dt-macros span { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.pd-dt-macros span i { width: 8px; height: 8px; border-radius: 50%; }
.pd-dt-macros b { font-weight: 600; font-variant-numeric: tabular-nums; } .pd-dt-macros small { font-weight: 400; color: var(--faint); }
.pd-dt-meals { margin-top: 16px; }
.pd-dt-meals > div { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-top: 1px dashed #00000018; font-size: 12.5px; }
.pd-dt-meals time { width: 38px; flex: none; color: var(--faint); font: 11px "SF Mono", Menlo, monospace; }
.pd-dt-meals span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-dt-meals b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }

/* Reading: a shelf of spines with a bookmark in each, then the book open now. */
.pd-ex-reading { background: #f1eee8; }
.pd-rd-shelf { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 176px; padding: 0 8px; overflow: hidden; }
.pd-rd-spine { position: relative; border-radius: 3px 3px 1px 1px; display: flex; align-items: center; justify-content: center;
  box-shadow: inset -3px 0 0 #00000022, inset 2px 0 0 #ffffff1f; }
.pd-rd-spine span { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 11.5px/1 Georgia, serif; letter-spacing: .02em; white-space: nowrap; }
.pd-rd-ov { background: #2f4a3a; color: #e8e2c9; } .pd-rd-ts { background: #c8b98f; color: #3a3226; }
.pd-rd-pi { background: #1f2a44; color: #d8c690; } .pd-rd-mm { background: #8a3b2e; color: #f1e3cf; }
.pd-rd-st { background: #e6dfcf; color: #5a4a36; } .pd-rd-di { background: #4b5d6b; color: #eef0f0; } .pd-rd-kl { background: #d9a441; color: #3a2a12; }
.pd-rd-mark { position: absolute; right: -4px; width: 9px; height: 18px; margin-bottom: -9px; background: #d93b3b;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.pd-rd-plank { height: 8px; margin: 0 -4px; border-radius: 2px; background: #c9b896; box-shadow: 0 6px 10px -6px #0000004d; }
.pd-rd-now { margin-top: 18px; }
.pd-rd-now > span, .pd-rd-next > span { display: block; font-size: 11.5px; color: var(--faint); }
.pd-rd-now b { font: 400 19px/1.3 Georgia, serif; }
.pd-rd-line { height: 3px; margin-top: 10px; border-radius: 2px; background: #0000001a; }
.pd-rd-line i { display: block; height: 100%; border-radius: 2px; background: #2f4a3a; }
.pd-rd-meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.pd-rd-next { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* Lisbon: a band of azulejo, a count of days, and the list with what each item is. */
.pd-ex-trip { background: #f7f8fb; overflow: hidden; }
.pd-tr-band { height: 56px; margin: -4px -22px 16px; }
.pd-tr-tiles { display: block; width: 100%; height: 100%; }
.pd-tr-count { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.pd-tr-count b { font: 400 54px/1 Georgia, serif; color: #1f4fa1; letter-spacing: -.03em; }
.pd-tr-count span { display: block; font-size: 14px; font-weight: 500; } .pd-tr-count i { font-style: normal; font-size: 12px; color: var(--muted); }
.pd-tr-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid #1f4fa114; font-size: 13.5px; }
.pd-tr-item .what b { font-weight: 500; } .pd-tr-item .what i { font-style: normal; font-size: 11.5px; color: var(--faint); }
.pd-tr-box { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #1f4fa166; display: grid; place-items: center; flex: none; color: #fff; }
.pd-tr-box .ic { stroke-width: 3; }
.pd-tr-item.done .pd-tr-box { background: #1f4fa1; box-shadow: none; }
.pd-tr-item.done .what b { color: var(--faint); text-decoration: line-through; text-decoration-color: #00000040; }

/* Focus: a week of hours as a heat grid with labelled hours, a row of totals, and a key. */
.pd-ex-focus { background: #f2f3f1; }
.pd-fc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.pd-fc-big { display: flex; align-items: baseline; gap: 8px; font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.pd-fc-big small { font-size: 18px; letter-spacing: 0; margin-left: -6px; }
.pd-fc-big span { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.pd-fc-big em { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0; color: #2c6a12; background: #dff5c9; padding: 2px 6px; border-radius: 6px; align-self: center; }
.pd-fc-best { text-align: right; } .pd-fc-best span { display: block; font-size: 11.5px; color: var(--faint); } .pd-fc-best b { font-size: 13.5px; font-weight: 600; }
.pd-fc-grid { display: grid; grid-template-columns: 34px repeat(10, minmax(0, 1fr)); gap: 4px; font-size: 11px; color: var(--faint); }
.pd-fc-h { font: 10.5px "SF Mono", Menlo, monospace; padding-bottom: 2px; }
.pd-fc-d { align-self: center; }
.pd-fc-grid > i { height: 20px; border-radius: 5px; }
.pd-fc-0 { background: #0000000a; } .pd-fc-1 { background: #1d4a3b2e; } .pd-fc-2 { background: #1d4a3b66; } .pd-fc-3 { background: #1d4a3baa; } .pd-fc-4 { background: #1d4a3b; }
.pd-fc-t { height: 26px; display: flex; align-items: flex-end; margin-top: 4px; }
.pd-fc-t i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: #1d4a3b; opacity: .55; }
.pd-fc-key { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 10px; font-size: 11px; color: var(--faint); }
.pd-fc-key i { width: 12px; height: 12px; border-radius: 3px; } .pd-fc-key span { margin: 0 4px; }

/* Habits: a chain for each, with the streak counted in days. */
.pd-ex-habits { background: #f6f3ee; }
.pd-hb-row + .pd-hb-row { margin-top: 14px; }
.pd-hb-name { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 6px; }
.pd-hb-name b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: #c2410c; }
.pd-hb-name b small { font-size: 11.5px; font-weight: 400; color: var(--faint); }
.pd-hb-chain { display: block; width: 100%; height: auto; overflow: visible; }
.pd-hb-links line { stroke: #c2410c; stroke-width: 3; stroke-linecap: round; }
.pd-hb-chain .on { fill: #c2410c; } .pd-hb-chain .off { fill: none; stroke: #00000026; stroke-width: 1.5; }
.pd-hb-chain .today { stroke: #f6f3ee; stroke-width: 2; filter: drop-shadow(0 0 0 #c2410c); }
.pd-hb-axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; color: var(--faint); }



.pd-dt-note { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: #2f6b4f14; color: #2f6b4f; font-size: 12.5px; line-height: 1.45; }
.pd-dt-note b { font-weight: 600; }
.pd-mn-days { display: flex; align-items: flex-end; gap: 14px; margin-top: 18px; font-size: 11.5px; color: var(--faint); }
.pd-mn-days > span { flex: none; padding-bottom: 1px; } .pd-mn-days .chart { flex: 1; min-width: 0; height: 34px; }
.pd-mn-col { fill: #00000026; } .pd-mn-col.hot { fill: var(--ink); }
@media (max-width: 620px) { .pd-mn-days { flex-wrap: wrap; justify-content: space-between; } .pd-mn-days .chart { flex: 0 0 100%; order: 2; } }

/* ---------------------------------------------------------------- how: three moments of one window */
.pd-how { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pd-how-step { display: flex; flex-direction: column; border-radius: 24px; background: var(--card); padding: 10px 10px 24px; min-width: 0; }
.pd-how-pic { position: relative; border-radius: 16px; background: #1b1b1e; padding: 20px 0 0 20px; overflow: hidden; height: 330px; }
.pd-howwin { --pd-w: 720px; --pd-hh: 560px; --k: .6; }
.pd-howwin .pd-sheet-in { padding: 44px 26px 22px; }
/* The first two steps show the sheet, where the conversation is; the last shows the sidebar, where the space lands. */
.pd-howwin.pd-crop { overflow: hidden; border-radius: 10px 0 0 0; }
.pd-howwin.pd-crop .pd-scale { left: calc(-196px * var(--k)); }
.pd-how-words { padding: 0 12px; }
.pd-num { display: block; margin: 20px 0 6px; font-size: 13px; font-weight: 700; color: var(--hi); font-variant-numeric: tabular-nums; }
.pd-how-words h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.pd-how-words p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.pd-howwin .pd-side { width: 196px; }
.pd-noside .pd-side .pd-row:not(.pd-newchat) { opacity: 1; }
/* The conversation as the window draws it. */
.pd-home { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 20px; }
.pd-home h5 { font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.pd-home > p { margin-top: 6px; color: var(--pm); }
.pd-composer { width: 100%; max-width: 560px; margin-top: 22px; padding: 14px 14px 10px 18px; border-radius: 22px; background: #fff; text-align: left;
  box-shadow: 0 0 0 1px #0000001a, 0 12px 28px -16px #00000040; }
.pd-composer.small { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; max-width: none; }
.pd-typed { font-size: 14px; line-height: 1.45; min-height: 42px; }
.pd-typed.pd-ph { color: var(--pf); }
.pd-caret { display: inline-block; width: 1.5px; height: 16px; margin-left: 1px; vertical-align: -3px; background: var(--pa); }
.pd-comp-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; color: var(--pm); }
.pd-model { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--pk); font-weight: 500; }
.pd-send { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pk); color: #fff; flex: none; }
.pd-send.off { background: #0000000f; color: var(--pf); }
.pd-drops { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; }
.pd-file { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #f4f4f3; box-shadow: 0 0 0 .5px #0000001a; }
.pd-ideas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; font-size: 12.5px; }
.pd-idea { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px #0000001f; }
.pd-convo { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.pd-ubub { align-self: flex-end; max-width: 78%; padding: 10px 14px; border-radius: 18px; background: #f0f0ee; line-height: 1.45; }
.pd-worked { display: flex; align-items: center; gap: 7px; color: var(--pm); font-size: 12.5px; padding-bottom: 8px; border-bottom: 1px solid var(--pl); }
.pd-steps-l { display: flex; flex-direction: column; gap: 4px; }
.pd-st { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--pm); white-space: nowrap; }
.pd-st b { font-weight: 500; color: var(--pk); } .pd-st span { overflow: hidden; text-overflow: ellipsis; }
.pd-st.ok > .ic { color: var(--pok); } .pd-st.bad > .ic { color: var(--pwarn); } .pd-st.wait > .ic { color: #d98a00; }
.pd-answer { line-height: 1.55; }
.pd-published { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: #1f9d5514; box-shadow: inset 0 0 0 1px #1f9d5533; font-size: 12.5px; }
.pd-published > .ic { color: var(--pok); } .pd-published b { font-weight: 600; } .pd-published span { flex: 1; color: var(--pm); }
.pd-published .pd-btn { height: 26px; background: #fff; }
.pd-look-card { position: absolute; z-index: 4; left: 400px; top: 170px; width: 280px; padding: 12px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 .5px #0000002e, 0 30px 60px -24px #00000080; font-size: 12px; color: var(--pm); }
.pd-offstage { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.pd-look-pic { padding: 14px; border-radius: 10px; background: #f6f6f5; box-shadow: inset 0 0 0 1px #0000000f; color: #1c1c1f; display: flex; flex-direction: column; }
.pd-look-pic b { font-size: 15px; } .pd-look-pic span { color: var(--pm); }
.pd-mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; margin-top: 12px; }
.pd-mini-bars i { flex: 1; border-radius: 3px; background: #c8c8cc; } .pd-mini-bars i.hot { background: #2f6fe4; }
.pd-look-cap { display: flex; align-items: center; gap: 6px; margin-top: 10px; }

/* ---------------------------------------------------------------- /how-it-works/: chapters */
.pd-chapters .wrap { max-width: 1240px; }
.pd-ch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.pd-ch:first-child { border-top: 0; padding-top: 24px; }
.pd-ch-wide { grid-template-columns: minmax(0, 1fr); gap: 36px; }
.pd-ch-wide .pd-ch-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(28px, 5vw, 72px); align-items: start; }
.pd-ch-wide .pd-ch-h h2 { margin-bottom: 0; }
.pd-ch .pd-num { margin: 0 0 8px; color: var(--ink); }
.pd-ch h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; margin-bottom: 16px; text-wrap: balance; }
.pd-ch-text p { max-width: 560px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.pd-ch-text p + p { margin-top: 12px; }
.pd-ch-pic { min-width: 0; }
.pd-ch:not(.pd-ch-wide):nth-child(even) .pd-ch-pic { order: -1; }
.pd-more { margin-top: 18px !important; }
.pd-glance > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid #00000014; }
.pd-glance > div:last-child { border-bottom: 1px solid #00000014; }
.pd-glance dt { color: var(--faint); font-size: 14px; padding-top: 2px; } .pd-glance dd { margin: 0; font-size: 16px; line-height: 1.5; }

/* Panels: what a chapter shows that is not a whole window, laid out at the column's width. */
.pd-panel { --pk: #1c1c1f; --pm: #62626a; --pf: #8e8e97; --pl: #00000012; --pa: #2f6fe4; --pok: #1f9d55; --pwarn: #a86b00;
  border-radius: 24px; background: var(--card); padding: 24px; font-size: 13.5px; line-height: 1.45; color: var(--pk); }
.pd-panel code { font: 12.5px ui-monospace, "SF Mono", Menlo, monospace; }
.pd-files-h, .pd-check-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 500; }
.pd-files-h .pd-faint { margin-left: auto; font-weight: 400; font-size: 12.5px; }
.pd-f { --d: 0; display: flex; align-items: center; gap: 9px; padding: 8px 0 8px calc(var(--d) * 22px); border-top: 1px solid var(--pl); }
.pd-f .ic { color: var(--pm); } .pd-f span { margin-left: auto; color: var(--pf); font-size: 12.5px; text-align: right; }
.pd-diff { margin-top: 14px; border-radius: 12px; background: #16171a; color: #d7d8de; overflow: hidden; }
.pd-diff-h { padding: 8px 14px; font: 12px ui-monospace, "SF Mono", Menlo, monospace; color: #8b8c94; border-bottom: 1px solid #ffffff14; }
.pd-diff > div:not(.pd-diff-h) { display: flex; gap: 10px; padding: 1px 14px; background: #1f9d5514; white-space: pre; overflow: hidden; }
.pd-diff > div:nth-child(2) { padding-top: 8px; } .pd-diff > div:last-child { padding-bottom: 8px; }
.pd-diff i { font-style: normal; color: #5fd38d; } .pd-diff code { font-size: 12px; }
.pd-vs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pd-v { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 .5px #0000001a; position: relative; }
.pd-v b { font-weight: 500; font-size: 12.5px; } .pd-v > .ic { position: absolute; right: 10px; bottom: 11px; color: var(--pok); stroke-width: 3; }
.pd-v-pic { height: 74px; border-radius: 8px; background: #f4f4f3; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.pd-v-pic i { height: 8px; border-radius: 4px; background: #dcdcdf; } .pd-v-pic i:first-child { width: 50%; background: #c4c4c8; } .pd-v-pic i:last-child { height: 22px; width: 80%; }
.pd-check-lines { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 .5px #0000001a; }
.pd-check-lines .pd-st { white-space: normal; }
.pd-nest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pd-nest-tree { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; border-radius: 16px; background: #f1f1ef; }
.pd-nest-tree .pd-row code { font-size: 11px; color: var(--pf); flex: none; }
.pd-nest-tree .pd-row[style*="--d:2"] { margin-left: 36px; }
.pd-notes { padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 .5px #0000001a; }
.pd-notes-h { display: flex; align-items: center; gap: 7px; } .pd-notes-h code { margin-left: auto; color: var(--pf); }
.pd-notes-d { margin: 10px 0 4px; color: var(--pm); }
.pd-notes-f { display: inline-block; padding: 2px 7px; border-radius: 6px; background: #0000000a; }
.pd-notes ul { margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.pd-notes li:last-child { position: relative; }
.pd-notes-new { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 10px; border-radius: 10px; background: #2f6fe412; color: var(--pa); font-size: 12.5px; }
.pd-notchs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.pd-ns-list { display: flex; flex-direction: column; gap: 10px; }
.pd-ns { position: relative; height: 56px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px #0000001a; overflow: hidden; }
.pd-ns .pd-notch { left: 22px; transform: none; }
.pd-ns > span { position: absolute; right: 14px; bottom: 9px; font-size: 12px; color: var(--pf); }
.pd-tray { border-radius: 16px; background: #fff; box-shadow: 0 0 0 .5px #0000001a; overflow: hidden; }
.pd-menubar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; height: 28px; padding: 0 12px; background: #ececea; font-size: 12px; }
.pd-mb-ring { width: 15px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--pk); }
.pd-tray-panel { margin: 8px 10px 12px auto; width: 88%; padding: 12px; border-radius: 14px; background: #f1f1ef; box-shadow: 0 16px 34px -16px #00000059; display: flex; flex-direction: column; gap: 10px; }
.pd-tray-panel p { line-height: 1.5; }
.pd-hist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pd-hist-h { display: flex; flex-direction: column; align-items: flex-start; } .pd-menu-list { min-width: 300px; }
.pd-menu { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--pa); color: #fff; font-size: 12.5px; }
.pd-menu-list { margin-top: 4px; padding: 6px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 .5px #0000002e, 0 16px 34px -14px #00000066; font-size: 12.5px; }
.pd-menu-list div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 10px; border-radius: 6px; white-space: nowrap; }
.pd-menu-list div.on { background: var(--pa); color: #fff; } .pd-menu-list div.on kbd { color: #ffffffcc; }
.pd-menu-list hr { border: 0; border-top: 1px solid var(--pl); margin: 4px 8px; }
.pd-hist-l { display: flex; flex-direction: column; padding: 8px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 .5px #0000001a; }
.pd-h { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding-left: 4px; }
.pd-h > i { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px #0000004d; background: #fff; position: relative; z-index: 1; }
.pd-h::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; border-left: 1.5px solid #00000014; }
.pd-h:first-child::before { top: 50%; } .pd-h:last-child::before { bottom: 50%; }
.pd-h b { flex: 1; min-width: 0; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-h.top > i { background: var(--pk); box-shadow: none; } .pd-h.top b { font-weight: 500; }
.pd-h .pd-btn { height: 26px; } .pd-h .pd-faint { font-size: 12px; }
.pd-reach { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.pd-reach-l { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 .5px #0000001a; }
.pd-st2 { display: flex; gap: 10px; align-items: flex-start; }
.pd-st2-ic { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; background: #0000000a; color: var(--pm); }
.pd-st2.wait .pd-st2-ic { background: #d98a0018; color: #b26b00; }
.pd-st2 div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; } .pd-st2 b { font-weight: 500; } .pd-st2 span { color: var(--pm); font-size: 12.5px; }
.pd-gate { padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 .5px #0000002e, 0 20px 44px -20px #00000066; }
.pd-gate-h { display: flex; align-items: center; gap: 8px; } .pd-gate-h .ic { color: #d98a00; }
.pd-gate p { margin: 6px 0 14px; color: var(--pm); } .pd-gate-b { display: flex; gap: 8px; }
.pd-accts { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pd-accts-l { padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 .5px #0000001a; }
.pd-acct { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--pl); }
.pd-cap + .pd-acct { border-top: 0; }
.pd-acct b { font-weight: 500; } .pd-acct span { flex: 1; color: var(--pm); } .pd-acct em { font-style: normal; font-size: 11.5px; padding: 1px 6px; border-radius: 5px; background: #0000000a; color: var(--pm); }
.pd-acct > .ic:last-child { color: var(--pok); stroke-width: 3; }
.pd-runs-on { padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px #0000002e, 0 16px 34px -14px #00000059; }
.pd-runs-on > div:not(.pd-ro-h) { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px; }
.pd-runs-on > div.on { background: #2f6fe414; } .pd-runs-on > div .ic:last-child { margin-left: auto; color: var(--pa); }
.pd-ro-h { display: flex; align-items: center; gap: 7px; padding: 6px 10px 8px; border-bottom: 1px solid var(--pl); margin-bottom: 4px; }
.pd-ro-h span { margin-left: auto; color: var(--pf); font-size: 12px; }
.pd-phonepic { display: grid; gap: 20px 24px; align-items: center; overflow: hidden; }
.pd-phone { position: relative; height: 430px; border-radius: 36px; background: #fff; padding: 46px 16px 0; box-shadow: 0 0 0 7px #1c1c1f, 0 0 0 8px #3a3a3f, 0 30px 60px -28px #000000a0; overflow: hidden; }
.pd-island { position: absolute; top: 11px; left: 50%; width: 72px; height: 20px; margin-left: -36px; border-radius: 12px; background: #000; }
.pd-ph-top { font-size: 12px; color: var(--pm); } .pd-ph-top span { display: flex; align-items: center; gap: 2px; }
.pd-phone h4 { margin-top: 8px; font-size: 20px; font-weight: 600; } .pd-phone > p { font-size: 12px; }
.pd-ph-list { margin-top: 8px; }
.pd-ph-list .pd-item { padding: 7px 0; }
.pd-ph-dock { position: absolute; left: 12px; right: 58px; bottom: 14px; height: 40px; border-radius: 20px; background: #f4f4f3; display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 0 0 .5px #0000001f; color: var(--pm); }
.pd-ph-dock .on { color: var(--pk); }
.pd-ph-ask { position: absolute; right: 12px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #f4f4f3; color: var(--pa); box-shadow: 0 0 0 .5px #0000001f; }
.pd-phonepic { grid-template-columns: 236px minmax(0, 1fr); padding: 32px; }
.pd-ph-mac { position: relative; height: 455px; }
.pd-inline { --pd-hh: 620px; position: absolute; left: 0; top: 0; width: 1040px; transform: scale(.735); transform-origin: 0 0; box-shadow: 0 0 0 .5px #00000026, 0 30px 60px -30px #00000059; }
.pd-ph-tags { grid-column: 1 / -1; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; font-size: 12.5px; color: var(--pm); }
.pd-ph-tags span { display: flex; align-items: center; gap: 6px; justify-content: center; } .pd-ph-tags span:last-child { justify-content: flex-start; }

/* ---------------------------------------------------------------- /examples/: the first sentence, marked */
.pd-first { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 32px; border-radius: 28px; background: var(--card); }
.pd-first-said span { display: block; font-size: 12.5px; color: var(--faint); margin-bottom: 6px; }
.pd-first-said p { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; font-weight: 500; letter-spacing: -.02em; }
.pd-first mark { background: none; color: inherit; padding: 0 2px; border-radius: 4px; box-shadow: inset 0 -.32em 0 var(--pd-hl); }
.pd-first sup { font-size: .45em; font-weight: 700; margin-left: 2px; vertical-align: .9em; }
.pd-m0 { --pd-hl: #ffe08a; } .pd-m1 { --pd-hl: #bfe6cc; } .pd-m2 { --pd-hl: #cddcff; }
.pd-tips { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.pd-tip { display: flex; gap: 14px; }
.pd-tipn { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--pd-hl); font-size: 13px; font-weight: 700; }
.pd-tip h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.pd-tip p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 980px) {
  .pd-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-pane-words, .pd-lookhead { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pd-looks { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .pd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-how { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .pd-ch, .pd-ch-wide .pd-ch-text { grid-template-columns: minmax(0, 1fr); }
  .pd-ch-wide .pd-ch-text h2, .pd-ch-wide .pd-ch-text p { grid-column: 1; grid-row: auto; }
  .pd-ch:not(.pd-ch-wide):nth-child(even) .pd-ch-pic { order: 0; }
  .pd-first { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .pd-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-tab { flex-direction: row; align-items: center; padding: 10px 12px; } .pd-tab b { font-size: 13.5px; }
  .pd-tab .pd-tab-ic { width: 30px; height: 30px; flex: none; }
  .pd-tiles { grid-template-columns: minmax(0, 1fr); } .pd-ex.wide { grid-column: auto; }
  .pd-ex-ask p { font-size: 16px; }
  .pd-rels { grid-template-columns: minmax(0, 1fr); }
  .pd-panel { padding: 16px; border-radius: 20px; }
  .pd-nest, .pd-notchs, .pd-hist, .pd-reach, .pd-accts, .pd-phonepic { grid-template-columns: minmax(0, 1fr); }
  .pd-ph-mac { display: none; } .pd-phone { width: 230px; margin: 0 auto; }
  .pd-vs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .pd-v b { font-size: 11px; }
  .pd-glance > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pd-first { padding: 20px; }
  .pd-ch { padding: 40px 0; }
  .pd-pr-s, .pd-legend-r { display: none; }
  .pd-ci { --ci-l: 100px; } .pd-ci-n { width: 90px; } .pd-ci-axis { margin-left: 100px; }
  .pd-f span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-spin, .pd-btn.busy::before { animation: none; }
  .pd-does.pd-js .pd-pane.on { animation: none; }
  .pd-does .pd-tab-bar { display: none; }
}
@media (max-width: 620px) {
  .pd-fc-head { flex-direction: column; align-items: flex-start; gap: 10px; } .pd-fc-best { text-align: left; }
  .pd-fc-big { flex-wrap: wrap; row-gap: 4px; } .pd-fc-big em { white-space: nowrap; }
  .pd-mn-head { flex-wrap: wrap; } .pd-mn-left { text-align: left; }
  .pd-ex-top span { display: none; }
  .pd-how-pic { height: 300px; }
}

/* The empty window: smaller, so the welcome fills it. */
.pd-midwin { --pd-w: 860px; --pd-hh: 520px; }
.pd-midwin .pd-side { width: 200px; }
@media (max-width: 980px) {
  .pd-ch-wide .pd-ch-text { grid-template-columns: minmax(0, 1fr); }
  .pd-ch-wide .pd-ch-h h2 { margin-bottom: 16px; }
  .pd-phonepic { grid-template-columns: minmax(0, 1fr); } .pd-ph-mac, .pd-ph-tags { display: none; }
}

/* Release: the week it ships in, with each merge where it landed. */
.pd-merged { margin-top: auto; padding-top: 16px; }
.pd-merged-h { font-size: 12px; color: var(--faint); margin-bottom: 22px; }
.pd-week-line { position: relative; height: 2px; margin: 0 10% 0 10%; background: #00000014; border-radius: 1px; }
.pd-week-line::before { content: ""; position: absolute; left: 0; width: 50%; top: 0; bottom: 0; background: var(--ink); border-radius: 1px; }
.pd-mg { position: absolute; top: -11px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pd-mg .pd-face { width: 22px; height: 22px; box-shadow: 0 0 0 2px #fff; }
.pd-mg i { font-style: normal; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pd-mg:nth-child(2) { top: -11px; } .pd-mg:nth-child(3) { top: -11px; margin-left: 6px; }
.pd-today, .pd-ship { position: absolute; top: -6px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; }
.pd-today::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #a3263b; box-shadow: 0 0 0 3px #fff; }
.pd-today b { font-weight: 500; color: #a3263b; }
.pd-ship { top: -10px; } .pd-ship .ic { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--ink); color: #fff; box-sizing: border-box; }
.pd-ship b { font-weight: 500; }
.pd-week-days { display: flex; justify-content: space-between; margin-top: 44px; font-size: 11.5px; color: var(--faint); }
.pd-week-days span { width: 20%; text-align: center; }

.pd-days7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 10px; text-align: center; }
.pd-days7 span { display: flex; flex-direction: column; line-height: 1.25; padding: 6px 0; border-radius: 8px; }
.pd-days7 span:nth-child(5) { background: #0000000a; }
.pd-days7 b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; } .pd-days7 i { font-style: normal; font-size: 10.5px; color: var(--faint); }
.pd-days7 em { font-style: normal; font-size: 10.5px; font-variant-numeric: tabular-nums; } .pd-days7 .up { color: #2c6a12; } .pd-days7 .down { color: #a3263b; }
