/* Warm, restrained health workspace. 8px rhythm; information before decoration. */
.h3-workspace {
  --h3-bg: #f8f5ef;
  --h3-ink: #302a26;
  --h3-muted: #786e65;
  --h3-line: #eae2d9;
  --h3-brand: #ac684d;
  color: var(--h3-ink);
  font-family:
    system-ui,
    -apple-system,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  max-width: 1440px;
  margin: auto;
  min-width: 0;
}
.h3-workspace h1,
.h3-workspace h2,
.h3-workspace h3 {
  font-family: inherit;
  letter-spacing: 0;
  color: var(--h3-ink);
}
.h3-workspace h1 {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.4;
  margin: 8px 0;
}
.h3-workspace h2 {
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
}
.h3-workspace h3 {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 5px;
}
.h3-workspace p {
  line-height: 1.7;
}
.h3-workspace button,
.h3-workspace a.secondary,
.h3-dialog button {
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  min-height: 38px;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.12s;
}
.h3-workspace button:hover:not(:disabled),
.h3-dialog button:hover:not(:disabled) {
  filter: brightness(0.97);
}
.h3-workspace button:active:not(:disabled) {
  transform: translateY(1px);
}
.h3-workspace button:disabled,
.h3-dialog button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.h3-workspace button:focus-visible,
.h3-workspace a:focus-visible,
.h3-workspace summary:focus-visible,
.h3-dialog button:focus-visible {
  outline: 2px solid var(--h3-brand);
  outline-offset: 3px;
}
.h3-workspace .primary,
.h3-dialog .primary {
  background: #ac684d;
  border-color: #ac684d;
  color: #fff;
}
.h3-workspace .small {
  padding: 7px 12px;
  min-height: 34px;
  font-size: 12px;
}
.h3-workspace .ghost {
  color: #8a5038;
  background: transparent;
  border: 1px solid transparent;
}
.h3-workspace .danger {
  color: #a3423b;
}
.h3-workspace .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.h3-workspace input,
.h3-workspace select,
.h3-workspace textarea {
  font-family: inherit;
  font-size: 13px;
  min-width: 0;
  color: var(--h3-ink);
  border: 1px solid var(--h3-line);
  background: #fff;
  border-radius: 8px;
  padding: 9px 11px;
  min-height: 40px;
  box-sizing: border-box;
}
.h3-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 4px 0 24px;
}
.h3-head > div:first-child {
  min-width: 0;
}
.h3-head > div > p:last-child {
  font-size: 13px;
  color: var(--h3-muted);
  margin: 8px 0 0;
}
.h3-kicker {
  font-size: 10px !important;
  letter-spacing: 1.8px;
  color: #a3664d !important;
  margin: 0 0 4px !important;
  font-weight: 700;
}
.h3-kicker span {
  font-weight: 400;
  letter-spacing: 0;
  border-left: 1px solid #d6c6ba;
  margin-left: 10px;
  padding-left: 10px;
}
.h3-panel {
  background: #fff;
  border: 1px solid var(--h3-line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  min-width: 0;
  box-shadow: 0 3px 15px #49342002;
}
.h3-panel > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.h3-panel > header .ghost {
  flex-shrink: 0;
}
.h3-muted {
  color: var(--h3-muted);
  font-size: 12px;
  line-height: 1.75;
}
.h3-error {
  color: #a53e38;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.h3-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1.6;
  border: 1px solid transparent;
  border-radius: 5px;
  white-space: normal;
  vertical-align: middle;
  font-weight: 500;
}
.h3-chip.quiet {
  background: #f5f2ed;
  color: #76695d;
  border-color: #eae3da;
}
.h3-chip.info {
  color: #456b95;
  background: #eff4f9;
  border-color: #e0e8f0;
}
.h3-chip.normal {
  color: #397458;
  background: #eff7f2;
  border-color: #d9e9df;
}
.h3-chip.watch {
  color: #946328;
  background: #fbf4e9;
  border-color: #f0e2cd;
}
.h3-chip.alert {
  color: #a44a43;
  background: #fdf0ed;
  border-color: #f0d7d1;
}
.h3-members {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 6px;
  margin-bottom: 18px;
  scrollbar-width: thin;
}
.h3-members > button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  flex: 0 0 196px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--h3-line);
  min-height: 92px;
}
.h3-members > button.active {
  background: #faf0e6;
  border-color: #c68e70;
  box-shadow: inset 0 0 0 1px #c68e7020;
}
.h3-members strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}
.h3-members small {
  display: block;
  font-size: 11px;
  line-height: 1.65;
  color: var(--h3-muted);
}
.h3-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eee1d1;
  color: #9e6248;
  font-weight: 600;
  font-size: 18px;
}
.h3-members > button.h3-add-member {
  flex-basis: 138px;
  justify-content: center;
  background: transparent;
  border-style: dashed;
  color: #94634c;
}
.h3-member-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--h3-line);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 18px;
}
.h3-member-overview > div:first-child {
  min-width: 140px;
}
.h3-member-overview strong {
  display: block;
  font-size: 16px;
}
.h3-member-overview small {
  display: block;
  margin-top: 6px;
  color: var(--h3-muted);
  font-size: 11px;
}
.h3-inline-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.h3-inline-stats span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--h3-muted);
  font-size: 10px;
}
.h3-inline-stats b {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #514036;
}
.h3-member-overview > button {
  flex-shrink: 0;
}
.h3-ai-card {
  border: 1px solid #e3d7ca;
  background: #fffdf9;
  border-radius: 14px;
  margin: 0 0 24px;
  padding: 20px 24px;
  min-width: 0;
}
.h3-ai-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.h3-ai-heading > div {
  flex: 1;
  min-width: 0;
}
.h3-ai-heading h2 {
  font-size: 16px;
}
.h3-ai-heading small {
  font-size: 10px;
  line-height: 1.6;
  color: var(--h3-muted);
  display: block;
  margin-top: 4px;
}
.h3-ai-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid #d8ba9f;
  border-radius: 9px;
  color: #9d6047;
  background: #fbf1e6;
  font-size: 12px;
  letter-spacing: 1px;
}
.h3-ai-content {
  padding-left: 44px;
  margin-top: 12px;
}
.h3-lead {
  font-size: 14px;
  line-height: 1.9 !important;
  margin: 9px 0;
  color: #40382f;
}
.h3-ai-content ul {
  font-size: 12px;
  color: #665a50;
  padding-left: 17px;
  line-height: 1.8;
  margin: 9px 0;
}
.h3-ai-content li {
  margin: 4px 0;
}
.h3-ai-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.h3-ai-footer > span {
  font-size: 10px;
  color: var(--h3-muted);
  margin-right: auto;
}
.h3-ai-card.compact {
  padding: 20px;
  margin-bottom: 16px;
}
.h3-ai-card.compact .h3-ai-content {
  padding-left: 0;
}
.h3-ai-card.compact .h3-ai-footer > span {
  flex-basis: 100%;
}
.h3-record-area-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 16px;
}
.h3-record-area-title h2 small {
  font-size: 12px;
  margin-left: 6px;
  color: #8b8178;
  font-weight: 400;
}
.h3-record-area-title > span {
  font-size: 11px;
  color: var(--h3-muted);
}
.h3-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.h3-toolbar > input {
  flex: 1;
  min-width: 200px;
}
.h3-toolbar select {
  max-width: 160px;
}
.h3-switch,
.h3-subtabs {
  display: flex;
  gap: 4px;
  border: 1px solid var(--h3-line);
  border-radius: 9px;
  padding: 3px;
  background: #f8f5ef;
}
.h3-switch button,
.h3-subtabs button {
  padding: 5px 10px;
  border: 0;
  background: none;
  color: #8a7d72;
  min-height: 32px;
  font-size: 12px;
}
.h3-switch button.active,
.h3-subtabs button.active {
  background: #fff;
  color: #96583f;
  box-shadow: 0 1px 5px #59432c10;
}
.h3-record {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--h3-line);
  border-radius: 12px;
  margin-bottom: 10px;
  min-width: 0;
}
.h3-record-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-width: 64px;
  height: 76px;
  border: 1px solid #eee7df !important;
  background: #f8f6f2 !important;
  padding: 0 !important;
  border-radius: 7px !important;
  overflow: hidden;
  position: relative;
}
.h3-record-cover img,
.h3-record-cover canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.h3-record-cover > span {
  font-size: 10px;
  position: absolute;
  color: #a48068;
}
.h3-record-copy {
  flex: 1;
  min-width: 0;
}
.h3-record-title {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.h3-record-title > button {
  font-size: 15px;
  font-weight: 650;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  min-height: 24px;
  color: #352d27;
}
.h3-meta {
  font-size: 11px !important;
  line-height: 1.65 !important;
  color: var(--h3-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 5px 0;
}
.h3-meta i {
  font-style: normal;
  opacity: 0.6;
}
.h3-record-summary {
  font-size: 12px;
  margin: 5px 0 0;
  color: #71675e;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.h3-record-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.h3-more {
  position: relative;
}
.h3-more > summary {
  cursor: pointer;
  list-style: none;
  color: #9c8e81;
  letter-spacing: 1px;
  padding: 7px;
  min-width: 24px;
  min-height: 30px;
}
.h3-more > summary::-webkit-details-marker {
  display: none;
}
.h3-more > div {
  position: absolute;
  right: 0;
  top: 35px;
  min-width: 160px;
  border: 1px solid var(--h3-line);
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 10px 25px #40302018;
  z-index: 20;
  display: flex;
  flex-direction: column;
}
.h3-more button {
  text-align: left;
  padding: 8px 10px;
}
.h3-record-list.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.h3-record-list.grid .h3-record {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  margin: 0;
  align-items: start;
}
.h3-record-list.grid .h3-record-actions {
  grid-column: 1/-1;
  justify-content: space-between;
}
.h3-empty {
  text-align: center;
  padding: 35px 16px;
}
.h3-empty > span {
  display: flex;
  margin: 0 auto 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--h3-line);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  color: #ac8068;
}
.h3-empty h3 {
  font-size: 15px;
}
.h3-empty p {
  color: var(--h3-muted);
  font-size: 12px;
  max-width: 450px;
  margin: 8px auto 18px;
}
.h3-back {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: -4px 0 12px;
  font-size: 11px;
  color: var(--h3-muted);
}
.h3-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0 24px;
}
.h3-avatar.large {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  font-size: 26px;
  background: #f0dfc8;
}
.h3-profile > div:first-of-type {
  flex: 1;
}
.h3-profile h1 {
  font-size: 26px;
}
.h3-profile h1 small {
  font-size: 12px;
  color: var(--h3-muted);
  font-weight: 400;
  padding: 4px 8px;
  border: 1px solid var(--h3-line);
  border-radius: 5px;
  vertical-align: middle;
}
.h3-profile p {
  font-size: 12px;
  color: var(--h3-muted);
  margin: 7px 0;
}
.h3-profile > div > small {
  font-size: 10px;
  color: var(--h3-muted);
}
.h3-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--h3-line);
  margin: 0 0 24px;
  overflow-x: auto;
  white-space: nowrap;
}
.h3-tabs button {
  padding: 12px 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  border-radius: 0;
  color: #817469;
  flex-shrink: 0;
}
.h3-tabs button.active {
  color: #a15e43;
  border-bottom-color: #ac684d;
  font-weight: 650;
}
.h3-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(250px, 1fr);
  gap: 20px;
}
.h3-overview-grid > div,
.h3-overview-grid > aside {
  min-width: 0;
}
.h3-overview-grid .h3-ai-card {
  margin-bottom: 16px;
}
.h3-concerns {
  list-style: none;
  padding: 0;
  margin: 0;
}
.h3-concerns li {
  display: flex;
  gap: 9px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.8;
  margin: 9px 0;
}
.h3-concerns i {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: #bf8955;
}
.h3-mini-item {
  padding: 11px 0;
  border-bottom: 1px solid #f0ebe5;
}
.h3-mini-item:first-child {
  padding-top: 0;
}
.h3-mini-item:last-child {
  border: 0;
  padding-bottom: 0;
}
.h3-mini-item strong {
  font-size: 13px;
  line-height: 1.8;
}
.h3-mini-item > span {
  display: block;
  font-size: 11px;
  color: var(--h3-muted);
  margin-top: 4px;
  line-height: 1.7;
}
.h3-link-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: none;
  border: 0;
  border-bottom: 1px solid #f0ebe5;
  padding: 11px 0;
  text-align: left;
  width: 100%;
}
.h3-link-row small {
  font-size: 10px;
  color: var(--h3-muted);
}
.h3-allergy-state {
  font-size: 13px;
  color: #99652c;
  margin-top: 0;
}
.h3-allergy-box {
  background: #fdf8ef;
  border: 1px solid #f0e3cd;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 20px;
}
.h3-allergy-box .h3-mini-item {
  display: none;
}
.h3-allergy-box .h3-mini-item:first-child {
  display: block;
}
.h3-section-note {
  background: #faf7f3;
  border-radius: 8px;
  padding: 12px 14px;
  color: #78695d;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.h3-subtabs {
  width: fit-content;
  margin-bottom: 18px;
}
.h3-entity-card {
  border: 1px solid var(--h3-line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 12px;
}
.h3-entity-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.h3-entity-heading > div:first-child {
  min-width: 0;
}
.h3-entity-heading h3 {
  font-size: 15px;
}
.h3-entity-heading p {
  font-size: 12px;
  color: #75695f;
  margin: 5px 0 10px;
}
.h3-entity-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--h3-muted);
}
.h3-entity-card > details {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0ebe5;
}
.h3-workspace summary,
.h3-dialog summary {
  cursor: pointer;
  font-size: 12px;
  color: #8e5940;
  line-height: 1.8;
}
.h3-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin: 16px 0;
}
.h3-facts > div {
  min-width: 0;
}
.h3-facts dt {
  font-size: 10px;
  color: var(--h3-muted);
}
.h3-facts dd {
  font-size: 12px;
  line-height: 1.8;
  margin: 4px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.h3-source-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.h3-timeline {
  padding: 4px 0;
}
.h3-timeline > article {
  display: grid;
  grid-template-columns: 88px 14px 1fr;
  gap: 14px;
  position: relative;
  padding-bottom: 24px;
}
.h3-timeline time {
  font-size: 11px;
  color: #8a7869;
  text-align: right;
  padding-top: 3px;
}
.h3-timeline i {
  height: 8px;
  width: 8px;
  border: 2px solid #b48a70;
  border-radius: 50%;
  background: #fff;
  margin-top: 5px;
  z-index: 1;
}
.h3-timeline article:after {
  content: "";
  position: absolute;
  left: 107px;
  top: 16px;
  bottom: 0;
  border-left: 1px solid #e9dfd5;
}
.h3-timeline article:last-child:after {
  display: none;
}
.h3-timeline article > div > small {
  color: var(--h3-muted);
  font-size: 10px;
}
.h3-timeline h3 {
  font-size: 13px;
  margin: 6px 0;
}
.h3-timeline p {
  font-size: 12px;
  line-height: 1.75;
  color: #796d62;
  margin: 5px 0;
  white-space: pre-wrap;
}
.h3-timeline-search {
  margin-bottom: 22px;
  width: min(100%, 420px);
}
.h3-trend-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.h3-trend-controls select {
  flex: 1;
  min-width: 120px;
}
.h3-chart {
  width: 100%;
  max-height: 240px;
  display: block;
  font-variant-numeric: tabular-nums;
}
.h3-chart line {
  stroke: #e5dacf;
  stroke-width: 1;
}
.h3-chart polyline {
  fill: none;
  stroke: #ac684d;
  stroke-width: 2;
}
.h3-chart circle {
  fill: #ac684d;
  stroke: white;
  stroke-width: 2;
}
.h3-chart text {
  text-anchor: middle;
  font-size: 10px;
  fill: #7c6c5f;
}
.h3-no-trend {
  border: 1px dashed #e7ddd2;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  background: #fcfaf7;
}
.h3-no-trend > span {
  display: block;
  font-size: 25px;
  color: #bba892;
  margin-bottom: 9px;
}
.h3-no-trend strong {
  font-size: 13px;
}
.h3-no-trend p {
  font-size: 11px;
  color: var(--h3-muted);
  margin: 10px 0 0;
}
.h3-observation-list > article {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--h3-line);
  padding: 14px 0;
}
.h3-observation-list > article > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.h3-observation-list > article .actions {
  flex-direction: row;
}
.h3-observation-list strong {
  font-size: 18px;
}
.h3-observation-list strong small {
  font-size: 11px;
  font-weight: 400;
}
.h3-observation-list span,
.h3-observation-list small {
  font-size: 11px;
  color: var(--h3-muted);
}
.h3-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.h3-attachment-panel {
  background: #fff;
  border: 1px solid var(--h3-line);
  border-radius: 14px;
  overflow: hidden;
  position: sticky;
  top: 85px;
}
.h3-preview-toolbar {
  padding: 12px;
  border-bottom: 1px solid var(--h3-line);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.h3-preview-toolbar > select {
  flex: 1;
  min-width: 150px;
  max-width: 100%;
}
.h3-preview-toolbar .actions {
  gap: 3px;
}
.h3-preview-toolbar .ghost {
  padding: 5px 10px;
}
.h3-preview-toolbar a {
  font-size: 11px;
  text-decoration: none;
}
.h3-attachment-stage {
  height: clamp(400px, 65vh, 760px);
  overflow: auto;
  background: #f1eeea;
  position: relative;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
}
.h3-attachment-stage > img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform-origin: top left;
  max-width: none;
}
.h3-attachment-stage > canvas {
  max-width: none;
  flex-shrink: 0;
}
.h3-pdf-loading {
  position: absolute;
  top: 40%;
  left: 15%;
  color: #8b786a;
  font-size: 12px;
}
.h3-pdf-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-top: 1px solid var(--h3-line);
  font-size: 11px;
}
.h3-original-note {
  padding: 10px 16px;
  color: #968475;
  font-size: 10px;
  border-top: 1px solid var(--h3-line);
}
.h3-analysis-panel {
  min-width: 0;
}
.h3-analysis-panel ul {
  font-size: 12px;
  line-height: 1.8;
  padding-left: 17px;
  color: #6d6055;
}
.h3-analysis-panel .h3-panel {
  padding: 20px;
}
.h3-analysis-panel .h3-panel h2 {
  font-size: 15px;
}
.h3-findings > article {
  margin: 0 0 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1e9e0;
}
.h3-findings > article:last-child {
  margin-bottom: 0;
  border: 0;
  padding-bottom: 0;
}
.h3-findings h3 {
  font-size: 13px;
}
.h3-findings p,
.h3-text {
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.h3-findings blockquote {
  margin: 10px 0;
  border-left: 2px solid #cbb49e;
  padding: 8px 12px;
  background: #faf7f2;
  font-size: 11px;
  color: #8b7869;
  line-height: 1.7;
}
.h3-evidence-note {
  background: #fbf3df;
  padding: 12px 16px;
  font-size: 11px;
  line-height: 1.8;
  color: #8b6327;
}
.h3-evidence-note small {
  display: block;
  font-size: 10px;
  opacity: 0.8;
}
.h3-candidate {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #efe6dd;
}
.h3-candidate strong {
  font-size: 12px;
}
.h3-candidate small {
  display: block;
  color: #968271;
  font-size: 10px;
  margin-top: 4px;
}
.h3-small-title {
  font-size: 12px !important;
  margin-top: 16px !important;
}
.h3-dialog {
  width: 720px;
  max-width: calc(100vw - 32px);
  max-height: 92dvh;
  padding: 0;
  border: 1px solid #e5dacf;
  border-radius: 16px;
  color: #302a26;
  background: #fff;
  box-shadow: 0 20px 90px #35211533;
}
.h3-dialog::backdrop {
  background: #302a2660;
  backdrop-filter: blur(2px);
}
.h3-dialog > header {
  padding: 20px 24px;
  border-bottom: 1px solid #eee4d9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 3;
}
.h3-dialog > header small {
  font-size: 10px;
  color: #a58d7a;
}
.h3-dialog > header h2 {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.5;
}
.h3-dialog > header > button {
  border: 0;
  background: none;
  font-size: 22px;
  color: #9a8574;
  width: 36px;
  height: 36px;
}
.h3-dialog form {
  margin: 0;
}
.h3-form-content {
  padding: 24px;
  max-height: calc(92dvh - 180px);
  overflow: auto;
}
.h3-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.h3-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  color: #6b5b4f;
}
.h3-field.wide {
  grid-column: 1/-1;
}
.h3-field b {
  color: #ac684d;
  font-weight: 400;
}
.h3-field input,
.h3-field select,
.h3-field textarea {
  font-family: inherit;
  font-size: 13px;
  border: 1px solid #e5dbd0;
  background: #fff;
  border-radius: 8px;
  padding: 10px 11px;
  min-height: 40px;
  width: 100%;
  box-sizing: border-box;
  color: #302a26;
}
.h3-field textarea {
  resize: vertical;
  min-height: 82px;
  line-height: 1.8;
}
.h3-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: #726154;
  line-height: 1.9;
  margin: 15px 0;
}
.h3-check input,
.h3-existing-file input,
.h3-record-checks input {
  accent-color: #ac684d;
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  flex-shrink: 0;
  margin: 3px 0;
}
.h3-dialog footer {
  border-top: 1px solid #e8ded2;
  background: #fffcf8;
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  z-index: 3;
}
.h3-dialog footer > span {
  font-size: 10px;
  color: #a18c7a;
}
.h3-dialog footer > div {
  display: flex;
  gap: 8px;
}
.h3-form-note {
  font-size: 12px;
  color: #8a6b4f;
  background: #faf3e9;
  line-height: 1.8;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 0 0 20px;
}
.h3-upload {
  margin: 24px 0;
}
.h3-upload h3 {
  font-size: 14px;
}
.h3-upload p {
  font-size: 11px;
  color: #9d8876;
  line-height: 1.8;
}
.h3-upload-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px dashed #cfb59e;
  background: #fcf8f2;
  padding: 22px;
  border-radius: 10px;
  color: #996045;
  font-size: 13px;
  cursor: pointer;
  overflow: hidden;
}
.h3-upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.h3-upload-queue > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0e7dc;
  font-size: 12px;
}
.h3-upload-queue img {
  width: 42px;
  height: 48px;
  object-fit: cover;
  border: 1px solid #eee1d4;
}
.h3-upload-queue span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.h3-upload-queue small {
  display: block;
  font-size: 10px;
  color: #9e8a76;
  margin-top: 4px;
}
.h3-upload-queue strong {
  font-weight: 400;
  color: #9a714c;
  font-size: 11px;
}
.h3-upload-queue button {
  border: 0;
  background: none;
  color: #aa7e60;
}
.h3-existing-file,
.h3-record-checks label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.8;
  margin: 12px 0;
  color: #897462;
  overflow-wrap: anywhere;
}
.h3-record-checks {
  max-height: 190px;
  overflow: auto;
}
.h3-dialog details {
  margin-top: 20px;
}
.h3-version {
  border-bottom: 1px solid #ebdfd2;
  padding: 12px 0;
}
.h3-version p,
.h3-version li {
  font-size: 12px;
  line-height: 1.9;
  color: #78675a;
}
.h3-version pre {
  font-size: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f9f5ef;
  padding: 12px;
  border-radius: 8px;
}
.h3-dialog .h3-muted {
  font-size: 11px;
  color: #9b8470;
}
.h3-summary-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.h3-summary-controls h2 {
  font-size: 18px;
}
.h3-summary-controls p {
  font-size: 12px;
  color: var(--h3-muted);
  margin: 8px 0;
}
.h3-summary-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.h3-summary-layout > aside {
  position: sticky;
  top: 85px;
  padding: 20px;
}
.h3-summary-layout .h3-subtabs {
  margin: 16px 0;
}
.h3-summary-layout > aside h3 {
  font-size: 15px;
}
.h3-summary-doc {
  background: #fff;
  padding: 36px;
  border: 1px solid #e4dbd0;
  box-shadow: 0 10px 35px #4e39260b;
  border-radius: 5px;
  min-width: 0;
}
.h3-summary-doc > header {
  border-bottom: 2px solid #55483d;
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.h3-summary-doc > header > p:first-child {
  font-size: 10px;
  letter-spacing: 1px;
  color: #9a8775;
}
.h3-summary-doc h1 {
  font-size: 26px;
  margin: 12px 0 22px;
}
.h3-summary-doc header > strong {
  font-size: 15px;
}
.h3-summary-doc header p,
.h3-summary-doc header small {
  font-size: 11px;
  color: #8b7a6b;
}
.h3-summary-doc section {
  border-bottom: 1px solid #e9e0d6;
  margin-bottom: 18px;
  padding-bottom: 15px;
  break-inside: avoid;
}
.h3-summary-doc section h2 {
  font-size: 13px;
  margin-bottom: 12px;
  font-weight: 650;
}
.h3-summary-doc section p {
  font-size: 12px;
  line-height: 1.9;
  margin: 9px 0;
  color: #574c42;
}
.h3-summary-doc section p small {
  font-size: 10px;
  color: #8a7766;
}
.h3-summary-doc footer {
  font-size: 9px;
  line-height: 1.9;
  color: #9a8673;
}
.h3-saved-summaries {
  margin-top: 16px;
  border-top: 1px solid #eee3d6;
}
.h3-saved-summaries > button {
  font-size: 10px !important;
  display: block;
}
.h3-export-pdf {
  overflow: auto;
  background: #e9e5df;
  padding: 12px;
  max-height: 62vh;
}
.h3-export-pdf canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
.h3-focus .sidebar,
.h3-focus .topbar,
.h3-focus #mobileNav,
.h3-focus #assistantFloat,
.h3-focus .site-footer,
.h3-focus .h3-profile,
.h3-focus .h3-tabs,
.h3-focus .h3-back,
.h3-focus .h3-summary-controls,
.h3-focus .h3-summary-layout > aside {
  display: none !important;
}
.h3-focus .app-shell {
  grid-template-columns: 1fr;
}
.h3-focus .main {
  margin: 0 !important;
  padding: 32px !important;
  max-width: 1100px;
}
.h3-focus .h3-summary-layout {
  display: block;
}
.h3-focus .h3-summary-doc {
  font-size: 17px;
  max-width: 1000px;
  margin: 25px auto;
  padding: 45px;
}
.h3-focus .h3-summary-doc section p {
  font-size: 16px;
}
.h3-exit-focus {
  position: fixed;
  right: 24px;
  top: 15px;
  z-index: 50;
  padding: 10px 16px;
  background: #ac684d;
  color: white;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
@media (min-width: 1600px) {
  .h3-panel {
    padding: 26px;
  }
  .h3-detail-grid {
    gap: 24px;
  }
  .h3-overview-grid {
    gap: 24px;
  }
}
@media (max-width: 1250px) {
  .h3-member-overview {
    flex-wrap: wrap;
    gap: 16px;
  }
  .h3-member-overview .h3-inline-stats {
    flex: 1;
  }
  .h3-inline-stats {
    gap: 18px;
  }
  .h3-profile {
    flex-wrap: wrap;
  }
  .h3-profile > .actions {
    margin-left: 82px;
  }
  .h3-record-list.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .h3-summary-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .h3-summary-controls {
    flex-wrap: wrap;
  }
  .h3-preview-toolbar > .actions {
    width: 100%;
    justify-content: flex-end;
  }
  .h3-head {
    align-items: flex-start;
  }
  .h3-head > .actions {
    max-width: 260px;
    justify-content: flex-end;
  }
}
@media (max-width: 1000px) {
  .h3-overview-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr);
  }
  .h3-detail-grid {
    grid-template-columns: 1fr;
  }
  .h3-attachment-panel {
    position: static;
  }
  .h3-attachment-stage {
    height: 500px;
  }
  .h3-analysis-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .h3-analysis-panel > .h3-ai-card,
  .h3-analysis-panel > .h3-panel {
    margin-bottom: 0;
  }
  .h3-analysis-panel > .h3-ai-card {
    grid-column: 1/-1;
  }
  .h3-summary-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .h3-summary-doc {
    padding: 24px;
  }
}
@media (max-width: 700px) {
  .h3-head {
    display: block;
    margin: 0 0 20px;
  }
  .h3-head h1 {
    font-size: 26px;
  }
  .h3-head > .actions {
    max-width: none;
    justify-content: flex-start;
    margin-top: 16px;
  }
  .h3-head > div > p:last-child {
    font-size: 12px;
  }
  .h3-kicker {
    font-size: 9px !important;
  }
  .h3-workspace button {
    min-height: 42px;
  }
  .h3-members {
    gap: 8px;
    margin-bottom: 14px;
  }
  .h3-members > button {
    flex-basis: 168px;
    min-height: 80px;
    padding: 12px;
    gap: 10px;
  }
  .h3-members > button.h3-add-member {
    flex-basis: 108px;
  }
  .h3-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 15px;
  }
  .h3-members strong {
    font-size: 13px;
  }
  .h3-members small {
    font-size: 10px;
  }
  .h3-member-overview {
    padding: 16px;
    gap: 18px;
  }
  .h3-member-overview > div:first-child {
    min-width: 0;
    width: 100%;
  }
  .h3-member-overview .h3-inline-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .h3-inline-stats b {
    font-size: 14px;
  }
  .h3-inline-stats span {
    font-size: 9px;
  }
  .h3-member-overview > button {
    width: 100%;
  }
  .h3-ai-card {
    padding: 16px;
    margin-bottom: 22px;
  }
  .h3-ai-heading h2 {
    font-size: 14px;
  }
  .h3-ai-heading small {
    font-size: 9px;
  }
  .h3-ai-heading > .h3-chip {
    display: none;
  }
  .h3-ai-content {
    padding-left: 0;
  }
  .h3-lead {
    font-size: 13px;
  }
  .h3-ai-content ul {
    font-size: 11px;
  }
  .h3-ai-footer > span {
    width: 100%;
    flex-basis: 100%;
    font-size: 9px;
  }
  .h3-record-area-title > span {
    display: none;
  }
  .h3-toolbar {
    gap: 7px;
  }
  .h3-toolbar input {
    width: 100%;
    flex-basis: 100%;
    min-width: 0;
  }
  .h3-toolbar select {
    flex: 1;
    max-width: none;
    min-width: 80px;
    font-size: 11px;
    padding: 8px;
  }
  .h3-switch {
    margin-left: auto;
  }
  .h3-record {
    gap: 10px;
    padding: 13px 11px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .h3-record-cover {
    width: 54px;
    min-width: 54px;
    height: 68px;
  }
  .h3-record-title {
    gap: 6px;
  }
  .h3-record-title > button {
    font-size: 14px;
    min-height: 24px;
  }
  .h3-record-title .h3-chip {
    font-size: 9px;
    padding: 2px 5px;
  }
  .h3-record-summary {
    font-size: 11px;
  }
  .h3-meta {
    font-size: 10px !important;
    gap: 5px;
    margin: 4px 0;
  }
  .h3-record-actions {
    margin-left: 64px;
    width: calc(100% - 64px);
    justify-content: space-between;
    margin-top: -4px;
  }
  .h3-record-actions .small {
    padding: 3px 0;
    min-height: 28px;
    font-size: 11px;
  }
  .h3-more > summary {
    min-height: 30px;
  }
  .h3-record-list.grid {
    grid-template-columns: 1fr;
  }
  .h3-record-list.grid .h3-record {
    display: flex;
  }
  .h3-record-area-title h2 {
    font-size: 16px;
  }
  .h3-panel {
    padding: 18px;
    border-radius: 12px;
  }
  .h3-panel > header {
    gap: 8px;
  }
  .h3-panel h2 {
    font-size: 15px;
  }
  .h3-back {
    font-size: 10px;
    margin-bottom: 12px;
  }
  .h3-profile {
    gap: 12px;
    padding: 0 0 16px;
  }
  .h3-avatar.large {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 22px;
  }
  .h3-profile h1 {
    font-size: 21px;
  }
  .h3-profile h1 small {
    display: none;
  }
  .h3-profile > div:first-of-type {
    width: calc(100% - 65px);
  }
  .h3-profile p {
    font-size: 10px;
    line-height: 1.9;
  }
  .h3-profile .h3-kicker {
    font-size: 8px !important;
    letter-spacing: 1px;
  }
  .h3-profile > .actions {
    margin-left: 0;
    gap: 6px;
  }
  .h3-profile > .actions > button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .h3-tabs {
    margin-bottom: 18px;
    gap: 0;
  }
  .h3-tabs button {
    font-size: 12px;
    padding: 11px 13px;
    min-height: 44px;
  }
  .h3-overview-grid {
    display: block;
  }
  .h3-overview-grid > aside {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .h3-timeline > article {
    grid-template-columns: 64px 10px 1fr;
    gap: 9px;
    padding-bottom: 22px;
  }
  .h3-timeline time {
    font-size: 9px;
  }
  .h3-timeline article:after {
    left: 77px;
  }
  .h3-timeline h3 {
    font-size: 12px;
  }
  .h3-timeline p {
    font-size: 11px;
  }
  .h3-entity-card {
    padding: 14px;
  }
  .h3-entity-heading {
    display: block;
  }
  .h3-entity-heading > .actions {
    margin: 6px 0;
  }
  .h3-entity-heading > .actions button {
    font-size: 11px;
    min-height: 32px;
    padding: 5px 8px;
  }
  .h3-entity-meta {
    font-size: 9px;
  }
  .h3-facts {
    gap: 12px;
  }
  .h3-facts dd {
    font-size: 11px;
  }
  .h3-observation-list > article {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .h3-observation-list > article > .actions {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
  .h3-trend-controls select {
    font-size: 11px;
    min-width: 110px;
  }
  .h3-no-trend {
    padding: 22px 16px;
  }
  .h3-detail-grid {
    gap: 16px;
  }
  .h3-analysis-panel {
    display: block;
  }
  .h3-analysis-panel > .h3-panel,
  .h3-analysis-panel > .h3-ai-card {
    margin-bottom: 14px;
  }
  .h3-attachment-stage {
    height: 390px;
    padding: 10px;
  }
  .h3-preview-toolbar {
    padding: 10px;
  }
  .h3-preview-toolbar select {
    font-size: 11px;
  }
  .h3-preview-toolbar > .actions {
    justify-content: space-between;
  }
  .h3-original-note {
    font-size: 9px;
  }
  .h3-dialog {
    max-width: 100vw;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .h3-dialog > header {
    padding: 16px;
  }
  .h3-dialog > header h2 {
    font-size: 19px;
  }
  .h3-form-content {
    padding: 18px;
    max-height: calc(100dvh - 170px);
  }
  .h3-fields {
    gap: 14px;
    grid-template-columns: 1fr 1fr;
  }
  .h3-field {
    font-size: 11px;
  }
  .h3-field input,
  .h3-field select,
  .h3-field textarea {
    font-size: 14px;
    padding: 10px 8px;
    min-height: 44px;
  }
  .h3-field:has(textarea) {
    grid-column: 1/-1;
  }
  .h3-dialog footer {
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  }
  .h3-dialog footer > span {
    display: none;
  }
  .h3-dialog footer > div {
    margin-left: auto;
  }
  .h3-dialog footer button {
    min-height: 44px;
  }
  .h3-summary-layout {
    display: block;
  }
  .h3-summary-layout > aside {
    position: static;
    padding: 18px;
  }
  .h3-summary-layout > aside .h3-check {
    display: flex;
    margin: 10px 0;
  }
  .h3-summary-doc {
    padding: 24px 18px;
  }
  .h3-summary-doc h1 {
    font-size: 23px;
  }
  .h3-summary-doc > header > strong {
    font-size: 14px;
  }
  .h3-summary-doc section p {
    font-size: 11px;
  }
  .h3-summary-doc section h2 {
    font-size: 12px;
  }
  .h3-summary-controls .actions {
    gap: 6px;
  }
  .h3-summary-controls .actions button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .h3-focus .main {
    padding: 12px !important;
  }
  .h3-focus .h3-summary-doc {
    padding: 24px 18px;
    margin-top: 40px;
  }
  .h3-focus .h3-summary-doc section p {
    font-size: 14px;
  }
  .h3-exit-focus {
    right: 12px;
    top: 10px;
    font-size: 12px;
  }
  .h3-dialog .h3-pdf-controls {
    gap: 6px;
    padding: 8px;
  }
}
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  body:has(#h3SummaryDoc) * {
    visibility: hidden !important;
  }
  body:has(#h3SummaryDoc) #h3SummaryDoc,
  body:has(#h3SummaryDoc) #h3SummaryDoc * {
    visibility: visible !important;
  }
  body:has(#h3SummaryDoc) #h3SummaryDoc {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    color: #000;
    background: white;
  }
  #h3SummaryDoc h1 {
    font-size: 20pt;
  }
  #h3SummaryDoc section p {
    font-size: 9pt;
    line-height: 1.6;
    color: #000;
  }
  #h3SummaryDoc section h2 {
    font-size: 11pt;
    color: #000;
  }
  .h3-exit-focus {
    display: none !important;
  }
  body:has(#h3SummaryDoc) .mobile-nav {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .h3-workspace * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
