/* Same quiet surfaces, type hierarchy and hit areas as Home and Tasks. */
#moplano-app #page[data-page="goals"] .goals-workspace { display:grid; gap:12px; min-width:0; align-content:start; overflow-anchor:none; }
#moplano-app #page .goals-workspace :where(button:not(.task-swipe-delete):not(.task-swipe-move)),
#moplano-app :where(.goal-detail-screen,.goals-simple-form-screen) :where(button) {
  appearance:none; -webkit-appearance:none; box-sizing:border-box; margin:0; border:0; background:transparent; box-shadow:none;
  color:var(--ui-text); font:inherit; text-decoration:none; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent;
}
#moplano-app #page .goals-workspace > * { margin:0; min-width:0; }
#moplano-app #page .goals-workspace .gf-heading { display:flex; align-items:center; gap:8px; min-height:56px; padding:0 0 6px; position:relative; }
#moplano-app #page .goals-workspace .gf-heading h1 { flex:1; min-width:0; margin:0; font-size:24px; line-height:1.25; font-weight:600; letter-spacing:-.025em; }
#moplano-app #page .goals-workspace .gf-icon-button { display:grid; place-items:center; padding:0; width:44px; min-width:44px; height:44px; border-radius:12px; }
#moplano-app #page .goals-workspace .gf-icon-button svg { width:23px; height:23px; }
#moplano-app #page .goals-workspace .gf-card { padding:4px 16px; background:var(--surface-solid,#fff); border:0; border-radius:18px; box-shadow:none; }
#moplano-app #page .goals-workspace .gf-card-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:48px; }
#moplano-app #page .goals-workspace .gf-card-heading h2 { font-size:17px; line-height:1.35; font-weight:550; margin:0; }
#moplano-app #page .goals-workspace .gf-caption { color:var(--ui-muted); font-size:12px; line-height:1.5; font-variant-numeric:tabular-nums; }
#moplano-app #page .goals-workspace .gf-text-button { color:var(--ui-accent); font-size:12px; min-height:44px; padding:8px 0; text-align:left; }
#moplano-app #page .goals-workspace .gf-empty { padding:0 0 12px; color:var(--ui-muted); font-size:13px; line-height:1.55; }
#moplano-app #page .goals-workspace .gf-empty p { margin:4px 0 0; }
#moplano-app #page .goals-workspace .gf-library-panel > .gf-empty { padding-block:14px; }
#moplano-app #page .goals-workspace .gf-habit-row { display:flex; align-items:center; gap:8px; min-height:64px; padding:8px 0; box-sizing:border-box; }
#moplano-app #page .goals-workspace .gf-habit-row + .gf-habit-row { border-top:1px solid var(--ui-line); }
#moplano-app #page .goals-workspace .gf-habit-check { display:grid; place-items:center; width:44px; min-width:44px; height:44px; padding:0; color:var(--ui-muted); flex:0 0 44px; transition:color 180ms ease; }
#moplano-app #page .goals-workspace .gf-habit-check svg { width:36px; height:36px; stroke-width:1.1; }
#moplano-app #page .goals-workspace .gf-check-mark { stroke-dasharray:16; stroke-dashoffset:16; transition:stroke-dashoffset 180ms ease; }
#moplano-app #page .goals-workspace .gf-habit-check[aria-pressed="true"] { color:var(--ui-accent); }
#moplano-app #page .goals-workspace .gf-habit-check[aria-pressed="true"] .gf-check-mark { stroke-dashoffset:0; }
#moplano-app #page .goals-workspace .gf-habit-check:disabled { opacity:.45; }
#moplano-app #page .goals-workspace .gf-habit-check[aria-busy="true"] { opacity:1; }
#moplano-app #page .goals-workspace .gf-habit-open { display:flex; align-items:center; gap:8px; flex:1; min-width:0; padding:0; min-height:48px; text-align:left; }
#moplano-app #page .goals-workspace .gf-habit-open > span { flex:1; min-width:0; }
#moplano-app #page .goals-workspace .gf-habit-open b { display:block; font-weight:550; font-size:15px; line-height:1.35; overflow-wrap:anywhere; }
#moplano-app #page .goals-workspace .gf-habit-open small { display:block; margin-top:3px; color:var(--ui-muted); font-size:12px; line-height:1.5; }
#moplano-app #page .goals-workspace :is(.gf-habit-open,.gf-library-link) > svg { width:16px; height:16px; flex:0 0 16px; color:var(--ui-muted); }
#moplano-app #page .goals-workspace .gf-library-link { display:flex; align-items:center; gap:10px; width:100%; min-height:48px; padding:10px 0; font-size:14px; text-align:left; }
#moplano-app #page .goals-workspace .gf-library-link > span { flex:1; }
#moplano-app #page .goals-workspace .gf-library-link > small { color:var(--ui-muted); font-size:12px; font-variant-numeric:tabular-nums; }
#moplano-app #page .goals-workspace .gf-library-link + .gf-library-link { border-top:1px solid var(--ui-line); }
#moplano-app #page .goals-workspace .home-focus-row { display:flex; align-items:center; width:100%; gap:10px; padding:14px 0; min-height:76px; text-align:left; }
#moplano-app #page .goals-workspace .home-focus-row + :is(.home-focus-row,.gf-habit-row),
#moplano-app #page .goals-workspace .gf-habit-row + .home-focus-row { border-top:1px solid var(--ui-line); }
#moplano-app #page .goals-workspace .home-focus-leading { width:32px; min-width:32px; align-self:flex-start; margin-top:2px; }
#moplano-app #page .goals-workspace .home-focus-leading > span { display:grid; place-items:center; width:32px; height:32px; border-radius:10px; background:var(--ui-soft); color:var(--ui-accent); }
#moplano-app #page .goals-workspace .home-focus-copy { min-width:0; flex:1; }
#moplano-app #page .goals-workspace .home-focus-title { display:flex; align-items:baseline; gap:8px; }
#moplano-app #page .goals-workspace .home-focus-title b { flex:1; min-width:0; font-size:15px; font-weight:550; line-height:1.35; overflow-wrap:anywhere; }
#moplano-app #page .goals-workspace .home-focus-title > span { font-size:12px; color:var(--ui-muted); font-variant-numeric:tabular-nums; }
#moplano-app #page .goals-workspace .home-focus-copy > small { display:block; margin-top:4px; color:var(--ui-muted); font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
#moplano-app #page .goals-workspace .home-focus-progress { display:block; height:3px; margin-top:7px; background:var(--ui-line); border-radius:3px; overflow:hidden; }
#moplano-app #page .goals-workspace .home-focus-progress > span { display:block; height:100%; background:var(--ui-accent); opacity:.7; }
#moplano-app #page .goals-workspace .home-chevron { width:16px; height:16px; flex:0 0 16px; color:var(--ui-muted); }
#moplano-app #page .goals-workspace .gf-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; padding:3px; border-radius:12px; background:var(--ui-soft); }
#moplano-app #page .goals-workspace .gf-tabs button { display:flex; justify-content:center; align-items:center; gap:5px; min-width:0; min-height:40px; padding:4px; color:var(--ui-muted); font-size:12px; border-radius:9px; }
#moplano-app #page .goals-workspace .gf-tabs button[aria-selected="true"] { background:#fff; color:var(--ui-accent); font-weight:550; }
#moplano-app #page .goals-workspace .gf-tabs small { font-size:10px; font-weight:400; font-variant-numeric:tabular-nums; }
#moplano-app #page .goals-workspace .gf-menu-anchor { position:relative; }
#moplano-app #page .goals-workspace .gf-menu { position:absolute; right:0; top:46px; width:210px; padding:4px 12px; z-index:10; border-radius:14px; background:#fff; box-shadow:0 6px 24px #26382f14; border:1px solid var(--ui-line); }
#moplano-app #page .goals-workspace .gf-menu button { display:block; width:100%; min-height:44px; padding:8px 0; text-align:left; font-size:13px; }
#moplano-app #page .goals-workspace .gf-menu button + button { border-top:1px solid var(--ui-line); }
#moplano-app #page .goals-workspace .gf-state { padding:16px; font-size:13px; color:var(--ui-muted); }
#moplano-app #page .goals-workspace .gf-state button { min-height:44px; color:var(--ui-accent); }
#moplano-app :is(.goals-workspace,.goal-detail-screen,.goals-simple-form-screen) button:focus:not(:focus-visible) { outline:none; }
#moplano-app :is(.goals-workspace,.goal-detail-screen,.goals-simple-form-screen) button:focus-visible { outline:2px solid var(--ui-accent); outline-offset:3px; }
#moplano-app :is(.goals-workspace,.goals-simple-form-screen) [hidden] { display:none !important; }
/* Detail and editor share the same quiet depth transition as Tasks. */
#moplano-app .goal-detail-screen { transform:none !important; transition:none !important; opacity:1; background:var(--bg,#f6f3ed); }
#moplano-app .goal-detail-screen .goal-detail-panel { transform:none; transition:none; background:var(--bg,#f6f3ed); }
#moplano-app .goal-detail-screen .goal-detail-scroll { padding:12px 16px calc(24px + env(safe-area-inset-bottom,0px)); overflow-anchor:none; }
#moplano-app .goal-detail-screen .goal-detail-hero { padding:16px; border:0; border-radius:18px; background:#fff; box-shadow:none; }
#moplano-app .goal-detail-screen .goal-detail-hero h1 { font-size:24px !important; font-weight:550 !important; line-height:1.25 !important; letter-spacing:-.02em !important; overflow-wrap:anywhere; }
#moplano-app .goal-detail-screen :is(.goals-simple-detail-card,.hierarchy-card,.goal-daily-history) { border:0; border-radius:18px; background:#fff; box-shadow:none; }
#moplano-app .goal-detail-screen .gf-next-step { width:100%; box-sizing:border-box; text-align:left; display:grid; gap:5px; padding:16px; margin:12px 0; background:#fff; border-radius:18px; }
#moplano-app .goal-detail-screen .gf-next-step span { font-size:12px; color:var(--ui-muted); }
#moplano-app .goal-detail-screen .gf-next-step b { font-size:15px; font-weight:550; line-height:1.4; overflow-wrap:anywhere; }
#moplano-app .goal-detail-screen .gf-defer-section { padding:4px 16px 12px; }
#moplano-app .goal-detail-screen .gf-defer-section button { padding:8px 0; min-height:44px; color:var(--ui-accent); font-size:13px; }
#moplano-app .goal-detail-screen .gf-defer-section p { margin:0; font-size:12px; color:var(--ui-muted); line-height:1.5; }
#moplano-app .goal-detail-screen .goals-simple-primary-action { border-radius:12px; min-height:44px; padding:12px 16px; background:var(--ui-soft); color:var(--ui-accent); font-size:14px; }
#moplano-app .goals-simple-form-screen :is(.goals-simple-card,.hierarchy-card) { border:0; border-radius:18px; box-shadow:none; }
#moplano-app .goals-simple-form-screen .goals-simple-row-field { min-height:48px; }
#moplano-app .goals-simple-form-screen .goals-simple-types { margin-bottom:12px; }
#moplano-app .goals-simple-form-screen .goals-simple-more { margin-top:12px; }
@media(max-width:360px) { #moplano-app #page .goals-workspace .gf-card { padding-inline:14px; } #moplano-app #page .goals-workspace .gf-card-heading { flex-wrap:wrap; gap:0 8px; padding:6px 0; } }
@media(prefers-reduced-motion:reduce) { #moplano-app #page .goals-workspace :is(.gf-habit-check,.gf-check-mark) { transition:none; } }
