/* modularOS site, direction E v2 "Notch UI, actual size" — tokens.
   Two materials: PAGE (paper today) and SHELL (the product, from WidgetTokens.swift).
   A dark first screen or a dark page later is a change of the PAGE block only. Nothing else may hold a page color. */
/* fallback faces sized to the web fonts (widths measured in Chrome: Arial 95.9 %, Menlo 99.66 %), so lines wrap the same before and after the fonts arrive */
@font-face{font-family:"Inter Tight Fallback";src:local("Arial"),local("Helvetica");size-adjust:95.9%;ascent-override:101%;descent-override:25.2%;line-gap-override:0%}
@font-face{font-family:"Inter Tight Nav Fallback";src:local("Arial"),local("Helvetica");size-adjust:100.2%;ascent-override:99.5%;descent-override:24.8%;line-gap-override:0%}
@font-face{font-family:"JetBrains Mono Fallback";src:local("Menlo"),local("Courier New");size-adjust:99.66%;ascent-override:102.3%;descent-override:30.1%;line-gap-override:0%}
:root{
  /* ── PAGE. The only block a dark variant rewrites. ── */
  --page:#f8f7f3;        /* page background (moduleone.ai paper) */
  --plate:#eceae3;       /* scene plate ("a piece of your screen"), command field, soft buttons */
  --plate-h:#e3e0d7;     /* soft button, hover */
  --rule:#dedbd2;        /* 1px rules, only inside lists and tables */
  --ink:#25241f;         /* headings, values                              14.5:1 on page, 12.9:1 on plate */
  --ink-2:#4a473f;       /* running text                                   8.7:1 on page,  7.7:1 on plate */
  --muted:#66625a;       /* captions, labels, notes                        5.7:1 on page,  5.0:1 on plate */
  --btn:#25241f;         /* primary button on the page */
  --btn-h:#000000;       /* its hover */
  --btn-tx:#f8f7f3;      /* its label                                     14.5:1 */
  --bar:rgba(248,247,243,.86); /* menu bar behind the hanging widget */
  --bezel:#000000;       /* top edge of a plate: the screen bezel the widget hangs from */
  --shell-edge:transparent; /* outline of shell objects. On a dark page: rgba(255,255,255,.10) */
  --shade:rgba(37,36,31,.5);   /* shadow color under the moduleONE screen */

  /* ── SHELL. The product. Values from WidgetTokens.swift; never themed. ── */
  --shell:#000000;       /* widget body, key chips, closing slab */
  --screen:#141312;      /* moduleONE screen; label on the Allow pill */
  --stage:#1b1a18;
  --line:#2a2825;        /* progress track, outline of the Deny pill */
  --track:#3a3530;       /* outline of a secondary button on the slab */
  --opt:#151515;         /* option row */
  --badge:#242424;       /* digit badge */
  --badge-tx:#9a9a9a;    /* digit                                          5.5:1 on badge */
  --cmd:#080808;         /* command field */
  --cmd-line:#242424;    /* its outline */
  --tx:#f2ece5;          /* primary text on shell                         17.9:1 */
  --tx2:#b9b1a8;         /* secondary text on shell                        9.9:1 */
  --dim:#948e86;         /* times, counters, hints                         6.5:1 */
  --cream:#ffe8d9;       /* OK button on the moduleONE screen */

  /* ── STATE. The only colors on the page. A state color always means that state. ── */
  --cu:#eb670f;          /* working, progress                              6.5:1 on shell */
  --amber:#f3bb52;       /* needs you                                     12.0:1 */
  --green:#78c985;       /* done                                          10.5:1 */
  --red:#f26b5e;         /* failed                                         7.0:1 */
  --idle:#948e86;        /* idle: --dim at 40% opacity in the widget */
  --spark:#ffb07a;
  --cu2:#ff9d6b;
  --tint:rgba(235,103,15,.16);
  --tint-line:rgba(235,103,15,.42);

  /* ── TYPE. Calm: weight 400, moderate size. The page speaks at the widget's volume.
     Page text is in rem (16px root), so the browser text-size setting works. The widget stays in px: it is 1:1. ── */
  --sans:"Inter Tight","Inter Tight Fallback","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"JetBrains Mono","JetBrains Mono Fallback",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --h1:400 2.5rem/1.12 var(--sans);    --h1-ls:-.022em;
  --h2:500 1.5rem/2rem var(--sans);   --h2-ls:-.018em;
  --h3:500 1.25rem/1.35 var(--sans);   --h3-ls:-.008em;
  --lede:400 1.1875rem/1.55 var(--sans);
  --body:400 1rem/1.6 var(--sans);
  --small:400 .875rem/1.5 var(--sans);
  --nav:500 .875rem/1 "Inter Tight","Inter Tight Nav Fallback","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --code:400 .875rem/1.7 var(--mono);

  /* ── WIDGET GEOMETRY. Points from the app = CSS px. No multiplier exists. ── */
  --band:38px;           /* NotchGeometry.bandHeight on the 16-inch screen at "More Space" (2056 x 1329) */
  --notch-w:220px;       /* camera housing on that screen: 2056 - 2 x 918 */
  --w-open:400px;        /* NotchMetrics.expandedWidth */
  --w-wide:520px;        /* NotchMetrics.wideWidth: an opened line */
  --w-margin:17px;       /* NotchMetrics.screenMargin 8 + ear 9: the shell never comes closer to the screen edge */
  --ear:9px;
  --r-shell:14px;        /* WidgetLineLayout.radius */

  /* ── PAGE GEOMETRY ── */
  --r-plate:16px;
  --r-field:12px;
  --r-slab:24px;
  --edge:8px;            /* margin between the closing slab and the viewport */
  --wrap:1200px;
  --gut:clamp(20px,5vw,120px);
  --sec:152px;           /* distance between sections */

  /* ── MOTION (WidgetCurves.swift) ── */
  --ease:cubic-bezier(.65,0,.35,1);  /* WidgetCurve.expand, easeInOutCubic */
  --t-fold:.2s;                      /* unfold and fold */
  --t-ui:.15s;                       /* hover of links and buttons */
  --t-breath:2.5s;                   /* WingLayout.breathSeconds: the amber dot of a waiting agent */
}
@media (max-width:1099px){
  :root{
    --h1:400 2.5rem/1.12 var(--sans);
    --h2:500 1.5rem/2rem var(--sans);
    --lede:400 1.125rem/1.55 var(--sans);
    --code:400 .8125rem/1.7 var(--mono);
    --sec:120px;
  }
}
@media (max-width:699px){
  :root{
    --h1:400 2rem/1.14 var(--sans);  --h1-ls:-.018em;
    --h2:500 1.5rem/2rem var(--sans);   --h2-ls:-.014em;
    --h3:500 1.1875rem/1.35 var(--sans);
    --lede:400 1.0625rem/1.55 var(--sans);
    --code:400 .8125rem/1.7 var(--mono);
    --sec:96px;
  }
}

/* ───────── base ───────── */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:72px}
body{margin:0;background:var(--page);color:var(--ink-2);font:var(--body);font-synthesis:none;-webkit-font-smoothing:antialiased;overflow-x:hidden}
h1,h2,h3,p,ul,ol,dl,dd,figure,pre{margin:0}
ul,ol{padding:0;list-style:none}
a{color:inherit}
button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:pointer}
h1{font:var(--h1);letter-spacing:var(--h1-ls);color:var(--ink);text-wrap:balance}
h2{font:var(--h2);letter-spacing:var(--h2-ls);color:var(--ink);text-wrap:balance}
h3{font:var(--h3);letter-spacing:var(--h3-ls);color:var(--ink)}
code,.mono{font-family:var(--mono);font-size:.8125rem;color:var(--ink)}
pre code{font-size:inherit;color:inherit}
.slab code,.slab .mono{color:var(--tx2)}
.lede{font:var(--lede);color:var(--ink-2)}
.note{font:var(--small);color:var(--muted)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:12px;top:-60px;z-index:60;padding:10px 14px;border-radius:999px;background:var(--btn);color:var(--btn-tx);font:var(--small)}
.skip:focus{top:46px}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:4px}
.slab :focus-visible,.w :focus-visible{outline-color:var(--tx)}
.wrap{width:min(var(--wrap),100% - 2*var(--gut));margin-inline:auto}
.sec{padding-top:var(--sec)}
.ico{width:13px;height:13px;flex:none;fill:currentColor}
.nw{white-space:nowrap}

/* ───────── links and buttons. A button is the inverse of the surface it sits on. ───────── */
.tlink{color:var(--ink);text-decoration:underline;text-decoration-color:var(--rule);text-decoration-thickness:1px;text-underline-offset:.22em;transition:text-decoration-color var(--t-ui) ease-out}
.tlink:hover{text-decoration-color:currentColor}
.pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 18px;border-radius:999px;font:500 .9375rem/1 var(--sans);text-decoration:none;white-space:nowrap;transition:background var(--t-ui) ease-out,color var(--t-ui) ease-out,box-shadow var(--t-ui) ease-out}
.pill.ink{background:var(--btn);color:var(--btn-tx)}
.pill.ink:hover{background:var(--btn-h)}
.pill.soft{background:var(--plate);color:var(--ink)}
.pill.soft:hover{background:var(--plate-h)}
.pill.cream{background:var(--tx);color:var(--screen)}
.pill.cream:hover{background:#fff}
.pill.line{color:var(--tx);box-shadow:inset 0 0 0 1px var(--track)}
.pill.line:hover{box-shadow:inset 0 0 0 1px var(--dim)}
.pill[disabled]{opacity:.55;cursor:not-allowed}
.ld{flex:none;display:block;width:6px;height:6px;border-radius:50%;background:var(--dim)}
.ld.work{background:var(--cu)}.ld.need{background:var(--amber)}.ld.done{background:var(--green)}
/* ───────── command block ───────── */
.cmd{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px 18px 18px 22px;border-radius:var(--r-field);background:var(--plate)}
.cmd pre{font:var(--code);color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;hyphens:none}
.cmd .ln{display:block;padding-left:2ch;text-indent:-2ch}
.cmd .pr{color:var(--muted);-webkit-user-select:none;user-select:none}
.cmd.field{background:var(--cmd);box-shadow:inset 0 0 0 1px var(--cmd-line)}
.cmd.field pre{color:var(--tx)}
.cmd.field .pr{color:var(--dim)}
/* ───────── closing slab: shell at page scale ───────── */
.slab{margin:var(--sec) var(--edge) var(--edge);padding:88px 0 30px;border-radius:var(--r-slab);background:var(--shell);box-shadow:0 0 0 1px var(--shell-edge);color:var(--tx2)}
.slab h2{color:var(--tx);max-width:16em}
.slab .cmd{width:min(720px,100%);margin-top:34px}
.slab .acts{justify-content:flex-start}
.slab .meta{margin-top:20px;font:var(--small);color:var(--dim)}
.slab .meta .mono{color:var(--tx2)}
.foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px 40px;margin-top:88px;padding-top:22px;border-top:1px solid var(--line);font:var(--small);color:var(--dim)}
.foot p{display:flex;align-items:flex-start;gap:10px;max-width:520px}
.foot p svg{flex:none;width:8px;height:16px;margin-top:2px;fill:var(--tx2)}
.foot ul{display:flex;flex-wrap:wrap;gap:8px 22px}
.foot a{color:var(--tx2);text-decoration:none;transition:color var(--t-ui) ease-out}
.foot a:hover{color:var(--tx)}
:root{
  --sec:128px;            /* between sections of one chapter */
  --chap:176px;           /* before a chapter rule */
  /* product values that v2 did not need */
  --link:#5b89ff;         /* SuperagentUI.blue: Glauka's wire from a draft to an agent. Only inside the shell. */
  --seg:#2e2e2e;          /* WidgetTokens.segmentTrack */
  --card:#0c0c0c;         /* WidgetTokens.card */
  --card-line:#242424;    /* WidgetTokens.cardLine */
  --win:#141312;          /* window body (WidgetTokens.bg) */
  --win-2:#1b1a18;        /* selected row, inner panel (WidgetTokens.stage) */
  --win-line:#2a2825;     /* window rules (WidgetTokens.line) */
  --off:#3a3632;          /* switch off, window dots */
}
/* ───────── state tags. Solid = a default, outlined = experimental, hollow dot = not in this release yet. ───────── */
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.tag{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;background:var(--plate);font:500 .8125rem/1 var(--sans);color:var(--ink-2);white-space:nowrap}
.tag.exp{background:none;box-shadow:inset 0 0 0 1px var(--ink-2);color:var(--ink)}
.tag.next{background:none;box-shadow:inset 0 0 0 1px var(--muted);color:var(--muted)}
.tag.next::before{content:"";width:7px;height:7px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--muted)}
/* ───────── Glauka's draft card under the notch (GlaukaDraftCardView): her sentence and the prompt on the left,
   your agents on the right, a blue wire from the draft to the agent it will go to ───────── */
/* the wire: from the ring around the chosen agent, left and down to the edge of the draft */
/* Glauka on the desktop: the owl mark and her field. Not part of the widget; she floats where you put her. */

/* ───────── modularOS site, E v6 (kept in v7 below the opening): a README in the style of a Markdown file, two pictures, the footer.
   Black only for the notch and its wings, the widget, code blocks, the pictures and (v12) the section of advisors and the closing. Blue (--link) is Glauka on autopilot, nowhere else. ───────── */
:root{--sec:144px}
@media (max-width:1099px){:root{--sec:112px}}
@media (max-width:699px){:root{--sec:88px}}
body{overflow-x:clip}
.tlink{position:relative}
.scr :focus-visible,.viz :focus-visible,.slab :focus-visible{outline-color:var(--tx)}


/* ───────── 2. README.md: numbered contents, grey ## before each heading, one block of text per section ───────── */
.readme{padding-top:var(--sec)}
.rm-h{padding-bottom:14px;border-bottom:1px solid var(--rule);font:500 .875rem/1.2 var(--mono);color:var(--muted)}
.rm{display:grid;grid-template-columns:260px minmax(0,640px);column-gap:clamp(40px,7vw,120px);padding-top:44px}
.toc{position:sticky;top:32px;align-self:start}
.toc ol{display:grid;gap:2px}
.toc a{display:flex;gap:12px;padding:5px 0;white-space:nowrap;font:var(--small);color:var(--muted);text-decoration:none;transition:color var(--t-ui) ease-out}
.toc a span{flex:none;font-family:var(--mono);font-size:.8125rem}
.toc a:hover,.toc a[aria-current="true"]{color:var(--ink)}
.md{padding-bottom:76px;scroll-margin-top:28px}
.md h2{font:500 1.5rem/2rem var(--sans);letter-spacing:-.01em}
.hs{margin-right:.55em;font:400 1.25rem/1 var(--mono);color:#9c978d;vertical-align:top;position:relative;top:7px}
.md h2 .tag{margin-left:12px;vertical-align:4px}
.md p{max-width:34rem;margin-top:14px}
.md b{font-weight:500;color:var(--ink)}
.blk{margin-top:24px;padding:18px 20px;border-radius:var(--r-field);background:var(--shell);color:var(--tx2);font:400 .8125rem/1.75 var(--mono);white-space:pre;overflow-x:auto}
.blk b{font-weight:500;color:var(--tx)}
.blk .a{color:var(--amber)}.blk .o{color:var(--cu)}.blk .g{color:var(--green)}.blk .c{color:var(--dim)}
.md .cmd{margin-top:24px}
.links{display:flex;flex-wrap:wrap;gap:8px 22px}
details{border-top:1px solid var(--rule)}
details:last-child{border-bottom:1px solid var(--rule)}
.md h2+details{margin-top:18px}
summary{display:flex;align-items:center;min-height:48px;cursor:pointer;color:var(--ink);list-style:none}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";margin-left:auto;padding-left:16px;font:400 1.125rem/1 var(--mono);color:var(--muted)}
details[open] summary::after{content:"−"}
details p{margin:0 0 18px!important}

/* ───────── 3. two pictures on black ───────── */
.vis{padding-top:var(--sec)}
.vis h2{max-width:16em}
.vis .lede{max-width:640px;margin-top:16px}
.vis .lede b{font-weight:500;color:var(--ink)}
.viz{margin-top:40px;border-radius:var(--r-plate);background:var(--shell);color:var(--tx);font:400 13px/17px var(--sans)}
.viz b{font-weight:600;color:var(--tx);margin-right:7px}
/* Glauka: the draft, the agents, the blue wire with its nub (GlaukaDraftCardView, GlaukaWireView) */
@keyframes run{0%{transform:none;opacity:1}62%{transform:translate(calc(var(--x1) - var(--x0)),calc(var(--y1) - var(--y0)));opacity:1}100%{transform:translate(calc(var(--x2) - var(--x0)),calc(var(--y2) - var(--y0)));opacity:0}}
/* Agent Gallery: the drum around the owl, five places, the head on top answers (GlaukaCylinderView) */
@keyframes blink{0%,93%,100%{clip-path:inset(0)}96%{clip-path:inset(46% 0 46% 0)}}

.slab{padding:0 0 30px;overflow:hidden}
.slab>.wrap{padding-top:88px}
.slab .cmd{margin-top:34px}

/* ───────── narrower windows ───────── */
@media (max-width:899px){
  .rm{grid-template-columns:minmax(0,1fr);padding-top:28px}
  .toc{position:static;margin-bottom:48px}
}
@media (max-width:719px){
}
@media (max-width:699px){
  .cmd{grid-template-columns:minmax(0,1fr);padding:16px}
  .cmd .pill{width:100%}
  .acts{justify-content:flex-start}
  .slab{border-radius:18px}
  .slab>.wrap{padding-top:64px}
  .foot{margin-top:64px}
}
/* touch targets: at least 44 x 44 on phones and touch screens. The look stays the same. */
@media (max-width:699px),(hover:none){
  .pill{height:44px}
  .toc a{min-height:44px;align-items:center;padding:0}
  .mnav a,.tlink,.foot a{position:relative}
  .mnav a::after,.tlink::after,.foot a::after{content:"";position:absolute;left:50%;top:50%;width:max(100%,44px);height:44px;translate:-50% -50%}
  .foot ul{row-gap:14px}
}
@media (max-width:359px){
  .blk{padding:16px 14px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
}
.acts{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:18px}
.brand{display:inline-flex;align-items:center;gap:7px;font:600 .9375rem/1 var(--sans);letter-spacing:-.01em;color:var(--ink);text-decoration:none}
.brand svg{width:9px;height:18px;fill:currentColor}
.star{display:inline-flex;align-items:center;gap:6px}
.md .nw{white-space:nowrap}
/* inline bold and code never grow the line box, so the swap of web fonts moves nothing */
.md p b,.md p code,.md p a,.vis .lede b{line-height:1}

/* v6 round 2 */
@media (min-width:900px){
  .vis{display:grid;grid-template-columns:260px minmax(0,1fr);column-gap:clamp(40px,7vw,120px)}
  .vis>*{grid-column:2;max-width:640px}
  .vis>.viz{grid-column:1/-1;max-width:none}
}

/* ───────── v7: the content under the opening. The pinned menu bar of the opening (38 px) sits over everything, so anchors land under it ───────── */
html{scroll-padding-top:0}
.md{scroll-margin-top:calc(var(--band) + 28px)}
.vis{scroll-margin-top:calc(var(--band) + 28px - var(--sec))}
.readme{scroll-margin-top:var(--band)}
.toc{top:calc(var(--band) + 32px)}
.skip:focus{top:calc(var(--band) + 10px)}
.slab>.wrap{padding-top:88px}
@media (max-width:699px){.slab>.wrap{padding-top:64px}}
.credits{flex-basis:100%;max-width:none!important;display:block!important;font:400 .8125rem/1.5 var(--sans);color:var(--dim)}
.credits a{color:var(--dim);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:.2em}
.credits a:hover{color:var(--tx2)}
