/* Patterns every page inside the app is built from. */

.gv-page { max-width: var(--content); margin: 0 auto; padding: 40px 40px 96px; }
.gv-page--narrow { max-width: 760px; }
.gv-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.gv-page-title { font-size: var(--t-28); line-height: 1.15; letter-spacing: -0.032em; font-weight: 500; }
.gv-page-sub { margin-top: 6px; color: var(--ink-3); font-size: var(--t-15); max-width: 62ch; }
.gv-page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gv-crumb { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-13); color: var(--ink-3); margin-bottom: 14px; }
.gv-crumb:hover { color: var(--ink); }

.gv-section { margin-top: 36px; }
.gv-section:first-child { margin-top: 0; }
.gv-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gv-section-title { font-size: var(--t-16); font-weight: 500; letter-spacing: -0.014em; }
.gv-section-head a, .gv-section-head .gv-small a { font-size: var(--t-13); color: var(--ink-3); }
.gv-section-head a:hover { color: var(--ink); }

/* numbers in one ruled strip, not five boxes */
.gv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-14); overflow: hidden; }
.gv-stat { padding: 18px 20px 17px; border-left: 1px solid var(--line); margin-left: -1px; }
.gv-stat-num { font-size: 30px; line-height: 1.1; letter-spacing: -0.035em; font-weight: 500; font-variant-numeric: tabular-nums; }
.gv-stat-label { margin-top: 5px; font-size: var(--t-13); color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.gv-stat-label .gv-dot { width: 6px; height: 6px; }

/* the one loud card on a page */
.gv-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-18); padding: 24px 26px; color: var(--ink-inv);
  background: radial-gradient(80% 120% at 100% 0%, #32604F 0%, rgba(50, 96, 79, 0) 60%), var(--forest); }
.gv-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.3; mix-blend-mode: soft-light; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.gv-hero-title { font-size: var(--t-18); font-weight: 500; letter-spacing: -0.02em; }
.gv-hero-text { margin-top: 4px; color: rgba(244, 242, 234, 0.72); font-size: var(--t-14); max-width: 54ch; }
.gv-hero .gv-progress { background: rgba(244, 242, 234, 0.16); margin-top: 16px; max-width: 320px; }
.gv-hero .gv-progress > i { background: var(--mint); }
.gv-hero .gv-btn--primary { background: var(--ink-inv); color: var(--forest); }
.gv-hero .gv-btn--primary:hover { background: #fff; }
.gv-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* a checklist of setup steps */
.gv-steps { display: grid; }
.gv-step { display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
.gv-step + .gv-step { border-top: 1px solid var(--line); }
.gv-step-mark { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1.5px solid var(--line-3); color: transparent; }
.gv-step.is-done .gv-step-mark { background: var(--forest); border-color: var(--forest); color: var(--ink-inv); }
.gv-step.is-done .gv-step-title { color: var(--ink-3); }
.gv-step-title { font-size: var(--t-14); }
.gv-step-note { font-size: var(--t-12); color: var(--ink-3); }

/* settings: a label column and a card of fields */
.gv-set { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 24px 40px; padding: 30px 0; border-top: 1px solid var(--line); }
.gv-set:first-of-type { border-top: 0; padding-top: 0; }
.gv-set-title { font-size: var(--t-15); font-weight: 500; letter-spacing: -0.012em; }
.gv-set-text { margin-top: 4px; font-size: var(--t-13); color: var(--ink-3); line-height: 1.5; }
.gv-set-body { display: grid; gap: 16px; }
.gv-set-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
@media (max-width: 860px) {
  .gv-page { padding: 24px 18px 72px; }
  .gv-set { grid-template-columns: 1fr; gap: 14px; }
}

/* key and value pairs */
.gv-kv { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 10px 20px; font-size: var(--t-14); }
.gv-kv dt { color: var(--ink-3); }
.gv-kv dd { margin: 0; min-width: 0; }

/* toolbar above a table: search and filters */
.gv-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.gv-toolbar .gv-inputwrap { width: min(300px, 100%); }
.gv-toolbar .gv-input { height: 36px; border-radius: var(--r-pill); }

/* two columns on a detail page */
.gv-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .gv-cols { grid-template-columns: minmax(0, 1fr); } }
/* a grid track never grows past the screen because of what is inside it */
.gv-cols > *, .gv-stack > * { min-width: 0; }

/* a thread of messages (inbox, follow-ups) */
.gv-thread { display: grid; gap: 14px; padding: 20px; }
.gv-msg { max-width: 72%; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--bg-sunken); font-size: var(--t-14); line-height: 1.5; white-space: pre-wrap; }
.gv-msg--mine { justify-self: end; background: var(--forest); color: var(--ink-inv); border-radius: 14px 14px 4px 14px; }
.gv-msg-meta { font-size: var(--t-12); color: var(--ink-3); margin-top: 4px; }
.gv-msg--mine + .gv-msg-meta { justify-self: end; }
