/* Measurements use the journal's existing cards, icons, type and surface tokens. */
.growth-journal-tracker .growth-overlay-body {padding:14px 16px 22px;}
.growth-journal-tracker [role="tabpanel"][hidden] {display:none!important;}
.growth-measurement-journal {min-width:0;}
.growth-journal-date {margin:18px 2px 10px;font-size:13px;font-weight:500;line-height:1.4;color:var(--text-muted);}
.growth-journal-date:first-child {margin-top:10px;}
.growth-journal-row {width:100%;font:inherit;text-align:left;align-items:center;min-height:74px;margin-bottom:10px;}
.growth-journal-row .journal-icon,.growth-metric-choice .journal-icon {width:42px;height:42px;}
.growth-journal-row .journal-icon svg,.growth-metric-choice .journal-icon svg,.growth-chart-title .journal-icon svg {width:24px;height:24px;}
.growth-journal-row .journal-label {font-size:15px;line-height:1.4;}
.growth-journal-row .journal-subline {font-size:14px;line-height:1.45;margin-top:3px;font-variant-numeric:tabular-nums;}
.growth-journal-row:focus-visible,.growth-journal-filters button:focus-visible,.growth-nav button:focus-visible,.growth-metric-choice:focus-visible {outline:2px solid var(--primary);outline-offset:3px;}
.growth-history-more {margin:6px 0 0;}
.growth-journal-empty {display:flex;flex-direction:column;align-items:center;text-align:center;padding:28px 20px;margin:16px 0;}
.growth-journal-empty .journal-icon {width:48px;height:48px;margin-bottom:14px;}
.growth-journal-empty h2 {font-size:17px;line-height:1.4;margin:0 0 6px;}
.growth-journal-empty p {font-size:14px;line-height:1.5;color:var(--text-muted);margin:0;}
.growth-journal-empty button {margin-top:16px;}
.growth-journal-tracker .growth-history-load-error {padding:10px 14px;margin:6px 0 12px;}
.growth-journal-tracker .growth-overlay-cta {flex-shrink:0;padding:10px 16px;background:var(--bg);}
.growth-overlay-cta .app-confirm-btn {display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;width:100%;box-shadow:none;}
.growth-journal-tracker .growth-nav {position:relative;flex-shrink:0;display:grid;grid-template-columns:1fr 2fr;align-items:stretch;padding:8px 16px calc(env(safe-area-inset-bottom) + 8px);box-sizing:border-box;}
.growth-bottom-tabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
.growth-journal-tracker .growth-nav-back,.growth-nav-tab {min-height:52px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 4px;border:0;border-radius:10px;background:transparent;color:var(--text-muted);font:inherit;font-size:10px;font-weight:500;line-height:1.25;cursor:pointer;}
.growth-nav-tab.active {background:var(--primary-soft);color:var(--primary);}
.growth-nav-tab svg {width:22px;height:22px;flex-shrink:0;}
.growth-journal-tracker .growth-chart-toolbar {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end;margin:0 0 16px;}
.growth-journal-tracker .growth-chart-toolbar::after {display:none;}
.growth-chart-period-field {display:flex;flex-direction:column;gap:6px;min-width:0;}
.growth-chart-period-field > span {font-size:12px;color:var(--text-muted);padding-left:2px;}
.growth-chart-period-field .custom-select {width:100%;min-width:0;}
.growth-chart-toolbar .custom-select-btn {min-height:46px;padding:11px 12px;font-size:13px;background:var(--input-bg);}
.growth-chart-toolbar .custom-select-btn:focus-visible {outline:2px solid var(--primary);outline-offset:2px;}
.growth-chart-toolbar .custom-select-menu {max-height:min(240px,45dvh);overflow-y:auto;overscroll-behavior:contain;}
.growth-chart-toolbar .custom-select.drop-up .custom-select-menu {top:auto;bottom:calc(100% + 4px);}
.growth-chart-toolbar .custom-select-menu[hidden] {display:none;}
.growth-chart-toolbar .custom-select-item {min-height:44px;}
.growth-chart-toolbar .custom-select-item:focus-visible {outline:2px solid var(--primary);outline-offset:-3px;background:var(--primary-soft);}
.growth-chart-title {display:flex;align-items:center;gap:10px;min-width:0;}
.growth-chart-title .journal-icon {width:34px;height:34px;flex-shrink:0;}
.growth-journal-tracker .growth-chart-card {padding:16px 10px 6px;}
.growth-journal-tracker .growth-chart-card > header {align-items:center;padding:0 6px 10px;gap:8px;}
.growth-journal-tracker .growth-chart-card h2 {font-size:14px;line-height:1.35;}
.growth-journal-tracker .growth-chart-summary {font-size:17px;}
.growth-journal-tracker .growth-chart-card canvas {height:264px;}
.growth-metric-choices {display:grid;gap:10px;}
.growth-metric-choice {width:100%;min-height:68px;text-align:left;font:inherit;align-items:center;background:var(--input-bg);box-shadow:none;}
.growth-single-form {display:grid;gap:18px;padding-bottom:max(8px,env(safe-area-inset-bottom));}
.growth-pending-values {display:grid;gap:12px;}
.growth-pending-values > div {display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 14px;font-size:14px;}
.growth-pending-values > div > span,#growthPendingBatchView > time {font-size:13px;color:var(--text-muted);}
.growth-edit-single {grid-template-columns:minmax(0,1fr);}
.growth-shared-date {display:block;line-height:1.5;}
.growth-edit-field .growth-edit-date-note {font-size:12px;font-weight:400;}
#sheet[data-sheet-kind="growth"] .growth-edit-form {gap:18px;}
#sheet[data-sheet-kind="growth"] .field-input {font-size:16px;}
#sheet[data-sheet-kind="growth"] .growth-edit-field {gap:8px;}
#sheet[data-sheet-kind="growth"] .growth-edit-field > span {font-size:13px;}
@media(max-width:480px) {
  .growth-journal-tracker .growth-chart-toolbar {gap:10px;}
  .growth-chart-toolbar .custom-select-btn,.growth-chart-toolbar .custom-select-item {padding-inline:10px;font-size:12px;}
}
@media(max-width:360px) {
  .growth-journal-tracker .growth-overlay-body {padding-right:12px;padding-left:12px;}
  .growth-journal-tracker .growth-overlay-cta {padding-right:12px;padding-left:12px;}
  .growth-journal-tracker .growth-chart-card h2 {font-size:13px;}
  .growth-journal-tracker .growth-chart-summary {font-size:16px;}
  .growth-chart-title {gap:7px;}
  .growth-chart-title .journal-icon {width:30px;height:30px;}
}
@media(min-width:768px) {.growth-journal-tracker .growth-chart-card canvas {height:300px;}}
@media(prefers-reduced-motion:reduce) {.growth-journal-tracker {transition:none;}}
