/* R7.7b W7b: goal edit (ob-goal-edit.js, window.obGoalEdit). Tokens only (design-system.css --ob3-*); no hex.
   Boards (v3.11, approved): GoalEditPhone and GoalEditMilestonesPhone (476 x 752, Paper and Graphite). Shared surfaces
   (the page, the bar, fields, the segmented control, the sheet) live in ob-goal-kit.css. Taps are 44 px or more. */

.obge-hint { font-size: var(--ob3-text-body-sm); line-height: var(--ob3-leading-body-sm); color: var(--ob3-muted); overflow-wrap: anywhere; }
.obge-hint.is-amber { color: var(--ob3-attention); }

/* Area: a native select with the chevron laid over it. */
.obge-select { position: relative; }
body .obk select.obge-sel { appearance: none; -webkit-appearance: none; padding-right: 44px !important; cursor: pointer; }
.obge-select > svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ob3-muted); pointer-events: none; }

/* Milestones: numbered cards, each a field with a 44 px remove. */
.obge-ms { display: flex; flex-direction: column; gap: var(--ob3-space-2); }
.obge-m { display: flex; align-items: center; gap: var(--ob3-space-2); min-height: 52px; padding: 4px 4px 4px 14px; background: var(--ob3-surface); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-card); }
.obge-mn { flex: 0 0 auto; width: 14px; font-size: var(--ob3-text-body-sm); font-weight: var(--ob3-weight-semibold); color: var(--ob3-muted); }
body .obk textarea.obge-mi { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 10px 6px !important; border: 0 !important; background: transparent !important; overflow: hidden; }
body .obk textarea.obge-mi:focus { border: 0 !important; outline: var(--ob3-focus-width) solid var(--ob3-focus) !important; outline-offset: -2px; }
.obge-mt { flex: 1 1 auto; min-width: 0; padding: 10px 6px; font-size: var(--ob3-text-body); line-height: 21px; overflow-wrap: anywhere; }
.obge-mauto { flex: 0 0 auto; max-width: 40%; padding-right: 12px; font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); text-align: right; }
body .obk .obge-x { flex: 0 0 auto; width: 44px; height: 44px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; background: transparent !important; border: 0 !important; border-radius: var(--ob3-radius-full) !important; color: var(--ob3-muted) !important; cursor: pointer; }
body .obk .obge-x:hover { background: var(--ob3-sunk) !important; color: var(--ob3-ink) !important; }
body .obk .obge-add { align-self: flex-start; min-height: 44px; padding: 0 6px !important; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: var(--ob3-text-body); font-weight: var(--ob3-weight-bold); background: transparent !important; border: 0 !important; color: var(--ob3-accent-text) !important; cursor: pointer; border-radius: var(--ob3-radius-full) !important; }
body .obk .obge-add[aria-disabled="true"] { color: var(--ob3-muted) !important; cursor: default; }

.obge-letgorow { display: flex; align-items: center; gap: var(--ob3-space-3); margin-top: var(--ob3-space-1); }
body .obk .obge-letgo { width: auto; min-width: 0; max-width: none; flex: 0 0 auto; padding: 0 16px !important; }
.obge-letgo-note { font-size: var(--ob3-text-body-sm); line-height: var(--ob3-leading-body-sm); color: var(--ob3-muted); }
