/* My Goals additions to the reference project's shared theme. */
.mg-header { margin-bottom: 1.5rem; }
.mg-header h1 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 750; margin-bottom: .3rem; }
.mg-eyebrow { color: var(--app-accent); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .35rem; }
.mg-card, .mg-metric { background: var(--app-card-bg); border: 1px solid var(--app-border); border-radius: 12px; padding: clamp(.85rem, 2vw, 1.4rem); box-shadow: 0 2px 8px #0b1f3308; min-width: 0; }
.mg-metric { display: flex; flex-direction: column; height: 100%; gap: .3rem; }
.mg-metric small { color: var(--app-text-muted); }
.mg-metric strong, .mg-number { color: var(--app-accent); font-size: clamp(1.5rem, 3vw, 2.1rem); font-variant-numeric: tabular-nums; }
.mg-dashboard-card { display: flex; flex-direction: column; gap: .6rem; height: 100%; text-decoration: none; color: var(--app-text); }
.mg-dashboard-card:hover { border-color: var(--app-accent); }
.mg-section-heading, .mg-toolbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .7rem; }
.mg-section-heading { margin-bottom: .7rem; }
.mg-item { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--app-border); }
.mg-item-info { flex: 1 1 30%; min-width: 0; overflow-wrap: anywhere; }
.mg-description { color: var(--app-text-muted); margin-top: .25rem; }
.mg-progress { flex: 0 1 160px; min-width: 100px; }
.mg-progress-bar { width: 100%; height: .65rem; display: block; appearance: none; border: 0; border-radius: 10px; overflow: hidden; background: #e3e9ef; color: var(--app-accent); margin-top: .35rem; }
.mg-progress-bar::-webkit-progress-bar { background: #e3e9ef; }
.mg-progress-bar::-webkit-progress-value { background: var(--app-accent); }
.mg-progress-bar::-moz-progress-bar { background: var(--app-accent); }
.mg-actions, .mg-quick { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.mg-quick { flex-wrap: nowrap; }
.mg-quick select { width: 5.3rem; }
.mg-main-goal { display: flex; gap: .6rem; justify-content: space-between; padding: .75rem; background: #f4f7fa; border-radius: 8px; text-decoration: none; color: var(--app-text); }
.mg-form-page { max-width: 780px; margin-inline: auto; }
.mg-login { max-width: 420px; margin: 3rem auto; }
.mg-chart { display: flex; overflow-x: auto; gap: .5rem; padding: 1rem 0; min-height: 210px; }
.mg-chart-column { flex: 1 0 56px; text-align: center; font-size: .7rem; }
.mg-chart-bars { height: 150px; display: flex; gap: 3px; align-items: end; justify-content: center; border-bottom: 1px solid var(--app-border); margin-bottom: .5rem; background: repeating-linear-gradient(to top, transparent 0, transparent 29px, #dce3e9 29px, #dce3e9 30px); }
.mg-bar { width: 15px; border-radius: 3px 3px 0 0; height: 0; }
.mg-bar-rate { background: #0d6efd; }.mg-bar-mean { background: #0e7490; }
@media (max-width: 991px) { .mg-item { flex-wrap: wrap; }.mg-item-info { flex-basis: 100%; }.mg-progress { flex: 1 1 130px; } }
@media (max-width: 575px) { .app-page { padding: 1rem .75rem 2rem; }.mg-item { display: grid; grid-template-columns: 1fr; gap: .55rem; padding: .85rem 0; }.mg-actions { width: 100%; }.mg-actions .btn, .mg-quick select { min-height: 40px; }.mg-toolbar > * { max-width: 100%; }.mg-toolbar form { width: 100%; }.mg-toolbar input { min-width: 0; }.mg-metric { padding: .7rem; }.mg-metric small { font-size: .75rem; } }
.mg-year-table { max-height: 70vh; overflow: auto; }
.mg-year-table thead th { position: sticky; top: 0; background: white; z-index: 1; min-width: 110px; }
