#root .gr-mine-record {
  --record-red: #d6000f;
  --record-text: #242424;
  --record-muted: #626262;
  --record-surface: #f5f5f5;
  --record-gutter: clamp(12px, 4.1vw, 18px);
  min-height: 100dvh;
  background: var(--record-surface);
  color: var(--record-text);
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

#root .gr-mine-record :is(button, a, select):focus-visible {
  outline: 2px solid var(--record-red);
  outline-offset: 2px;
}

.gr-mine-record-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  min-height: calc(46px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: #fff;
}

.gr-mine-record-header h1 {
  grid-column: 2;
  margin: 0;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
}

.gr-mine-record-header button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--record-text);
}

.gr-mine-record-icon { display: inline-flex; flex: none; align-items: center; }
.gr-mine-record-empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0;
  padding: clamp(52px, 18dvh, 160px) var(--record-gutter) 44px;
  text-align: center;
}
.gr-mine-record-empty img { display: block; width: 144px; height: 144px; object-fit: contain; }
.gr-mine-record-empty p { margin: 0; color: var(--record-muted); font-size: 0.875rem; }

.gr-mine-record-primary,
.gr-mine-record-publish-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 20px;
  border-radius: 999px;
  background: var(--record-red);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}
.gr-mine-record-text-link { padding: 8px; color: var(--record-red); text-decoration: underline; }

.gr-mine-record-header-with-action {
  grid-template-columns: minmax(44px, 4.875rem) minmax(0, 1fr) minmax(44px, 4.875rem);
}

.gr-mine-record-header-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #9f2927;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.gr-mine-record-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px var(--record-gutter);
  overflow-x: auto;
  background: #fff;
  scrollbar-width: none;
}
.gr-mine-record-filters button {
  flex: none;
  min-width: 48px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--record-muted);
  font-size: 0.875rem;
  white-space: nowrap;
}
.gr-mine-record-filters-pill button {
  min-height: 44px;
  border-radius: 999px;
  background: #f6f6f6;
  color: var(--record-text);
}
.gr-mine-record-filters-pill button[aria-pressed="true"] { background: var(--record-red); color: #fff; }
.gr-mine-record-filters-line { gap: 0; padding-block: 0; }
.gr-mine-record-filters-line button { flex: 1; position: relative; }
.gr-mine-record-filters-line button[aria-pressed="true"] { color: var(--record-red); font-weight: 680; }
.gr-mine-record-filters-line button[aria-pressed="true"]::after {
  position: absolute;
  inset: auto calc(50% - 10px) 2px;
  height: 2px;
  background: var(--record-red);
  content: "";
}
.gr-mine-record-cards, .gr-mine-record-rows {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px var(--record-gutter);
  list-style: none;
}
.gr-mine-record-card {
  position: relative;
  min-width: 0;
  padding: 13px;
  border-radius: 10px;
  background: #fff;
  overflow-wrap: anywhere;
}
.gr-mine-record-card :is(h2, p) { margin: 0; }
.gr-mine-record-card h2 { font-size: 1rem; line-height: 1.45; font-weight: 650; }
.gr-mine-record-card h2 img { flex: none; object-fit: contain; }
.gr-mine-record-demand-link {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}
.gr-mine-record-demand-link h2 { display: flex; align-items: center; gap: 6px; }
.gr-mine-record-state {
  flex: none;
  padding: 2px 7px;
  border-radius: 4px;
  background: #efefef;
  color: #5e5e5e;
  font-size: 0.75rem;
  white-space: nowrap;
}
.gr-mine-record-state[data-phase="active"] {
  background: #fceceb;
  color: #991c21;
}
.gr-mine-record-card .gr-mine-record-excerpt {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--record-muted);
  font-size: 0.875rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.gr-mine-record-card .gr-mine-record-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  color: var(--record-muted);
  font-size: 0.75rem;
}
.gr-mine-record-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 3px 8px;
  margin-top: 8px;
  border-top: 1px solid #f1eded;
}
.gr-mine-record-card-actions :is(a, button), .gr-mine-record-rows li > button:not(.gr-mine-record-row-link) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  border: 0;
  background: transparent;
  color: var(--record-red);
  font-size: 0.8125rem;
  text-decoration: none;
}
.gr-mine-record-publish { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
.gr-mine-record-publish-action {
  position: fixed;
  z-index: 4;
  right: max(var(--record-gutter), calc((100% - var(--gr-pro-shell-width, 430px)) / 2 + var(--record-gutter)));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  gap: 4px;
}

.gr-mine-record-rows { gap: 1px; padding: 0; }
.gr-mine-record-rows > li {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  padding: 0 var(--record-gutter);
  background: #fff;
}
.gr-mine-record-row-link {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 69px;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
}
.gr-mine-record-row-copy { display: grid; flex: 1; min-width: 0; gap: 4px; }
.gr-mine-record-row-copy :is(strong, small) { overflow-wrap: anywhere; }
.gr-mine-record-row-copy small, .gr-mine-record-message-trailing small { color: var(--record-muted); font-size: 0.75rem; }
.gr-mine-record-rows li > button:not(.gr-mine-record-row-link) { flex: none; }
.gr-mine-record-initial, .gr-mine-record-message-icon {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f4ece9;
  color: #8b3025;
}
.gr-mine-record-message-types .gr-mine-record-row-link { border-bottom: 1px solid #f3f3f3; }
.gr-mine-record-message-types .gr-mine-record-row-link strong { flex: 1; }
.gr-mine-record-message-icon[data-view="notices"] { background: #eaf1fb; color: #3266a8; }
.gr-mine-record-unread {
  min-width: 16px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--record-red);
  color: #fff;
  font-size: 0.6875rem;
  line-height: 1rem;
  text-align: center;
}
.gr-mine-record-message-trailing { display: grid; flex: none; justify-items: end; gap: 6px; }
.gr-mine-record-notice-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline-end: var(--record-gutter);
}
.gr-mine-record-notice-tools .gr-mine-record-filters { background: transparent; }
.gr-mine-record-notice-tools .gr-mine-record-filters button:not([aria-pressed="true"]),
.gr-mine-record-notice-tools > button { background: #fff; }
.gr-mine-record-notice-tools > button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: var(--record-text);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.gr-mine-record-notice-tools > button:disabled { opacity: .55; }
.gr-mine-record-card.gr-mine-record-notice h2 { display: flex; align-items: center; gap: 8px; }
.gr-mine-record-notice-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--record-red); }
.gr-mine-record-card.gr-mine-record-notice p { margin-block: 8px 12px; color: var(--record-muted); font-size: 0.875rem; }
.gr-mine-record-card.gr-mine-record-notice time { color: var(--record-muted); font-size: 0.75rem; }
