/* ===== Their screens (drawn to match Gmail, iOS and Android; colours set here so they read the same in any theme) ===== */
.scr { --g-bg: #ffffff; --g-page: #f6f8fc; --g-search: #e9eef6; --g-text: #1f1f1f; --g-text2: #444746; --g-text3: #5e5e5e; --g-read: #f2f6fc; --g-line: #eceff1;
  --g-blue: #0b57d0; --g-sel: #d3e3fd; --g-compose: #c2e7ff; --g-compose-ink: #001d35; --g-chip: #e3e3e3; --g-nav: #f3f6fc; --g-btn: #747775; --g-icon: #444746;
  overflow: hidden; color: var(--g-text); background: var(--g-bg); font-family: 'Roboto', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.scr.dark { --g-bg: #1f1f1f; --g-page: #111111; --g-search: #2d2f31; --g-text: #e3e3e3; --g-text2: #c4c7c5; --g-text3: #a6a9a8; --g-read: #1a1a1a; --g-line: #2e3033;
  --g-blue: #a8c7fa; --g-sel: #004a77; --g-compose: #004a77; --g-compose-ink: #c2e7ff; --g-chip: #444746; --g-nav: #262729; --g-btn: #8e918f; --g-icon: #c4c7c5; }
.scr svg { display: block; flex: none; fill: currentColor; }
.scr .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 500 18px/1 'Roboto', Arial, sans-serif; flex: none; }
.scr [data-go] { cursor: pointer; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Phone status bars */
.sb { height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; font: 600 17px/1 -apple-system, 'SF Pro Text', system-ui, 'Helvetica Neue', sans-serif; position: relative; flex: none; }
.sb .di { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; background: #000; border-radius: 20px; }
.sb .ic { display: flex; gap: 6px; align-items: center; }
.sb.android { height: 36px; padding: 4px 22px 0 26px; font: 500 14px/1 'Roboto', Arial, sans-serif; }
.sb.android .di { width: 22px; height: 22px; top: 8px; margin-left: -11px; border-radius: 50%; }

/* iPhone lock screen */
.lock { display: flex; flex-direction: column; color: #fff; position: relative; font-family: -apple-system, 'SF Pro Text', system-ui, 'Helvetica Neue', sans-serif; background: #2b4d6b; }
.wall { position: absolute; inset: 0; background: linear-gradient(180deg, #1c3550 0%, #36607f 34%, #8e8a8f 58%, #d9926a 78%, #f1c48f 100%); }
.scr.dark .wall::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); }
.lock > *:not(.wall) { position: relative; }
.lock-top { display: grid; justify-items: center; padding-top: 8px; text-shadow: 0 1px 6px rgba(0,0,0,.12); }
.lock-top .pad { opacity: .9; margin-bottom: 8px; }
.lock-date { font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.lock-time { font-size: 104px; font-weight: 700; line-height: 1; letter-spacing: -.02em; margin-top: 2px; font-family: -apple-system, 'SF Pro Rounded', 'SF Pro Display', system-ui, sans-serif; }
.lock-gap { flex: 1; }
.ios-stack { display: grid; gap: 8px; padding: 0 10px 18px; }
.ios-n { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px 13px 12px; border-radius: 23px; background: rgba(245, 245, 247, 0.74); color: #000; backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); }
.scr.dark .ios-n { background: rgba(37, 37, 40, 0.72); color: #fff; }
.ios-n .appi { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; flex: none; margin-top: 1px; }
.appi.mail { background: #fff; color: #d93025; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); }
.appi.msg { background: linear-gradient(#5cf777, #0dbd2f); color: #fff; }
.ios-n .nb { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); font-size: 15px; line-height: 20px; letter-spacing: -.01em; }
.ios-n .row1 { display: flex; gap: 8px; align-items: baseline; }
.ios-n .row1 b { flex: 1; font-weight: 600; }
.ios-n .when { font-size: 13px; color: rgba(60, 60, 67, 0.62); flex: none; }
.scr.dark .ios-n .when { color: rgba(235, 235, 245, 0.6); }
.ios-n .subt { font-weight: 600; }
.ios-n .txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.lock-btm { display: flex; justify-content: space-between; padding: 0 46px 18px; }
.lock-btm span { width: 50px; height: 50px; border-radius: 50%; background: rgba(30, 30, 30, 0.34); display: grid; place-items: center; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.homebar { height: 30px; display: grid; place-items: center; flex: none; }
.homebar i { width: 140px; height: 5px; border-radius: 3px; background: currentColor; }

/* Android lock screen */
.alock { display: flex; flex-direction: column; color: #fff; position: relative; font-family: 'Roboto', Arial, sans-serif; background: #2b4d6b; }
.alock > *:not(.wall) { position: relative; }
.a-clock { padding: 30px 28px 0; }
.a-clock .t { font-size: 76px; font-weight: 400; line-height: 1; letter-spacing: -.01em; }
.a-clock .d { font-size: 17px; margin-top: 8px; opacity: .95; }
.a-stack { display: grid; gap: 3px; padding: 26px 12px 0; }
.a-n { background: #eef1f6; color: #1f1f1f; border-radius: 26px; padding: 14px 18px 12px 16px; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; }
.a-n + .a-n { border-radius: 6px 6px 26px 26px; }
.a-n:first-child:not(:last-child) { border-radius: 26px 26px 6px 6px; }
.scr.dark .a-n { background: #2a2b2e; color: #e3e3e3; }
.a-n .appi { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; }
.a-n .appi.mail { box-shadow: none; background: #fbe3e1; }
.scr.dark .a-n .appi.mail { background: #5c2b29; color: #ffb4ab; }
.a-n .appi.msg { background: #c2e7ff; color: #001d35; }
.a-n .hd { font-size: 13px; color: #5e5e5e; display: flex; gap: 6px; min-width: 0; }
.scr.dark .a-n .hd { color: #a6a9a8; }
.a-n .ti { font-size: 16px; font-weight: 500; margin-top: 3px; }
.a-n .su { font-size: 15px; font-weight: 500; margin-top: 2px; }
.a-n .tx { font-size: 15px; line-height: 21px; color: #444746; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.scr.dark .a-n .tx { color: #c4c7c5; }
.a-n .acts { grid-column: 2; display: flex; gap: 26px; margin-top: 10px; font-size: 15px; font-weight: 500; color: #0b57d0; }
.scr.dark .a-n .acts { color: #a8c7fa; }
.a-btm { display: flex; justify-content: space-between; align-items: center; padding: 0 34px 26px; }
.a-btm span { width: 54px; height: 54px; border-radius: 50%; background: rgba(30,30,30,.32); display: grid; place-items: center; }

/* Gmail app */
.app { display: flex; flex-direction: column; position: relative; }
.app .sb { color: var(--g-text); }
.app-search { margin: 4px 16px 6px; height: 50px; border-radius: 25px; background: var(--g-search); display: flex; align-items: center; gap: 14px; padding: 0 8px 0 16px; color: var(--g-icon); flex: none; }
.app-search span { flex: 1; font-size: 16px; color: var(--g-text2); }
.app-search .av { width: 34px; height: 34px; font-size: 16px; }
.app-label { font-size: 14px; color: var(--g-text2); padding: 10px 16px 6px; flex: none; }
.app-list { flex: 1; overflow: hidden; }
.arow { display: flex; gap: 14px; padding: 10px 16px 11px; align-items: flex-start; }
.arow .av { margin-top: 2px; }
.arow .c { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.arow .l1 { display: flex; gap: 8px; align-items: baseline; }
.arow .who { flex: 1; font-size: 16px; line-height: 22px; color: var(--g-text2); }
.arow .tm { font-size: 12px; color: var(--g-text2); flex: none; }
.arow .sj { font-size: 14px; line-height: 20px; color: var(--g-text2); }
.arow .l3 { display: flex; gap: 8px; align-items: center; }
.arow .sn { flex: 1; font-size: 14px; line-height: 20px; color: var(--g-text3); }
.arow .st { color: var(--g-text3); }
.arow.u .who, .arow.u .tm, .arow.u .sj { color: var(--g-text); font-weight: 700; }
.fab { position: absolute; right: 16px; bottom: 104px; height: 56px; border-radius: 16px; background: var(--g-compose); color: var(--g-compose-ink); display: flex; align-items: center; gap: 12px; padding: 0 20px 0 16px; font-size: 15px; font-weight: 500; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.app-nav { height: 82px; background: var(--g-nav); display: flex; justify-content: space-around; padding-top: 12px; color: var(--g-icon); flex: none; }
.app-nav .ni { position: relative; width: 64px; height: 32px; border-radius: 16px; display: grid; place-items: center; }
.app-nav .ni.on { background: var(--g-sel); color: var(--g-text); }
.app-nav .badge { position: absolute; top: -4px; left: 38px; min-width: 18px; height: 16px; border-radius: 8px; background: #b3261e; color: #fff; font-size: 11px; font-weight: 500; display: grid; place-items: center; padding: 0 4px; }
.app-bar { height: 52px; display: flex; align-items: center; gap: 22px; padding: 0 14px 0 16px; color: var(--g-icon); flex: none; }
.app-bar .sp { flex: 1; }
.app-open { flex: 1; overflow-y: auto; scrollbar-width: none; }
.app-open::-webkit-scrollbar { display: none; }
.ao-subj { display: flex; gap: 12px; align-items: flex-start; padding: 6px 16px 14px; }
.ao-subj h2 { flex: 1; font-size: 22px; line-height: 29px; font-weight: 400; overflow-wrap: anywhere; }
.chip { display: inline-block; vertical-align: 3px; font-size: 12px; line-height: 18px; padding: 0 6px; border-radius: 4px; background: var(--g-chip); color: var(--g-text2); margin-left: 4px; font-weight: 400; }
.ao-subj svg { margin-top: 3px; color: var(--g-text3); }
.ao-from { display: flex; gap: 12px; align-items: center; padding: 4px 12px 4px 16px; }
.ao-from .c { flex: 1; min-width: 0; }
.ao-from .nm { display: flex; gap: 8px; align-items: baseline; font-size: 16px; }
.ao-from .nm b { font-weight: 500; }
.ao-from .nm span { font-size: 13px; color: var(--g-text2); flex: none; }
.ao-from .to { font-size: 14px; color: var(--g-text2); display: flex; align-items: center; gap: 2px; }
.ao-from .ic { display: flex; gap: 18px; color: var(--g-icon); }
.ao-body { padding: 16px 16px 8px; font-size: 15px; line-height: 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.lnk { color: var(--g-blue); text-decoration: underline; }
.ao-btns { display: flex; gap: 8px; padding: 18px 16px 120px; flex-wrap: wrap; }
.pillb { height: 40px; border-radius: 20px; border: 1px solid var(--g-btn); display: inline-flex; align-items: center; gap: 8px; padding: 0 16px 0 12px; font-size: 14px; font-weight: 500; color: var(--g-text); }

/* Gmail on a computer */
.web { display: grid; grid-template-columns: 256px minmax(0, 1fr) 56px; grid-template-rows: 64px minmax(0, 1fr); background: var(--g-page); font-size: 14px; }
.w-top { grid-column: 1 / -1; display: flex; align-items: center; padding: 0 16px 0 20px; gap: 8px; color: var(--g-icon); }
.w-logo { display: flex; align-items: center; gap: 10px; width: 220px; padding-left: 12px; }
.w-logo span { font-size: 22px; color: var(--g-text2); font-family: 'Roboto', Arial, sans-serif; }
.w-search { width: 720px; height: 48px; border-radius: 24px; background: var(--g-search); display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.w-search span { flex: 1; font-size: 16px; color: var(--g-text2); }
.w-topr { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.w-topr .av { width: 32px; height: 32px; font-size: 15px; }
.w-nav { padding: 8px 16px 0 8px; display: grid; align-content: start; gap: 2px; }
.w-compose { display: inline-flex; align-items: center; gap: 14px; height: 56px; border-radius: 16px; background: var(--g-compose); color: var(--g-compose-ink); padding: 0 24px 0 18px; font-size: 14px; font-weight: 500; margin: 0 0 16px 0; width: max-content; }
.w-nav .it { display: flex; align-items: center; gap: 18px; height: 32px; border-radius: 0 16px 16px 0; padding: 0 12px 0 26px; color: var(--g-text); font-size: 14px; }
.w-nav .it svg { color: var(--g-icon); }
.w-nav .it.on { background: var(--g-sel); font-weight: 700; }
.w-nav .it .n { margin-left: auto; font-size: 12px; font-weight: 700; }
.w-main { background: var(--g-bg); border-radius: 16px; margin-bottom: 16px; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.w-tool { height: 48px; display: flex; align-items: center; gap: 22px; padding: 0 16px 0 20px; color: var(--g-icon); flex: none; }
.w-tool .pg { margin-left: auto; font-size: 12px; color: var(--g-text2); display: flex; gap: 22px; align-items: center; }
.w-tabs { display: flex; flex: none; border-bottom: 1px solid var(--g-line); }
.w-tabs div { flex: 1 1 0; max-width: 252px; min-width: 0; height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 16px; color: var(--g-text2); font-size: 14px; font-weight: 500; position: relative; }
.w-tabs div.on { color: var(--g-blue); }
.w-tabs div.on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--g-blue); }
.w-rows { flex: 1; overflow: hidden; }
.wrow { height: 40px; display: flex; align-items: center; padding: 0 16px 0 14px; gap: 0; border-bottom: 1px solid var(--g-line); background: var(--g-read); color: var(--g-text2); }
.wrow.u { background: var(--g-bg); color: var(--g-text); }
.wrow .cb, .wrow .st { color: var(--g-text3); opacity: .7; margin-right: 12px; }
.wrow .st { margin-right: 14px; }
.wrow .who { width: 200px; flex: none; padding-right: 32px; }
.wrow .ms { flex: 1; }
.wrow .ms .sn { color: var(--g-text3); }
.wrow .tm { width: 72px; text-align: right; font-size: 12px; flex: none; }
.wrow.u .who, .wrow.u .sj, .wrow.u .tm { font-weight: 700; color: var(--g-text); }
.w-side { display: grid; align-content: start; justify-items: center; gap: 22px; padding-top: 20px; }
.w-side i { width: 22px; height: 22px; border-radius: 6px; display: block; }
.w-open { flex: 1; overflow: hidden; padding: 0 24px 0 0; }
.wo-subj { display: flex; align-items: center; gap: 10px; padding: 20px 0 8px 72px; }
.wo-subj h2 { font-size: 22px; line-height: 28px; font-weight: 400; min-width: 0; }
.wo-subj .chip { font-size: 12px; }
.wo-from { display: flex; gap: 16px; padding: 12px 0 0 16px; }
.wo-from .av { width: 40px; height: 40px; }
.wo-from .c { flex: 1; min-width: 0; }
.wo-from .nm { display: flex; align-items: baseline; gap: 4px; font-size: 14px; }
.wo-from .nm b { font-weight: 700; }
.wo-from .nm .ad { font-size: 12px; color: var(--g-text2); }
.wo-from .nm .ago { margin-left: auto; font-size: 12px; color: var(--g-text2); display: flex; gap: 20px; align-items: center; }
.wo-from .nm .ago svg { color: var(--g-icon); }
.wo-from .to { font-size: 12px; color: var(--g-text2); display: flex; align-items: center; gap: 2px; margin-top: 2px; }
.wo-body { padding: 18px 0 0 72px; font: 14px/1.5 Arial, Helvetica, sans-serif; color: var(--g-text); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 1000px; }
.wo-btns { display: flex; gap: 12px; padding: 30px 0 30px 72px; }
.wo-btns .pillb { height: 36px; border-radius: 18px; padding: 0 22px 0 16px; }
