.focus-log {
  --focus-ink: #5f586d;
  --focus-muted: #978da0;
  --focus-line: #eadde5;
  --focus-paper: #fffdfd;
  --focus-blush: #fff5f9;
  --focus-neutral: #e7e1e7;
  --focus-rating-1: #f8d5e2;
  --focus-rating-2: #f2a9c2;
  --focus-rating-3: #e979a2;
  --focus-rating-4: #d9477d;
  --focus-rating-5: #aa1559;
  --focus-time-1: #d8f2f5;
  --focus-time-2: #9cdae3;
  --focus-time-3: #58bfd0;
  --focus-time-4: #1995ad;
  --focus-time-5: #006d87;
  width: 100%;
  color: var(--focus-ink);
  color-scheme: light;
  font-family: Inter, ui-rounded, "SF Pro Rounded", "PingFang SC", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.focus-log *,
.focus-log *::before,
.focus-log *::after { box-sizing: border-box; }
.focus-log [hidden] { display: none !important; }
.focus-log button,
.focus-log input,
.focus-log textarea { font: inherit; }
.focus-log button { color: inherit; }
.focus-log[data-owner="false"] .owner-only { display: none !important; }

.l_body.content .l_main > article.md-text.content.focus-page-shell {
  width: auto;
  margin: 0 16px 22px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 31px;
  background: transparent;
  box-shadow: var(--lei-shadow);
}
.focus-page-shell > .focus-log { margin: 0; }

.focus-product {
  min-height: 640px;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 94% 4%, rgba(216,241,247,.62), transparent 24%),
    radial-gradient(circle at 4% 24%, rgba(255,228,239,.7), transparent 27%),
    var(--focus-paper);
  box-shadow: none;
}

.focus-log .focus-topbar {
  min-height: 84px;
  margin: 18px 18px 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--focus-line);
  border-radius: 22px 18px 23px 19px;
  background: rgba(255,247,251,.82);
}
.focus-brand { min-width: 0; display: flex; align-items: center; gap: 12px; }
.focus-avatar,
.focus-mini-avatar {
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.98);
  background: #e8f7fa;
  box-shadow: 0 5px 16px rgba(79,73,103,.12);
}
.focus-avatar { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 18px; }
.focus-avatar img,
.focus-mini-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.focus-brand-text { min-width: 0; }
.focus-brand-title { color: #51495e; font-size: 21px; font-weight: 850; letter-spacing: -.025em; }
.focus-brand-subtitle { margin-top: 2px; color: var(--focus-muted); font-size: 11px; }

.focus-owner-toggle,
.focus-action,
.focus-icon-button,
.focus-day-chip,
.focus-star,
.focus-choice {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
}
.focus-owner-toggle {
  min-height: 39px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 1px solid #dfced8;
  border-radius: 15px 13px 16px 12px;
  color: #71687a;
  background: rgba(255,255,255,.76);
  font-size: 11px;
  font-weight: 760;
}
.focus-owner-dot { width: 8px; height: 8px; border-radius: 50%; background: #cfc5cd; box-shadow: 0 0 0 4px rgba(207,197,205,.2); }
.focus-log[data-owner="true"] .focus-owner-dot { background: #55b9a2; box-shadow: 0 0 0 4px rgba(85,185,162,.18); }
.focus-owner-toggle:focus-visible,
.focus-action:focus-visible,
.focus-icon-button:focus-visible,
.focus-day-chip:focus-visible,
.focus-star:focus-visible,
.focus-choice:focus-visible { outline: 2px solid #bd5f8c; outline-offset: 2px; }

.focus-main { padding: 18px; display: grid; gap: 18px; }
.focus-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.focus-metric {
  min-width: 0;
  min-height: 91px;
  padding: 13px 14px;
  border: 1px solid rgba(236,221,229,.96);
  border-radius: 19px 16px 21px 17px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 7px 20px rgba(85,67,97,.055);
}
.focus-metric:nth-child(2) { background: rgba(242,251,253,.9); }
.focus-metric:nth-child(3) { background: rgba(250,247,255,.9); }
.focus-metric:nth-child(4) { background: rgba(255,249,238,.88); }
.focus-metric-label { color: var(--focus-muted); font-size: 10px; font-weight: 780; letter-spacing: .04em; text-transform: uppercase; }
.focus-metric-value { margin-top: 5px; overflow: hidden; color: #554d61; font-size: clamp(20px, 2.4vw, 26px); font-weight: 850; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.focus-metric-context { margin-top: 5px; overflow: hidden; color: #a096a7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.focus-activity,
.focus-day-panel {
  overflow: hidden;
  border: 1px solid var(--focus-line);
  border-radius: 25px 21px 27px 23px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 9px 28px rgba(84,65,97,.055);
}
.focus-activity { padding: 17px 18px 16px; }
.focus-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.focus-kicker { color: #b38199; font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.focus-heading-row h2,
.focus-day-header h3,
.focus-editor h3,
.focus-dialog h3 { margin: 2px 0 0; color: #5b5368; font-size: 18px; line-height: 1.25; letter-spacing: -.018em; }
.focus-period-nav { display: flex; align-items: center; gap: 8px; }
.focus-icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #e5d6df;
  border-radius: 14px 12px 15px 13px;
  background: #fff6fa;
  font-size: 18px;
  line-height: 1;
}
.focus-icon-button:disabled { opacity: .42; cursor: default; }
.focus-period-label { min-width: 94px; color: #736a7d; font-size: 11px; font-weight: 760; text-align: center; white-space: nowrap; }

.focus-graph-wrap { margin-top: 16px; overflow-x: auto; scrollbar-width: thin; }
.focus-months,
.focus-graph {
  --focus-mark: 31px;
  --focus-column-gap: 10px;
  min-width: 566px;
  display: grid;
  grid-template-columns: 28px repeat(13, var(--focus-mark));
  column-gap: var(--focus-column-gap);
}
.focus-months { min-height: 20px; align-items: end; color: #9d92a3; font-size: 9px; font-weight: 730; }
.focus-month-label { align-self: end; white-space: nowrap; }
.focus-weekday-labels,
.focus-graph-week { display: grid; grid-template-rows: repeat(7, var(--focus-mark)); row-gap: 7px; }
.focus-weekday-labels { color: #968c9c; font-size: 9px; font-weight: 720; text-align: center; }
.focus-weekday-labels span { display: grid; place-items: center; }
.focus-day-mark {
  --a-color: var(--focus-neutral);
  --b-color: var(--focus-neutral);
  width: var(--focus-mark);
  height: var(--focus-mark);
  display: block;
  overflow: visible;
  shape-rendering: geometricPrecision;
  cursor: default;
}
.focus-day-track,
.focus-day-progress,
.focus-day-core-outline,
.focus-day-core-divider { fill: none; }
.focus-day-track { stroke: var(--focus-neutral); stroke-width: 2.2; }
.focus-day-progress { stroke-width: 2.2; stroke-linecap: round; }
.focus-day-progress--rating { stroke: var(--a-color); }
.focus-day-progress--time { stroke: var(--b-color); }
.focus-day-core-base { fill: var(--b-color); }
.focus-day-core-rating { fill: var(--a-color); }
.focus-day-core-outline { stroke: rgba(105,94,114,.16); stroke-width: .8; }
.focus-day-core-divider { stroke: #fff; stroke-width: 1.45; stroke-linecap: round; }
.focus-day-mark.is-future { opacity: .34; }
.focus-day-mark.is-today .focus-day-core-outline { stroke: rgba(92,80,101,.48); stroke-width: 1.15; }

.focus-legend { margin-top: 18px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.focus-scale { min-width: 0; }
.focus-scale-heading { margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; color: #756c7e; font-size: 9px; font-weight: 760; }
.focus-scale-title { min-width: 0; display: inline-flex; align-items: center; gap: 6px; }
.focus-scale-half {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 1px solid #e7dce6;
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(112,91,116,.08);
}
.focus-scale-half--rating { background: linear-gradient(135deg, var(--focus-rating-4) 0 47%, #fff 48% 52%, var(--focus-neutral) 53% 100%); }
.focus-scale-half--time { background: linear-gradient(135deg, var(--focus-neutral) 0 47%, #fff 48% 52%, var(--focus-time-4) 53% 100%); }
.focus-scale-position { color: #a297a6; white-space: nowrap; }
.focus-scale-ramp { height: 8px; border-radius: 999px; }
.focus-scale-ramp.rating { background: linear-gradient(90deg, var(--focus-neutral), var(--focus-rating-1), var(--focus-rating-2), var(--focus-rating-3), var(--focus-rating-4), var(--focus-rating-5)); }
.focus-scale-ramp.time { background: linear-gradient(90deg, var(--focus-neutral), var(--focus-time-1), var(--focus-time-2), var(--focus-time-3), var(--focus-time-4), var(--focus-time-5)); }
.focus-scale-labels { margin-top: 4px; display: flex; justify-content: space-between; gap: 3px; color: #a398a8; font-size: 7px; }

.focus-week-section { display: grid; gap: 10px; }
.focus-week-heading { align-items: end; padding: 0 3px; }
.focus-day-meta { color: var(--focus-muted); font-size: 10px; }
.focus-week-strip { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; }
.focus-day-chip {
  min-width: 0;
  min-height: 57px;
  padding: 7px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid #eadce5;
  border-radius: 16px 13px 17px 14px;
  color: #756c7d;
  background: rgba(255,255,255,.78);
}
.focus-day-chip strong { font-size: 11px; line-height: 1; }
.focus-day-chip span { color: #a096a6; font-size: 8px; line-height: 1; }
.focus-day-chip.is-selected { border-color: #dd8ead; color: #ad416d; background: #fff0f6; box-shadow: 0 5px 15px rgba(177,65,109,.09); }

.focus-log .focus-day-header {
  min-height: 76px;
  margin: 10px 10px 0;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--focus-line);
  border-radius: 19px 16px 20px 17px;
  background: rgba(255,245,249,.74);
}
.focus-day-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.focus-mini-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 15px; }
.focus-day-header h3 { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.focus-status { flex: 0 0 auto; color: #665e73; font-size: 12px; font-weight: 780; white-space: nowrap; }

.focus-table-wrap { overflow-x: auto; }
.focus-table { width: 100%; min-width: 650px; table-layout: fixed; border-collapse: collapse; color: #6d6576; }
.focus-table th,
.focus-table td { padding: 12px 10px; border-bottom: 1px solid var(--focus-line); vertical-align: top; text-align: left; }
.focus-table th { color: #988da0; background: rgba(255,255,255,.7); font-size: 10px; font-weight: 800; letter-spacing: .035em; }
.focus-table td { font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.focus-col-start { width: 11%; }
.focus-col-end { width: 23%; }
.focus-col-task { width: 23%; }
.focus-col-rating { width: 17%; }
.focus-col-reflection { width: 26%; }
.focus-cell-task,
.focus-cell-reflection { min-width: 0; overflow: hidden; }
.focus-cell-ellipsis {
  width: 100%;
  max-width: 100%;
  display: block;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: help;
}
.focus-cell-ellipsis:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(203,109,150,.42);
  outline-offset: 2px;
}
.focus-time-value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.focus-end-stack { display: grid; gap: 4px; }
.focus-end-line {
  min-width: 0;
  display: grid;
  grid-template-columns: 50px minmax(0,1fr);
  align-items: baseline;
  gap: 5px;
}
.focus-end-label { color: #9d92a2; font-size: 9px; white-space: nowrap; }
.focus-end-value {
  min-width: 0;
  overflow: visible;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}
.focus-empty { color: #9f95a4; white-space: nowrap; }
.focus-rating-stars { color: #d56896; font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
.focus-rating-number { display: block; margin-top: 2px; color: #9b91a1; font-size: 8px; }
.focus-row-actions { margin-top: 6px; }
.focus-edit-row { padding: 0; border: 0; color: #ba4f7a; background: transparent; font-size: 9px; font-weight: 780; cursor: pointer; }
.focus-empty-row td { height: 82px; vertical-align: middle; color: #9c92a2; text-align: center; }

.focus-panel-footer { min-height: 64px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.focus-live-region { color: #9c92a2; font-size: 9px; }
.focus-inline-actions,
.focus-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.focus-action {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #ddcad5;
  border-radius: 15px 13px 16px 12px;
  background: #fff8fb;
  font-size: 11px;
  font-weight: 760;
}
.focus-action.primary { border-color: #d66a97; color: #fff; background: #d66a97; }
.focus-action.subtle { background: rgba(255,255,255,.82); }
.focus-action:disabled { opacity: .52; cursor: wait; }

.focus-editor { margin: 0; padding: 16px; border-top: 1px solid var(--focus-line); background: #fffbfd; }
.focus-editor h3 { margin-bottom: 12px; font-size: 15px; }
.focus-fields { display: grid; grid-template-columns: .8fr 1.15fr 1.6fr; gap: 10px; }
.focus-field { min-width: 0; display: grid; gap: 5px; }
.focus-field label { color: #7c7182; font-size: 10px; font-weight: 780; }
.focus-field input,
.focus-field textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #dfcfd9;
  border-radius: 13px 11px 14px 12px;
  outline: 0;
  color: #5f5769;
  background: #fff;
  font-size: 12px;
}
.focus-field input:focus,
.focus-field textarea:focus { border-color: #cb6d96; box-shadow: 0 0 0 3px rgba(203,109,150,.12); }
.focus-field input:disabled { color: #918697; background: #f4f0f3; }
.focus-field textarea { min-height: 88px; resize: vertical; }
.focus-field-hint { color: #a298a7; font-size: 8px; }
.focus-editor .focus-dialog-actions { margin-top: 13px; }

.focus-dialog {
  width: min(92vw, 500px);
  max-height: min(86vh, 680px);
  padding: 0;
  overflow: auto;
  border: 1px solid #e2d2dc;
  border-radius: 25px 21px 27px 23px;
  color: var(--focus-ink);
  background: #fffdfd;
  box-shadow: 0 25px 75px rgba(56,41,67,.24);
}
.focus-dialog::backdrop { background: rgba(55,43,62,.28); backdrop-filter: blur(3px); }
.focus-dialog-body { margin: 0; padding: 22px; display: grid; gap: 15px; }
.focus-dialog-copy { margin: 0; color: #8f8495; font-size: 11px; line-height: 1.55; }
.focus-checkbox { display: flex; align-items: center; gap: 8px; color: #776d7e; font-size: 10px; }
.focus-checkbox input { accent-color: #cb628e; }
.focus-dialog-error { padding: 8px 10px; border-radius: 10px; color: #9b315b; background: #ffedf3; font-size: 10px; }
.focus-star-row { display: flex; gap: 4px; }
.focus-star { padding: 0 2px; color: #d9cdd4; background: transparent; font-size: 31px; line-height: 1; }
.focus-star[aria-pressed="true"] { color: #d56896; }
.focus-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.focus-choice { min-height: 112px; padding: 15px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; border: 1px solid #e2d1db; border-radius: 18px 15px 20px 16px; background: #fff7fa; text-align: left; }
.focus-choice.primary { border-color: #de8aab; background: linear-gradient(145deg,#fff0f6,#f1fbfd); }
.focus-choice strong { color: #685e71; font-size: 13px; }
.focus-choice span { color: #968b9c; font-size: 9px; line-height: 1.5; }
.focus-next-fields { grid-template-columns: 1fr 1.4fr; }

.focus-page-message { margin: 0; padding: 9px 12px; border-radius: 12px; color: #8d4162; background: #fff0f5; font-size: 10px; }

@media screen and (max-width: 900px) {
  .focus-main { padding: 14px; gap: 14px; }
  .focus-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .focus-metric { min-height: 82px; }
}

@media screen and (max-width: 667px) {
  .l_body.content .l_main > article.md-text.content.focus-page-shell { margin: 10px 6px 16px; padding: 0; border-radius: 24px; background: transparent; box-shadow: none; }
  .focus-product { border-radius: inherit; }
  .focus-log .focus-topbar { min-height: 74px; margin: 10px 10px 0; padding: 12px 13px; border-radius: 18px 15px 19px 16px; }
  .focus-avatar { width: 44px; height: 44px; flex-basis: 44px; border-radius: 15px; }
  .focus-brand { gap: 9px; }
  .focus-brand-title { font-size: 18px; }
  .focus-brand-subtitle { max-width: 150px; font-size: 8.5px; }
  .focus-owner-toggle { min-height: 35px; padding: 7px 9px; }
  .focus-owner-label { display: none; }
  .focus-main { padding: 10px; gap: 11px; }
  .focus-metrics { gap: 6px; }
  .focus-metric { min-height: 75px; padding: 10px; border-radius: 16px 13px 18px 14px; }
  .focus-metric-label { font-size: 8px; }
  .focus-metric-value { font-size: 19px; }
  .focus-metric-context { font-size: 7.5px; }
  .focus-activity { padding: 13px 10px 12px; }
  .focus-heading-row h2 { font-size: 15px; }
  .focus-period-nav { gap: 4px; }
  .focus-period-label { min-width: 68px; font-size: 8px; }
  .focus-icon-button { width: 32px; height: 32px; border-radius: 12px; }
  .focus-graph-wrap { margin-top: 12px; }
  .focus-months,
  .focus-graph {
    --focus-mark: 17px;
    --focus-column-gap: 3px;
    min-width: 276px;
    grid-template-columns: 18px repeat(13,var(--focus-mark));
  }
  .focus-months { min-height: 17px; font-size: 7px; }
  .focus-weekday-labels,
  .focus-graph-week { row-gap: 4px; }
  .focus-weekday-labels { font-size: 6.5px; }
  .focus-legend { margin-top: 14px; grid-template-columns: 1fr; gap: 11px; }
  .focus-scale-heading { font-size: 8px; }
  .focus-week-heading .focus-day-meta { display: none; }
  .focus-week-strip { gap: 3px; }
  .focus-day-chip { min-height: 48px; padding-inline: 1px; border-radius: 13px 10px 14px 11px; }
  .focus-day-chip strong { font-size: 9px; }
  .focus-day-chip span { font-size: 6.8px; }
  .focus-log .focus-day-header { min-height: 68px; margin: 7px 7px 0; padding: 10px 11px; border-radius: 16px 13px 17px 14px; }
  .focus-mini-avatar { width: 36px; height: 36px; flex-basis: 36px; border-radius: 13px; }
  .focus-day-header h3 { max-width: 185px; font-size: 14px; }
  .focus-status { font-size: 10px; }
  .focus-table { width: 100%; min-width: 0; display: block; table-layout: auto; }
  .focus-table thead { display: none; }
  .focus-table tbody,
  .focus-table tr,
  .focus-table td { width: 100%; max-width: 100%; display: block; }
  .focus-table tr { overflow: hidden; padding: 10px 11px; border-bottom: 1px solid var(--focus-line); }
  .focus-table td { min-width: 0; min-height: 28px; overflow: hidden; padding: 4px 4px 4px 78px; position: relative; border: 0; font-size: 10px; }
  .focus-table td::before { content: attr(data-label); width: 68px; position: absolute; left: 4px; top: 5px; color: #9b90a0; font-size: 8px; font-weight: 780; }
  .focus-empty-row { padding: 0 !important; }
  .focus-empty-row td { height: 72px; padding: 26px 10px; }
  .focus-empty-row td::before { display: none; }
  .focus-end-line { grid-template-columns: 48px minmax(0,1fr); }
  .focus-panel-footer { min-height: 59px; padding: 9px 10px; }
  .focus-live-region { max-width: 108px; font-size: 7.5px; }
  .focus-inline-actions { gap: 5px; }
  .focus-action { min-height: 36px; padding: 7px 9px; font-size: 9.5px; }
  .focus-editor { padding: 13px 11px; }
  .focus-fields,
  .focus-next-fields { grid-template-columns: 1fr; }
  .focus-dialog-body { padding: 18px 15px; }
  .focus-choice-grid { grid-template-columns: 1fr; }
  .focus-choice { min-height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .focus-log *,
  .focus-log *::before,
  .focus-log *::after { scroll-behavior: auto !important; transition: none !important; }
}
