/* PURITY — three websites and a bad night's sleep. */
:root {
  --os-bar: rgba(236, 236, 236, 0.92);
  --chrome-bg: #dfe3e8;
  --chrome-tab: #ffffff;
  --ink: #202124;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1d1f22; font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }
.msi { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; user-select: none; vertical-align: middle; }
.msi.fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ───────────── OS menubar (the game layer) ───────────── */
#menubar { position: fixed; top: 0; left: 0; right: 0; height: 36px; background: var(--os-bar); backdrop-filter: blur(20px); display: flex; align-items: center; padding: 0 10px; font: 13px -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; color: #111; z-index: 50; gap: 4px; border-bottom: 1px solid rgba(0,0,0,.12); }
#menubar .apple { font-size: 15px; padding: 0 8px; }
#menubar .appname { font-weight: 700; padding: 0 8px; }
#menubar .mi { padding: 2px 8px; border-radius: 4px; cursor: default; }
#menubar .mi:hover { background: rgba(0,0,0,.08); }
#menubar .spacer { flex: 1; }
.meter { position: relative; display: flex; align-items: center; gap: 6px; padding: 9px 9px 0; height: 36px; border-radius: 4px; cursor: default; }
.meter:hover { background: rgba(0,0,0,.06); }
.meter .ico { font-size: 14px; }
.meter .bar { width: 64px; height: 8px; border-radius: 4px; background: rgba(0,0,0,.14); overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: #333; border-radius: 4px; transition: width .6s cubic-bezier(.2,.8,.2,1), background .3s; }
.meter.low .bar i { background: #e0245e; animation: pulse 1s infinite; }
.meter .val { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 60px; }
.meter .val.neg { color: #d0021b; }
.meter .dot { position: absolute; top: 6px; left: 50%; transform: translate(-50%, -50%); width: 0; height: 0; border-radius: 50%; background: #111; transition: width .12s, height .12s; box-shadow: 0 0 0 1.5px rgba(255,255,255,.9); }
.meter .dot.s1 { width: 5px; height: 5px; }
.meter .dot.s1-5 { width: 8px; height: 8px; }
.meter .dot.s2 { width: 11px; height: 11px; }
.meter.flash-up { animation: flashUp 1.4s; }
.meter.flash-down { animation: flashDown 1.4s; }
.meter .delta { position: absolute; right: 2px; top: 26px; z-index: 60; font-size: 11px; font-weight: 700; pointer-events: none; opacity: 0; }
.meter .delta.show { animation: floatDelta 1.8s ease-out; }
@keyframes floatDelta { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes flashUp { 0%, 100% { background: transparent; } 20% { background: rgba(46, 204, 113, .45); } }
@keyframes flashDown { 0%, 100% { background: transparent; } 20% { background: rgba(231, 76, 60, .45); } }
@keyframes pulse { 50% { opacity: .45; } }
#menubar .week { padding: 0 8px; font-variant-numeric: tabular-nums; }
#menubar .sleep { background: #1a1a1a; color: #fff; border: 0; border-radius: 5px; padding: 3px 11px; font-size: 12px; font-weight: 600; margin-left: 4px; }
#menubar .sleep:hover { background: #3a3a3a; }

/* ───────────── Browser chrome ───────────── */
#browser { position: fixed; top: 44px; left: 8px; right: 8px; bottom: 8px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 .5px rgba(0,0,0,.6); display: flex; flex-direction: column; }
#tabstrip { height: 40px; background: var(--chrome-bg); display: flex; align-items: flex-end; padding: 0 8px 0 78px; gap: 0; position: relative; flex: none; }
#tabstrip .lights { position: absolute; left: 14px; top: 14px; display: flex; gap: 8px; }
#tabstrip .lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; display: block; }
#tabstrip .lights i:nth-child(2) { background: #febc2e; }
#tabstrip .lights i:nth-child(3) { background: #28c840; }
.ctab { position: relative; height: 34px; width: 240px; min-width: 60px; flex: 0 1 240px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 12px; font: 12px -apple-system, BlinkMacSystemFont, sans-serif; color: #3c4043; border-radius: 9px 9px 0 0; cursor: default; user-select: none; }
.ctab:not(.active):hover { background: rgba(255,255,255,.45); }
.ctab:not(.active)::after { content: ''; position: absolute; right: 0; top: 9px; height: 16px; width: 1px; background: #a7abb0; }
.ctab.active { background: var(--chrome-tab); color: #202124; z-index: 1; }
.ctab .fav { width: 16px; height: 16px; flex: none; display: grid; place-items: center; }
.ctab .ttl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctab .x { font-size: 15px; color: #5f6368; border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; }
.ctab .x:hover { background: rgba(0,0,0,.08); }
.ctab .badge { position: absolute; left: 22px; top: 6px; background: #d93025; color: #fff; font-size: 9px; font-weight: 700; border-radius: 7px; padding: 0 4px; line-height: 13px; }
.newtab { width: 28px; height: 28px; display: grid; place-items: center; margin: 0 0 3px 4px; border-radius: 50%; color: #3c4043; font-size: 20px; }
#toolbar { height: 38px; background: #fff; display: flex; align-items: center; gap: 4px; padding: 0 8px; border-bottom: 1px solid #dadce0; flex: none; }
#toolbar .tb { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #5f6368; }
#toolbar .tb:hover { background: #f1f3f4; }
#toolbar .omni { flex: 1; height: 30px; background: #f1f3f4; border-radius: 15px; display: flex; align-items: center; gap: 8px; padding: 0 12px; font: 13.5px -apple-system, BlinkMacSystemFont, sans-serif; color: #202124; }
#toolbar .omni .host { color: #202124; }
#toolbar .omni .path { color: #70757a; }
#toolbar .prof { width: 26px; height: 26px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; margin-left: 6px; }
#viewport { flex: 1; position: relative; overflow: hidden; }
.app { position: absolute; inset: 0; overflow: hidden; display: none; }
.app.active { display: block; }

.avatar { border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 500; flex: none; user-select: none; }

/* ───────────── Gloogle Mail ───────────── */
#app-mail { background: #f6f8fc; font-family: Roboto, Arial, sans-serif; }
.gm-head { height: 64px; display: flex; align-items: center; padding: 8px 16px 8px 8px; gap: 4px; }
.gm-ib { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #444746; flex: none; }
.gm-ib:hover { background: rgba(68,71,70,.08); }
.gm-ib .msi { font-size: 24px; }
.gm-logo { display: flex; align-items: center; gap: 6px; width: 190px; padding-left: 4px; flex: none; }
.gm-logo span { font: 400 22px/24px 'Product Sans', Roboto, Arial, sans-serif; color: #5f6368; letter-spacing: -.3px; }
.gm-search { flex: 0 1 720px; min-width: 0; height: 48px; background: #eaf1fb; border-radius: 24px; display: flex; align-items: center; padding: 0 4px; margin-left: 6px; }
.gm-search:focus-within { background: #fff; box-shadow: 0 1px 1px 0 rgba(65,69,73,.3), 0 1px 3px 1px rgba(65,69,73,.15); }
.gm-search input { flex: 1; border: 0; background: transparent; font: 16px Roboto, Arial, sans-serif; outline: none; color: #1f1f1f; }
.gm-search input::placeholder { color: #444746; }
.gm-head .right { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.gm-body { display: flex; height: calc(100% - 64px); }
.gm-nav { width: 256px; flex: none; padding-right: 16px; overflow-y: auto; }
.gm-compose { margin: 8px 0 16px 8px; height: 56px; min-width: 96px; padding: 0 20px 0 16px; border: 0; border-radius: 16px; background: #c2e7ff; color: #001d35; display: inline-flex; align-items: center; gap: 12px; font: 500 14px 'Google Sans', Roboto, Arial, sans-serif; transition: box-shadow .08s; }
.gm-compose:hover { box-shadow: 0 1px 3px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15); }
.gm-compose .msi { font-size: 24px; }
.gm-ni { height: 32px; border-radius: 0 16px 16px 0; padding: 0 12px 0 26px; display: flex; align-items: center; gap: 18px; font-size: 14px; color: #202124; cursor: pointer; letter-spacing: .2px; }
.gm-ni:hover { background: #e1e5ea; }
.gm-ni.active { background: #d3e3fd; font-weight: 700; color: #001d35; }
.gm-ni .msi { font-size: 20px; color: #444746; }
.gm-ni.active .msi { color: #001d35; }
.gm-ni .cnt { margin-left: auto; font-size: 12px; font-weight: 700; }
.gm-labels { margin: 18px 0 6px 26px; font: 500 16px 'Google Sans', Roboto, sans-serif; color: #1f1f1f; display: flex; align-items: center; justify-content: space-between; padding-right: 8px; }
.gm-main { flex: 1; background: #fff; border-radius: 16px; margin: 0 16px 16px 0; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.gm-tools { height: 48px; display: flex; align-items: center; padding: 0 8px 0 10px; gap: 2px; color: #444746; flex: none; }
.gm-tools .sb { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.gm-tools .sb:hover { background: rgba(68,71,70,.08); }
.gm-tools .pg { margin-left: auto; font-size: 12px; color: #444746; padding-right: 8px; }
.gm-cats { display: flex; border-bottom: 1px solid #f0f0f0; flex: none; }
.gm-cat { width: 250px; height: 56px; display: flex; align-items: center; gap: 18px; padding: 0 16px; font: 500 14px 'Google Sans', Roboto, sans-serif; color: #444746; position: relative; cursor: pointer; }
.gm-cat:hover { background: #f5f5f5; }
.gm-cat.active { color: #0b57d0; }
.gm-cat.active::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #0b57d0; }
.gm-cat.promotions.active { color: #146c2e; } .gm-cat.promotions.active::after { background: #146c2e; }
.gm-cat.social.active { color: #0842a0; }
.gm-cat .new { background: #0b57d0; color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 6px; font-weight: 500; }
.gm-cat.promotions .new { background: #146c2e; }
.gm-list { overflow-y: auto; flex: 1; }
.gm-row { height: 40px; display: flex; align-items: center; padding: 0 16px 0 10px; border-bottom: 1px solid #f0f0f0; font-size: 14px; cursor: pointer; background: rgba(242,245,245,.8); color: #222; position: relative; letter-spacing: .2px; }
.gm-row.unread { background: #fff; font-weight: 700; color: #1f1f1f; }
.gm-row:hover { box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0, 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15); z-index: 1; }
.gm-row .ck, .gm-row .st { width: 32px; color: #c4c7c5; display: grid; place-items: center; flex: none; }
.gm-row .st.on { color: #f4b400; }
.gm-row .from { width: 200px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 32px; }
.gm-row .from small { color: #5f6368; font-weight: 400; font-size: 12px; margin-left: 4px; }
.gm-row .subj { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gm-row .snip { color: #5f6368; font-weight: 400; }
.gm-row .date { width: 90px; text-align: right; font-size: 12px; flex: none; }
.gm-row .nudge { color: #b06000; font-size: 12px; font-weight: 400; margin-right: 8px; white-space: nowrap; }
.gm-row .chip { font-size: 12px; font-weight: 400; background: #ddd; color: #444; border-radius: 4px; padding: 0 5px; margin-right: 6px; line-height: 18px; }
.gm-row .chip.rej { background: #f6c7c3; color: #8c1d18; }
.gm-row .chip.stale { background: #e8eaed; color: #80868b; }
.gm-row.stale .subj, .gm-row.stale .from { color: #80868b; }
.gm-empty { text-align: center; padding: 80px 20px; color: #5f6368; font-size: 14px; }
.gm-empty .msi { font-size: 64px; color: #c4c7c5; display: block; margin: 0 auto 12px; }
.gm-foot { font-size: 12px; color: #5f6368; padding: 18px 24px; display: flex; justify-content: space-between; }
/* reading pane */
.gm-read { overflow-y: auto; flex: 1; padding: 0 0 40px; }
.gm-read h2 { font: 400 22px/28px 'Google Sans', Roboto, sans-serif; color: #1f1f1f; margin: 12px 0 0; padding: 0 16px 0 72px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gm-read h2 .lbl { font: 12px Roboto, sans-serif; background: #ddd; border-radius: 4px; padding: 1px 6px; color: #444; }
.gm-msg { display: flex; padding: 20px 16px 0 16px; gap: 16px; }
.gm-msg .avatar { width: 40px; height: 40px; font-size: 18px; }
.gm-msg .mbody { flex: 1; min-width: 0; }
.gm-msg .mh { display: flex; align-items: baseline; gap: 6px; font-size: 14px; flex-wrap: wrap; }
.gm-msg .mh b { font-weight: 700; color: #1f1f1f; }
.gm-msg .mh .addr { color: #5f6368; font-size: 12px; }
.gm-msg .mh .when { margin-left: auto; color: #5f6368; font-size: 12px; white-space: nowrap; }
.gm-msg .to { color: #5f6368; font-size: 12px; margin-top: 2px; }
.gm-msg .txt { font: 14px/1.55 Arial, sans-serif; color: #222; white-space: pre-wrap; margin-top: 18px; word-wrap: break-word; max-width: 820px; }
.gm-msg + .gm-msg { border-top: 1px solid #f0f0f0; margin-top: 18px; }
.gm-smart { padding: 24px 16px 0 72px; display: flex; flex-wrap: wrap; gap: 8px; }
.gm-chip { border: 1px solid #747775; background: #fff; color: #0b57d0; border-radius: 8px; padding: 7px 14px; font: 500 14px 'Google Sans', Roboto, sans-serif; text-align: left; max-width: 100%; }
.gm-chip:hover { background: #f1f6fe; border-color: #0b57d0; box-shadow: 0 1px 2px rgba(60,64,67,.2); }
.gm-actions { padding: 18px 16px 0 72px; display: flex; gap: 10px; }
.gm-actions button { border: 1px solid #747775; background: #fff; color: #444746; border-radius: 18px; height: 36px; padding: 0 20px 0 14px; display: inline-flex; align-items: center; gap: 8px; font: 500 14px 'Google Sans', Roboto, sans-serif; }
.gm-actions button:hover { background: #f5f5f5; }
.gm-banner { margin: 22px 16px 0 72px; padding: 12px 16px; background: #fef7e0; border-radius: 8px; color: #5f4b00; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.gm-banner.done { background: #e6f4ea; color: #0d652d; }
.gm-banner.dead { background: #f1f3f4; color: #5f6368; }
.gm-composer { margin: 20px 16px 0 72px; border-radius: 12px; box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15); padding: 14px 16px 12px; max-width: 820px; }
.gm-composer .to { font-size: 13px; color: #444; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.gm-composer textarea { width: 100%; min-height: 150px; border: 0; outline: none; resize: vertical; font: 14px/1.55 Arial, sans-serif; color: #222; }
.gm-composer .cbar { display: flex; align-items: center; gap: 6px; color: #444746; }
.gm-send { background: #0b57d0; color: #fff; border: 0; border-radius: 18px; height: 36px; padding: 0 22px; font: 500 14px 'Google Sans', Roboto, sans-serif; display: inline-flex; align-items: center; gap: 0; }
.gm-send:hover { background: #0a4fbd; box-shadow: 0 1px 3px rgba(60,64,67,.3); }
.gm-send .split { border-left: 1px solid rgba(255,255,255,.35); margin-left: 14px; padding-left: 8px; }

/* ───────────── Bird ───────────── */
#app-bird { background: #fff; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: #0f1419; overflow-y: auto; }
.bd-wrap { display: flex; justify-content: center; min-height: 100%; }
.bd-left { width: 275px; flex: none; padding: 0 12px; position: sticky; top: 0; height: calc(100vh - 132px); display: flex; flex-direction: column; align-items: flex-start; }
.bd-logo { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 2px 0 2px; }
.bd-logo:hover { background: rgba(29,155,240,.1); }
.bd-ni { display: flex; align-items: center; gap: 20px; padding: 9px 12px; border-radius: 999px; font-size: 20px; color: #0f1419; cursor: pointer; position: relative; }
.bd-ni:hover { background: rgba(15,20,25,.1); }
.bd-ni.active { font-weight: 700; }
.bd-ni .msi { font-size: 27px; }
.bd-ni .nb { position: absolute; left: 26px; top: 6px; background: #1d9bf0; color: #fff; font-size: 11px; font-weight: 700; border-radius: 10px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border: 2px solid #fff; box-sizing: content-box; }
.bd-post { width: 90%; height: 50px; flex: none; border-radius: 999px; background: #1d9bf0; color: #fff; border: 0; font-size: 17px; font-weight: 700; margin-top: 14px; box-shadow: 0 8px 16px rgba(29,155,240,.18); }
.bd-post:hover { background: #1a8cd8; }
.bd-acct { margin-top: auto; margin-bottom: 8px; flex: none; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 999px; width: 100%; }
.bd-acct:hover { background: rgba(15,20,25,.1); }
.bd-acct .nm { font-weight: 700; font-size: 15px; }
.bd-acct .hd { color: #536471; font-size: 15px; }
.bd-main { width: 600px; flex: none; border-left: 1px solid #eff3f4; border-right: 1px solid #eff3f4; min-height: 100%; }
.bd-hdr { position: sticky; top: 0; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); z-index: 3; border-bottom: 1px solid #eff3f4; }
.bd-hdr h1 { font-size: 20px; font-weight: 800; margin: 0; padding: 14px 16px; display: flex; align-items: center; gap: 24px; }
.bd-tabs { display: flex; }
.bd-tab { flex: 1; text-align: center; height: 53px; display: grid; place-items: center; color: #536471; font-weight: 500; font-size: 15px; position: relative; cursor: pointer; }
.bd-tab:hover { background: rgba(15,20,25,.1); }
.bd-tab.active { color: #0f1419; font-weight: 700; }
.bd-tab.active::after { content: ''; position: absolute; bottom: 0; height: 4px; width: 56px; background: #1d9bf0; border-radius: 4px; }
.bd-composer { display: flex; gap: 12px; padding: 12px 16px 8px; border-bottom: 1px solid #eff3f4; }
.bd-composer .avatar { width: 40px; height: 40px; }
.bd-composer .cmain { flex: 1; min-width: 0; }
.bd-what { font-size: 20px; color: #536471; padding: 10px 0 14px; cursor: pointer; }
.bd-opts { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 10px; }
.bd-opt { text-align: left; border: 1px solid #cfd9de; background: #fff; border-radius: 12px; padding: 9px 12px; font-size: 15px; color: #0f1419; }
.bd-opt:hover { background: #f7f9f9; }
.bd-opt.sel { border-color: #1d9bf0; background: #e8f5fd; }
.bd-cbar { display: flex; align-items: center; border-top: 1px solid #eff3f4; padding-top: 10px; gap: 2px; color: #1d9bf0; }
.bd-cbar .msi { font-size: 20px; padding: 7px; border-radius: 50%; }
.bd-cbar .left { margin-left: auto; color: #536471; font-size: 13px; margin-right: 12px; }
.bd-btn { background: #1d9bf0; color: #fff; border: 0; border-radius: 999px; padding: 0 16px; height: 36px; font-weight: 700; font-size: 15px; }
.bd-btn:disabled { opacity: .5; cursor: default; }
.bd-btn.dark { background: #0f1419; }
.tw { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #eff3f4; cursor: default; }
.tw:hover { background: rgba(0,0,0,.03); }
.tw.fresh { animation: freshTweet 2.5s; }
@keyframes freshTweet { 0% { background: #e8f5fd; } 100% { background: transparent; } }
.tw .avatar { width: 40px; height: 40px; font-size: 17px; }
.tw .tb { flex: 1; min-width: 0; }
.tw .th { display: flex; align-items: center; gap: 4px; font-size: 15px; white-space: nowrap; overflow: hidden; }
.tw .th b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.tw .th .hd, .tw .th .dt { color: #536471; }
.tw .th .more { margin-left: auto; color: #536471; }
.tw .tt { font-size: 15px; line-height: 20px; white-space: pre-wrap; word-wrap: break-word; margin-top: 2px; }
.tw .tt .mention { color: #1d9bf0; }
.tw .ta { display: flex; justify-content: space-between; max-width: 425px; margin-top: 10px; color: #536471; font-size: 13px; }
.tw .ta span { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.tw .ta .msi { font-size: 18px; }
.tw .ta .lk:hover, .tw .ta .lk.on { color: #f91880; }
.tw .ta .rt:hover { color: #00ba7c; }
.tw .ta .rp:hover { color: #1d9bf0; }
.tw .media { margin-top: 12px; border-radius: 16px; overflow: hidden; border: 1px solid #cfd9de; height: 280px; position: relative; }
.tw .quote { margin-top: 10px; border: 1px solid #cfd9de; border-radius: 16px; padding: 10px 12px; font-size: 14px; }
.tw .quote .th { font-size: 14px; }
.tw .notes { margin-top: 12px; border-radius: 16px; background: #000; color: #fff; padding: 26px 22px; font: 15px/1.5 -apple-system, sans-serif; border: 1px solid #cfd9de; }
.tw .notes small { color: #8e8e93; display: block; margin-bottom: 10px; font-size: 12px; }
.verified { width: 18px; height: 18px; flex: none; }
.bd-right { width: 350px; flex: none; padding: 0 0 0 30px; }
.bd-search { position: sticky; top: 0; background: #fff; padding: 6px 0 10px; z-index: 2; }
.bd-search div { height: 44px; border-radius: 999px; background: #eff3f4; display: flex; align-items: center; gap: 12px; padding: 0 16px; color: #536471; font-size: 15px; }
.bd-box { border: 1px solid #eff3f4; border-radius: 16px; margin-bottom: 16px; overflow: hidden; }
.bd-box h2 { font-size: 20px; font-weight: 800; margin: 0; padding: 12px 16px; }
.bd-box p { margin: 0 16px 12px; font-size: 15px; line-height: 20px; }
.bd-trend { padding: 12px 16px; }
.bd-trend:hover { background: rgba(0,0,0,.03); }
.bd-trend small { color: #536471; font-size: 13px; display: block; }
.bd-trend b { font-size: 15px; display: block; margin: 2px 0; }
.bd-wtf { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.bd-wtf .avatar { width: 40px; height: 40px; }
.bd-wtf .n { flex: 1; min-width: 0; font-size: 15px; }
.bd-wtf .n b { display: block; }
.bd-wtf .n span { color: #536471; }
.bd-small { color: #536471; font-size: 13px; padding: 0 16px 16px; line-height: 1.6; }
.bd-prof .banner { height: 200px; background: linear-gradient(120deg, #d9c7a8, #a76d4b 40%, #3c4b6a); }
.bd-prof .pa { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 16px; margin-top: -68px; }
.bd-prof .pa .avatar { width: 134px; height: 134px; border: 4px solid #fff; font-size: 52px; }
.bd-prof .pa .bd-btn { background: #fff; color: #0f1419; border: 1px solid #cfd9de; margin-bottom: 12px; }
.bd-prof .pinfo { padding: 12px 16px; font-size: 15px; }
.bd-prof .pinfo h3 { margin: 0; font-size: 20px; font-weight: 800; }
.bd-prof .pinfo .hd { color: #536471; }
.bd-prof .pinfo .bio { margin: 12px 0; line-height: 20px; }
.bd-prof .pinfo .meta { color: #536471; display: flex; gap: 14px; flex-wrap: wrap; }
.bd-prof .pinfo .ff { margin-top: 10px; display: flex; gap: 18px; color: #536471; }
.bd-prof .pinfo .ff b { color: #0f1419; }
.bd-notif { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #eff3f4; }
.bd-placeholder { padding: 40px 32px; }
.bd-placeholder h2 { font-size: 31px; font-weight: 800; margin: 0 0 8px; line-height: 36px; }
.bd-placeholder p { color: #536471; font-size: 15px; }

/* generated "artworks" for media */
.art { position: absolute; inset: 0; }
.art i { position: absolute; display: block; mix-blend-mode: multiply; }
.wall { position: absolute; inset: 0; background: #ebe6dc; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 18px; }
.wall b { background: #fff; box-shadow: 0 2px 3px rgba(0,0,0,.18); position: relative; padding: 8px 6px; font: 600 6px/1.2 Georgia, serif; color: #333; overflow: hidden; }
.wall b::after { content: ''; position: absolute; left: 6px; right: 6px; top: 20px; height: 40px; background: repeating-linear-gradient(#bbb 0 1px, transparent 1px 5px); }

/* ───────────── Bank of Americana ───────────── */
#app-bank { background: #f7f7f7; font-family: 'Helvetica Neue', Arial, sans-serif; color: #333; overflow-y: auto; }
.bk-util { background: #fff; border-bottom: 1px solid #ddd; }
.bk-util .in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; padding: 14px 20px 12px; gap: 20px; }
.bk-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.bk-logo .word { font: 700 19px/1 Arial, sans-serif; letter-spacing: 1.5px; color: #012169; }
.bk-logo .word em { color: #e31837; font-style: normal; }
.bk-util .links { margin-left: auto; display: flex; gap: 18px; font-size: 13px; color: #0052c2; align-items: center; }
.bk-util .links a { color: #0052c2; text-decoration: none; cursor: pointer; }
.bk-util .links .so { background: #e31837; color: #fff; border-radius: 3px; padding: 6px 12px; font-weight: 700; }
.bk-nav { background: #012169; }
.bk-nav .in { max-width: 1180px; margin: 0 auto; display: flex; padding: 0 20px; overflow-x: auto; }
.bk-nav a { color: #fff; font-size: 14px; padding: 13px 16px; white-space: nowrap; cursor: pointer; border-bottom: 4px solid transparent; }
.bk-nav a:hover { background: rgba(255,255,255,.08); }
.bk-nav a.active { border-bottom-color: #e31837; font-weight: 700; background: rgba(255,255,255,.06); }
.bk-content { max-width: 1180px; margin: 0 auto; padding: 22px 20px 60px; display: flex; gap: 22px; align-items: flex-start; }
.bk-col { flex: 1; min-width: 0; }
.bk-side { width: 330px; flex: none; }
.bk-greet { font: 300 28px/1.2 'Helvetica Neue', Arial, sans-serif; color: #333; margin: 2px 0 18px; }
.bk-greet small { display: block; font-size: 13px; color: #666; margin-top: 6px; }
.bk-card { background: #fff; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.bk-card h3 { margin: 0; padding: 14px 18px; font: 700 16px Arial, sans-serif; color: #333; border-bottom: 1px solid #e5e5e5; display: flex; align-items: center; justify-content: space-between; }
.bk-card h3 small { font-weight: 400; font-size: 12px; color: #666; }
.bk-acct { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid #eee; gap: 14px; cursor: pointer; }
.bk-acct:last-child { border-bottom: 0; }
.bk-acct:hover { background: #fafafa; }
.bk-acct .an { flex: 1; }
.bk-acct .an a { color: #0052c2; font-size: 15px; font-weight: 700; }
.bk-acct .an small { display: block; color: #666; font-size: 12px; margin-top: 3px; }
.bk-acct .bal { text-align: right; font: 700 22px Arial, sans-serif; color: #333; font-variant-numeric: tabular-nums; }
.bk-acct .bal small { display: block; font: 400 11px Arial; color: #666; }
.bk-acct .bal.neg { color: #c41230; }
.bk-row { display: flex; padding: 10px 18px; border-bottom: 1px solid #f0f0f0; font-size: 13px; gap: 12px; align-items: center; }
.bk-row:last-child { border-bottom: 0; }
.bk-row .d { width: 70px; color: #666; flex: none; }
.bk-row .m { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-row .t { width: 90px; color: #666; flex: none; font-size: 12px; }
.bk-row .a { width: 100px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.bk-row .a.pos { color: #007a33; }
.bk-row .b { width: 100px; text-align: right; color: #666; font-variant-numeric: tabular-nums; flex: none; }
.bk-row.head { font-weight: 700; color: #333; background: #f5f5f5; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.bk-empty { padding: 18px; color: #666; font-size: 13px; }
.bk-btn { background: #0052c2; color: #fff; border: 0; border-radius: 3px; padding: 9px 16px; font: 700 13px Arial, sans-serif; }
.bk-btn:hover { background: #003d91; }
.bk-btn.red { background: #e31837; }
.bk-btn.ghost { background: #fff; color: #0052c2; border: 1px solid #0052c2; }
.bk-btn:disabled { background: #bbb; cursor: default; }
.bk-pad { padding: 16px 18px; font-size: 14px; line-height: 1.5; }
.bk-pad .btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.bk-ericka { display: flex; gap: 12px; padding: 16px 18px; align-items: flex-start; }
.bk-ericka .e { width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(from 200deg, #e31837, #012169, #0052c2, #e31837); flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.4); }
.bk-ericka .bubble { background: #f1f4f9; border-radius: 4px 14px 14px 14px; padding: 10px 13px; font-size: 13px; line-height: 1.45; color: #222; }
.bk-fico { padding: 16px 18px; text-align: center; }
.bk-fico .num { font: 300 46px Arial; color: #012169; }
.bk-fico .gauge { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #c41230, #f5a623 40%, #7ed321 75%, #007a33); position: relative; margin: 10px 0 6px; }
.bk-fico .gauge i { position: absolute; top: -4px; width: 4px; height: 18px; background: #012169; border-radius: 2px; }
.bk-fico small { color: #666; font-size: 12px; }
.bk-deal { display: flex; gap: 10px; padding: 11px 18px; border-bottom: 1px solid #f0f0f0; font-size: 13px; align-items: center; }
.bk-deal .pc { background: #e31837; color: #fff; font-weight: 700; font-size: 12px; padding: 4px 6px; border-radius: 3px; min-width: 44px; text-align: center; }
.bk-alert { background: #fff4f4; border: 1px solid #f3c1c7; border-left: 4px solid #c41230; padding: 12px 16px; font-size: 13px; margin-bottom: 18px; border-radius: 3px; color: #7a0c1d; }
.bk-alert.ok { background: #f2fbf5; border-color: #bfe5cc; border-left-color: #007a33; color: #0b5129; }
.bk-foot { max-width: 1180px; margin: 0 auto; padding: 0 20px 40px; font-size: 11px; color: #777; line-height: 1.6; }

/* ───────────── Overlays (the game layer) ───────────── */
#overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(10, 10, 12, .82); backdrop-filter: blur(3px); padding: 20px; overflow-y: auto; }
#overlay.show { display: flex; }
.paper { background: #f3ecd9; color: #2b2418; width: 640px; max-width: 100%; max-height: calc(100vh - 40px); overflow-y: auto; padding: 34px 40px 30px; font-family: 'Courier Prime', 'Courier New', monospace; box-shadow: 0 30px 80px rgba(0,0,0,.6); position: relative; border-radius: 2px; }
.paper h1 { font-family: 'Special Elite', 'Courier Prime', monospace; font-size: 30px; margin: 0; letter-spacing: 2px; }
.paper .sub { font-size: 14px; color: #6d5e43; margin: 4px 0 22px; }
.paper hr { border: 0; border-top: 2px dashed #b9a982; margin: 16px 0; }
.ledger-row { display: flex; align-items: flex-start; gap: 10px; padding: 6px 4px; border-radius: 3px; cursor: pointer; user-select: none; font-size: 15px; }
.ledger-row:hover { background: rgba(0,0,0,.05); }
.ledger-row .box { width: 18px; height: 18px; border: 2px solid #2b2418; flex: none; margin-top: 1px; display: grid; place-items: center; font-weight: 700; font-size: 14px; line-height: 1; }
.ledger-row .lbl { flex: 1; }
.ledger-row .lbl small { display: block; font-size: 12px; color: #8a7a5a; }
.ledger-row.skipped .lbl, .ledger-row.skipped .amt { text-decoration: line-through; color: #9a8a6a; }
.ledger-row.skipped .lbl small { text-decoration: none; color: #a1321f; }
.ledger-row.danger .lbl small { color: #a1321f; font-weight: 700; }
.ledger-row .amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-tot { display: flex; justify-content: space-between; font-size: 16px; padding: 3px 4px; }
.ledger-tot.big { font-size: 20px; font-weight: 700; }
.ledger-tot .neg { color: #a1321f; }
.ledger-tot .pos { color: #1f6b35; }
.paper .warn { background: rgba(161, 50, 31, .1); border-left: 3px solid #a1321f; padding: 8px 12px; font-size: 13px; margin-top: 12px; }
.paper .note { font-size: 13px; color: #6d5e43; margin-top: 10px; }
.paper .go { margin-top: 22px; width: 100%; background: #2b2418; color: #f3ecd9; border: 0; padding: 14px; font: 700 17px 'Courier Prime', monospace; letter-spacing: 3px; }
.paper .go:hover { background: #4a3f2c; }
.log-line { display: flex; gap: 12px; padding: 7px 0; font-size: 14.5px; line-height: 1.45; border-bottom: 1px dotted #cbbd99; }
.log-line .i { font-size: 18px; width: 24px; text-align: center; flex: none; }
.log-line.good { color: #1f5b2e; }
.log-line.bad { color: #7c2412; }
.deltas { display: flex; gap: 10px; margin: 16px 0 4px; }
.deltas div { flex: 1; border: 2px solid #2b2418; padding: 8px 10px; text-align: center; }
.deltas small { display: block; font-size: 11px; letter-spacing: 1px; color: #6d5e43; }
.deltas b { font-size: 18px; }
.deltas .up { color: #1f6b35; } .deltas .down { color: #a1321f; }

.title-card { color: #f3ecd9; text-align: center; font-family: 'Special Elite', monospace; }
.title-card h1 { font-size: 64px; letter-spacing: 6px; margin: 0; }
.title-card p { font-family: 'Courier Prime', monospace; font-size: 17px; color: #cbbd99; }

/* start screen */
.start { width: 720px; max-width: 100%; }
.start h1 { font-family: 'Special Elite', monospace; font-size: 84px; letter-spacing: 12px; margin: 0; color: #f3ecd9; text-align: center; }
.start .tag { font-family: 'Courier Prime', monospace; color: #cbbd99; text-align: center; font-size: 17px; margin: 4px 0 26px; }
.start .paper { width: 100%; }
.start label { display: block; font-size: 13px; letter-spacing: 1px; color: #6d5e43; margin: 18px 0 6px; }
.start input { width: 100%; font: 22px 'Courier Prime', monospace; background: transparent; border: 0; border-bottom: 2px solid #2b2418; padding: 6px 2px; outline: none; color: #2b2418; }
.start .row2 { display: flex; gap: 10px; }
.start .row2 .go { flex: 1; }
.start .go.alt { background: transparent; color: #2b2418; border: 2px solid #2b2418; }
.start .credits { text-align: center; color: #7e7460; font: 12px 'Courier Prime', monospace; margin-top: 16px; }
.start p { font-size: 15px; line-height: 1.55; margin: 0 0 10px; }

/* ending */
.ending .paper { width: 760px; }
.ending .verdict { font: 12px 'Courier Prime', monospace; letter-spacing: 4px; color: #6d5e43; }
.ending .verdict.win { color: #1f6b35; }
.ending .verdict.lose { color: #a1321f; }
.ending h1 { font-size: 42px; margin: 6px 0 4px; }
.ending .body { white-space: pre-wrap; font-size: 15px; line-height: 1.6; margin: 18px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.stats div { border: 1px solid #b9a982; padding: 8px; text-align: center; }
.stats b { display: block; font-size: 18px; }
.stats small { font-size: 11px; color: #6d5e43; letter-spacing: .5px; }
.ach { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ach span { border: 1px solid #2b2418; border-radius: 14px; padding: 4px 10px; font-size: 12.5px; }
.ach span small { color: #6d5e43; }
.chart { margin: 14px 0 4px; }
.chart svg { width: 100%; height: 120px; display: block; }
.legend { display: flex; gap: 14px; font-size: 12px; color: #6d5e43; }
.legend i { display: inline-block; width: 10px; height: 3px; vertical-align: middle; margin-right: 5px; }

/* ───────────── toast + modal ───────────── */
#toast { position: fixed; left: 24px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.toast { background: #303030; color: #f2f2f2; font: 14px Roboto, Arial, sans-serif; border-radius: 4px; padding: 14px 16px; min-width: 288px; max-width: 520px; display: flex; align-items: center; gap: 16px; box-shadow: 0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px 0 rgba(0,0,0,.14); animation: toastIn .2s ease-out; }
.toast a { color: #a8c7fa; font-weight: 500; cursor: pointer; margin-left: auto; white-space: nowrap; }
.toast.game { background: #f3ecd9; color: #2b2418; font-family: 'Courier Prime', monospace; border-left: 4px solid #2b2418; }
@keyframes toastIn { from { transform: translateY(16px); opacity: 0; } }
.modal { background: #fff; border-radius: 8px; width: 560px; max-width: 100%; padding: 26px 30px; font-family: Arial, sans-serif; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.modal h2 { margin: 0 0 10px; font-size: 20px; }
.modal p { font-size: 14px; line-height: 1.55; color: #333; }
.modal .btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ───────────── narrow screens ───────────── */
@media (max-width: 1100px) {
  .bd-right { display: none; }
  .bd-left { width: 88px; align-items: center; }
  .bd-ni span.lbl, .bd-acct .who, .bd-post .lbl { display: none; }
  .bd-post { width: 52px; height: 52px; padding: 0; }
  .bk-side { display: none; }
}
@media (max-width: 860px) {
  .gm-nav { display: none; }
  .gm-main { margin-left: 8px; margin-right: 8px; }
  .gm-logo { width: auto; }
  .gm-head .right { display: none; }
  .gm-row .from { width: 120px; padding-right: 10px; }
  .gm-row .snip, .gm-row .nudge { display: none; }
  .gm-cat { width: auto; flex: 1; gap: 8px; }
  .gm-smart, .gm-actions, .gm-composer, .gm-banner { margin-left: 16px; padding-left: 0; }
  .gm-smart { padding-left: 16px; }
  .gm-read h2 { padding-left: 16px; }
  .bd-left { display: none; }
  .bd-main { width: 100%; }
  .meter .bar { width: 36px; }
  #menubar .mi, #menubar .apple { display: none; }
  .ctab { flex-basis: 120px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .paper { padding: 24px 18px; }
  .start h1 { font-size: 52px; letter-spacing: 6px; }
}
@media (max-width: 560px) {
  .meter .val { min-width: 0; }
  .meter.pur .bar, .meter.rel .bar { width: 28px; }
  #menubar .week span.long, #menubar .appname, #menubar .meter .ico { display: none; }
  #menubar .sleep { padding: 3px 8px; }
  #menubar .sleep .lbl { display: none; }
  #menubar { padding: 0 4px; gap: 0; }
  .meter { padding: 9px 5px 0; }
  .gm-logo span { display: none; }
  #browser { left: 0; right: 0; bottom: 0; border-radius: 0; }
  #tabstrip { padding-left: 8px; }
  #tabstrip .lights { display: none; }
  .gm-row .date { width: 54px; }
}

/* ───────────── playtest round 1 additions ───────────── */
.meter { cursor: pointer; }
.meter .lb { font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; opacity: .62; }
.meter .num { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 20px; }
.meter.hrs .val { min-width: 0; }
.meter.hrs.low .val { color: #d0021b; }
.gm-chip { display: inline-flex; align-items: center; gap: 10px; }
.gm-chip .hrs { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: #5f6368; font-weight: 400; background: #f1f3f4; border-radius: 10px; padding: 1px 7px 1px 4px; }
.gm-chip .hrs .msi { font-size: 14px; }
.gm-chip.no { color: #9aa0a6; border-color: #dadce0; cursor: not-allowed; }
.gm-chip.no:hover { background: #fff; box-shadow: none; border-color: #dadce0; }
.gm-chip.no .hrs { color: #d93025; background: #fce8e6; }
.gm-assist { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; border: 0; border-radius: 16px; padding: 6px 14px 6px 10px; font: 500 13px 'Google Sans', Roboto, sans-serif; color: #0b57d0; background: linear-gradient(90deg, #e8f0fe, #f3e8fd); cursor: pointer; }
.gm-assist:hover { background: linear-gradient(90deg, #d3e3fd, #ead6fb); }
.gm-assist .msi { font-size: 18px; color: #9334e6; }
.gm-cat.updates.active { color: #b06000; } .gm-cat.updates.active::after { background: #b06000; }
.gm-cat.updates .new { background: #b06000; }
svg.art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.artlabel { margin-top: 6px; font-size: 13px; color: #536471; }
.paper.statpage { width: 700px; }
.statpage .srow { display: grid; grid-template-columns: 1fr 90px 220px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dotted #cbbd99; }
.statpage .srow small { display: block; font-size: 12px; color: #6d5e43; margin-top: 2px; }
.statpage .srow .up { color: #1f6b35; } .statpage .srow .down { color: #a1321f; }
.statpage .sval { font-size: 22px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.statpage .slabel { font-size: 12px; letter-spacing: 2px; color: #6d5e43; margin: 16px 0 4px; }
.log-line.news small { color: #8a7a58; margin-right: 4px; }
.paper .credits { font-size: 12px; color: #7e7460; text-align: center; }
@media (max-width: 1100px) { .meter .lb { display: none; } }
@media (max-width: 860px) { .statpage .srow { grid-template-columns: 1fr 70px; } .statpage .spark { display: none; } }
@media (max-width: 560px) {
  .meter.pur .bar, .meter.rel .bar { display: none; }
  .meter .num { min-width: 0; }
  .meter.pur::before { content: '🕊️'; font-size: 11px; }
  .meter.rel::before { content: '📣'; font-size: 11px; }
  #menubar .meter.hrs .ico { display: inline; font-size: 11px; }
  .gm-assist { margin-left: 4px; padding: 4px 8px; font-size: 12px; }
}
@media (max-width: 860px) {
  .gm-cats { overflow-x: auto; scrollbar-width: none; }
  .gm-cat { flex: none; padding: 0 12px; }
  .gm-assist { white-space: nowrap; }
}
@media (max-width: 560px) { .gm-tools .pg { display: none; } }
