/* Google Sheets add-on page: extras on top of product.css (.pr-*). Prefix: .gs- */

/* Inline formula chip (hero lead + formula card) */
.gs .gs-chip { display: inline-block; padding: 2px 8px; border-radius: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  font: 600 .88em/1.4 ui-monospace, 'JetBrains Mono', Menlo, monospace; color: var(--mint); white-space: nowrap; }

/* ---------- Hero spreadsheet mock ---------- */
.gs-sheet { width: min(940px, 100%); }
.gs-sheet .pr-app-bar span { display: inline-flex; align-items: center; gap: 8px; }
.gs-sheet .pr-app-bar img { width: 16px; height: 16px; }
.gs-run { margin-left: auto; height: 24px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; background: #EAF0FF; color: var(--blue);
  font-size: 12px; font-weight: 700; font-style: normal; transition: background-color .3s ease, color .3s ease; }
.gs-sheet.is-done .gs-run { background: #DCFCE7; color: #15803D; }
.gs-fx { display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 16px; border-bottom: 1px solid #EEF0F3; font-size: 13px; }
.gs-fx b { font-style: italic; font-weight: 600; color: #94A3B8; padding-right: 12px; border-right: 1px solid #E2E8F0; }
.gs-fx code { font: 500 13px ui-monospace, 'JetBrains Mono', Menlo, monospace; color: #0F9D58; }
.gs-grid { font-size: 13px; }
.gs-r { display: grid; grid-template-columns: 38px minmax(0, 1.5fr) minmax(0, 1.2fr) 64px minmax(0, .9fr) minmax(0, 1.25fr); align-items: center; height: 30px;
  border-bottom: 1px solid #F1F5F9; transition: background-color .3s ease; }
.gs-r > span { padding: 0 12px; height: 100%; display: flex; align-items: center; border-right: 1px solid #F1F5F9; min-width: 0; overflow: hidden; white-space: nowrap; }
.gs-r > span:last-child { border-right: 0; }
.gs-h { height: 28px; background: #F8FAFC; font-size: 11.5px; font-weight: 700; color: #64748B; }
.gs-n { justify-content: center; background: #F8FAFC; color: #94A3B8; font-size: 11.5px; padding: 0 !important; }
.gs-mail { font: 500 13px ui-monospace, 'JetBrains Mono', Menlo, monospace; color: var(--ink); text-overflow: ellipsis; }
.gs-c { color: #334155; opacity: 0; transform: translateX(-4px); transition: opacity .35s ease, transform .35s ease; }
.gs-r .gs-c:nth-child(4) { transition-delay: .08s; } .gs-r .gs-c:nth-child(5) { transition-delay: .16s; } .gs-r .gs-c:nth-child(6) { transition-delay: .24s; }
.gs-r.is-in .gs-c { opacity: 1; transform: none; }
.gs-r.is-cur { background: #F0F5FF; }
.gs-r.is-cur .gs-mail { box-shadow: inset 0 0 0 2px var(--blue); }
.gs-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.gs-reason { font: 500 12px ui-monospace, 'JetBrains Mono', Menlo, monospace; color: #64748B; }
.gs-st { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 6px; background: var(--bg); color: var(--ink);
  font: 700 12px ui-monospace, 'JetBrains Mono', Menlo, monospace; }
.gs-st .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.gs-r.pr-vd-v.is-in .gs-c:nth-child(3), .gs-r.pr-vd-i.is-in .gs-c:nth-child(3), .gs-r.pr-vd-c.is-in .gs-c:nth-child(3),
.gs-r.pr-vd-d.is-in .gs-c:nth-child(3), .gs-r.pr-vd-u.is-in .gs-c:nth-child(3) { background: color-mix(in srgb, var(--bg) 70%, #fff); }

/* ---------- Steps: UI mocks ---------- */
.gs-step-pic { position: relative; text-align: left; width: 100%; height: 262px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #F3F5FB; padding: 14px; }
.gs-step-pic .gm-side { width: 100%; height: 100%; border: 0; background: transparent; padding: 0; overflow: hidden; }
.gs-step-pic .gm-side-h { display: none; }

/* ---------- Sidebar vs formulas: side-by-side comparison ---------- */
.gs-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: var(--pr-w); margin: 52px auto 0; border-radius: 24px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.gs-vs-col { display: flex; flex-direction: column; padding: 34px 32px 32px; text-align: left; }
.gs-vs-col + .gs-vs-col { border-left: 1px solid var(--line); }
.gs .gs-vs-q { font-size: 14.5px; font-weight: 600; color: var(--blue); }
.gs-vs-col h3 { margin-top: 6px; font-size: var(--fs-h3, 24px); font-weight: 600; letter-spacing: -0.01em; }
.gs-crop { position: relative; text-align: left; height: 290px; margin: 20px 0 0; padding: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #F3F5FB; }
.gs-crop .gm-side { width: 100%; height: 100%; border: 0; background: transparent; padding: 0; overflow: hidden; }
.gs-crop .gm-side-h { display: none; }
.gs .gs-cap { margin: 10px 0 20px; font: 500 13px ui-monospace, 'JetBrains Mono', Menlo, monospace; color: #78716C; }
.gs-list { display: flex; flex-direction: column; gap: 12px; }
.gs-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; color: #292524; }
.gs-list svg { flex: none; width: 20px; height: 20px; margin-top: 1px; padding: 3px; border-radius: 50%; background: #E6F7EF; color: #059669; }
.gs .gs-vs-pick { margin-top: auto; padding-top: 22px; font-size: 15px; font-weight: 600; color: var(--ink); }
.gs-vs-pick::before { content: ""; display: block; height: 1px; margin-bottom: 18px; background: var(--line); }

/* ---------- Showcase: full add-on window ---------- */
.gs-shots { padding-top: 80px; padding-bottom: 80px; }
.gs-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 24px auto 0; }
.gs-tabs button { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--mute); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.gs-tabs button:hover { border-color: #0F9D58; color: var(--ink); }
.gs-tabs button[aria-selected="true"] { background: #0F172A; border-color: #0F172A; color: #fff; }
.gs-frame { width: min(980px, calc(100vw - 32px)); margin: 24px auto 0; }
.gs-frame [hidden] { display: none; }

/* ---------- Google Sheets + MailValid sidebar recreation (.gm-) ---------- */
.gm-win { border-radius: 12px; overflow: hidden; border: 1px solid #D6D9E0; background: #fff; box-shadow: 0 24px 48px -28px rgba(15,23,42,.35); text-align: left;
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #202124; }
.gm-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px 6px; background: #F9FBFD; }
.gm-ico { width: 26px; height: 26px; flex: none; }
.gm-top b { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; }
.gm-menu { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11.5px; color: #5F6368; line-height: 1.5; }
.gm-body { display: flex; align-items: stretch; border-top: 1px solid #E8EAED; }
.gm-sheet { flex: 1 1 auto; min-width: 0; }
.gm-fxbar { display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 10px; border-bottom: 1px solid #E2E3E5; font-size: 11.5px; color: #5F6368; }
.gm-name { min-width: 52px; padding-right: 10px; border-right: 1px solid #E2E3E5; font-weight: 500; }
.gm-fxbar i { font-style: italic; color: #9AA0A6; }
.gm-fxbar code { font: 500 11.5px ui-monospace, 'JetBrains Mono', Menlo, monospace; color: #202124; }
.gm-grid { font-size: 11.5px; }
.gm-r { display: grid; grid-template-columns: 28px minmax(0, 1.5fr) minmax(0, 1.15fr) 46px minmax(0, .8fr) minmax(0, 1.25fr); height: 25px; border-bottom: 1px solid #E2E3E5; }
.gm-r > span { display: flex; align-items: center; padding: 0 7px; min-width: 0; overflow: hidden; white-space: nowrap; border-right: 1px solid #E2E3E5; }
.gm-r > span:first-child, .gm-l > span { justify-content: center; padding: 0; background: #F8F9FA; color: #5F6368; font-size: 11px; }
.gm-l { height: 22px; }
.gm-hd > span:not(:first-child) { font-weight: 700; }
.gm-a { font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace; }
.gm-hd > .gm-a { font-family: inherit; }
.gm-nu { justify-content: flex-end; }
.gm-re { font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace; font-size: 11px; }
.gm-s { font-weight: 500; }
.gm-sel { background: #E8F0FE; }
.gm-cur { box-shadow: inset 0 0 0 2px #1A73E8; }
.gm-hd > .gm-cur { background: #fff; }
.gm-mini .gm-r { grid-template-columns: 24px minmax(0, 1.5fr) minmax(0, 1.1fr) 40px minmax(0, .8fr); }
.gm-mini .gm-r > :nth-child(6) { display: none; }

.gm-side { flex: none; width: 280px; padding: 0 12px 14px; background: #F4F6FB; border-left: 1px solid #D6D9E0; font-size: 11.5px; line-height: 1.45; color: #3C4043; }
.gm-side-h { display: flex; align-items: center; justify-content: space-between; height: 40px; font-size: 13px; color: #202124; }
.gm-side-h i { font-style: normal; font-size: 18px; color: #5F6368; }
.gm-card { margin-bottom: 10px; padding: 10px 11px 11px; border-radius: 8px; background: #fff; border: 1px solid #E2E5EC; }
.gm-card h4 { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: #202124; }
.gm-card p { margin: 0 0 8px; color: #5F6368; font-size: 11.5px; }
.gm-card u { color: #1A73E8; }
.gm-input { height: 26px; display: flex; align-items: center; padding: 0 8px; margin-bottom: 8px; border: 1px solid #DADCE0; border-radius: 4px; color: #5F6368; font-size: 11px; white-space: nowrap; overflow: hidden; }
.gm-btns { display: flex; gap: 8px; margin-bottom: 8px; }
.gm-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 4px; border: 1px solid #DADCE0; background: #fff; font-size: 11.5px; font-weight: 600; color: #202124; }
.gm-btn-p { background: #1A73E8; border-color: #1A73E8; color: #fff; }
.gm-btn-p.is-off { background: #A8C7FA; border-color: #A8C7FA; }
.gm-note { padding: 7px 9px; border-radius: 4px; background: #E6F4EA; color: #137333; font-size: 11.5px; }
.gm-note b { font-weight: 700; }
.gm-est { background: #EEF2F9; color: #202124; }
.gm-chk { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 5px; font-size: 11.5px; color: #3C4043; }
.gm-chk i { flex: none; width: 13px; height: 13px; margin-top: 1px; border-radius: 2px; background: #1A73E8; position: relative; }
.gm-chk i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 3px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gm-count { margin: 8px 0 0; padding: 0; list-style: none; font-size: 11.5px; }
.gm-count li { display: flex; justify-content: space-between; padding: 2px 0; }
.gm-count span { font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace; font-size: 11px; }
.gm-mkt { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 16px; border-radius: 10px; background: #fff; border: 1px solid #E2E5EC; }
.gm-mkt-t { font-size: 11.5px; font-weight: 600; color: #5F6368; }
.gm-mkt-c { display: flex; align-items: center; gap: 12px; }
.gm-mkt-c b { display: block; font-size: 13.5px; line-height: 1.3; color: #202124; }
.gm-mkt-c span { font-size: 11.5px; color: #5F6368; }
.gm-mkt-logo { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #3B5BDB, #6366F1); color: #fff; font-weight: 800; font-size: 20px; }
.gm-mkt .gm-btns { margin: 0; }

/* ---------- Results: one realistic sheet table ---------- */
.gs-table { width: min(980px, calc(100% - 32px)); margin: 44px auto 0; overflow-x: auto; border-radius: 12px; border: 1px solid #DADCE0; background: #fff;
  box-shadow: 0 18px 40px -30px rgba(15,23,42,.35); }
.gs-table table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; white-space: nowrap; }
.gs-table th, .gs-table td { height: 34px; padding: 0 14px; border-right: 1px solid #E2E3E5; border-bottom: 1px solid #E2E3E5; }
.gs-table th:last-child, .gs-table td:last-child { border-right: 0; }
.gs-table tbody tr:last-child td { border-bottom: 0; }
.gs-table th { height: 28px; background: #F8F9FA; font-size: 12px; font-weight: 600; color: #5F6368; text-align: center; }
.gs-table .gs-rn { width: 40px; padding: 0; background: #F8F9FA; color: #5F6368; font-size: 12px; text-align: center; }
.gs-table td { color: #202124; }
.gs-hdr td { font-weight: 700; }
.gs-em { font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace; font-size: 13px; }
.gs-num { text-align: right; font-variant-numeric: tabular-nums; }
.gs-s { font-weight: 500; }
.gs-table .gs-s { width: 150px; }
.gs-s-v { background: #E6F4EA; color: #137333; } .gs-s-i { background: #FCE8E6; color: #C5221F; }
.gs-s-c { background: #FEF7E0; color: #A16207; } .gs-s-d { background: #FCE7F6; color: #9D174D; }
.gs-s-u { background: #F1F3F4; color: #5F6368; }
.gs .gs-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; width: min(980px, calc(100% - 32px)); margin: 26px auto 0; }
.gs-legend li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #44403C; }
.gs-legend b { padding: 3px 9px; border-radius: 6px; font: 600 13px ui-monospace, 'JetBrains Mono', Menlo, monospace; }

/* ---------- Permissions: plain row list ---------- */
.gs .gs-perms { width: min(1007px, calc(100% - 32px)); margin: 44px auto 0; border-top: 1px solid #0F172A; text-align: left; }
.gs-perms li { display: grid; grid-template-columns: 250px 230px minmax(0, 1fr); align-items: center; gap: 24px; padding: 22px 6px; border-bottom: 1px solid #D6D3CC; }
.gs-perms code { justify-self: start; padding: 5px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font: 600 13px ui-monospace, 'JetBrains Mono', Menlo, monospace; color: #0F172A; }
.gs-perms b { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.gs-perms span { font-size: 15.5px; line-height: 1.55; color: var(--mute); }
.gs-small { width: min(760px, calc(100% - 32px)); margin: 30px auto 0 !important; text-align: center; font-size: 14.5px; line-height: 1.6; color: var(--mute); }
.gs-small a, .gs-related a { color: var(--blue); font-weight: 600; }
.gs-small a:hover { text-decoration: underline; }

/* ---------- FAQ section extras (heading + related links only; FAQ rows use the shared .pr-faq) ---------- */
.gs-subh { width: min(1007px, calc(100% - 32px)); margin: 56px auto 0 !important; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #78716C; text-align: left; }
.gs-subh + .pr-faq { margin-top: 14px; }
.gs-related { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; width: min(1007px, calc(100% - 32px)); margin: 40px auto 0; }
.gs-related a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--grey); font-size: 14px; transition: background-color .2s ease; }
.gs-related a:hover { background: #EAF0FF; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .gm-body { flex-direction: column; }
  .gm-side { width: auto; border-left: 0; border-top: 1px solid #D6D9E0; }
  .gs-vs { grid-template-columns: 1fr; max-width: 600px; }
  .gs-vs-col + .gs-vs-col { border-left: 0; border-top: 1px solid var(--line); }
  .gs-perms li { grid-template-columns: 1fr; gap: 8px; }
  .gs-r { grid-template-columns: 30px minmax(0, 1.4fr) minmax(0, 1.2fr) 48px; }
  .gs-r > span:nth-child(5), .gs-r > span:nth-child(6) { display: none; }
}
@media (max-width: 560px) {
  .gm-r { grid-template-columns: 26px minmax(0, 1.5fr) minmax(0, 1fr) 40px; }
  .gm-r > :nth-child(5), .gm-r > :nth-child(6) { display: none; }
  .gm-fxbar code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gs-r { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr); }
  .gs-r > span:nth-child(4) { display: none; }
  .gs .pr-lead .gs-chip { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .gs-c, .gs-r { transition: none; } }

/* ---------- Phone polish ---------- */
@media (max-width: 600px) {
  .gs .pr-hero h1 { font-size: 32px; }
  .gs-tabs button { height: 44px; }
  .gs-related a { height: 44px; }
  .gs .gs-legend { display: grid; grid-template-columns: 1fr; justify-content: stretch; gap: 12px; }
  .gs-legend li { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: start; gap: 12px; font-size: 15px; }
  .gs-legend b { justify-self: start; }
  .gs-table table { font-size: 13px; }
  .gs-table th, .gs-table td { padding: 0 10px; }
}

@media (max-width: 600px) {
  .gs-step-pic { height: 290px; }
  .gs-crop { height: 310px; }
}

/* ===== Mobile pass (<=767px) ===== */
@media (max-width: 767px) {
  .gs-sheet .pr-app-bar span { min-width: 0; white-space: nowrap; overflow: hidden; }
  .gs-run { flex: none; white-space: nowrap; }
  /* 1fr let the sidebar mock push the card past the screen at 360px. */
  .gs-vs { grid-template-columns: minmax(0, 1fr); }
  .gs-vs-col { padding: 26px 20px 24px; }
}

/* ===== Mobile pass round 2 (<=767px) ===== */
@media (max-width: 767px) {
  /* Step and "two ways" mockups: height follows content (fixed 290px left big empty panels). */
  .gs-step-pic, .gs-crop { height: auto; }
  .gs-step-pic .gm-side, .gs-crop .gm-side, .gm-mkt { height: auto; }
  /* Demo sheet: drop the run of empty rows 9-19. */
  .gm-grid > .gm-r:nth-child(n+10) { display: none; }
  /* Three demo tabs on one line. */
  .gs-tabs { gap: 6px; }
  .gs-tabs button { padding: 0 11px; font-size: 13.5px; }
}
