:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: #233c57;
  background: #f3f6fa;
  font-synthesis: none;
  line-height: 1.6;
  --blue: #185ca8;
  --muted: #60738a;
  --line: #dfe7f0;
  --orange: #a75e19;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button,
input,
select {
  min-height: 44px;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #8eb9f1;
  outline-offset: 2px;
}
input,
select {
  width: 100%;
  border: 1px solid #cedbe9;
  border-radius: 9px;
  background: #fff;
  color: #253f5c;
  padding: 9px 11px;
  font-size: 15px;
}
input[type="date"] {
  min-width: 0;
}
input[type="password"] {
  letter-spacing: 0.12em;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: -0.5px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
p {
  line-height: 1.85;
}
.shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 18px 100px;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 8px;
}
.logo {
  width: 155px;
  height: auto;
  display: block;
}
.web-label {
  font-size: 12px;
  line-height: 1.4;
  color: #345e8b;
  background: #e6eff9;
  border: 1px solid #d5e3f4;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.branch {
  font-size: 13px;
  letter-spacing: 0.4px;
  color: #4a6582;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0 14px;
}
.eyebrow {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.identity {
  max-width: 49%;
  width: auto;
  min-width: 0;
  font-size: 13px;
  background: #fff;
}
.scope {
  font-size: 12px;
  color: #4a6787;
  margin: 0 0 14px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
  margin: 16px 0;
}
.compact {
  padding: 16px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.toolbar > * {
  min-width: 0;
}
.date-control {
  flex: 1;
  max-width: 230px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 9px;
  border: 1px solid #cddced;
  background: #fff;
  font-size: 14px;
  color: #285b90;
  line-height: 1.4;
  gap: 5px;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  font-weight: 600;
}
.btn.full {
  width: 100%;
}
.btn.subtle {
  background: #eef4fb;
  border-color: #e0e9f6;
}
.btn.link {
  border-color: transparent;
  padding-left: 0;
  justify-content: flex-start;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 14px;
}
.day {
  min-height: 60px;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 9px;
  color: #4c647f;
  font-size: 17px;
  line-height: 1.5;
}
.day small {
  font-size: 11px;
  color: #6e8199;
}
.day.on {
  background: #195da8;
  color: white;
}
.day.on small {
  color: #dbeafa;
}
.data-dot {
  width: 4px;
  height: 4px;
  background: #4383c5;
  border-radius: 100%;
  margin-top: 3px;
}
.day.on .data-dot {
  background: white;
}
.data-dot.blank {
  visibility: hidden;
}
.segments {
  display: flex;
  gap: 5px;
  background: #edf2f8;
  padding: 4px;
  border-radius: 10px;
  flex: 1;
}
.segments button {
  flex: 1;
  padding: 7px 8px;
  min-height: 38px;
  font-size: 14px;
  border-radius: 7px;
  white-space: nowrap;
  color: #516c89;
}
.segments button.on {
  color: #1c5590;
  background: #fff;
  box-shadow: 0 1px 5px #12395c10;
  font-weight: 600;
}
.person-select {
  max-width: 150px;
  flex: 1;
}
.brief {
  padding: 22px 21px;
}
.brief-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.brief-title {
  font-size: 18px;
  font-weight: 650;
}
.brief-date {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.topic {
  padding: 0 0 21px;
}
.topic:last-of-type {
  padding-bottom: 8px;
}
.topic h3 {
  color: #185da8;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.topic h3:before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: #4189c9;
}
.topic p {
  font-size: 15px;
  color: #304b68;
  text-wrap: pretty;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.brief-actions {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.brief-actions .btn {
  flex: 1;
  white-space: nowrap;
}
.notice {
  border: 1px solid #e9d5ba;
  background: #fff8ee;
  color: #85501f;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.75;
  margin: 15px 0;
  overflow-wrap: anywhere;
}
.notice.error {
  border-color: #e6baba;
  background: #fff4f4;
  color: #9d3434;
}
.notice.success {
  border-color: #c6ddd4;
  background: #eff8f4;
  color: #2a6852;
}
.muted {
  font-size: 13px;
  color: var(--muted);
}
.small-note {
  font-size: 12px;
  color: #667b91;
  line-height: 1.7;
  margin-top: 10px;
}
.empty {
  padding: 30px 12px;
  text-align: center;
  color: #60758d;
  font-size: 14px;
  line-height: 1.9;
}
.nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: #ffffffed;
  backdrop-filter: blur(15px);
  border-top: 1px solid #dce6f1;
  padding: 7px max(10px, env(safe-area-inset-right))
    calc(7px + env(safe-area-inset-bottom));
  z-index: 5;
}
.nav-inner {
  display: flex;
  width: 100%;
  max-width: 880px;
  margin: auto;
  gap: 5px;
}
.nav button {
  flex: 1;
  color: #667b95;
  font-size: 13px;
  border-radius: 9px;
  padding: 5px 8px;
  min-height: 46px;
  line-height: 1.4;
}
.nav button.on {
  color: #14579f;
  background: #eaf2fc;
  font-weight: 650;
}
.nav-icon {
  font-size: 19px;
  display: block;
  height: 24px;
}
.back {
  color: #285d95;
  margin-top: 14px;
  padding: 8px 0;
  font-size: 14px;
  min-height: 44px;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 15px 0;
}
.metric {
  background: #fff;
  border: 1px solid #dce5f0;
  border-radius: 14px;
  overflow: hidden;
}
.metric-main {
  display: block;
  text-align: left;
  width: 100%;
  padding: 17px 16px 6px;
  min-height: 100px;
}
.metric-title {
  font-size: 14px;
  color: #5a6d83;
  display: block;
}
.metric-number {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 3px;
  white-space: nowrap;
}
.metric-number b {
  font-size: 38px;
  font-weight: 650;
  letter-spacing: -1.2px;
  line-height: 1.2;
  color: #1f4977;
}
.metric-number em {
  font-size: 13px;
  font-style: normal;
  color: #556d87;
  letter-spacing: 0;
}
.metric-sub {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
  padding: 7px 16px 16px;
  color: #9c5c24;
  min-height: 58px;
}
.metric-sub .money {
  white-space: nowrap;
  font-weight: 600;
}
.metric.achieved .metric-number b {
  color: #196d5d;
}
.metric.achieved .metric-sub {
  color: #486c64;
}
.metric-rate {
  display: inline-block;
  white-space: nowrap;
  font-weight: 650;
  color: #196d5d;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.filters label {
  font-size: 12px;
  color: #61778f;
  display: block;
}
.filters select {
  margin-top: 3px;
  font-size: 14px;
}
.snapshot {
  font-size: 12px;
  color: #60778f;
  margin: 11px 0;
}
.snapshot input {
  display: inline-block;
  width: auto;
  max-width: 180px;
  min-height: 40px;
  font-size: 13px;
  padding: 5px 8px;
  background: transparent;
  margin-left: 4px;
}
.progress {
  height: 7px;
  background: #e9eff6;
  border-radius: 10px;
  margin: 12px 0;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: #2c7a9c;
  border-radius: 10px;
}
.target-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #4b6682;
}
.business {
  display: block;
  text-align: left;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.business:last-child {
  border-bottom: 0;
}
.business h3 {
  color: #234f7e;
  font-size: 16px;
}
.business .amount {
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  color: #254c74;
}
.business .muted {
  margin-top: 5px;
}
.business p {
  font-size: 14px;
  margin-top: 8px;
  color: #445e7a;
}
.list-card {
  padding-top: 4px;
  padding-bottom: 4px;
}
.badge {
  font-size: 11px;
  border-radius: 5px;
  padding: 3px 6px;
  background: #eaf2fb;
  color: #315f91;
  white-space: nowrap;
}
.source-meta {
  font-size: 12px;
  color: #597493;
  margin-bottom: 7px;
}
.detail-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.detail-section:last-child {
  border: 0;
}
.detail-section h3 {
  font-size: 13px;
  color: #667c92;
  margin-bottom: 5px;
}
.detail-section p {
  font-size: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.event {
  position: relative;
  padding: 13px 0 14px 22px;
  border-left: 1px solid #d6e2ee;
  margin-left: 6px;
}
.event:before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid #d0dce9;
  background: #fff;
  border-radius: 50%;
  left: -5px;
  top: 20px;
}
.event.done:before {
  border-color: #238270;
  background: #238270;
}
.event h3 {
  font-size: 14px;
}
.event .muted {
  font-size: 12px;
}
.goal-table {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  font-size: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.goal-table.head {
  font-size: 12px;
  color: #667b91;
}
.goal-table:last-child {
  border-bottom: 0;
}
.gate {
  max-width: 430px;
  margin: 34px auto;
}
.gate h1 {
  margin-bottom: 12px;
}
.gate label {
  font-size: 14px;
  display: block;
  margin: 18px 0 7px;
}
.gate .btn {
  margin-top: 20px;
}
.gate p {
  font-size: 14px;
  color: #5b748d;
}
.loading-start {
  max-width: 500px;
  margin: 100px auto;
  padding: 30px;
  text-align: center;
  color: #496d92;
}
.busy {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid #c2d3e8;
  border-top-color: #296fb8;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-right: 6px;
  vertical-align: -2px;
}
.loading-line {
  font-size: 12px;
  color: #52739b;
  margin: 8px 0;
}
.sources-tabs {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}
.sources-tabs button {
  white-space: nowrap;
  min-height: 42px;
}
.profile-line {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.profile-line:last-child {
  border: 0;
}
.nowrap {
  white-space: nowrap;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 700px) {
  .shell {
    padding-left: 32px;
    padding-right: 32px;
  }
  .brand {
    padding-top: 28px;
  }
  .logo {
    width: 177px;
  }
  .brief {
    padding: 28px 32px;
  }
  .topic p {
    font-size: 16px;
  }
  .metric-number b {
    font-size: 48px;
  }
  .metric-sub {
    min-height: 50px;
  }
  .metric-main {
    padding-top: 24px;
  }
  .filters {
    grid-template-columns: repeat(4, 1fr);
  }
  .calendar-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 340px) {
  .shell {
    padding-left: 13px;
    padding-right: 13px;
  }
  .brand {
    padding-top: 16px;
  }
  .logo {
    width: 141px;
  }
  .identity {
    font-size: 12px;
  }
  .metric-grid {
    gap: 9px;
  }
  .metric-main {
    padding: 15px 12px 6px;
  }
  .metric-number b {
    font-size: 33px;
  }
  .metric-sub {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 12px;
  }
  .card {
    padding: 17px;
  }
  .brief {
    padding: 19px 17px;
  }
  .brief-actions {
    gap: 7px;
  }
  .brief-actions .btn {
    font-size: 13px;
    padding: 10px 8px;
  }
  .day {
    min-height: 55px;
  }
  .page-head {
    margin-top: 18px;
  }
  h1 {
    font-size: 23px;
  }
  .topic p {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .busy {
    animation: none;
  }
}
.week {
  grid-template-columns: repeat(7, minmax(42px, 1fr));
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
}
.segments button {
  min-height: 42px;
}
.snapshot input {
  min-height: 42px;
}
.form-label {
  display: block;
  margin: 18px 0 8px;
  font-size: 14px;
  color: #476580;
}
.form-label input,
.form-label select,
.form-label textarea {
  margin-top: 7px;
}
textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  border: 1px solid #cedbe9;
  border-radius: 9px;
  background: #fff;
  padding: 12px;
  font: inherit;
  font-size: 15px;
  color: #253f5c;
  line-height: 1.75;
}
.checkbox-line {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.75;
}
.checkbox-line input {
  min-height: 22px;
  width: 20px;
  height: 22px;
  flex: none;
  margin: 2px 0 0;
  accent-color: #185ca8;
}
.unread {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cf3248;
  margin-right: 7px;
  vertical-align: 2px;
}
.task-link {
  font-size: 13px;
  color: #185ca8;
  white-space: nowrap;
}
summary {
  min-height: 44px;
  cursor: pointer;
  color: #345d88;
  font-size: 14px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
fieldset:disabled {
  opacity: 0.7;
}
