:root {
  color-scheme: dark;
  --home-ink: #f5f0e8;
  --home-muted: #d2cdc5;
  --home-disc: rgb(14 17 18 / .82);
  --home-line: rgb(245 240 232 / .46);
  --home-focus: #d7ff47;
  color: var(--home-ink);
  font-family: var(--phasic-text-face, "PHASIC Text", Georgia, serif);font-weight:430;font-size-adjust:.45;font-variation-settings:normal;font-optical-sizing:auto;font-synthesis:none;}
* { box-sizing: border-box; }
/* Home never moves under a finger (the owner, 20 Nov 2026 at 10:46 MST: "it grabs the dom and scrolls up even
   though there's nothing there"). The root cannot scroll and does not bounce; the frame is exactly the screen;
   anything that ever overflows scrolls inside .home-main; js/phasic-home.mjs holds the drags nothing else takes. */
html {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
body { margin: 0; overscroll-behavior: none; }
a, summary { touch-action: manipulation; }
[hidden] { display: none !important; }
.home-sr, [data-phasic-guidance="hidden"] .home-word {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.home-ui {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  transition: opacity 420ms cubic-bezier(.23, 1, .32, 1);
}
.home-ui[inert] { opacity: 0; pointer-events: none; }
/* The owner, 20 Nov 2026 at 19:47 MST, of the fix's preview on his iPhone: "the name of the app is sorting below i
   think it should be right to save space". Home's bar has the room for it (the mark, the name, then Apps and the @),
   so on a phone and on a fold's pane the name keeps the wide bar's place: on the mark's baseline, after a rule.
   Home only: a room's bar is full at this width, and there the name stays under the mark (shared/phasic-suite.css). */
@media (max-width: 470px), (horizontal-viewport-segments: 2) and (max-width: 940px) {
  :root .home-ui > .phasic-suite-header .phasic-suite-location { display: flex; align-items: baseline; column-gap: 12px; }
  :root .home-ui > .phasic-suite-header .phasic-suite-brand { align-items: center; padding-top: 0; }
  :root .home-ui > .phasic-suite-header .phasic-suite-context {
    position: static;
    pointer-events: auto;
    margin-top: 0;
    padding: 0 0 0 12px;
    border-inline-start: 1px solid var(--suite-rule);
    font-size: 14px;
  }
}
/* The taps slice, 20 Nov 2026: the bar clears the status bar and the Dynamic Island. js/phasic-home.mjs sets
   --home-top-floor in the web app only while, upright, its view is as tall as the screen and so reaches under the
   status bar (the inset can read stale there after a rotation); the probe below is how the module reads the inset. */
:root .home-ui > .phasic-suite-header { padding-top: max(5px, env(safe-area-inset-top), var(--home-top-floor, 0px)); }
.home-top-probe {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: env(safe-area-inset-top, 0px);
  visibility: hidden;
  pointer-events: none;
}
/* The link, its 73 x 44 box and the resting type are the suite's mark (shared/phasic-suite.css); the word
   inherits it, so Home's letters sit where every room's do. Only the impression below is Home's own. */
.home-brand-word {
  position: relative;
  isolation: isolate;
  inline-size: 100%;
  color: inherit;
  white-space: nowrap;
  font: inherit;
  font-optical-sizing: inherit;
  font-variation-settings: inherit;
  letter-spacing: inherit;
}
.home-brand:is(:hover, :focus-visible) .home-brand-word {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.home-brand-type { position: relative; }
[data-home-wordmark-impression] {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  color: var(--home-focus);
}
[data-home-wordmark-impression]::before, [data-home-wordmark-impression]::after {
  content: attr(data-word);
  position: absolute;
  inset: 0;
  opacity: calc(.76 * var(--wordmark-energy, 0));
  transform: translate(var(--wordmark-x, 0px), var(--wordmark-y, 0px));
  font-variation-settings: "opsz" calc(126 - 32 * var(--wordmark-energy, 0)),
    "wght" calc(590 + 125 * var(--wordmark-energy, 0)), "SOFT" calc(20 + 34 * var(--wordmark-energy, 0)),
    "WONK" var(--wordmark-wonk, 0);
}
/* The word draws from the mark's static baked face (shared/phasic-suite.css), which the impression
   inherits, so at rest and in the idle pulse it sits on the letters. While the tilt gives it energy (the motion
   module sets --wordmark-energy on this element), it swells through the variable masthead face, as before. */
[data-home-wordmark-impression][style*="--wordmark-energy"]::before,
[data-home-wordmark-impression][style*="--wordmark-energy"]::after { font-family: "PHASIC Masthead", Georgia, serif;font-size-adjust:none;}
[data-home-wordmark-impression]::before { clip-path: inset(0 0 47% 0); --wordmark-drift: 2.5px; }
[data-home-wordmark-impression]::after {
  clip-path: inset(53% 0 0 0);
  transform: translate(calc(-1 * var(--wordmark-x, 0px)), calc(-1 * var(--wordmark-y, 0px)));
  --wordmark-drift: -2.5px;
}
@keyframes home-wordmark-impression {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  18% { opacity: .82; transform: translate(var(--wordmark-drift), .8px); }
  58% { opacity: .36; transform: translate(calc(.48 * var(--wordmark-drift)), -.45px); }
}
@media (prefers-reduced-motion: no-preference) {
  [data-home-wordmark-impression][data-wordmark-pulse]::before,
  [data-home-wordmark-impression][data-wordmark-pulse]::after {
    animation: home-wordmark-impression 2.6s var(--phasic-suite-ease) both;
  }
}
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  [data-home-wordmark-impression] { display: none; }
}
.home-wordmark-tools button {
  width: 100%;
  min-height: 44px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}
.home-wordmark-tools p { max-inline-size: 24ch; min-inline-size: 0; margin: 0 8px 6px; color: var(--suite-muted); }
.home-wordmark-tools p:empty { display: none; }
.phasic-launcher {
  position: relative;
  z-index: 31;
  margin-inline-start: auto;
}
.phasic-launcher > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 8px;
  border-block-end: 1px solid transparent;
  cursor: pointer;
  list-style: none;
}
.phasic-launcher > summary::-webkit-details-marker { display: none; }
.phasic-launcher > summary:hover, .phasic-launcher[open] > summary { border-color: var(--home-line); }
.phasic-launcher :focus-visible { outline: 2px solid var(--home-focus); outline-offset: 2px; }
.phasic-launcher-mark {
  position: relative;
  display: block;
  width: 15px;
  height: 12px;
}
.phasic-launcher-mark > span {
  position: absolute;
  inset-inline: 0;
  top: 5px;
  height: 1.5px;
  background: currentColor;
}
.phasic-launcher-mark > span:first-child { transform: translateY(-3.25px); }
.phasic-launcher-mark > span:last-child { transform: translateY(3.25px); }
.phasic-launcher[open] .phasic-launcher-mark > span:first-child { transform: rotate(45deg); }
.phasic-launcher[open] .phasic-launcher-mark > span:nth-child(2) { opacity: 0; }
.phasic-launcher[open] .phasic-launcher-mark > span:last-child { transform: rotate(-45deg); }
.phasic-launcher-panel {
  position: absolute;
  inset: calc(100% + 4px) -44px auto auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(20rem, calc(100vw - 32px));
  max-height: calc(100dvh - var(--phasic-suite-height) - 18px);
  padding: 12px;
  border: 1px solid var(--home-line);
  background: #141414;
  color: var(--home-ink);
}
.phasic-launcher:not([open]) > .phasic-launcher-panel { display: none; }
.phasic-launcher-panel input {
  width: 100%;
  min-height: 44px;
  padding-inline: 8px;
  border: 1px solid var(--home-line);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
}
.phasic-launcher-panel p { margin: 0; color: var(--home-muted); }
.phasic-launcher-panel ul { overflow: auto; overscroll-behavior: contain; margin: 0; padding: 2px; list-style: none; }
.phasic-launcher-panel a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-inline: 8px;
  border-block-start: 1px solid var(--suite-rule);
  color: inherit;
  text-decoration: none;
}
.phasic-launcher-panel a span { color: var(--home-muted); }
.phasic-launcher-panel a:is(:hover, :focus-visible) {
  background: rgb(245 240 232 / .09);
  text-decoration: underline;
  text-underline-offset: .2em;
}
@media (prefers-reduced-motion: no-preference) {
  .phasic-launcher-mark > span { transition: transform 240ms var(--phasic-suite-ease), opacity 200ms var(--phasic-suite-ease); }
  .phasic-launcher[open] > .phasic-launcher-panel { animation: phasic-disclosure-in 240ms var(--phasic-suite-ease) both; }
}
.home-main {
  display: grid;
  align-content: safe center;
  justify-items: center;
  width: min(100%, 55rem);
  min-width: 0;
  min-height: 0;
  margin-inline: auto;
  /* No overscroll-behavior here (second repair, 20 November 2026). Where this box cannot scroll (390 by 844),
     `contain` on it was one cause of a pinch-zoomed page panning only part of the time in Chrome. Where it can
     scroll (320 by 260), the box itself took the pan; see :root[data-home-zoomed] below. The root's own
     `overscroll-behavior: none` is what keeps the page from bouncing. */
  overflow: hidden auto;
  padding: clamp(16px, 4vw, 40px) max(16px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
/* Pinched in (js/phasic-home.mjs syncZoom sets the attribute while visualViewport.scale is above 1.01): production's
   layout, so a one-finger pan moves the zoomed page and is never taken by .home-main (third repair, 20 Nov 2026).
   Where nothing overflows, these boxes are the same size either way, so nothing moves when a pinch begins or ends. */
:root[data-home-zoomed] { height: auto; overflow: visible; }
:root[data-home-zoomed] .home-ui { height: auto; min-height: 100vh; min-height: 100dvh; }
:root[data-home-zoomed] .home-main { overflow: visible; }
/* The taps slice, 20 Nov 2026 (the owner at 19:10 MST: "the additional title ... is making the icons sort a line
   lower"). The menu and the stage (the panels and Back) share one cell. The stage adds no height, so the cell is the
   menu's and is centred as the menu always was; in a panel the menu keeps its place unseen, and the panel's doors start
   at the cell's top, where the menu's doors start. What the stage draws below its doors still scrolls in .home-main. */
.home-stage, .home-menu { grid-area: 1 / 1; }
.home-stage {
  display: grid;
  justify-items: center;
  align-self: start;
  width: 100%;
  min-width: 0;
  height: 0;
}
.home-main:has(.home-panel:target) > .home-menu { visibility: hidden; }
.home-menu, .home-panel {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: 100%;
  min-width: 0;
}
.home-panel:not(:target), .home-back { display: none; }
.home-panel:target ~ .home-back { display: grid; }
/* The panel's name is under PHASIC in the bar now; its heading stays for screen readers and takes focus on the way in. */
.home-panel h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.home-panel h2:focus, .home-menu:focus { outline: none; }
.home-doors {
  --door-size: clamp(48px, 14vmin, 96px);
  --door-gap: clamp(8px, 3vmin, 32px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 8rem);
  justify-content: center;
  align-items: start;
  width: 100%;
  gap: var(--door-gap);
}
.home-menu .home-doors { --door-size: clamp(44px, min(12vw, 16vmin), 96px); }
.home-door {
  display: grid;
  position: relative;
  justify-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.home-door:focus-visible { outline: none; }
.home-disc {
  display: grid;
  place-items: center;
  width: var(--door-size);
  height: var(--door-size);
  border: 1px solid var(--home-line);
  border-radius: 50%;
  background: var(--home-disc);
}
.home-disc:empty { display: none; }
.home-door[data-intent="plan"] .home-disc, .home-door[data-icon="route"] .home-disc { border-color: var(--waybill-accent, var(--home-line)); }
.home-disc svg { width: 46%; height: 46%; }
.home-disc svg.phasic-home-glyph--pixel { width: min(70%, 48px); height: min(70%, 48px); }
.home-word { align-self: center; max-width: 100%; overflow-wrap: anywhere; font-size: clamp(13px, 2.2vw, 15px); }
.home-door:focus-visible .home-disc, .home-door:focus-visible .home-disc:empty + .home-word {
  outline: 2px solid var(--home-focus);
  outline-offset: 4px;
}
.home-door[data-preview] .home-disc { border-color: currentColor; }
.home-door[data-pulse] .home-disc { animation: home-pulse 360ms ease-out; }
@keyframes home-pulse { 45% { box-shadow: 0 0 0 3px rgb(245 240 232 / .25); } }
.home-calendar {
  display: grid;
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--door-gap);
  grid-column: span 2;
}
.home-calendar::before {
  content: '';
  position: absolute;
  top: calc(var(--door-size) / 2);
  left: 50%;
  width: max(0px, calc((100% + var(--door-gap)) / 2 - var(--door-size) - 8px));
  border-top: 1px solid var(--home-line);
  transform: translateX(-50%);
  pointer-events: none;
}
/* Back is the return arrow on a door's disc, centred under the panel's doors (20 Nov 2026). */
.home-back {
  --door-size: clamp(48px, 14vmin, 96px);
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  margin-top: 12px;
  color: var(--home-ink);
  text-decoration: none;
}
.home-back:focus-visible { outline: none; }
.home-back:focus-visible .home-disc { outline: 2px solid var(--home-focus); outline-offset: 4px; }
.home-alternates a {
  min-height: 44px;
  padding: 4px 8px;
  color: var(--home-muted);
  align-items: center;
  text-underline-offset: .25em;
}
/* The row keeps its place under the doors, so the doors stand where they stood with COMPY in it, signed out
   and for the owner alike (20 Nov 2026). With no link shown it draws nothing and is no landmark. */
.home-alternates { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 44px; }
.home-alternates:not(:has(> a:not([hidden]))) { visibility: hidden; }
.home-alternates a { display: inline-grid; }
.home-alternates :focus-visible { outline: 2px solid var(--home-focus); }

.home-ink-open, .home-ink-actions button {
  min-height: 44px;
  min-width: 44px;
  padding: 4px 8px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.home-ink-open { text-decoration: underline; text-underline-offset: .25em; }
.home-ink-open:focus-visible, .home-ink-editor :focus-visible { outline: 2px solid var(--home-focus); outline-offset: -2px; }
/* The root no longer scrolls (20 Nov 2026), so the @ panel scrolls inside itself when a short screen (a landscape phone
   at a large page zoom) cannot hold it, as the Apps panel does. */
.phasic-identity-panel {
  max-height: calc(100vh - var(--phasic-suite-height) - 18px);
  max-height: calc(100dvh - var(--phasic-suite-height) - 18px);
  overflow: auto;
  overscroll-behavior: contain;
}
.phasic-identity-panel:has(.home-ink-editor:not([hidden])) {
  max-height: max(100px, calc(100vh - 78px));
  max-height: max(100px, calc(100dvh - 78px));
  overflow: auto;
  overscroll-behavior: contain;
}
.home-ink-editor {
  display: grid;
  grid-template-columns: minmax(0, 96px) minmax(0, 1fr);
  align-items: center;
  gap: 4px 10px;
  width: min(286px, calc(100vw - 58px));
  padding: 6px 8px;
}
.home-ink-editor canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  touch-action: none;
  cursor: crosshair;
}
.home-ink-fields { display: grid; grid-column: 2; min-width: 0; }
.home-ink-editor canvas[hidden] + .home-ink-fields { grid-column: 1 / -1; }
.phasic-suite-header .home-ink-fields label {
  min-height: 0;
  padding: 0;
  display: grid;
  align-items: start;
  gap: 0;
}
.home-ink-fields input {
  width: 100%;
  min-height: 44px;
  margin: 0;
  accent-color: var(--home-ink);
}
.home-ink-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
  min-height: 32px;
  font-variant-numeric: tabular-nums;
}
.home-ink-swatch::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 1px solid var(--identity-line);
  background: var(--ink-swatch);
  border-radius: 50%;
}
.home-ink-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 4px;
}
.home-ink-actions button { border-color: var(--identity-line); }
.home-ink-actions [data-ink-use] { background: var(--identity-ink); color: var(--identity-panel); }

@media (max-width: 380px) {
  .home-menu .home-doors { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (horizontal-viewport-segments: 2) {
  .phasic-launcher-panel { width: min(20rem, calc(env(viewport-segment-width 1 0, 50vw) - 32px)); }
  .home-ink-editor { width: min(286px, calc(env(viewport-segment-width 1 0, 50vw) - 58px)); }
  .home-main { width: 100%; }
  .home-doors {
    --fold-reach: max(calc(50vw - env(viewport-segment-right 0 0, 50vw)), calc(env(viewport-segment-left 1 0, 50vw) - 50vw));
    --fold-gap: max(var(--door-gap), calc(2 * (var(--fold-reach) + 8px)));
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 8rem)) var(--fold-gap) repeat(2, minmax(0, 8rem));
  }
  .home-menu .home-doors { grid-template-columns: repeat(3, minmax(0, 7rem)) var(--fold-gap) repeat(3, minmax(0, 7rem)); }
  .home-menu .home-door:nth-child(4) { grid-column: 5; }
  .home-panel .home-doors > :last-child { grid-column: 4; }
  #write .home-door:nth-child(2) { grid-column: 2; }
  #write .home-door[data-home-monogram] { grid-column: 4; }
  #look .home-door:nth-child(3) { grid-column: 4; }
  #look .home-door:nth-child(4) { grid-column: 5; }
  .home-panel h2, .home-alternates, .home-back { justify-self: start; }
}
@media (vertical-viewport-segments: 2) {
  .home-main { align-content: start; }
  .phasic-launcher-panel, .phasic-identity-panel { max-height: calc(env(viewport-segment-bottom 0 0, 50vh) - var(--phasic-suite-height) - 12px); }
  .phasic-identity-panel:has(.home-ink-editor:not([hidden])) {
    max-height: max(100px, calc(env(viewport-segment-bottom 0 0, 50vh) - 78px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-ui, .home-door[data-pulse] .home-disc { transition: none; animation: none; }
}
@media (forced-colors: active) {
  :root { background: Canvas; color: CanvasText; --home-ink: CanvasText; --home-muted: LinkText; --home-line: CanvasText; --home-disc: Canvas; --home-focus: Highlight; }
  .home-ui[inert] { opacity: 1; }
  .home-door[data-pulse] .home-disc { animation: none; }
  .home-door[data-intent="plan"] .home-disc, .home-door[data-icon="route"] .home-disc { border-color: CanvasText; }
  .home-ink-open, .home-ink-actions button { color: ButtonText; }
  .home-ink-actions [data-ink-use] { background: ButtonFace; color: ButtonText; }
  .phasic-launcher-panel { background: Canvas; }
  .phasic-launcher-mark > span { background: ButtonText; forced-color-adjust: none; }
}
