:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-secondary: #f7f7f8;
  --text: #171719;
  --muted: #65656c;
  --subtle: #86868d;
  --line: #e5e5e7;
  --line-strong: #d2d2d7;
  --inf-action: #452d40;
  --inf-action-hover: #382436;
  --inf-action-soft: #f0eef0;
  --status-danger: #ca3228;
  --status-danger-on: #ffffff;
  --radius: 14px;
  --header: 76px;
  --goal-strip: 112px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--bg); font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }
h1, h2, h3, p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Login */
.login-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(420px, 540px); background: #fff; }
.login-brand { display: flex; flex-direction: column; justify-content: space-between; padding: 58px 7vw; background: var(--inf-action); color: #fff; }
.login-brand img { width: min(360px, 78%); filter: invert(1); }
.login-brand p { margin: 0; font-size: 56px; font-weight: 760; letter-spacing: -.04em; }
.login-form { align-self: center; width: min(360px, calc(100% - 48px)); margin: 0 auto; }
.login-form h1 { margin: 0 0 10px; font-size: 34px; letter-spacing: -.035em; }
.login-form > p { margin: 0 0 36px; color: var(--muted); line-height: 1.7; }
.login-form label { display: grid; gap: 8px; margin-bottom: 20px; font-size: 14px; font-weight: 650; }
.login-form label small { color: var(--muted); font-size: 12px; font-weight: 450; line-height: 1.5; }
.form-eyebrow { display: block; margin-bottom: 9px; color: var(--inf-action); font-size: 12px; font-weight: 720; letter-spacing: .08em; }
.password-brand { gap: 44px; }
.password-brand-copy { display: grid; gap: 24px; }
.password-brand-copy > p { max-width: 720px; font-size: clamp(34px, 4vw, 56px); }
.password-profile { position: relative; display: grid; place-items: center; width: 88px; height: 88px; overflow: hidden; border: 2px solid rgb(255 255 255 / 70%); border-radius: 50%; background: #2d2d2f; color: #fff; font-size: 30px; font-weight: 700; box-shadow: 0 18px 40px rgb(0 0 0 / 26%); }
.login-brand .password-profile img { width: 100%; height: 100%; filter: none; object-fit: cover; }
.form-error { min-height: 24px; margin: 14px 0 0 !important; color: var(--status-danger) !important; font-size: 13px; }

/* Controls */
input, textarea, select { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; outline: none; transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease); }
input, select { min-height: 46px; padding: 0 13px; }
textarea { padding: 13px 14px; line-height: 1.65; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6e6e73; opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: #a7a7ac; }
input:focus, textarea:focus, select:focus { border-color: var(--inf-action); box-shadow: 0 0 0 3px rgb(69 45 64 / 12%); }
button:focus-visible, a:focus-visible { outline: 3px solid rgb(69 45 64 / 38%); outline-offset: 3px; }

.button { min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 680; transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease); }
.button:active { transform: scale(.985); }
.button-primary { background: var(--inf-action); color: #fff; }
.button-primary:hover { background: var(--inf-action-hover); }
.button-secondary, .button-small { border-color: var(--line-strong); background: #fff; }
.button-secondary:hover, .button-small:hover { background: var(--surface-secondary); border-color: #b4b4b9; }
.button-wide { width: 100%; min-height: 50px; }
.button-small { min-height: 44px; padding: 0 14px; }
.text-button { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.text-button:hover { color: var(--text); }

/* App shell */
.app-header { position: sticky; z-index: 20; top: 0; height: var(--header); display: grid; grid-template-columns: 258px 1fr auto; align-items: stretch; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 94%); backdrop-filter: saturate(180%) blur(18px); }
.brand { display: flex; align-items: center; width: max-content; }
.brand img { display: block; width: 184px; height: auto; }
.desktop-nav { display: flex; align-items: stretch; gap: 34px; }
.nav-item { position: relative; min-width: 58px; padding: 0 8px; border: 0; background: transparent; font-size: 16px; font-weight: 620; }
.nav-item::after { content: ""; position: absolute; right: 8px; bottom: -1px; left: 8px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.nav-item:hover, .nav-item.is-active { color: var(--inf-action); }
.nav-item.is-active::after { background: var(--inf-action); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.user-button { display: flex; align-items: center; gap: 9px; }
.user-avatar-frame { display: grid; place-items: center; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; background: #1d1d1f; color: #fff; font-size: 13px; }
.user-avatar-frame img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar-frame i { display: grid; place-items: center; width: 100%; height: 100%; font-style: normal; }
.user-button strong { font-size: 14px; }
.header-primary { min-width: 100px; }

main { min-height: calc(100svh - var(--header)); }
.store-goal-sticky { position: sticky; z-index: 18; top: var(--header); min-height: var(--goal-strip); border-bottom: 1px solid var(--line); background: rgb(245 245 247 / 96%); backdrop-filter: saturate(180%) blur(18px); }
.store-goal-panel { display: grid; grid-template-columns: minmax(190px, 1.25fr) repeat(4, minmax(100px, .72fr)) minmax(260px, 1.45fr); align-items: center; gap: 24px; max-width: 1380px; min-height: var(--goal-strip); padding: 18px 38px; margin: 0 auto; }
.store-goal-heading { display: grid; gap: 7px; min-width: 0; }
.store-goal-heading > div { display: flex; align-items: baseline; gap: 9px; }
.store-goal-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.store-goal-period { color: var(--muted); font-size: 12px; white-space: nowrap; }
.store-goal-metric { min-width: 0; padding-left: 18px; border-left: 1px solid var(--line-strong); }
.store-goal-metric span, .store-goal-metric strong, .store-goal-metric em { display: inline; }
.store-goal-metric span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.store-goal-metric strong { font-size: 25px; font-weight: 720; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.store-goal-metric em { margin-left: 4px; color: var(--subtle); font-size: 11px; font-style: normal; }
.store-goal-primary strong { color: var(--inf-action); }
.store-goal-progress-block { display: grid; gap: 7px; min-width: 0; }
.store-goal-progress-block > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.store-goal-progress-block > div strong { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }
.store-goal-progress { height: 6px; overflow: hidden; border-radius: 999px; background: #dedde0; }
.store-goal-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--inf-action); transition: width 320ms var(--ease); }
.store-goal-progress-block p { margin: 0; overflow: hidden; color: var(--subtle); font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.store-goal-panel[data-status="unavailable"] .store-goal-metric,
.store-goal-panel[data-status="unavailable"] .store-goal-progress-block { opacity: .66; }
.page { display: none; max-width: 1380px; margin: 0 auto; padding: 46px 38px 110px; }
.page.is-active { display: block; }
.workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.workspace-heading h1 { margin: 5px 0 8px; font-size: 38px; line-height: 1.08; letter-spacing: -.035em; }
.workspace-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.section-context { color: var(--inf-action); font-size: 12px; font-weight: 700; }
.save-state { padding-top: 30px; color: var(--muted); font-size: 13px; }

/* Dynamic */
.page-dynamic { max-width: none; padding: 0; background: #fff; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; min-height: calc(100svh - var(--header) - var(--goal-strip)); }
.dashboard-main { min-width: 0; padding: 36px 40px 96px; }
.dashboard-aside { min-width: 0; padding: 40px 28px 80px; border-left: 1px solid var(--line); background: #fbfbfc; }
.dynamic-heading { display: none; }
.dynamic-heading p { margin: 0 0 6px; color: var(--inf-action); font-size: 12px; font-weight: 700; }
.dynamic-heading h1 { margin: 0; font-size: 30px; letter-spacing: -.03em; }
.feed-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.filter-control { width: 150px; }
.filter-control select, .feed-tools .search-control input { min-height: 44px; background-color: #fff; }
.search-control { position: relative; width: min(310px, 42%); }
.search-with-icon input { padding-left: 40px; }
.search-icon { position: absolute; z-index: 1; top: 50%; left: 14px; width: 14px; height: 14px; transform: translateY(-50%); border: 1.8px solid #77777d; border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; position: absolute; right: -4px; bottom: -3px; width: 6px; height: 1.8px; transform: rotate(45deg); border-radius: 2px; background: #77777d; }

.timeline { background: #fff; }
.dynamic-timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 96px 28px 46px minmax(0, 1fr); gap: 16px; min-height: 164px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline-time { padding-top: 1px; text-align: center; }
.timeline-time strong, .timeline-time span { display: block; }
.timeline-time strong { font-size: 15px; font-weight: 600; }
.timeline-time span { margin-top: 7px; color: var(--subtle); font-size: 12px; }
.timeline-rail { position: relative; display: flex; justify-content: center; }
.timeline-rail::after { content: ""; position: absolute; top: 15px; bottom: -44px; width: 1px; background: var(--line); }
.timeline-item:last-child .timeline-rail::after { bottom: 15px; }
.timeline-rail > span { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 6px; border: 2px solid #1d1d1f; border-radius: 50%; background: #fff; }
.timeline-avatar { display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; border-radius: 50%; background: #ececee; color: #38383c; font-size: 15px; font-weight: 680; }
.timeline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.timeline-avatar span { display: grid; place-items: center; width: 100%; height: 100%; }
.timeline-content { min-width: 0; padding-right: 8px; }
.timeline-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.timeline-author { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.timeline-author strong { font-size: 16px; font-weight: 680; }
.timeline-author span { color: var(--subtle); font-size: 12px; }
.timeline-action { flex: none; min-height: 44px; padding: 0 8px; border: 0; background: transparent; font-size: 13px; font-weight: 620; }
.timeline-action:hover { color: var(--inf-action); }
.timeline-event { display: flex; align-items: center; gap: 9px; margin: 11px 0 9px; font-size: 13px; }
.event-symbol { display: grid; place-items: center; width: 19px; height: 19px; border: 1.5px solid currentColor; border-radius: 5px; color: #2f2f32; font-size: 10px; font-weight: 750; }
.event-symbol[data-kind="issue"] { border-radius: 50%; color: var(--inf-action); }
.event-symbol[data-kind="weekly"] { color: #4a4a4f; }
.timeline-summary { max-width: 72ch; margin: 0; color: #4f4f54; font-size: 13px; line-height: 1.6; }
.timeline-details { display: grid; gap: 4px; max-width: 78ch; margin: 0; padding: 0; list-style: none; color: #505055; font-size: 13px; line-height: 1.55; }
.timeline-details li { overflow-wrap: anywhere; }
.timeline-details li::before { content: "·"; margin-right: 8px; color: #a1a1a6; }
.activity-detail-dialog { width: min(720px, calc(100vw - 40px)); max-height: min(82vh, 820px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--line-strong); border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 24px 70px rgba(25, 21, 25, .2); }
.activity-detail-dialog::backdrop { background: rgba(24, 22, 25, .42); }
.activity-detail-head { position: sticky; z-index: 1; top: 0; display: flex; justify-content: space-between; gap: 20px; padding: 24px 26px 20px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); }
.activity-detail-head h2 { margin: 5px 0 4px; font-size: 26px; line-height: 1.2; }
.activity-detail-head p { margin: 0; color: var(--muted); font-size: 13px; }
.dialog-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--text); font-size: 25px; line-height: 1; cursor: pointer; }
.activity-detail-body { display: grid; gap: 14px; padding: 22px 26px 28px; }
.issue-create-body { display: grid; gap: 16px; padding: 22px 26px 28px; }
.issue-create-body label { display: grid; gap: 8px; color: var(--text); font-size: 13px; font-weight: 650; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.activity-detail-section { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-secondary); }
.activity-detail-section h3 { margin: 0 0 10px; font-size: 14px; }
.activity-detail-section ol, .activity-detail-section ul { display: grid; gap: 7px; margin: 0; padding-left: 22px; color: #4e4e53; font-size: 14px; line-height: 1.6; }
.activity-detail-section p { margin: 0; color: #4e4e53; font-size: 14px; line-height: 1.65; white-space: pre-wrap; }
.empty-state { padding: 58px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty-state.compact { padding: 28px 0; }

.aside-section { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.aside-section:last-child { border-bottom: 0; }
.aside-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.aside-section h2 { margin: 0 0 17px; font-size: 18px; letter-spacing: -.02em; }
.aside-heading h2 { margin-bottom: 0; }
.aside-note { color: var(--subtle); font-size: 12px; }
.meeting-list { margin-top: 14px; }
.meeting-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.meeting-row:last-child { border-bottom: 0; }
.meeting-row strong, .meeting-row span { display: block; }
.meeting-row strong { font-size: 14px; }
.meeting-row span { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.meeting-row em { flex: none; padding-top: 2px; color: var(--inf-action); font-size: 11px; font-style: normal; font-weight: 680; }
.status-list { margin-top: 14px; }
.status-row { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 13px; }
.status-row:last-child { border-bottom: 0; }
.status-row span { color: #46464b; }
.status-row strong { font-size: 13px; font-weight: 680; }
.quick-actions > h2 { margin-bottom: 12px; }
.quick-action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.quick-action-grid button { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 84px; padding: 8px 3px; border: 0; border-radius: 10px; background: transparent; text-align: center; }
.quick-action-grid button:hover { background: #f0f0f2; }
.quick-action-grid svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.quick-action-grid strong { font-size: 11px; font-weight: 590; white-space: nowrap; }

/* Daily */
.daily-report-form { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; }
.daily-three-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.report-column { display: flex; flex-direction: column; min-width: 0; min-height: 420px; padding: 28px; border-right: 1px solid var(--line); }
.report-column:last-child { border-right: 0; }
.issue-column { background: #fff; }
.report-column-heading { display: flex; align-items: flex-start; gap: 12px; min-height: 66px; }
.report-column-heading h2 { margin: 0 0 5px; font-size: 19px; letter-spacing: -.02em; }
.report-column-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.column-symbol { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #ededf0; color: #3e3e43; font-size: 14px; font-weight: 720; }
.problem-symbol { background: var(--inf-action-soft); color: var(--inf-action); }
.report-writing-guide { margin: 2px 0 14px; padding: 13px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.report-writing-format { display: grid; gap: 4px; margin: 0; }
.report-writing-format strong,
.report-writing-examples > strong,
.report-input-label { color: var(--text); font-size: 11px; font-weight: 700; }
.report-writing-format span { color: #3f3f44; font-size: 12px; font-weight: 590; line-height: 1.55; }
.report-writing-examples { margin-top: 11px; }
.report-writing-examples ol { display: grid; gap: 5px; margin: 6px 0 0; padding-left: 20px; }
.report-writing-examples li { padding-left: 2px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.report-writing-examples li::marker { color: var(--subtle); font-variant-numeric: tabular-nums; font-weight: 650; }
.report-column > label { display: grid; gap: 8px; }
.report-column textarea { min-height: 190px; background: var(--surface-secondary); }
.issue-column textarea { min-height: 190px; background: #fff; border-color: var(--line-strong); }
.report-column > small { margin-top: 10px; color: var(--subtle); font-size: 11px; }
.daily-issue-editor { display: grid; gap: 12px; }
.daily-issue-rows { display: grid; gap: 12px; }
.daily-issue-row { position: relative; display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-secondary); }
.daily-issue-row label { display: grid; gap: 7px; }
.daily-issue-row label > span { color: var(--text); font-size: 12px; font-weight: 650; }
.daily-issue-row textarea { min-height: 92px; background: #fff; }
.daily-issue-remove { justify-self: end; min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.daily-issue-remove:hover { color: var(--status-danger); }
.daily-add-issue { justify-self: start; }
.daily-save-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 14px 20px 14px 28px; border-top: 1px solid var(--line); background: #fbfbfc; }
.daily-save-bar p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.daily-save-bar .button { min-width: 108px; }

.followup-section { margin-top: 54px; }
.followup-heading-actions { display: flex; align-items: center; gap: 10px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading h2 { margin: 5px 0 0; font-size: 25px; letter-spacing: -.03em; }
.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.count-badge { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; background: var(--inf-action-soft); color: var(--inf-action); font-size: 12px; font-weight: 720; }
.issue-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px; }
.issue-entry { min-width: 0; padding: 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; }
.issue-entry-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.issue-entry h3 { margin: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.issue-entry-head > span { flex: none; color: var(--inf-action); font-size: 11px; font-weight: 700; }
.issue-owner { margin: 7px 0 13px; color: var(--muted); font-size: 12px; }
.issue-relationship { display: flex; gap: 6px; margin: -5px 0 13px; }
.issue-relationship span { padding: 3px 7px; border-radius: 999px; background: var(--inf-action-soft); color: var(--inf-action); font-size: 11px; font-weight: 680; }
.issue-latest { padding-left: 12px; margin-bottom: 14px; border-left: 1px solid var(--line-strong); }
.issue-latest p { margin: 0; color: #46464b; font-size: 13px; line-height: 1.55; }
.issue-latest small { display: block; margin-top: 4px; color: var(--subtle); font-size: 11px; }
.progress-form { display: grid; grid-template-columns: minmax(0, 1fr) 108px auto; gap: 7px; }
.progress-form input, .progress-form select { min-height: 44px; }

/* Weekly */
.weekly-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.weekly-workflow { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; }
.weekly-form { display: contents; }
.workflow-step { display: grid; grid-template-columns: 54px minmax(0, 1fr); padding: 30px 30px 32px 20px; border-bottom: 1px solid var(--line); }
.workflow-step:last-child { border-bottom: 0; }
.step-rail { position: relative; display: flex; justify-content: center; }
.step-rail::after { content: ""; position: absolute; top: 36px; bottom: -48px; width: 1px; background: var(--line-strong); }
.workflow-step:last-child .step-rail::after { display: none; }
.step-rail span { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #1d1d1f; color: #fff; font-size: 12px; font-weight: 700; }
.step-content { min-width: 0; }
.step-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.step-heading h2 { margin: 2px 0 6px; font-size: 20px; letter-spacing: -.025em; }
.step-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.step-state { flex: none; padding: 6px 9px; border-radius: 999px; background: #f0f0f2; color: #5d5d63; font-size: 11px; font-weight: 620; }
.meeting-form-inline { display: grid; grid-template-columns: .85fr .85fr minmax(190px, 1.2fr) minmax(190px, 1.2fr) auto; gap: 10px; align-items: end; }
.meeting-form-inline label, .weekly-text-field { display: grid; gap: 8px; color: #4d4d52; font-size: 12px; font-weight: 650; }
.meeting-form-inline .button { white-space: nowrap; }
.meeting-row em[data-phase="in_progress"] { color: #147a42; }
.meeting-row em[data-phase="ended"] { color: var(--muted); }
.weekly-text-field > span { color: var(--text); font-size: 14px; }
.weekly-text-field small { color: var(--muted); font-size: 12px; font-weight: 450; }
.weekly-text-field textarea { background: var(--surface-secondary); }
.previous-plan { padding: 16px 18px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-secondary); }
.previous-plan h3 { margin: 0 0 8px; font-size: 13px; }
.previous-plan ol { margin: 0; padding-left: 20px; color: #505055; font-size: 13px; line-height: 1.75; }
.cycle-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 16px; }
.weekly-context { position: sticky; top: calc(var(--header) + var(--goal-strip) + 22px); padding: 22px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; }
.context-heading { display: flex; align-items: flex-start; gap: 12px; }
.context-heading h2 { margin: 1px 0 5px; font-size: 17px; letter-spacing: -.02em; }
.context-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.calendar-symbol { position: relative; flex: none; width: 28px; height: 28px; border: 1.5px solid #3b3b3f; border-radius: 7px; }
.calendar-symbol::before { content: ""; position: absolute; top: 7px; right: 3px; left: 3px; height: 1px; background: #3b3b3f; }
.context-note { padding-top: 18px; margin-top: 16px; border-top: 1px solid var(--line); }
.context-note strong { font-size: 13px; }
.context-note p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.activity-section { margin-top: 56px; }
.activity-section > .timeline { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.activity-section .timeline-item { padding-right: 22px; padding-left: 14px; }

/* Feedback and mobile navigation */
.toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translate(-50%, 12px); padding: 12px 18px; border-radius: 10px; background: #1d1d1f; color: #fff; opacity: 0; pointer-events: none; transition: opacity 180ms var(--ease), transform 180ms var(--ease); font-size: 13px; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--status-danger); color: var(--status-danger-on); }
.mobile-nav { display: none; }

@media (max-width: 1120px) {
  .store-goal-panel { grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(82px, .65fr)); gap: 14px; }
  .store-goal-progress-block { display: none; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 350px; }
  .timeline-item { grid-template-columns: 76px 22px 42px minmax(0, 1fr); gap: 13px; }
  .timeline-avatar { width: 42px; height: 42px; }
  .meeting-form-inline { grid-template-columns: 1fr 1fr; }
  .meeting-form-inline .button { grid-column: 2; }
}

@media (max-width: 920px) {
  :root { --header: 66px; --goal-strip: 128px; }
  .app-header { grid-template-columns: 1fr auto; padding: 0 20px; }
  .brand img { width: 152px; }
  .desktop-nav, .header-primary { display: none; }
  .header-actions { justify-content: flex-end; }
  .page { padding: 34px 22px 108px; }
  .store-goal-panel { grid-template-columns: 1.35fr repeat(4, minmax(62px, .72fr)); gap: 8px; padding: 15px 22px; }
  .store-goal-heading > div { display: grid; gap: 2px; }
  .store-goal-heading h2 { font-size: 18px; }
  .store-goal-metric { padding-left: 10px; }
  .store-goal-metric strong { font-size: 21px; }
  .page-dynamic { padding: 0; }
  .dashboard-grid, .weekly-layout { grid-template-columns: 1fr; }
  .dashboard-main { padding: 30px 22px 20px; }
  .dashboard-aside { padding: 28px 22px 100px; border-top: 1px solid var(--line); border-left: 0; }
  .dynamic-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
  .daily-three-grid { grid-template-columns: 1fr; }
  .report-column { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .report-column:last-child { border-bottom: 0; }
  .report-column textarea, .issue-column textarea { min-height: 180px; }
  .weekly-context { position: static; }
  .mobile-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px max(10px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgb(255 255 255 / 94%); backdrop-filter: saturate(180%) blur(18px); }
  .mobile-nav button { display: grid; place-items: center; gap: 3px; min-height: 52px; border: 0; background: transparent; color: #3b3b3f; }
  .mobile-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .mobile-nav em { font-style: normal; font-size: 11px; }
  .mobile-nav button.is-active { color: var(--inf-action); }
}

@media (max-width: 620px) {
  :root { --goal-strip: 148px; }
  .login-shell { display: block; padding: 0 24px; }
  .login-brand { min-height: 210px; margin: 0 -24px 44px; padding: 34px 24px; }
  .login-brand img { width: 200px; }
  .login-brand p { font-size: 34px; }
  .password-brand { min-height: 264px; }
  .password-brand-copy { grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 16px; }
  .password-brand-copy > p { font-size: 27px; line-height: 1.15; }
  .password-profile { width: 64px; height: 64px; font-size: 22px; }
  .login-form { width: 100%; padding-bottom: 50px; }
  .app-header { padding: 0 15px; }
  .brand img { width: 132px; }
  .header-actions .text-button { display: none; }
  .user-button strong { max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page { padding: 26px 14px 96px; }
  .store-goal-panel { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; gap: 10px 0; padding: 13px 14px 15px; }
  .store-goal-heading { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .store-goal-heading > .section-context { display: none; }
  .store-goal-heading > div { display: flex; align-items: baseline; gap: 7px; }
  .store-goal-heading h2 { font-size: 17px; }
  .store-goal-primary { border-left: 0; padding-left: 0; }
  .store-goal-metric { padding-left: 10px; }
  .store-goal-metric span { margin-bottom: 3px; font-size: 10px; }
  .store-goal-metric strong { font-size: 20px; }
  .store-goal-progress-block { display: none; }
  .page-dynamic { padding: 0; }
  .workspace-heading { margin-bottom: 22px; }
  .workspace-heading h1 { font-size: 31px; }
  .save-state { max-width: 112px; padding-top: 25px; text-align: right; font-size: 11px; }
  .dashboard-main { padding: 24px 14px 16px; }
  .dashboard-aside { padding: 26px 14px 92px; }
  .dynamic-heading { align-items: flex-start; }
  .dynamic-heading h1 { font-size: 25px; }
  .dynamic-heading .button { padding: 0 14px; }
  .feed-tools { align-items: stretch; }
  .feed-tools .search-control { flex: 1; width: auto; }
  .filter-control { width: 120px; }
  .timeline-item { grid-template-columns: 38px minmax(0, 1fr); gap: 5px 11px; min-height: 0; padding: 20px 0; }
  .timeline-time { grid-column: 2; display: flex; align-items: center; gap: 7px; padding: 0; text-align: left; }
  .timeline-time strong { color: #525257; font-size: 11px; }
  .timeline-time span { margin: 0; font-size: 11px; }
  .timeline-rail { display: none; }
  .timeline-avatar { grid-row: 1 / span 2; width: 38px; height: 38px; font-size: 13px; }
  .timeline-content { grid-column: 2; padding: 0; }
  .timeline-top { gap: 10px; }
  .timeline-author { display: grid; gap: 2px; }
  .timeline-author strong { font-size: 15px; }
  .timeline-action { min-height: 44px; font-size: 12px; }
  .timeline-event { margin-top: 8px; }
  .quick-action-grid button { min-height: 76px; }
  .report-column { padding: 22px 16px; }
  .daily-save-bar { align-items: stretch; flex-direction: column; padding: 16px; }
  .daily-save-bar .button { width: 100%; }
  .section-heading { align-items: flex-start; }
  .followup-heading { flex-direction: column; }
  .followup-heading-actions { width: 100%; justify-content: space-between; }
  .issue-list { grid-template-columns: 1fr; }
  .issue-entry { padding: 17px 14px; }
  .progress-form { grid-template-columns: 1fr 106px; }
  .progress-form input { grid-column: 1 / -1; }
  .workflow-step { grid-template-columns: 40px minmax(0, 1fr); padding: 24px 14px 26px 9px; }
  .step-rail span { width: 28px; height: 28px; }
  .step-heading { display: block; }
  .step-state { display: inline-block; margin-top: 10px; }
  .meeting-form-inline { grid-template-columns: 1fr; }
  .meeting-time-field, .meeting-form-inline .button { grid-column: auto; }
  .cycle-actions { display: grid; grid-template-columns: 1fr; }
  .cycle-actions .button { width: 100%; }
  .weekly-context { padding: 19px 16px; }
  .activity-section .timeline-item { padding-right: 14px; padding-left: 14px; }
  .activity-detail-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 28px); border-radius: 16px; }
  .activity-detail-head { padding: 20px 18px 16px; }
  .activity-detail-head h2 { font-size: 22px; }
  .activity-detail-body { padding: 16px 18px 22px; }
  .issue-create-body { padding: 16px 18px 22px; }
  .dialog-actions .button { flex: 1; }
  .activity-detail-section { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
