/* Princess Bot: the Her Room look (ENGINE=codex). Linked only by server/brand.ts brandIndex, after styles.css, and every rule starts with
   html[data-brand=princess], so the Claude engine's page (no such attribute, no such link) is exactly what it always was.
   The look is the mockup design/paradigms/oneagent/proto.html (princess-bot-lab): its tokens, type, window-and-sill room, bubbles, cards and composer.
   DARK is the lead theme; the light values come first and the dark ones sit under prefers-color-scheme: dark. The old token names are remapped (not renamed),
   so dialogs, toasts, the viewer, the files panel, the tool lines (?tools=1) and Tom's log of the old record repaint with no work of their own.
   Honest UI: nothing here styles a control that is not built (no incognito, no grab bar, no delete or rename of a chat).
   Her things (the pinboard, clock and notebook in the room, the "On it" chip, the four pages, the small "I did this" line in a chat) are the mockup princess-bot-lab/design/herthings (tools/extra.css),
   ported with every rule prefixed and its tokens renamed (--spring is --hr-spring). */

/* ---------- tokens ---------- */
html[data-brand=princess] {
  --bg: #FBF5F2; --bg-side: #FBF5F2;
  --stage: #F3E8E4;                 /* desktop, outside the column */
  --dim: #EBDDDB;                   /* behind the chat sheet on a phone; the strip over a chat */
  --surface: #FFFFFF; --surface-2: #F7EFEC;
  --paper: #FFFEFD; --paper-2: #F3EFED; --paper-line: #E2DBD7;   /* the chat sheet */
  --line: #EFE4DF; --line-strong: #E0D1CB;
  --text: #2A2023; --muted: #6E5F65; --faint: #7D6D73;
  --accent: #DC6C88; --accent-btn: #C24A6C; --accent-btn-ink: #FFFFFF; --accent-ink: #FFFFFF;
  --accent-strong: #AE3A5A; --accent-soft: #FBE6EA;
  --user-bg: #F9DDE3; --user-ink: #3B1822;
  --wait: var(--accent); --wait-ink: var(--accent-strong);
  --crown: #E9B23A; --ok: #3E9A6E;
  --scrim: rgb(52 26 36 / .5);
  --shadow: 0 1px 2px rgb(90 35 50 / .05), 0 8px 22px rgb(90 35 50 / .08);
  --shadow-sheet: 0 -10px 40px rgb(70 25 40 / .14);
  --shadow-lg: 0 2px 6px rgb(70 25 40 / .08), 0 18px 44px rgb(70 25 40 / .2);
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --hr-spring: cubic-bezier(.2, .85, .25, 1);
  /* the room */
  --win-frame: #EBC6CF; --win-sill: #E2B3BF; --win-shade: #EAD9D6;
  --sky-a: #9DA9E0; --sky-b: #F0B9C8; --sky-c: #FFDCBF; --orb: #FFF1CC;
  --leaf-1: #7FB796; --leaf-2: #93C7A6; --leaf-3: #6DA786; --pot: #D08F7C; --pot-rim: #DDA08E;
  --book-1: #C98A9C; --book-2: #8E9DC4; --book-page: #FFFFFF;
  --bulb: #F0B94A; --wire: #CBB3B8; --glow-a: .3;
  /* her face: Sill, crowned (web/avatars.js SILL; the dark values are its plain fill attributes) */
  --am-tile: #FBE3EA; --am-sill: #F0B5C9; --am-twk: #F3C665; --am-wing: #CDA6EA; --am-gold: #EEB23A;
  --am-body: #DF7198; --am-cheek: #E6658E; --am-gem: #C55C82; --am-eye: #442033;
  /* the glass of the message box is plain paper here */
  --glass-pane: var(--paper-2); --glass-pane-focus: var(--paper-2);
  --strip-main: var(--dim); --strip-side: var(--bg);
  --scene-w: 252px;
  /* her things: the pinboard's cork and two of its note colours, mixed from the room's own tokens so light and dark follow */
  --cork: color-mix(in srgb, var(--pot) 60%, var(--win-shade));
  --note-rose: color-mix(in srgb, var(--accent) 42%, var(--book-page));
  --note-lilac: color-mix(in srgb, var(--am-wing) 60%, var(--book-page));
}
@media (prefers-color-scheme: dark) {
  html[data-brand=princess] {
    --bg: #1B1517; --bg-side: #1B1517;
    --stage: #130F10; --dim: #110D0E;
    --surface: #271F22; --surface-2: #31282C;
    --paper: #242222; --paper-2: #302D2D; --paper-line: #423E3E;
    --line: #382E32; --line-strong: #4E4247;
    --text: #F5EDEC; --muted: #BCACB0; --faint: #A08F94;
    --accent: #F09AB0; --accent-btn: #EF93AA; --accent-btn-ink: #3B0F1D; --accent-ink: #3B0F1D;
    --accent-strong: #F7B2C2; --accent-soft: #45272F;
    --user-bg: #55303B; --user-ink: #FDEBEF;
    --crown: #F2C75C; --ok: #7FD1A8;
    --scrim: rgb(8 5 6 / .74);
    --shadow: 0 1px 2px rgb(0 0 0 / .28), 0 8px 22px rgb(0 0 0 / .30);
    --shadow-sheet: 0 -10px 40px rgb(0 0 0 / .5);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / .3), 0 18px 44px rgb(0 0 0 / .5);
    --win-frame: #6F4A58; --win-sill: #805666; --win-shade: #3A262E;
    --sky-a: #55568A; --sky-b: #C4879C; --sky-c: #F2B796; --orb: #FFE6B8;
    --book-1: #A9687C; --book-2: #6E7FA8; --book-page: #EADFD6;
    --bulb: #FFE2A8; --wire: #5A4148; --glow-a: .34;
    --am-tile: #6A3352; --am-sill: #9B4D6F; --am-twk: #F4DDA4; --am-wing: #DAB8F3; --am-gold: #F7CE68;
    --am-body: #E27EA0; --am-cheek: #E86D92; --am-gem: #C76588; --am-eye: #301823;
  }
}
/* the installed app on a phone keeps white status-bar text (index.html), so in light the strip is the app's dark ink, as it always was */
@media (display-mode: standalone) and (prefers-color-scheme: light) { html[data-brand=princess] { --strip-main: var(--text); --strip-side: var(--text); } }
/* the room is smaller on a small phone and on a short one (iPhone SE), and a little larger in the desktop column. Under 380 px the window draws at 0.84 (235 px), so her things beside it keep their margin;
   under 360 px it is 64vw. (In this order: the narrowest rule must come last. The short-phone rule below wins over both.) */
@media (max-width: 379px) { html[data-brand=princess] { --scene-w: 235px; } }
@media (max-width: 359px) { html[data-brand=princess] { --scene-w: min(252px, 64vw); } }
@media (max-height: 699px) { html[data-brand=princess] { --scene-w: 200px; } }
@media (min-width: 701px) { html[data-brand=princess] { --scene-w: 280px; } }
/* times of day: the window's sky (set on #sidebar by ui-sidebar.js from the device clock; the same in light and dark) */
html[data-brand=princess] #sidebar[data-sky=day] { --sky-a: #5B90C2; --sky-b: #92BCDC; --sky-c: #CBE3EF; --orb: #FFF4D2; }
html[data-brand=princess] #sidebar[data-sky=dusk] { --sky-a: #3B376C; --sky-b: #B5648B; --sky-c: #F09C72; --orb: #FFCB94; }
html[data-brand=princess] #sidebar[data-sky=night] { --sky-a: #151833; --sky-b: #252A55; --sky-c: #3F3A6C; --orb: #F6E9BE; }

/* ---------- the page ---------- */
html[data-brand=princess] body { background: var(--bg); font-size: 15px; }
html[data-brand=princess] #boot { color: var(--muted); }
html[data-brand=princess] :focus-visible { border-radius: 10px; }
html[data-brand=princess] a { color: var(--accent-strong); }
html[data-brand=princess] .btn { min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; background: transparent; }
html[data-brand=princess] .btn:where(:not(.btn-primary, .btn-danger, .btn-quiet, .btn-ghost, .btn-stop)) { border-top-color: var(--line-strong); }
html[data-brand=princess] .btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 999px; }
html[data-brand=princess] .btn-primary { background: var(--accent-btn); border-color: var(--accent-btn); color: var(--accent-btn-ink); box-shadow: none; }
html[data-brand=princess] .btn-primary:hover { background: var(--accent-btn); }
html[data-brand=princess] .icon-btn { width: 44px; height: 44px; border-radius: 14px; }
html[data-brand=princess] .send-btn { width: 44px; height: 44px; background: var(--accent-btn); color: var(--accent-btn-ink); box-shadow: none; }
html[data-brand=princess] .send-btn:not(:disabled) { box-shadow: none; }
html[data-brand=princess] .send-btn:disabled { background: var(--paper-line); color: var(--faint); }
html[data-brand=princess] .send-btn svg { stroke-width: 2.2; }
html[data-brand=princess] .toasts { bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); }
html[data-brand=princess] .toast { background: var(--text); color: var(--bg); border-radius: 14px; }
html[data-brand=princess] .toast-error { background: var(--danger); color: #fff; }
/* the app's mark is the little crown (ui-common.js liveMarks); the old favicon art behind it goes */
html[data-brand=princess] .wordmark { gap: 7px; font: 700 17px/1 var(--round); letter-spacing: -.005em; color: var(--text); }
html[data-brand=princess] .wordmark .mark { width: auto; height: auto; border-radius: 0; background: none; color: var(--crown); display: inline-flex; }
html[data-brand=princess] .wordmark-lg { font-size: 22px; gap: 9px; }
html[data-brand=princess] .wordmark-lg .mark { width: auto; height: auto; }
html[data-brand=princess] .login { background: var(--bg); }
html[data-brand=princess] .login-card { background: var(--surface); border-color: var(--line); border-radius: 26px; }
html[data-brand=princess] .login-lede { color: var(--muted); }
html[data-brand=princess] input[type="password"], html[data-brand=princess] input[type="text"] { border-radius: 14px; background: var(--surface-2); border-color: var(--line-strong); min-height: 48px; font-size: 16px; }

/* ---------- one place at a time: home, or one chat, at every width ---------- */
html[data-brand=princess] #tabbar { display: none; }
html[data-brand=princess] #app[data-mode=oneagent] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); padding-bottom: 0; }
html[data-brand=princess] #app[data-mode=oneagent][data-pane=bots] #main { display: none; }
html[data-brand=princess] #app[data-mode=oneagent][data-pane=main] #sidebar { display: none; }
html[data-brand=princess] #app[data-mode=oneagent][data-pane=bots] #sidebar, html[data-brand=princess] #app[data-mode=oneagent][data-pane=main] #main { display: flex; }
html[data-brand=princess] #app[data-mode=oneagent] #sidebar, html[data-brand=princess] #app[data-mode=oneagent] #main { width: min(600px, 100%); margin: 0 auto; border: 0; }
html[data-brand=princess] #sidebar { background: var(--bg); }
/* inside the chat the page colour is the sheet's: the message box's fade, the header, the "Latest" pill and the working line all stand on paper */
html[data-brand=princess] #main { --bg: var(--paper); background: transparent; }
html[data-brand=princess] #view-chat { background: var(--paper); }
html[data-brand=princess] .head-back { display: inline-grid; margin-left: -2px; }
@media (min-width: 701px) {
  html[data-brand=princess], html[data-brand=princess] body { background: var(--stage); }
  html[data-brand=princess] #app[data-mode=oneagent] #view-chat { margin-top: 16px; border-radius: 28px 28px 0 0; border: 1px solid var(--line); border-bottom: 0; overflow: hidden; box-shadow: var(--shadow-sheet); }
  html[data-brand=princess] #app[data-mode=oneagent] #sidebar { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
/* a phone: the chat is a sheet over a dimmed home (there is no grab bar: nothing here can be dragged) */
@media (max-width: 700px) {
  html[data-brand=princess] #app[data-mode=oneagent] #main { background: var(--dim); }
  html[data-brand=princess] #app[data-mode=oneagent] #view-chat { margin-top: 8px; border-radius: 28px 28px 0 0; overflow: hidden; box-shadow: var(--shadow-sheet); }
  html[data-brand=princess] #app[data-mode=oneagent][data-pane=main] #view-chat { animation: hr-sheet-up .36s var(--hr-spring) both; }
}
@keyframes hr-sheet-up { from { transform: translateY(24px); opacity: .6; } }

/* ---------- her face: Sill, crowned (avatars.js sillSvg; colours here, shapes there) ---------- */
html[data-brand=princess] .am-tile { fill: var(--am-tile); }
html[data-brand=princess] .am-sill { fill: var(--am-sill); }
html[data-brand=princess] .am-twk { fill: var(--am-twk); }
html[data-brand=princess] .am-wing { fill: var(--am-wing); }
html[data-brand=princess] .am-gold { fill: var(--am-gold); stroke: var(--am-gold); }
html[data-brand=princess] .am-slip { fill: var(--am-gold); }
html[data-brand=princess] .am-body { fill: var(--am-body); }
html[data-brand=princess] .am-cheek { fill: var(--am-cheek); }
html[data-brand=princess] .am-gem { fill: var(--am-gem); }
/* her eyes are dark pills on her body, not holes in the tile colour (styles.css paints every other face's that way) */
html[data-brand=princess] .av-sill .eyes { fill: var(--am-eye); }
html[data-brand=princess] .av-sill .eyes .eye-line { fill: none; stroke: var(--am-eye); }
/* working: she rocks a little on her sill, like the other faces' rock; the working line has her dot, so this is the room's and the header's */
html[data-brand=princess] .av.is-working .av-sill-body { animation: av-rock 3s infinite; }
html[data-brand=princess] .av.is-working .av-sill-body > .av-m2 { animation: av-rock-slow 7.3s infinite; }
html[data-brand=princess] .avatar .av-sill { width: 100%; height: 100%; }

/* ---------- HOME ---------- */
html[data-brand=princess] .brand { height: 52px; padding: 0 8px 0 20px; }
html[data-brand=princess] .brand-actions { gap: 0; }
html[data-brand=princess] .brand-actions .icon-btn { width: 44px; height: 44px; color: var(--muted); }
html[data-brand=princess] .brand-actions .icon-btn.is-on { color: var(--accent-strong); }
html[data-brand=princess] #logout { color: var(--faint); opacity: .6; } /* the quietest thing on home: it asks before it signs her out */
html[data-brand=princess] .home-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 16px 12px; display: flex; flex-direction: column; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent); mask-image: linear-gradient(#000 calc(100% - 26px), transparent); }
html[data-brand=princess] .home-scroll::-webkit-scrollbar { display: none; }
html[data-brand=princess] .home-scroll > * { flex: none; }
html[data-brand=princess] #side-main { padding: 0; border: 0; }
html[data-brand=princess] .room { display: flex; flex-direction: column; align-items: stretch; padding: 2px 0 0; position: relative; }
html[data-brand=princess] .scene { position: relative; align-self: center; width: var(--scene-w); aspect-ratio: 280 / 226; flex: none; display: block; }
html[data-brand=princess] .scene .glow { position: absolute; left: 50%; top: 58%; width: 150%; height: 113%; transform: translate(-50%, -50%); pointer-events: none; opacity: .8;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 15%, transparent), transparent); }
html[data-brand=princess] .scene .win-box { position: absolute; inset: 0; display: block; }
html[data-brand=princess] .scene .win { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* her figure stands where the mockup draws it: 126 x 126 at (77, 81.5) of the 280 x 226 window (web/room.js) */
html[data-brand=princess] .scene .her { position: absolute; left: 27.5%; top: 36.06%; width: 45%; height: 55.75%; display: block; }
html[data-brand=princess] .scene .her .avatar { width: 100% !important; height: 100% !important; display: block; }
html[data-brand=princess] .scene .mini { display: none; }
html[data-brand=princess] .win .frame { fill: none; stroke: var(--win-frame); stroke-width: 7; stroke-linejoin: round; }
html[data-brand=princess] .win .bars { fill: none; stroke: var(--win-frame); stroke-width: 3; }
html[data-brand=princess] .win .sill { fill: var(--win-sill); }
html[data-brand=princess] .win .sill-lip { fill: #fff; opacity: .13; }
html[data-brand=princess] .win .sill-shade { fill: var(--win-shade); }
html[data-brand=princess] .win .hill1 { fill: color-mix(in srgb, var(--sky-a) 62%, #241A26); }
html[data-brand=princess] .win .hill2 { fill: color-mix(in srgb, var(--sky-a) 45%, var(--sky-b)); opacity: .85; }
html[data-brand=princess] .win .orb { fill: var(--orb); }
html[data-brand=princess] .win .halo { fill: var(--orb); opacity: .22; }
html[data-brand=princess] .win .cloud { fill: #fff; opacity: .5; }
html[data-brand=princess] .win .star { fill: var(--orb); }
html[data-brand=princess] .win .sun, html[data-brand=princess] .win .moon, html[data-brand=princess] .win .stars { display: none; }
html[data-brand=princess] #sidebar:not([data-sky=night]) .win .sun { display: block; }
html[data-brand=princess] #sidebar[data-sky=night] .win :is(.moon, .stars) { display: block; }
html[data-brand=princess] #sidebar[data-sky=night] .win .cloud { display: none; }
html[data-brand=princess] #sidebar[data-sky=dusk] .win .sun { transform: translate(86px, 44px); }
html[data-brand=princess] .win .wire { fill: none; stroke: var(--wire); stroke-width: 1.1; stroke-linecap: round; }
html[data-brand=princess] .win .bulb { fill: var(--bulb); }
html[data-brand=princess] .win .bulb-halo { fill: url(#hr-glow); }
html[data-brand=princess] .win .leaf-1 { fill: var(--leaf-1); } html[data-brand=princess] .win .leaf-2 { fill: var(--leaf-2); } html[data-brand=princess] .win .leaf-3 { fill: var(--leaf-3); }
html[data-brand=princess] .win .vine { fill: none; stroke: var(--leaf-3); stroke-width: 1.3; stroke-linecap: round; }
html[data-brand=princess] .win .pot { fill: var(--pot); } html[data-brand=princess] .win .pot-rim { fill: var(--pot-rim); }
html[data-brand=princess] .win .book-1 { fill: var(--book-1); } html[data-brand=princess] .win .book-2 { fill: var(--book-2); } html[data-brand=princess] .win .book-page { fill: var(--book-page); opacity: .85; }
html[data-brand=princess] .win .foot-shadow { fill: #000; opacity: .16; }
html[data-brand=princess] .win .mug { fill: var(--book-page); } html[data-brand=princess] .win .mug-band { fill: var(--book-1); }
html[data-brand=princess] .win .mug-handle { fill: none; stroke: var(--book-page); stroke-width: 2; stroke-linecap: round; }
/* the fairy lights are for the evening: off in the morning and by day (and they never blink) */
html[data-brand=princess] #sidebar[data-sky=morning] .win .bulb-halo, html[data-brand=princess] #sidebar[data-sky=day] .win .bulb-halo { opacity: 0; }
html[data-brand=princess] #sidebar[data-sky=morning] .win .bulb, html[data-brand=princess] #sidebar[data-sky=day] .win .bulb { opacity: .35; }

html[data-brand=princess] .says { position: relative; margin-top: 12px; padding: 14px 16px 14px 18px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
html[data-brand=princess] .says::before { content: ""; position: absolute; left: 50%; top: -7px; width: 14px; height: 14px; margin-left: -7px; background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); border-radius: 4px 0 0 0; }
html[data-brand=princess] .says h1 { font: 700 24px/1.15 var(--round); letter-spacing: -.012em; padding-right: 84px; }
html[data-brand=princess] .says p { font-size: 16px; line-height: 1.42; margin-top: 5px; color: var(--text); }
/* the one labelled control in her bubble, level with the greeting, so it costs no height; a dot on it, still, while she is on something or waits on her yes */
html[data-brand=princess] .says-chip { position: absolute; top: 5px; right: 6px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; background: none; border-radius: 16px; -webkit-tap-highlight-color: transparent; }
html[data-brand=princess] .says-chip > span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 7px 0 11px; border-radius: 999px; background: var(--surface-2); font: 620 13px/1 var(--font); color: var(--muted); white-space: nowrap; }
html[data-brand=princess] .says-chip svg { width: 12px; height: 12px; stroke-width: 2.4; opacity: .75; }
html[data-brand=princess] .says-chip .dot-live { width: 7px; height: 7px; }
html[data-brand=princess] .says-chip:active > span { background: color-mix(in srgb, var(--text) 12%, var(--surface-2)); }

/* ---------- HER THINGS, in her room: a pinboard on the wall is her list (a note on it for each open thing, none on a bare board), an alarm clock on a small shelf is her reminders,
   a notebook on another is what she knows about her, and she herself (and the chip above) is what she is doing for her. Each has a small plain label, so nobody has to guess. ---------- */
html[data-brand=princess] .thing { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; min-height: 44px; padding: 0 0 2px; border: 0; background: none; border-radius: 14px;
  font: 620 11.5px/1.25 var(--font); letter-spacing: .01em; color: var(--muted); text-align: center; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
html[data-brand=princess] .thing svg { display: block; overflow: visible; transition: transform .2s var(--hr-spring); }
html[data-brand=princess] .thing:active svg { transform: scale(.95); }
html[data-brand=princess] .thing-board { right: calc(100% - 24px); top: 30px; }
html[data-brand=princess] .thing-clock { left: calc(100% - 24px); top: 8px; }
html[data-brand=princess] .thing-book { left: calc(100% - 24px); top: 102px; }
/* a short phone (iPhone SE): the window is smaller, so the things sit closer together */
@media (max-height: 699px), (max-width: 339px) { html[data-brand=princess] .thing-board { top: 12px; } html[data-brand=princess] .thing-clock { top: -6px; } html[data-brand=princess] .thing-book { top: 80px; } }
/* a narrow phone: the things draw a little smaller and tuck in, clear of the screen edge on one side and the fairy lights on the other */
@media (max-width: 379px) {
  html[data-brand=princess] .thing { width: 70px; }
  html[data-brand=princess] .thing svg { width: 68px; height: auto; }
  html[data-brand=princess] .thing-clock, html[data-brand=princess] .thing-book { left: calc(100% - 20px); }
  html[data-brand=princess] .thing-book { top: 96px; }
}
@media (max-width: 379px) and (max-height: 699px), (max-width: 339px) { html[data-brand=princess] .thing-book { top: 76px; } }
html[data-brand=princess] .rm-wire { fill: none; stroke: var(--wire); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
html[data-brand=princess] .rm-nail, html[data-brand=princess] .rm-frame { fill: var(--win-frame); }
html[data-brand=princess] .rm-cork { fill: var(--cork); }
html[data-brand=princess] .rm-paper { fill: var(--book-page); }
html[data-brand=princess] .rm-paper.rose { fill: var(--note-rose); }
html[data-brand=princess] .rm-paper.lilac { fill: var(--note-lilac); }
html[data-brand=princess] .rm-ink { fill: #3B2A30; opacity: .26; }
html[data-brand=princess] .rm-tick { fill: none; stroke: var(--leaf-3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html[data-brand=princess] .rm-pin-gold { fill: var(--bulb); }
html[data-brand=princess] .rm-pin-rose { fill: var(--am-body); }
html[data-brand=princess] .rm-shelf { fill: var(--win-sill); }
html[data-brand=princess] .rm-lip { fill: #fff; opacity: .13; }
html[data-brand=princess] .rm-shade { fill: var(--win-shade); }
html[data-brand=princess] .rm-foot { fill: none; stroke: var(--book-1); stroke-width: 3.2; stroke-linecap: round; }
html[data-brand=princess] .rm-bell { fill: var(--bulb); }
html[data-brand=princess] .rm-hammer { fill: none; stroke: var(--bulb); stroke-width: 1.8; stroke-linecap: round; }
html[data-brand=princess] .rm-clock { fill: var(--book-1); }
html[data-brand=princess] .rm-face { fill: var(--book-page); }
html[data-brand=princess] .rm-hands { fill: none; stroke: var(--am-eye); stroke-linecap: round; }
html[data-brand=princess] .rm-hub { fill: var(--am-eye); }
html[data-brand=princess] .rm-cover { fill: var(--book-1); }
html[data-brand=princess] .rm-band { fill: #000; opacity: .16; }
html[data-brand=princess] .rm-page, html[data-brand=princess] .rm-heart { fill: var(--book-page); }
html[data-brand=princess] .rm-pot { fill: var(--pot); } html[data-brand=princess] .rm-pot-rim { fill: var(--pot-rim); }
html[data-brand=princess] .rm-leaf-1 { fill: var(--leaf-1); } html[data-brand=princess] .rm-leaf-2 { fill: var(--leaf-2); } html[data-brand=princess] .rm-leaf-3 { fill: var(--leaf-3); }
/* herself: tap her to see what she is on (a button laid over her, so the figure stays a live face under it) */
html[data-brand=princess] .her-tap { position: absolute; z-index: 2; display: block; left: 28%; top: 44%; width: 44%; height: 44%; border: 0; background: none; border-radius: 40%; -webkit-tap-highlight-color: transparent; }

html[data-brand=princess] .side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 4px 0; }
html[data-brand=princess] .side-head[hidden] { display: none; }
html[data-brand=princess] .side-label { margin: 0; font: 650 12.5px/1.2 var(--font); color: var(--faint); letter-spacing: .01em; }
html[data-brand=princess] .new-chat-btn { min-height: 30px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 16px; background: transparent; color: var(--accent-strong); font: 600 13px/1 var(--font); -webkit-tap-highlight-color: transparent; }
html[data-brand=princess] .new-chat-btn:active { background: color-mix(in srgb, var(--text) 5%, transparent); }
html[data-brand=princess] .side-list { flex: none; overflow: visible; padding: 0; gap: 0; }
html[data-brand=princess] .side-empty { flex: none; padding: 14px 4px 6px; color: var(--muted); font-size: 14px; }
html[data-brand=princess] .crow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 58px; padding: 9px 4px; width: 100%; border: 0; border-radius: 0; background: transparent; text-align: left; color: var(--text); transform: none; }
html[data-brand=princess] .crow + .crow { border-top: 1px solid var(--line); }
html[data-brand=princess] .crow:active { background: color-mix(in srgb, var(--text) 5%, transparent); transform: none; }
@media (hover: hover) { html[data-brand=princess] .crow:hover { background: color-mix(in srgb, var(--text) 4%, transparent); } }
html[data-brand=princess] .crow .g { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--surface); color: var(--faint); }
html[data-brand=princess] .crow .g.ok { color: var(--ok); }
html[data-brand=princess] .crow .g.ok svg { stroke-width: 2.3; }
html[data-brand=princess] .crow .g.flag { color: var(--accent-strong); background: var(--accent-soft); }
html[data-brand=princess] .crow .t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html[data-brand=princess] .crow b { font-weight: 600; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-brand=princess] .crow b.is-unread { font-weight: 680; }
html[data-brand=princess] .crow .s { display: flex; align-items: center; gap: 6px; font-size: 12.8px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; }
html[data-brand=princess] .crow .s > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html[data-brand=princess] .crow .s.live { color: var(--accent-strong); }
html[data-brand=princess] .crow .when { display: flex; flex-direction: column; align-items: flex-end; align-self: flex-start; gap: 7px; margin-top: 3px; }
html[data-brand=princess] .crow time { font-size: 12px; color: var(--faint); line-height: 1.2; }
html[data-brand=princess] .unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
html[data-brand=princess] .dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
html[data-brand=princess] .dot-live.pulse { animation: hr-pulse 1.8s ease-out infinite; }
@keyframes hr-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 6px transparent; } }

html[data-brand=princess] .ask-zone { flex: none; padding: 6px 16px calc(env(safe-area-inset-bottom, 0px) + 10px); }
html[data-brand=princess] .home-ask { max-width: none; width: 100%; margin: 0; padding: 0; }
html[data-brand=princess] .composer-box { min-height: 56px; padding: 6px; border-radius: 28px; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
html[data-brand=princess] .composer-box:focus-within { border-color: color-mix(in srgb, var(--accent-btn) 55%, var(--line-strong)); box-shadow: var(--shadow); }
html[data-brand=princess] .composer-input { font-size: 16px; line-height: 1.45; min-height: 44px; padding: 10px 4px 10px 14px; }
html[data-brand=princess] .composer-input::placeholder { color: var(--faint); opacity: 1; }
html[data-brand=princess] .composer-attach, html[data-brand=princess] .composer-mic { width: 44px; height: 44px; border-radius: 50%; color: var(--muted); }
html[data-brand=princess] .composer-mic.is-recording { background: var(--accent-btn); color: var(--accent-btn-ink); }
html[data-brand=princess] .dict-dot { background: var(--accent); }

/* typing on a phone: the room folds down to her face and her line (ui-sidebar.js sets .is-typing) */
html[data-brand=princess] #sidebar.is-typing .room { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; align-items: center; padding-top: 8px; }
html[data-brand=princess] #sidebar.is-typing .scene { width: 64px; height: 64px; aspect-ratio: auto; }
html[data-brand=princess] #sidebar.is-typing .scene :is(.win-box, .glow, .her) { display: none; }
html[data-brand=princess] #sidebar.is-typing :is(.thing, .her-tap, .says-chips) { display: none; } /* her things fold away with the window */
html[data-brand=princess] #sidebar.is-typing .says h1 { padding-right: 0; }
html[data-brand=princess] #sidebar.is-typing .scene .mini { display: block; width: 64px; height: 64px; }
html[data-brand=princess] #sidebar.is-typing .says { margin-top: 0; padding: 11px 14px 11px 16px; border-radius: 22px; }
html[data-brand=princess] #sidebar.is-typing .says::before { left: -7px; top: 50%; margin: -7px 0 0 0; transform: rotate(-45deg); }
html[data-brand=princess] #sidebar.is-typing .says h1 { font-size: 19px; }
html[data-brand=princess] #sidebar.is-typing .says p { font-size: 14.5px; }
html[data-brand=princess] #sidebar.is-typing :is(.side-head, #side-list, .side-empty) { display: none; }

/* ---------- A CHAT ---------- */
html[data-brand=princess] .chat-head { height: 56px; padding: 0 6px; gap: 0; border-bottom: 0; background: var(--bg); }
html[data-brand=princess] .chat-head .head-avatar { margin: 0 8px 0 2px; }
html[data-brand=princess] .head-text { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; flex: 1; }
html[data-brand=princess] .head-line { display: block; }
html[data-brand=princess] .head-name, html[data-brand=princess] .chat-head .badge { display: none; }
html[data-brand=princess] .head-title { display: block; font: 650 15.5px/1.2 var(--font); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-brand=princess] .head-status { font-size: 12px; font-weight: 550; line-height: 1.25; color: var(--faint); gap: 0; }
html[data-brand=princess] .head-status .dot { display: none; }
html[data-brand=princess] .head-status.tone-live { color: var(--accent-strong); }
html[data-brand=princess] .chat-head .head-screen { display: none; }
html[data-brand=princess] .files-toggle { color: var(--muted); }

html[data-brand=princess] .stream-wrap { max-width: none; padding: 8px 16px 12px; }
@media (max-width: 700px) { html[data-brand=princess] #view-chat .stream-wrap { padding: 8px 16px calc(var(--composer-h, 70px) + 10px); } }
html[data-brand=princess] .stream > .day { margin: 22px 0 0; }
html[data-brand=princess] .stream > .day:first-child { margin-top: 8px; }
html[data-brand=princess] .day { font-size: 12px; font-weight: 550; color: var(--faint); }
html[data-brand=princess] .day::before, html[data-brand=princess] .day::after { background: var(--paper-line); }
/* her replies are plain text on the page; her face is in the header and in the one question */
html[data-brand=princess] .bubble-bot { background: transparent; border: 0; box-shadow: none; padding: 0 2px; max-width: 100%; font-size: 15px; line-height: 1.5; color: var(--text); border-radius: 0; }
@media (hover: hover) { html[data-brand=princess] .bubble-bot { max-width: calc(100% - 36px); } }
html[data-brand=princess] .bubble-bot .md p { margin: 0; }
html[data-brand=princess] .bubble-bot .md p + p, html[data-brand=princess] .bubble-bot .md p + ul, html[data-brand=princess] .bubble-bot .md ul + p,
html[data-brand=princess] .bubble-bot .md p + ol, html[data-brand=princess] .bubble-bot .md ol + p { margin-top: 6px; }
html[data-brand=princess] .bubble-bot .md ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
html[data-brand=princess] .bubble-bot .md ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
html[data-brand=princess] .bubble-bot .md ul > li { position: relative; padding-left: 15px; margin: 0; }
html[data-brand=princess] .bubble-bot .md ul > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
html[data-brand=princess] .bubble-bot .md li { margin: 0; }
html[data-brand=princess] .bubble-bot .md ul ul, html[data-brand=princess] .bubble-bot .md ol ul, html[data-brand=princess] .bubble-bot .md ul ol { margin-top: 4px; }
html[data-brand=princess] .bubble-bot .md b, html[data-brand=princess] .bubble-bot .md strong { font-weight: 640; }
html[data-brand=princess] .bubble-bot .md a { color: var(--accent-strong); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
html[data-brand=princess] .bubble-bot .md h1, html[data-brand=princess] .bubble-bot .md h2, html[data-brand=princess] .bubble-bot .md h3 { margin: 10px 0 4px; font-size: 15.5px; }
html[data-brand=princess] .bubble-user { background: var(--user-bg); color: var(--user-ink); padding: 9px 14px; border-radius: 20px; border-bottom-right-radius: 7px; max-width: 86%; font-size: 15px; line-height: 1.45; }
html[data-brand=princess] .bubble-user .att-chip { background: color-mix(in srgb, var(--user-ink) 12%, transparent); }
html[data-brand=princess] .bubble-user .att-img img { border-radius: 14px; border-color: color-mix(in srgb, var(--user-ink) 14%, transparent); }
html[data-brand=princess] .reply-btn { background: var(--paper-2); border-color: var(--paper-line); }
html[data-brand=princess] .quote { border-radius: 10px; }

/* the working line: a pink dot, plain words, Stop at the end */
html[data-brand=princess] .working { gap: 9px; margin: 12px 0 0; min-height: 44px; line-height: 1.3; }
html[data-brand=princess] .working-face { width: 24px; height: 24px; display: grid; place-items: center; }
html[data-brand=princess] .working-text { flex: 1; display: flex; flex-direction: column; white-space: normal; overflow: visible; }
html[data-brand=princess] .working-what { color: var(--accent-strong); font-weight: 620; font-size: 13.5px; }
html[data-brand=princess] .working-sub { font-size: 13px; color: var(--muted); }
html[data-brand=princess] .working-clock { margin-left: 6px; color: var(--faint); font-size: 13px; }
html[data-brand=princess] .stop-btn { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; min-height: 0; padding: 0 13px 0 11px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13.5px; font-weight: 620; color: var(--text); background: transparent; }
html[data-brand=princess] .stop-btn::after { content: ""; position: absolute; inset: -4px 0; }
html[data-brand=princess] .stop-sq { width: 9px; height: 9px; border-radius: 2.5px; background: currentColor; flex: none; }

/* the one question: her small face, what she wants to do, two buttons that say what they do */
html[data-brand=princess] .card-approval { --cb-wait-bg: color-mix(in srgb, var(--accent-soft) 52%, var(--paper)); --cb-wait-line: color-mix(in srgb, var(--accent) 38%, var(--paper-line)); }
html[data-brand=princess] .card-approval.is-pending { display: flex; align-items: flex-start; gap: 10px; align-self: stretch; width: auto; padding: 13px 14px 14px 12px; border-radius: 22px; }
html[data-brand=princess] .card-approval.is-pending > .avatar { margin-top: 1px; }
html[data-brand=princess] .card-approval .c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
html[data-brand=princess] .card-approval .q { font: 680 17px/1.28 var(--round); letter-spacing: -.005em; overflow-wrap: anywhere; }
html[data-brand=princess] .card-approval .d { font-size: 14px; line-height: 1.42; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
html[data-brand=princess] .card-approval .host { font-size: 12.5px; line-height: 1.3; color: var(--faint); overflow-wrap: anywhere; } /* a job's hand-over card: the site's address, read from the browser */
html[data-brand=princess] .card-approval .confirm { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
html[data-brand=princess] .card-approval .confirm .btn { min-height: 46px; padding: 0 18px; }
html[data-brand=princess] .card-approval.is-decided { display: flex; align-items: center; gap: 8px; align-self: flex-start; width: auto; min-height: 32px; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 13px; font-weight: 580; color: var(--muted); }
html[data-brand=princess] .card-approval.is-decided svg { flex: none; stroke-width: 2.4; color: var(--faint); }
html[data-brand=princess] .card-approval.is-decided.st-allowed svg { color: var(--ok); }
html[data-brand=princess] .waiting-strip { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, var(--paper-line)); border-radius: 14px; }
html[data-brand=princess] .wait-head { color: var(--accent-strong); font-size: 11.5px; }
html[data-brand=princess] .wait-line { min-height: 34px; }

/* files she sends: a picture, or a little page */
html[data-brand=princess] .card-result { align-self: stretch; width: auto; padding: 12px; border-radius: 21px; overflow: hidden; background: color-mix(in srgb, var(--accent-soft) 30%, var(--paper)); border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--paper-line)); }
html[data-brand=princess] .card-result .file-preview { border: 0; border-radius: 14px; overflow: hidden; background: var(--paper-2); }
html[data-brand=princess] .card-result .file-preview img { width: 100%; max-height: 360px; object-fit: contain; }
html[data-brand=princess] .result-main { display: flex; align-items: center; gap: 12px; }
html[data-brand=princess] .result-main .thumb { width: 48px; height: 62px; flex: none; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px rgb(90 35 50 / .16), 0 3px 8px rgb(0 0 0 / .16); transform: rotate(-3deg); margin: 2px 4px; }
html[data-brand=princess] .result-main .thumb svg { display: block; width: 100%; height: 100%; }
html[data-brand=princess] .result-main .t { min-width: 0; flex: 1; display: block; }
html[data-brand=princess] .result-main .n { display: block; font-weight: 640; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-brand=princess] .result-main .p { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); white-space: nowrap; }
html[data-brand=princess] .result-actions { display: flex; gap: 8px; margin-top: 12px; }
html[data-brand=princess] .result-actions .btn { flex: 1; padding: 0 10px; font-size: 14.5px; }
html[data-brand=princess] .is-picture .result-actions { justify-content: flex-end; }
html[data-brand=princess] .is-picture .result-actions .btn { flex: 0 0 auto; padding: 0 18px; }
/* a recording or a clip plays in its card (grok-1): the browser's own player (color-scheme follows the page, so it is dark in the dark), the name under a video and over a sound */
html[data-brand=princess] .result-player { display: block; width: 100%; border-radius: 14px; color-scheme: light dark; }
html[data-brand=princess] .result-player.is-video { max-height: 360px; background: #000; object-fit: contain; }
html[data-brand=princess] .result-player.is-audio { height: 44px; margin-top: 10px; }
html[data-brand=princess] .is-video .result-main { margin-top: 10px; }
html[data-brand=princess] .is-media .result-actions .btn { flex: 0 0 auto; padding: 0 18px; }
html[data-brand=princess] .is-media .result-actions { justify-content: flex-end; }

/* notes from the app: a reminder going off, a stop. One plain line, no chip. */
html[data-brand=princess] .event { background: var(--paper-2); }
html[data-brand=princess] .event.event-plain { align-self: flex-start; max-width: 100%; align-items: center; gap: 8px; padding: 0; border-radius: 0; background: none; min-height: 32px; font-size: 13px; font-weight: 580; line-height: 1.35; color: var(--muted); }
html[data-brand=princess] .event-plain svg { margin-top: 0; color: var(--faint); }
html[data-brand=princess] .event.event-plain.ev-reminder { margin: 4px 0; font-size: 14px; font-weight: 600; color: var(--text); }
html[data-brand=princess] .event-plain.ev-reminder svg { color: var(--accent-strong); }
html[data-brand=princess] .err-soft { align-self: stretch; max-width: none; padding: 10px 14px; border-radius: 16px; background: var(--paper-2); color: var(--text); font-size: 14px; line-height: 1.42; }
html[data-brand=princess] .err-soft svg { color: var(--accent-strong); margin-top: 2px; }
/* something small she did, with the way to it and the way back: "Added to your shopping list: Nappies" with See list and Undo (ui-chat.js didEl; it arrives like any line, by .is-arriving) */
html[data-brand=princess] .did { align-self: stretch; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 4px 6px 12px; border-radius: 18px; background: var(--paper-2); }
html[data-brand=princess] .did > svg { flex: none; color: var(--ok); stroke-width: 2.3; }
html[data-brand=princess] .did .w { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
html[data-brand=princess] .did .w b { font-size: 14.5px; font-weight: 630; color: var(--text); }
html[data-brand=princess] .did .undo { flex: none; min-height: 44px; padding: 0 10px; border: 0; background: none; border-radius: 14px; font-size: 14px; font-weight: 620; color: var(--accent-strong); -webkit-tap-highlight-color: transparent; }
html[data-brand=princess] .did .undo + .undo { margin-left: -4px; }
html[data-brand=princess] .did .undo:active { background: color-mix(in srgb, var(--text) 7%, transparent); }
html[data-brand=princess] .did .undo:disabled { opacity: .5; }
html[data-brand=princess] .did.undone > svg { color: var(--faint); }
html[data-brand=princess] .did.undone .w b { color: var(--muted); font-weight: 580; }
/* The app's own lines about the spare (no button on any of them: the bar at the top of the chat has it): the words in her ink; drawn as past (muted) once the cause is over; and "signed back in" in the same look. */
html[data-brand=princess] .did.backup { flex-wrap: wrap; align-items: flex-start; row-gap: 0; padding: 12px 14px 12px 12px; }
html[data-brand=princess] .did.backup > svg { color: var(--accent-strong); margin-top: 1px; }
html[data-brand=princess] .did.backup .w { flex: 1 1 calc(100% - 30px); font-size: 14px; line-height: 1.4; color: var(--text); }
html[data-brand=princess] .did.backup.past > svg { color: var(--faint); }
html[data-brand=princess] .did.backup.past .w { color: var(--muted); }
html[data-brand=princess] .did.backup.home { align-items: center; min-height: 0; }
html[data-brand=princess] .did.backup.home .w { flex: 1 1 0; color: var(--muted); }
/* ---------- while the ChatGPT sign-in is down (the felt-problem build): the bar at the top of every chat, the chip on home, and the sheet behind the one button ---------- */
/* THE BAR: one slim line between the header and the conversation (in the page's flow, so it moves neither the header nor the message box). Calm to look at (her soft rose, no motion) and still impossible to miss: a full-width
   band in the accent, the words, and the one button as a filled pill. The button's tap area is 44 px tall (the ::after) though the pill is 30. */
html[data-brand=princess] .felt-bar { flex: none; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px 4px 16px; background: var(--accent-soft); color: var(--accent-strong);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); font-size: 13.5px; font-weight: 620; line-height: 1.3; }
html[data-brand=princess] .felt-mark { flex: none; display: grid; place-items: center; width: 14px; height: 14px; }
html[data-brand=princess] .felt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-strong); }
html[data-brand=princess] .felt-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
html[data-brand=princess] .felt-btn { position: relative; flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--accent-btn); color: var(--accent-btn-ink); font: 650 13.5px/1 var(--font); -webkit-tap-highlight-color: transparent; }
html[data-brand=princess] .felt-btn::after { content: ""; position: absolute; inset: -7px -4px; }
html[data-brand=princess] .felt-btn:active { filter: brightness(.92); }
/* THE HOME CHIP: beside "On it", in the same top-right corner of her bubble. The two chips share one corner box; the greeting makes room for it. */
html[data-brand=princess] .says-chips { position: absolute; top: 5px; right: 6px; display: flex; align-items: center; }
html[data-brand=princess] .says-chips .says-chip { position: static; }
html[data-brand=princess] .felt-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; background: none; border-radius: 16px; -webkit-tap-highlight-color: transparent; }
html[data-brand=princess] .felt-chip > span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--accent-btn); color: var(--accent-btn-ink); font: 650 13px/1 var(--font); white-space: nowrap; }
html[data-brand=princess] .felt-chip:active > span { filter: brightness(.92); }
html[data-brand=princess] .says.has-felt h1 { padding-right: 150px; }
html[data-brand=princess] .says.has-felt.has-felt-wide h1 { padding-right: 200px; } /* "What’s wrong" + "On it" are 186 px wide: the greeting wraps rather than sit under them */
/* THE SHEET: the words, then the one block (the button, the steps or the message), then "Details" folded. */
html[data-brand=princess] .dlg-note .dlg-body { gap: 14px; }
html[data-brand=princess] .note-body { display: flex; flex-direction: column; gap: 14px; }
html[data-brand=princess] .note-text { margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--paper-2); color: var(--text); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
html[data-brand=princess] .note-message { font-size: 15px; }
html[data-brand=princess] .note-actions { display: flex; justify-content: flex-end; }
html[data-brand=princess] .note-wait { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
html[data-brand=princess] .note-lead { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text); }
html[data-brand=princess] .note-lead + .note-lead { margin-top: -4px; color: var(--muted); font-size: 14px; }
html[data-brand=princess] .note-slot { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
html[data-brand=princess] .note-slot > .note-text { align-self: stretch; }
html[data-brand=princess] .note-slot > .note-actions { align-self: flex-end; }
html[data-brand=princess] .note-offer, html[data-brand=princess] .note-said { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
html[data-brand=princess] .note-said { color: var(--text); }
html[data-brand=princess] .note-checking { display: flex; align-items: center; gap: 10px; }
html[data-brand=princess] .note-flash { font-size: 13px; color: var(--accent-strong); }
html[data-brand=princess] .note-step { margin: 0; font-size: 15px; line-height: 1.4; color: var(--text); }
html[data-brand=princess] .note-step:not(:first-child) { margin-top: 4px; }
html[data-brand=princess] .note-codebox { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 10px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--paper-2); }
html[data-brand=princess] .note-codebox .note-actions { margin-left: auto; }
html[data-brand=princess] .note-codebox .note-flash { flex: 1 1 100%; padding: 0 0 4px; }
html[data-brand=princess] .note-v { font-size: 14px; line-height: 1.35; color: var(--text); overflow-wrap: break-word; -webkit-user-select: all; user-select: all; }
html[data-brand=princess] .note-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 24px; font-weight: 650; letter-spacing: .08em; }
html[data-brand=princess] .note-open { align-self: flex-start; display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
html[data-brand=princess] .note-fold { align-self: stretch; border-top: 1px solid var(--line); }
html[data-brand=princess] .note-fold > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 620; color: var(--muted); -webkit-tap-highlight-color: transparent; }
html[data-brand=princess] .note-fold > summary::-webkit-details-marker { display: none; }
html[data-brand=princess] .note-fold > summary svg { flex: none; transition: transform .2s var(--hr-spring); }
html[data-brand=princess] .note-fold[open] > summary svg { transform: rotate(90deg); }
html[data-brand=princess] .note-foldbody { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 2px 0 6px; }
html[data-brand=princess] .note-foldbody > .note-text { align-self: stretch; }
html[data-brand=princess] .note-foldbody > .note-actions { align-self: flex-end; }

/* the message box in a chat */
html[data-brand=princess] #view-chat .composer-box { background: var(--paper-2); border-color: var(--paper-line); box-shadow: none; }
html[data-brand=princess] #view-chat .composer-box:focus-within { border-color: color-mix(in srgb, var(--accent-btn) 55%, var(--line-strong)); box-shadow: none; }
html[data-brand=princess] #view-chat .composer { max-width: none; padding: 6px 16px calc(env(safe-area-inset-bottom, 0px) + 10px); }
/* the keyboard covers the home indicator, so while typing the box sits 10 px above the keyboard, not 10 px above where the indicator would be */
html[data-brand=princess] #view-chat .composer:focus-within, html[data-brand=princess] #sidebar.is-typing .ask-zone { padding-bottom: 10px; }
@media (max-width: 700px) {
  html[data-brand=princess] #view-chat .composer { padding: 6px 16px calc(env(safe-area-inset-bottom, 0px) + 10px); border-top: 1px solid color-mix(in srgb, var(--paper-line) 70%, transparent); }
}
html[data-brand=princess] .chips { padding: 0 4px 8px; align-items: center; }
html[data-brand=princess] .reply-strip { border-radius: 14px; background: var(--paper-2); }
html[data-brand=princess] .chip-file { background: var(--paper-2); border-color: var(--paper-line); }
html[data-brand=princess] .chip-thumb { border-color: var(--paper-line); }
html[data-brand=princess] .jump { border-radius: 999px; }
html[data-brand=princess] .jump.has-new::before { background: var(--accent); }

/* ---------- HER PAGES: what she is doing, her list, reminders, what she knows (web/ui-pages.js; the mockup's tools/extra.css and proto.html) ----------
   A full page, not a sheet: it slides in from the right, takes the page colour (inside #main the chat's paper is --bg, so the page asks for --bg-side) and has no top margin or radius. */
html[data-brand=princess] #view-page { --bg: var(--bg-side); background: var(--bg-side); animation: hr-page-in .34s var(--hr-spring) both; }
@keyframes hr-page-in { from { transform: translateX(24px); opacity: .6; } }
html[data-brand=princess] #app[data-mode=oneagent][data-view=page] #main { background: var(--bg-side); }
html[data-brand=princess] #app[data-mode=oneagent] #main { overflow-x: clip; } /* the page slides in from 24 px to the right: that is not a sideways scroll */
@media (min-width: 701px) { html[data-brand=princess] #app[data-mode=oneagent] #view-page { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
/* on a phone the strip behind the status bar is the page's colour, as on home */
html[data-brand=princess] #app[data-view=page]:not([hidden]) ~ .top-strip { background: var(--strip-side); }
html[data-brand=princess] .her-page button:not(.btn, .icon-btn) { border: 0; background: none; padding: 0; text-align: inherit; -webkit-tap-highlight-color: transparent; }
html[data-brand=princess] #view-page .page-head { flex: none; height: 52px; display: flex; align-items: center; gap: 2px; padding: 0 8px; }
html[data-brand=princess] #view-page .page-title { font: 700 18px/1.2 var(--round); letter-spacing: -.005em; }
html[data-brand=princess] #view-page .page-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 2px 16px calc(env(safe-area-inset-bottom, 0px) + 26px); scrollbar-width: none; }
html[data-brand=princess] #view-page .page-scroll::-webkit-scrollbar { display: none; }
html[data-brand=princess] #view-page .intro { display: flex; align-items: center; gap: 12px; padding: 4px 2px 14px; font-size: 15px; line-height: 1.42; color: var(--muted); }
html[data-brand=princess] #view-page .intro.is-empty { color: var(--text); }
html[data-brand=princess] #view-page .intro .avatar { flex: none; }
html[data-brand=princess] #view-page .retry { margin: 0 0 12px 2px; }
html[data-brand=princess] #view-page .label { font: 650 12.5px/1.2 var(--font); color: var(--faint); letter-spacing: .01em; }
html[data-brand=princess] #view-page .sec { display: block; margin: 16px 4px 4px; }
html[data-brand=princess] #view-page .sec:first-child { margin-top: 4px; }
html[data-brand=princess] #view-page .sec.rose { color: var(--accent-strong); }
/* what she is doing */
html[data-brand=princess] #view-page .orow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 0 10px 4px; text-align: left; color: var(--text); }
html[data-brand=princess] #view-page .orow + .orow { border-top: 1px solid var(--line); }
html[data-brand=princess] #view-page .orow:active { background: color-mix(in srgb, var(--text) 5%, transparent); }
html[data-brand=princess] #view-page .orow .g { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; background: var(--surface); color: var(--faint); }
html[data-brand=princess] #view-page .orow .g.ok { color: var(--ok); }
html[data-brand=princess] #view-page .orow .g.ok svg { stroke-width: 2.3; }
html[data-brand=princess] #view-page .orow .g.flag { color: var(--accent-strong); background: var(--accent-soft); }
html[data-brand=princess] #view-page .orow .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html[data-brand=princess] #view-page .orow b { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
html[data-brand=princess] #view-page .orow .s { font-size: 12.8px; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
html[data-brand=princess] #view-page .orow.old b { font-weight: 560; color: var(--muted); }
html[data-brand=princess] #view-page .orow .go { flex: none; stroke-width: 2.3; color: var(--faint); opacity: .8; margin-right: 4px; }
@media (hover: hover) { html[data-brand=princess] #view-page .orow:hover { background: color-mix(in srgb, var(--text) 4%, transparent); } }
/* her list */
html[data-brand=princess] #view-page .seg { display: flex; gap: 2px; padding: 3px; margin: 0 0 12px; border-radius: 999px; background: var(--surface); }
html[data-brand=princess] #view-page .seg button { flex: 1; min-height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 7px; font: 620 14.5px/1 var(--font); color: var(--muted); }
html[data-brand=princess] #view-page .seg button[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--line) inset; }
html[data-brand=princess] #view-page .seg button i { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--faint); }
html[data-brand=princess] #view-page .add { display: flex; align-items: center; min-height: 52px; padding: 3px 4px 3px 16px; border-radius: 18px; border: 1px dashed var(--line-strong); transition: border-color .2s ease; }
html[data-brand=princess] #view-page .add:focus-within { border-style: solid; border-color: color-mix(in srgb, var(--accent-btn) 55%, var(--line-strong)); }
html[data-brand=princess] #view-page .add input { flex: 1; min-width: 0; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 16px; outline: none; }
html[data-brand=princess] #view-page .add input::placeholder { color: var(--faint); opacity: 1; }
html[data-brand=princess] #view-page .add button { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; color: var(--accent-strong); }
html[data-brand=princess] #view-page .add button svg { stroke-width: 2.2; }
html[data-brand=princess] #view-page .items { margin-top: 8px; }
html[data-brand=princess] #view-page .item { display: flex; align-items: center; min-height: 52px; }
html[data-brand=princess] #view-page .item.is-arriving { animation: hr-arrive .3s var(--hr-spring) both; }
@keyframes hr-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html[data-brand=princess] #view-page .item + .item { border-top: 1px solid var(--line); }
html[data-brand=princess] #view-page .item-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 4px; text-align: left; border-radius: 12px; color: var(--text); }
html[data-brand=princess] #view-page .item-main:active { background: color-mix(in srgb, var(--text) 5%, transparent); }
html[data-brand=princess] #view-page .item .box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.8px solid var(--line-strong); transition: background-color .18s ease, border-color .18s ease; }
html[data-brand=princess] #view-page .item .box svg { stroke-width: 3; color: var(--accent-btn-ink); opacity: 0; transition: opacity .18s ease; }
html[data-brand=princess] #view-page .item .w { flex: 1; min-width: 0; font-size: 15.5px; line-height: 1.35; transition: color .25s ease; overflow-wrap: anywhere; }
html[data-brand=princess] #view-page .item.done .box { background: var(--accent-btn); border-color: var(--accent-btn); }
html[data-brand=princess] #view-page .item.done .box svg { opacity: 1; }
html[data-brand=princess] #view-page .item.done .w { color: var(--faint); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--faint) 60%, transparent); }
html[data-brand=princess] #view-page .item.done { opacity: .62; transition: opacity .3s ease; }
html[data-brand=princess] #view-page .item .from { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--faint); }
html[data-brand=princess] #view-page .item .from:active { background: color-mix(in srgb, var(--text) 7%, transparent); }
html[data-brand=princess] #view-page .foot-note { display: flex; flex-direction: column; gap: 7px; padding: 16px 4px 0; font-size: 13px; line-height: 1.4; color: var(--faint); }
html[data-brand=princess] #view-page .foot-note > span { display: flex; align-items: flex-start; gap: 9px; }
html[data-brand=princess] #view-page .foot-note svg { flex: none; margin-top: 2px; }
html[data-brand=princess] #view-page .foot-note .none { font-size: 15px; line-height: 1.42; color: var(--text); padding-top: 2px; }
html[data-brand=princess] #view-page .foot-note:empty { display: none; }
/* reminders: a switch and a cross on each; below them the work she does on repeat, on the same card */
html[data-brand=princess] #view-page .rem { display: flex; align-items: center; gap: 0; min-height: 66px; margin-bottom: 8px; padding: 9px 2px 9px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
html[data-brand=princess] #view-page .rem .t { flex: 1; min-width: 0; padding-right: 8px; }
html[data-brand=princess] #view-page .rem p { font-size: 15.5px; line-height: 1.34; transition: color .2s ease; overflow-wrap: anywhere; }
html[data-brand=princess] #view-page .rem .when { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 13px; line-height: 1.3; color: var(--muted); }
html[data-brand=princess] #view-page .rem .when svg { width: 13px; height: 13px; stroke-width: 2.3; flex: none; }
html[data-brand=princess] #view-page .rem.off p, html[data-brand=princess] #view-page .rem.off .when { color: var(--faint); }
html[data-brand=princess] #view-page .rem .x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--faint); }
html[data-brand=princess] #view-page .rem .x:active { background: color-mix(in srgb, var(--text) 7%, transparent); }
html[data-brand=princess] #view-page .rem.gone { background: transparent; border-style: dashed; padding-right: 6px; }
html[data-brand=princess] #view-page .rem.gone p { color: var(--faint); text-decoration: line-through; }
html[data-brand=princess] #view-page .rm, html[data-brand=princess] #view-page .rem .back { flex: none; min-height: 44px; padding: 0 10px; border-radius: 14px; font-size: 13.5px; font-weight: 620; color: var(--muted); text-align: center; }
html[data-brand=princess] #view-page .rem .back { color: var(--accent-strong); }
html[data-brand=princess] #view-page .repeat-box .sec { margin-top: 18px; margin-bottom: 8px; }
html[data-brand=princess] #view-page .tog { position: relative; width: 50px; height: 44px; flex: none; }
html[data-brand=princess] #view-page .tog::before { content: ""; position: absolute; left: 3px; top: 9px; width: 44px; height: 26px; border-radius: 13px; background: color-mix(in srgb, var(--text) 16%, transparent); transition: background-color .2s ease; }
html[data-brand=princess] #view-page .tog::after { content: ""; position: absolute; left: 6px; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .25s var(--hr-spring), background-color .2s ease; }
html[data-brand=princess] #view-page .tog[aria-checked="true"]::before { background: color-mix(in srgb, var(--accent-btn) 78%, var(--surface)); }
html[data-brand=princess] #view-page .tog[aria-checked="true"]::after { transform: translateX(18px); background: #fff; }
@media (prefers-color-scheme: light) { html[data-brand=princess] #view-page .tog::after { background: #fff; box-shadow: 0 1px 3px rgb(70 25 40 / .25); } }
/* what she knows: a plain sentence, where it came from, Fix and Forget; Fix turns the card into a box with Cancel and Save */
html[data-brand=princess] #view-page .know { display: block; min-height: 0; margin-bottom: 8px; padding: 12px 6px 0 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
html[data-brand=princess] #view-page .know p { font-size: 15.5px; line-height: 1.36; padding-right: 10px; overflow-wrap: anywhere; }
html[data-brand=princess] #view-page .know .foot { display: flex; align-items: center; min-height: 44px; margin-top: -3px; }
html[data-brand=princess] #view-page .know .from { flex: 1; min-width: 0; margin: 0; display: block; font-size: 12.5px; line-height: 1.3; color: var(--faint); }
/* a thing that came from a chat opens that chat, with the same small chat mark her list uses */
html[data-brand=princess] #view-page .know button.from { flex: 0 1 auto; display: flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 auto 0 -6px; padding: 0 8px 0 6px; border-radius: 12px; text-align: left; }
html[data-brand=princess] #view-page .know button.from svg { flex: none; opacity: .9; }
html[data-brand=princess] #view-page .know button.from span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-brand=princess] #view-page .know button.from:active, html[data-brand=princess] #view-page .know .rm:active { background: color-mix(in srgb, var(--text) 7%, transparent); }
html[data-brand=princess] #view-page .know .rm { min-width: 44px; font-weight: 600; color: var(--faint); }
html[data-brand=princess] #view-page .know .rm.go { color: var(--accent-strong); }
html[data-brand=princess] #view-page .know .rm.go:disabled { color: var(--faint); opacity: .5; }
html[data-brand=princess] #view-page .know.is-new { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); }
html[data-brand=princess] #view-page .know.is-new .from { color: var(--accent-strong); }
html[data-brand=princess] #view-page .know.gone { background: transparent; border-style: dashed; padding-bottom: 0; }
html[data-brand=princess] #view-page .know.gone p { color: var(--faint); text-decoration: line-through; }
html[data-brand=princess] #view-page .know.fixing { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); padding: 10px 10px 0 10px; }
html[data-brand=princess] #view-page .know.fixing textarea { display: block; width: 100%; min-height: 68px; padding: 10px 12px; border-radius: 13px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: 16px/1.36 var(--font); outline: none; resize: none; }
html[data-brand=princess] #view-page .know.fixing .foot { justify-content: flex-end; gap: 2px; margin-top: 0; }
/* Her Gmail and Calendar: the one plain line on What I know about you (not a ".know" card: it is not a thing she knows, and the page's own tests count those) */
html[data-brand=princess] #view-page .gcard { display: block; margin-bottom: 12px; padding: 12px 6px 12px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
html[data-brand=princess] #view-page .gcard p { margin: 0; font-size: 15.5px; line-height: 1.36; padding-right: 10px; overflow-wrap: anywhere; }
html[data-brand=princess] #view-page .gcard .foot { display: flex; align-items: center; justify-content: flex-end; margin: 0 0 -6px; }
html[data-brand=princess] #view-page .gcard .rm { min-width: 44px; min-height: 44px; font-weight: 600; color: var(--faint); }
html[data-brand=princess] #view-page .gcard .rm:active { background: color-mix(in srgb, var(--text) 7%, transparent); }

/* ---------- the old views, in whatever styling is cheapest (they take the tokens) ---------- */
html[data-brand=princess] .tools-toggle { background: var(--paper-2); color: var(--muted); }
html[data-brand=princess] .md code, html[data-brand=princess] .md pre { background: var(--paper-2); }
html[data-brand=princess] .files-panel { background: var(--paper); border-left-color: var(--paper-line); }
html[data-brand=princess] .files-head { border-bottom-color: var(--paper-line); }
html[data-brand=princess] .dlg { background: var(--surface); border-radius: 24px; }
html[data-brand=princess] .viewer { background: var(--paper); }

/* ---------- reduced motion: no pulse, no sheet slide (the rest already stops: styles.css, eyes.js) ---------- */
@media (prefers-reduced-motion: reduce) {
  html[data-brand=princess] .dot-live.pulse { animation: none; }
  html[data-brand=princess] #app[data-mode=oneagent][data-pane=main] #view-chat { animation: none; }
  html[data-brand=princess] #view-page, html[data-brand=princess] #view-page .item.is-arriving { animation: none; }
  html[data-brand=princess] .thing svg { transition: none; }
  html[data-brand=princess] .thing:active svg { transform: none; }
  html[data-brand=princess] .av.is-working .av-sill-body, html[data-brand=princess] .av.is-working .av-sill-body > .av-m2 { animation: none; }
}
