/* Offline macOS app contents. Deliberately scoped; the host owns the window,
   traffic lights and titlebar. Each app in its own light theme, as the real app
   draws it on a light Mac (desktop-direct.css), not an inversion of its dark one. */
.replica-app {
  --replica-bg: #ffffff;
  --replica-panel: #f9f9f9;
  --replica-line: #0000001a;
  --replica-ink: #1f1f1f;
  --replica-dim: #6e6e73;
  --replica-blue: #0b57d0;
  position: relative;
  isolation: isolate;
  container: replica / inline-size;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--replica-bg);
  color: var(--replica-ink);
  color-scheme: light;
  font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.replica-app *, .replica-app *::before, .replica-app *::after { box-sizing: border-box; }
.replica-app [hidden] { display: none !important; }
.replica-app button, .replica-app input, .replica-app textarea { font: inherit; color: inherit; letter-spacing: inherit; }
.replica-app button { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 0; min-width: 0; border: 0; border-radius: 6px; background: none; text-align: left; cursor: pointer; box-shadow: none; }
.replica-app button:hover { background-color: #0000000a; }
.replica-app button:active { background-color: #00000014; }
.replica-app button:focus-visible, .replica-app input:focus-visible, .replica-app textarea:focus-visible, .replica-app [tabindex]:focus-visible { outline: 2px solid #0b57d0; outline-offset: -2px; }
.replica-app input, .replica-app textarea { min-width: 0; border: 0; background: transparent; outline: none; }
.replica-app input::placeholder, .replica-app textarea::placeholder { color: #8e8e93; opacity: 1; }
.replica-app input[type="checkbox"] { width: 15px; height: 15px; margin: 0; flex: none; accent-color: #0b57d0; cursor: pointer; }
.replica-app input[type="range"] { accent-color: #8e8e93; height: 13px; }
.replica-app h2, .replica-app h3, .replica-app p, .replica-app pre { margin: 0; }
.replica-app h3 { color: var(--replica-dim); font-size: 11px; font-weight: 600; }
.replica-app small { font-size: 11px; }
.replica-app hr { height: 1px; border: 0; background: var(--replica-line); margin: 12px 0; }
.replica-app kbd { padding: 1px 4px; border: 1px solid #0000001f; border-radius: 4px; background: #00000006; font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: nowrap; }
.replica-app pre, .replica-app code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.replica-app .replica-icon { width: 18px; height: 18px; display: inline-block; flex: none; vertical-align: middle; }
.replica-app .replica-icon-button { width: 30px; height: 30px; flex: none; color: #5f6368; }
.replica-app .replica-button { padding: 6px 10px; min-height: 30px; white-space: nowrap; }
.replica-spacer { flex: 1; }
.replica-muted { color: var(--replica-dim); }
.replica-demo-label { color: #8e8e93; font-size: 10px; font-weight: 400; white-space: nowrap; letter-spacing: .15px; }
.replica-avatar { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; flex: none; border-radius: 50%; background: #7b5ea7; color: #fff; font-size: 13px; font-weight: 500; }
.replica-app .replica-nav-item { display: flex; width: 100%; justify-content: flex-start; min-height: 32px; gap: 12px; padding: 5px 12px; border-radius: 6px; white-space: nowrap; font-size: 12px; }
.replica-nav-item small { margin-left: auto; font-size: 11px; }
.replica-app .replica-selected { background: #0000000d; }
.replica-app .replica-sidebar-reopen { display: none; }
.replica-sidebar-hidden .replica-sidebar { display: none; }
.replica-sidebar-hidden .replica-sidebar-reopen { display: inline-flex; }
.replica-app .replica-outlined { border: 1px solid #c4c7c5; border-radius: 5px; padding: 5px 13px; }
.replica-notice { position: absolute; z-index: 20; left: 50%; bottom: 40px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 11px 40px 11px 15px; background: #303030; border: 1px solid #0000001a; border-radius: 8px; box-shadow: 0 8px 30px #00000038; font-size: 12px; color: #f3f3f5; }
.replica-app .replica-notice-close { position: absolute; right: 7px; top: 5px; width: 27px; height: 27px; font-size: 20px; }
.replica-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.replica-app ::-webkit-scrollbar { width: 8px; height: 8px; }
.replica-app ::-webkit-scrollbar-thumb { background: #0000002e; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.replica-app ::-webkit-scrollbar-corner { background: transparent; }

/* Claude Code in a light terminal: its light theme's clay, greens and reds, real terminal proportions. */
.replica-console { height: 100%; display: flex; flex-direction: column; padding: 20px 16px 8px; background: #fff; color: #1f1f1f; font: 11px/1.28 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.replica-console-scroll { flex: 1; min-height: 0; overflow: auto; padding: 0 3px 10px 0; scrollbar-gutter: stable; }
.replica-console-scroll > p { margin: 12px 0; }
.replica-claude-welcome { display: grid; grid-template-columns: 1fr 1fr; max-width: 760px; min-height: 186px; border: 1px solid #d97757; border-radius: 8px; margin: 0 0 22px; }
.replica-claude-welcome > div:first-child { padding: 12px 18px 14px; text-align: center; }
.replica-claude-welcome .replica-muted { font-size: 11px; }
.replica-claude-welcome > div:first-child > strong { display: block; font-size: 15px; margin-top: 7px; }
.replica-claude-welcome p span { color: #8a8a8a; }
.replica-app .replica-claude-crab { color: #d97757; font: 17px/1.05 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; margin: 14px 0 10px; }
.replica-claude-welcome small { color: #666; font-size: 11px; }
.replica-claude-tips { border-left: 1px solid #d9775766; padding: 18px; font-size: 11px; }
.replica-claude-tips strong { color: #d97757; font-size: 12px; }
.replica-claude-tips p { margin-top: 5px; }
.replica-claude-tips hr { background: #d9775766; }
.replica-console-user { padding: 7px 10px; background: #f0f0f0; color: #1f1f1f; }
.replica-tool-result { margin: -7px 0 8px 19px; color: #666; }
.replica-terminal-diff { margin: -4px 0 8px 21px; padding-left: 10px; border-left: 2px solid #2c7a3966; white-space: nowrap; overflow-x: auto; line-height: 1.65; font-size: 11px; }
.replica-added { color: #2c7a39; }
.replica-removed { color: #ab2b3f; }
.replica-cyan { color: #0e7490; }
.replica-yellow { color: #966c1e; }
.replica-code-inline { padding: 1px 5px; background: #0000000a; border-radius: 3px; }
.replica-console-prompt { display: flex; gap: 10px; min-height: 43px; border-top: 1px solid #999; border-bottom: 1px solid #999; align-items: center; }
.replica-console-prompt input { width: 100%; padding: 8px 0; }
.replica-console-footer { display: flex; align-items: center; gap: 12px; padding: 6px 0 0; font-size: 10px; color: #8700ff; }
.replica-console-footer .replica-demo-label { margin-left: auto; font-size: 9px; }
.replica-local-prompt { margin: 16px 0 8px !important; padding: 9px 12px; background: #0000000a; white-space: pre-wrap; overflow-wrap: anywhere; }
.replica-local-reply { padding: 0 12px 12px; color: #6e6e73; font-size: 12px; }

/* ChatGPT native app, light: grey sidebar, white conversation, its grey user bubble and black send. */
.replica-chatgpt { display: flex; flex-direction: column; }
.replica-native-chat-bar { height: 44px; flex: none; background: #fff; touch-action: none; }
.replica-chat-layout { display: flex; flex: 1; min-height: 0; }
.replica-chat-sidebar { width: 220px; flex: none; display: flex; flex-direction: column; background: #f9f9f9; padding: 9px 10px 8px; border-right: 1px solid #0000000d; }
.replica-sidebar-toolbar { display: flex; justify-content: space-between; margin: 0 2px 17px; }
.replica-chat-sidebar .replica-nav-item { gap: 10px; padding: 7px 9px; font-size: 12px; min-height: 33px; }
.replica-chat-history { min-height: 0; flex: 1; overflow: auto; padding-top: 17px; }
.replica-chat-history h3 { margin: 8px 9px 6px; color: #8f8f8f; font-size: 10px; }
.replica-chat-history h3:not(:first-child) { margin-top: 19px; }
.replica-chat-history .replica-button { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 8px 9px; font-size: 12px; }
.replica-app .replica-history-active { background: #ececec; }
.replica-account { display: flex; align-items: center; gap: 9px; margin-top: 13px; padding: 8px 4px 0; font-size: 11px; }
.replica-account > span:nth-child(2) { flex: 1; }
.replica-account small { display: block; color: #8f8f8f; font-size: 9px; margin-top: 1px; }
.replica-chat-main { min-width: 0; flex: 1; display: flex; flex-direction: column; background: #fff; color: #0d0d0d; }
.replica-chat-header { display: flex; align-items: center; min-height: 49px; padding: 5px 15px; }
.replica-app .replica-model-button { font-size: 17px; padding: 3px 5px; gap: 5px; font-weight: 550; }
.replica-model-button .replica-icon { width: 13px; height: 13px; color: #5d5d5d; margin-left: 2px; }
.replica-chat-scroll { min-height: 0; flex: 1; overflow: auto; padding: 22px 32px 16px; }
.replica-conversation { max-width: 650px; margin: 0 auto; }
.replica-user-bubble { width: fit-content; max-width: 85%; margin: 0 0 28px auto !important; padding: 10px 16px; background: #f4f4f4; border-radius: 20px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.replica-chat-answer { font-size: 13px; line-height: 1.7; color: #0d0d0d; }
.replica-chat-answer p { margin: 0 0 16px; }
.replica-chat-answer ol { margin: 0 0 20px; padding-left: 23px; }
.replica-chat-answer li { margin-bottom: 12px; padding-left: 3px; }
.replica-chat-answer b { font-weight: 600; }
.replica-chat-answer blockquote { margin: 0 0 18px; border-left: 3px solid #d0d0d0; padding: 2px 0 2px 15px; color: #3d3d3d; }
.replica-answer-actions { display: flex; gap: 2px; margin-left: -6px; }
.replica-answer-actions .replica-icon { width: 15px; height: 15px; }
.replica-answer-actions .replica-icon-button { color: #5d5d5d; width: 27px; height: 27px; }
.replica-chat-bottom { flex: none; padding: 4px 24px 8px; }
.replica-composer { border: 1px solid #0000001a; background: #fff; box-shadow: 0 2px 8px #0000000d; border-radius: 23px; padding: 10px 10px 8px; max-width: 680px; margin: 0 auto; }
.replica-composer textarea { width: 100%; display: block; resize: none; min-height: 44px; max-height: 100px; padding: 3px 8px; font-size: 13px; }
.replica-composer-tools { display: flex; align-items: center; gap: 5px; }
.replica-composer-tools > .replica-muted { font-size: 10px; }
.replica-app .replica-send { background: #000; color: #fff; width: 30px; height: 30px; border-radius: 50%; flex: none; }
.replica-app .replica-send:hover { background: #333; }
.replica-chat-bottom > small { display: block; text-align: center; font-size: 9px; margin-top: 7px; color: #5d5d5d; }
.replica-chat-bottom .replica-demo-label { margin-left: 8px; font-size: 9px; }
.replica-new-chat-message { text-align: center; padding: 60px 15px; color: #5d5d5d; }
.replica-new-chat-message h2 { font-weight: 500; font-size: 24px; margin-bottom: 10px; }

/* Chrome 156 on macOS 26: integrated 40px tab strip and 48px toolbar. */
.replica-gmail, .replica-calendar, .replica-chrome { display: flex; flex-direction: column; background: #fff; color: #1f1f1f; font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif; }
.replica-browser-tabs { flex: none; display: flex; align-items: flex-end; gap: 4px; height: 40px; padding: 0 12px 0 92px; background: #d3e3fd; touch-action: none; }
.replica-browser-tabs > .replica-icon-button { width: 28px; height: 28px; margin-bottom: 6px; border-radius: 9px; }
.replica-browser-tabs > .replica-icon-button:first-child { background: #edf4ff; }
.replica-browser-tab { min-width: 170px; width: 234px; max-width: 65%; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 13px; background: #fff; border-radius: 12px 12px 0 0; font-size: 12px; color: #1f1f1f; }
.replica-browser-tab > span:not(.replica-calendar-mark) { flex: 1; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.replica-browser-tab .replica-icon-button { height: 23px; width: 23px; margin-left: auto; border-radius: 50%; }
.replica-browser-tab .replica-icon-button .replica-icon { width: 13px; height: 13px; }
.replica-browser-tab > .replica-icon { width: 15px; height: 15px; color: #5f6368; }
.replica-browser-tab .replica-gmail-mark { width: 15px; height: 12px; }
.replica-browser-tab .replica-calendar-mark { width: 15px; height: 15px; font-size: 8px; border-width: 3px 3px 2px; }
.replica-browser-toolbar { display: flex; align-items: center; gap: 4px; flex: none; height: 48px; padding: 4px 8px; background: #fff; border-bottom: 1px solid #eee; }
.replica-browser-toolbar .replica-icon-button { width: 32px; height: 32px; border-radius: 50%; color: #474747; }
.replica-browser-toolbar .replica-browser-profile { flex: none; padding: 0 12px; min-height: 34px; border-radius: 20px; font-size: 13px; background: #d3e3fd; color: #12315c; }
.replica-browser-profile .replica-icon { width: 18px; height: 18px; }
.replica-address { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; height: 36px; margin: 0 4px; border-radius: 20px; background: #f1f3f5; padding: 0 4px 0 10px; font-size: 14px; color: #1f1f1f; }
.replica-chrome .replica-address { background: #fff; box-shadow: inset 0 0 0 2px #1a73e8; }
.replica-address > .replica-icon { width: 14px; height: 14px; color: #474747; }
.replica-address > span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.replica-address .replica-icon-button { width: 25px; height: 25px; }
.replica-address .replica-icon-button .replica-icon { width: 15px; height: 15px; }
.replica-gmail-mark { width: 28px; height: 22px; flex: none; }
.replica-calendar-mark { display: inline-flex; align-items: center; justify-content: center; height: 29px; width: 29px; flex: none; border: solid #4285f4; border-width: 6px 5px 4px; border-right-color: #1967d2; border-bottom-color: #34a853; color: #1967d2; background: #fff; font: 600 13px/1 Arial, sans-serif; }
.replica-google-header { display: flex; align-items: center; gap: 5px; min-height: 62px; flex: none; padding: 7px 15px 7px 10px; color: #444746; background: transparent; }
.replica-google-brand { display: flex; align-items: center; gap: 11px; width: 194px; flex: none; }
.replica-google-brand > span:not(.replica-calendar-mark) { font-size: 22px; font-weight: 400; color: #444746; letter-spacing: -.7px; }
.replica-google-brand .replica-icon-button { margin-right: 1px; }
.replica-mail-search { display: flex; align-items: center; gap: 14px; flex: 1; max-width: 620px; height: 43px; padding: 0 16px; border-radius: 24px; background: #eaf1fb; color: #444746; }
.replica-mail-search input { flex: 1; width: 100%; font-size: 14px; }
.replica-mail-search input::placeholder { color: #444746; }
.replica-google-header > .replica-spacer { flex: .05; }
.replica-google-header > .replica-avatar { margin-left: 8px; }
.replica-google-rail { width: 43px; flex: none; display: flex; align-items: center; flex-direction: column; gap: 12px; padding: 10px 4px; }
.replica-google-rail .replica-icon-button { width: 31px; height: 31px; }
.replica-google-rail [aria-label="Calendar"] { color: #1a73e8; }
.replica-google-rail [aria-label="Keep"] { color: #f9ab00; }
.replica-google-rail [aria-label="Tasks"] { color: #1a73e8; }
.replica-google-rail [aria-label="Contacts"] { color: #3c6ad6; }
.replica-google-rail hr { width: 20px; margin: 2px 0; }

/* Gmail inbox, light: the blue-grey page, its white rounded list, read rows tinted, unread white and bold. */
.replica-gmail { --replica-dim: #5f6368; background: #f6f8fc; }
.replica-mail-layout { display: flex; flex: 1; min-height: 0; padding-bottom: 9px; }
.replica-mail-sidebar { width: 204px; flex: none; padding-right: 10px; display: flex; flex-direction: column; }
.replica-app .replica-compose-button { margin: 0 0 14px 10px; background: #c2e7ff; color: #001d35; border-radius: 16px; align-self: flex-start; min-height: 48px; padding: 0 18px; gap: 12px; font-size: 13px; font-weight: 550; }
.replica-app .replica-compose-button:hover { background: #c2e7ff; box-shadow: 0 1px 3px #3c40434d, 0 4px 8px 3px #3c404326; }
.replica-mail-sidebar .replica-nav-item { border-radius: 0 18px 18px 0; padding: 4px 18px 4px 22px; min-height: 29px; gap: 17px; color: #1f1f1f; }
.replica-mail-sidebar .replica-selected { color: #001d35; background: #d3e3fd; font-weight: 700; }
.replica-mail-sidebar > h3 { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 22px; margin: 17px 0 6px; color: #1f1f1f; font-size: 13px; }
.replica-mail-storage { margin: auto 20px 5px 22px; padding-top: 22px; color: #444746; }
.replica-mail-storage > div { height: 4px; border-radius: 4px; background: #dadce0; margin-bottom: 8px; }
.replica-mail-storage i { display: block; width: 16%; height: 4px; background: #1a73e8; border-radius: inherit; }
.replica-mail-storage small { font-size: 10px; }
.replica-mail-storage .replica-demo-label { display: block; margin-top: 9px; }
.replica-mail-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; }
.replica-mail-actions { display: flex; align-items: center; gap: 4px; min-height: 43px; padding: 0 12px 0 16px; flex: none; color: #444746; }
.replica-mail-actions > .replica-icon-button:first-of-type { width: 16px; }
.replica-mail-actions > .replica-icon-button:first-of-type .replica-icon { width: 12px; }
.replica-mail-actions small { margin: 0 9px; font-size: 10px; white-space: nowrap; }
.replica-mail-list { flex: 1; min-height: 0; overflow: auto; }
.replica-mail-categories { display: flex; min-height: 49px; background: #fff; border-bottom: 1px solid #f1f3f4; }
.replica-mail-categories > .replica-button { justify-content: flex-start; flex: 1; border-radius: 0; margin: 0 8px; padding: 10px 8px; font-size: 11px; color: #444746; border-bottom: 3px solid transparent; gap: 12px; }
.replica-mail-categories > .replica-category-active { border-bottom-color: #0b57d0; color: #0b57d0; }
.replica-mail-categories small { background: #188038; color: #fff; border-radius: 3px; padding: 0 3px; font-size: 8px; white-space: nowrap; }
.replica-mail-row { display: flex; align-items: center; height: 39px; padding: 0 12px 0 16px; gap: 10px; background: #f2f6fc; border-bottom: 1px solid #64798f1f; }
.replica-mail-row.replica-unread { background: #fff; }
.replica-mail-row:hover { position: relative; z-index: 1; box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0, 0 1px 2px #3c40434d, 0 1px 3px 1px #3c404326; }
.replica-mail-row:has(input:checked) { background: #c2dbff; }
.replica-mail-row input[type="checkbox"] { width: 13px; height: 13px; opacity: .55; }
.replica-app .replica-mail-star { width: 16px; height: 24px; color: #9aa0a6; flex: none; }
.replica-mail-star .replica-icon { width: 16px; height: 16px; stroke-width: 1.5; }
.replica-mail-star[aria-pressed="true"] .replica-icon { color: #f4b400; fill: #f4b400; }
.replica-app .replica-mail-open { flex: 1; min-width: 0; height: 100%; border-radius: 0; justify-content: flex-start; gap: 12px; font-size: 11px; }
.replica-app .replica-mail-open:hover { background: none; }
.replica-mail-sender { width: 122px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.replica-mail-preview { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replica-mail-preview b { font-weight: 400; }
.replica-unread .replica-mail-preview b, .replica-unread .replica-mail-sender, .replica-unread time { font-weight: 700; color: #1f1f1f; }
.replica-mail-open time { width: 58px; flex: none; text-align: right; font-size: 9px; color: #5f6368; white-space: nowrap; }
.replica-mail-label { color: #444746; background: #e1e3e1; border-radius: 3px; padding: 1px 4px; margin-right: 5px; font-size: 9px; }
.replica-mail-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 17px 18px 12px; min-height: 58px; font-size: 9px; color: #5f6368; }
.replica-mail-footer > span:last-child { text-align: right; }
.replica-mail-empty, .replica-file-empty { padding: 35px; text-align: center; color: #5f6368; }
.replica-mail-detail { overflow: auto; flex: 1; padding: 3px 22px 25px; }
.replica-mail-detail > h2 { font-size: 21px; font-weight: 400; margin: 12px 0 22px 39px; }
.replica-mail-detail h2 small { font-size: 10px; background: #e1e3e1; color: #444746; padding: 3px 5px; border-radius: 3px; margin-left: 12px; vertical-align: middle; }
.replica-mail-author { display: flex; align-items: center; gap: 12px; font-size: 11px; }
.replica-mail-author small { font-weight: 400; color: #5f6368; font-size: 10px; }
.replica-mail-author time { font-size: 10px; color: #5f6368; }
.replica-mail-body { margin-left: 41px; max-width: 580px; font-size: 13px; line-height: 1.8; }
.replica-mail-body p { margin: 15px 0; }
.replica-mail-body > small { display: block; margin-top: 22px; font-size: 10px; }

/* Calendar, light: the pale page, a white week, grey hour rules and Google's saturated event colours under white text. */
.replica-calendar { --replica-dim: #70757a; background: #f8fafd; }
.replica-cal-toolbar { gap: 5px; min-height: 60px; }
.replica-cal-toolbar .replica-google-brand { width: 194px; }
.replica-cal-toolbar h2 { font-size: 20px; font-weight: 400; margin-left: 7px; white-space: nowrap; }
.replica-cal-toolbar > .replica-spacer { flex: 1; }
.replica-calendar-layout { display: flex; flex: 1; min-height: 0; }
.replica-calendar-sidebar { width: 204px; flex: none; padding: 0 15px 12px 16px; display: flex; flex-direction: column; overflow-y: auto; }
.replica-app .replica-cal-create { background: #fff; color: #3c4043; border-radius: 16px; box-shadow: 0 1px 2px #3c40434d, 0 1px 3px 1px #3c404326; min-height: 48px; font-size: 13px; padding: 0 14px; align-self: flex-start; gap: 13px; margin-bottom: 16px; }
.replica-cal-create > .replica-icon:first-child { color: #1a73e8; width: 25px; height: 25px; }
.replica-cal-create > .replica-icon:last-child { width: 13px; height: 13px; }
.replica-mini-calendar { width: 100%; font-size: 10px; margin: 0 0 13px; }
.replica-mini-calendar > div:first-child { display: flex; align-items: center; padding: 0 0 4px 4px; }
.replica-mini-calendar b { font-size: 11px; font-weight: 500; margin-right: auto; }
.replica-mini-calendar .replica-icon-button { width: 22px; height: 23px; }
.replica-mini-calendar .replica-icon { width: 13px; height: 13px; }
.replica-mini-days { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 23px; text-align: center; }
.replica-mini-days > span { display: flex; align-items: center; justify-content: center; font-size: 9px; }
.replica-mini-days > span:nth-child(-n+7) { color: #70757a; font-size: 9px; }
.replica-mini-days .replica-muted { color: #b0b3b8; }
.replica-mini-today { background: #0b57d0; color: #fff; width: 22px; border-radius: 50%; justify-self: center; }
.replica-app .replica-cal-people { justify-content: flex-start; background: #e9eef6; border-radius: 4px; font-size: 11px; color: #444746; padding: 6px 8px; margin-bottom: 12px; }
.replica-cal-people .replica-icon { width: 14px; height: 14px; }
.replica-calendar-sidebar h3 { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 500; color: #1f1f1f; margin: 10px 3px 7px; }
.replica-calendar-sidebar h3 > .replica-icon { width: 13px; height: 13px; }
.replica-calendar-sidebar h3 > button { width: 20px; height: 20px; }
.replica-calendar-toggle { display: flex; align-items: center; gap: 12px; padding: 6px 3px; font-size: 11px; }
.replica-calendar-toggle input { accent-color: var(--replica-check, #7986cb) !important; }
.replica-calendar-sidebar footer { display: flex; flex-direction: column; gap: 4px; color: #70757a; margin-top: auto; padding-top: 15px; }
.replica-calendar-sidebar footer small { font-size: 9px; }
.replica-week { min-width: 0; min-height: 0; flex: 1; display: flex; flex-direction: column; border: 1px solid #e1e3e1; border-bottom: 0; border-radius: 16px 16px 0 0; overflow: hidden; background: #fff; }
.replica-week-header { display: grid; grid-template-columns: 45px repeat(7, minmax(0,1fr)); min-height: 69px; flex: none; }
.replica-timezone { align-self: end; padding: 0 2px 7px; font-size: 7px; color: #70757a; text-align: center; }
.replica-week-day { text-align: center; padding: 8px 0 3px; color: #3c4043; }
.replica-week-day > span { font-size: 9px; display: block; letter-spacing: .4px; color: #70757a; }
.replica-week-day b { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-top: 1px; font-size: 23px; font-weight: 400; border-radius: 50%; }
.replica-is-today > span { color: #0b57d0 !important; }
.replica-is-today > b { color: #fff; background: #0b57d0; }
.replica-all-day { display: grid; grid-template-columns: 45px repeat(7, minmax(0,1fr)); height: 26px; border-bottom: 1px solid #dadce0; flex: none; }
.replica-all-day > div { display: flex; align-items: center; gap: 4px; height: 18px; margin: 1px 5px 0 2px; padding: 1px 6px; border-radius: 3px; background: #e6f4ea; color: #0d652d; font-size: 9px; white-space: nowrap; overflow: hidden; }
.replica-all-day .replica-icon { width: 11px; height: 11px; }
.replica-week-scroll { flex: 1; min-height: 0; overflow: auto; }
.replica-week-grid { display: grid; grid-template-columns: 45px repeat(7,minmax(0,1fr)); height: 572px; min-width: 450px; }
.replica-hour-labels { position: relative; display: grid; grid-template-rows: repeat(11,52px); color: #70757a; text-align: right; font-size: 8px; padding-right: 7px; }
.replica-hour-labels span { transform: translateY(-6px); }
.replica-hour-labels span:first-child { transform: translateY(1px); }
.replica-day-column { position: relative; border-left: 1px solid #dadce0; background: repeating-linear-gradient(to bottom, transparent 0, transparent 51px, #dadce0 51px, #dadce0 52px); }
.replica-weekend { background-color: #00000003; }
.replica-app .replica-event { position: absolute; left: 2px; right: 4px; display: block; border-radius: 4px; padding: 3px 6px; overflow: hidden; color: #fff; font-size: 9px; line-height: 1.35; border: 1px solid #fff; }
.replica-event b { font-weight: 550; display: block; }
.replica-event span { display: block; font-size: 8px; margin-top: 2px; }
.replica-app .replica-event-blue { background: #039be5; }
.replica-app .replica-event-green { background: #33b679; }
.replica-app .replica-event-purple { background: #8e24aa; }
.replica-app .replica-event-orange { background: #f4511e; }
.replica-app .replica-event:hover { filter: brightness(.94); box-shadow: 0 1px 3px #3c40434d; }
.replica-now-line { position: absolute; z-index: 2; height: 2px; width: 100%; background: #ea4335; pointer-events: none; }
.replica-now-line i { position: absolute; top: -3px; left: -4px; width: 8px; height: 8px; background: #ea4335; border-radius: 50%; }
.replica-event-popover { position: absolute; z-index: 15; top: 25%; left: 38%; width: 330px; max-width: calc(100% - 24px); padding: 16px 22px 25px; background: #f0f4f9; border: 0; border-radius: 16px; box-shadow: 0 24px 38px 3px #00000024, 0 9px 46px 8px #0000001f, 0 11px 15px -7px #00000033; }
.replica-event-popover > div:first-child { display: flex; justify-content: flex-end; margin: -10px -14px 0 0; }
.replica-event-popover h2 { font-size: 21px; font-weight: 400; margin-bottom: 12px; }
.replica-event-popover p { margin: 12px 0; font-size: 12px; }
.replica-event-popover .replica-icon { width: 15px; height: 15px; margin-right: 5px; }
.replica-event-popover small { color: #5f6368; }

/* Finder, light: the grey source list with accent-blue symbols, white list with alternating rows, blue selection. */
.replica-finder-layout { display: flex; height: 100%; background: #fff; color: #1d1d1f; }
.replica-finder-sidebar { width: 176px; flex: none; margin: 8px 0 8px 8px; background: #f1f1f1; padding: 44px 9px 14px; border: 1px solid #ffffffb3; border-radius: 19px; overflow-y: auto; }
.replica-finder-sidebar h3 { padding: 0 6px; margin: 13px 0 4px; font-size: 11px; line-height: 16px; color: #777; }
.replica-finder-sidebar .replica-nav-item { min-height: 32px; font-size: 13px; padding: 4px 8px; gap: 9px; border-radius: 9px; }
.replica-finder-sidebar .replica-nav-item .replica-icon { color: #242424; width: 18px; height: 18px; }
.replica-finder-sidebar .replica-selected { background: #e6e6e6; color: #007aff; font-weight: 400; }
.replica-finder-sidebar .replica-selected .replica-icon { color: #007aff; }
.replica-finder-tag { display: flex; align-items: center; gap: 11px; min-height: 27px; padding-left: 12px; font-size: 12px; }
.replica-finder-tag i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 .5px #0000002e; }
.replica-finder-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.replica-finder-toolbar { display: flex; align-items: center; gap: 3px; height: 56px; flex: none; padding: 6px 9px; background: #fff; touch-action: none; }
.replica-finder-history { display: flex; gap: 4px; padding: 2px; width: 72px; height: 36px; flex: none; border-radius: 20px; background: #f7f7f7; box-shadow: inset 0 0 0 1px #fff; }
.replica-finder-history .replica-icon-button { width: 32px; height: 32px; }
.replica-finder-toolbar > strong { font-weight: 650; font-size: 15px; margin: 0 10px; }
.replica-finder-toolbar .replica-icon-button { color: #5e5e62; }
.replica-finder-toolbar > .replica-icon-button { width: 25px; }
.replica-view-switch { display: flex; gap: 10px; margin-right: 9px; }
.replica-view-switch .replica-icon-button { width: 48px; height: 36px; border-radius: 20px; background: #f7f7f7; box-shadow: inset 0 0 0 1px #fff; }
.replica-view-switch .replica-icon { width: 17px; height: 17px; }
.replica-app .replica-active-view { color: #1d1d1f; }
.replica-finder-search { display: flex; align-items: center; justify-content: center; gap: 4px; width: 36px; height: 36px; flex: none; padding: 0 7px; margin-left: 5px; border: 1px solid #fff; background: #f7f7f7; border-radius: 20px; }
.replica-finder-search .replica-icon { width: 20px; height: 20px; color: #666; }
.replica-finder-search input { width: 0; padding: 0; font-size: 13px; }
.replica-finder-search:focus-within { width: 118px; }
.replica-finder-search:focus-within input { width: 100%; }
.replica-finder-files { flex: 1; min-height: 0; overflow: auto; background: #fff; }
.replica-file-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; }
.replica-file-table th { position: sticky; top: 0; z-index: 2; height: 24px; text-align: left; background: #fff; color: #6e6e73; font-size: 11px; font-weight: 400; border-bottom: 1px solid #0000001a; padding: 0 9px; }
.replica-file-table th .replica-icon { float: right; width: 11px; height: 11px; margin-top: 2px; }
.replica-file-table th + th { border-left: 1px solid #00000012; }
.replica-file-table th:first-child { width: 43%; padding-left: 48px; }
.replica-file-table th:nth-child(2) { width: 25%; }
.replica-file-table th:nth-child(3) { width: 14%; text-align: right; }
.replica-file-table th:nth-child(4) { width: 18%; }
.replica-file-table td { height: 20px; padding: 0 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #808084; }
.replica-file-table td:nth-child(3) { text-align: right; }
.replica-file-table td:first-child { padding-left: 23px; color: #1d1d1f; }
.replica-file-table tbody tr:nth-child(even) { background: #f4f5f5; }
.replica-file-table tbody .replica-file-selected { background: #0064e1 !important; }
.replica-file-table .replica-file-selected td { color: #fff; }
.replica-file-table td > button { display: flex; justify-content: flex-start; width: 100%; height: 20px; gap: 7px; border-radius: 0; font-size: 13px; }
.replica-file-table td > button:hover { background: transparent; }
.replica-file-table td > button > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.replica-folder-icon { display: inline-block; position: relative; flex: none; width: 19px; height: 13px; border: .5px solid #79c8fa; border-radius: 2px; background: linear-gradient(#74c7f8, #3a9de0); box-shadow: 0 1px 1px #0002; }
.replica-folder-icon::before { content: ''; position: absolute; width: 8px; height: 3px; top: -3px; left: -1px; background: #69b9ea; border: .5px solid #7ecafa; border-radius: 2px 2px 0 0; }
.replica-document-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 15px; height: 19px; border-radius: 1px; background: #fff; color: #747780; font: 600 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: 0 0 0 .5px #00000026, 0 .5px 1px #00000033; clip-path: polygon(0 0,70% 0,100% 23%,100% 100%,0 100%); }
.replica-document-pdf { background: #fff; color: #d55050; font-size: 6px; }
.replica-document-design { background: #33343a; color: #bd9dfb; }
.replica-document-code { color: #3d87a9; }
.replica-document-archive { background: #d4d5d8; color: #5e5e62; font-size: 6px; }
.replica-file-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(105px,1fr)); align-content: start; gap: 16px 8px; padding: 25px 18px; }
.replica-app .replica-grid-file { flex-direction: column; align-self: start; justify-content: flex-start; min-height: 105px; font-size: 11px; padding: 8px 4px; gap: 13px; }
.replica-grid-file > span:last-child { max-width: 100%; text-align: center; overflow-wrap: anywhere; padding: 2px 4px; border-radius: 4px; }
.replica-grid-file .replica-folder-icon { width: calc(var(--replica-file-size,84px) * .7); height: calc(var(--replica-file-size,84px) * .48); border-radius: 4px; margin: 10px 0 3px; }
.replica-grid-file .replica-folder-icon::before { width: 25px; height: 7px; top: -6px; border-radius: 4px 4px 0 0; }
.replica-grid-file .replica-document-icon { width: calc(var(--replica-file-size,84px) * .48); height: calc(var(--replica-file-size,84px) * .65); font-size: 16px; }
.replica-app .replica-grid-file.replica-file-selected { background: #0000000d; }
.replica-grid-file.replica-file-selected > span:last-child { background: #0064e1; color: #fff; }
.replica-pathbar { display: flex; align-items: center; flex: none; gap: 7px; min-height: 25px; background: #fff; border-top: .5px solid #0000001a; padding: 4px 13px; font-size: 9px; color: #5e5e62; white-space: nowrap; overflow: hidden; }
.replica-pathbar .replica-icon { width: 12px; height: 12px; }
.replica-pathbar .replica-icon:not(:first-child) { width: 8px; height: 8px; }
.replica-finder-footer { display: flex; justify-content: center; align-items: center; gap: 15px; min-height: 25px; background: #f6f6f6; padding: 3px 14px; color: #6e6e73; font-size: 10px; border-top: .5px solid #0000001a; }
.replica-finder-footer .replica-demo-label { margin-left: auto; font-size: 9px; }
.replica-finder-footer input { width: 70px; }

/* Chrome's light new tab: the colour wordmark, a white search box and grey shortcut circles. */
.replica-newtab { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; background: #fff; }
.replica-newtab-top { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 11px 20px; flex: none; }
.replica-newtab-top .replica-button { font-size: 11px; padding: 3px; }
.replica-newtab-top .replica-button:hover { text-decoration: underline; background: transparent; }
.replica-newtab-top .replica-icon-button { margin-left: 3px; }
.replica-newtab-center { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; padding: clamp(20px,6cqi,64px) 25px 20px; overflow: auto; }
.replica-google-wordmark { font-size: clamp(64px,11cqi,96px); color: #4285f4; font-weight: 500; letter-spacing: -5px; line-height: 1.2; margin-bottom: 40px; font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif; }
/* Google's own letter colours, as the light new tab draws its logo. */
.replica-google-wordmark span:nth-child(3n+1) { color: #4285f4; }
.replica-google-wordmark span:nth-child(2), .replica-google-wordmark span:nth-child(6) { color: #ea4335; }
.replica-google-wordmark span:nth-child(3) { color: #fbbc05; }
.replica-google-wordmark span:nth-child(5) { color: #34a853; }
.replica-google-search { display: flex; align-items: center; gap: 12px; background: #fff; color: #5f6368; width: 746px; max-width: 100%; min-height: 48px; border-radius: 30px; padding: 0 13px 0 18px; border: 1px solid #dfe1e5; box-shadow: 0 1px 6px #20212429; }
.replica-google-search > .replica-icon { width: 17px; height: 17px; }
.replica-google-search input { flex: 1; color: #202124; font-size: 16px; padding: 11px 0; }
.replica-google-search input::placeholder { color: #5f6368; }
.replica-google-search .replica-icon-button { color: #4285f4; }
.replica-google-search button:hover { background: #0001; }
.replica-shortcuts { display: flex; align-items: flex-start; justify-content: center; margin-top: 32px; gap: 8px; }
.replica-shortcuts > button { flex-direction: column; width: 104px; height: 96px; font-size: 13px; gap: 12px; border-radius: 6px; }
.replica-shortcuts > button > span { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #f1f3f4; color: #5f6368; }
.replica-shortcuts > button:nth-child(1) > span { color: #ea4335; }
.replica-shortcuts > button:nth-child(2) > span { color: #1a73e8; }
.replica-newtab-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; flex: none; }
.replica-app .replica-customize { font-size: 13px; min-height: 32px; border-radius: 20px; padding: 4px 16px; background: #d3e3fd; color: #12315c; box-shadow: 0 1px 3px #3c40434d, 0 0 0 .5px #0000001a; }
.replica-customize .replica-icon { width: 14px; height: 14px; }

/* Pi 1.4 in Terminal's light profile: plain 11px monospace startup heading. */
.replica-pi-console { padding: 20px 16px 8px; background: #fff; color: #24292f; font-size: 11px; line-height: 1.28; }
.replica-pi-heading { display: flex; align-items: center; margin-bottom: 9px; }
.replica-pi-heading strong { font-size: 11px; font-weight: 400; color: #ed7849; }
.replica-pi-heading p { font-size: 11px; }
.replica-pi-help { display: flex; gap: 18px; flex-wrap: wrap; margin: 13px 0; font-size: 10px; color: #6b7280; }
.replica-pi-help b { color: #374151; font-weight: 400; }
.replica-pi-user { background: #eef0fb; border-left: 2px solid #6b72c9; padding: 8px 11px; margin: 18px 0 12px; color: #1f2340; }
.replica-pi-tool { background: #f4f5f7; margin: 9px 0; padding: 8px 11px; border-left: 2px solid #c3c8d0; }
.replica-pi-tool > div { margin-bottom: 3px; }
.replica-pi-tool pre { color: #4a5058; font-size: 10px; line-height: 1.5; white-space: pre; overflow: auto; }
.replica-pi-prompt { min-height: 50px; flex: none; border-top: 1px solid #7d8fb0; border-bottom: 1px solid #7d8fb0; margin-top: 3px; display: flex; align-items: center; }
.replica-pi-input-label { display: block; width: 100%; }
.replica-pi-prompt input { width: 100%; padding: 9px 3px; caret-color: #24292f; }
.replica-pi-footer { font-size: 9px; color: #6b7280; padding-top: 5px; }
.replica-pi-footer > div { display: flex; align-items: center; gap: 6px; min-height: 17px; }
.replica-pi-footer > div:first-child { color: #3f4651; }
.replica-pi-footer .replica-demo-label { font-size: 8px; }
.replica-context-meter { display: inline-block; width: 39px; height: 5px; background: #e2e5ea; vertical-align: middle; margin: 0 4px; }
.replica-context-meter i { display: block; height: 100%; width: 7.3%; min-width: 3px; background: #5b7fae; }

/* OpenCode desktop, light: its pale panels, grey rules, amber modified marks and green/red diff. */
.replica-opencode { --replica-dim: #8a8a8a; display: flex; flex-direction: column; background: #fafafa; color: #1a1a1a; }
.replica-native-code-tabs { display: flex; align-items: center; gap: 8px; height: 44px; flex: none; padding: 0 12px 0 92px; touch-action: none; }
.replica-native-code-tabs > .replica-icon-button { width: 26px; height: 28px; }
.replica-native-code-tabs > div { display: flex; align-items: center; gap: 8px; width: 224px; height: 28px; padding: 0 8px; border-radius: 7px; background: #e8e8e8; font-size: 14px; }
.replica-native-code-tabs > div > span { flex: 1; }
.replica-native-code-tabs .replica-icon { width: 14px; height: 14px; }
.replica-opencode .replica-added { color: #3d9a57; }
.replica-opencode .replica-removed { color: #d1383d; }
.replica-opencode-layout { flex: 1; min-height: 0; display: flex; margin: 0 7px 7px; border: 1px solid #e5e5e5; border-radius: 12px; overflow: hidden; background: #fff; }
.replica-code-sidebar { width: 181px; flex: none; padding: 10px 9px 0; display: flex; flex-direction: column; background: #fafafa; border-right: 1px solid #e5e5e5; font-size: 11px; }
.replica-code-project { display: flex; gap: 8px; align-items: center; padding-left: 6px; margin-bottom: 11px; }
.replica-code-project b { flex: 1; font-weight: 500; font-size: 12px; }
.replica-code-project > .replica-icon { width: 17px; height: 17px; color: #6f6f6f; }
.replica-app .replica-new-session { justify-content: flex-start; background: #fff; padding: 6px 8px; border: 1px solid #e0e0e0; font-size: 11px; margin-bottom: 17px; }
.replica-new-session .replica-icon { width: 14px; height: 14px; }
.replica-code-sidebar > h3 { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; font-size: 9px; color: #8a8a8a; min-height: 25px; font-weight: 400; }
.replica-code-sidebar > h3 .replica-icon-button { height: 18px; width: 18px; }
.replica-code-sidebar > h3 .replica-icon { width: 12px; height: 12px; }
.replica-code-sidebar > .replica-button:not(.replica-new-session) { justify-content: flex-start; font-size: 10px; padding: 6px 7px; min-height: 28px; display: block; text-overflow: ellipsis; overflow: hidden; }
.replica-app .replica-session-selected { background: #ebebeb; color: #1a1a1a; }
.replica-file-tree { overflow: auto; min-height: 0; flex: 1; margin-top: 7px; }
.replica-file-tree > span { display: flex; align-items: center; gap: 5px; min-height: 26px; padding: 3px 5px; color: #5c5c5c; font-size: 10px; }
.replica-file-tree .replica-icon { width: 13px; height: 13px; color: #8a8a8a; }
.replica-file-tree > .replica-tree-indent { padding-left: 15px; }
.replica-app .replica-tree-file { width: 100%; display: flex; justify-content: flex-start; gap: 5px; border-radius: 4px; min-height: 26px; font-size: 9px; white-space: nowrap; padding: 3px 6px 3px 28px; }
.replica-tree-file em { font-size: 8px; color: #d68c27; font-style: normal; margin-left: auto; }
.replica-app .replica-tree-active { background: #ebebeb; color: #1a1a1a; }
.replica-code-sidebar footer { display: flex; align-items: center; gap: 8px; min-height: 31px; margin-top: auto; border-top: 1px solid #e5e5e5; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.replica-code-sidebar footer > .replica-icon { width: 13px; height: 13px; }
.replica-code-session { min-width: 0; flex: 1; display: flex; flex-direction: column; border-right: 1px solid #e5e5e5; }
.replica-code-session-header { min-height: 44px; display: flex; align-items: center; padding: 7px 12px; gap: 5px; border-bottom: 1px solid #ececec; }
.replica-code-session-header > b { font-size: 10px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replica-code-session-header .replica-icon-button { width: 23px; height: 25px; }
.replica-code-session-header .replica-icon { width: 14px; height: 14px; }
.replica-code-chat { flex: 1; min-height: 0; overflow: auto; padding: 19px 17px 15px; font-size: 11px; line-height: 1.7; }
.replica-code-chat > p { margin: 15px 0; }
.replica-code-user { background: #f5f5f5; border-radius: 5px; border: 1px solid #e5e5e5; padding: 10px 12px; font-size: 11px; color: #1a1a1a; margin-bottom: 18px; }
.replica-code-tool { display: flex; align-items: center; gap: 6px; min-height: 32px; border-top: 1px solid #ececec; padding: 5px 0; font: 9px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.replica-code-tool .replica-icon { width: 12px; height: 12px; color: #8a8a8a; }
.replica-code-tool > span:first-of-type { color: #8a8a8a; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.replica-code-tool > .replica-icon:last-child:not(:first-child) { color: #3d9a57; margin-left: auto; }
.replica-code-test { padding: 9px 10px; background: #fafafa; border: 1px solid #e5e5e5; border-radius: 4px; font-size: 9px; line-height: 1.65; overflow: auto; }
.replica-code-complete { display: flex; gap: 6px; align-items: center; font-size: 9px; color: #3d9a57; border-top: 1px solid #ececec; padding-top: 12px; }
.replica-code-complete .replica-icon { width: 12px; height: 12px; }
.replica-code-complete > span { color: #8a8a8a; margin-left: auto; }
.replica-code-compose { padding: 4px 12px 8px; }
.replica-code-compose .replica-composer { background: #fff; border-color: #d4d4d4; box-shadow: none; border-radius: 7px; padding: 7px; }
.replica-code-compose textarea { font-size: 11px; min-height: 43px; }
.replica-code-compose .replica-icon-button { width: 23px; height: 23px; }
.replica-code-compose .replica-icon { width: 14px; height: 14px; }
.replica-code-compose .replica-send { width: 23px; height: 23px; border-radius: 4px; background: #1a1a1a; }
.replica-code-compose .replica-composer-tools > .replica-muted { font-size: 8px; }
.replica-code-compose > small { display: flex; gap: 5px; align-items: center; font-size: 8px; padding: 6px 2px 0; color: #5c5c5c; }
.replica-code-review { width: 44%; min-width: 265px; display: flex; flex-direction: column; background: #fcfcfc; }
.replica-code-review > header { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 5px 12px; border-bottom: 1px solid #ececec; font-size: 10px; }
.replica-code-review header b { font-weight: 500; }
.replica-code-review header b span { margin-left: 5px; color: #8a8a8a; font-size: 9px; }
.replica-code-review header .replica-icon-button { width: 23px; height: 23px; }
.replica-diff-filename { display: flex; gap: 7px; align-items: center; min-height: 36px; padding: 7px 12px; border-bottom: 1px solid #ececec; font-size: 10px; white-space: nowrap; }
.replica-diff-filename .replica-icon { width: 14px; height: 14px; color: #7b5bb6; }
.replica-diff-filename small { color: #d68c27; font-size: 8px; }
.replica-diff-scroll { flex: 1; min-height: 0; overflow: auto; font: 10px/1.85 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.replica-diff-hunk { color: #3b7dd8; background: #f0f4fb; padding: 3px 14px; font-size: 9px; white-space: nowrap; min-width: max-content; }
.replica-diff-line { display: flex; min-width: max-content; min-height: 21px; }
.replica-diff-line > span { display: inline-block; width: 25px; flex: none; text-align: right; padding-right: 7px; color: #a0a0a0; user-select: none; font-size: 9px; }
.replica-diff-line code { display: block; flex: 1; padding: 0 12px 0 0; white-space: pre; color: #4d4d4d; }
.replica-diff-line code i { display: inline-block; width: 16px; font-style: normal; color: #a0a0a0; user-select: none; }
.replica-diff-add { background: #e3f4e7; }
.replica-diff-add code { color: #1e725c; }
.replica-diff-remove { background: #fbe4e6; }
.replica-diff-remove code { color: #c53b53; }
.replica-code-review > footer { display: flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 11px; border-top: 1px solid #ececec; color: #3d9a57; font-size: 8px; white-space: nowrap; }
.replica-code-review > footer > .replica-icon { width: 11px; height: 11px; }
.replica-code-review footer .replica-demo-label { font-size: 8px; }

/* Respond to window width, not the desktop viewport or choreography transform. */
@container replica (max-width: 1000px) {
  .replica-chat-sidebar { width: 194px; }
  .replica-chat-scroll { padding: 16px 27px; }
  .replica-code-sidebar { width: 161px; }
  .replica-code-review { width: 39%; min-width: 250px; }
  .replica-tree-file { padding-left: 18px !important; font-size: 8px !important; }
  .replica-code-chat { padding: 15px 13px; }
  .replica-code-tool { font-size: 8px; }
  .replica-google-brand, .replica-cal-toolbar .replica-google-brand { width: 178px; }
  .replica-mail-sidebar, .replica-calendar-sidebar { width: 188px; }
  .replica-cal-toolbar { gap: 2px; padding-right: 10px; }
  .replica-cal-toolbar h2 { font-size: 17px; margin-left: 5px; }
  .replica-cal-toolbar > .replica-icon-button { width: 25px; }
  .replica-mail-sender { width: 100px; }
  .replica-finder-toolbar { padding-left: 8px; padding-right: 8px; }
  .replica-view-switch { margin-right: 0; }
  .replica-finder-toolbar > strong { margin-right: 5px; }
}
@container replica (max-width: 780px) {
  .replica-chat-sidebar { width: 173px; }
  .replica-chat-scroll { padding: 15px 21px; }
  .replica-chat-answer { font-size: 12px; }
  .replica-chat-answer li { margin-bottom: 8px; }
  .replica-chat-bottom { padding-left: 16px; padding-right: 16px; }
  .replica-google-brand, .replica-cal-toolbar .replica-google-brand { width: 149px; gap: 8px; }
  .replica-google-brand > span:not(.replica-calendar-mark) { font-size: 19px; }
  .replica-mail-sidebar, .replica-calendar-sidebar { width: 159px; }
  .replica-mail-sidebar .replica-nav-item { gap: 12px; padding-left: 18px; }
  .replica-mail-categories .replica-button { gap: 6px; font-size: 10px; margin: 0 4px; }
  .replica-mail-categories small { display: none; }
  .replica-mail-row { gap: 7px; padding-left: 12px; }
  .replica-mail-sender { width: 84px; }
  .replica-mail-open { gap: 8px !important; }
  .replica-mail-preview { font-size: 10px; }
  .replica-google-rail { width: 34px; }
  .replica-cal-toolbar > button[aria-label="Help"], .replica-cal-toolbar > button[aria-label="Google apps"] { display: none; }
  .replica-cal-toolbar h2 { font-size: 16px; }
  .replica-calendar-sidebar { padding-left: 10px; padding-right: 10px; }
  .replica-calendar-toggle { font-size: 10px; }
  .replica-event { font-size: 8px !important; padding-left: 3px !important; padding-right: 2px !important; }
  .replica-event span { font-size: 7px; }
  .replica-finder-sidebar { width: 150px; }
  .replica-finder-toolbar > .replica-icon-button[aria-label="Share file"], .replica-view-switch > button:nth-child(n+3) { display: none; }
  .replica-file-table th:nth-child(4), .replica-file-table td:nth-child(4) { display: none; }
  .replica-file-table th:first-child { width: 49%; }
  .replica-file-table th:nth-child(2) { width: 35%; }
  .replica-file-table th:nth-child(3) { width: 16%; }
  .replica-code-sidebar { width: 145px; }
  .replica-code-review { width: 37%; min-width: 225px; }
  .replica-code-session-header { padding-left: 8px; padding-right: 8px; }
  .replica-code-session-header > b { font-size: 9px; }
  .replica-code-session-header > button[aria-label="Share session"] { display: none; }
  .replica-code-compose .replica-composer-tools > .replica-muted { max-width: 100px; white-space: nowrap; overflow: hidden; }
  .replica-diff-line { font-size: 9px; }
  .replica-diff-filename { font-size: 9px; padding-left: 8px; gap: 4px; }
  .replica-diff-filename small { display: none; }
}
@container replica (max-width: 620px) {
  .replica-chat-sidebar, .replica-mail-sidebar, .replica-calendar-sidebar, .replica-finder-sidebar, .replica-code-sidebar { display: none; }
  .replica-app .replica-sidebar-reopen { display: inline-flex; }
  .replica-sidebar-open .replica-sidebar { display: flex; position: absolute; z-index: 5; top: 0; bottom: 0; left: 0; width: 180px; box-shadow: 10px 0 25px #00000026; }
  .replica-sidebar-open .replica-finder-sidebar { display: block; }
  .replica-sidebar-open .replica-mail-sidebar, .replica-sidebar-open .replica-calendar-sidebar { top: 137px; background: #f6f8fc; }
  .replica-chat-main { width: 100%; }
  .replica-google-brand, .replica-cal-toolbar .replica-google-brand { width: auto; margin-right: 8px; }
  .replica-google-brand > span:not(.replica-calendar-mark) { display: none; }
  .replica-google-header { padding-left: 6px; padding-right: 8px; }
  .replica-google-header > button[aria-label="Help"], .replica-google-header > button[aria-label="Google apps"], .replica-google-rail { display: none; }
  .replica-mail-search { padding-left: 10px; gap: 8px; }
  .replica-mail-layout { padding: 0 7px 7px; }
  .replica-mail-sender { width: 92px; }
  .replica-claude-welcome { grid-template-columns: 1fr; max-width: 420px; }
  .replica-claude-tips { display: none; }
  .replica-console { padding: 12px 13px 8px; font-size: 11px; }
  .replica-console-footer { font-size: 8px; }
  .replica-console-footer .replica-muted { display: none; }
  .replica-pi-footer { font-size: 8px; }
  .replica-context-meter { display: none; }
  .replica-pi-help { gap: 10px; font-size: 9px; }
  .replica-code-review { min-width: 195px; width: 42%; }
  .replica-code-chat { padding: 12px 10px; font-size: 10px; }
  .replica-code-tool { flex-wrap: wrap; }
  .replica-code-test { font-size: 8px; }
  .replica-code-review footer .replica-demo-label { display: none; }
  .replica-code-compose { padding-left: 8px; padding-right: 8px; }
  .replica-shortcuts { gap: 0; }
  .replica-shortcuts > button { width: 70px; font-size: 9px; }
  .replica-event-popover { left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .replica-app *, .replica-app *::before, .replica-app *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .replica-app button, .replica-app input, .replica-app textarea { border: 1px solid ButtonText; }
  .replica-file-selected, .replica-selected { outline: 1px solid Highlight; }
}
