/* Newli Goals + Mission Control (1 Dec 2026). Agenda tokens (theme.css) and HIG type (hig.css); magenta is the
   accent only (active tab, current quarter rule, focus). Loaded after hig.css. */
.nav-goals { min-height: 36px; margin-right: 4px; padding: 0 14px; border-radius: 999px; font: var(--fw-medium) 14px/1 var(--font-ui); color: var(--text); background: var(--surface); border-color: var(--hairline-strong); text-decoration: none; display: inline-flex; align-items: center; }
.nav-goals:hover { background: var(--hover); }
.g-main { max-width: none; padding: 0 0 calc(48px + var(--safe-b, 0px)); background: var(--surface); min-height: calc(100vh - 56px); }
.g-main > * { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.g-main.wide > * { padding-left: 24px; padding-right: 24px; }
.g-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-top: 16px; }
.g-title { font: var(--fw-bold) var(--fs-title-1)/var(--lh-title-1) var(--font-ui); letter-spacing: var(--tr-title-1); margin: 0; color: var(--text); }
.g-main.wide .g-title { font-size: var(--fs-title-2); line-height: var(--lh-title-2); letter-spacing: var(--tr-title-2); }
.g-sub { font: var(--fw-regular) 13px/18px var(--font-ui); color: var(--text-2); }
.g-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--hairline); margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.g-tabs::-webkit-scrollbar { display: none; }
.g-tabs a { position: relative; font: var(--fw-medium) 15px/20px var(--font-ui); color: var(--text-2); padding: 10px 0 11px; text-decoration: none; white-space: nowrap; }
.g-tabs a.on { color: var(--text); }
.g-tabs a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); border-radius: 1px; }
.g-tabs .g-tabs-r { margin-left: auto; }
.g-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 4px; }
.g-chip, .g-chipsel { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--hairline-strong); border-radius: 999px; font: var(--fw-medium) 14px/1 var(--font-ui); color: var(--text); background: var(--surface); white-space: nowrap; cursor: pointer; }
.g-chip.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); cursor: default; }
.g-chipsel { appearance: none; -webkit-appearance: none; padding-right: 14px; max-width: 220px; text-overflow: ellipsis; }
.g-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; border: 0; background: none; font: var(--fw-medium) 14px/1 var(--font-ui); color: var(--text); cursor: pointer; padding: 0 4px; }
.g-switch i { width: 34px; height: 20px; border-radius: 999px; background: var(--hairline-strong); position: relative; flex: none; transition: background .15s; }
.g-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.g-switch.on i { background: var(--primary); }
.g-switch.on i::after { left: 16px; background: var(--primary-ink); }
.g-legend { margin-left: auto; font: var(--fw-regular) 12px/16px var(--font-ui); color: var(--text-2); }
.g-banner { margin-top: 8px; margin-left: 16px; margin-right: 16px; padding: 10px 14px !important; border-radius: 10px; background: var(--soft); font: var(--fw-regular) 13px/18px var(--font-ui); color: var(--text-2); }
.g-main.wide .g-banner { margin-left: 24px; margin-right: 24px; }
.g-banner b { color: var(--text); font-weight: var(--fw-semibold); }
.g-caption { margin: 14px 0 8px; font: var(--fw-regular) 13px/18px var(--font-ui); color: var(--text-2); }
.g-caption b { color: var(--text); font-weight: var(--fw-semibold); }
.g-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.g-card { border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px; background: var(--surface); min-width: 0; }
.g-card-k { font: var(--fw-regular) 12px/16px var(--font-ui); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-card-v { font: var(--fw-semibold) 22px/28px var(--font-ui); color: var(--text); margin-top: 2px; display: flex; align-items: center; gap: 8px; }
.g-card-s { font: var(--fw-regular) 12px/16px var(--font-ui); color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--dot-green); } .neg { color: var(--danger); } .zero { color: var(--text-2); }
.g-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dot-grey); flex: none; }
.g-dot.s-on { background: var(--dot-green); } .g-dot.s-behind { background: var(--dot-red); } .g-dot.s-pending { background: transparent; box-shadow: inset 0 0 0 1.5px var(--dot-grey); }
/* the table */
.g-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.g-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 860px; font: var(--fw-regular) 13px/18px var(--font-ui); color: var(--text); }
.g-table th, .g-table td { border-bottom: 1px solid var(--hairline); padding: 6px 10px; text-align: right; vertical-align: middle; white-space: nowrap; }
.g-table thead th { font-weight: var(--fw-regular); color: var(--text-2); font-size: 12px; background: var(--surface); }
.g-table .g-corner { text-align: left; vertical-align: bottom; color: var(--text-2); position: sticky; left: 0; z-index: 2; }
.g-table .g-corner small { font-size: 12px; }
.g-qh { border-bottom: 0 !important; }
.g-qh.cur { box-shadow: inset 0 2px 0 var(--accent); }
.g-qh.open { text-align: left !important; }
.g-qbtn, .g-bbtn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--text); font: inherit; padding: 4px 2px; cursor: pointer; border-radius: 6px; min-height: 32px; }
.g-qbtn b, .g-bbtn b { font-weight: var(--fw-semibold); }
.g-qsub { color: var(--text-2); font-size: 12px; font-weight: var(--fw-regular); }
.chev svg { width: 14px; height: 14px; display: block; }
.g-fyh { vertical-align: bottom; border-left: 1px solid var(--hairline); }
.g-fyh b { color: var(--text); font-weight: var(--fw-semibold); }
.g-agg { background: color-mix(in srgb, var(--soft) 55%, transparent); }
.g-table td.g-fy { border-left: 1px solid var(--hairline); }
.g-rl { text-align: left !important; font-weight: var(--fw-regular); position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 150px; }
.g-total .g-rl { font-weight: var(--fw-semibold); }
.g-total td, .g-total th { background: color-mix(in srgb, var(--soft) 70%, var(--surface)); }
.g-bh th { text-align: left !important; background: var(--section-head); padding: 2px 6px; position: sticky; left: 0; }
.g-note { color: var(--text-2); font-size: 12px; font-weight: var(--fw-regular); margin-left: 4px; }
.g-l1 { font-weight: var(--fw-semibold); color: var(--text); display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.g-l1.pending { color: var(--text-3); font-weight: var(--fw-medium); }
.g-l1.dash { color: var(--text-3); font-weight: var(--fw-regular); }
.g-l1.st { font-weight: var(--fw-medium); font-size: 12px; }
.g-l1.st.s-pending, .g-l1.st.s-none, .g-l1.st.s-future { color: var(--text-3); }
.g-l2, .g-l3 { font-size: 12px; color: var(--text-2); line-height: 16px; }
.g-l3 { color: var(--text-3); }
.g-table td.edit { padding: 0; }
.g-cellbtn { display: block; width: 100%; min-height: 44px; border: 0; background: none; text-align: right; padding: 6px 10px; font: inherit; color: inherit; cursor: text; border-radius: 0; }
.g-cellbtn:hover { background: var(--hover); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.g-cellform { display: grid; gap: 4px; padding: 4px; min-width: 128px; }
.g-cellform label { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 4px; font-size: 11px; color: var(--text-2); }
.g-in { width: 100%; min-width: 0; height: 30px; border: 1px solid var(--input-border); border-radius: 6px; padding: 0 6px; font: var(--fw-regular) 13px/18px var(--font-ui); text-align: right; background: var(--input-bg); color: var(--text); }
.g-in:focus { outline: 2px solid var(--focus-ring); outline-offset: -1px; }
.g-err { color: var(--danger); font-size: 11px; line-height: 14px; white-space: normal; }
.g-err:empty { display: none; }
.g-foot { margin-top: 16px; font-size: 12px; line-height: 16px; color: var(--text-3); }
/* phone scoreboard */
.g-phone { display: grid; gap: 10px; }
.g-cards { }
@media (max-width: 899px) { .g-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .g-legend { margin-left: 0; width: 100%; } .g-card-v { font-size: 18px; line-height: 24px; } }
.g-mblock-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.g-mblock-h h3 { margin: 0; font: var(--fw-bold) 17px/22px var(--font-ui); color: var(--text); }
.g-phone > .g-note { margin: -6px 0 0; }
.g-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--soft); border-radius: 9px; padding: 2px; }
.g-seg button { border: 0; background: none; min-height: 36px; border-radius: 7px; font: var(--fw-medium) 13px/16px var(--font-ui); color: var(--text-2); padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-seg button[aria-selected=true] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.g-step { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; border: 1px solid var(--hairline); border-radius: 12px; }
.g-step-l { text-align: center; display: grid; font-size: 12px; color: var(--text-2); }
.g-step-l b { color: var(--text); font: var(--fw-semibold) 15px/20px var(--font-ui); }
.g-step .icon-btn:disabled { opacity: .3; }
.g-mcard { border: 1px solid var(--hairline); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.g-mcard.total { background: color-mix(in srgb, var(--soft) 60%, var(--surface)); }
.g-mc-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.g-mc-h b { font: var(--fw-semibold) 15px/20px var(--font-ui); color: var(--text); }
.g-mc-h span { font-size: 12px; color: var(--text-2); }
.g-mr { display: grid; grid-template-columns: minmax(56px, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 6px; align-items: center; min-height: 32px; font: var(--fw-regular) 14px/18px var(--font-ui); color: var(--text); }
.g-mr.team { grid-template-columns: minmax(56px, 1.1fr) 1.4fr 1fr; }
.g-mr > span:not(:first-child) { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-mr .st { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; font-size: 13px; }
.g-mr .pending { color: var(--text-3); }
.g-mr-h { color: var(--text-2); font-size: 12px; min-height: 20px; }
.g-mr.sum { border-top: 1px solid var(--hairline); font-weight: var(--fw-semibold); margin-top: 2px; padding-top: 4px; }
.g-mr-btn { width: 100%; border: 0; background: none; padding: 0; text-align: left; border-radius: 6px; min-height: 40px; }
.g-mr-btn:hover, .g-mr-btn:active { background: var(--hover); }
.g-mr-edit .g-cellform { grid-template-columns: 1fr 1fr; }
/* operating plan */
.g-plan { display: block; }
.g-prow { display: grid; grid-template-columns: 32px minmax(220px, 2.4fr) minmax(90px, .9fr) minmax(96px, .9fr) minmax(70px, .6fr) 132px minmax(180px, 2fr) 44px; gap: 8px; align-items: center; border-bottom: 1px solid var(--hairline); min-height: 44px; }
.g-phead { font: var(--fw-regular) 12px/16px var(--font-ui); color: var(--text-2); min-height: 32px; margin-top: 8px; }
.g-rockrow { grid-template-columns: 32px minmax(0, 1fr) auto 44px; background: var(--section-head); }
.g-rt { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.g-chev { border: 0; background: none; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: var(--text); border-radius: 6px; flex: none; }
.g-chev svg { width: 16px; height: 16px; }
.g-rn { font-weight: var(--fw-bold); color: var(--text); }
.g-rtitle { font-weight: var(--fw-bold) !important; color: var(--text); }
.g-outcome { color: var(--text-2) !important; font-size: 13px !important; }
.g-rmeta { display: flex; align-items: center; gap: 12px; }
.g-prog { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.g-prog i { width: 48px; height: 4px; border-radius: 2px; background: var(--hairline-strong); overflow: hidden; display: inline-block; }
.g-prog i b { display: block; height: 100%; background: var(--primary); }
.g-grip { order: 0 !important; margin: 0 !important; width: 32px !important; min-width: 32px; height: 36px !important; }
.g-c { min-width: 0; font: var(--fw-regular) 13px/18px var(--font-ui); color: var(--text); }
.g-c-title { display: flex; align-items: center; gap: 8px; }
.g-c-title .g-ie { flex: 1; font-size: 14px; }
.g-ie { display: block; width: 100%; min-height: 32px; border: 0; background: none; text-align: left; padding: 6px 6px; border-radius: 6px; font: inherit; color: inherit; cursor: text; overflow-wrap: anywhere; white-space: normal; }
.g-rt .g-ie { width: auto; max-width: 100%; }
.g-ie:hover { background: var(--hover); box-shadow: inset 0 0 0 1px var(--hairline); }
.g-ie.empty { color: var(--text-3); }
.g-ie.locked { cursor: default; }
.g-ie.locked:hover { box-shadow: none; background: none; }
.g-iein { width: 100%; min-width: 0; font: inherit; color: var(--text); background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 6px; padding: 5px 6px; resize: vertical; }
.g-iein:focus { outline: 2px solid var(--focus-ring); outline-offset: -1px; }
.g-open { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-2); white-space: nowrap; text-decoration: none; }
.g-open svg { width: 12px; height: 12px; }
.g-open:hover { color: var(--text); }
.g-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--pill-bg); border: 1px solid var(--pill-border); font: var(--fw-medium) 12px/1 var(--font-ui); color: var(--text); }
.g-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot-grey); flex: none; }
.g-pill.s-complete i, .g-pill.s-on_track i { background: var(--dot-green); }
.g-pill.s-in_progress i { background: var(--dot-blue); }
.g-pill.s-at_risk i { background: var(--dot-amber); }
.g-pill.s-off_track i { background: var(--dot-red); }
.g-pill select { appearance: none; -webkit-appearance: none; border: 0; background: none; font: inherit; color: inherit; padding: 0 2px; cursor: pointer; min-height: 28px; }
.g-pill:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.g-owners { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; min-height: 32px; padding: 2px 4px; border-radius: 6px; cursor: pointer; color: var(--text); font: inherit; max-width: 100%; }
.g-owners:hover { background: var(--hover); }
.g-av { width: 24px; height: 24px; border-radius: 50%; background: var(--initials-bg); color: var(--initials-ink); font: var(--fw-semibold) 10px/24px var(--font-ui); text-align: center; flex: none; }
.g-av.removed { background: var(--hairline-strong); color: var(--text-2); }
.g-more { font-size: 12px; color: var(--text-2); }
.g-owner-names { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: 2px; }
.g-owner-names .removed { color: var(--text-3); text-decoration: line-through; }
.g-faint { color: var(--text-3); font-size: 12px; }
.g-tagg { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--pill-bg); color: var(--text-2); font-size: 11px; }
.g-add { padding: 0 0 0 40px; border-bottom: 1px solid var(--hairline); min-height: 40px; display: flex; align-items: center; }
.g-addbtn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--text-2); font: var(--fw-medium) 13px/1 var(--font-ui); min-height: 40px; padding: 0 6px; border-radius: 6px; cursor: pointer; }
.g-addbtn svg { width: 14px; height: 14px; color: var(--accent); }
.g-addbtn:hover { color: var(--text); background: var(--hover); }
.g-addrock { padding-top: 8px; }
.g-menu { justify-self: end; }
.g-olist { display: grid; gap: 2px; max-height: 50vh; overflow: auto; }
.g-orow { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border-radius: 8px; cursor: pointer; }
.g-orow:hover { background: var(--hover); }
.g-orow.removed { color: var(--text-3); }
.g-menulist .btn { justify-content: flex-start; }
.dl-dragging { opacity: .55; outline: 2px dashed var(--hairline-strong); outline-offset: -2px; }
body.dl-active, body.dl-active * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
@media (max-width: 899px) {
  .g-prow.g-act { grid-template-columns: 32px repeat(2, minmax(0, 1fr)) 44px; grid-template-areas: "grip title title menu" ". div own ." ". when status ." ". meas meas ."; gap: 2px 8px; padding: 6px 0; }
  .g-act > :nth-child(1) { grid-area: grip; } .g-act > :nth-child(2) { grid-area: title; } .g-act > :nth-child(3) { grid-area: div; }
  .g-act > :nth-child(4) { grid-area: own; } .g-act > :nth-child(5) { grid-area: when; } .g-act > :nth-child(6) { grid-area: status; }
  .g-act > :nth-child(7) { grid-area: meas; } .g-act > :nth-child(8) { grid-area: menu; }
  .g-act .g-c[data-label]::before { content: attr(data-label); display: block; font-size: 11px; line-height: 14px; color: var(--text-3); padding-left: 6px; }
  .g-rockrow { grid-template-columns: 32px minmax(0, 1fr) 44px; grid-template-areas: "grip t menu" ". m m"; padding: 4px 0; }
  .g-rockrow > :nth-child(1) { grid-area: grip; } .g-rockrow > :nth-child(2) { grid-area: t; } .g-rockrow > :nth-child(3) { grid-area: m; } .g-rockrow > :nth-child(4) { grid-area: menu; }
  .g-rmeta { flex-wrap: wrap; gap: 8px; padding-left: 4px; }
  .g-add { padding-left: 32px; }
  .g-bar .g-chipsel { max-width: 46vw; }
}
/* strategy */
.g-strategy { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; padding-top: 18px; align-items: start; }
.g-plancard { border: 1px solid var(--hairline); border-radius: 14px; padding: 18px; display: flex; gap: 18px; background: var(--surface); min-width: 0; }
.g-plancard.side { display: block; }
.g-plancard.side p { margin: 4px 0 12px; color: var(--text); }
.g-planthumb { width: 180px; height: 120px; flex: none; border: 1px solid var(--hairline); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.g-planthumb .g-thumblogo { height: 12px; width: auto; align-self: flex-start; }
.g-planthumb b { font: var(--fw-semibold) 13px/16px var(--font-ui); color: var(--text); margin-top: auto; }
.g-planthumb i { display: block; height: 3px; width: 50px; background: var(--primary); }
.g-planinfo { min-width: 0; display: grid; gap: 6px; align-content: start; }
.g-planinfo h3 { margin: 0; font: var(--fw-bold) 20px/25px var(--font-ui); color: var(--text); overflow-wrap: anywhere; }
.g-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.btn.ghost { border-color: transparent; background: none; }
@media (max-width: 899px) { .g-strategy { grid-template-columns: minmax(0, 1fr); } .g-plancard { flex-direction: column; } .g-planthumb { width: 100%; } }
/* settings */
.g-settings { display: grid; gap: 24px; padding-top: 16px; max-width: 760px; }
.g-set h3 { margin: 0 0 4px; font: var(--fw-bold) 17px/22px var(--font-ui); color: var(--text); }
.g-set > p { margin: 0 0 10px; }
.g-setlist { list-style: none; margin: 0 0 10px; padding: 0; border-top: 1px solid var(--hairline); }
.g-setlist li { display: flex; align-items: center; gap: 8px; min-height: 48px; border-bottom: 1px solid var(--hairline); flex-wrap: wrap; padding: 4px 0; color: var(--text); overflow-wrap: anywhere; }
.g-setlist li.removed { color: var(--text-3); }
.g-setlist .grow { flex: 1; min-width: 120px; }
.g-set form .input { flex: 1; min-width: 160px; }
.g-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); min-height: 44px; }

/* ---------------- Kirby review v2 (1 Dec 2026) ---------------- */
/* Rock rows. Desktop: title and outcome on one line with an ellipsis (the full outcome is in the open panel); status, progress and owner in fixed right columns */
.g-rsub { color: var(--text-2); font-size: 13px; line-height: 18px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-rpanel { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 0 8px; padding: 6px 44px 6px 72px; border-bottom: 1px solid var(--hairline); }
.g-rpanel-k { font-size: 12px; line-height: 32px; color: var(--text-3); }
@media (min-width: 900px) {
  .g-rockrow { grid-template-columns: 32px minmax(0, 1fr) 124px 196px 150px 44px; gap: 0 12px; }
  .g-rockrow .g-rmeta { display: contents; }
  .g-rt { flex-wrap: nowrap; gap: 6px; }
  .g-rt .g-rtitle { flex: 0 1 auto; max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
  .g-rt .g-rsub { flex: 1 1 0; }
  .g-rockrow .g-pill { justify-self: start; }
  .g-rockrow .g-prog { min-width: 0; overflow: hidden; }
  .g-rockrow .g-owners { justify-self: start; min-width: 0; overflow: hidden; }
}
@media (max-width: 899px) {
  /* phone: the Rock number sits in a 24px slot and the title wraps beside it */
  .g-rt { display: grid; grid-template-columns: 32px 24px minmax(0, 1fr); align-items: start; gap: 0; }
  .g-rt .g-chev { grid-row: 1; }
  .g-rt .g-rn { grid-column: 2; line-height: 32px; }
  .g-rt .g-rtitle { grid-column: 3; padding-left: 0; }
  .g-rt .g-rsub { grid-column: 3; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding: 0 6px 0 0; margin-bottom: 4px; }
  .g-rock.open .g-rt .g-rsub { display: none; }
  .g-rpanel { grid-template-columns: minmax(0, 1fr); padding: 4px 8px 6px 56px; }
  .g-rpanel-k { line-height: 16px; }
}
/* money never breaks from its sign */
.num, .g-card-v, .g-card-s span, .g-mr > span, .g-l1, .g-l2 .num, .g-l2 > span { white-space: nowrap; }
@media (max-width: 600px) { .g-card-k { white-space: normal; } }
/* Goals settings: a 44px gear beside the bell on phones (the Settings tab moves there) */
.g-gear { display: none; width: 44px; height: 44px; min-width: 44px; align-items: center; justify-content: center; color: var(--text); }
.g-gear svg { width: 20px; height: 20px; }
.g-gear.on { color: var(--accent); }
.g-setbtns { display: inline-flex; gap: 6px; }
.g-setbtns .btn { width: 104px; justify-content: center; }
.g-setmenu { display: none; }
@media (max-width: 600px) {
  .g-tabs .g-tabs-r { display: none; }
  .g-tabs { gap: 18px; }
  .topbar:has(~ main.g-main) .g-gear { display: inline-flex; grid-column: 4; justify-self: end; }
  .topbar:has(~ main.g-main) .bell-btn { grid-column: 3; }
  .g-ck-sfx { display: none; }
  .g-step-l b { white-space: nowrap; }
  .g-setbtns { display: none; }
  .g-setmenu { display: inline-flex; width: 44px; height: 44px; }
}
@media (max-width: 359px) { .g-tabs { gap: 14px; } .g-tabs a { font-size: 14px; } }

/* ---------------- phone top bar for Goals and Not found (Mission Control has its own nav, see mission.css) ---------------- */
@media (max-width: 600px) {
  /* Kirby: the nav bar keeps only the centered wordmark (and the right-hand buttons); the page heading is the one large title */
  .topbar:has(~ main.g-main) .topbar-id > h1, .topbar:has(~ main.nf-main) .topbar-id > h1 { display: none; }
  .topbar:has(~ main.nf-main) { border-bottom-color: var(--hairline); }
  .topbar:has(~ main.nf-main) [data-test=all-projects] { visibility: hidden; }
  main.nf-main { padding: 24px 16px; }
  main.nf-main .empty { text-align: left; padding: 0; }
}

/* read-only text for the team (only admins edit Goals) */
.g-ie.ro, .g-ie.ro:hover { cursor: default; background: none; box-shadow: none; }
.g-owners.ro { cursor: default; }
.g-owners.ro:hover { background: none; }
/* ---------------- Kirby review v3 (1 Dec 2026): team view, comments, checkboxes ---------------- */
/* comments: a Rock's open panel and an action's sheet. Desktop sizes first; phone (<= 600) below */
.g-comments { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 4px 0 8px; }
.g-cmts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.g-cmts:empty { display: none; }
.g-cmt { padding: 12px 0 0; margin: 12px 0 0; border-top: 1px solid var(--hairline); }
.g-cmt:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.g-cmt-h { display: flex; align-items: center; gap: 0; min-height: 18px; }
.g-cau { font: 600 13px/18px var(--font-ui); color: var(--text); }
.g-cts { margin-left: 8px; font: 400 12px/16px var(--font-ui); color: var(--text-3); white-space: nowrap; }
.g-cdel { margin-left: auto; position: relative; border: 0; background: none; padding: 0 2px; font: 500 12px/16px var(--font-ui); color: var(--danger); cursor: pointer; }
.g-cdel::after { content: ''; position: absolute; inset: -13px -10px; } /* 44px hit area on touch, without moving the line */
.g-cdel:hover { text-decoration: underline; }
.g-cmt-t { margin: 4px 0 0; font: 400 14px/20px var(--font-ui); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.g-cform { display: flex; gap: 8px; align-items: flex-end; margin: 0; }
.g-cin { flex: 1; min-width: 0; height: 32px; min-height: 32px; resize: none; overflow-y: auto; font: 400 14px/20px var(--font-ui); color: var(--text); background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 8px; padding: 5px 12px; }
.g-cin:focus { outline: 2px solid var(--focus-ring); outline-offset: -1px; }
.g-cgo { height: 32px; min-height: 32px; padding: 0 12px; border-radius: 8px; flex: none; }
.g-cgo:disabled { opacity: .4; cursor: default; }
/* read-only panel text lines up with its label (no edit indent) */
.g-rpanel .g-ie.ro { padding-left: 0; padding-right: 0; }
/* the team's comment button on an action row (in place of ···) */
.g-cbtn { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 32px; height: 32px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font: 500 12px/16px var(--font-ui); cursor: pointer; }
.g-cbtn svg { width: 18px; height: 18px; flex: none; }
.g-cbtn:hover { background: var(--hover); color: var(--text); }
@media (max-width: 600px) {
  .g-rpanel-k { font: 500 13px/18px var(--font-ui); color: var(--text-3); }
  .g-rpanel .g-outcome { font: 400 15px/20px var(--font-ui) !important; color: var(--text) !important; }
  .g-cau { font: 600 15px/20px var(--font-ui); }
  .g-cts { font: 400 13px/18px var(--font-ui); }
  .g-cmt-h { min-height: 20px; }
  .g-cdel { font: 500 13px/18px var(--font-ui); }
  .g-cmt-t { font: 400 15px/20px var(--font-ui); }
  .g-cin { height: 44px; min-height: 44px; font: 400 17px/22px var(--font-ui); padding: 10px 12px; }
  .g-cgo { height: 44px; min-height: 44px; padding: 0 16px; font: 500 16px/21px var(--font-ui); }
  .g-cbtn { min-width: 44px; height: 44px; font-size: 13px; }
}
/* phone action comments sheet: 17/22 600 title */
.g-csheet .sheet-head h2 { font: 600 17px/22px var(--font-ui); }
/* checkboxes (owner multi-select, Mission roles sheet, Settings Group): ink accent, 20px box, 44px rows on phone */
.g-orow input[type=checkbox], .g-check input[type=checkbox] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--text); cursor: pointer; }
@media (max-width: 600px) { .g-orow, .g-check { min-height: 44px; } }
/* Mission home: the Placeholder tag sits top-right on the icon row; subtitles wrap to 2 lines */

/* Mission Control v3: FUNCTIONAL styling only (2 Dec 2026). The final look waits for John's approval of Kirby's mockups. */
