/* Stable News: where the parts stand on a page (#3235). Layouts only: a part's own look is the system's sheet
   (look.css, written from design/system/), and every value here is one of its tokens. One breakpoint, the desk's.
   Named in design/surfaces.yaml; scripts/design_system.py reads it and design/drift.json lists nothing of it. */
html{-webkit-text-size-adjust:100%}
.sn-page [hidden]{display:none !important}
.sn-skip{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.sn-skip:focus{position:static;display:block;width:auto;height:auto;clip-path:none;padding:var(--gap) var(--gutter);background:var(--paper);color:var(--ink);font:400 15px/1.5 var(--font-sans);outline:var(--ring) solid var(--ink);outline-offset:calc(0px - var(--ring))}

/* Every page: as tall as the screen, its foot at the bottom. */
.sn-site{min-height:100vh;min-height:100dvh}
.sn-site__main{display:flex;flex-direction:column;flex:1 0 auto}

/* The front page (templates/box/front.html): the box a little under the middle of what is left (five parts of the
   room above it, four below, as the frame drew it), the world at the foot. It is one window tall (#3618: the owner,
   "main page for most users should be without scroll"): the map is drawn in the room its row has, never more than
   its width gives, and the numbers beside it hold the row's least height, so a window too short for the box, the
   numbers and the foot scrolls and nothing stands over anything. On a phone the row is the numbers' height and the
   map fits in it; on the desk the map takes what the box leaves, to its full 480 wide, and what is left after it
   stands above and under the box. */
.sn-front{display:flex;flex-direction:column;flex:1 0 auto}
.sn-front__middle{display:flex;flex-direction:column;flex:1 0 auto}
.sn-front__middle::before,.sn-front__middle::after{content:"";flex:4 1 0;min-height:var(--block)}
.sn-front__middle::before{flex-grow:5}
.sn-front .sn-world{flex:none}
.sn-front .sn-world__link{position:relative;align-self:stretch}
.sn-front .sn-world__map{position:absolute;inset:0;height:100%}
/* With the phone's keyboard up (the page's script says so on the root, with the height left), the box alone. */
[data-kb] .sn-site{min-height:0;height:var(--vvh,100dvh);overflow:hidden}
[data-kb] .sn-front__middle::before,[data-kb] .sn-front__middle::after{min-height:0}
[data-kb] :is(.sn-box__tips,.sn-world,.sn-foot){display:none}

/* An answer and the world's page (templates/box/_answer.html, templates/box/world.html): one column. What was asked
   stands at its top in the field it is changed in (#3605): while the words are asked again the answer that stands is
   shown, stepped back as a line already heard is (its words in `muted`, which is read on paper and card, its
   pictures and rules half there), until the new one comes: the page's script says so on the answer, and the wait
   stands in the field's own row. Nothing in it is pressed meanwhile. */
.sn-answer[data-updating] > .sn-answer__all > :not(.sn-answer__asked){pointer-events:none}
.sn-answer[data-updating] :is(.sn-story-line__title,.sn-story-line__told,.sn-story-line__size,.sn-story-line__part-of b,.sn-story-line__link,.sn-section-label__name,.sn-parts__name,.sn-parts__count,.sn-fold__name,.sn-fold__count,.sn-fold > summary b,.sn-note b,.sn-note a,.sn-note button,.sn-links a,.sn-links button){color:var(--muted)}
.sn-answer[data-updating] :is(.sn-pic img,.sn-story-line__flags img,.sn-mark,.sn-section-label__rule){opacity:.55}
/* Enter in one of the answer's fields sends the form by its first button, which is not seen. */
.sn-answer__enter{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
/* A need's panel stands under the cells once its cell is tapped: the page's script says so on the panel; with no
   script the cell's link leads to it. The save sheet the same, at the answer's foot in the place of its action and
   that action's small print (#3235 D2, the frames I2a and I2b): a block under the last section. */
.sn-answer__read .sn-panel:not([data-open]):not(:target){display:none}
.sn-answer__end{margin-top:var(--block)}
.sn-answer__end .sn-sheet:not([data-open]):not(:target){display:none}
.sn-answer__end:has(.sn-sheet[data-open]) > :is(.sn-action,.sn-note--fine){display:none}
/* The needs in the order they were asked, then the world; a need with nothing to tell is one folded line, last. */
.sn-answer__news{display:flex;flex-direction:column}
.sn-answer__needs{display:contents}
.sn-answer__quiet{order:1}
/* While a streamed answer waits (its bar stands: templates/box/_answer.html `save_slot`), what comes is put under
   what stands, never above it, so nothing a reader is reading moves (CLS, #3500): what was understood under the bar;
   a need once every need before it has settled, and nothing under the first that still looks; the world, the needs
   with nothing to tell and the page's foot with the end. */
.sn-answer__all:has(> .sn-answer__save > .sn-wait:not(.sn-wait--ended):not([hidden])) :is(.sn-answer__news > .sn-section,.sn-answer__quiet,.sn-answer__needs > .sn-section:has(> .sn-wait--line) ~ *),
.sn-site:has(.sn-answer__save > .sn-wait:not(.sn-wait--ended):not([hidden])) > .sn-foot{display:none}
/* The reader stopped the answer (web/static/box.js): a need that still waited is not shown, nor the places from the
   press; what came stays. */
.sn-answer[data-stopped] :is(.sn-section:has(> .sn-wait--line),.sn-wait__ahead){display:none}
/* "Not quite? Say it" stands under a need that is open; where the answer has no cells to open, always. */
.sn-answer__read:has(.sn-parts):not(:has(.sn-panel[data-open])):not(:has(.sn-panel:target)) .sn-answer__again{display:none}
/* A story opened from a line (the script says so on the answer): on a phone in the answer's place, under its way
   back, and the page's foot says nothing of the answer meanwhile. */
.sn-answer:not([data-open]) > .sn-answer__story{display:none}
.sn-answer[data-open] > .sn-answer__all{display:none}
.sn-answer__opened{display:none}
.sn-site:has(.sn-answer[data-open]) .sn-foot__note{display:none}

/* A story's page (templates/story.html) and a running story's (templates/storyline.html). The file portrait stands
   beside its credit; a running story's name stands right under the line above it, as a story's title does; in the
   fold of each day in full a day's date stands a section under the day before; the way to the box, a block under
   what the page tells. */
.sn-story__portrait{display:flex;align-items:flex-start;gap:var(--gap);margin-top:var(--gap)}
.sn-story__portrait .sn-pic{flex:none;margin-top:0}
.sn-story__portrait .sn-note{margin-top:0}
.sn-storyline > .sn-heading{margin-top:0}
.sn-story .sn-fold .sn-note + .sn-note--mono{margin-top:var(--section)}
.sn-story .sn-action,.sn-storyline > .sn-action{margin-top:var(--block)}
/* A name's door (templates/box/name.html): its picture beside its name, the two choices in a row over the action. */
.sn-door__who{display:flex;align-items:center;gap:var(--gap);margin-top:var(--block)}
.sn-door__who .sn-pic{flex:none;margin-top:0}
.sn-door__who .sn-heading{margin-top:0}
.sn-door__for{display:flex;flex-wrap:wrap;gap:var(--gap) var(--block);margin:var(--block) 0}
.sn-door__for label{display:flex;align-items:center;gap:var(--gap);font:400 15px/1.5 var(--font-sans)}
.sn-door__for input{margin:0;accent-color:var(--ink)}
.sn-door > .sn-key-value{margin-top:var(--block);border-top:1px solid var(--rule)}   /* its own page, Ultra's: under the door's one action */

/* A reader's own page (templates/box/_you.html): an answer's column, their morning's box under the cells. The
   recording's second face is held at the top once its row has scrolled away (the page's script shows it): it takes
   no room of its own, so nothing moves when it comes. */
.sn-answer__held{position:sticky;top:0;z-index:1;height:0}
/* One Home (#3235 D1, the frames I3 and I4): the box on top, a block under the masthead, and their daily brief's
   label a block under the box's line. */
.sn-answer__all > .sn-box--ask{margin-top:var(--block)}
.sn-answer__all > .sn-parts--line{margin-top:0}   /* the brief's index opens the page, right under the masthead's row */
.sn-box--ask + .sn-section-label{margin-top:var(--block)}
/* The day's line with no arrow beside it (no earlier morning is kept, so the part draws none): it keeps the arrows'
   height and the middle, and a long line stands off the box's edge. */
.sn-morning__step:not(:has(.sn-morning__turn)){justify-content:center;min-height:var(--tap);padding-inline:var(--gap)}
/* The recording's row holds its Follow along switch; with no script, nothing follows, so no switch. */
html:not([data-js]) .sn-player__follow{display:none}
/* While a recording is read aloud the page follows it (web/static/box_follow.js). A line that is not its section's
   first shows its telling only while it is being said, or while it is unfolded on a phone (box.js `unfolds`, the frame
   S8b: until 25 Nov 2026 this rule hid an unfolded line's telling, and the line showed no text at all). */
.sn-story-line:not(.sn-story-line--lead):not([aria-current="true"]):not([data-unfolded]) > .sn-story-line__told{display:none}
/* The sentence being said is the current one inside the line being said: the script's attribute on the read-along's
   own span (web/reads/readalong.py). The system lights it by a class a script does not write (sn-story-line__saying);
   its values, until its rule reads the attribute. Inside it each word carries its times (`data-t0`): the words said
   and the word being said in ink, the words to come grey (the frames P2a and P2b of 26 Nov 2026, #3235 L1; the old
   base's progress, style.css at 7659964b01^). */
.sn-story-line[aria-current="true"] [data-hook="said"][aria-current="true"]{padding:1px 0;background:color-mix(in srgb,var(--day) 26%,var(--card));color:var(--ink);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.sn-story-line[aria-current="true"] [data-hook="said"][aria-current="true"] [data-t0]{color:var(--muted)}
.sn-story-line[aria-current="true"] [data-hook="said"][aria-current="true"] :is([data-said],[aria-current="true"]){color:var(--ink)}

/* The profile (templates/me.html): rows. A row's name that is an address, and a token shown once, break where
   they must; the words a row posts stand in one line. */
.sn-me .sn-key-value > :first-child{min-width:0;overflow-wrap:anywhere}
.sn-me .sn-key-value > form{flex:none}
.sn-me .sn-note--mono{overflow-wrap:anywhere}
.sn-me code{font:inherit}

/* Worth going to (#3387; the frames R7a, R7c and R7d of 25 Nov 2026). Profile's sheet under its row has no head: its
   first line is the switch and the close, then the place's field on paper with where it is centred, then the kinds'
   chips. The note everyone else sees ends Your brief. On a morning, a line's facts open with its day and its place is a
   second line of them. */
.sn-events-sheet > .sn-key-value--control:first-child{margin-top:12px;border-top:0;padding-top:0}
.sn-kv-end{display:inline-flex;align-items:center;gap:14px}
.sn-kv-end > .sn-sheet__close{margin:0 -8px 0 0;border-bottom:0}
.sn-events-sheet .sn-field__label{margin:14px 0 6px}
.sn-events-sheet > .sn-field{margin-top:0;background:var(--paper)}
.sn-events-sheet > .sn-note{margin-top:10px}
.sn-events-sheet > .sn-chips{margin:0 0 12px}
.sn-coming{padding:12px 0;border-bottom:1px solid var(--rule)}

/* A row of Your brief's sheet (the frame P6a, #3235 round five's D4): the two levels beside the close on its first
   line, then In your brief · Remove over a rule, then "Not quite? Say it" on paper. A ready option has no levels:
   Remove's line is the first, with the close. After a Remove, the bar in the row's place (the frame P6b): the box's
   words and Undo on the wash, as tall as a row. */
.sn-need-sheet .sn-name-sheet__line{display:flex;align-items:center;gap:14px;margin-top:12px}
.sn-need-sheet .sn-name-sheet__line .sn-levels{flex:1 1 auto;margin:0}
.sn-need-sheet .sn-name-sheet__line .sn-sheet__close{margin-right:-8px;border-bottom:0}
.sn-need-sheet .sn-name-sheet__line > .sn-field{flex:1 1 auto;background:var(--paper)}
.sn-need-sheet > .sn-name-sheet__line:last-child{margin-bottom:12px}
.sn-need-sheet > .sn-key-value{margin-top:12px;border-top:1px solid var(--rule);border-bottom:0}
.sn-need-sheet > .sn-key-value:first-child{border-top:0}
.sn-need-sheet .sn-key-value button{border-bottom:1px solid var(--ink)}
.sn-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:8px 12px;background:var(--wash);border-bottom:1px solid var(--rule);font:400 14.5px/1.35 var(--font-sans)}
.sn-undo button{flex:none;font-weight:500;border-bottom:1px solid var(--ink)}
.sn-event-line .sn-story-line__facts + .sn-story-line__facts{margin-top:4px}

/* A page that says one thing and gives one way on (templates/message.html, templates/box/saved.html): the system's
   Short alone on the page, in the middle of its height where it is an error's; the way on stands as far under the
   sentence as the Short puts it under the line alone. */
.sn-said{display:flex;flex-direction:column;flex:1 0 auto}
.sn-said .sn-short__sub + .sn-action{margin-top:var(--block)}

/* The show (templates/pages/show.html): its artwork beside its name. A morning is the system's Player with the
   morning's first line under its row; the Player's own line stands under both, so a morning ends where its line is.
   With no script a morning's name is the link to its file and its square is not drawn (the page's script says it
   runs on the root). */
.sn-show__head{display:flex;align-items:center;gap:var(--gap);margin-top:var(--block)}
.sn-show__head .sn-pic{flex:none;margin-top:0}
.sn-show__head .sn-heading{margin-top:0}
.sn-show li{display:flex;flex-direction:column}
.sn-show li > .sn-player{display:contents}
.sn-show li .sn-player__track{order:1;margin-top:var(--line)}
.sn-show li .sn-prose{margin-top:0}
html:not([data-js]) .sn-show .sn-player__button{display:none}

/* A delivery's page (templates/account/delivery.html): the system's Short, its action as far under the sentence as
   the Short puts one under the line alone. */
.sn-delivery .sn-short__sub + .sn-action{margin-top:var(--block)}

/* A piece's page (templates/item.html): a column, as a story's. The system has no reason a reader presses yet
   (#3235, the system's gaps): the reasons under + and − are Links' buttons, and one the reader gave wears the
   system's pressed pair (plate and onplate, as Levels' chosen cell). */
.sn-item .sn-links button[aria-pressed="true"]{background:var(--plate);color:var(--onplate)}
/* A side's reasons stand right under its row. */
.sn-item .sn-fold .sn-links{margin-top:0}

@media (min-width:1200px){
.sn-front .sn-world{flex:1 1 0;max-height:calc(480px * 35 / 90)}   /* the map's own height at its 480 wide (web/reads/world_grid.py: 90 columns, 35 rows) */
.sn-front .sn-world--listen{max-height:calc(480px * 35 / 90 + 14px + 44px)}   /* and the World read aloud's row under it: its margin, its height */
.sn-front .sn-front__middle{flex:0 0 auto;margin-block:auto}
/* A page that is one column to read (the profile, a recording's transcript, a name's door, a running story's
   page) keeps the box's column on the desk, in the middle, as the box stands on the first page. A story's page is
   the system's Split there, two columns. */
.sn-me,.sn-recording,.sn-door,.sn-storyline{width:var(--column);margin-inline:auto}

/* A page of words or of steps (templates/pages/: Privacy, Terms, Support, the API, In your assistant, the show) is
   one column to read: on a phone the page is the column, on the desk it keeps the box's column, in the middle. */
.sn-column{width:var(--column);margin-inline:auto}
/* On the desk the answer keeps its column and the story stands beside it, in view while the answer is read: the two
   columns of the system's Split, and its measures. The story's top line says what is opened; nothing leads back. */
.sn-answer{display:grid;grid-template-columns:640px minmax(0,1fr);column-gap:56px;align-items:start}
.sn-answer[data-open] > .sn-answer__all{display:block}
.sn-answer__back{display:none}
.sn-answer__opened{display:block}
.sn-site:has(.sn-answer[data-open]) .sn-foot__note{display:block}
.sn-answer__story{position:sticky;top:0;max-height:100vh;max-height:100dvh;overflow-y:auto;padding-bottom:var(--block)}
/* While a streamed answer waits, the world's stories stand in the column a story opens in, empty till then (#3703):
   news from the first second; they go back under the needs once the answer is whole. */
.sn-answer{position:relative}
.sn-answer:not([data-open]) > .sn-answer__all:has(> .sn-answer__save > .sn-wait:not(.sn-wait--ended):not([hidden])) #b-world{display:block;position:absolute;top:0;left:696px;right:0}
}
/* The world's line under the steps is one line, cut where it ends (its story is a tap away); once the answer is whole
   it is not seen, its one line's place kept, so nothing under it moves (#3703, #3500). */
[data-meanwhile]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
[data-meanwhile=gone]{visibility:hidden}
/* On a computer the world's rows stand beside the steps while the answer waits, one line over their name saying why
   (the owner, 30 Nov 2026: "it would be somehow shown with info that during the search check what was at the
   world"); the line under the steps would tell its first story a second time, so it is not drawn there, waiting or
   whole, and nothing under the steps moves between the two. On a phone the world's line stays under the steps. */
[data-world-wait]{display:none}
@media (min-width:1200px){
[data-meanwhile]{display:none}
.sn-answer:not([data-open]) > .sn-answer__all:has(> .sn-answer__save > .sn-wait:not(.sn-wait--ended):not([hidden])) #b-world > [data-world-wait]{display:block;padding:0 0 4px}
}
