/* Hallmark | existing app control palette migration | warm system tokens | 2026-11-03 */
/* Critique: remove blue compiled overrides that outrank the shared Ant Design theme. */
html,
body {
  width: 100%;
  height: 100%;
}

.smartgov-quality-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid #d9a441;
  border-radius: 8px;
  background: #fff8e8;
  color: #5c430f;
  font-size: 13px;
  line-height: 1.6;
}

.smartgov-quality-banner > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.smartgov-quality-banner-icon {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #9a6700;
  color: #fff;
  font-weight: 700;
}

.smartgov-quality-toggle {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #9a6700;
  border-radius: 6px;
  background: #fff;
  color: #6b4900;
  cursor: pointer;
}

.smartgov-quality-toggle:hover {
  background: #fff1c2;
}

.smartgov-quality-toggle:focus-visible {
  outline: 2px solid var(--sg-accent);
  outline-offset: 2px;
}

.smartgov-quality-badge,
.smartgov-date-warning {
  display: inline-block;
  max-width: 100%;
  margin-top: 4px;
  padding: 1px 6px;
  border: 1px solid #d9a441;
  border-radius: 999px;
  background: #fff8e8;
  color: #6b4900;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

tr[data-smartgov-quality="bad"] > td {
  background: #fffdf7 !important;
}

@media (max-width: 640px) {
  .smartgov-quality-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .smartgov-quality-toggle {
    margin-left: 30px;
  }
}

@media (max-width: 767px) {
  .high-tech-page .ant-row:has(.ant-statistic) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-right: 0;
    margin-left: 0;
  }

  .high-tech-page .ant-row:has(.ant-statistic) > .ant-col {
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }

  .high-tech-page .ant-statistic-title {
    white-space: nowrap;
  }
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
@-ms-viewport {
  width: device-width;
}
body {
  margin: 0;
}
[tabindex="-1"]:focus {
  outline: none;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
abbr[title],
abbr[data-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type="text"],
input[type="password"],
input[type="number"],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family:
    SFMono-Regular,
    Consolas,
    Liberation Mono,
    Menlo,
    Courier,
    monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
a,
area,
button,
[role="button"],
input:not([type="range"]),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  text-align: left;
  caption-side: bottom;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
input[type="radio"],
input[type="checkbox"] {
  box-sizing: border-box;
  padding: 0;
}
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
[type="search"] {
  outline-offset: -2px;
  -webkit-appearance: none;
}
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}
mark {
  padding: 0.2em;
  background-color: #feffe6;
}
:root {
  --gov-bg: var(--sg-subtle);
  --gov-primary: var(--sg-accent);
  --gov-primary-strong: var(--sg-accent-hover);
  --gov-border: var(--sg-border);
  --gov-sider-bg: var(--sg-accent-hover);
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  height: 100%;
}
body {
  margin: 0;
  background: var(--gov-bg);
  color: var(--sg-text);
  font-family:
    Source Han Sans SC,
    PingFang SC,
    Microsoft YaHei,
    sans-serif;
}
.smartgov-app-shell.gov-layout {
  min-height: 100vh;
  background: var(--gov-bg);
}
.smartgov-app-shell .gov-body-shell,
.smartgov-app-shell .gov-main-layout {
  min-height: 100vh;
  min-width: 0;
  background: var(--gov-bg);
}
.smartgov-app-shell .gov-sider.gov-sider-dark.ant-layout-sider {
  background: var(--gov-sider-bg);
  border-right: 1px solid var(--sg-accent-hover);
}
.smartgov-app-shell .gov-sider-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  margin: 8px 10px 10px;
  border-radius: 8px;
  background: #ffffff0f;
  color: var(--sg-subtle);
  cursor: pointer;
  outline: none;
}
.smartgov-app-shell .gov-sider-brand:focus-visible {
  box-shadow: 0 0 0 2px var(--sg-selected);
}
.smartgov-app-shell .gov-sider-brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff29;
  font-size: 16px;
}
.smartgov-app-shell .gov-sider-brand-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.smartgov-app-shell .gov-sider-brand-subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: var(--sg-border-strong);
  line-height: 1.2;
}
.smartgov-app-shell .gov-side-menu.ant-menu {
  background: transparent;
  border-inline-end: none;
  padding: 4px 10px 10px;
}
.smartgov-app-shell .gov-side-menu .ant-menu-item {
  height: 42px;
  line-height: 42px;
  margin: 4px 0;
  border-radius: 8px;
  color: var(--sg-selected);
  font-size: 14px;
}
.smartgov-app-shell .gov-side-menu .ant-menu-item .ant-menu-item-icon {
  font-size: 16px;
}
.smartgov-app-shell .gov-side-menu .ant-menu-item:hover {
  color: #fff;
  background: #ffffff1a;
}
.smartgov-app-shell .gov-side-menu .ant-menu-item-selected {
  color: #fff;
  background: linear-gradient(90deg, var(--sg-accent) 0, var(--sg-accent));
  font-weight: 600;
}
.smartgov-app-shell .gov-header.gov-header-toolbar {
  height: 52px;
  line-height: 52px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid var(--gov-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.smartgov-app-shell .gov-header-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.smartgov-app-shell .gov-header-home {
  color: var(--sg-muted);
}
.smartgov-app-shell .gov-header-divider {
  color: var(--sg-muted);
}
.smartgov-app-shell .gov-header-current {
  color: var(--gov-primary-strong);
  font-weight: 600;
}
.smartgov-app-shell .gov-header-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sg-muted);
  font-size: 13px;
}
.gov-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--sg-muted);
  cursor: pointer;
  font: inherit;
}
.gov-user-trigger:hover {
  background: var(--sg-subtle);
}
.gov-user-trigger em {
  color: var(--sg-muted);
  font-size: 11px;
  font-style: normal;
}
.auth-loading-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: var(--sg-subtle);
  color: var(--sg-muted);
  font-size: 13px;
}
.smartgov-app-shell .gov-main.gov-main-with-sider {
  padding: 16px;
  background: var(--gov-bg);
  min-width: 0;
}
.gov-card {
  margin-bottom: 16px;
}
.gov-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.gov-title {
  position: relative;
  margin: 0;
  padding-left: 10px;
  font-size: 17px;
  line-height: 1.35;
  color: var(--gov-primary-strong);
  font-weight: 700;
}
.gov-title:before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 999px;
  background: var(--gov-primary);
}
.gov-tabs .ant-tabs-nav {
  margin-bottom: 12px;
}
.gov-tabs .ant-tabs-tab {
  padding: 10px 14px;
}
.gov-tabs .ant-tabs-tab-active .ant-tabs-tab-btn {
  color: var(--gov-primary-strong);
  font-weight: 600;
}
.gov-tabs .ant-tabs-ink-bar {
  background: var(--gov-primary);
  height: 2px;
}
.policy-review-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.policy-review-sidebar {
  border: 1px solid var(--gov-border);
  border-radius: 8px;
  background: var(--sg-subtle);
  padding: 12px;
}
.policy-review-group-title,
.policy-review-source-title {
  position: relative;
  margin: 0 0 10px;
  padding-left: 10px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--gov-primary-strong);
}
.policy-review-group-title:before,
.policy-review-source-title:before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 999px;
  background: var(--gov-primary);
}
.policy-review-region-list,
.policy-review-source-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.policy-review-region-item,
.policy-review-source-item {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--sg-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: var(--sg-text);
}
.policy-review-region-item.active,
.policy-review-source-item.active {
  border-color: var(--sg-accent);
  background: var(--sg-subtle);
  color: var(--sg-accent);
}
.policy-review-region-item:hover,
.policy-review-source-item:hover {
  border-color: var(--sg-border-strong);
}
.policy-review-source-name {
  font-size: 14px;
  font-weight: 600;
}
.policy-review-source-meta,
.policy-review-empty {
  color: var(--sg-muted);
  font-size: 12px;
}
.policy-review-empty {
  border: 1px dashed var(--sg-border-strong);
  border-radius: 6px;
  background: var(--sg-subtle);
  padding: 8px;
  text-align: center;
}
@media (max-width: 1024px) {
  .smartgov-app-shell .gov-main.gov-main-with-sider {
    padding: 12px;
  }
  .policy-review-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .smartgov-app-shell .gov-header.gov-header-toolbar {
    padding: 0 12px;
  }
  .smartgov-app-shell .gov-header-user {
    display: none;
  }
  .gov-title {
    font-size: 16px;
  }
}
.smartgov-app-shell .gov-sider.gov-sider-dark.ant-layout-sider {
  background: #fff;
  border-right: 1px solid var(--sg-border);
}
.smartgov-app-shell .gov-sider-brand {
  margin: 10px 12px 8px;
  padding: 11px 10px;
  border-radius: 8px;
  background: var(--sg-subtle);
  color: var(--sg-text);
}
.smartgov-app-shell .gov-sider-brand-icon {
  background: linear-gradient(135deg, var(--sg-accent), var(--sg-accent));
  color: #fff;
}
.smartgov-app-shell .gov-sider-brand-title {
  color: var(--sg-text);
  font-size: 14px;
  font-weight: 600;
}
.smartgov-app-shell .gov-sider-brand-subtitle {
  color: var(--sg-muted);
}
.smartgov-app-shell .gov-side-menu.ant-menu {
  background: #fff;
  padding: 2px 10px 12px;
}
.smartgov-app-shell .gov-side-menu .ant-menu-item,
.smartgov-app-shell .gov-side-menu .ant-menu-submenu-title {
  height: 46px;
  line-height: 46px;
  margin: 2px 0;
  padding-inline: 16px !important;
  border-radius: 6px;
  color: var(--sg-muted);
  font-size: 14px;
  font-weight: 400;
}
.smartgov-app-shell .gov-side-menu .ant-menu-item .anticon,
.smartgov-app-shell .gov-side-menu .ant-menu-submenu-title .anticon {
  color: var(--sg-muted);
  font-size: 17px;
}
.smartgov-app-shell .gov-side-menu .ant-menu-item:hover,
.smartgov-app-shell .gov-side-menu .ant-menu-submenu-title:hover {
  background: var(--sg-subtle);
  color: var(--sg-text);
}
.smartgov-app-shell
  .gov-side-menu
  .ant-menu-submenu-open
  > .ant-menu-submenu-title {
  background: #ececec;
  color: var(--sg-text);
}
.smartgov-app-shell .gov-side-menu .ant-menu-submenu-arrow {
  color: #9aa3af;
}
.smartgov-app-shell .gov-side-menu .ant-menu-sub.ant-menu-inline {
  background: #fff;
}
.smartgov-app-shell .gov-side-menu .ant-menu-sub .ant-menu-item {
  height: 42px;
  line-height: 42px;
  padding-left: 52px !important;
  color: var(--sg-muted);
  font-size: 14px;
}
.smartgov-app-shell .gov-side-menu .ant-menu-sub .ant-menu-item .anticon {
  color: var(--sg-muted);
  font-size: 16px;
}
.smartgov-app-shell .gov-side-menu .ant-menu-item-selected {
  background: #f0f1f3;
  color: var(--sg-text);
  font-weight: 500;
}
.smartgov-app-shell .gov-side-menu .ant-menu-item-selected:after {
  display: none;
}
.smartgov-app-shell .gov-side-menu .gov-menu-home.ant-menu-item-selected {
  background: var(--sg-accent);
  color: #fff;
}
.smartgov-app-shell
  .gov-side-menu
  .gov-menu-home.ant-menu-item-selected
  .anticon {
  color: #fff;
}
.ai-cute-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--sg-accent);
}
.ai-cute-emoji {
  display: inline-block;
  font-size: 28px;
  transform-origin: 50% 80%;
  animation: aiCuteBounce 1s ease-in-out infinite;
}
.ai-cute-text {
  letter-spacing: 0.2px;
}
.ai-cute-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.ai-cute-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sg-accent);
  animation: aiCuteBlink 1.2s infinite;
}
.ai-cute-dots i:nth-child(2) {
  animation-delay: 0.2s;
}
.ai-cute-dots i:nth-child(3) {
  animation-delay: 0.4s;
}
.ant-message-notice-content.ai-cute-message,
.ai-cute-message .ant-message-notice-content {
  background: linear-gradient(135deg, var(--sg-subtle), #ecfeff);
  border: 1px solid var(--sg-selected);
  box-shadow: 0 10px 30px var(--sg-transparent);
  border-radius: 14px;
}
.ant-message-notice-content {
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 12px;
}
.ht-workspace-topline .ant-badge-status-dot {
  width: 10px;
  height: 10px;
}
@keyframes aiCuteBounce {
  0%,
  to {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-6px) rotate(6deg);
  }
}
@keyframes aiCuteBlink {
  0%,
  80%,
  to {
    opacity: 0.25;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1.15);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-cute-emoji,
  .ai-cute-dots i {
    animation: none;
  }
}
.ai-big-overlay {
  position: fixed;
  right: 40px;
  bottom: 30px;
  z-index: 3200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  pointer-events: none;
}
.ai-big-overlay.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.ai-big-fish {
  display: block;
  width: 168px;
  height: 168px;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px var(--sg-selected));
  animation: aiBigFloat 1.9s ease-in-out infinite;
  will-change: transform;
}
.ai-big-caption {
  padding: 3px 12px;
  border-radius: 999px;
  background: #ffffffeb;
  box-shadow: 0 6px 18px var(--sg-transparent);
  color: var(--sg-accent);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
@keyframes aiBigFloat {
  0%,
  to {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@media (max-width: 720px) {
  .ai-big-overlay {
    right: 14px;
    bottom: 14px;
  }
  .ai-big-fish {
    width: 132px;
    height: 132px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-big-fish {
    animation: none;
  }
}
.rd-advice-block {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--sg-selected);
  border-radius: 12px;
  background: var(--sg-subtle);
}
.rd-advice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.rd-advice-title {
  color: var(--sg-accent);
  font-size: 15px;
  font-weight: 700;
}
.rd-advice-sub {
  margin-top: 2px;
  color: var(--sg-muted);
  font-size: 12px;
}
.rd-advice-text {
  margin-top: 12px;
  color: var(--sg-text);
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
}
.rd-advice-empty {
  margin-top: 12px;
  color: var(--sg-muted);
  font-size: 13px;
}
.policy-source-page,
.policy-review-page {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.policy-source-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}
.policy-source-heading h1 {
  margin: 0;
  color: var(--sg-text);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 650;
}
.policy-source-heading p {
  margin: 4px 0 0;
  color: var(--sg-muted);
  font-size: 13px;
}
.policy-source-file-input {
  display: none;
}
.policy-source-filter .ant-card-body {
  padding: 14px 16px;
}
.policy-source-filter .ant-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 1.1fr) minmax(
      140px,
      0.8fr
    ) auto;
  align-items: center;
  gap: 8px 12px;
}
.policy-source-filter .ant-form-item {
  margin: 0;
  min-width: 0;
}
.policy-source-filter .ant-input {
  width: 100%;
}
.policy-source-table .ant-card-body {
  padding: 8px 12px 12px;
}
.policy-source-table .ant-table-cell {
  vertical-align: middle;
}
.policy-source-cell-text,
.policy-source-url {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.policy-source-url {
  color: var(--sg-accent);
}
.policy-source-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  white-space: nowrap;
}
.policy-source-actions .ant-btn {
  flex: 0 0 auto;
}
.policy-danger-menu-item {
  color: #c93636;
}
.policy-source-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin: 0 0 8px;
  padding: 4px 10px;
  background: var(--sg-subtle);
  border: 1px solid var(--sg-border);
  border-radius: 4px;
  color: var(--sg-muted);
  font-size: 13px;
}
.policy-log-source-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--sg-muted);
  font-size: 13px;
}
.policy-log-error {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.policy-review-page .policy-review-card .ant-card-body {
  padding: 14px;
}
.policy-review-page .policy-review-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
}
@media (max-width: 1100px) {
  .policy-source-filter .ant-form {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}
@media (max-width: 720px) {
  .policy-source-heading,
  .policy-source-selection-bar,
  .policy-log-source-summary {
    align-items: stretch;
    flex-direction: column;
  }
  .policy-source-heading .ant-space {
    justify-content: flex-start;
  }
  .policy-source-filter .ant-form,
  .policy-review-page .policy-review-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .policy-review-sidebar {
    max-height: 220px;
    overflow: auto;
  }
}
.policy-overview-page {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.policy-overview-heading,
.policy-attachment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.policy-overview-heading h1 {
  margin: 0;
  color: var(--sg-text);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 650;
}
.policy-overview-heading p {
  margin: 4px 0 0;
  color: var(--sg-muted);
  font-size: 13px;
}
.policy-overview-filter .ant-card-body {
  padding: 14px 16px;
}
.policy-overview-source-directory .ant-card-body {
  padding: 18px 20px 20px;
}
.policy-source-directory-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.policy-source-directory-heading h2 {
  margin: 0;
  color: var(--sg-text);
  font-size: 17px;
  line-height: 1.4;
}
.policy-source-directory-heading p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--sg-muted);
  font-size: 13px;
  line-height: 1.7;
}
.policy-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 12px;
}
.policy-source-card {
  display: grid;
  gap: 8px;
  min-height: 178px;
  padding: 15px 16px 13px;
  border: 1px solid var(--sg-border);
  border-radius: 6px;
  background: #fff;
  color: var(--sg-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}
.policy-source-card:hover {
  border-color: var(--sg-accent);
  box-shadow: 0 6px 18px var(--sg-transparent);
  transform: translateY(-1px);
}
.policy-source-card:focus-visible {
  outline: 2px solid var(--sg-accent);
  outline-offset: 2px;
}
.policy-source-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.policy-source-card-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 4px;
  background: var(--sg-subtle);
  color: var(--sg-accent);
  font-size: 14px;
  font-weight: 700;
}
.policy-source-card h3 {
  margin: 0;
  overflow: hidden;
  color: var(--sg-text);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.policy-source-card p {
  margin: 0;
  overflow: hidden;
  color: var(--sg-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.policy-source-card-stats {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 2px;
}
.policy-source-card-stats strong {
  color: var(--sg-accent);
  font-size: 26px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.policy-source-card-stats span {
  color: var(--sg-muted);
  font-size: 12px;
}
.policy-source-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--sg-border);
  color: var(--sg-muted);
  font-size: 11px;
}
.policy-source-card-foot b {
  color: var(--sg-accent);
  font-size: 12px;
  font-weight: 600;
}
.policy-source-empty {
  padding: 26px 0 10px;
  color: var(--sg-muted);
  font-size: 13px;
  text-align: center;
}
.policy-overview-list-context {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 11px;
  color: var(--sg-muted);
  font-size: 13px;
}
.policy-overview-list-context b {
  color: var(--sg-accent-hover);
  font-weight: 600;
}
.policy-overview-filter-form.ant-form {
  display: grid;
  grid-template-columns: minmax(210px, 1.45fr) minmax(130px, 0.8fr) minmax(
      140px,
      0.8fr
    ) minmax(170px, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
}
.policy-overview-filter-form .ant-form-item {
  min-width: 0;
  margin: 0;
}
.policy-overview-filter-form .ant-input,
.policy-overview-filter-form .ant-select {
  width: 100%;
}
.policy-overview-table .ant-card-body {
  padding: 8px 12px 12px;
}
.policy-overview-table .ant-table-cell {
  vertical-align: middle;
}
.policy-overview-table .ant-table-thead > tr > th {
  height: 46px;
  color: var(--sg-text);
  font-weight: 600;
  white-space: nowrap;
}
.policy-overview-table .ant-table-tbody > tr > td {
  height: 50px;
}
.policy-overview-actions {
  white-space: nowrap;
}
.policy-detail-modal .ant-modal-content {
  overflow: hidden;
}
.policy-detail-modal .ant-modal-body {
  padding-top: 14px;
}
.policy-detail-content {
  min-width: 0;
}
.policy-detail-title {
  margin: 0 0 16px;
  color: var(--sg-text);
  font-size: 20px;
  line-height: 1.55;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.policy-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 10px;
  margin: 0;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--sg-border);
}
.policy-detail-meta > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
.policy-detail-meta dt {
  color: var(--sg-muted);
  font-size: 13px;
}
.policy-detail-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--sg-text);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.policy-detail-meta-url {
  grid-column: 1 / -1;
}
.policy-detail-meta-url a {
  color: var(--sg-accent);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.policy-detail-section {
  margin-top: 18px;
}
.policy-detail-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--sg-text);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 650;
}
.policy-detail-body {
  max-height: min(42vh, 520px);
  overflow: auto;
  padding: 16px 18px;
  border: 1px solid var(--sg-border);
  border-radius: 4px;
  background: #fff;
  color: var(--sg-text);
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.policy-detail-body pre {
  margin: 0;
  white-space: pre-wrap;
  font: inherit;
}
.policy-safe-html {
  max-width: none;
}
.policy-safe-html > :first-child {
  margin-top: 0;
}
.policy-safe-html h1,
.policy-safe-html h2,
.policy-safe-html h3,
.policy-safe-html h4 {
  color: var(--sg-text);
  line-height: 1.55;
}
.policy-safe-html p {
  margin: 0 0 12px;
  text-indent: 2em;
}
.policy-safe-html ul,
.policy-safe-html ol {
  padding-left: 2em;
}
.policy-safe-html table {
  width: max-content;
  min-width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
  table-layout: auto;
  color: inherit;
}
.policy-safe-html th,
.policy-safe-html td {
  min-width: 72px;
  border: 1px solid var(--sg-border-strong);
  padding: 7px 9px;
  vertical-align: top;
  text-indent: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}
.policy-safe-html th {
  background: var(--sg-subtle);
  color: var(--sg-text);
  font-weight: 600;
  white-space: nowrap;
}
.policy-safe-html caption {
  padding: 6px 0;
  color: var(--sg-muted);
  font-weight: 600;
  text-align: left;
}
.policy-safe-html img {
  max-width: 100%;
  height: auto;
}
.policy-detail-muted {
  color: var(--sg-muted);
}
.policy-attachment-heading {
  align-items: flex-start;
}
.policy-attachment-heading h3 {
  margin-bottom: 3px;
}
.policy-attachment-count {
  color: var(--sg-muted);
  font-size: 13px;
  font-weight: 500;
}
.policy-attachment-summary,
.policy-attachment-file-meta {
  color: var(--sg-muted);
  font-size: 12px;
}
.policy-attachment-list {
  border-top: 1px solid var(--sg-border);
}
.policy-attachment-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  border-bottom: 1px solid var(--sg-border);
}
.policy-attachment-file {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}
.policy-attachment-name {
  overflow: hidden;
  color: var(--sg-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .policy-overview-filter-form.ant-form {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }
}
@media (max-width: 720px) {
  .policy-overview-heading,
  .policy-attachment-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .policy-overview-heading > .ant-space {
    justify-content: flex-start;
  }
  .policy-overview-filter-form.ant-form,
  .policy-detail-meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .policy-detail-meta-url {
    grid-column: auto;
  }
  .policy-attachment-heading .ant-btn {
    width: 100%;
  }
  .policy-attachment-row {
    gap: 6px;
  }
}
.policy-decompose-page,
.policy-report-page {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.decompose-heading,
.report-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.decompose-heading h1,
.report-toolbar h1 {
  margin: 0;
  color: var(--sg-text);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.decompose-heading p,
.report-toolbar p {
  margin: 5px 0 0;
  color: var(--sg-muted);
  font-size: 13px;
}
.decompose-filter .ant-card-body {
  padding: 14px 16px;
}
.decompose-filter .ant-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(130px, 0.7fr) minmax(
      140px,
      0.8fr
    ) auto;
  gap: 10px 12px;
  align-items: center;
}
.decompose-filter .ant-form-item {
  margin: 0;
  min-width: 0;
}
.decompose-filter .ant-input,
.decompose-filter .ant-select {
  width: 100%;
}
.decompose-table-card .ant-card-body {
  padding: 10px 14px 14px;
}
.decompose-table-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--sg-subtle);
  color: var(--sg-muted);
  font-size: 12px;
}
.decompose-title-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sg-accent);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.decompose-title-link:hover {
  color: var(--sg-accent-hover);
  text-decoration: underline;
}
.related-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--sg-border);
  border-radius: 10px;
  background: var(--sg-subtle);
}
.related-picker-head > div {
  display: grid;
  gap: 4px;
}
.related-picker-head b {
  color: var(--sg-accent-hover);
  font-size: 15px;
}
.related-picker-head span {
  color: var(--sg-muted);
  font-size: 12px;
}
.related-picker-alert {
  margin: 12px 0;
}
.related-title-cell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.related-title-cell a {
  flex: none;
  color: var(--sg-accent);
  font-size: 12px;
}
.related-reason {
  display: -webkit-box;
  overflow: hidden;
  color: var(--sg-muted);
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.report-toolbar {
  padding: 2px 2px 4px;
}
.report-eyebrow {
  margin-bottom: 4px;
  color: var(--sg-accent);
  font-size: 12px;
  font-weight: 600;
}
.report-toolbar .ant-btn {
  border-radius: 7px;
}
.report-policy-card,
.report-panel,
.report-related-panel {
  border: 1px solid var(--sg-border);
  border-radius: 12px;
  box-shadow: 0 3px 14px var(--sg-transparent);
}
.report-policy-card .ant-card-body {
  padding: 20px 22px 17px;
}
.report-card-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--sg-text);
  font-size: 13px;
  font-weight: 600;
}
.report-accent-bar {
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--sg-accent), var(--sg-accent));
}
.report-ready-tag {
  margin-left: auto;
  border-radius: 6px;
}
.report-policy-card h2 {
  margin: 13px 0 16px 13px;
  color: var(--sg-accent-hover);
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.report-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  padding: 14px 0;
  border-top: 1px solid var(--sg-subtle);
  border-bottom: 1px solid var(--sg-subtle);
}
.report-meta-grid > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 0 14px;
  border-right: 1px solid var(--sg-border);
}
.report-meta-grid > div:first-child {
  padding-left: 0;
}
.report-meta-grid > div:last-child {
  border-right: 0;
}
.report-meta-grid span {
  color: var(--sg-muted);
  font-size: 12px;
}
.report-meta-grid b {
  overflow: hidden;
  color: var(--sg-text);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-meta-grid .report-highlight {
  color: var(--sg-accent);
}
.report-threshold {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--sg-selected);
  border-radius: 8px;
  background: var(--sg-subtle);
  color: var(--sg-accent);
  font-size: 13px;
  line-height: 1.6;
}
.report-note {
  margin-top: 10px;
  color: var(--sg-muted);
  font-size: 12px;
  line-height: 1.6;
}
.report-evidence-brief {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--sg-border);
  border-radius: 10px;
  background: var(--sg-subtle);
}
.report-evidence-brief.is-insufficient {
  border-color: #f1c979;
  background: #fff9ec;
}
.report-evidence-brief > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.report-evidence-brief span {
  color: var(--sg-muted);
  font-size: 11px;
}
.report-evidence-brief b {
  color: var(--sg-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.report-evidence-brief.is-insufficient b {
  color: #855a11;
}
.report-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 -3px;
}
.report-section-title h3 {
  margin: 0;
  color: var(--sg-text);
  font-size: 18px;
}
.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.report-kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px 15px;
  border: 1px solid var(--sg-border);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sg-subtle), var(--sg-subtle));
}
.report-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--sg-subtle);
  color: var(--sg-accent);
  font-size: 18px;
  font-weight: 700;
}
.report-kpi > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.report-kpi small {
  color: var(--sg-muted);
  font-size: 11px;
}
.report-kpi strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--sg-accent-hover);
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.report-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.report-panel .ant-card-body {
  padding: 17px 18px;
}
.report-panel-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  color: var(--sg-text);
  font-size: 15px;
  font-weight: 650;
}
.report-panel-title span {
  color: var(--sg-accent);
  font-size: 14px;
}
.report-history-list {
  display: grid;
  gap: 9px;
}
.report-history-line {
  display: flex;
  gap: 8px;
  color: var(--sg-muted);
  font-size: 12px;
  line-height: 1.65;
}
.report-history-dot {
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--sg-accent);
}
.report-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.report-profile-tag {
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--sg-selected);
  border-radius: 7px;
  background: var(--sg-subtle);
  color: var(--sg-accent);
  font-size: 12px;
}
.report-customer-list {
  display: grid;
  gap: 7px;
}
.report-customer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 8px;
  background: var(--sg-subtle);
}
.report-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sg-subtle);
  color: var(--sg-accent);
  font-size: 11px;
  font-weight: 700;
}
.report-rank.rank-1 {
  background: #f8c95c;
  color: #fff;
}
.report-rank.rank-2 {
  background: var(--sg-border-strong);
  color: #fff;
}
.report-rank.rank-3 {
  background: #d49a6a;
  color: #fff;
}
.report-customer-main {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.report-customer-main b {
  overflow: hidden;
  color: var(--sg-text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-customer-main small {
  overflow: hidden;
  color: var(--sg-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-customer-main .report-why {
  overflow: hidden;
  color: var(--sg-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-customer-main .report-gap {
  color: #a66a2b;
}
.report-opportunity-list {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.report-score {
  flex: none;
  color: var(--sg-accent);
  font-size: 12px;
  font-weight: 600;
}
.report-opportunity-summary {
  margin-bottom: 14px;
  color: var(--sg-muted);
  font-size: 12px;
}
.report-opportunity-summary b {
  margin: 0 3px;
  color: var(--sg-accent);
  font-size: 19px;
}
.report-panel-count {
  margin-left: 4px;
  color: var(--sg-muted);
  font-size: 11px;
  font-weight: 400;
}
.report-panel-title .ant-btn-link {
  margin-left: auto;
  padding: 0;
  font-size: 11px;
}
.report-history-stats {
  display: grid;
  gap: 14px;
}
.report-history-total {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--sg-muted);
  font-size: 12px;
}
.report-history-total b {
  color: var(--sg-accent);
  font-size: 34px;
  line-height: 1;
}
.report-history-bars {
  display: grid;
  gap: 10px;
}
.report-opportunity-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.report-opportunity-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  background: var(--sg-subtle);
  break-inside: avoid;
}
.report-opportunity-rank {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sg-subtle);
  color: var(--sg-accent);
  font-size: 12px;
  font-weight: 700;
}
.report-opportunity-main {
  min-width: 0;
}
.report-opportunity-name {
  color: var(--sg-accent-hover);
  font-size: 13px;
  font-weight: 600;
}
.report-opportunity-meta {
  margin-top: 2px;
  color: var(--sg-muted);
  font-size: 11px;
}
.report-opportunity-reason {
  margin-top: 3px;
  color: var(--sg-muted);
  font-size: 12px;
  line-height: 1.6;
}
.report-opportunity-subtitle {
  margin-top: 12px;
  color: var(--sg-muted);
  font-size: 12px;
}
.report-profile-summary {
  margin: 0;
  padding: 13px 14px;
  border-left: 3px solid var(--sg-accent);
  border-radius: 6px;
  background: var(--sg-subtle);
  color: var(--sg-muted);
  font-size: 13px;
  line-height: 1.8;
}
.report-profile-note {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.report-profile-note > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  color: var(--sg-muted);
  font-size: 12px;
  line-height: 1.65;
}
.report-profile-note b {
  color: var(--sg-muted);
  font-weight: 600;
}
.report-profile-disclaimer {
  display: block;
  margin-top: 11px;
  color: var(--sg-muted);
  font-size: 10px;
}
.report-bars {
  display: grid;
  gap: 11px;
}
.report-bar-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
}
.report-bar-label {
  color: var(--sg-muted);
  font-size: 12px;
}
.report-bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--sg-subtle);
}
.report-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--sg-border-strong), var(--sg-accent));
}
.report-bar-value {
  color: var(--sg-muted);
  font-size: 12px;
  text-align: right;
}
.report-related-panel .ant-card-body {
  padding: 16px 18px;
}
.report-related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.report-related-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--sg-subtle);
  border-radius: 8px;
  background: var(--sg-subtle);
}
.report-related-item > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.report-related-item b {
  overflow: hidden;
  color: var(--sg-text);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-related-item small {
  overflow: hidden;
  color: var(--sg-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-footer-note {
  padding: 11px 14px;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  background: var(--sg-subtle);
  color: var(--sg-muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.decompose-progress {
  display: grid;
  gap: 12px;
}
.decompose-progress-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--sg-accent-hover);
  font-size: 14px;
  font-weight: 600;
}
.decompose-progress-elapsed {
  color: var(--sg-muted);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.decompose-progress-events {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--sg-subtle);
}
.decompose-progress-event {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  color: var(--sg-muted);
  font-size: 12px;
}
.decompose-progress-event span {
  color: var(--sg-accent);
  font-weight: 600;
}
.decompose-progress-event b {
  overflow: hidden;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .report-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 12px;
  }
  .report-meta-grid > div:nth-child(3n) {
    border-right: 0;
  }
  .report-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-evidence-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .decompose-heading,
  .report-toolbar {
    flex-direction: column;
  }
  .decompose-filter .ant-form,
  .report-two-col,
  .report-related-list {
    grid-template-columns: 1fr;
  }
  .report-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-meta-grid > div:nth-child(2n) {
    border-right: 0;
  }
  .report-kpi-grid {
    grid-template-columns: 1fr;
  }
  .report-policy-card h2 {
    font-size: 21px;
  }
  .report-evidence-brief {
    grid-template-columns: 1fr;
  }
}
@media print {
  @page {
    size: A4;
    margin: 0;
  }
  body {
    background: #fff !important;
  }
  body * {
    visibility: hidden;
  }
  .policy-report-page,
  .policy-report-page * {
    visibility: visible;
  }
  .policy-report-page {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    padding: 10mm 10mm 8mm;
    gap: 8px;
  }
  .print-hide,
  .report-toolbar,
  .ant-drawer,
  .ant-modal-root,
  .ant-layout-sider,
  .app-header,
  .report-footer-note,
  .report-threshold {
    display: none !important;
  }
  .report-policy-card,
  .report-panel,
  .report-related-panel,
  .report-kpi {
    box-shadow: none !important;
    break-inside: avoid;
  }
  .report-policy-card {
    padding: 10px 12px !important;
  }
  .report-policy-card h2 {
    font-size: 18px !important;
    margin: 2px 0 6px !important;
  }
  .report-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    row-gap: 4px !important;
  }
  .report-section-title {
    margin: 4px 0 !important;
  }
  .report-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .report-kpi {
    min-height: 0 !important;
    padding: 6px 9px !important;
  }
  .report-kpi strong {
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
  }
  .report-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .report-panel {
    padding: 8px 10px !important;
    min-height: 0 !important;
  }
  .report-panel-title {
    margin-bottom: 5px !important;
  }
  .report-bar-fill,
  .report-kpi,
  .report-profile-summary,
  .report-opportunity-item,
  .report-history-total b {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .report-history-bars .report-bar-track {
    border: 1px solid var(--sg-border);
  }
  .report-history-bars .report-bar-fill {
    background: var(--sg-accent) !important;
  }
  .report-customer-main b,
  .report-customer-main small,
  .report-customer-main .report-why {
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    line-height: 1.5 !important;
  }
}
.innovation-page {
  display: grid;
  gap: 14px;
}
.innovation-heading h1 {
  margin: 0;
  color: var(--sg-accent-hover);
  font-size: 24px;
}
.innovation-heading p {
  margin: 5px 0 0;
  color: var(--sg-muted);
  font-size: 13px;
}
.innovation-filter .ant-card-body {
  padding: 14px 16px;
}
.innovation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.innovation-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.innovation-stats .ant-card {
  border: 1px solid var(--sg-border);
  border-radius: 10px;
}
.innovation-stats .ant-card-body {
  display: grid;
  gap: 7px;
  padding: 16px 18px;
}
.innovation-stats span {
  color: var(--sg-muted);
  font-size: 12px;
}
.innovation-stats b {
  color: var(--sg-accent-hover);
  font-size: 24px;
  line-height: 1;
}
.innovation-table .ant-card-body {
  padding: 8px 12px 12px;
}
.innovation-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.innovation-year-table {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
}
.innovation-year-head,
.innovation-year-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr 100px 70px;
  align-items: center;
  gap: 8px;
}
.innovation-year-head {
  color: var(--sg-muted);
  font-size: 12px;
  font-weight: 600;
}
.innovation-year-row .ant-input-number {
  width: 100%;
}
.innovation-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 9px;
  background: var(--sg-subtle);
}
.innovation-detail-head h2 {
  margin: 0;
  color: var(--sg-accent-hover);
  font-size: 20px;
}
.innovation-detail-head p {
  margin: 5px 0 0;
  color: var(--sg-muted);
  font-size: 12px;
}
@media (max-width: 900px) {
  .innovation-stats,
  .innovation-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .innovation-year-head,
  .innovation-year-row {
    grid-template-columns: 90px 1fr 1fr 80px 58px;
  }
}
@media (max-width: 640px) {
  .innovation-stats,
  .innovation-form-grid {
    grid-template-columns: 1fr;
  }
}
.opportunity-pool-page {
  display: grid;
  gap: 14px;
}
.opportunity-heading h1 {
  margin: 0;
  color: var(--sg-accent-hover);
  font-size: 24px;
}
.opportunity-heading p {
  margin: 5px 0 0;
  color: var(--sg-muted);
  font-size: 13px;
}
.opportunity-filter .ant-card-body {
  padding: 14px 16px;
}
.opportunity-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.opportunity-actions-right {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.opportunity-table .ant-card-body {
  padding: 8px 12px 12px;
}
.opportunity-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.opportunity-form-grid .span-2 {
  grid-column: span 2;
}
.opportunity-detail-subtitle {
  margin: 18px 0 10px;
  color: var(--sg-text);
  font-size: 15px;
}
@media (max-width: 720px) {
  .opportunity-form-grid {
    grid-template-columns: 1fr;
  }
  .opportunity-form-grid .span-2 {
    grid-column: span 1;
  }
  .opportunity-actions-right {
    margin-left: 0;
  }
}
.apply-project-page {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.apply-project-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.apply-project-heading h1 {
  margin: 0;
  color: var(--sg-accent-hover);
  font-size: 24px;
  line-height: 1.35;
}
.apply-project-heading p {
  margin: 5px 0 0;
  color: var(--sg-muted);
  font-size: 13px;
}
.apply-project-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.apply-region-nav .ant-card-body {
  padding: 12px 10px;
}
.apply-region-nav-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px 10px;
  color: var(--sg-text);
  font-size: 14px;
  font-weight: 650;
}
.apply-region-nav-heading .anticon {
  color: var(--sg-accent);
}
.apply-region-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--sg-muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.apply-region-item:hover {
  background: var(--sg-subtle);
}
.apply-region-item.active {
  background: var(--sg-subtle);
  color: var(--sg-accent);
  font-weight: 650;
}
.apply-region-group {
  margin-top: 2px;
}
.apply-year-list {
  display: grid;
  gap: 2px;
  margin: 3px 0 7px 14px;
  padding-left: 9px;
  border-left: 1px solid var(--sg-border);
}
.apply-year-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--sg-muted);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.apply-year-item:hover,
.apply-year-item.active {
  background: var(--sg-subtle);
  color: var(--sg-accent);
}
.apply-year-item em {
  color: var(--sg-muted);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.apply-year-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.apply-region-empty {
  padding: 12px 8px;
  color: var(--sg-muted);
  font-size: 12px;
}
.apply-project-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 14px;
}
.apply-project-main > * {
  min-width: 0;
}
.apply-list-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 3px 4px 10px;
  color: var(--sg-muted);
  font-size: 12px;
}
.apply-list-summary b {
  color: var(--sg-accent);
  font-weight: 650;
}
.apply-list-summary b.warning {
  color: #b45309;
}
.apply-quality-summary {
  display: grid;
  gap: 3px;
  margin: 0 4px 12px;
  padding: 10px 12px;
  border: 1px solid #f5c26b;
  border-radius: 8px;
  background: #fff8e8;
  color: #8a5a12;
  font-size: 12px;
  line-height: 1.6;
}
.apply-quality-summary b {
  color: #9a4f06;
}
.apply-quality-issue {
  max-width: 220px;
}
.apply-date-rule {
  grid-column: 1 / -1;
  margin: 2px 0 14px;
  padding: 8px 10px;
  border: 1px solid var(--sg-selected);
  border-radius: 6px;
  background: var(--sg-subtle);
  color: var(--sg-muted);
  font-size: 12px;
}
.apply-project-row-warning > td {
  background: #fffaf0 !important;
}
.apply-project-row-warning:hover > td {
  background: #fff5df !important;
}
.apply-city-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sg-text);
  font-size: 13px;
  font-weight: 650;
}
.apply-table .ant-collapse-header {
  padding: 9px 4px !important;
}
.apply-table .ant-collapse-content-box {
  padding: 0 0 14px !important;
}
.apply-filter .ant-card-body {
  padding: 14px 16px;
}
.apply-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.apply-actions .ant-upload-wrapper {
  display: inline-flex;
}
.apply-table .ant-card-body {
  padding: 8px 12px 12px;
  min-width: 0;
  overflow: hidden;
}
.apply-table {
  min-width: 0;
  contain: inline-size;
}
.apply-table,
.apply-table .ant-card-body,
.apply-table .ant-spin-nested-loading,
.apply-table .ant-spin-container,
.apply-table .ant-table,
.apply-table .ant-table-container,
.apply-table .ant-table-content {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.apply-table .ant-table-content {
  overflow-x: auto !important;
}
.apply-table .ant-table-thead > tr > th {
  background: var(--sg-subtle);
  color: var(--sg-text);
  font-weight: 600;
}
.apply-table .ant-table-tbody > tr > td {
  padding-top: 11px;
  padding-bottom: 11px;
}
.apply-table .ant-pagination {
  margin-bottom: 4px;
}
.apply-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
@media (max-width: 900px) {
  .apply-project-heading {
    flex-direction: column;
  }
  .apply-project-layout,
  .apply-form-grid {
    grid-template-columns: 1fr;
  }
  .apply-date-rule {
    grid-column: auto;
  }
}
.high-tech-page .page-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.high-tech-page .page-heading-row h1 {
  margin: 0 0 6px;
  font-size: 24px;
}
.high-tech-page .page-heading-row p {
  margin: 0;
  color: #6b7280;
}
.high-tech-page .stats-row {
  margin-bottom: 16px;
}
.high-tech-page .stats-row .ant-card {
  border-radius: 12px;
}
.high-tech-page .filter-card {
  margin-bottom: 16px;
  border-radius: 12px;
}
.high-tech-page .ant-card {
  border-radius: 12px;
}
.table-ellipsis {
  display: inline-block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.detail-loading {
  padding: 80px;
  color: #6b7280;
  text-align: center;
}
.detail-summary-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--sg-subtle);
  border: 1px solid var(--sg-border);
  border-radius: 10px;
}
.material-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.material-section-card .ant-card-head {
  background: var(--sg-subtle);
}
.material-file-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.material-file-item {
  display: flex;
  align-items: center;
  gap: 2px;
}
.material-file-name {
  display: inline-block;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.muted-text {
  color: #9ca3af;
  font-size: 12px;
}
.review-comment-card {
  margin-top: 16px;
  background: #fffbe6;
}
.ai-writing-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 16px;
  min-height: 620px;
}
.ai-writing-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  overflow: auto;
  background: var(--sg-subtle);
  border: 1px solid var(--sg-border);
  border-radius: 12px;
  max-height: 680px;
}
.ai-writing-nav-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}
.ai-writing-nav-item:hover {
  background: #fff;
  border-color: var(--sg-selected);
}
.ai-writing-nav-item.active {
  background: #fff;
  border-color: var(--sg-accent);
  box-shadow: 0 1px 4px var(--sg-transparent);
}
.ai-writing-code {
  flex: 0 0 auto;
  color: var(--sg-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
}
.ai-writing-title {
  color: var(--sg-text);
  font-size: 13px;
  line-height: 1.45;
}
.ai-writing-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-writing-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sg-border);
}
.ai-writing-heading {
  margin-bottom: 6px;
  color: var(--sg-text);
  font-size: 16px;
  font-weight: 600;
}
.ht-workspace {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 16px;
  min-height: 680px;
}
.ht-workspace.with-tree {
  grid-template-columns: 240px 310px minmax(0, 1fr);
}
.ht-workspace-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 720px;
  padding: 8px;
  overflow: auto;
  background: var(--sg-subtle);
  border: 1px solid var(--sg-border);
  border-radius: 12px;
}
.ht-proposal-tree {
  min-width: 0;
  max-height: 720px;
  padding: 12px 8px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--sg-border);
  border-radius: 12px;
}
.ht-proposal-tree-title {
  padding: 4px 10px 10px;
  color: var(--sg-text);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid #f0f0f0;
}
.ht-proposal-tree .ant-tree {
  margin-top: 8px;
  font-size: 13px;
}
.ht-proposal-tree .ant-tree-node-content-wrapper {
  border-radius: 6px;
}
.ht-proposal-tree .ant-tree-node-selected {
  color: #237a3b !important;
  background: #eaf7ee !important;
}
.ht-proposal-tree .ant-tree-treenode {
  padding-bottom: 2px;
}
.ht-workspace-nav-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 8px 10px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}
.ht-workspace-nav-item:hover {
  background: #fff;
  border-color: var(--sg-selected);
}
.ht-workspace-nav-item.active {
  background: #fff;
  border-color: var(--sg-accent);
  box-shadow: 0 1px 4px var(--sg-transparent);
}
.ht-workspace-nav-item b {
  display: block;
  color: var(--sg-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.ht-workspace-nav-item.saved b,
.ht-workspace-nav-item.saved .ht-workspace-section-code {
  color: #16a34a;
}
.ht-nav-saved {
  color: #16a34a;
  font-weight: 600;
}
.ht-workspace-nav-item em {
  display: block;
  margin-top: 2px;
  color: #9ca3af;
  font-size: 10px;
  font-style: normal;
}
.ht-workspace-section-code {
  flex: 0 0 auto;
  color: var(--sg-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
}
.ht-workspace-main {
  min-width: 0;
}
.ht-workspace-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--sg-border);
}
.ht-workspace-topline h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.ht-workspace-topline p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
}
.ht-workspace-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ht-panel-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: var(--sg-subtle);
  border: 1px solid var(--sg-border);
  border-radius: 10px;
}
.ht-panel-toolbar h3 {
  margin: 0 0 4px;
  font-size: 15px;
}
.ht-panel-toolbar p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
}
.ht-toolbar-label {
  color: var(--sg-muted);
  font-size: 12px;
}
.ht-project-name-list,
.ht-section-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ht-project-name-card .ant-card-head,
.ht-section-card .ant-card-head {
  min-height: 42px;
  background: var(--sg-subtle);
}
.ht-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ht-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ht-field span,
.ht-inline-fields span {
  color: var(--sg-muted);
  font-size: 12px;
}
.ht-field-full {
  grid-column: 1 / -1;
}
.ht-section-title {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.ht-section-code {
  flex: 0 0 auto;
  color: var(--sg-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
}
.ht-section-project-name {
  display: inline-block;
  max-width: 620px;
  overflow: hidden;
  color: var(--sg-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ht-section-card .ant-input-textarea {
  margin-top: 10px;
}
.ht-inline-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.ht-inline-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ht-editable-table {
  padding: 10px;
  margin-bottom: 12px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
}
.ht-editable-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--sg-muted);
  font-size: 12px;
}
.ht-batch-progress {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  background: var(--sg-subtle);
  border: 1px solid var(--sg-selected);
  border-radius: 8px;
}
.ht-batch-progress .ant-progress {
  flex: 1;
}
.ht-batch-progress span {
  color: var(--sg-accent);
  font-size: 12px;
}
.ht-proposal-stale-hint {
  margin: 8px 0 2px;
  padding: 7px 10px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
}
.ht-material-card {
  border: 1px solid var(--sg-border);
  border-radius: 10px;
}
.ht-material-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ht-material-hint {
  margin: 8px 0 12px;
  color: #6b7280;
  font-size: 12px;
}
.ht-material-file {
  min-height: 34px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--sg-subtle);
  color: var(--sg-text);
  font-size: 12px;
}
.ht-material-empty {
  color: #9ca3af;
}
.ht-field-label {
  margin-bottom: 6px;
  color: #6b7280;
  font-size: 11px;
}
.ht-achievement-name {
  margin-bottom: 10px;
  font-weight: 600;
}
.ant-input.ai-saved-content {
  color: #15803d !important;
}
.ht-workspace-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  color: #6b7280;
}
.ht-load-more {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}
.ht-generate-warning {
  padding: 10px 12px;
  color: #9a5b00;
  font-size: 14px;
  line-height: 1.6;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
}
.ht-generate-flow {
  padding: 12px 14px;
  margin-bottom: 10px;
  color: var(--sg-accent);
  font-size: 15px;
  line-height: 1.7;
  background: var(--sg-subtle);
  border: 1px solid var(--sg-selected);
  border-radius: 10px;
}
.ht-proposal-file-panel {
  gap: 12px;
}
.ht-proposal-file-toolbar {
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border-color: var(--sg-border);
  border-radius: 2px;
}
.ht-proposal-file-toolbar h3 {
  margin-bottom: 5px;
  color: var(--sg-text);
  font-size: 16px;
}
.ht-proposal-file-toolbar p {
  color: var(--sg-muted);
  font-size: 12px;
}
.ht-file-button {
  height: 30px;
  padding: 0 14px;
  color: #fff;
  font-size: 12px;
  background: var(--sg-accent-hover);
  border-color: var(--sg-accent-hover);
  border-radius: 2px;
  box-shadow: none;
}
.ht-file-button:hover:not(:disabled),
.ht-file-button:focus:not(:disabled) {
  color: #fff !important;
  background: var(--sg-accent-hover) !important;
  border-color: var(--sg-accent-hover) !important;
}
.ht-file-button:disabled {
  color: var(--sg-muted) !important;
  background: var(--sg-subtle) !important;
  border-color: var(--sg-border) !important;
}
.ht-file-button-primary {
  color: #fff;
  background: var(--sg-accent-hover);
  border-color: var(--sg-accent-hover);
}
.ht-proposal-file-table {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sg-border);
  border-radius: 2px;
}
.ht-proposal-file-table .ant-table-thead > tr > th {
  padding: 14px 16px;
  color: var(--sg-text);
  font-size: 13px;
  font-weight: 600;
  background: var(--sg-subtle);
  border-bottom: 1px solid var(--sg-border);
}
.ht-proposal-file-table .ant-table-tbody > tr > td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--sg-border);
}
.ht-proposal-file-table .ant-table-tbody > tr:nth-child(2n) > td {
  background: var(--sg-subtle);
}
.ht-proposal-file-table .ant-table-tbody > tr:hover > td {
  background: var(--sg-subtle) !important;
}
.ht-proposal-file-name {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}
.ht-proposal-file-index {
  flex: 0 0 24px;
  padding-top: 1px;
  color: var(--sg-muted);
  font-size: 13px;
}
.ht-proposal-file-title {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ht-proposal-file-title > span {
  overflow: hidden;
  color: var(--sg-text);
  font-size: 13px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ht-proposal-file-title .ant-tag {
  margin-inline-end: 6px;
  font-size: 11px;
}
.ht-missing-section-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ht-generation-failures {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  margin-top: 12px;
  overflow: auto;
}
.ht-generation-failures > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  background: #fff8f6;
  border: 1px solid #ffe1d6;
  border-radius: 6px;
}
.ht-generation-failures b {
  color: var(--sg-text);
  font-size: 12px;
}
.ht-generation-failures span {
  color: #a1442d;
  font-size: 12px;
  line-height: 1.55;
}
.institution-date-tip {
  margin: 4px 0 12px;
  color: var(--sg-muted);
  font-size: 12px;
  line-height: 1.65;
}
.institution-supplement-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  background: var(--sg-subtle);
  border: 1px solid var(--sg-border);
  border-radius: 9px;
}
.institution-supplement-hint {
  color: var(--sg-muted);
  font-size: 12px;
  line-height: 1.65;
}
.institution-supplement-label {
  color: var(--sg-text);
  font-size: 12px;
  font-weight: 600;
}
.institution-supplement-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--sg-muted);
  font-size: 12px;
}
@media (max-width: 900px) {
  .ai-writing-layout {
    grid-template-columns: 1fr;
  }
  .ai-writing-nav {
    max-height: 220px;
  }
  .ht-workspace {
    grid-template-columns: 1fr;
  }
  .ht-workspace-nav {
    max-height: 240px;
  }
  .ht-workspace.with-tree {
    grid-template-columns: 1fr;
  }
  .ht-proposal-tree {
    max-height: 280px;
  }
  .ht-project-grid,
  .ht-inline-fields {
    grid-template-columns: 1fr;
  }
  .ht-proposal-file-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
.rd-equipment-workflow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rd-equipment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0 6px;
}
.rd-equipment-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.rd-equipment-head p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}
.rd-equipment-input-layout {
  align-items: flex-start;
}
.rd-equipment-month-card,
.rd-equipment-upload-card,
.rd-equipment-table-card {
  border-radius: 12px;
}
.rd-equipment-month-card .ant-card-body {
  padding: 6px;
}
.rd-equipment-month-card .ant-menu {
  border-inline-end: none !important;
}
.rd-equipment-month-card .ant-menu-item {
  height: 34px;
  margin: 2px 0;
  line-height: 34px;
  font-size: 13px;
}
.rd-equipment-upload-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.rd-equipment-upload-label {
  margin-bottom: 4px;
  color: var(--sg-muted);
  font-weight: 600;
}
.rd-equipment-upload-head .ant-btn-link {
  height: auto;
  padding: 0;
  font-weight: 600;
}
.rd-equipment-alert {
  margin-bottom: 12px;
  border-radius: 10px;
}
.rd-equipment-stats {
  margin-bottom: 12px;
}
.rd-equipment-stats .ant-card {
  border-radius: 10px;
}
.rd-equipment-table-card {
  margin-bottom: 12px;
}
.rd-equipment-generate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.rd-equipment-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.rd-equipment-muted {
  color: #8c8c8c;
  font-size: 12px;
}
.rd-equipment-doc-section {
  margin-bottom: 20px;
}
.rd-equipment-doc-title {
  margin: 8px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--sg-text);
}
.rd-equipment-doc-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 12px;
  color: var(--sg-muted);
  font-size: 13px;
}
.rd-material-workflow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rd-material-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0 6px;
}
.rd-material-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.rd-material-head p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}
.rd-material-stats {
  margin-bottom: 2px;
}
.rd-material-stats .ant-card {
  height: 100%;
  border-radius: 10px;
}
.rd-material-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.rd-material-toolbar .ant-btn-link {
  height: auto;
  padding: 0;
  font-weight: 600;
}
.rd-material-alert {
  margin-bottom: 12px;
  border-radius: 10px;
}
.rd-material-table-card {
  border-radius: 12px;
  margin-bottom: 12px;
}
.rd-material-muted {
  color: #8c8c8c;
  font-size: 12px;
}
.rd-material-reason {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.rd-material-doc-title {
  margin: 6px 0 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--sg-text);
}
.rd-material-doc-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 12px;
  color: var(--sg-muted);
  font-size: 13px;
}
.rd-material-project-table {
  margin-top: 16px;
}
.rd-material-form-card {
  padding: 8px 18px 16px;
  background: #fff;
}
.rd-material-form-meta,
.rd-material-form-company {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--sg-text);
  font-size: 13px;
}
.rd-material-form-company {
  justify-content: center;
  font-size: 14px;
}
.rd-material-form-note {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #d9d9d9;
  color: var(--sg-muted);
  font-size: 13px;
}
.rd-material-form-section {
  margin: 20px 0 10px;
  color: var(--sg-text);
  font-size: 14px;
}
.rd-material-form-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 8px;
  color: var(--sg-text);
  font-size: 13px;
}
.rd-material-form-paragraphs p {
  margin: 0;
  line-height: 1.8;
}
.rd-material-form-signature {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding: 0 8px;
  color: var(--sg-text);
  font-size: 13px;
}
.rd-salary-workflow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rd-salary-workflow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0 6px;
}
.rd-salary-workflow-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.rd-salary-workflow-head p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}
.rd-salary-input-layout {
  align-items: flex-start;
}
.rd-salary-month-card {
  border-radius: 12px;
}
.rd-salary-month-card .ant-card-body {
  padding: 6px;
}
.rd-salary-month-card .ant-menu {
  border-inline-end: none !important;
}
.rd-salary-month-card .ant-menu-item {
  height: 34px;
  margin: 2px 0;
  line-height: 34px;
  font-size: 13px;
}
.rd-salary-upload-card,
.rd-salary-table-card {
  border-radius: 12px;
}
.rd-salary-upload-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.rd-salary-upload-label {
  margin-bottom: 4px;
  color: var(--sg-muted);
  font-weight: 600;
}
.rd-salary-upload-head .ant-btn-link {
  height: auto;
  padding: 0;
  font-weight: 600;
}
.rd-salary-stats {
  margin-bottom: 12px;
}
.rd-salary-stats .ant-card {
  border-radius: 10px;
}
.rd-salary-table-card {
  margin-bottom: 12px;
}
.rd-salary-alert {
  margin-bottom: 12px;
  border-radius: 10px;
}
.rd-salary-generate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.rd-salary-template-toolbar,
.rd-salary-result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.rd-salary-muted {
  color: #8c8c8c;
  font-size: 12px;
}
.rd-salary-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rd-doc-section {
  margin-bottom: 20px;
}
.rd-doc-title {
  margin: 8px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--sg-text);
}
.rd-doc-body {
  background: #fff;
}
.rd-doc-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 12px;
  color: var(--sg-muted);
  font-size: 13px;
}
.rd-monthly-result,
.rd-annual-result {
  padding-top: 6px;
}
.rd-collection-page .page-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.rd-collection-page .page-heading-row h1 {
  margin: 0 0 6px;
  font-size: 24px;
}
.rd-collection-page .page-heading-row p {
  margin: 0;
  color: #6b7280;
}
.rd-collection-page .stats-row {
  margin-bottom: 16px;
}
.rd-collection-page .stats-row .ant-card {
  border-radius: 12px;
}
.rd-collection-page .filter-card {
  margin-bottom: 16px;
  border-radius: 12px;
}
.rd-collection-page .ant-card {
  border-radius: 12px;
}
.rd-collection-page .detail-summary-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--sg-subtle);
  border: 1px solid var(--sg-border);
  border-radius: 10px;
}
.rd-collection-page .child-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--sg-muted);
}
.rd-collection-page .summary-cards {
  margin-bottom: 16px;
}
.rd-collection-page .summary-cards .ant-card {
  min-height: 114px;
}
.rd-allocation-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rd-allocation-panel .rd-allocation-toolbar,
.rd-allocation-panel .rd-allocation-card,
.rd-allocation-panel .rd-allocation-empty {
  border-radius: 12px;
}
.rd-allocation-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.rd-allocation-label {
  color: var(--sg-muted);
  font-weight: 600;
}
.rd-allocation-muted {
  color: #8c8c8c;
  font-size: 12px;
}
.rd-allocation-note {
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--sg-muted);
  font-size: 12px;
  line-height: 1.8;
  background: var(--sg-subtle);
  border: 1px solid var(--sg-border);
  border-radius: 8px;
}
.rd-allocation-alert {
  border-radius: 10px;
}
.rd-allocation-stats .ant-card {
  height: 100%;
  border-radius: 12px;
}
.rd-allocation-row-missing > td {
  background: #fff7e6 !important;
}
.rd-personnel-actionbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, var(--sg-subtle), #fff);
  border: 1px solid var(--sg-border);
  border-radius: 10px;
  flex-wrap: wrap;
}
.rd-personnel-actions {
  flex: 1 1 auto;
}
.rd-personnel-summary {
  flex: 0 0 auto;
  padding-left: 12px;
  border-left: 1px solid var(--sg-border);
}
.rd-personnel-actionbar .ant-btn {
  border-radius: 7px;
}
.rd-personnel-actionbar .ant-tag {
  margin-inline-end: 0;
  border-radius: 999px;
}
.rd-personnel-tabs > .ant-tabs-nav {
  margin-bottom: 14px;
}
.multi-project-page {
  display: grid;
  gap: 14px;
}
.multi-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.multi-heading h1 {
  margin: 0;
  color: var(--sg-accent-hover);
  font-size: 24px;
}
.multi-heading p {
  margin: 5px 0 0;
  color: var(--sg-muted);
  font-size: 13px;
}
.multi-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.multi-stats .ant-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sg-border);
  border-radius: 10px;
}
.multi-stats .ant-card-body {
  padding: 17px 18px 16px;
}
.multi-stats .ant-card-body > .anticon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--sg-subtle);
  color: var(--sg-accent);
  font-size: 17px;
}
.multi-stats .ant-statistic-title {
  color: var(--sg-muted);
  font-size: 12px;
}
.multi-stats .ant-statistic-content {
  margin-top: 7px;
  color: var(--sg-accent-hover);
  font-size: 26px;
  font-weight: 650;
}
.multi-stats .ant-statistic-content-suffix {
  margin-left: 4px;
  color: var(--sg-muted);
  font-size: 12px;
  font-weight: 400;
}
.multi-stats .ant-card.multi-stat-warning {
  border-color: #f3d4b6;
  background: linear-gradient(180deg, #fffdfb, #fff8f1);
}
.multi-stats .multi-stat-warning .ant-card-body > .anticon {
  background: #fff0df;
  color: #d97917;
}
.multi-filter .ant-card-body {
  padding: 14px 16px;
}
.multi-table .ant-card-body {
  padding: 14px 16px 12px;
}
.multi-table-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.multi-table-title h2,
.multi-chart-head h2 {
  margin: 0;
  color: var(--sg-accent-hover);
  font-size: 16px;
}
.multi-table-title span,
.multi-chart-head span {
  color: var(--sg-muted);
  font-size: 12px;
}
.multi-table .ant-table-thead > tr > th {
  background: var(--sg-subtle);
  color: var(--sg-text);
  font-weight: 600;
}
.multi-count {
  display: inline-flex;
  min-width: 26px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--sg-subtle);
  color: var(--sg-accent);
  font-weight: 600;
}
.multi-year-stat {
  display: grid;
  gap: 5px;
  min-width: 105px;
}
.multi-year-stat span {
  color: var(--sg-muted);
  font-size: 12px;
}
.multi-year-stat div {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--sg-border);
}
.multi-year-stat i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sg-accent);
}
.multi-chart-card .ant-card-body {
  padding: 18px 20px 12px;
}
.multi-chart-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}
.multi-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(56px, 1fr));
  align-items: end;
  gap: 28px;
  min-height: 220px;
  padding: 10px 20px 0;
  background-image: linear-gradient(var(--sg-subtle) 1px, transparent 1px);
  background-size: 100% 44px;
}
.multi-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 205px;
}
.multi-bar-value {
  height: 24px;
  color: var(--sg-muted);
  font-size: 12px;
  font-weight: 600;
}
.multi-bar-track {
  position: relative;
  width: min(54px, 64%);
  flex: 1;
  display: flex;
  align-items: flex-end;
}
.multi-bar-fill {
  width: 100%;
  min-height: 5px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, var(--sg-border-strong), var(--sg-accent));
  box-shadow: 0 5px 12px var(--sg-transparent);
  transition: height 0.35s ease;
}
.multi-bar-fill.current {
  background: linear-gradient(180deg, #61bd9d, #22936e);
}
.multi-bar-label {
  margin-top: 8px;
  color: var(--sg-muted);
  font-size: 12px;
}
.multi-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--sg-subtle);
  color: var(--sg-muted);
  font-size: 13px;
}
@media (max-width: 1000px) {
  .multi-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .multi-stats {
    grid-template-columns: 1fr;
  }
  .multi-chart {
    gap: 12px;
    padding-left: 2px;
    padding-right: 2px;
  }
}
.project-matrix-page .matrix-shell {
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--sg-transparent);
}
.project-matrix-page .matrix-shell > .ant-card-body {
  padding: 18px 18px 16px;
}
.matrix-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.matrix-heading {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.matrix-heading h1 {
  margin: 0;
  color: var(--sg-accent-hover);
  font-size: 23px;
  line-height: 1.25;
}
.matrix-heading p {
  margin: 5px 0 0;
  color: var(--sg-muted);
  font-size: 13px;
}
.matrix-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 13px;
  padding: 10px 13px;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  background: var(--sg-subtle);
  color: var(--sg-muted);
  font-size: 12px;
}
.matrix-unsaved {
  color: #c56a0a;
  font-weight: 600;
}
.matrix-saved {
  color: #268562;
}
.matrix-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  color: var(--sg-muted);
}
.matrix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.matrix-legend i {
  min-width: 20px;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 11px;
  font-style: normal;
  text-align: center;
}
.legend-check {
  background: #e9f8f1;
  color: #17835e;
}
.legend-cross {
  background: #fff0ed;
  color: #cf563c;
}
.legend-pending {
  background: #fff7e8;
  color: #b97310;
}
.matrix-tip {
  margin: 12px 0;
  border: 1px solid var(--sg-selected);
  background: var(--sg-subtle);
}
.matrix-tip .ant-alert-message {
  color: var(--sg-muted);
  font-size: 12px;
}
.matrix-scroll {
  max-height: calc(100vh - 305px);
  min-height: 420px;
  overflow: auto;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: var(--sg-border-strong) var(--sg-subtle);
}
.matrix-grid {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.matrix-grid th,
.matrix-grid td {
  border-right: 1px solid var(--sg-border);
  border-bottom: 1px solid var(--sg-border);
  vertical-align: top;
}
.matrix-grid thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 96px;
  padding: 0;
  background: var(--sg-subtle);
  text-align: left;
}
.matrix-grid .matrix-corner {
  left: 0;
  z-index: 5;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  border-right: 1px solid var(--sg-border);
  background: var(--sg-subtle);
}
.matrix-corner > div,
.matrix-row-head > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}
.matrix-corner > div {
  height: 100%;
  padding: 0 12px 0 16px;
  color: var(--sg-accent-hover);
  font-size: 14px;
  font-weight: 700;
}
.matrix-project-head {
  width: 270px;
  min-width: 270px;
  max-width: 270px;
  box-shadow: inset 0 3px 0 transparent;
}
.matrix-project-head.focused {
  box-shadow: inset 0 3px var(--sg-accent);
  background: var(--sg-subtle);
}
.matrix-project-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
  padding: 9px 8px 9px 12px;
}
.matrix-enterprise-index {
  flex: 1;
  color: var(--sg-accent-hover);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: help;
}
.matrix-project-tooltip {
  display: grid;
  gap: 4px;
  max-width: 440px;
  padding: 2px 0;
}
.matrix-project-tooltip strong {
  font-size: 13px;
  line-height: 1.5;
}
.matrix-project-tooltip span {
  color: var(--sg-border);
  font-size: 11px;
  line-height: 1.4;
}
.matrix-grid .matrix-row-head {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  padding: 0;
  background: var(--sg-subtle);
  color: var(--sg-text);
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
.matrix-row-head > div {
  min-height: 74px;
  padding: 12px 7px 12px 16px;
}
.matrix-row-head > div > span {
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.matrix-row-head .ant-input {
  height: 30px;
  padding: 3px 7px;
  font-size: 12px;
}
.matrix-grid tbody tr:hover .matrix-row-head {
  background: var(--sg-subtle);
}
.matrix-grid td {
  width: 270px;
  min-width: 270px;
  max-width: 270px;
  padding: 0;
  background: #fff;
}
.matrix-grid tbody tr:nth-child(2n) td {
  background: var(--sg-subtle);
}
.matrix-cell {
  position: relative;
  min-height: 73px;
  background: transparent;
}
.matrix-cell .ant-input {
  min-height: 70px;
  padding: 10px 26px 10px 12px;
  color: var(--sg-text);
  font-size: 12px;
  line-height: 1.55;
  resize: none;
}
.matrix-cell .ant-input::placeholder {
  color: var(--sg-border-strong);
}
.matrix-cell.is-done {
  background: #f3fbf7;
}
.matrix-cell.is-done .ant-input {
  color: #16845f;
  font-weight: 700;
}
.matrix-cell.is-na {
  background: #fff8f6;
}
.matrix-cell.is-na .ant-input {
  color: #c85f48;
  font-weight: 700;
}
.matrix-cell.is-pending {
  background: #fffaf0;
}
.matrix-cell.is-pending .ant-input {
  color: #b37414;
  font-weight: 600;
}
.matrix-cell-menu {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  width: 21px;
  min-width: 21px;
  height: 21px;
  padding: 0;
  color: var(--sg-muted);
  opacity: 0.45;
}
.matrix-cell:hover .matrix-cell-menu,
.matrix-cell-menu:focus {
  opacity: 1;
}
.matrix-field-list {
  display: grid;
  gap: 8px;
}
.matrix-field-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 34px 34px 34px;
  align-items: center;
  gap: 5px;
}
.matrix-field-index {
  color: var(--sg-muted);
  font-size: 12px;
  text-align: center;
}
@media (max-width: 900px) {
  .matrix-top {
    flex-direction: column;
  }
  .matrix-scroll {
    max-height: calc(100vh - 380px);
  }
  .matrix-grid .matrix-corner,
  .matrix-grid .matrix-row-head {
    width: 185px;
    min-width: 185px;
    max-width: 185px;
  }
}
.approved-detail-page {
  display: grid;
  gap: 14px;
}
.approved-detail-top {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.approved-detail-top h1 {
  margin: 2px 0 0;
  color: var(--sg-accent-hover);
  font-size: 22px;
  line-height: 1.3;
}
.approved-detail-top p {
  margin: 5px 0 0;
  color: var(--sg-muted);
  font-size: 12px;
}
.approved-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.approved-summary-grid .ant-card {
  border: 1px solid var(--sg-border);
  border-radius: 9px;
}
.approved-summary-grid .ant-card-body {
  display: grid;
  gap: 7px;
  padding: 13px 15px;
}
.approved-summary-grid span {
  color: var(--sg-muted);
  font-size: 11px;
}
.approved-summary-grid b {
  color: var(--sg-accent-hover);
  font-size: 17px;
}
.approved-summary-grid .ant-progress {
  margin-top: -2px;
}
.approved-stage-card .ant-card-body,
.approved-detail-card .ant-card-body {
  padding: 16px 18px;
}
.approved-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.approved-stage-head h2 {
  margin: 0;
  color: var(--sg-accent-hover);
  font-size: 15px;
}
.approved-stage-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.approved-stage-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 132px;
  padding: 9px 12px;
  border: 1px solid var(--sg-border);
  border-radius: 7px;
  background: var(--sg-subtle);
  color: var(--sg-muted);
  font-size: 12px;
}
.approved-stage-step i {
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sg-border);
  font-size: 10px;
  font-style: normal;
}
.approved-stage-step.current {
  border-color: var(--sg-border-strong);
  background: var(--sg-subtle);
  color: var(--sg-accent);
  font-weight: 600;
}
.approved-stage-step.current i {
  background: var(--sg-accent);
  color: #fff;
}
.approved-stage-step.done {
  border-color: #cde9df;
  background: #f3fbf8;
  color: #2b8b6d;
}
.approved-stage-step.done i {
  background: #34a37f;
  color: #fff;
}
.approved-tab-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 13px;
}
.approved-muted {
  color: var(--sg-muted);
  font-size: 12px;
}
.approved-contract-tab .ant-descriptions-title {
  color: var(--sg-accent-hover);
  font-size: 15px;
}
.approved-contract-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--sg-subtle);
  color: var(--sg-muted);
  font-size: 12px;
}
.approved-contract-stats b {
  color: var(--sg-accent-hover);
}
.approved-finance-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.approved-budget-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.approved-budget-stats > div {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--sg-border);
  border-radius: 7px;
  background: var(--sg-subtle);
}
.approved-budget-stats span {
  color: var(--sg-muted);
  font-size: 11px;
}
.approved-budget-stats b {
  color: var(--sg-accent-hover);
  font-size: 16px;
}
.approved-budget-sheet {
  margin-top: 16px;
}
.approved-budget-sheet h3 {
  margin: 0 0 8px;
  color: var(--sg-accent-hover);
  font-size: 14px;
  font-weight: 600;
}
.approved-budget-sheet .ant-table {
  border: 1px solid var(--sg-border);
}
.approved-budget-section-row > td {
  background: var(--sg-subtle) !important;
  font-weight: 600;
}
.approved-budget-total-row > td {
  background: var(--sg-subtle) !important;
  font-weight: 700;
  color: var(--sg-accent-hover);
}
.approved-budget-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.approved-finance-stats > div {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--sg-border);
  border-radius: 7px;
  background: var(--sg-subtle);
}
.approved-finance-stats span {
  color: var(--sg-muted);
  font-size: 11px;
}
.approved-finance-stats b {
  color: var(--sg-accent-hover);
  font-size: 16px;
}
.approved-finance-breakdown {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--sg-border);
}
.approved-finance-breakdown h3 {
  margin: 0 0 10px;
  color: var(--sg-text);
  font-size: 14px;
}
.approved-detail-card .ant-tabs-nav {
  margin-bottom: 15px;
}
.approved-detail-card .ant-table-thead > tr > th {
  background: var(--sg-subtle);
  color: var(--sg-text);
  font-weight: 600;
}
.approved-ai-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--sg-subtle);
}
.approved-ai-table .ant-table-thead > tr > th {
  background: var(--sg-subtle);
  font-size: 12px;
}
.approved-ai-table .ant-input,
.approved-ai-table .ant-select-selector {
  font-size: 12px;
}
@media (max-width: 1180px) {
  .approved-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .approved-finance-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .approved-summary-grid,
  .approved-finance-stats,
  .approved-budget-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.approved-page {
  display: grid;
  gap: 14px;
}
.approved-shell {
  border-radius: 10px;
}
.approved-shell > .ant-card-body {
  padding: 16px 16px 12px;
}
.approved-filter {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--sg-border);
}
.approved-filter .ant-input-affix-wrapper,
.approved-filter .ant-input,
.approved-filter .ant-select-selector {
  border-radius: 7px;
}
.approved-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.approved-shell .ant-table-thead > tr > th {
  background: var(--sg-subtle);
  color: var(--sg-text);
  font-weight: 600;
}
.approved-shell .ant-table-tbody > tr > td {
  padding-top: 11px;
  padding-bottom: 11px;
}
.approved-shell .ant-progress-text {
  min-width: 34px;
  color: var(--sg-muted);
  font-size: 11px;
}
.approved-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}
.approved-form .ant-form-item {
  margin-bottom: 16px;
}
.approved-form .approved-form-span {
  grid-column: span 2;
}
.approved-form-spacer {
  min-height: 1px;
}
@media (max-width: 760px) {
  .approved-form {
    grid-template-columns: 1fr;
  }
  .approved-form .approved-form-span {
    grid-column: span 1;
  }
  .approved-form-spacer {
    display: none;
  }
  .approved-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
.acceptance-ledger-page {
  display: grid;
  gap: 14px;
}
.acceptance-ledger-shell > .ant-card-body,
.acceptance-detail-card > .ant-card-body {
  padding: 16px 18px;
}
.acceptance-ledger-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--sg-border);
}
.acceptance-ledger-shell .ant-table-thead > tr > th,
.acceptance-detail-card .ant-table-thead > tr > th {
  background: var(--sg-subtle);
  color: var(--sg-text);
  font-weight: 600;
}
.acceptance-ledger-shell .acceptance-row-selected > td {
  background: var(--sg-subtle) !important;
}
.acceptance-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.acceptance-detail-head h2 {
  margin: 0;
  color: var(--sg-accent-hover);
  font-size: 16px;
}
.acceptance-detail-head h2 span {
  margin-left: 8px;
  color: var(--sg-muted);
  font-weight: 500;
}
.acceptance-detail-head p {
  margin: 6px 0 0;
  color: var(--sg-muted);
  font-size: 11px;
}
.acceptance-basic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(340px, 0.95fr);
  gap: 18px;
}
.acceptance-basic-left h3,
.acceptance-progress-panel h3,
.acceptance-subtitle {
  position: relative;
  margin: 14px 0 10px;
  padding-left: 10px;
  color: var(--sg-accent-hover);
  font-size: 14px;
}
.acceptance-basic-left h3:before,
.acceptance-progress-panel h3:before,
.acceptance-subtitle:before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 999px;
  background: var(--sg-accent);
}
.acceptance-basic-left .ant-descriptions {
  margin-bottom: 8px;
}
.acceptance-progress-panel {
  border-left: 1px solid var(--sg-border);
  padding-left: 18px;
}
.acceptance-overall {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--sg-muted);
  font-size: 11px;
}
.acceptance-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 14px;
  text-align: center;
}
.acceptance-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--sg-muted);
  font-size: 10px;
}
.acceptance-step:not(:last-child):after {
  content: "";
  position: absolute;
  top: 10px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 1px;
  background: var(--sg-border);
}
.acceptance-step i {
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sg-border);
  border-radius: 50%;
  background: #fff;
  font-size: 9px;
  font-style: normal;
}
.acceptance-step span {
  color: var(--sg-muted);
  font-size: 11px;
}
.acceptance-step small {
  font-size: 9px;
}
.acceptance-step.current i {
  border-color: var(--sg-accent);
  background: var(--sg-accent);
  color: #fff;
}
.acceptance-step.done i {
  border-color: #48a585;
  background: #48a585;
  color: #fff;
}
.acceptance-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.acceptance-time-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 6px;
  background: var(--sg-subtle);
  text-align: center;
}
.acceptance-time-grid span {
  color: var(--sg-muted);
  font-size: 10px;
}
.acceptance-time-grid b {
  color: var(--sg-accent);
  font-size: 12px;
}
.acceptance-issue-box {
  display: grid;
  gap: 5px;
  margin-top: 9px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 11px;
}
.acceptance-issue-box.current {
  background: #fff3f0;
  color: #c15d47;
}
.acceptance-issue-box.next {
  background: var(--sg-subtle);
  color: var(--sg-accent);
}
.acceptance-issue-box span {
  color: var(--sg-muted);
}
.acceptance-subtitle {
  margin-top: 8px;
}
.acceptance-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
@media (max-width: 1100px) {
  .acceptance-basic-layout {
    grid-template-columns: 1fr;
  }
  .acceptance-progress-panel {
    border-left: 0;
    border-top: 1px solid var(--sg-border);
    padding-left: 0;
    padding-top: 14px;
  }
}
@media (max-width: 720px) {
  .acceptance-edit-grid {
    grid-template-columns: 1fr;
  }
}
.acceptance-overview-page {
  display: grid;
  gap: 14px;
}
.acceptance-overview-filter > .ant-card-body {
  padding: 0;
  background: transparent;
}
.acceptance-overview-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.acceptance-overview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.acceptance-overview-stats .ant-card {
  border: 1px solid var(--sg-border);
  border-radius: 9px;
}
.acceptance-overview-stats .ant-card-body {
  display: grid;
  gap: 5px;
  padding: 17px 18px;
}
.acceptance-stat-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  border-radius: 7px;
  font-size: 16px;
}
.acceptance-stat-icon.blue {
  background: var(--sg-subtle);
  color: var(--sg-accent);
}
.acceptance-stat-icon.indigo {
  background: var(--sg-subtle);
  color: var(--sg-accent);
}
.acceptance-stat-icon.amber {
  background: #fff5e8;
  color: #c98324;
}
.acceptance-stat-icon.red {
  background: #fff0f0;
  color: #d73549;
}
.acceptance-overview-stats b {
  color: var(--sg-text);
  font-size: 24px;
  line-height: 1.1;
}
.acceptance-overview-stats .ant-card-body > span:last-child {
  color: var(--sg-muted);
  font-size: 12px;
}
.acceptance-overview-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.acceptance-panel {
  border: 1px solid var(--sg-border);
  border-radius: 9px;
}
.acceptance-panel > .ant-card-body {
  padding: 14px 16px 10px;
}
.acceptance-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--sg-border);
}
.acceptance-panel-head h2 {
  margin: 0;
  color: var(--sg-text);
  font-size: 14px;
  font-weight: 600;
}
.acceptance-panel-head .ant-btn-link {
  padding: 0;
  font-size: 12px;
}
.acceptance-panel .ant-table-thead > tr > th {
  background: var(--sg-subtle);
  color: var(--sg-text);
  font-size: 12px;
  font-weight: 600;
}
.acceptance-panel .ant-table-tbody > tr > td {
  font-size: 12px;
}
.acceptance-overview-issue {
  color: #d05855;
}
@media (max-width: 1000px) {
  .acceptance-overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .acceptance-overview-panels {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .acceptance-overview-stats {
    grid-template-columns: 1fr;
  }
}
.report-workbench {
  min-height: calc(100vh - 52px);
  margin: -16px;
  padding: 28px 32px 30px;
  background: var(--sg-subtle);
  color: var(--sg-accent-hover);
}

@media (max-width: 1024px) {
  .report-workbench {
    margin: -12px;
  }
}

.report-workbench-heading h1 {
  margin: 0;
  color: var(--sg-text);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.report-workbench-heading p {
  margin: 8px 0 22px;
  color: var(--sg-muted);
  font-size: 14px;
}
.report-top-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 310px));
  gap: 16px;
  margin-bottom: 18px;
}
.report-stat-card {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 98px;
  padding: 17px 20px;
  border: 1px solid var(--sg-border);
  border-radius: 10px;
  background: #fff;
}
.report-stat-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-size: 27px;
}
.report-stat-icon.upload {
  background: var(--sg-subtle);
  color: var(--sg-accent);
}
.report-stat-icon.report {
  background: #edf8f2;
  color: #3ba375;
}
.report-stat-card > div {
  display: grid;
  gap: 4px;
}
.report-stat-card > div > span {
  color: var(--sg-muted);
  font-size: 12px;
}
.report-stat-card b {
  color: var(--sg-text);
  font-size: 28px;
  line-height: 1;
}
.report-stat-card b em {
  margin-left: 6px;
  color: var(--sg-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}
.report-main-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.report-panel {
  min-height: 420px;
  padding: 22px 23px 18px;
  border: 1px solid var(--sg-border);
  border-radius: 11px;
  background: #fff;
}
.report-panel-head h2 {
  margin: 0;
  color: var(--sg-text);
  font-size: 19px;
  font-weight: 600;
}
.report-panel-head p {
  margin: 6px 0 18px;
  color: var(--sg-muted);
  font-size: 12px;
}
.report-upload-dragger.ant-upload-wrapper .ant-upload-drag {
  height: 245px;
  min-height: 245px;
  border: 1px dashed var(--sg-border-strong);
  border-radius: 9px;
  background: var(--sg-subtle);
}
.report-upload-dragger .ant-upload-drag-container {
  padding: 18px 10px;
}
.report-upload-dragger .ant-upload-drag-icon {
  margin-bottom: 10px !important;
}
.report-upload-dragger .ant-upload-drag-icon .anticon {
  color: var(--sg-accent);
  font-size: 54px;
}
.report-upload-dragger .ant-upload-text {
  color: var(--sg-text) !important;
  font-size: 18px !important;
  font-weight: 500;
}
.report-upload-dragger .ant-upload-hint {
  margin-top: 8px;
  color: var(--sg-muted) !important;
  font-size: 13px !important;
}
.report-recent-files {
  display: grid;
  gap: 12px;
  margin-top: 17px;
}
.report-recent-files > span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sg-muted);
  font-size: 11px;
}
.report-recent-files > span:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--sg-border);
}
.report-recent-files > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.report-recent-files em {
  max-width: 200px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--sg-border);
  border-radius: 6px;
  background: #fff;
  color: var(--sg-muted);
  font-size: 11px;
  font-style: normal;
}
.report-recent-files em > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-recent-files em > u {
  margin-left: 2px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--sg-subtle);
  color: var(--sg-muted);
  font-size: 9px;
  text-decoration: none;
  white-space: nowrap;
}
.report-recent-files em > u.parse-PARSED {
  background: #eaf8f1;
  color: #32916b;
}
.report-recent-files em > u.parse-PARSING {
  background: var(--sg-subtle);
  color: var(--sg-accent);
}
.report-recent-files em > u.parse-FAILED {
  background: #fff0ee;
  color: #cf5442;
}
.report-recent-files em > u.parse-NO_TEXT {
  background: #fff7e8;
  color: #b47a19;
}
.report-recent-files em i {
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-style: normal;
  flex: 0 0 auto;
}
.report-recent-files em i.excel {
  background: #eaf8ef;
  color: #2f9b5b;
}
.report-recent-files em i.word {
  background: var(--sg-subtle);
  color: var(--sg-accent);
}
.report-recent-files em i.pdf {
  background: #fff0ee;
  color: #d94f40;
}
.report-recent-files em i.text {
  background: var(--sg-subtle);
  color: var(--sg-muted);
}
.report-recent-files small {
  color: var(--sg-muted);
  font-size: 11px;
}
.report-field-label {
  display: block;
  margin: 18px 0 10px;
  color: var(--sg-text);
  font-size: 13px;
  font-weight: 600;
}
.report-type-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.report-type-buttons .ant-btn {
  height: 44px;
  border-color: var(--sg-border);
  border-radius: 7px;
  color: var(--sg-muted);
}
.report-type-buttons .ant-btn.active {
  border-color: var(--sg-accent);
  background: var(--sg-accent);
  color: #fff;
  box-shadow: 0 3px 9px var(--sg-transparent);
}
.report-theme-input.ant-input {
  height: 46px;
  border-color: var(--sg-border-strong);
  border-radius: 7px;
  font-size: 14px;
}
.report-action-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 25px;
}
.report-action-buttons .ant-btn {
  height: 46px;
  border-radius: 7px;
  font-size: 15px;
}
.report-action-buttons .ant-btn-default {
  border-color: var(--sg-accent);
  color: var(--sg-accent);
}
.report-process-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 30px;
  margin-top: 17px;
  padding: 21px 27px;
  border: 1px solid var(--sg-border);
  border-radius: 11px;
  background: #fff;
}
.report-process-step {
  display: flex;
  align-items: center;
  gap: 12px;
}
.process-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 24px;
}
.process-icon.blue {
  background: var(--sg-subtle);
  color: var(--sg-accent);
}
.process-icon.green {
  background: #edf8f2;
  color: #3fa274;
}
.process-icon.purple {
  background: var(--sg-subtle);
  color: var(--sg-accent);
}
.report-process-step > b {
  color: var(--sg-accent);
  font-size: 18px;
  font-weight: 500;
}
.report-process-step:nth-child(2) > b {
  color: #3d9d71;
}
.report-process-step:nth-child(3) > b {
  color: var(--sg-accent);
}
.report-process-step > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.report-process-step h3 {
  margin: 0;
  color: var(--sg-text);
  font-size: 15px;
}
.report-process-step p {
  margin: 0;
  color: var(--sg-muted);
  font-size: 11px;
}
.report-process-step > .anticon {
  color: var(--sg-border-strong);
  font-size: 20px;
}
.report-meta-line {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  padding: 8px 11px;
  border-radius: 6px;
  background: var(--sg-subtle);
  color: var(--sg-muted);
  font-size: 11px;
}
.report-preview-text.ant-input {
  padding: 18px 20px;
  border-radius: 8px;
  color: var(--sg-text);
  font-family:
    Songti SC,
    SimSun,
    serif;
  font-size: 14px;
  line-height: 1.9;
}
@media (max-width: 1000px) {
  .report-main-grid,
  .report-process-card {
    grid-template-columns: 1fr;
  }
  .report-process-step > .anticon {
    display: none;
  }
}
@media (max-width: 640px) {
  .report-workbench {
    margin: -12px;
    padding: 20px 16px;
  }
  .report-top-stats,
  .report-type-buttons,
  .report-action-buttons {
    grid-template-columns: 1fr;
  }
}
.knowledge-page {
  display: grid;
  gap: 14px;
}
.knowledge-card {
  border-radius: 10px;
}
.knowledge-card > .ant-card-body {
  padding: 18px 20px 12px;
}
.knowledge-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.knowledge-head h1 {
  margin: 0;
  color: var(--sg-accent-hover);
  font-size: 22px;
}
.knowledge-head p {
  margin: 6px 0 0;
  color: var(--sg-muted);
  font-size: 12px;
}
.knowledge-card .ant-table-thead > tr > th {
  background: var(--sg-subtle);
  color: var(--sg-text);
  font-weight: 600;
}
.knowledge-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--sg-subtle);
  color: var(--sg-muted);
  font-size: 11px;
}
.knowledge-markdown {
  max-height: 640px;
  overflow: auto;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  background: var(--sg-subtle);
  color: var(--sg-text);
  font-family:
    Consolas,
    Microsoft YaHei,
    monospace;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.home-page {
  display: grid;
  gap: 16px;
}
.home-hero {
  padding: 30px 34px;
  border-radius: 12px;
  background: var(--sg-subtle);
  border: 1px solid var(--sg-border);
}
.home-hero span {
  color: var(--sg-accent);
  font-size: 12px;
  letter-spacing: 1px;
}
.home-hero h1 {
  margin: 9px 0 0;
  color: var(--sg-accent-hover);
  font-size: 28px;
}
.home-hero p {
  margin: 8px 0 0;
  color: var(--sg-muted);
  font-size: 13px;
}
.home-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.home-shortcut {
  border: 1px solid var(--sg-border);
  border-radius: 10px;
}
.home-shortcut .ant-card-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}
.home-shortcut-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 11px;
  font-size: 23px;
}
.home-shortcut-icon.blue {
  background: var(--sg-subtle);
  color: var(--sg-accent);
}
.home-shortcut-icon.purple {
  background: var(--sg-subtle);
  color: var(--sg-accent);
}
.home-shortcut-icon.green {
  background: #edf8f2;
  color: #3b9d75;
}
.home-shortcut-icon.orange {
  background: #fff5e8;
  color: #c88425;
}
.home-shortcut h2 {
  margin: 0;
  color: var(--sg-accent-hover);
  font-size: 17px;
}
.home-shortcut p {
  margin: 7px 0 3px;
  color: var(--sg-muted);
  font-size: 12px;
  line-height: 1.6;
}
.home-shortcut .ant-btn-link {
  padding: 0;
  font-size: 12px;
}
.home-guide {
  border: 1px solid var(--sg-border);
  border-radius: 10px;
}
.home-guide .ant-card-body {
  padding: 20px 22px;
}
.home-guide h2 {
  margin: 0 0 16px;
  color: var(--sg-accent-hover);
  font-size: 16px;
}
.home-guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.home-guide-steps > div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px;
  border-radius: 7px;
  background: var(--sg-subtle);
  color: var(--sg-muted);
  font-size: 12px;
}
.home-guide-steps b {
  color: var(--sg-accent);
  font-size: 11px;
}
@media (max-width: 900px) {
  .home-shortcut-grid,
  .home-guide-steps {
    grid-template-columns: 1fr;
  }
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(420px, 0.9fr);
  background: var(--sg-subtle);
}
.login-brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 10vw;
  background:
    radial-gradient(
      circle at 15% 20%,
      var(--sg-selected),
      transparent 32%
    ),
    linear-gradient(145deg, var(--sg-accent-hover), var(--sg-accent-hover) 55%, var(--sg-accent-hover));
  color: #fff;
}
.login-brand-panel:after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -200px;
  bottom: -220px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px #ffffff06,
    0 0 0 140px #ffffff05;
}
.login-brand-mark {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: #ffffff1a;
  font-size: 24px;
  font-weight: 700;
}
.login-brand-panel h1 {
  margin: 26px 0 0;
  font-size: 36px;
  letter-spacing: 1px;
}
.login-brand-panel p {
  margin: 15px 0 0;
  color: var(--sg-border-strong);
  font-size: 14px;
  letter-spacing: 1px;
}
.login-brand-lines {
  display: flex;
  gap: 7px;
  margin-top: 42px;
}
.login-brand-lines span {
  width: 46px;
  height: 3px;
  border-radius: 999px;
  background: var(--sg-accent);
}
.login-brand-lines span:nth-child(2) {
  width: 26px;
  opacity: 0.65;
}
.login-brand-lines span:nth-child(3) {
  width: 13px;
  opacity: 0.35;
}
.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  background: var(--sg-subtle);
}
.login-form-box {
  width: min(400px, 100%);
  padding: 36px 38px;
  border: 1px solid var(--sg-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 50px var(--sg-transparent);
}
.login-form-title h2 {
  margin: 0;
  color: var(--sg-accent-hover);
  font-size: 23px;
}
.login-form-title p {
  margin: 7px 0 25px;
  color: var(--sg-muted);
  font-size: 12px;
}
.login-form-box .ant-input-affix-wrapper {
  border-radius: 7px;
}
.login-form-box .ant-btn {
  height: 43px;
  margin-top: 5px;
  border-radius: 7px;
  font-size: 14px;
}
.login-hint {
  margin-top: 20px;
  padding: 10px 12px;
  border-radius: 7px;
  background: var(--sg-subtle);
  color: var(--sg-muted);
  font-size: 11px;
}
.login-hint b {
  color: var(--sg-accent-hover);
}
@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-brand-panel {
    min-height: 260px;
    padding: 40px;
  }
  .login-brand-panel h1 {
    font-size: 28px;
  }
  .login-brand-lines {
    display: none;
  }
}
.system-page {
  display: grid;
  gap: 14px;
}
.system-page-card {
  border-radius: 10px;
}
.system-page-card > .ant-card-body {
  padding: 17px 18px 12px;
}
.system-page-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.system-page-toolbar h1 {
  margin: 0;
  color: var(--sg-accent-hover);
  font-size: 21px;
}
.system-page-toolbar p {
  margin: 5px 0 0;
  color: var(--sg-muted);
  font-size: 12px;
}
.system-page-card .ant-table-thead > tr > th {
  background: var(--sg-subtle);
  color: var(--sg-text);
  font-weight: 600;
}
.system-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.permission-section {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  background: var(--sg-subtle);
}
.permission-section h3 {
  margin: 0 0 12px;
  color: var(--sg-accent-hover);
  font-size: 14px;
}
.permission-checkbox-group {
  display: grid !important;
  gap: 10px;
  width: 100%;
}
.permission-group {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--sg-subtle);
}
.permission-group > b {
  color: var(--sg-muted);
  font-size: 12px;
  font-weight: 600;
}
.permission-group .ant-checkbox-wrapper {
  font-size: 12px;
}
.template-file-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(
      150px,
      0.8fr
    ) 190px auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--sg-subtle);
  border: 1px solid var(--sg-border);
  border-radius: 8px;
}
.template-file-table .ant-table-thead > tr > th {
  background: var(--sg-subtle);
  color: var(--sg-text);
  font-size: 12px;
  font-weight: 600;
}
.template-file-table .ant-table-tbody > tr > td {
  padding: 11px 10px;
  font-size: 12px;
}
.template-name {
  display: inline-block;
  max-width: 270px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.template-form-tip {
  padding: 9px 11px;
  margin: 2px 0 0;
  color: var(--sg-muted);
  font-size: 12px;
  line-height: 1.65;
  background: var(--sg-subtle);
  border: 1px solid var(--sg-border);
  border-radius: 6px;
}
.template-form-tip code {
  padding: 1px 4px;
  color: var(--sg-accent-hover);
  background: var(--sg-border);
  border-radius: 3px;
}
@media (max-width: 760px) {
  .system-page-toolbar {
    flex-direction: column;
  }
  .system-form-grid,
  .permission-group,
  .template-file-filters {
    grid-template-columns: 1fr;
  }
}

/* 2026-11-01 product acceptance fixes: readable contrast and mobile shell */
.smartgov-app-shell .gov-sider-brand-subtitle {
  color: var(--sg-muted);
}

.policy-overview-heading p,
.policy-source-directory-heading p,
.innovation-heading p,
.innovation-stats span {
  color: var(--sg-muted);
}

.smartgov-app-shell .ant-btn-primary:not(:disabled),
.smartgov-app-shell .ant-btn-primary:not(:disabled):hover {
  border-color: var(--sg-accent);
}

.smartgov-app-shell .ant-btn-primary:not(:disabled) {
  background: var(--sg-accent);
}

.smartgov-app-shell .ant-btn-primary:not(:disabled):hover {
  background: var(--sg-accent-hover);
}

.smartgov-app-shell .ant-btn-link:not(:disabled),
.smartgov-app-shell .ant-pagination-item a,
.smartgov-app-shell .ant-pagination-item-link {
  color: var(--sg-accent);
}

.smartgov-app-shell .ant-input::placeholder,
.smartgov-app-shell textarea::placeholder,
.smartgov-app-shell .ant-select-selection-placeholder {
  color: var(--sg-muted) !important;
  opacity: 1;
}

.innovation-data-scope {
  margin-top: -2px;
  padding: 9px 12px;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  background: var(--sg-subtle);
  color: var(--sg-muted);
  font-size: 12px;
  line-height: 1.65;
}

.innovation-data-scope b {
  color: var(--sg-accent-hover);
}

.smartgov-app-shell .gov-body-shell,
.smartgov-app-shell .gov-main-layout,
.smartgov-app-shell .gov-main.gov-main-with-sider,
.innovation-page,
.innovation-table,
.innovation-table .ant-card-body,
.acceptance-ledger-page,
.acceptance-ledger-shell,
.acceptance-detail-card {
  min-width: 0;
  max-width: 100%;
}

.innovation-page,
.acceptance-ledger-page {
  grid-template-columns: minmax(0, 1fr);
}

.innovation-table .ant-table-wrapper,
.innovation-table .ant-table-container,
.innovation-table .ant-table-content,
.acceptance-ledger-shell .ant-table-wrapper,
.acceptance-ledger-shell .ant-table-container,
.acceptance-ledger-shell .ant-table-content {
  min-width: 0;
  max-width: 100%;
}

.innovation-table .ant-table-content,
.acceptance-ledger-shell .ant-table-content {
  overflow-x: auto;
}

.innovation-actions button[aria-pressed] {
  color: var(--sg-accent) !important;
  border-color: var(--sg-border-strong) !important;
}

.innovation-table .ant-tag-orange {
  color: #8a3b00 !important;
  background: #fff3e6 !important;
  border-color: #dc8d4b !important;
}

.gov-mobile-nav-toggle,
.gov-mobile-nav-backdrop {
  display: none;
}

@media (max-width: 1023px) {
  .smartgov-app-shell .gov-body-shell,
  .smartgov-app-shell .gov-main-layout {
    width: 100%;
    min-width: 0;
  }

  .smartgov-app-shell .gov-sider.gov-sider-dark.ant-layout-sider {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1002;
    width: 236px !important;
    max-width: min(82vw, 260px) !important;
    min-width: 236px !important;
    height: 100vh;
    overflow: auto;
    box-shadow: 8px 0 28px var(--sg-transparent);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  .smartgov-app-shell
    .gov-sider.gov-sider-dark.ant-layout-sider.gov-sider-mobile-open {
    transform: translateX(0);
  }

  .smartgov-app-shell .gov-mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: var(--sg-selected);
  }

  .smartgov-app-shell .gov-mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 2px;
    padding: 0;
    border: 1px solid var(--sg-border-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--sg-text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
  }

  .smartgov-app-shell .gov-mobile-nav-toggle:focus-visible {
    outline: 2px solid var(--sg-accent);
    outline-offset: 2px;
  }

  .smartgov-app-shell .gov-header.gov-header-toolbar {
    position: sticky;
    top: 0;
    z-index: 900;
    height: 52px;
    min-width: 0;
  }

  .smartgov-app-shell .gov-header-breadcrumb {
    min-width: 0;
  }

  .smartgov-app-shell .gov-header-current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .smartgov-app-shell .gov-main.gov-main-with-sider {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    padding: 10px;
    overflow-x: hidden;
  }

  .smartgov-app-shell .gov-main-with-sider > * {
    min-width: 0;
    max-width: 100%;
  }

  .smartgov-app-shell .gov-main-with-sider h1,
  .smartgov-app-shell .gov-main-with-sider h2 {
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

/* Final accessibility regression fixes for the acceptance build. */
.high-tech-page .page-heading-row p,
.rd-collection-page .page-heading-row p,
.smartgov-app-shell .ant-statistic-title {
  color: var(--sg-muted) !important;
}

.ant-table-content:focus-visible,
.ant-table-body:focus-visible {
  outline: 2px solid var(--sg-accent);
  outline-offset: -2px;
}

/* Project application list copy and summary labels need AA contrast. */
.apply-project-heading p {
  color: var(--sg-muted) !important;
}

.apply-list-summary > span {
  color: var(--sg-muted) !important;
}
