/* Shared working surface for the public view, Windows and Android. */
:root {
  --ink: #15263f;
  --muted: #526981;
  --green: #184da6;
  --green-2: #2865ce;
  --blue-3: #357bf0;
  --lime: #8ed5ff;
  --paper: #f2f5fa;
  --line: #e0e7f1;
  --shadow-sm: 0 4px 20px #132f5510;
  --shadow-hover: 0 10px 30px #132f551a;
  --radius-lg: 22px;
  --safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  font-family: "Segoe UI Variable", "Segoe UI", Inter, Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
}
body { font-size: 16px; line-height: 1.55; }
html { scroll-behavior: auto; scrollbar-gutter: stable; }
.app-body, .share-body { overflow-anchor: none; }
html.modal-scroll-locked, html:has(dialog[open]),
html.modal-scroll-locked body, body:has(dialog[open]) { overflow: hidden !important; overscroll-behavior: none; }
dialog { overscroll-behavior: contain; }
.app-body, .share-body { background: #f2f5fa; }
.share-main { width: min(1320px, calc(100% - 72px)); padding-top: 40px; }
.brand { letter-spacing: .045em; font-size: 16px; }
.label, .eyebrow { font-size: 14px; letter-spacing: .015em; text-transform: none; font-weight: 650; }
.share-title { gap: 24px; }
.share-title h1, .section-heading h2, .modal-header h2, .share-copy h2, .workspace-empty h2,
.shared-target-card > strong, .profile-editor-heading strong { font-family: inherit; font-weight: 700; letter-spacing: -.035em; }
.share-title h1 { font-size: clamp(32px, 3.1vw, 46px); line-height: 1.16; margin-top: 8px; overflow-wrap: anywhere; }
.shared-date span, .shared-date strong { font-size: 14px; line-height: 1.6; letter-spacing: 0; text-transform: none; }
.shared-date { flex-shrink: 0; }
.share-header { max-width: none; padding-inline: max(36px, calc((100vw - 1320px)/2)); background: #ffffffdf; height: 88px; backdrop-filter: blur(20px); }
.readonly-badge { font-size: 13px; padding: 9px 14px; border-color: var(--line); background: #f6f9ff; }
.sidebar { width: 220px; padding: calc(32px + var(--safe-top)) 18px 32px; background: #112640; border: 0; box-shadow: none; }
.desktop-sidebar .brand { color: #f1f7ff; padding: 0 12px; font-size: 14px; }
.side-nav { gap: 12px; margin-top: 64px; }
.side-link { gap: 14px; min-height: 58px; border-radius: 15px; color: #b5cae4; font-size: 17px; font-weight: 600; }
.side-link.active, .side-link:hover { color: #fff; background: #254b79; box-shadow: none; }
.side-link.active::before, .side-link::after { display: none; }
.side-link.active { background: #2e68c9; box-shadow: 0 6px 20px #00152a35; }
.nav-icon { width: 23px; height: 23px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.app-shell, .unified-app-body .app-shell { margin-left: 220px; }
.app-share-header { padding: calc(18px + var(--safe-top)) 36px 18px; height: auto; min-height: calc(88px + var(--safe-top)); backdrop-filter: blur(20px); background: #ffffffdf; }
.header-actions { width: 100%; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.app-storage-chip { margin-right: auto; border: 0; }
.app-storage-chip strong { font-size: 14px; }
.app-storage-chip small { font-size: 13px; }
.button { border-radius: 14px; min-height: 50px; font-size: 16px; font-weight: 650; }
.button.compact { min-height: 48px; padding-inline: 18px; font-size: 15px; }
.button-primary, .button-accent { background: linear-gradient(120deg, #2762cb, #347ce4); color: #fff; border-color: #2762cb; box-shadow: 0 4px 10px #235cc51a, inset 0 1px 0 #ffffff24; }
.button-primary:hover, .button-accent:hover { background: #1b52ae; border-color: #1b52ae; }
.button-ghost { background: #fff; border-color: #d7e1ee; }
.profile-menu-button { border-radius: 14px; min-height: 48px; padding-inline: 16px; box-shadow: none; max-width: 230px; }
.profile-menu-button span { font-size: 13px; letter-spacing: .02em; }
.profile-menu-button strong { font-size: 15px; }
.share-overview { grid-template-columns: minmax(0,1.05fr) minmax(0,1.1fr) minmax(0,.85fr); gap: 16px; margin-top: 28px; }
.shared-weight-card, .shared-progress-card, .shared-target-card { min-height: 248px; border-radius: 24px; padding: 30px; min-width: 0; }
.shared-weight-card { background: linear-gradient(125deg, #174481, #2566bd); box-shadow: 0 10px 28px #1f529d28; }
.shared-weight-card::after { width: 220px; height: 220px; right: -110px; bottom: -130px; }
.shared-weight-card .label { color: #c8e3ff; }
.shared-weight { margin: 19px 0 22px; }
.shared-weight strong { font-size: clamp(62px,5.3vw,82px); letter-spacing: -.065em; font-weight: 700; line-height: 1; }
.shared-weight span { font-size: 25px; color: #d4e8ff; }
.trend-pill { font-size: 14px; font-weight: 550; padding: 7px 12px; border-radius: 10px; }
.trend-pill.dark { background: #ffffff18; color: #e2f2ff; border: 1px solid #ffffff12; }
.shared-progress-card { gap: 14px; }
.shared-progress-copy { min-width: 0; }
.shared-progress-copy > strong { font-size: clamp(27px,2.5vw,34px); line-height: 1.2; letter-spacing: -.035em; }
.shared-progress-copy p { font-size: 15px; line-height: 1.65; margin-top: 12px; }
.shared-ring { width: 104px; height: 104px; }
.shared-ring span { font-size: 22px; letter-spacing: -.03em; }
.shared-target-card > strong { font-size: 28px; line-height: 1.25; }
.shared-target-card p, .shared-target-card small { font-size: 14px; }
.weight-chain-card { min-height: 88px; border-radius: 18px; padding: 18px 26px; grid-template-columns: 170px 1fr auto; background: #e9f1fd; border-color: #d7e5f7; box-shadow: none; }
.weight-chain-card > div { flex-direction: row; align-items: center; gap: 15px; }
.weight-chain-card .label { color: #38629b; }
.weight-chain-card strong { font-size: 16px; white-space: nowrap; }
.weight-chain-card strong b { font-size: 34px; letter-spacing: -.05em; margin-right: 4px; color: #235caf; }
.weight-chain-card p { font-size: 15px; font-weight: 500; }
.weight-chain-card small { font-size: 14px; white-space: nowrap; }
.shared-chart-card { padding: 30px 32px 22px; border-radius: 24px; margin-top: 24px; }
.section-heading .label { font-size: 14px; }
.share-chart-meta strong { font-size: 14px; }
.share-chart-meta span { font-size: 12px; }
.chart-footer { flex-wrap: wrap; gap: 12px 24px; font-size: 14px; border-color: var(--line); }
.chart-axis-label { font-size: 11px; }
.shared-stats { border-radius: 20px; }
.shared-stats div { padding: 23px; min-height: 130px; gap: 7px; }
.shared-stats span { font-size: 15px; }
.shared-stats strong { font-size: clamp(25px,2.3vw,34px); letter-spacing: -.045em; line-height: 1.2; color: #193e6a; }
.shared-stats small { font-size: 13px; }
.history-card { border-radius: 24px; padding: 30px 32px; margin-top: 24px; }
.section-heading h2 { font-size: 30px; }
.history-limit-hint, .weight-details-hint, .history-empty { font-size: 14px; }
.history-row { min-height: 88px; padding-block: 18px; }
.history-weight { font-size: 24px; letter-spacing: -.03em; }
.history-date strong { font-size: 16px; font-weight: 600; }
.history-date span, .history-note { font-size: 14px; }
.history-actions { gap: 6px; }
.entry-count { font-size: 14px; padding: 8px 13px; background: #eef3fa; color: #456181; border: 1px solid #e0e8f3; }
.edit-entry, .delete-entry { border-radius: 12px; width: 46px; height: 46px; font-size: 19px; }
.details-button, .step-goal-edit { border-radius: 12px; min-height: 46px; padding-inline: 16px; font-size: 15px; font-weight: 600; background: #f6f9fe; color: #245ba9; box-shadow: none; }
.workspace-tabs { width: fit-content; border-radius: 17px; padding: 5px; gap: 6px; background: #e8eef6; border: 1px solid #dce5ef; box-shadow: none; }
.workspace-tabs button { min-height: 48px; min-width: 138px; padding-inline: 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; border-radius: 12px; }
.workspace-tabs button.active { background: #fff; color: #225ab7; box-shadow: 0 2px 8px #26496a13; }
.workspace-empty { min-height: 430px; border-style: dashed; box-shadow: none; background: #f9fbfe; }
.workspace-empty p { font-size: 15px; }
.activity-card { padding: 32px; border-radius: 20px; grid-template-columns: minmax(260px,.85fr) minmax(0,1.3fr); gap: 32px; }
.activity-copy { gap: 14px; padding-right: 30px; }
.step-count strong { font-size: clamp(56px,6vw,76px); }
.step-goal-copy { flex-wrap: wrap; }
.step-goal-copy span, .step-goal-copy strong, .activity-copy p { font-size: 15px; line-height: 1.6; }
.step-goal-status, .step-privacy { font-size: 14px; line-height: 1.6; }
.step-goal-track { height: 12px; background: #dfe9f7; box-shadow: none; }
.step-goal-track i { background: linear-gradient(90deg, #3475db, #68c2ef); }
.step-week-heading span { font-size: 15px; }
.step-week-heading strong { font-size: 29px; letter-spacing: -.035em; line-height: 1.3; margin-top: 8px; }
.step-bars { min-height: 235px; gap: 12px; margin-top: 30px; }
.step-bar-item { height: 210px; gap: 12px; }
.step-bar-track { width: min(48px,75%); border-radius: 10px 10px 4px 4px; }
.step-bar-item span { font-size: 13px; }
.step-bar-fill { background: linear-gradient(#78bbff,#2865ce); }
.steps-help { font-size: 13px; color: var(--muted); }
.steps-help summary { cursor: pointer; padding: 10px 0; color: var(--green); font-weight: 600; }
.steps-help p { font-size: 13px; margin: 5px 0 10px; }
.import-toolbar { margin-top: 24px; padding: 20px; border-radius: 14px; border: 1px dashed #b8cee9; background: #f4f8ff; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.import-toolbar > div:first-child { flex: 1 1 220px; display: grid; gap: 5px; }
.import-toolbar strong { font-size: 15px; }
.import-toolbar span { font-size: 13px; color: var(--muted); max-width: 400px; }
.import-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.import-content { padding: 30px; }
.import-modal { width: min(720px,calc(100% - 32px)); }
.import-destination { display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.import-destination span, .import-preview-count { font-size: 14px; color: var(--muted); }
.import-table-wrap { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.import-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.import-table th { position: sticky; top: 0; background: #edf3fc; text-align: left; }
.import-table td, .import-table th { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.import-table td:last-child, .import-table th:last-child { text-align: right; }
.import-replace { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; margin-top: 20px; }
.import-replace input { margin-top: 4px; width: 19px; height: 19px; accent-color: #2563cb; flex-shrink: 0; }
.import-replace small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.import-issues { font-size: 13px; color: var(--red); max-height: 160px; overflow: auto; padding-left: 20px; }
.import-issues:empty { display: none; }
.import-summary { background: #eaf2ff; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.import-summary:empty { display: none; }
.modal { border-radius: 22px; box-shadow: 0 30px 100px #102a4750; max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 32px); margin-top: calc(var(--safe-top) + 16px); margin-bottom: calc(var(--safe-bottom) + 16px); }
.modal::backdrop { background: #0e213a70; backdrop-filter: blur(6px); }
.modal-header h2, .share-copy h2 { font-size: 30px; line-height: 1.2; }
.modal-header p { font-size: 15px; }
.close-button { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: #f1f5fb; }
.field > span { font-size: 15px; color: #415b77; }
.field input { font-size: 17px; min-height: 54px; border-radius: 12px; }
.weight-field input { font-size: 42px; min-height: 88px; }
.profile-list-copy strong { font-size: 16px; }
.profile-list-copy small, .add-profile-button { font-size: 14px; }
.profile-list-item { min-height: 70px; border-radius: 14px; }
.profile-list-avatar { width: 38px; height: 38px; font-size: 15px; }
.profile-editor-heading strong { font-size: 23px; }
.native-update-panel small, .reminder-time-field span, .danger-link, .form-error, .share-hint { font-size: 14px; }
.native-update-panel strong, .reminder-time-field input { font-size: 16px; }
.native-reminder-panel { flex-direction: column; align-items: stretch; }
.native-update-panel > .reminder-settings { flex-direction: row; justify-content: flex-start; align-items: flex-end; }
.share-copy p { font-size: 15px; }
.copy-field input, .copy-field button { font-size: 13px; }
.step-period-toolbar label span, .step-week-rail > span { font-size: 13px; text-transform: none; letter-spacing: .02em; }
.step-period-toolbar select { font-size: 15px; min-height: 46px; }
.step-month-arrow { height: 46px; }
.step-week-button strong { font-size: 14px; }
.step-week-button span { font-size: 12px; }
.step-month-summary span { font-size: 13px; }
.step-selected-week-heading span, .step-selected-week-heading small { font-size: 12px; }
.step-calendar-weekdays span, .step-calendar-cell span { font-size: 12px; }
.step-calendar-cell i { font-size: 12px; }
.step-calendar-cell strong { font-size: 14px; }
.toast { font-size: 15px; border-radius: 14px; background: #173555; color: #fff; }
.share-page-footer { font-size: 14px; color: var(--muted); }
.button:disabled { cursor: default; }

@media (hover:hover) and (pointer:fine) {
  .desktop-sidebar .brand:hover { color: #c7e7ff; letter-spacing: .065em; }
  .shared-chart-card:hover, .history-card:hover, .activity-card:hover, .shared-stats:hover, .weight-chain-card:hover { transform: none; }
  .side-link:hover { transform: none; }
}
@media (max-width:1250px) and (min-width:781px) {
  .share-overview { grid-template-columns: 1fr 1fr; }
  .shared-target-card { grid-column: 1/-1; min-height: 150px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4px 20px; }
  .shared-target-card > strong { margin: 0; grid-column: 1; }
  .shared-target-card p { grid-row: 1/3; grid-column: 2; text-align: right; }
  .shared-target-card small { grid-column: 1/-1; margin: 0; }
  .activity-card { grid-template-columns: 1fr; }
  .activity-copy { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 25px; }
  .weight-chain-card { grid-template-columns: 150px 1fr; gap: 10px 15px; }
  .weight-chain-card small { grid-column: 2; }
  .shared-stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:980px) and (min-width:781px) {
  .sidebar { width: 184px; padding-inline: 12px; }
  .desktop-sidebar .brand { font-size: 12px; }
  .app-shell, .unified-app-body .app-shell { margin-left: 184px; }
  .share-main { width: calc(100% - 36px); }
  .app-share-header { padding-inline: 18px; }
  .shared-progress-card { padding: 22px; }
  .shared-ring { width: 76px; height: 76px; }
  .shared-progress-copy > strong { font-size: 23px; }
}
@media (max-width:780px) {
  .app-shell, .unified-app-body .app-shell { margin-left: 0; }
  .share-main { width: calc(100% - 32px); padding-top: 28px; }
  .share-header { padding-inline: 18px; }
  .share-header .brand { font-size: 13px; }
  .app-share-header { padding: calc(18px + var(--safe-top)) 16px 16px; min-height: calc(88px + var(--safe-top)); box-shadow: 0 4px 16px #132f550b; }
  .app-share-header > .brand { max-width: none; font-size: 12px; letter-spacing: .04em; }
  .app-share-header .header-actions { width: auto; margin-left: 10px; }
  .profile-menu-button { min-height: 50px; max-width: 180px; gap: 7px; padding-inline: 12px; }
  .profile-menu-button span { font-size: 12px; }
  .profile-menu-button strong { font-size: 13px; max-width: 70px; }
  .share-title h1 { font-size: 29px; line-height: 1.2; }
  .share-title { flex-direction: column; gap: 14px; }
  .shared-date { text-align: left; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 7px 12px; }
  .shared-date span { font-size: 12px; text-transform: none; letter-spacing: 0; }
  .share-overview { grid-template-columns: 1fr; margin-top: 22px; gap: 12px; }
  .shared-weight-card { min-height: 220px; }
  .shared-weight strong { font-size: 62px; }
  .shared-progress-card, .shared-target-card { min-height: 180px; }
  .shared-target-card { grid-column: auto; }
  .shared-progress-copy > strong { font-size: 28px; }
  .shared-ring { width: 100px; height: 100px; }
  .weight-chain-card { grid-template-columns: 1fr auto; gap: 12px; padding: 20px; }
  .weight-chain-card p { grid-column: 1/-1; grid-row: 2; }
  .weight-chain-card small { white-space: normal; }
  .shared-chart-card { padding: 22px 16px 16px; }
  .chart-footer { column-gap: 12px; }
  .chart-footer .last-updated { width: 100%; margin-left: 0; }
  .shared-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .shared-stats div { padding: 20px 16px; min-height: 138px; }
  .shared-stats div:nth-child(2) { border-top: 0; }
  .shared-stats div:nth-child(even) { border-left: 1px solid var(--line); }
  .shared-stats strong { font-size: 23px; overflow-wrap: anywhere; }
  .shared-stats span { font-size: 13px; }
  .history-card, .activity-card { padding: 22px 18px; }
  .history-heading-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
  .history-row { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
  .history-weight { font-size: 19px; white-space: nowrap; }
  .history-date strong { font-size: 14px; }
  .history-note { display: none; }
  .activity-card { grid-template-columns: 1fr; }
  .activity-copy { padding-right: 0; }
  .step-week-heading { flex-wrap: wrap; gap: 12px; }
  .step-week-heading strong { font-size: 23px; }
  .step-bars { gap: 7px; }
  .mobile-nav { height: calc(82px + var(--safe-bottom)); padding: 8px 8px calc(8px + var(--safe-bottom)); grid-template-columns: 1fr 1fr 62px 1fr 1fr; background: #ffffffef; }
  .mobile-nav button { font-size: 12px; gap: 6px; min-height: 56px; }
  .mobile-nav .nav-icon { width: 23px; height: 23px; }
  .mobile-nav > button:nth-child(3) { margin-top: 0; width: 50px; height: 50px; min-height: 50px; border: 0; border-radius: 16px; background: #2563cb; color: #fff; }
  .mobile-nav [data-app-tab].active { background: #eaf2ff; color: #205fc3; }
  .unified-app-body .share-main { padding-bottom: calc(112px + var(--safe-bottom)); }
  .toast { bottom: calc(96px + var(--safe-bottom)); }
  .modal { max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 32px); margin-top: calc(var(--safe-top) + 16px); margin-bottom: calc(var(--safe-bottom) + 16px); }
  .profile-manager { grid-template-columns: 1fr; }
  .profile-list { max-height: 150px; }
  .profile-list-pane { min-height: 0; }
  .step-history-layout { grid-template-columns: 62px minmax(0,1fr); gap: 7px; }
  .step-week-rail { padding: 6px 2px; }
  .step-week-button { padding: 8px 3px; }
  .step-week-button span { font-size: 10px; }
  .step-calendar-cell { padding: 7px 2px; min-height: 75px; }
  .step-calendar-cell strong { font-size: 12px; }
  .step-calendar-cell i { font-size: 10px; }
  .step-calendar-weekdays span { font-size: 10px; }
  .step-period-toolbar { grid-template-columns: 36px minmax(0,1fr) 86px 36px; gap: 6px; }
  .step-period-toolbar select { padding-inline: 7px; font-size: 14px; }
  .step-month-arrow { width: 36px; }
  .step-month-summary { grid-template-columns: 1fr; }
  .step-month-summary > div { min-height: 58px; padding: 12px; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
  .step-month-summary > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width:390px) {
  .app-share-header { flex-wrap: wrap; gap: 10px; }
  .app-share-header > .brand { font-size: 11px; }
  .profile-menu-button strong { display: none; }
  .profile-menu-button { min-width: 96px; }
  .history-row { grid-template-columns: minmax(0,1fr) auto; padding-block: 12px; }
  .history-actions { grid-column: 2; grid-row: 1/3; }
  .history-weight { grid-column: 1; }
  .weight-chain-card { grid-template-columns: 1fr; }
  .weight-chain-card p { grid-row: auto; }
  .shared-ring { width: 84px; height: 84px; }
  .step-details-content { padding-inline: 10px; }
}

/* Activity studio — shared charts, date controls and clear editing surfaces. */
.modal { margin-block: auto; inset-block: var(--safe-top) var(--safe-bottom); }
.app-body, .share-body { background: #f5f7fa; }
.share-main { padding-bottom: 60px; }
.share-title .eyebrow { color: #5474a1; }
.share-title h1 { letter-spacing: -.045em; }
.sidebar { background: #fff; border-right: 1px solid #e2e7ef; }
.side-nav { gap: 12px; }
.side-link.active { background: #eaf0ff; color: #2457d6; box-shadow: none; }
.shared-weight-card { isolation: isolate; background: #142c4b; }
.shared-weight-card::before { content: ""; position: absolute; left: 30px; top: 0; width: 56px; height: 3px; background: #7ca8ff; pointer-events: none; }
.shared-progress-card, .shared-target-card { border-color: #dce5f2; box-shadow: 0 4px 20px #233f6410; }
.shared-ring { box-shadow: 0 0 0 7px #f2f6ff; }
.weight-chain-card { background: #edf2fc; }
.shared-chart-card, .history-card, .activity-card { border: 1px solid #dce5f2; box-shadow: 0 8px 36px #243d6709; }
.shared-stats { margin-top: 18px; gap: 14px; border: 0; border-radius: 0; background: transparent; overflow: visible; box-shadow: none; }
.shared-stats > div { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; min-height: 144px; box-shadow: var(--shadow-sm); }
.shared-stats > div + div { border-left: 1px solid var(--line); }
.shared-stats > div { position: relative; }
.shared-stats > div > span { padding-right: 28px; }
.metric-icon { position: absolute; top: 22px; right: 20px; width: 28px; height: 28px; padding: 5px; border-radius: 8px; color: #386fbb; background: #edf4ff; }
.shared-stats small { line-height: 1.5; }
.interactive-chart-card .section-heading { align-items: flex-start; margin-bottom: 20px; }
.interactive-chart-card .section-heading .label { color: var(--ink); font-size: 23px; font-weight: 650; text-transform: none; letter-spacing: -.035em; }
.share-chart-meta { max-width: 70%; }
.share-chart-meta strong { line-height: 1.5; }
.chart-period-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.chart-periods { display: flex; padding: 4px; border-radius: 12px; background: #eef3fb; gap: 3px; max-width: 100%; }
.chart-periods button { min-height: 44px; border: 0; border-radius: 10px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: #526981; background: transparent; cursor: pointer; transition: background .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.chart-periods button.active { background: #fff; color: #205bd0; box-shadow: 0 2px 7px #15365c17; }
.chart-window-count { color: var(--muted); font-size: 14px; }
.chart-selection { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border: 0; border-left: 3px solid #396ae7; border-radius: 0 12px 12px 0; background: #f4f7fc; margin-bottom: 20px; min-height: 94px; }
.chart-selection > div { display: flex; flex-direction: column; gap: 5px; }
.chart-selection-date { font-size: 15px; font-weight: 500; color: #526981; }
.chart-selection-value { font-size: 38px; letter-spacing: -.05em; line-height: 1.15; color: #163d72; }
.chart-selection-note { max-width: 45%; color: var(--muted); font-size: 14px; text-align: right; overflow-wrap: anywhere; }
.interactive-chart-card .shared-chart-wrap { margin: 0; overflow: visible; }
.interactive-chart-card svg { display: block; width: 100%; min-width: 0; touch-action: pan-y; border-radius: 12px; outline: none; }
.interactive-chart-card svg:focus-visible { outline: 2px solid #6194ed; outline-offset: 3px; }
.interactive-chart-card .chart-grid { stroke: #e7edf6; stroke-dasharray: 3 6; }
.interactive-chart-card .chart-line { stroke: #3478e4; stroke-width: 3.2; filter: drop-shadow(0 3px 3px #346bdd1c); }
.interactive-chart-card .chart-trend { stroke: #607fa6; stroke-width: 2; stroke-dasharray: 5 6; }
.interactive-chart-card .chart-goal { stroke: #5296b9; stroke-width: 1.4; stroke-dasharray: 4 6; }
.interactive-chart-card .chart-goal-label { fill: #4f7a99; font-size: 11px; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.interactive-chart-card .chart-dot { fill: #fff; stroke: #356de0; stroke-width: 2; }
.chart-selection-guide { stroke: #8eb0eb; stroke-width: 1; stroke-dasharray: 3 4; pointer-events: none; }
.chart-focus-dot { fill: #fff; stroke: #2a68e0; stroke-width: 3; filter: drop-shadow(0 1px 5px #3269d050); pointer-events: none; }
.interactive-chart-card .chart-axis-label { fill: #536e8c; font-size: 12px; font-weight: 500; }
.chart-unit { fill: #7c8da4; font-size: 10px; font-weight: 600; }
.chart-empty-text { fill: #73869f; font-size: 13px; }
.chart-custom-range { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: -6px 0 18px; max-width: 460px; }
.chart-custom-range label { display: grid; gap: 6px; font-size: 12px; color: #63758d; font-weight: 600; }
.chart-custom-range input { min-width: 0; width: 100%; min-height: 44px; border: 1px solid #d2dff0; border-radius: 10px; padding: 8px 12px; color: var(--ink); background: #fff; font: inherit; font-size: 14px; color-scheme: light; }
.chart-range-error { grid-column: 1/-1; color: var(--red); font-size: 12px; margin: 0; }
.chart-footer { margin-top: 5px; padding-top: 18px; }
.legend-line { background: #356de0; }
.legend-trend { border-color: #607fa6; }
.activity-copy > .label { color: #4f70a5; }
.step-count { gap: 12px; }
.step-count strong { color: #183963; letter-spacing: -.06em; }
.step-edit-trigger { width: fit-content; margin-top: 2px; box-shadow: 0 5px 16px #2859ab20; }
.step-chart-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 25px; }
.week-switcher { display: flex; border: 1px solid #dae5f5; border-radius: 10px; padding: 3px; gap: 3px; background: #f4f7fc; }
.week-switcher button { border: 0; background: transparent; color: #506c8d; cursor: pointer; min-width: 42px; height: 42px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.week-switcher [data-week-now] { padding-inline: 11px; }
.week-switcher .active { background: #fff; color: #2563cb; box-shadow: 0 2px 6px #28497114; }
.week-switcher button:disabled { opacity: .3; cursor: default; }
.step-goal-legend { font-size: 12px; color: #6a809b; display: flex; align-items: center; gap: 8px; }
.step-goal-legend::before { content: ""; width: 15px; border-top: 2px dashed #8aaaca; }
.step-bars { margin-top: 24px; min-height: 260px; gap: 8px; align-items: stretch; }
.step-bar-item, .step-detail-bars .step-bar-item { padding: 7px 2px; border: 1px solid transparent; border-radius: 11px; background: transparent; cursor: pointer; height: 254px; display: grid; grid-template-rows: 20px minmax(0,1fr) 18px 16px; gap: 5px; align-items: center; min-width: 0; }
.step-bar-item.selected { border-color: #dce7fb; background: #f2f6ff; }
.step-bar-value { font-size: 13px; color: #526981; font-weight: 600; }
.step-bar-track { width: min(42px,75%); border-radius: 7px 7px 3px 3px; background: repeating-linear-gradient(to top, #e9eef700 0, #e9eef700 calc(25% - 1px), #e9eef7 calc(25% - 1px), #e9eef7 25%), #f3f6fb; }
.step-bar-fill { min-height: 0; background: linear-gradient(0deg, #497edf, #9bbefa); box-shadow: inset 0 1px 0 #ffffff80; }
.step-bar-item.today .step-bar-fill, .step-bar-item.selected .step-bar-fill { background: linear-gradient(0deg, #215bd0, #6fa5ff); }
.step-bar-item.goal-met .step-bar-fill { background: linear-gradient(0deg, #2569aa, #80c4f0); }
.step-bar-item .step-bar-day { font-size: 12px; color: #415e83; font-weight: 650; }
.step-bar-date { font-size: 12px; color: #526f90; line-height: 1.2; }
.step-chart-reading { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 92px; padding: 18px 22px; margin-top: 20px; border: 1px solid #dbe6f7; border-left: 3px solid #498af0; background: #f4f8ff; border-radius: 15px; }
.step-chart-reading > div { display: grid; gap: 5px; }
.step-chart-reading span { font-size: 14px; color: #526981; }
.step-chart-reading strong { font-size: 22px; font-weight: 650; letter-spacing: -.025em; color: #204c83; }
.step-chart-reading .details-button { flex-shrink: 0; background: #fff; }
.step-edit-profile { font-size: 13px; color: #69809e; margin: 0 0 22px; }
.step-number-field input { font-size: 40px; font-weight: 650; min-height: 88px; color: #204e8b; letter-spacing: -.04em; }
.step-source-note { font-size: 13px; color: #4979ab; }
.editor-info { font-size: 13px; color: #63778f; line-height: 1.7; padding: 15px 17px; border-radius: 12px; background: #f1f6ff; }
.text-action { background: none; border: 0; padding: 10px 0; color: #346aca; text-align: left; font-size: 13px; cursor: pointer; }
.step-bar-goal { bottom: clamp(0px, var(--goal-height), calc(100% - 2px)); border-top-style: dashed; }
.step-edit-profile, .step-source-note, .editor-info, .text-action { font-size: 14px; }
.chart-custom-range label, .chart-range-error, .chart-empty-text { font-size: 14px; }
.chart-custom-range input { min-height: 48px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #4284e5; outline-offset: 3px; }
button:active:not(:disabled) { transform: scale(.98); }
@media (min-width:1100px) {
  .activity-card { grid-template-columns: minmax(230px,.65fr) minmax(0,1.35fr); gap: 28px; }
  .activity-copy { border: 1px solid #dce8fa; border-radius: 20px; padding: 24px; background: linear-gradient(160deg, #eef4ff, #f8fbff); }
  .step-edit-trigger { font-size: 15px; padding: 10px 14px; max-width: 100%; }
}
@media (min-width:781px) and (max-width:1250px) {
  .shared-target-card { min-height: 118px; padding: 22px 28px; }
}
@media (hover:hover) and (pointer:fine) {
  .shared-weight-card:hover, .shared-progress-card:hover, .shared-target-card:hover { transform: none; }
  .shared-progress-card:hover .shared-ring { transform: none; }
  .shared-stats:hover { box-shadow: none; }
  .history-row:hover { transform: none; background: #f1f6fd; }
  .side-link:hover:not(.active) { background: #ffffff0c; color: #fff; }
  .chart-periods button:not(.active):hover, .week-switcher button:not(:disabled):hover { background: #e0ebfd; color: #215cd0; }
  .step-bar-item:hover { background: #f3f7ff; transform: none; }
  .step-bar-item:hover .step-bar-fill { filter: brightness(1.08); }
  .text-action:hover { color: #153f99; text-decoration: underline; }
}
@media (max-width:780px) {
  .interactive-chart-card .section-heading { gap: 12px; }
  .interactive-chart-card .section-heading .label { font-size: 22px; }
  .share-chart-meta strong { font-size: 12px; }
  .chart-period-toolbar { gap: 9px; margin-bottom: 16px; }
  .chart-periods { width: 100%; }
  .chart-periods button { flex: 1; padding-inline: 6px; font-size: 13px; }
  .chart-window-count { width: 100%; text-align: right; }
  .chart-selection { padding: 18px; align-items: flex-start; }
  .chart-selection-date { font-size: 14px; }
  .chart-selection-value { font-size: 36px; }
  .chart-selection-note { display: none; }
  .step-chart-toolbar { gap: 10px; margin-top: 18px; }
  .step-goal-legend { font-size: 11px; }
  .step-bars { gap: 3px; }
  .step-bar-item, .step-detail-bars .step-bar-item { height: 228px; border-radius: 8px; }
  .step-bar-item .step-bar-day, .step-bar-value { font-size: 12px; }
  .step-bar-date { font-size: 11px; }
  .step-chart-reading { padding: 14px; }
  .step-chart-reading strong { font-size: 21px; }
  .step-chart-reading span { font-size: 13px; }
  .step-edit-trigger { min-height: 48px; font-size: 14px; }
}

/* Compact layouts retain the larger type without overflowing. */
@media (max-width:780px) {
  .workspace-tabs { width: 100%; }
  .workspace-tabs button { min-width: 0; flex: 1; padding-inline: 9px; font-size: 15px; gap: 7px; }
  .workspace-tabs .nav-icon { width: 21px; height: 21px; }
  .share-title h1 { font-size: 32px; }
  .shared-weight strong { font-size: 76px; }
  .shared-progress-card { min-height: 168px; }
  .shared-target-card { min-height: 160px; }
  .shared-stats { gap: 12px; }
  .shared-stats > div { padding: 20px 16px; min-height: 144px; border-radius: 18px; }
  .shared-stats span { font-size: 14px; }
  .shared-stats small { font-size: 13px; }
  .history-row { grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; }
  .history-weight { font-size: 23px; grid-column: 1; }
  .history-actions { grid-column: 2; grid-row: 1/3; }
  .history-date strong { font-size: 15px; }
  .activity-card { padding: 16px; }
  .activity-copy { border: 1px solid #dce8fa; border-radius: 20px; padding: 24px 20px; background: linear-gradient(160deg, #eef4ff, #f8fbff); }
  .step-count strong { font-size: 64px; }
  .step-week-heading strong { font-size: 27px; }
  .mobile-nav { height: calc(90px + var(--safe-bottom)); padding: 10px 8px calc(10px + var(--safe-bottom)); background: #fffffff5; }
  .mobile-nav button { font-size: 13px; min-height: 60px; }
  .mobile-nav .nav-icon { width: 25px; height: 25px; }
  .mobile-nav > button:nth-child(3) { width: 52px; height: 52px; border-radius: 18px; background: linear-gradient(140deg,#3479df,#2358b7); }
  .unified-app-body .share-main { padding-bottom: calc(124px + var(--safe-bottom)); }
  .toast { bottom: calc(104px + var(--safe-bottom)); }
  .modal form, .import-content { padding: 24px; }
  .modal-header h2 { font-size: 27px; }
  .step-detail-bars .step-bar-date { font-size: 9px; }
  .step-detail-bars .step-bar-value { font-size: 10px; }
  .reminder-settings .button { font-size: 14px; }
}
@media (max-width:390px) {
  .chart-periods button { font-size: 12px; padding-inline: 4px; }
  .readonly-badge { font-size: 11px; padding: 7px 10px; }
  .shared-progress-copy > strong { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Shared identity and direct manipulation. No decorative logo or slogan. */
html, body { overflow-x: clip; }
.interactive-chart-card svg, .step-bars, .training-progress-chart { touch-action: none; }
.page-slide-snapshot { overflow: clip; }
.workspace-panel:not([hidden]) { animation: none; }
.brand { position: relative; font-weight: 850; letter-spacing: -.035em; line-height: 1.3; padding-bottom: 9px; }
.brand::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 4px; background: linear-gradient(90deg,#2c7be5,#78c9f7); transition: width .25s; }
.brand:hover::after { width: 100%; }
.share-header .brand, .app-share-header > .brand { font-size: clamp(14px, 1.5vw, 21px); letter-spacing: -.035em; }
.header-profile-avatar, .profile-photo-preview, .profile-list-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; border-radius: 50%; background: #e6effc; color: #275a97; font-weight: 750; }
.header-profile-avatar { width: 42px; height: 42px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #d7e4f4; }
.header-profile-avatar img, .profile-photo-preview img, .profile-list-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-menu-button .header-profile-avatar { display: inline-flex !important; grid-row: 1 / 3; }
.profile-menu-button { display: flex; align-items: center; gap: 12px; }
.public-profile-corner { display: flex; align-items: center; gap: 18px; }
.share-header, .app-share-header { position: sticky; top: 0; z-index: 25; }
.profile-photo-editor { display: flex; align-items: center; gap: 20px; margin: 22px 0; }
.profile-photo-preview { width: 82px; height: 82px; font-size: 30px; }
.profile-photo-editor p { margin: 7px 0 0; font-size: 13px; color: #62768f; }
.profile-photo-editor button { font-size: 14px; }
.photo-crop-dialog { width: min(440px, calc(100% - 28px)); padding: 24px; border: 1px solid #cfdeef; border-radius: 24px; color: #17324f; background: #f7faff; inset-block: var(--safe-top) var(--safe-bottom); margin: auto; max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 28px); overflow: auto; overscroll-behavior: contain; }
.photo-crop-dialog::backdrop { background: #10274499; backdrop-filter: blur(5px); }
.photo-crop-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.photo-crop-dialog h2 { font-size: 23px; margin: 0; }
.photo-crop-dialog p { font-size: 14px; }
.photo-crop-stage { position: relative; width: min(100%,320px); margin: 20px auto; border-radius: 16px; overflow: hidden; }
.photo-crop-stage canvas { display: block; width: 100%; touch-action: none; cursor: grab; }
.photo-crop-stage canvas:active { cursor: grabbing; }
.photo-crop-mask { pointer-events: none; position: absolute; inset: 0; background: radial-gradient(circle closest-side, transparent 98%, #10274485 99%); }
.photo-zoom { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.photo-zoom input { width: 100%; accent-color: #307be0; min-height: 32px; }
/* A single, clearly ranked daily summary above the weekly history. */
.activity-card { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.activity-card .activity-copy { display: grid; gap: 0; padding: 28px 32px 20px; border: 1px solid #d7e3f2; border-radius: 24px; background: #fff; box-shadow: 0 8px 28px #23476b06; }
.step-today-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.step-today-heading .label { font-size: 13px; letter-spacing: .06em; color: #536f90; }
.step-today-heading time { font-size: 13px; color: #617995; }
.step-today-values { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 22px 0; }
.activity-copy .step-count { display: flex; flex-direction: column; gap: 0; margin: 0; align-items: flex-start; }
.activity-copy .step-count strong { font-size: clamp(52px, 6.8vw, 78px); line-height: 1; font-weight: 800; letter-spacing: -.06em; color: #183957; font-variant-numeric: tabular-nums; }
.activity-copy .step-count > span { font-size: 14px; color: #7890a9; margin-top: 9px; }
.step-target { display: grid; gap: 7px; padding: 16px 22px; background: #eff5fe; border: 1px solid #e0eafa; border-radius: 16px; min-width: 165px; }
.step-target > span:first-child { font-size: 12px; color: #60789a; }
.step-target > strong { font-size: 17px; color: #2c527c; font-weight: 650; }
.step-goal-percent { font-size: 25px; font-weight: 750; color: #2b70cb; letter-spacing: -.03em; }
.activity-copy .step-goal-track { height: 10px; margin: 0; background: #e9eff8; border: 0; }
.activity-copy .step-goal-track i { background: linear-gradient(90deg,#347bdd,#72b6f4); }
.activity-copy .step-goal-status { padding: 12px 0 0; font-size: 14px; color: #55718e; font-weight: 550; }
.step-goal-reached .step-goal-status { color: #2266b9; }
.step-today-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.step-today-actions .step-goal-edit, .step-today-actions .step-edit-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: auto; padding: 10px 16px; min-height: 44px; margin: 0; border-radius: 12px; font-size: 14px; }
.step-today-actions .step-goal-edit { background: #f3f7fc; border: 1px solid #d7e3f3; color: #2d5b8b; }
.activity-copy #stepsStatus { border-top: 1px solid #edf2f8; padding-top: 13px; margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: #7890a5; }
.activity-card .step-week-panel { padding: 26px 32px; border: 1px solid #d7e3f2; border-radius: 24px; background: #fff; }
.activity-copy .native-step-controls { margin-top: 14px; gap: 8px; }
@media (max-width: 600px) {
  .activity-card .activity-copy, .activity-card .step-week-panel { padding: 20px; border-radius: 20px; }
  .step-today-values { gap: 12px; padding-block: 20px; }
  .activity-copy .step-count strong { font-size: clamp(45px, 13vw, 64px); }
  .step-target { min-width: 0; padding: 12px 14px; gap: 6px; }
  .step-target > strong { font-size: 13px; }
  .step-goal-percent { font-size: 24px; }
  .step-today-actions { gap: 8px; }
  .step-today-actions .step-goal-edit, .step-today-actions .step-edit-trigger { padding-inline: 10px; font-size: 12px; flex: 1; white-space: nowrap; }
}
@media (max-width: 600px) {
  .profile-menu-button { gap: 8px; padding: 7px 9px; min-height: 52px; }
  .header-profile-avatar { width: 36px; height: 36px; }
  .profile-menu-button > strong { display: none; }
  .app-share-header > .brand, .share-header .brand { font-size: 14px; }
  .public-profile-corner { gap: 10px; }
  .public-profile-corner .readonly-badge { font-size: 10px; padding: 7px; }
}

/* One visual language across the dashboard, native apps and editing dialogs. */
:root { --ink: #172a43; --muted: #5d6d82; --line: #e1e7ef; --paper: #f5f7fa; --green: #285dda; --green-2: #376ce8; --shadow-sm: 0 2px 5px #172a4305; --shadow-hover: 0 8px 24px #172a4310; }
body { -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
.share-header, .app-share-header { background: #fff; backdrop-filter: none; border-bottom: 1px solid var(--line); box-shadow: none; }
.brand, .desktop-sidebar .brand { color: #172a43; font-weight: 800; letter-spacing: -.045em; }
.desktop-sidebar .brand { padding-left: 12px; }
.side-nav { margin-top: 48px; gap: 8px; }
.side-link { color: #61718a; border-radius: 12px; font-size: 16px; min-height: 54px; }
.side-link.active { color: #285dda; background: #eaf0ff; }
.side-link:not(.active):hover { color: #254c84; background: #f2f5fa; }
.side-link.active .nav-icon { stroke-width: 2; }
.share-main { padding-top: 30px; }
.share-title h1 { font-weight: 720; font-size: clamp(28px, 2.8vw, 38px); }
.eyebrow { color: #687a91; }
.button, .training-root .button, .training-dialog .button { border-radius: 12px; font-weight: 650; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.button-primary, .button-accent { background: #2c62dd; border-color: #2c62dd; box-shadow: 0 2px 4px #234eab18; }
.button-primary:hover, .button-accent:hover { background: #204ebc; border-color: #204ebc; }
.button-ghost { color: #405574; border-color: var(--line); }
.profile-menu-button { background: #f8fafc; border-color: var(--line); }
.profile-menu-button:hover { background: #edf2fc; }
.profile-menu-button > span:not(.header-profile-avatar) { letter-spacing: .01em; }
.shared-weight-card, .shared-progress-card, .shared-target-card { border-radius: 20px; min-height: 220px; padding: 26px; box-shadow: var(--shadow-sm); }
.shared-weight-card::after { display: none; }
.shared-weight strong { font-weight: 650; letter-spacing: -.055em; }
.shared-weight-card .label { color: #bdcde1; }
.shared-progress-copy > strong { font-weight: 650; }
.shared-target-card > strong { font-weight: 650; }
.shared-chart-card, .history-card, .activity-card .activity-copy, .activity-card .step-week-panel { border-radius: 20px; box-shadow: var(--shadow-sm); border-color: var(--line); }
.weight-chain-card { border: 0; border-radius: 14px; min-height: 76px; padding-block: 14px; }
.shared-stats > div { border-radius: 16px; box-shadow: none; min-height: 126px; padding: 21px; }
.shared-stats strong { color: #20344f; font-weight: 650; }
.metric-icon { background: transparent; padding: 2px; color: #788ba5; width: 24px; height: 24px; }
.history-row { border-color: #edf0f5; }
.history-weight { font-weight: 650; }
.edit-entry, .delete-entry { background: #f5f7fb; border: 1px solid transparent; }
.history-heading-actions .entry-count { border: 0; background: #eff3f9; }
.workspace-tabs { border: 0; background: #e9edf4; border-radius: 14px; }
.workspace-tabs button { border-radius: 10px; }
.workspace-tabs button.active { color: #274fbd; }
.chart-periods { background: #f0f3f8; }
.chart-periods button.active { color: #274fbd; }
.chart-selection-value { color: #243c62; font-weight: 650; font-size: 34px; }
.chart-footer { font-size: 13px; }
.step-target { background: #f4f7fc; border: 0; border-radius: 12px; }
.step-goal-percent { color: #2d60d5; }
.activity-copy .step-count strong { color: #213651; font-weight: 650; }
.activity-copy .step-goal-track { height: 8px; }
.activity-copy .step-goal-track i { background: #3873e0; }
.step-bar-fill, .step-bar-item.today .step-bar-fill, .step-bar-item.selected .step-bar-fill { background: #5281df; box-shadow: none; }
.step-bar-item.selected { background: #edf3fe; }
.step-bar-item.selected .step-bar-fill { background: #2b60d7; }
.step-bar-track { background: #f0f3f8; }
.modal, .training-dialog, .photo-crop-dialog { border: 1px solid #d9e1ed; border-radius: 22px; box-shadow: 0 24px 90px #0b234b33; }
.modal::backdrop, .training-dialog::backdrop { background: #14253e73; backdrop-filter: blur(7px); }
.modal-header h2 { font-size: 26px; }
.field > span { color: #4d627e; font-weight: 600; }
.field input, .field select, .field textarea { border-color: #dce3ee; background: #fbfcfe; border-radius: 11px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #6c9bf0; outline-offset: 2px; }
.import-toolbar { border-style: solid; border-color: #e2e8f2; background: #f7f9fc; }
.mobile-nav { background: #fff; border-top: 1px solid #e3e9f1; box-shadow: 0 -4px 24px #17335505; backdrop-filter: none; }
.mobile-nav [data-app-tab].active { background: #edf2fd; color: #295dd2; border-radius: 12px; }
@media (hover: hover) and (pointer: fine) {
  .button:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 4px 12px #1c376314; }
  .button:not(:disabled):active { transform: translateY(0); }
  .desktop-sidebar .brand:hover { color: #285dda; letter-spacing: -.045em; }
  .history-row:hover { background: #f8faff; }
}
@media (max-width: 780px) {
  .share-main { padding-top: 22px; }
  .share-title { gap: 8px; }
  .share-title h1 { font-size: 28px; }
  .share-overview { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .shared-weight-card { grid-column: 1 / -1; min-height: 190px; padding: 24px; }
  .shared-weight { margin: 16px 0; }
  .shared-weight strong { font-size: 64px; }
  .shared-progress-card, .shared-target-card { min-height: 160px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 10px; }
  .shared-progress-card .shared-ring { display: none; }
  .shared-progress-copy > strong { font-size: 24px; margin-top: 12px; }
  .shared-progress-copy p { font-size: 13px; margin-top: 8px; }
  .shared-target-card > strong { font-size: 21px; margin: 0; }
  .shared-target-card p, .shared-target-card small { margin: 0; font-size: 13px; }
  .shared-target-card > .label, .shared-progress-copy > .label { font-size: 13px; }
  .weight-chain-card { grid-template-columns: 1fr auto; gap: 8px; padding: 16px 18px; }
  .weight-chain-card p { grid-column: 1 / -1; grid-row: 2; font-size: 14px; }
  .weight-chain-card strong b { font-size: 29px; }
  .shared-stats { gap: 10px; }
  .shared-stats > div { padding: 18px 14px; min-height: 123px; }
  .shared-stats > div > span { padding-right: 17px; }
  .shared-stats strong { font-size: 24px; }
  .metric-icon { right: 10px; top: 16px; width: 21px; height: 21px; }
  .chart-selection { padding: 14px; min-height: 86px; }
  .chart-selection-value { font-size: 30px; }
  .activity-card .activity-copy, .activity-card .step-week-panel { padding: 20px; }
  .step-today-actions .step-goal-edit, .step-today-actions .step-edit-trigger { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .button, .training-root .button, .training-dialog .button { transition: none; } }
