/* The Haint Blue screen, drawn at the 11-inch Air's width (1366px) and scaled to fit the
   MacBook picture. Sizes, colors and fonts follow Haint Blue 1.21: sway.conf (bar), carrel-status
   (bar items), look.js (Paper look and focus mode), carrel.script and carrel-boot-screen (boot). */
@font-face { font-family: "Haint Blue Icons"; src: url("haint-blue-icons.ttf") format("truetype"); }
@font-face { font-family: "DejaVu Sans Web"; src: url("dejavu-sans.woff") format("woff"); }
/* Material Symbols (Apache 2.0, see material-symbols-LICENSE.txt), trimmed to the icons the demo uses. */
@font-face { font-family: "Material Symbols Outlined"; src: url("material-symbols.woff2") format("woff2"); font-display: block; }

.os { position: absolute; left: 0; top: 0; width: 1366px; height: 810px; transform-origin: 0 0;
      background: #000; overflow: hidden; font-family: "DejaVu Sans Web", "DejaVu Sans", Verdana, sans-serif;
      -webkit-font-smoothing: antialiased; user-select: none; }
.os [hidden] { display: none !important; }
/* Keep the website's own type and image rules out of the screen. */
.os h1, .os h2, .os h3 { font-family: inherit; letter-spacing: normal; line-height: 1.25; text-wrap: wrap; color: inherit; }
.os img { max-width: none; display: block; }

/* Boot: paper, the logo centered and unscaled; "Press Esc for maintenance" at 84% down for a moment. */
.os .boot { position: absolute; inset: 0; background: #f6f4ef; z-index: 30; transition: opacity .35s; }
.os .boot .logo { position: absolute; left: 50%; top: 50%; width: 691px; height: 160px; margin: -80px 0 0 -345px; }
.os .boot .prompt { position: absolute; left: 50%; top: 84%; width: 202px; height: 15px; margin-left: -101px; }
.os .boot.gone { opacity: 0; pointer-events: none; }
.os .off { position: absolute; inset: 0; background: #000; z-index: 40; cursor: pointer; }

/* Top bar: 22px, ink, DejaVu Sans 10pt, items 14px apart, 10px from the edges. */
.os .bar { position: absolute; left: 0; right: 0; top: 0; height: 22px; background: #1c1b19; color: #ece8df;
           display: flex; align-items: center; padding: 0 10px; font-size: 13.33px; line-height: 22px; z-index: 10;
           cursor: default; }
.os .bar .ghost { flex: 1; height: 22px; display: flex; align-items: center; color: #b8dee0; cursor: pointer; }
.os .bar .items { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.os .bar .it { cursor: pointer; display: flex; align-items: center; gap: 0; height: 22px; }
.os .ic { font-family: "Haint Blue Icons"; font-size: 16.1px; line-height: 1; }
.os .bar .appicon { color: #a8a397; }
.os .bar .appicon.here { color: #ffffff; }
.os .bar .amber { color: #e0b866; }
.os.paper .bar .amber { color: #a8a6a1; }   /* gray under the Paper look */

/* Writing apps: each on its own screen under the bar. */
.os .apps { position: absolute; left: 0; right: 0; top: 22px; bottom: 0; }
.os .app { position: absolute; inset: 0; display: flex; flex-direction: column; }
/* The apps' own menus and toolbars (shown with focus mode off, or after the ghost button):
   their layout and controls, with Material Symbols icons; no logos or wordmarks. */
.os .app .chrome { flex: none; font: 14px/1.3 Roboto, Arial, sans-serif; color: #444746; user-select: none; }
.os .ms { font-family: "Material Symbols Outlined"; font-weight: 400; font-style: normal; font-size: 20px; line-height: 1;
          letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr;
          display: inline-block; width: 20px; overflow: hidden; color: #444746; flex: none; }
.os .ms.sm { font-size: 17px; width: 17px; }
.os .chrome i { display: inline-block; width: 1px; height: 20px; background: #c7c7c7; margin: 0 4px; flex: none; }
.os .chrome .dd { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px; white-space: nowrap; }
.os .chrome .dd::after { content: "▾"; font-size: 10px; margin-left: 4px; color: #5f6368; }
.os .avatar { width: 32px; height: 32px; border-radius: 16px; background: #7b5ea7; color: #fff; display: inline-flex;
              align-items: center; justify-content: center; font-size: 15px; flex: none; }
.os .avatar.dark { width: 28px; height: 28px; background: #8a4b9e; }

.os .chrome.gd { background: #f9fbfd; padding: 0 16px 8px; }
.os .gd-top { display: flex; align-items: center; gap: 10px; height: 64px; }
.os .gd-doc { font-size: 40px; width: 40px; color: #4285f4; }
.os .gd-title { flex: 1; }
.os .gd-name { font-size: 18px; color: #1f1f1f; display: flex; align-items: center; gap: 10px; }
.os .gd-menus { display: flex; gap: 14px; font-size: 14px; color: #1f1f1f; margin-top: 4px; }
.os .gd-right { display: flex; align-items: center; gap: 18px; }
.os .gd-share { display: inline-flex; align-items: center; gap: 8px; background: #c2e7ff; color: #001d35; border-radius: 20px;
                padding: 9px 22px; font-weight: 500; }
.os .gd-share .ms { color: #001d35; }
.os .gd-tools { display: flex; align-items: center; gap: 12px; height: 40px; background: #edf2fa; border-radius: 24px; padding: 0 14px; }
.os .gd-tools .box { border: 1px solid #747775; border-radius: 4px; padding: 1px 8px; }
.os .gd-mode { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }

.os .chrome.wd { background: #f3f2f1; }
.os .wd-top { display: flex; align-items: center; gap: 12px; height: 48px; color: #242424; padding: 0 14px; }
.os .wd-top .ms { color: #424242; }
.os .wd-top .wd-doc { font-size: 30px; width: 30px; color: #185abd; }
.os .wd-name { font-size: 15px; font-weight: 600; }
.os .wd-saved { font-size: 13px; color: #616161; }
.os .wd-search { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #616161; border-radius: 6px;
                 border: 1px solid #e0e0e0; padding: 6px 14px; width: 360px; margin-left: 110px; }
.os .wd-search .ms { color: #616161; }
.os .wd-sp { flex: 1; }
.os .wd-tabs { display: flex; align-items: center; gap: 22px; height: 40px; padding: 0 16px; font-size: 14px; color: #242424; }
.os .wd-tabs .on { font-weight: 600; box-shadow: inset 0 -3px 0 #185abd; padding: 11px 0; }
.os .wd-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d1d1d1; border-radius: 4px; padding: 4px 10px; background: #fff; }
.os .wd-share { background: #185abd; color: #fff; border-color: #185abd; }
.os .wd-share .ms { color: #fff; }
.os .wd-ribbon { display: flex; align-items: center; gap: 12px; height: 48px; margin: 0 10px 8px; padding: 0 12px; background: #fff;
                 border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.os .wd-ribbon .dd { border: 1px solid #d1d1d1; border-radius: 4px; padding: 3px 8px; }
.os .wd-ribbon .style { border: 1px solid #e0e0e0; padding: 4px 10px; font-size: 13px; color: #242424; white-space: nowrap; }
.os .wd-ribbon .style.h1 { color: #0f4761; font-size: 15px; }
.os .wd-ribbon .style.h2 { color: #0f4761; }

.os .app .desk { flex: 1; overflow: auto; background: #f9fbfd; scrollbar-width: thin; }
.os .app.word .desk { background: #f3f2f1; }
.os.focus .app .desk { background: #e3e0da; }          /* DESK in look.js */
.os .page { width: 1224px; margin: 44px auto 60px; background: #fff; min-height: 1400px; padding: 144px 144px;
            box-shadow: 0 1px 3px rgba(60, 64, 67, .15), 0 1px 1px rgba(60, 64, 67, .1); outline: none; cursor: text;
            user-select: text; -webkit-user-select: text; color: #000; }
.os .app.word .page { margin-top: 10px; box-shadow: 0 0 0 1px #e1dfdd; }
.os .app.docs .page { font: 22px/1.5 Arial, "Liberation Sans", Helvetica, sans-serif; }   /* Arial 11pt at 150% zoom */
.os .app.word .page { font: 24px/1.5 Aptos, Calibri, Carlito, "Segoe UI", sans-serif; }   /* Aptos 12pt at 150% zoom */
.os .page p { margin: 0 0 18px; }
.os .page .label { font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: #595959; margin-bottom: 24px; }
.os .page h1 { font-size: 39px; font-weight: 400; margin: 0 0 22px; color: #000; }
.os .app.word .page h1 { color: #0f4761; font-weight: 400; font-size: 42px; border-bottom: 1.5px solid #0f4761; padding-bottom: 6px; }
.os .app.word .page h2 { color: #0f4761; font-weight: 400; font-size: 30px; margin: 30px 0 12px; }
.os .page ul { margin: 0 0 18px; padding-left: 40px; }
.os .page a { color: #1155cc; text-decoration: underline; cursor: pointer; }
.os .app.word .page a { color: #467886; }
.os .page mark { background: #fff2cc; color: inherit; }
.os .page ::selection { background: rgba(127, 182, 187, .45); }

/* The Paper look, as it looks on the Mac: the apps go gray, only the Docs and Word icons keep
   a Haint Blue accent, and the whole screen takes on a soft E Ink paper gray.
   The gray filter goes on every part of the apps except the icons, which get look.js's filter. */
.os.paper .app > .desk,
.os.paper .chrome > :not(.gd-top):not(.wd-top),
.os.paper :is(.gd-top, .wd-top) > :not(.logo) { filter: url(#haint-gray); }
.os.paper .logo { filter: url(#haint-paper); }
.os.paper .chrome.gd { background: #fbfbfb; }          /* #f9fbfd through the gray ramp */
.os.paper .chrome.wd { background: #f3f3f3; }          /* #f3f2f1 through the gray ramp */
.os .warm { position: absolute; inset: 0; z-index: 25; pointer-events: none; display: none;
            background: #eeedea; mix-blend-mode: multiply; }
.os.paper .warm { display: block; }

/* Focus mode's ghost button (bottom right, ink, half-faded until hovered). */
.os .ghostbtn { position: absolute; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 20px;
                border: 1px solid rgba(255, 255, 255, .12); background: rgba(29, 28, 26, .55); cursor: pointer;
                display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
                transition: background .2s; z-index: 26; padding: 0; }   /* above the paper tone, so the ghost stays true Haint Blue */
.os .ghostbtn:hover { background: #1d1c1a; }
.os .ghostbtn svg { width: 18px; height: 23px; }

/* The panel: a floating 560 x 600 window, centered, with sway's 2px focused border. */
.os .panelwin { position: absolute; left: 8px; top: 28px; width: 562px; height: 642px;
                border: 1px solid #3d7c97; background: #1f1e1b; z-index: 20; }   /* sway: border pixel 1, 560 x 640 */
.os .panelwin.right { left: auto; right: 8px; }
.os .panelwin iframe { width: 560px; height: 640px; border: 0; display: block; background: #1f1e1b; }

/* ---- The Docs and Word home pages (the app's icon at the top left of the toolbar opens them) ---- */
.os .home { position: absolute; inset: 0; overflow: auto; scrollbar-width: thin; user-select: none; }
.os .home .hb { min-height: 100%; }
.os .home .ms.lg { font-size: 24px; width: 24px; color: #5f6368; }
.os .home .ib { width: 40px; height: 40px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.os .home .open, .os .chrome .logo.open { cursor: pointer; }
.os .page.mini { position: absolute; left: 0; top: 0; margin: 0 !important; transform-origin: 0 0; pointer-events: none;
                 box-shadow: none !important; min-height: 0; }
.os.paper .app > .home > :not(.hh),
.os.paper .home > .hh > :not(.logo) { filter: url(#haint-gray); }

/* Docs */
.os .dh { background: #fff; font: 14px/1.4 Roboto, Arial, sans-serif; color: #202124; }
.os .dh .hh { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 4px; height: 64px; padding: 0 16px 0 8px; background: #fff; }
.os .dh .hh .logo { font-size: 40px; width: 40px; color: #4285f4; margin-left: 4px; }
.os .dh .hh .word { font-size: 22px; color: #5f6368; margin: 0 0 0 6px; width: 140px; }
.os .dh .search { flex: 0 1 720px; height: 48px; background: #f1f3f4; border-radius: 8px; display: flex; align-items: center; gap: 14px;
                  padding: 0 16px; color: #5f6368; font-size: 16px; }
.os .dh .sp { flex: 1; }
.os .dh .new { background: #f1f3f4; padding: 16px 0 22px; }
.os .dh .col { width: 904px; margin: 0 auto; }
.os .dh .row { display: flex; align-items: center; justify-content: space-between; height: 40px; margin-bottom: 6px; font-size: 16px; }
.os .dh .row .r { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #3c4043; }
.os .dh .row .r .ms { color: #5f6368; }
.os .dh .gal { display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px 6px 12px; border-radius: 4px; }
.os .dh .tiles { display: flex; gap: 16px; }
.os .dh .tile { width: 144px; }
.os .dh .tile .pg { position: relative; height: 186px; background: #fff; border: 1px solid #dadce0; border-radius: 4px; overflow: hidden;
                    display: flex; align-items: center; justify-content: center; }
.os .dh .tile:hover .pg { border-color: #8ab4f8; }
.os .dh .tile .plus { font-size: 72px; width: 72px; color: #1a73e8; font-weight: 200; }
.os .dh .tile .nm { font-size: 14px; font-weight: 500; margin-top: 8px; }
.os .dh .tile .sub { font-size: 12px; color: #5f6368; }
.os .dh .recent { padding: 18px 0 40px; }
.os .dh .cards { display: grid; grid-template-columns: repeat(4, 208px); gap: 20px 24px; }
.os .dh .card { border: 1px solid #dadce0; border-radius: 6px; overflow: hidden; background: #fff; }
.os .dh .card:hover { border-color: #8ab4f8; }
.os .dh .card .th { position: relative; height: 232px; overflow: hidden; border-bottom: 1px solid #dadce0; }
.os .dh .card .info { padding: 12px 4px 10px 14px; }
.os .dh .card .t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os .dh .card .m { display: flex; align-items: center; gap: 6px; height: 28px; font-size: 12px; color: #5f6368; }
.os .dh .card .m .ms { font-size: 18px; width: 18px; color: #4285f4; }
.os .dh .card .m .ms.more { margin-left: auto; color: #5f6368; }

/* Word */
.os .wh { background: #fff; font: 14px/1.4 "Segoe UI", "Helvetica Neue", Arial, sans-serif; color: #242424; display: grid;
          grid-template-columns: 72px 1fr; grid-template-rows: 48px 1fr; }
.os .wh .hh { grid-column: 1 / 3; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #f3f2f1; }
.os .wh .hh .ms { color: #424242; }
.os .wh .hh .logo { font-size: 30px; width: 30px; color: #185abd; }
.os .wh .hh .word { font-size: 16px; font-weight: 600; }
.os .wh .search { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #616161; border: 1px solid #e0e0e0;
                  border-radius: 6px; padding: 6px 14px; width: 440px; margin-left: 230px; }
.os .wh .search .ms { color: #616161; }
.os .wh .sp { flex: 1; }
.os .wh .rail { background: #f3f2f1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 10px; }
.os .wh .rail span { width: 60px; padding: 8px 0 6px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; gap: 2px;
                     font-size: 11px; color: #424242; }
.os .wh .rail span .ms { font-size: 24px; width: 24px; color: #424242; }
.os .wh .rail span.on { background: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #185abd; }
.os .wh .rail span.on .ms { color: #185abd; }
.os .wh .main { overflow: hidden; padding: 26px 48px 40px; border-top-left-radius: 8px; }
.os .wh h3 { font-size: 20px; font-weight: 600; margin: 0 0 14px; }
.os .wh .tiles { display: flex; gap: 22px; margin-bottom: 30px; }
.os .wh .tile { width: 128px; }
.os .wh .tile .pg { position: relative; height: 166px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden;
                    display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.os .wh .tile:hover .pg { border-color: #185abd; }
.os .wh .tile .plus { font-size: 48px; width: 48px; color: #185abd; }
.os .wh .tile .nm { font-size: 13px; margin-top: 8px; }
.os .wh .browse { align-self: center; color: #185abd; font-weight: 600; margin-left: 6px; }
.os .wh .tabs { display: flex; gap: 26px; border-bottom: 1px solid #e0e0e0; margin-bottom: 4px; font-size: 14px; }
.os .wh .tabs span { padding: 8px 0 9px; color: #616161; }
.os .wh .tabs span.on { color: #242424; font-weight: 600; box-shadow: inset 0 -3px 0 #185abd; }
.os .wh table { width: 100%; border-collapse: collapse; }
.os .wh th { text-align: left; font-weight: 400; font-size: 12px; color: #616161; padding: 10px 8px; }
.os .wh td { padding: 9px 8px; border-top: 1px solid #f0f0f0; vertical-align: middle; }
.os .wh tr.open:hover td { background: #f5f5f5; }
.os .wh td.ic { width: 34px; } .os .wh td.ic .ms { font-size: 26px; width: 26px; color: #185abd; }
.os .wh td .loc { font-size: 12px; color: #616161; }
.os .wh td.when, .os .wh td.own { width: 200px; color: #424242; }
