:root {
  --bg: #f2f5f2;
  --card: #fff;
  --ink: #20302d;
  --muted: #71837f;
  --line: #d5dfda;
  --teal: #087d77;
  --teal-dark: #076a65;
  --aqua: #86c5bd;
  --blue: #5a9dea;
  --green: #6fc88b;
  --serif: Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 16px/1.5 Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
a { color: var(--teal); }
.app-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1740px; margin: auto; padding: 17px 30px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand img { width: 37px; height: 37px; object-fit: contain; }
.brand span { font: 700 25px/1 var(--serif); }
.brand small { margin-left: 5px; border-left: 1px solid var(--line); padding-left: 15px; color: var(--teal); font: 700 10px/1.3 var(--mono); letter-spacing: .17em; }
.top-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.top-nav a, .top-nav button { display: inline-block; border: 0; border-radius: 5px; padding: 9px 13px; background: transparent; color: #47605a; text-decoration: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.top-nav a:hover, .top-nav button:hover { background: #e5f0ec; color: var(--teal-dark); }
.top-nav .active { color: var(--teal-dark); background: #e5f0ec; }
.top-nav form { margin: 0; }
.dashboard-shell { max-width: 1740px; margin: 0 auto; padding: 38px 30px 76px; }
.page-intro { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-bottom: 38px; border-bottom: 1px solid #cbd6d0; }
.eyebrow, .section-label, .metric-label, .month-picker label { display: block; margin: 0 0 9px; color: var(--teal); font: 700 11px/1.3 var(--mono); letter-spacing: .17em; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h1 { font-size: clamp(36px, 3.4vw, 58px); line-height: 1.12; margin: 0 0 14px; }
.intro-copy { font-size: 18px; color: #657a75; margin: 0 0 15px; max-width: 750px; }
.text-link { font-size: 15px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.month-picker { flex: 0 0 360px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.month-picker label { color: #576b65; margin-bottom: 12px; }
.month-controls { display: flex; gap: 10px; }
.month-controls input { min-width: 0; width: 48%; border: 1px solid #bbc9c3; background: #f8faf8; border-radius: 5px; padding: 9px 11px; color: var(--ink); }
.month-controls button, .primary-button { border: 1px solid var(--teal); background: var(--teal); color: #fff; border-radius: 5px; padding: 10px 16px; cursor: pointer; font-weight: 700; }
.month-controls button { flex: 1; }
.month-controls button:hover, .primary-button:hover { background: var(--teal-dark); }
.metric-grid { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); margin: 36px 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.metric-card { min-height: 160px; padding: 27px 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.metric-card:first-child { border-left: 0; }
.metric-card strong { color: #162a28; font: 400 clamp(32px, 2.6vw, 48px)/1.15 var(--serif); margin: 8px 0 3px; }
.metric-card small { color: #83918d; font-size: 14px; }
.metric-primary { background: linear-gradient(135deg, #0a817b, #076c68); color: white; }
.metric-primary .metric-label, .metric-primary strong, .metric-primary small { color: white; }
.metric-primary strong { font-size: clamp(45px, 3vw, 57px); }
.metric-label { color: #586a64; margin: 0; }
.panel { background: var(--card); border: 1px solid var(--line); box-shadow: 0 8px 26px rgba(17, 50, 42, .035); border-radius: 9px; padding: 29px 30px 25px; margin-bottom: 24px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 25px; }
.section-label { margin-bottom: 5px; }
h2 { font-size: clamp(26px, 2vw, 33px); line-height: 1.2; margin: 0; }
.panel-note { color: #81908c; font-size: 13px; margin: 4px 0 0; text-align: right; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel-grid .panel { min-height: 390px; }
.daily-chart { position: relative; height: 300px; padding-bottom: 36px; margin: 5px 3px 0; }
.daily-chart.compact { height: 220px; }
.chart-grid { position: absolute; left: 0; right: 0; top: 0; bottom: 36px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart-grid span { border-top: 1px solid #e1e8e3; width: 100%; }
.daily-columns { position: relative; z-index: 1; display: flex; height: 100%; align-items: stretch; }
.day-column { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.day-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 1px; padding: 0 2px; }
.day-bars span { display: block; width: min(42%, 18px); min-height: 0; transition: opacity .2s; }
.day-bars span:hover { opacity: .7; }
.bar-total { background: var(--blue); }
.bar-registered { background: var(--green); }
.bar-visit { background: var(--teal); }
.day-label { height: 36px; width: 100%; overflow: visible; padding-top: 8px; text-align: center; color: #74817e; font: 11px/1.3 Arial, sans-serif; white-space: nowrap; }
.legend { display: flex; justify-content: center; gap: 28px; color: #60716c; font-size: 13px; padding-top: 12px; }
.legend span { display: flex; gap: 9px; align-items: center; }
.legend i { width: 12px; height: 12px; display: inline-block; }
.legend-total { background: var(--blue); }
.legend-registered { background: var(--green); }
.chart-footnote { color: #83928d; margin: 14px 0 0; font-size: 13px; }
.horizontal-chart { display: grid; gap: 11px; min-height: 260px; }
.chart-row { display: grid; grid-template-columns: minmax(130px, 33%) 1fr 40px; align-items: center; gap: 10px; font-size: 13px; }
.chart-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #566863; }
.chart-track { height: 24px; background: repeating-linear-gradient(90deg, #fff 0, #fff calc(25% - 1px), #e5ebe7 calc(25% - 1px), #e5ebe7 25%); }
.chart-fill { height: 100%; display: block; min-width: 1px; }
.chart-fill.teal { background: var(--teal); }
.chart-fill.aqua { background: var(--aqua); }
.chart-row strong { font-weight: 500; color: #50635c; }
.detail-disclosure { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 21px; }
.detail-disclosure summary { color: var(--teal); font-weight: 700; cursor: pointer; }
.detail-disclosure .table-scroll { max-height: 240px; overflow-y: auto; margin-top: 10px; }
.table-scroll { width: 100%; overflow-x: auto; }
.table-fixed-height { max-height: 290px; overflow-y: auto; }
table { border-collapse: collapse; width: 100%; }
th { color: #647a72; font: 700 10px/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; border-bottom: 1px solid #ccd9d2; padding: 11px 13px; text-align: left; white-space: nowrap; }
td { border-bottom: 1px solid #e5ebe7; color: #344841; padding: 13px; font-size: 14px; vertical-align: top; }
tbody tr:hover { background: #f8fbf9; }
tbody tr:last-child td { border-bottom: 0; }
.task-table { min-width: 1040px; }
.task-table td { padding-top: 16px; padding-bottom: 16px; }
.date-cell { white-space: nowrap; color: #687b73; }
.mono { font-family: var(--mono); font-size: 12px; }
.task-link { color: #153c38; font-weight: 700; text-decoration: none; white-space: nowrap; }
.task-link:hover { color: var(--teal); text-decoration: underline; }
.ptm-list { display: block; max-width: 220px; line-height: 1.35; }
.task-table td small { display: block; color: #8a9893; font-size: 12px; margin-top: 5px; }
.pill { display: inline-block; border-radius: 30px; background: #e7f1ee; color: var(--teal-dark); padding: 4px 10px; font-size: 11px; font-weight: 700; white-space: nowrap; text-transform: capitalize; }
.pill.anonymous { background: #f2eee7; color: #8d6c41; }
.pill.status { background: #e8f2ed; }
.user-disclosure summary { color: var(--teal-dark); font-weight: 700; cursor: pointer; }
.user-disclosure > div { margin-top: 8px; padding: 10px; background: #f2f7f4; border-radius: 5px; min-width: 220px; font-size: 12px; line-height: 1.7; }
.user-disclosure b { color: #6c7e78; font-weight: 600; }
.section-intro { margin: -9px 0 18px; color: #7a8d86; font-size: 14px; }
.empty-state { color: #90a19a; padding: 30px 10px; text-align: center; }
.name-cell { font-weight: 700; color: #183c37; }
.purpose-cell { max-width: 420px; overflow-wrap: anywhere; }
.pagination { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 18px; color: #81908a; font-size: 13px; }
.pagination div { display: flex; gap: 16px; }
.pagination a { color: var(--teal); font-weight: 700; text-decoration: none; }
.pagination a:hover { text-decoration: underline; }
.account-layout { max-width: 1120px; margin: 55px auto; padding: 0 28px; }
.auth-card, .tasks-card { background: white; border: 1px solid var(--line); border-radius: 9px; padding: clamp(26px, 4vw, 44px); box-shadow: 0 8px 26px rgba(17, 50, 42, .035); }
.auth-card { max-width: 560px; margin: auto; }
.auth-card h1, .tasks-card h1 { font-size: 43px; margin-bottom: 10px; }
.auth-copy { color: #71847c; margin: 0 0 24px; }
.account-form p { margin: 0 0 17px; }
.account-form .form-field { margin: 0 0 18px; }
.account-form label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 7px; }
.account-form .required-mark { color: #c23c44; font-weight: 800; }
.account-form input, .account-form textarea { display: block; width: 100%; border: 1px solid #b9c9c1; background: #fbfcfb; border-radius: 5px; padding: 11px 12px; color: var(--ink); }
.account-form input:focus, .account-form textarea:focus, .month-controls input:focus { outline: 2px solid #91cec5; outline-offset: 1px; }
.account-form .helptext { display: block; color: #899a92; font-size: 12px; margin-top: 5px; }
.account-form .helptext ul { margin: 6px 0 0; padding-left: 18px; }
.account-form .field-help { display: block; color: #899a92; font-size: 12px; margin-top: 5px; }
.account-form .field-help ul { margin: 6px 0 0; padding-left: 18px; }
.account-form .errorlist { color: #b33939; font-size: 13px; margin: 5px 0; padding-left: 18px; }
.account-form .field-errors + .field-help { margin-top: 8px; }
.account-form .primary-button { width: 100%; margin-top: 6px; }
.auth-footer { color: #708179; font-size: 14px; margin-top: 22px; }
.tasks-card .table-scroll { margin-top: 24px; }
.tasks-card .task-table { min-width: 720px; }
@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-card:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .metric-card:nth-child(5) { border-top: 1px solid var(--line); }
  .panel-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 720px) {
  .header-inner { padding: 14px 18px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .top-nav { width: 100%; gap: 2px; }
  .top-nav a, .top-nav button { padding: 7px 8px; font-size: 12px; }
  .dashboard-shell { padding: 26px 16px 50px; }
  .page-intro { flex-direction: column; align-items: stretch; padding-bottom: 26px; }
  .month-picker { flex-basis: auto; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); margin: 24px 0; }
  .metric-card { min-height: 133px; padding: 19px; }
  .metric-card:nth-child(odd) { border-left: 0; }
  .metric-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .metric-card strong { font-size: 34px; }
  .panel { padding: 22px 18px; }
  .panel-heading { flex-direction: column; margin-bottom: 19px; }
  .panel-note { text-align: left; }
  .daily-chart { height: 230px; }
  .day-label { font-size: 9px; transform: rotate(-35deg); transform-origin: 50% 30%; }
  .chart-row { grid-template-columns: minmax(95px, 35%) 1fr 28px; gap: 6px; }
  .chart-name { font-size: 11px; }
  .chart-track { height: 19px; }
  .account-layout { margin: 24px auto; padding: 0 16px; }
}

/* Statistics workspace: soft SaaS dashboard styling. */
.dashboard-page { background: #f5f9fa; color: #1c2b3a; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.dashboard-page h1, .dashboard-page h2, .dashboard-page .metric-card strong { font-family: inherit; letter-spacing: -.045em; }
.dashboard-page .app-header { position: sticky; top: 0; z-index: 20; border-color: #e7edf0; box-shadow: 0 1px 8px rgba(30, 60, 75, .025); }
.dashboard-page .header-inner { max-width: none; padding: 12px 28px; min-height: 68px; }
.dashboard-page .brand span { font: 750 23px/1.1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; letter-spacing: -.045em; }
.dashboard-page .brand small { color: #93a2ae; }
.dashboard-page .top-nav .active { color: #0a9a8c; background: #ecfaf6; }
.dashboard-workspace { display: grid; grid-template-columns: 228px minmax(0, 1fr); max-width: 1900px; margin: 0 auto; min-height: calc(100vh - 68px); }
.dashboard-sidebar { position: sticky; top: 68px; align-self: start; height: calc(100vh - 68px); padding: 29px 14px; background: #fff; border-right: 1px solid #e5ecef; display: flex; flex-direction: column; gap: 5px; }
.sidebar-caption { padding: 0 15px 10px; color: #9eacb5; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.sidebar-divider { padding-top: 28px; }
.dashboard-sidebar a { display: flex; align-items: center; gap: 13px; min-height: 43px; padding: 8px 14px; color: #627587; text-decoration: none; border-radius: 11px; font-size: 13px; font-weight: 650; }
.dashboard-sidebar a:hover, .dashboard-sidebar a.selected { color: #079b89; background: #eaf9f5; }
.sidebar-icon { width: 20px; color: #9aaaaf; font-size: 20px; line-height: 1; text-align: center; }
.dashboard-sidebar a.selected .sidebar-icon, .dashboard-sidebar a:hover .sidebar-icon { color: #11aa97; }
.sidebar-footer { margin-top: auto; padding: 19px 15px 0; border-top: 1px solid #eef2f4; color: #293a49; font-size: 12px; font-weight: 700; }
.sidebar-footer span { display: block; color: #9aaab3; font-weight: 400; margin-top: 3px; }
.dashboard-page .dashboard-shell { width: 100%; max-width: none; padding: 32px clamp(22px, 3vw, 44px) 80px; background: radial-gradient(ellipse at 44% 0, #e8f8f5 0, #f5f9fa 35%, #f5f9fa 100%); }
.dashboard-page .page-intro { align-items: center; border: 0; padding: 0 0 25px; }
.dashboard-page .eyebrow { color: #08a18e; letter-spacing: .11em; }
.dashboard-page h1 { font-size: clamp(34px, 3vw, 47px); font-weight: 760; margin-bottom: 4px; }
.dashboard-page .intro-copy { font-size: 14px; color: #8393a0; margin: 0; }
.dashboard-page .month-picker { flex-basis: 285px; padding: 11px 13px; border: 1px solid #e4edf0; border-radius: 12px; box-shadow: 0 3px 12px rgba(43, 75, 90, .045); }
.dashboard-page .month-picker label { margin-bottom: 6px; color: #99a8b0; font-size: 10px; }
.dashboard-page .month-controls input { width: 54%; padding: 7px 8px; border-color: #e1e9eb; background: #fff; }
.dashboard-page .month-controls button { padding: 7px 11px; border-radius: 7px; background: #0aaa98; border-color: #0aaa98; font-size: 12px; }
.dashboard-page .metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin: 0 0 24px; padding: 0; border: 0; background: transparent; border-radius: 0; overflow: visible; }
.dashboard-page .metric-card, .dashboard-page .metric-card:nth-child(n) { position: relative; min-height: 145px; padding: 20px 21px; background: #fff; border: 1px solid #e8eef1; border-radius: 17px; box-shadow: 0 3px 0 rgba(24, 53, 65, .025), 0 12px 22px rgba(24, 53, 65, .025); }
.dashboard-page .metric-card.metric-primary { background: linear-gradient(145deg, #0ba998, #078e82); border-color: #0a9c8e; }
.dashboard-page .metric-label { margin: 2px 0 0; color: #8b9aa5; font-size: 11px; line-height: 1.3; font-family: inherit; font-weight: 700; letter-spacing: .05em; }
.dashboard-page .metric-card strong { color: #1b2c3b; font-size: clamp(29px, 2.5vw, 39px); line-height: 1.1; font-weight: 780; margin: 9px 0 4px; }
.dashboard-page .metric-card small { color: #9baab3; font-size: 11px; }
.dashboard-page .metric-primary .metric-label, .dashboard-page .metric-primary strong, .dashboard-page .metric-primary small { color: #fff; }
.metric-icon { position: absolute; right: 19px; top: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e9f8f5; color: #08a68f; font-size: 19px; font-weight: 700; }
.metric-primary .metric-icon { background: rgba(255,255,255,.18); color: #fff; }
.metric-icon.blue-icon { background: #e9f2ff; color: #4b8df8; }
.metric-icon.purple-icon { background: #f2edff; color: #9673f0; }
.metric-icon.amber-icon { background: #fff3da; color: #e9a01d; }
.metric-icon.green-icon { background: #e5faef; color: #22b573; }
.dashboard-page .panel { border-color: #e8eef1; border-radius: 18px; padding: 23px 25px; box-shadow: 0 3px 0 rgba(24, 53, 65, .025), 0 16px 27px rgba(24, 53, 65, .022); }
.dashboard-page .panel-grid { gap: 22px; }
.dashboard-page .panel-grid .panel { min-height: 350px; }
.dashboard-page .panel-heading { margin-bottom: 19px; }
.dashboard-page .section-label { color: #09a996; font-size: 10px; letter-spacing: .1em; }
.dashboard-page h2 { font-size: clamp(19px, 1.55vw, 24px); font-weight: 750; }
.dashboard-page .panel-note, .dashboard-page .chart-footnote, .dashboard-page .section-intro { color: #9aa8b0; }
.dashboard-page .bar-total { background: #4b8df8; border-radius: 4px 4px 0 0; }
.dashboard-page .bar-registered { background: #1bc29e; border-radius: 4px 4px 0 0; }
.dashboard-page .bar-visit { background: #19bcae; border-radius: 4px 4px 0 0; }
.dashboard-page .legend-total { background: #4b8df8; }
.dashboard-page .legend-registered { background: #1bc29e; }
.dashboard-page .chart-fill.teal { background: #4b8df8; }
.dashboard-page .chart-fill.aqua { background: #1bc29e; }
.dashboard-page .outcome-fill { background: #9673f0; }
.dashboard-page .chart-track { height: 18px; background: #edf3f5; border-radius: 20px; overflow: hidden; }
.dashboard-page .chart-fill { border-radius: 20px; }
.dashboard-page .horizontal-chart { min-height: 0; gap: 13px; }
.dashboard-page .chart-row { grid-template-columns: minmax(112px, 34%) 1fr 35px; }
.dashboard-page .chart-name { color: #667989; }
.donut-summary { display: flex; align-items: center; gap: 26px; margin: 7px 0 27px; }
.donut-chart { flex: 0 0 clamp(145px, 14vw, 185px); width: clamp(145px, 14vw, 185px); height: clamp(145px, 14vw, 185px); border-radius: 50%; display: grid; place-items: center; }
.donut-chart > div { width: 61%; height: 61%; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: white; box-shadow: 0 0 0 1px #f4f7f8 inset; }
.donut-chart strong { color: #273747; font-size: 30px; line-height: 1; }
.donut-chart small { color: #9daab4; font-size: 11px; margin-top: 5px; }
.donut-legend { flex: 1; min-width: 0; display: grid; gap: 8px; }
.donut-legend > div { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 9px; color: #677988; font-size: 12px; }
.donut-legend i { width: 9px; height: 9px; border-radius: 50%; }
.donut-legend span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.donut-legend strong { color: #273747; }
.result-grid .panel { min-height: 275px !important; }
.result-explainer { background: linear-gradient(135deg, #fff, #f9fffd) !important; }
.mix-summary { display: grid; gap: 10px; }
.mix-summary > div { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; background: #f3f9f8; border-radius: 10px; color: #647989; font-size: 13px; }
.mix-summary strong { color: #0c9f90; font-size: 20px; line-height: 1; }
.dashboard-page th { color: #9aaab4; background: #fbfcfd; border-color: #e8eff2; }
.dashboard-page td { border-color: #edf2f4; }
@media (max-width: 1300px) {
  .dashboard-page .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-page .panel-grid { grid-template-columns: 1fr; }
  .dashboard-page .panel-grid .panel { min-height: 0; }
}
@media (max-width: 900px) {
  .dashboard-workspace { display: block; }
  .dashboard-sidebar { position: static; height: auto; padding: 8px 15px; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e5ecef; }
  .dashboard-sidebar a { white-space: nowrap; }
  .dashboard-sidebar .sidebar-caption, .dashboard-sidebar .sidebar-footer { display: none; }
  .dashboard-page .dashboard-shell { padding: 24px 18px 55px; }
}
@media (max-width: 720px) {
  .dashboard-page .header-inner { padding: 12px 17px; min-height: 0; }
  .dashboard-page .page-intro { align-items: stretch; gap: 17px; }
  .dashboard-page .month-picker { flex-basis: auto; }
  .dashboard-page .metric-grid { gap: 10px; }
  .dashboard-page .metric-card, .dashboard-page .metric-card:nth-child(n) { min-height: 124px; padding: 16px; }
  .dashboard-page .metric-card strong { font-size: 29px; }
  .dashboard-page .metric-label { font-size: 9px; max-width: 75%; }
  .metric-icon { right: 12px; top: 12px; width: 29px; height: 29px; font-size: 15px; }
  .dashboard-page .panel { padding: 19px 16px; }
  .donut-summary { gap: 16px; }
  .donut-chart { flex-basis: 125px; width: 125px; height: 125px; }
  .donut-chart strong { font-size: 23px; }
}

/* Refined account and analytics surfaces: restrained, high-contrast, responsive. */
:root { --bg: #f5f5f7; --ink: #1d1d1f; --muted: #515a66; --line: #dfe3e8; --teal: #007c72; --teal-dark: #00685f; }
body { background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
h1, h2, .brand span { font-family: inherit; letter-spacing: -.035em; }
.app-header { border-color: #e5e5e8; }
.brand small { color: #536371; }
.top-nav a, .top-nav button { color: #394650; border-radius: 9px; }
.top-nav a:focus-visible, .top-nav button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #61b9ef; outline-offset: 2px; }
.auth-card, .tasks-card { border-color: #e5e5e9; border-radius: 20px; box-shadow: 0 14px 42px rgba(25, 37, 44, .045); }
.auth-copy, .auth-footer { color: #56616b; }
.account-form .field-help { color: #59646e; line-height: 1.5; }
.account-form input, .account-form textarea { border-color: #b9c2ca; background: #fff; border-radius: 10px; }
.account-form input:focus, .account-form textarea:focus { border-color: #007c72; }
.primary-button { display: inline-block; text-decoration: none; border-radius: 10px; }
.secondary-button { display: inline-block; color: #006f66; font-size: 14px; font-weight: 650; padding: 10px 15px; border: 1px solid #cbd8d6; border-radius: 10px; background: #fff; text-decoration: none; }
.secondary-button:hover { background: #f1f8f6; }
.task-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 22px; }
.task-actions .primary-button { margin-right: 3px; }
.dashboard-page { background: #f5f5f7; }
.dashboard-page .dashboard-shell { background: radial-gradient(ellipse at 47% 0, #eaf7f4 0, #f5f5f7 42%, #f5f5f7 100%); }
.dashboard-page .metric-card, .dashboard-page .metric-card:nth-child(n), .dashboard-page .panel { box-shadow: 0 8px 28px rgba(24, 40, 48, .045); border-color: #e5e7eb; }
.dashboard-page .eyebrow, .dashboard-page .section-label { color: #006e65; }
.dashboard-page .intro-copy, .dashboard-page .panel-note, .dashboard-page .chart-footnote, .dashboard-page .section-intro { color: #566575; }
.dashboard-page .metric-label { color: #526273; font-size: 12px; }
.dashboard-page .metric-card small { color: #5b6877; font-size: 12px; }
.dashboard-page .metric-primary small { color: #fff; }
.dashboard-page .month-picker label, .sidebar-caption { color: #586574; }
.dashboard-page .day-label { color: #526170; font-size: 11px; transform: none; }
.dashboard-page .chart-name { color: #3c4b59; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.dashboard-page .donut-legend > div { color: #415160; font-size: 12px; }
.dashboard-page .donut-chart small { color: #526273; }
.dashboard-page th { color: #4b5a68; }
.dashboard-page td { color: #303d48; }
.dashboard-page .empty-state { color: #526273; }
.dashboard-page .mix-summary > div { color: #394b59; }
.period-switch { display: inline-flex; flex-wrap: wrap; gap: 3px; margin-top: 21px; padding: 4px; background: #e7ebed; border-radius: 11px; }
.period-switch a { padding: 8px 15px; border-radius: 8px; color: #435363; text-decoration: none; font-size: 13px; font-weight: 650; }
.period-switch a:hover { color: #006e65; }
.period-switch a.active { background: white; color: #006e65; box-shadow: 0 1px 5px rgba(20, 40, 50, .1); }
.dashboard-page .daily-chart.aggregated-chart .day-bars span { width: min(35%, 26px); }
.dashboard-page .daily-chart.aggregated-chart .day-label { font-size: 12px; }
.settings-layout { max-width: 1120px; margin: 0 auto; padding: 48px 28px 80px; }
.settings-intro { margin-bottom: 30px; }
.settings-intro .eyebrow { color: #006e65; }
.settings-intro h1 { font-size: clamp(34px, 4vw, 50px); font-weight: 750; margin: 0 0 8px; }
.settings-intro > p:last-child { color: #53616c; margin: 0; }
.settings-grid { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 25px; align-items: start; }
.settings-menu, .settings-card { background: white; border: 1px solid #e5e5e9; border-radius: 18px; box-shadow: 0 12px 32px rgba(25, 37, 44, .035); }
.settings-menu { padding: 17px 12px; }
.settings-menu p { margin: 0 12px 11px; color: #5c6875; font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.settings-menu a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 10px; color: #3e4d59; font-size: 14px; font-weight: 600; text-decoration: none; }
.settings-menu a:hover, .settings-menu a.active { background: #edf7f5; color: #006e65; }
.settings-card { padding: clamp(23px, 4vw, 39px); }
.settings-card-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 23px; }
.settings-card-head h2 { font-size: 26px; font-weight: 720; }
.settings-card-head .section-label { color: #006e65; }
.settings-avatar { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: #e6f5f2; color: #00756a; font-weight: 760; }
.settings-card .account-form { max-width: 620px; }
.settings-card .form-field { margin-bottom: 20px; }
.settings-card .account-form input, .settings-card .account-form textarea { padding: 12px 14px; }
.settings-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding-top: 4px; }
.settings-actions a { color: #006e65; font-size: 14px; font-weight: 600; text-decoration: none; }
.settings-actions a:hover { text-decoration: underline; }
.success-message { padding: 12px 15px; margin-bottom: 20px; border: 1px solid #aed9c9; border-radius: 10px; background: #eaf8f1; color: #116542; font-size: 14px; }
.verification-row { display: flex; gap: 10px; align-items: stretch; }
.account-form .verification-row input { flex: 1; min-width: 0; width: auto; letter-spacing: .17em; font-weight: 650; }
.verification-row .secondary-button { flex: 0 0 auto; min-width: 116px; cursor: pointer; }
.verification-row .secondary-button:disabled { opacity: .6; cursor: wait; }
.verification-hint { display: block; margin-top: 7px; color: #53616b; font-size: 12px; line-height: 1.45; }
.verification-status { display: block; min-height: 19px; margin-top: 6px; font-size: 12px; font-weight: 650; }
.verification-status.success { color: #12613b; }
.verification-status.error { color: #a8323a; }
@media (max-width: 1000px) {
  .dashboard-page .donut-summary { flex-wrap: wrap; }
  .dashboard-page .donut-legend { flex-basis: 180px; }
}
@media (max-width: 720px) {
  .dashboard-page .metric-label { font-size: 11px; }
  .dashboard-page .metric-card small { font-size: 11px; }
  .dashboard-page .daily-chart:not(.aggregated-chart) { overflow-x: auto; overflow-y: hidden; }
  .dashboard-page .daily-chart:not(.aggregated-chart) .daily-columns,
  .dashboard-page .daily-chart:not(.aggregated-chart) .chart-grid { min-width: 560px; }
  .dashboard-page .daily-chart:not(.aggregated-chart) .day-label { font-size: 11px; }
  .dashboard-page .chart-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; column-gap: 8px; }
  .dashboard-page .chart-name { grid-column: 1; grid-row: 1; font-size: 12px; }
  .dashboard-page .chart-row strong { grid-column: 2; grid-row: 1; }
  .dashboard-page .chart-track { grid-column: 1 / -1; grid-row: 2; }
  .dashboard-page .donut-summary { align-items: center; }
  .dashboard-page .donut-legend { flex-basis: 140px; }
  .settings-layout { padding: 29px 16px 55px; }
  .settings-grid { display: block; }
  .settings-menu { display: flex; gap: 5px; padding: 7px; margin-bottom: 14px; overflow-x: auto; }
  .settings-menu p { display: none; }
  .settings-menu a { flex: 0 0 auto; white-space: nowrap; font-size: 13px; }
  .settings-menu a span { display: none; }
  .settings-card { padding: 22px 18px; }
  .verification-row { flex-wrap: wrap; }
  .verification-row .secondary-button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .day-bars span { transition: none; } }
