Skip to content
← Public packages

@hypercubed/kody-os

Minimal shared Human/Agent OS shell — ReKindle-style blank slate for browser-first use.

FollowFork

Files

shell-css.ts

5 lines · 45.8 KB · TypeScript
/** GENERATED from public/styles.css — do not hand-edit.
 * Source of truth is pkg/public/styles.css. Regenerate after any theme edit.
 * The shell inlines this so Scribe (no external stylesheets) renders correctly.
 */
export const SHELL_CSS: string = "/* kody-os shell theme \u2014 classic Mac-style desktop, e-ink safe.\n   Monochrome only: no colour, no gradients, no animation, no transitions.\n   Stripes are a tiny inline SVG tile (a 1px rule every 4px), not a gradient. */\n\n:root {\n\tcolor-scheme: light;\n\tfont-family: Geneva, Verdana, 'DejaVu Sans', sans-serif;\n\tfont-size: 16px;\n\tline-height: 1.4;\n\t--paper: #fff;\n\t--desk: #e8e8e8;\n\t--shade: #f2f2f2;\n\t--rule: 2px solid #000;\n\t--lift: 3px 3px 0 #000;\n\t--lift-lg: 5px 5px 0 #000;\n\t--os-ink: #000;\n\t--os-paper: var(--paper);\n\t--os-grey: #888;\n\t--os-border: 1px solid #000;\n\t--os-shadow: 2px 2px 0 #000;\n\t--os-radius: 4px;\n\t--os-font: \"Chicago\", \"Geneva\", Helvetica, Arial, sans-serif;\n\t--os-font-mono: \"Courier New\", Courier, monospace;\n\t--os-text-sm: 14px;\n\t--os-text: 16px;\n\t--os-text-lg: 20px;\n\t--os-display: 28px;\n\t--os-tap: 48px;\n\t--os-gap: 6px;\n\t--os-pad: 16px;\n\t--os-dots: radial-gradient(#000 1px, transparent 1.4px);\n\t--stripes: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect y='2' width='4' height='1' fill='%23000'/%3E%3C/svg%3E\");\n\t--checker: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='2' height='2' fill='%23888'/%3E%3Crect x='2' y='2' width='2' height='2' fill='%23888'/%3E%3C/svg%3E\");\n\tbackground: var(--desk);\n\tcolor: #000;\n}\n\n* {\n\tbox-sizing: border-box;\n}\n\n/* E-ink discipline: never animate, never transition. */\n*,\n*::before,\n*::after {\n\tanimation: none !important;\n\ttransition: none !important;\n}\n\n:focus-visible {\n\toutline: 3px solid #000;\n\toutline-offset: 2px;\n}\n\nbody {\n\tmin-height: 100vh;\n\tmargin: 0;\n\tpadding: 0 0 2rem;\n\tbackground: var(--desk);\n\tcolor: #000;\n}\n\n/* ---- System menu bar ---- */\n\n.os-menubar {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\talign-items: stretch;\n\tpadding: 0 0.5rem;\n\tbackground: var(--paper);\n\tborder-bottom: var(--rule);\n}\n\n.os-brand {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tpadding: 0 0.9rem 0 0.35rem;\n\tborder-right: 1px solid #000;\n\tfont-size: 1rem;\n\tfont-weight: bold;\n\tletter-spacing: 0.02em;\n\twhite-space: nowrap;\n}\n\n/* Checkerboard mark drawn in CSS: no font glyph, nothing to go missing. */\n.os-mark {\n\tposition: relative;\n\tdisplay: inline-block;\n\twidth: 0.85rem;\n\theight: 0.85rem;\n\tmargin-right: 0.45rem;\n\tborder: 2px solid #000;\n\tbackground: #fff;\n}\n\n.os-mark::before,\n.os-mark::after {\n\tcontent: \"\";\n\tposition: absolute;\n\twidth: 50%;\n\theight: 50%;\n\tbackground: #000;\n}\n\n.os-mark::before {\n\ttop: 0;\n\tleft: 0;\n}\n\n.os-mark::after {\n\tright: 0;\n\tbottom: 0;\n}\n\n/* Fork glyph mark from settings.json: replaces the default Kody mark when set. */\n.os-mark-glyph {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 0.45rem;\n\tpadding: 0 0.15rem;\n\tborder: 2px solid #000;\n\tbackground: #fff;\n\tfont-size: 0.85rem;\n\tfont-weight: bold;\n\tline-height: 1;\n}\n\n/* Inline-SVG mark from settings.json: sanitized at resolve time, monochrome.\n   Fixed box like tile icons; strokes follow the text color, fills come from\n   the markup so line art stays line art. */\n.os-mark-glyph svg {\n\tdisplay: block;\n\twidth: 1.1rem;\n\theight: 1.1rem;\n\tstroke: currentColor;\n}\n\n/* Default header mark: the official Kody mark in public/favicon.png.\n   A theme icon from settings.json still replaces it (see .os-mark-glyph). */\n.os-mark-img {\n\tdisplay: block;\n\twidth: auto;\n\theight: 1.5rem;\n\tmargin-right: 0.45rem;\n}\n\n.os-menubar nav {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin-left: 0;\n}\n\n.os-menubar nav a {\n\tmin-height: 3rem;\n\tpadding: 0 0.75rem;\n\tfont-size: 0.9375rem;\n\tfont-weight: bold;\n\ttext-decoration: none;\n}\n\n.os-menubar nav a:hover {\n\tbackground: var(--shade);\n}\n\n.os-menubar nav a:active {\n\tbackground: #000;\n\tcolor: #fff;\n}\n\n/* Server-rendered clock slot, far right of the bar. */\n.os-clock {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tmargin-left: auto;\n\tmin-height: 3rem;\n\tpadding: 0 0.75rem 0 0.25rem;\n\tfont-size: 0.8125rem;\n\tfont-weight: bold;\n\tletter-spacing: 0.04em;\n\twhite-space: nowrap;\n}\n\n/* ---- Desktop window ---- */\n\n.os-window {\n\twidth: calc(100% - 2rem);\n\tmax-width: 48rem;\n\tmargin: 1.5rem auto 0;\n\tbackground: var(--paper);\n\tborder: var(--rule);\n\tbox-shadow: var(--lift-lg);\n}\n\n/* Title bar: a white 2.75rem bar carrying a full-width 33px racing-striped band\n   (8 x 4px tile rows + 1, so the band shows eight rules with paper at its top\n   and bottom edges). The band is the\n   ::before layer, centered; white bar padding shows above and below it. The\n   title is borderless white ground running the full bar height at its own\n   width (align-self: stretch), so no stripe ever passes above or below the\n   text. Slots are UNMOVED: absolute 3rem full-height hit targets exactly as\n   before \u2014 only the drawn squares grow, never the slots. */\n.os-titlebar {\n\tposition: relative;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmin-height: 2.75rem;\n\tpadding: 0 3.5rem;\n\tborder-bottom: var(--rule);\n\tbackground-color: var(--paper);\n}\n\n/* 33px stripe band, full-width, centered. Same 4px --stripes tile, unchanged\n   density; band heights stay 4n+1px so the tile phase stays aligned top to\n   bottom. 33px = 8 tile rows + 1, giving 8 rules with paper at the band's\n   top and bottom edges. */\n.os-titlebar::before {\n\tcontent: \"\";\n\tposition: absolute;\n\tleft: 0;\n\tright: 0;\n\ttop: 50%;\n\ttransform: translateY(-50%);\n\theight: 33px;\n\tbackground-color: var(--paper);\n\tbackground-image: var(--stripes);\n\tbackground-repeat: repeat;\n\tpointer-events: none;\n}\n\n.os-title {\n\talign-self: stretch;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tz-index: 1;\n\tmax-width: 100%;\n\tmargin: 0;\n\tpadding: 0 0.85rem;\n\tborder: 0;\n\tbackground: var(--paper);\n\tfont-family: var(--os-font);\n\tfont-size: 1.1rem;\n\tfont-weight: bold;\n\tletter-spacing: 0.04em;\n\tline-height: 1.5;\n\twhite-space: nowrap;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n}\n\n/* Close box doubles as back-to-home, so the chrome is honest. Slots stay at\n   top: 0 for full-height 48px hit targets; the drawn squares shift up 2.5px\n   via the shared header-box square rule to align with the 33px band. */\n.os-box {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 3rem;\n\theight: 100%;\n\tmin-height: 3rem;\n\tpadding: 0;\n\ttext-decoration: none;\n}\n\n/* Shared header-box square: the close, expand/collapse, help, widget-expand,\n   and modal-expand boxes draw one identical 1.7rem outlined square with a 3px\n   white halo punched over the stripes (stripes run up to the halo, no white\n   end columns). One rule for every box, so a new box cannot drift from the\n   rest. Hover/active inverts the square; the X, `?`, and bracket glyphs\n   invert with their own rules below. Slots stay absolute 3rem full-height.\n   Squares shift up 2.5px here so slots stay at top: 0; glyphs shift with\n   matching offsets in their own rules below. */\n.os-box::before,\n.os-expand::before,\n.os-collapse::before,\n.os-help::before,\n.widget-expand::before,\n.modal-expand::before {\n\tcontent: \"\";\n\tdisplay: block;\n\twidth: 1.7rem;\n\theight: 1.7rem;\n\tborder: 2px solid #000;\n\tbackground: #fff;\n\tbox-shadow: 0 0 0 3px #fff;\n\ttransform: translateY(-2.5px);\n}\n\n.os-box:hover::before,\n.os-box:active::before,\n.os-expand:hover::before,\n.os-expand:active::before,\n.os-collapse:hover::before,\n.os-collapse:active::before,\n.os-help:hover::before,\n.os-help:active::before,\n.widget-expand:hover::before,\n.widget-expand:active::before,\n.modal-expand:hover::before,\n.modal-expand:active::before {\n\tbackground: #000;\n}\n\n/* ---- App page full-window view ---- */\n\n/* Page-mode expand/collapse controls share the widget/modal box look and sit\n   in the titlebar slot opposite the close box. */\n.os-expand,\n.os-collapse {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 3rem;\n\theight: 100%;\n\tmin-height: 3rem;\n\tpadding: 0;\n\ttext-decoration: none;\n}\n\n.os-collapse {\n\tdisplay: none;\n}\n\n/* Close: visible X at rest, black on white, inverting with the box. Text glyph\n   (not a drawing) so it inverts with color exactly like the help `?`; sized\n   to 17px arms to match the 1.7rem square. Kept blank-square fallback: if the\n   X ever reads as a smudge at 1-bit e-ink, remove this rule and the box\n   returns to the inverting blank square. */\n.os-box::after {\n\tcontent: \"\u00d7\";\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 50%;\n\ttransform: translate(-50%, calc(-50% - 2.5px));\n\tfont-family: var(--os-font);\n\tfont-size: 1.1rem;\n\tfont-weight: bold;\n\tline-height: 1;\n\tcolor: #000;\n}\n\n.os-box:hover::after,\n.os-box:active::after {\n\tcolor: #fff;\n}\n\n/* Expand: upward-outward corner bracket, matching widget/modal expand.\n   10px bracket centered in the upper-right quadrant of the 1.7rem square. */\n.os-expand::after {\n\tcontent: \"\";\n\tposition: absolute;\n\ttop: calc(50% - 0.55rem - 2.5px);\n\tleft: calc(50% - 0.05rem);\n\twidth: 0.625rem;\n\theight: 0.625rem;\n\tborder-top: 2px solid #000;\n\tborder-right: 2px solid #000;\n}\n\n/* Collapse: the same bracket mirrored to the lower-left corner. */\n.os-collapse::after {\n\tcontent: \"\";\n\tposition: absolute;\n\ttop: calc(50% - 0.075rem - 2.5px);\n\tleft: calc(50% - 0.575rem);\n\twidth: 0.625rem;\n\theight: 0.625rem;\n\tborder-bottom: 2px solid #000;\n\tborder-left: 2px solid #000;\n}\n\n.os-expand:hover::after,\n.os-expand:active::after,\n.os-collapse:hover::after,\n.os-collapse:active::after {\n\tborder-color: #fff;\n}\n\n/* ---- Per-app help: `[?]` box + JS-opened dialog ---- */\n\n/* 3rem hit slot in the titlebar slot immediately left of expand (expand\n   stays at right: 0). The drawn square is the shared header-box square\n   above; this rule only positions the slot and resets the <button> UA\n   styling so the box draws exactly like its link-based siblings. The `?`\n   is element text in a span (not a drawing), absolutely centered over the\n   square, so the glyph reads centered in the box on every font. */\n.os-help {\n\tposition: absolute;\n\ttop: 0;\n\tright: 3rem;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 3rem;\n\theight: 100%;\n\tmin-height: 3rem;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\tbox-shadow: none;\n\tfont: inherit;\n\tcursor: pointer;\n\t-webkit-appearance: none;\n\tappearance: none;\n\ttext-decoration: none;\n\tcolor: #000;\n}\n\n.os-help-glyph {\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 50%;\n\t/* +1px optical correction: the ? curve carries the visual mass and the\n\t   dot hangs below it, so geometric centering reads high; a one-pixel\n\t   drop centers the curve on the square (verified against ink dumps at\n\t   12px: curve lands within 1 device px of square center, dot clears the\n\t   bottom border). Static offset, not an animation or transition. */\n\ttransform: translate(-50%, calc(-50% + 1px - 2.5px));\n\tfont-family: var(--os-font);\n\tfont-size: 1rem;\n\tfont-weight: bold;\n\tline-height: 1;\n}\n\n/* Pin the slot itself transparent on hover/active: the base `button:hover`\n   (`var(--shade)`) and `button:active` (`#000` + press shift) rules below\n   beat the plain `.os-help` background on specificity, and links never\n   match them \u2014 without this the slot flashes while the siblings do not.\n   Only the square inverts (shared rule above) and the glyph with it. */\n.os-help:hover,\n.os-help:active {\n\tbackground: transparent;\n\tbox-shadow: none;\n\ttransform: none;\n\tcolor: #fff;\n}\n\n/* Two right-hand slots occupied: widen the clearance on BOTH sides to match.\n   Symmetric padding keeps the content box centered in the bar, so the title\n   stays centered whether or not help is present. */\n.os-titlebar.has-help {\n\tpadding-left: 6.5rem;\n\tpadding-right: 6.5rem;\n}\n\n/* ---- Standard modal UI (global) ---- */\n\n/* The centered double-bordered modal box is the standard modal UI: use\n   `.os-modal` with `.os-modal-heading` / `.os-modal-body` /\n   `.os-modal-close` for any modal. The per-app help dialog is the first\n   consumer and shares these rules via grouped selectors, so the standard\n   and the help box cannot drift apart. The dialog is present in the\n   server-rendered page (hidden) and opened in place: no fragment, no\n   route, no storage. Monochrome, system fonts, no animation, no\n   gradient. Centered box, double line border: header line, body text,\n   Close button. The header is a plain bold centered line with no\n   borders of its own. */\n.os-modal[hidden],\n.os-help-dialog[hidden] {\n\tdisplay: none;\n}\n\n.os-modal:not([hidden]),\n.os-help-dialog:not([hidden]) {\n\tdisplay: block;\n\tposition: fixed;\n\ttop: 15vh;\n\tleft: 1rem;\n\tright: 1rem;\n\tz-index: 30;\n\tmax-width: 32rem;\n\tmax-height: 70vh;\n\toverflow-y: auto;\n\tmargin: 0 auto;\n\tborder: 6px double #000;\n\tbackground: var(--paper);\n\tbox-shadow: var(--lift-lg);\n}\n\n.os-modal-heading,\n.os-help-heading {\n\tmargin: 0;\n\tpadding: 0.5rem 0.5rem 0;\n\tbackground: var(--paper);\n\tfont-size: 0.875rem;\n\tfont-weight: bold;\n\ttext-align: center;\n}\n\n.os-modal-body,\n.os-help-body {\n\tmargin: 0;\n\tpadding: 0.5rem;\n\tbackground: var(--paper);\n\tfont-size: 0.875rem;\n\ttext-align: center;\n\twhite-space: pre-wrap;\n\toverflow-wrap: anywhere;\n}\n\n/* Normal auto-width button in a padded, centered footer \u2014 the base `button`\n   theme rules (border, hard shadow, bold, hover shade, active invert) supply\n   the look, so this stays an ordinary button like everywhere else. */\n.os-modal-close,\n.os-help-close {\n\tmargin: 0;\n\tpadding: 0.5rem;\n\ttext-align: center;\n}\n\n.os-modal-close button,\n.os-help-close button {\n\tmin-height: 3rem;\n\tpadding: 0.65rem 1rem;\n}\n\n/* Expanded view: the app page drops the desktop gutter, the width cap, and the\n   menu/status bars, and sits flush with the top. The whole viewport is\n   paper-white, so a short app no longer ends in a grey desk expanse: the\n   window fills the viewport height, and the app panel draws no border at\n   all (previously its bottom border survived, as a line under the content).\n   The striped titlebar stays, because it holds the collapse control. */\n#os-full:target {\n\tpadding: 0;\n\tbackground: var(--paper);\n\tmin-height: 100vh;\n}\n\n#os-full:target .os-menubar,\n#os-full:target .os-statusbar {\n\tdisplay: none;\n}\n\n#os-full:target .os-window {\n\twidth: 100%;\n\tmax-width: none;\n\tmargin: 0;\n\tborder: 0;\n\tbox-shadow: none;\n\tbackground: var(--paper);\n\tmin-height: 100vh;\n}\n\n#os-full:target main {\n\tpadding: 0;\n}\n\n#os-full:target .app {\n\tborder: 0;\n\tbox-shadow: none;\n}\n\n#os-full:target .os-expand {\n\tdisplay: none;\n}\n\n#os-full:target .os-collapse {\n\tdisplay: flex;\n}\n\nmain {\n\tpadding: 1rem;\n}\n\n/* ---- Help page ---- */\n\n.app-body h3 {\n\tmargin: 1rem 0 0.6rem;\n\tfont-size: 0.8125rem;\n\tfont-weight: bold;\n\tletter-spacing: 0.12em;\n\ttext-transform: uppercase;\n}\n\n/* Help-only typography: headings larger than body text, body regular.\n   Scoped to .help-body so state-field paragraphs elsewhere keep the\n   shell's readout rendering. */\n.help-body h3 {\n\tfont-size: 1.125rem;\n}\n.help-body > p {\n\tfont-weight: normal;\n}\n\n/* ---- Launcher grid ---- */\n\n.category {\n\tmargin: 0;\n}\n\n/* Inverted category bar. */\n.category h2 {\n\tmargin: 0 0 0.9rem;\n\tpadding: 0.4rem 0.6rem;\n\tborder: var(--rule);\n\tbackground: #000;\n\tcolor: #fff;\n\tfont-size: 0.8125rem;\n\tfont-weight: bold;\n\tletter-spacing: 0.12em;\n\ttext-transform: uppercase;\n}\n\n/* Section header: label left, action button inline upper right. */\n.section-head {\n\tdisplay: flex;\n\talign-items: center;\n\tmargin: 0 0 0.9rem;\n\tborder: var(--rule);\n\tbackground: #000;\n\tcolor: #fff;\n}\n\n.section-head h2 {\n\tflex: 1;\n\tmargin: 0;\n\tpadding: 0.4rem 0 0.4rem 0.6rem;\n\tborder: 0;\n\tbackground: transparent;\n\tcolor: #fff;\n\tfont-size: 0.8125rem;\n\tfont-weight: bold;\n\tletter-spacing: 0.12em;\n\ttext-transform: uppercase;\n}\n\n.section-head .section-clear,\n.section-head .section-edit,\n.section-head .section-done {\n\tmargin: 0;\n}\n\n.section-head button {\n\tmargin: 0.3rem 0.35rem 0.3rem 0;\n\tmin-height: 3rem;\n}\n\n/* Always-visible management entry point: hiding the App Store removes its\n   tile but never removes this link, so pin/hide/home stays reachable. */\n.section-head .section-manage {\n\tmargin: 0.3rem 0.35rem 0.3rem 0;\n\tpadding: 0 0.6rem;\n\tmin-height: 3rem;\n\tborder: 1px solid #000;\n\tbackground: var(--paper);\n\tcolor: #000;\n\tfont-size: 0.75rem;\n\tfont-weight: bold;\n\ttext-decoration: none;\n\twhite-space: nowrap;\n}\n\n.section-head .section-manage:hover {\n\tbackground: var(--shade);\n}\n\n.section-head .section-manage:active {\n\tbackground: #000;\n\tcolor: #fff;\n}\n\n.tiles {\n\tdisplay: grid;\n\tgrid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));\n\tgap: 0.85rem;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n}\n\n.tiles > li {\n\tdisplay: flex;\n\tmargin: 0;\n\tpadding: 0;\n\tmin-width: 0;\n}\n\n/* Pinned tiles span two grid columns (three per row at full width) and lay\n   out horizontally: icon fixed left, label plus description stacked right.\n   Under the narrow breakpoint the 2-column grid makes each span fill a row.\n   min-width:0 + overflow:hidden down the flex chain lets the nowrap\n   description ellipsis instead of forcing the grid tracks wider than the\n   window (grid/flex items default to min-width:auto). */\n.tiles > li.tile-wide {\n\tgrid-column: span 2;\n\tmin-width: 0;\n}\n\n.tiles > li.tile-wide .tile {\n\tflex-direction: row;\n\tjustify-content: flex-start;\n\ttext-align: left;\n\tmin-width: 0;\n\toverflow: hidden;\n}\n\n.tiles > li.tile-wide .tile .tile-icon {\n\tflex-shrink: 0;\n\tmargin: 0 0.6rem 0 0;\n}\n\n.tiles > li.tile-wide .tile-text {\n\tdisplay: flex;\n\tflex: 1;\n\tflex-direction: column;\n\tjustify-content: center;\n\tmin-width: 0;\n\toverflow: hidden;\n}\n\n.tiles > li.tile-wide .tile-label {\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n}\n\n.tiles > li.tile-wide .tile-desc {\n\tmargin-top: 0.15rem;\n\tfont-size: 0.75rem;\n\tfont-weight: normal;\n\tline-height: 1.2;\n\tdisplay: -webkit-box;\n\t-webkit-line-clamp: 3;\n\t-webkit-box-orient: vertical;\n\toverflow: hidden;\n}\n\n.tiles a.tile {\n\tflex: 1;\n\tmin-width: 0;\n}\n\n.tile {\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tmin-height: 6.5rem;\n\tpadding: 0.5rem;\n\tbackground: var(--paper);\n\tborder: var(--rule);\n\tbox-shadow: var(--lift);\n\tcolor: inherit;\n\ttext-align: center;\n\ttext-decoration: none;\n\tfont: inherit;\n}\n\n/* The icon is a bare mark with no plate: SVG or glyph sits directly on the tile. */\n.tile .tile-icon {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 2.25rem;\n\theight: 2.25rem;\n\tmargin-bottom: 0.45rem;\n\tfont-size: 1.25rem;\n\tfont-weight: bold;\n\tline-height: 1;\n}\n\n/* Inline-SVG marks are sanitized at validation and fill this fixed box.\n   No fill rule here: CSS fill would override each shape's own fill\n   attribute (CSS beats presentation attributes), turning line-art icons\n   into solid dots. Strokes follow the text color; fills come from the\n   markup (fill=\"none\" line art, default-black solid parts). */\n.tile .tile-icon svg {\n\twidth: 1.5rem;\n\theight: 1.5rem;\n\tstroke: currentColor;\n}\n\n.tile .tile-label {\n\tfont-size: 0.8125rem;\n\tfont-weight: bold;\n\tline-height: 1.15;\n}\n\n/* App names in the (non-pinned) apps list clamp to two lines. The label\n   always reserves two lines of height, so a one-line name and a two-line\n   name leave the icon in exactly the same place. */\n.tiles > li:not(.tile-wide) .tile-label {\n\tdisplay: -webkit-box;\n\t-webkit-line-clamp: 2;\n\t-webkit-box-orient: vertical;\n\tmin-height: 2.3em;\n\toverflow: hidden;\n}\n\n.tile-empty {\n\tborder-style: dashed;\n\tbox-shadow: none;\n\tbackground: transparent;\n\tcolor: #444;\n}\n\n.tile-empty .tile-icon {\n\tborder-style: dashed;\n\tbackground: transparent;\n}\n\n.tile-empty .tile-label {\n\tfont-weight: normal;\n}\n\na.tile:hover,\nbutton.tile:hover {\n\tbackground: var(--shade);\n}\n\na.tile:active,\nbutton.tile:active {\n\tbackground: #000;\n\tcolor: #fff;\n\tbox-shadow: none;\n\ttransform: translate(3px, 3px);\n}\n\na.tile:active .tile-icon,\nbutton.tile:active .tile-icon {\n\tcolor: #fff;\n}\n\n.empty-hint {\n\tmargin: 1rem 0 0;\n\tpadding: 0.7rem 0.8rem;\n\tborder: 1px dashed #000;\n\tbackground: var(--paper);\n\tfont-size: 0.875rem;\n}\n\n/* ---- App Store combined list: one bordered row per app ---- */\n\n.store-list {\n\tdisplay: grid;\n\tgrid-template-columns: 1fr;\n\tgap: 0.6rem;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n}\n\n/* Floats, not flex: the description flows around the fixed right-hand\n   button block. The row clears its own floats. */\n.store-row {\n\tdisplay: block;\n\tmargin: 0;\n\tpadding: 0.55rem 0.7rem;\n\tborder: var(--rule);\n\tbackground: var(--paper);\n}\n\n.store-row::after {\n\tcontent: \"\";\n\tdisplay: block;\n\tclear: both;\n}\n\n/* Left column: icon + name, with the status tag stacked right below. */\n.store-main {\n\tfloat: left;\n\twidth: 10rem;\n\tmargin: 0 0.9rem 0 0;\n}\n\n.store-label {\n\tdisplay: flex;\n\talign-items: center;\n\tmargin: 0 0 0.2rem;\n\tfont-size: 0.9375rem;\n\tfont-weight: bold;\n}\n\n/* Right column: button block pinned to the top right, sized by its\n   content. nowrap keeps every control on one row. */\n.store-controls {\n\tfloat: right;\n\tdisplay: flex;\n\tflex-wrap: nowrap;\n\tjustify-content: flex-end;\n\tmargin: 0 0 0.3rem 0.75rem;\n}\n\n/* Compact buttons so the whole control set fits one row. */\n.store-row .store-control button {\n\tpadding: 0.2rem 0.4rem;\n\tfont-size: 0.75rem;\n\twhite-space: nowrap;\n}\n\n/* Reserve the width of each control's longest label (\"Unpin\", \"Unhide\",\n   \"Remove from home\", \"Update\u2026\") so toggling never resizes the row. The\n   additions are the button's horizontal padding (0.8rem) and borders (4px). */\n.store-control-install button {\n\tmin-width: calc(7ch + 0.8rem + 4px);\n}\n\n.store-control-pin button {\n\tmin-width: calc(5ch + 0.8rem + 4px);\n}\n\n.store-control-hide button {\n\tmin-width: calc(6ch + 0.8rem + 4px);\n}\n\n.store-control-home button {\n\tmin-width: calc(16ch + 0.8rem + 4px);\n}\n\n.store-control-update button {\n\tmin-width: calc(7ch + 0.8rem + 4px);\n}\n\n.store-control-restore button {\n\tmin-width: calc(7ch + 0.8rem + 4px);\n}\n\n/* Small fixed icon plate: the SVG or glyph no longer renders at its\n   intrinsic size inside the row. */\n.store-icon {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 1.75rem;\n\theight: 1.75rem;\n\tmargin: 0 0.5rem 0 0;\n\tfont-size: 1rem;\n\tfont-weight: bold;\n\tline-height: 1;\n}\n\n.store-icon svg {\n\twidth: 1.25rem;\n\theight: 1.25rem;\n\tstroke: currentColor;\n}\n\n.store-desc {\n\tdisplay: block;\n\tmargin: 0;\n\tcolor: #333;\n\tfont-size: 0.8125rem;\n\tline-height: 1.3;\n}\n\n/* Nothing to flow when there is no description. */\n.store-desc:empty {\n\tdisplay: none;\n}\n\n.store-badge {\n\tdisplay: inline-block;\n\tmargin: 0;\n\tpadding: 0.15rem 0.4rem;\n\tborder: 1px solid #000;\n\tbackground: var(--shade);\n\tfont-size: 0.6875rem;\n\tfont-weight: bold;\n\tletter-spacing: 0.06em;\n\ttext-transform: uppercase;\n\twhite-space: nowrap;\n}\n\n.store-row form.store-control {\n\tdisplay: inline-block;\n\tmargin: 0 0.35rem 0 0;\n}\n\n.store-controls form.store-control:last-child {\n\tmargin-right: 0;\n}\n\n/* ---- App window: every app gets the same panel ---- */\n\n.app {\n\tmargin: 0;\n\tbackground: var(--paper);\n\tborder: var(--rule);\n\tbox-shadow: var(--lift);\n}\n\n/* On an app page the panel already sits inside .os-window, so the panel\n   itself draws no second box: the window is the single frame. Panels\n   outside .os-window (modal overlays) are untouched and\n   keep their border, as do home widgets (.widget), which need their own\n   borders to separate from each other in the grid. */\n.os-window main .app {\n\tborder: 0;\n\tbox-shadow: none;\n}\n\n/* Modal overlays render inside .os-window main (Apps page:\n   renderOverlaySection in apps/render.ts, sections go into main\n   in app.ts), so the rule above would strip their panel border\n   too. A modal panel is its own frame, unlike an app page panel,\n   so restore its border and shadow here. This rule outranks the\n   stripping rule (three classes to two). */\n.os-window main .overlay .app {\n\tborder: var(--rule);\n\tbox-shadow: var(--lift);\n}\n\n.app-titlebar.has-close {\n\tposition: relative;\n\tpadding-left: 3.5rem;\n\tpadding-right: 3.5rem;\n}\n\n/* Modal expand box: same right-side slot as the close box is on the left. */\n.app-titlebar.has-expand {\n\tposition: relative;\n\tpadding-right: 3.5rem;\n}\n\n/* Help sits in the second right-hand slot (right: 3rem), so an overlay header\n   with help keeps its title plate clear of both boxes \u2014 and the left padding\n   matches, so the plate stays centered in the bar. Declared after has-close /\n   has-expand so it wins their side padding at equal specificity. */\n.app-titlebar.has-help {\n\tposition: relative;\n\tpadding-left: 6.5rem;\n\tpadding-right: 6.5rem;\n}\n\n/* Panel bar shares the shell bar's look: same 33px band, same full-height\n   borderless 1.1rem title, same 1.7rem boxes with 3px halos, same glyphs and\n   hover/active behavior. Forced difference, commented so it is not \"fixed\"\n   back into drift: the shell bar is a flex bar with absolute slots, while the\n   panel bar keeps its padded-slot layout (has-close / has-expand / has-help\n   side padding) because overlays and widgets place their boxes per header. */\n.app-titlebar {\n\tposition: relative;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin: 0;\n\tpadding: 0 0.5rem;\n\tmin-height: 2.75rem;\n\tborder-bottom: var(--rule);\n\tbackground-color: var(--paper);\n\tfont-size: 1.1rem;\n\tline-height: 1.5;\n}\n\n/* Same 33px band as the shell bar: same tile, same 4n+1px aligned phase. */\n.app-titlebar::before {\n\tcontent: \"\";\n\tposition: absolute;\n\tleft: 0;\n\tright: 0;\n\ttop: 50%;\n\ttransform: translateY(-50%);\n\theight: 33px;\n\tbackground-color: var(--paper);\n\tbackground-image: var(--stripes);\n\tbackground-repeat: repeat;\n\tpointer-events: none;\n}\n\n.app-title-plate {\n\talign-self: stretch;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tz-index: 1;\n\tmax-width: 100%;\n\tmin-width: 0;\n\tpadding: 0 0.85rem;\n\tborder: 0;\n\tbackground: var(--paper);\n\tfont-family: var(--os-font);\n\tfont-size: 1.1rem;\n\tfont-weight: bold;\n\tletter-spacing: 0.04em;\n\twhite-space: nowrap;\n\toverflow: hidden;\n}\n\n/* Inner title text: the plate is a flex container, so the raw title text is\n   an anonymous flex item and overflow clipping cuts off its start without an\n   ellipsis. This block child truncates from the end, keeping the start\n   visible with an ellipsis. */\n.app-title-text {\n\tdisplay: block;\n\tmin-width: 0;\n\tmax-width: 100%;\n\twhite-space: nowrap;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n}\n\n.app-body {\n\tpadding: 1rem;\n\tbackground: var(--paper);\n}\n\n/* State fields read as stacked readout rows. */\n.app-body > p {\n\tmargin: 0 0 0.6rem;\n\tpadding: 0.55rem 0.7rem;\n\tborder: 1px solid #000;\n\tbackground: var(--paper);\n\tfont-size: 1rem;\n\tfont-weight: bold;\n}\n\n.app-body > p[role=\"alert\"] {\n\tmargin: 0 0 0.9rem;\n\tpadding: 0.6rem 0.7rem;\n\tborder: var(--rule);\n\tbackground: #000;\n\tcolor: #fff;\n\tfont-size: 0.9375rem;\n\tfont-weight: bold;\n}\n\n.app-body form {\n\tdisplay: inline-block;\n\tmargin: 0 0.6rem 0.6rem 0;\n}\n\n.app-back {\n\tmargin: 0;\n\tpadding: 0;\n\tborder-top: var(--rule);\n}\n\n.app-back a {\n\tmin-height: 3rem;\n\tpadding: 0 0.75rem;\n\tfont-size: 0.875rem;\n\tfont-weight: bold;\n}\n\n/* Clock face: borderless centered display, big time over the date. */\n.clock-display {\n\tmargin: 0;\n\tpadding: 0.5rem 0;\n\ttext-align: center;\n}\n\n.clock-display .clock-time,\n.clock-display .clock-date {\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n}\n\n.clock-display .clock-time {\n\tmargin-bottom: 0.4rem;\n\tfont-size: 2.5rem;\n\tfont-weight: bold;\n\tline-height: 1.1;\n}\n\n.clock-display .clock-date {\n\tfont-size: 1.125rem;\n}\n\n/* ---- Home sections: Pinned / Recent / edit mode ---- */\n\n.category + .category {\n\tmargin-top: 1.2rem;\n}\n\n/* App Store: the combined list follows the store app panel directly. */\n.app + .category {\n\tmargin-top: 1rem;\n}\n\n.section-clear,\n.section-edit {\n\tmargin: 0.9rem 0 0;\n}\n\n.section-clear button,\n.section-edit button {\n\tmin-height: 3rem;\n}\n\n.edit-list {\n\tdisplay: grid;\n\tgrid-template-columns: 1fr;\n\tgap: 0.6rem;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n}\n\n/* Edit rows mirror the App Store rows: icon and name on the left, the\n   toggle buttons pinned to the right. */\n.edit-row {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\talign-items: center;\n\tmin-height: 6.5rem;\n\tpadding: 0 0.7rem;\n\tborder: var(--rule);\n\tbackground: var(--paper);\n}\n\n/* Left block is a fixed tile-sized plate: icon above title, centered. */\n.edit-main {\n\tdisplay: flex;\n\tflex-direction: column;\n\tflex-shrink: 0;\n\talign-self: stretch;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 6.5rem;\n\tpadding: 0.5rem;\n\ttext-align: center;\n}\n\n.edit-icon {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 2.25rem;\n\theight: 2.25rem;\n\tmargin-bottom: 0.45rem;\n\tfont-size: 1.25rem;\n\tfont-weight: bold;\n\tline-height: 1;\n}\n\n.edit-icon svg {\n\twidth: 1.5rem;\n\theight: 1.5rem;\n\tstroke: currentColor;\n}\n\n.edit-label {\n\tfont-size: 0.8125rem;\n\tfont-weight: bold;\n\tline-height: 1.15;\n\ttext-align: center;\n}\n\n/* Description fills the space between the tile block and the controls. */\n.edit-desc {\n\tflex: 1;\n\tmin-width: 0;\n\tmargin: 0 0.9rem;\n\tcolor: #333;\n\tfont-size: 0.8125rem;\n\tline-height: 1.3;\n}\n\n.edit-controls {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tjustify-content: flex-end;\n\tmargin-left: auto;\n}\n\n.edit-toggle {\n\tmargin: 0 0 0 0.7rem;\n}\n\n.edit-toggle:first-child {\n\tmargin-left: 0;\n}\n\n/* Toggle button: the button's own pressed state carries the value.\n   Off is an elevated white plate; on is flat and inverted, so the icon\n   (stroke: currentColor) inverts with the text color too. */\n.edit-toggle-btn {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmin-width: 3rem;\n\tmin-height: 3rem;\n\tpadding: 0;\n\tborder: var(--rule);\n\tbackground: var(--paper);\n\tcolor: #000;\n\tbox-shadow: var(--lift);\n}\n\n.edit-toggle-btn svg {\n\twidth: 1.25rem;\n\theight: 1.25rem;\n\tstroke: currentColor;\n}\n\n/* On = pressed: flat, inverted, no lift. */\n.edit-toggle-btn-on {\n\tbackground: #000;\n\tcolor: #fff;\n\tbox-shadow: none;\n\ttransform: translate(3px, 3px);\n}\n\n.edit-toggle-btn:hover {\n\tbackground: var(--shade);\n}\n\n.edit-toggle-btn-on:hover {\n\tbackground: #000;\n\tcolor: #fff;\n}\n\n/* ---- Widget dashboard: live homepage grid, no JS required ---- */\n\n.widgets {\n\tdisplay: grid;\n\tgrid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));\n\tgap: 0.85rem;\n\tmargin: 0;\n\tpadding: 0;\n}\n\n/* Lone widget in its row spans the full grid width (covers the\n   single-widget home and the last row of any odd widget count). */\n.widgets > :last-child:nth-child(odd) {\n\tgrid-column: 1 / -1;\n}\n\n.widget {\n\tmargin: 0;\n\tbackground: var(--paper);\n\tborder: var(--rule);\n\tbox-shadow: var(--lift);\n\tposition: relative;\n\t/* Reserve room for the corner reorder buttons so content never slides under them. */\n\tpadding-bottom: 3.6rem;\n}\n\n.widget-controls {\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n}\n\n.widget-controls .widget-move {\n\tmargin: 0;\n}\n\n.widget-controls .move-left {\n\tposition: absolute;\n\tleft: 0.3rem;\n\tbottom: 0.3rem;\n}\n\n.widget-controls .move-right {\n\tposition: absolute;\n\tright: 0.3rem;\n\tbottom: 0.3rem;\n}\n\n/* Arrow reorder controls: 3rem transparent hit area, os-box-style mark.\n   The mark mirrors .os-box::before (outlined square, inverts on hover)\n   with a CSS-triangle arrow inside. No text, no font glyphs. */\n.widget-controls .widget-arrow {\n\tmin-width: 3rem;\n\tmin-height: 3rem;\n\tpadding: 0;\n\tbackground: transparent;\n\tborder: 0;\n\tbox-shadow: none;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n.widget-controls .widget-arrow:hover {\n\tbackground: transparent;\n}\n\n.widget-controls .widget-arrow:active {\n\tbackground: transparent;\n\tbox-shadow: none;\n\ttransform: none;\n}\n\n.wa-mark {\n\tposition: relative;\n\tdisplay: block;\n\twidth: 0.75rem;\n\theight: 0.75rem;\n\tborder: 2px solid #000;\n\tbackground: #fff;\n\tbox-shadow: 1px 1px 0 #000;\n}\n\n.wa-mark::after {\n\tcontent: \"\";\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 50%;\n\twidth: 0;\n\theight: 0;\n}\n\n.wa-left::after {\n\tborder-top: 0.28rem solid transparent;\n\tborder-bottom: 0.28rem solid transparent;\n\tborder-right: 0.34rem solid #000;\n\ttransform: translate(-56%, -50%);\n}\n\n.wa-right::after {\n\tborder-top: 0.28rem solid transparent;\n\tborder-bottom: 0.28rem solid transparent;\n\tborder-left: 0.34rem solid #000;\n\ttransform: translate(-44%, -50%);\n}\n\n.widget-controls .widget-arrow:hover .wa-mark,\n.widget-controls .widget-arrow:active .wa-mark {\n\tbackground: #000;\n}\n\n.widget-controls .widget-arrow:hover .wa-left::after,\n.widget-controls .widget-arrow:active .wa-left::after {\n\tborder-right-color: #fff;\n}\n\n.widget-controls .widget-arrow:hover .wa-right::after,\n.widget-controls .widget-arrow:active .wa-right::after {\n\tborder-left-color: #fff;\n}\n\n.widget-controls .widget-arrow:active .wa-mark {\n\tbox-shadow: none;\n\ttransform: translate(1px, 1px);\n}\n\n.widget-controls .widget-move button:disabled {\n\tbox-shadow: none;\n\topacity: 0.4;\n}\n\n.widget .app-titlebar {\n\tposition: relative;\n}\n\n/* Expand box mirrors the os-box close control, upper right with an icon. */\n.widget-expand {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 3rem;\n\theight: 100%;\n\tmin-height: 3rem;\n\tpadding: 0;\n\ttext-decoration: none;\n}\n\n/* Expand arrow: an upward-outward corner bracket inside the box (10px, matching shell expand). */\n.widget-expand::after {\n\tcontent: \"\";\n\tposition: absolute;\n\ttop: calc(50% - 0.55rem - 2.5px);\n\tleft: calc(50% - 0.05rem);\n\twidth: 0.625rem;\n\theight: 0.625rem;\n\tborder-top: 2px solid #000;\n\tborder-right: 2px solid #000;\n}\n\n.widget-expand:hover::after,\n.widget-expand:active::after {\n\tborder-color: #fff;\n}\n\n/* Modal expand box mirrors the widget expand box, upper right with an icon:\n   same 3rem hit area, outlined square, upward-outward corner bracket. */\n.modal-expand {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 3rem;\n\theight: 100%;\n\tmin-height: 3rem;\n\tpadding: 0;\n\ttext-decoration: none;\n}\n\n.modal-expand::after {\n\tcontent: \"\";\n\tposition: absolute;\n\ttop: calc(50% - 0.55rem - 2.5px);\n\tleft: calc(50% - 0.05rem);\n\twidth: 0.625rem;\n\theight: 0.625rem;\n\tborder-top: 2px solid #000;\n\tborder-right: 2px solid #000;\n}\n\n.modal-expand:hover::after,\n.modal-expand:active::after {\n\tborder-color: #fff;\n}\n\n.dashboard-empty h2 {\n\tmargin: 0 0 0.9rem;\n\tpadding: 0.4rem 0.6rem;\n\tborder: var(--rule);\n\tbackground: #000;\n\tcolor: #fff;\n\tfont-size: 0.8125rem;\n\tfont-weight: bold;\n\tletter-spacing: 0.12em;\n\ttext-transform: uppercase;\n}\n\n/* ---- Modal overlay: one document, :target-revealed, no JS ---- */\n\n.overlay {\n\tdisplay: none;\n}\n\n.overlay:target {\n\tdisplay: flex;\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\tbottom: 0;\n\tz-index: 20;\n\tpadding: 1rem;\n\toverflow: auto;\n\tbackground-color: transparent;\n\tbackground-image: var(--checker);\n\tbackground-repeat: repeat;\n}\n\n/* Panel top sits 25vh down the viewport (upper, not centered): left/right\n   margins stay auto so the panel stays horizontally centered, and the\n   overlay still scrolls, so a tall panel's top stays reachable. */\n.overlay-panel {\n\twidth: calc(100% - 2rem);\n\tmax-width: 48rem;\n\tmargin: 25vh auto auto;\n}\n\n.overlay .app-back a {\n\tmin-height: 3rem;\n}\n\n/* ---- Access gate: the locked 404 page ---- */\n\n.gate-lead {\n\tmargin: 0 0 0.9rem;\n\tfont-family: serif;\n\tfont-size: 0.9375rem;\n\tfont-style: italic;\n}\n\n.gate-hint {\n\tmargin: 0;\n\tpadding: 0.7rem 0.8rem;\n\tborder: 1px dashed #000;\n\tfont-size: 0.875rem;\n}\n\n.gate-hint code {\n\tfont-family: 'Courier New', Courier, monospace;\n\tfont-size: 0.9375rem;\n}\n\n/* ---- Status bar ---- */\n\n.os-statusbar {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\talign-items: stretch;\n\tmargin: 0;\n\tpadding: 0;\n\tborder-top: var(--rule);\n\tbackground: var(--paper);\n\tfont-size: 0.75rem;\n}\n\n.os-statusbar p {\n\tdisplay: flex;\n\talign-items: center;\n\tmargin: 0;\n\tpadding: 0 0.7rem;\n}\n\n.os-status-main {\n\tbackground: #000;\n\tcolor: #fff;\n\tfont-weight: bold;\n\tletter-spacing: 0.1em;\n\ttext-transform: uppercase;\n}\n\n.os-status-meta {\n\tborder-right: 1px solid #000;\n\tcolor: #333;\n}\n\n.os-statusbar nav {\n\tdisplay: flex;\n\tmargin-left: auto;\n}\n\n.os-statusbar nav a {\n\tmin-height: 3rem;\n\tpadding: 0 0.8rem;\n\tfont-size: 0.8125rem;\n\tfont-weight: bold;\n\ttext-decoration: none;\n}\n\n.os-statusbar nav a:hover {\n\tbackground: var(--shade);\n}\n\n.os-statusbar nav a:active {\n\tbackground: #000;\n\tcolor: #fff;\n}\n\n/* ---- Base controls: large tap targets, hard shadows, no gradients ---- */\n\na,\nbutton,\ninput,\nselect,\ntextarea {\n\tmin-height: 3rem;\n}\n\na {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tpadding: 0.5rem;\n\tcolor: inherit;\n}\n\nbutton,\ninput,\nselect,\ntextarea {\n\tpadding: 0.65rem 1rem;\n\tfont: inherit;\n\tbackground: var(--paper);\n\tcolor: #000;\n\tborder: var(--rule);\n}\n\nbutton {\n\tfont-weight: bold;\n\tcursor: pointer;\n\tbox-shadow: var(--lift);\n}\n\nbutton:hover {\n\tbackground: var(--shade);\n}\n\nbutton:active {\n\tbackground: #000;\n\tcolor: #fff;\n\tbox-shadow: none;\n\ttransform: translate(3px, 3px);\n}\n\n/* ---- Shared app classes (os-*) ---- */\n\n/* Provided by the shell for every bundle. Standard bundle controls need\n   no class: the bare defaults scoped to .bundle below style them, and\n   they match .os-btn exactly. The class names remain for variants\n   (.os-btn--dark, .os-key, .os-display) and for genuinely unique controls.\n   See docs/style-guide.md. Bundles render in the same document as this\n   stylesheet, so these rules cascade into the .bundle container. */\n\n.os-panel {\n\tbackground: var(--os-paper);\n\tcolor: var(--os-ink);\n\tborder: var(--os-border);\n\tpadding: var(--os-pad);\n}\n\n.os-section-title {\n\tbackground: var(--os-ink);\n\tcolor: var(--os-paper);\n\tfont-size: var(--os-text-sm);\n\tfont-weight: bold;\n\ttext-transform: uppercase;\n\tletter-spacing: 0.08em;\n\tpadding: 8px 12px;\n\tmargin: 0;\n}\n\n.os-btn {\n\tmin-height: var(--os-tap);\n\tmin-width: var(--os-tap);\n\tfont-family: var(--os-font);\n\tfont-size: var(--os-text-lg);\n\tfont-weight: normal;\n\tbackground: var(--os-paper);\n\tcolor: var(--os-ink);\n\tborder: var(--os-border);\n\tborder-radius: var(--os-radius);\n\tbox-shadow: var(--os-shadow);\n\tpadding: 0 16px;\n}\n\n.os-btn--dark {\n\tbackground: var(--os-ink);\n\tcolor: var(--os-paper);\n}\n\n.os-btn:disabled,\n.os-btn--disabled {\n\tcolor: var(--os-grey);\n\tborder-color: var(--os-grey);\n\tbox-shadow: none;\n}\n\n.os-btn:active {\n\tbackground: var(--os-ink);\n\tcolor: var(--os-paper);\n\tbox-shadow: none;\n\ttransform: none;\n}\n\n.os-btn:hover {\n\tbackground: var(--os-paper);\n}\n\n.os-btn--dark:hover {\n\tbackground: var(--os-ink);\n}\n\n.os-display {\n\tfont-size: var(--os-display);\n\ttext-align: right;\n\tbackground: var(--os-paper);\n\tcolor: var(--os-ink);\n\tborder: var(--os-border);\n\tpadding: 8px 12px;\n\tmin-height: var(--os-tap);\n\tbox-sizing: border-box;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.os-keypad {\n\tdisplay: grid;\n\tgrid-template-columns: repeat(4, 1fr);\n\tgap: var(--os-gap);\n}\n\n.os-key {\n\tmin-height: var(--os-tap);\n\tfont-family: var(--os-font);\n\tfont-size: var(--os-text-lg);\n\tfont-weight: normal;\n\tbackground: var(--os-paper);\n\tcolor: var(--os-ink);\n\tborder: var(--os-border);\n\tborder-radius: var(--os-radius);\n\tbox-shadow: var(--os-shadow);\n\tpadding: 0;\n}\n\n.os-key:hover {\n\tbackground: var(--os-paper);\n}\n\n.os-key:active {\n\ttransform: none;\n}\n\n.os-key--wide { grid-column: span 2; }\n.os-key--tall { grid-row: span 2; }\n\n.os-list {\n\tlist-style: none;\n\tmargin: 0;\n\tpadding: 0;\n}\n\n.os-row {\n\tmin-height: var(--os-tap);\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: 8px 12px;\n\tfont-size: var(--os-text);\n\tborder-bottom: var(--os-border);\n}\n\n.os-row--selected {\n\tbackground: var(--os-ink);\n\tcolor: var(--os-paper);\n}\n\n.os-row--disabled {\n\tcolor: var(--os-grey);\n}\n\n.os-muted {\n\tcolor: var(--os-grey);\n\tfont-size: var(--os-text-sm);\n}\n\n.os-dots {\n\tbackground-color: var(--os-paper);\n\tbackground-image: var(--os-dots);\n\tbackground-size: 4px 4px;\n}\n\n/* ---- Bare defaults inside bundles ---- */\n/* A bundle button, field, or paragraph needs no class: the shell styles\n   it here, scoped to .bundle so shell chrome is untouched. Classes remain\n   only for variants (.os-btn--dark, .os-key, .os-display) and for controls\n   that are genuinely unique to an app (game tiles, colour swatches).\n   These rules pin off the shell's generic button behaviour (bold, 2px\n   border, shade on hover, shift on press) so a bare bundle button matches\n   .os-btn exactly. */\n.bundle {\n\tfont-family: var(--os-font);\n\tcolor: var(--os-ink);\n}\n\n.bundle button {\n\tmin-height: var(--os-tap);\n\tmin-width: var(--os-tap);\n\tfont-family: var(--os-font);\n\tfont-size: var(--os-text-lg);\n\tfont-weight: normal;\n\tbackground: var(--os-paper);\n\tcolor: var(--os-ink);\n\tborder: var(--os-border);\n\tborder-radius: 0;\n\tbox-shadow: var(--os-shadow);\n\tpadding: 0 16px;\n}\n\n.bundle button:hover {\n\tbackground: var(--os-paper);\n}\n\n.bundle button:active {\n\tbackground: var(--os-ink);\n\tcolor: var(--os-paper);\n\tbox-shadow: none;\n\ttransform: none;\n}\n\n.bundle button:disabled {\n\tcolor: var(--os-grey);\n\tborder-color: var(--os-grey);\n\tbox-shadow: none;\n}\n\n.bundle input,\n.bundle select,\n.bundle textarea {\n\tmin-height: var(--os-tap);\n\tfont-family: var(--os-font);\n\tfont-size: var(--os-text);\n\tbackground: var(--os-paper);\n\tcolor: var(--os-ink);\n\tborder: var(--os-border);\n\tborder-radius: var(--os-radius);\n\tpadding: 10px 12px;\n}\n\n.bundle input:disabled,\n.bundle select:disabled,\n.bundle textarea:disabled {\n\tcolor: var(--os-grey);\n\tborder-color: var(--os-grey);\n}\n\n/* Bare checkboxes in every bundle: classic-Mac X, the look prototyped\n   per app in Habit Tracker and Pushup Tracker. appearance: none, since\n   ::before does not work reliably on an input (replaced element); the X\n   is an inline-SVG background, not a gradient. */\n.bundle input[type=\"checkbox\"] {\n\t-webkit-appearance: none;\n\tappearance: none;\n\twidth: 22px;\n\theight: 22px;\n\tmin-width: 22px;\n\tmin-height: 22px;\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 2px solid var(--os-ink);\n\tborder-radius: 0;\n\tbackground: var(--os-paper);\n\tcursor: pointer;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n}\n\n.bundle input[type=\"checkbox\"]:checked {\n\tbackground-color: var(--os-paper);\n\tbackground-image: url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M4%204L16%2016M16%204L4%2016%27%20stroke%3D%27black%27%20stroke-width%3D%272.5%27%20stroke-linecap%3D%27round%27%2F%3E%3C%2Fsvg%3E\");\n\tbackground-size: 16px 16px;\n\tbackground-position: center;\n\tbackground-repeat: no-repeat;\n}\n\n.bundle input[type=\"checkbox\"]:focus {\n\toutline: 2px solid var(--os-ink);\n\toutline-offset: 2px;\n}\n\n/* The shared dark variant on a bare button: .bundle button:hover would\n   otherwise outrank .os-btn--dark:hover and wash it back to paper. */\n.bundle button.os-btn--dark {\n\tbackground: var(--os-ink);\n\tcolor: var(--os-paper);\n}\n\n.bundle button.os-btn--dark:hover {\n\tbackground: var(--os-ink);\n}\n\n@media (prefers-contrast: more) {\n\t.os-menubar,\n\t.os-window,\n\t.os-title,\n\t.os-box::before,\n\t.os-mark-glyph,\n\t.widget-expand::before,\n\t.modal-expand::before,\n\t.os-expand::before,\n\t.os-collapse::before,\n\t.os-help::before,\n\t.category h2,\n\t.tile,\n\t.tile .tile-icon,\n\t.app,\n\t.widget,\n\t.dashboard-empty h2,\n\t.app-title-plate,\n\t.app-body > p,\n\t.os-btn,\n\t.os-display,\n\t.os-key,\n\t.os-panel,\n\tbutton,\n\tinput,\n\tselect,\n\ttextarea {\n\t\tborder-width: 3px;\n\t}\n}\n\n@media (max-width: 30rem) {\n\tbody {\n\t\tpadding: 0 0 1.5rem;\n\t}\n\n\t.os-window {\n\t\twidth: 100%;\n\t\tmargin: 0;\n\t\tborder: 0;\n\t\tbox-shadow: none;\n\t}\n\n\t/* Narrow screens drop the window frame, so the app panel becomes the\n\t   single frame again instead of leaving the page borderless. */\n\t.os-window main .app {\n\t\tborder: var(--rule);\n\t\tbox-shadow: var(--lift);\n\t}\n\n\t.tiles {\n\t\tgrid-template-columns: repeat(2, 1fr);\n\t}\n\n\t.widgets {\n\t\tgrid-template-columns: 1fr;\n\t}\n\n\t/* Store rows stack: no fixed columns or floats to squeeze. */\n\t.store-main,\n\t.store-controls {\n\t\tfloat: none;\n\t\twidth: auto;\n\t\tmargin: 0 0 0.4rem;\n\t}\n\n\t.store-controls {\n\t\tflex-wrap: wrap;\n\t\tjustify-content: flex-start;\n\t}\n}\n";