:root {
  --bg: #fffdf7;
  --surface: #ffffff;
  --surface-muted: #fff8e5;
  --ink: #2f2a20;
  --muted: #746e61;
  --line: #e9dfc7;
  --line-strong: #d8c79e;
  --gold: #f0b90b;
  --gold-strong: #d99a00;
  --gold-deep: #765100;
  --gold-soft: #fff1bd;
  --blue: #315f7d;
  --blue-soft: #e9f2f7;
  --teal: #316b62;
  --teal-soft: #e7f2ef;
  --amber: #765100;
  --amber-soft: #fff1bd;
  --red: #a43d39;
  --red-soft: #fdebea;
  --shadow: 0 18px 46px rgba(124, 88, 0, 0.14);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

::selection {
  color: var(--ink);
  background: var(--gold-soft);
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.notices-body {
  position: relative;
  background-color: var(--bg);
  background-image: url("homepage-solar-bg.jpg");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.notices-body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: rgba(255, 253, 247, 0.74);
  content: "";
  pointer-events: none;
}

.notices-body > .page-shell {
  position: relative;
  z-index: 1;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
.button {
  min-height: 40px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px 32px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.site-logo {
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  object-fit: contain;
}

.site-logo-header {
  width: 150px;
  height: 60px;
}

.header-account {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.header-account form {
  margin: 0;
}

.page-shell {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 56px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.button-primary:hover {
  background: var(--gold-strong);
  border-color: var(--gold-strong);
}

.button-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
}

.button-secondary:hover,
.button-quiet:hover {
  border-color: var(--gold-strong);
  color: var(--gold-deep);
}

.button-quiet {
  min-width: auto;
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.button-wide {
  width: 100%;
}

.flash {
  margin-bottom: 18px;
  padding: 11px 14px;
  border: 1px solid;
  border-radius: 5px;
}

.flash-error {
  color: var(--red);
  background: var(--red-soft);
  border-color: #efc1be;
}

.flash-success {
  color: #246154;
  background: var(--teal-soft);
  border-color: #b8d9d1;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 8px 0 24px;
}

.notices-page-heading {
  justify-content: center;
  text-align: center;
}

.page-heading h1,
.detail-header h1 {
  margin: 4px 0 8px;
  letter-spacing: 0;
}

.page-heading h1 {
  font-size: 30px;
  line-height: 1.25;
}

.page-heading p:last-child,
.detail-header > p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(4, minmax(140px, 1fr));
  gap: 14px 12px;
  padding: 18px 20px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 6px;
}

.filter-panel > div {
  min-width: 0;
}

.filter-panel label,
.login-form label {
  display: block;
  margin-bottom: 6px;
  color: #655b49;
  font-size: 12px;
  font-weight: 600;
}

.filter-panel input,
.filter-panel select,
.login-form input {
  width: 100%;
  height: 40px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus,
.login-form input:focus {
  border-color: var(--gold-strong);
  box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.2);
}

.capacity-range > div {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 7px;
}

.capacity-range span {
  color: var(--muted);
}

.filter-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.filter-browser {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 6px;
}

.search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  padding: 18px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
}

.search-bar input {
  min-width: 0;
  width: 100%;
  height: 48px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: none;
  font-size: 16px;
}

.search-bar input:focus {
  border-color: var(--gold-strong);
  box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.2);
}

.search-bar .button {
  height: 48px;
}

.filter-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 14px;
  min-height: 56px;
  padding: 12px 18px;
  border-bottom: 1px dashed var(--line);
}

.filter-row:last-child {
  border-bottom: 0;
}

.filter-row-compact {
  min-height: 50px;
}

.filter-label {
  padding-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  min-width: 0;
}

.filter-option {
  padding: 4px 1px 3px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  line-height: 24px;
  white-space: nowrap;
}

.filter-option:hover,
.filter-option.is-active {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
  text-decoration: none;
}

.filter-option.is-active {
  font-weight: 700;
}

.filter-reset {
  align-self: center;
  padding: 5px 0;
  color: var(--muted);
  white-space: nowrap;
}

.filter-reset:hover {
  color: var(--gold-deep);
}

.results-section {
  margin-top: 26px;
}

.results-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.results-toolbar h2,
.detail-section h2 {
  margin: 0;
  font-size: 18px;
}

.results-toolbar span {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
}

.data-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #6a604f;
  background: #fff7dc;
  font-size: 12px;
  font-weight: 700;
}

.data-table th:first-child {
  width: 38%;
}

.data-table th:nth-child(2) {
  width: 13%;
}

.data-table th:nth-child(3),
.data-table th:nth-child(4),
.data-table th:nth-child(5) {
  width: 9%;
}

.data-table th:nth-child(6) {
  width: 14%;
}

.data-table th:last-child {
  width: 8%;
}

.data-table tbody tr:hover {
  background: #fffaf0;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.title-link {
  display: inline-block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.row-meta span {
  overflow-wrap: anywhere;
}

.capacity-value {
  color: var(--gold-deep);
  white-space: nowrap;
}

.status,
.source-label {
  display: inline-block;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.status-stage {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-data {
  color: var(--gold-deep);
  background: var(--gold-soft);
}

.source-ctbpsp {
  color: var(--blue);
  background: var(--blue-soft);
}

.source-jiangsu {
  color: var(--teal);
  background: var(--teal-soft);
}

.row-action {
  text-align: right !important;
}

.detail-link {
  white-space: nowrap;
  font-weight: 600;
}

.empty-state,
.content-missing {
  padding: 42px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
}

.empty-state h3,
.content-missing h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.empty-state p,
.content-missing p {
  margin: 0;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.pagination span {
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin: 2px 0 22px;
  color: var(--muted);
}

.detail-breadcrumb {
  max-width: 1180px;
  margin: 2px auto 18px;
}

.detail-page {
  max-width: 1180px;
  margin: 0 auto;
}

.detail-header {
  padding: 8px 2px 24px;
  border-bottom: 1px solid var(--line-strong);
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-header h1 {
  max-width: 1080px;
  margin-top: 0;
  font-size: 30px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.key-facts {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  margin: 24px 0 30px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.fact-primary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 132px;
  padding: 22px 26px;
  color: var(--ink);
  background: var(--surface-muted);
  border-left: 4px solid var(--gold);
}

.fact-primary span {
  color: var(--gold-deep);
  font-size: 13px;
}

.fact-primary strong {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.2;
}

.key-facts dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.key-facts dl > div {
  min-width: 0;
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}

.key-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.key-facts dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.tender-information {
  margin-bottom: 30px;
}

.tender-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
}

.tender-facts > div {
  min-width: 0;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.tender-facts > div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.tender-facts > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.tender-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.tender-facts dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 600;
  line-height: 1.65;
}

.protected-facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: -14px 0 34px;
  padding: 20px 24px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}

.protected-facts span,
.restricted-access > span {
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 700;
}

.protected-facts h2 {
  margin: 2px 0 3px;
  font-size: 18px;
}

.protected-facts p,
.restricted-access p {
  margin: 0;
  color: var(--muted);
}

.restricted-access {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 42px 24px;
  text-align: center;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
}

.restricted-access h3 {
  margin: 7px 0 6px;
  font-size: 20px;
}

.restricted-access p {
  max-width: 620px;
}

.restricted-access .button {
  margin-top: 20px;
}

.detail-section {
  margin: 0 0 32px;
}

.detail-section h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 20px;
}

.detail-section > h2::before,
.section-heading-row h2::before {
  flex: 0 0 auto;
  width: 4px;
  height: 18px;
  background: var(--gold);
  content: "";
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-strong);
}

.section-heading-row h2 {
  margin: 0;
  padding: 0;
  border: 0;
}

.section-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.summary-text {
  margin: 0;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.notice-document {
  overflow: clip;
  background: var(--surface);
  border: 1px solid var(--line);
}

.notice-word-download {
  margin: 0;
}

.notice-document-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 42px;
  padding: 8px 18px;
  color: var(--muted);
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.notice-document-layout {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  background: linear-gradient(
    to right,
    var(--surface-muted) 214px,
    var(--surface) 214px
  );
}

.notice-document-layout-single {
  grid-template-columns: minmax(0, 1fr);
  background: var(--surface);
}

.notice-toc {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 112px);
  padding: 26px 18px 30px;
  overflow-y: auto;
  background: transparent;
  border-right: 1px solid var(--line);
}

.notice-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 13px;
}

.notice-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-toc li + li {
  margin-top: 3px;
}

.notice-toc a {
  display: block;
  padding: 7px 9px;
  color: var(--muted);
  border-left: 2px solid transparent;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.notice-toc a:hover {
  color: var(--gold-deep);
  background: var(--gold-soft);
  border-left-color: var(--gold);
  text-decoration: none;
}

.notice-document-body {
  min-width: 0;
  padding: 38px 48px 52px;
}

.notice-source-html {
  min-width: 0;
  max-width: 960px;
  margin: 0 auto;
  padding: 38px 46px 52px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  overflow-x: auto;
}

.notice-source-html h1,
.notice-source-html h2,
.notice-source-html h3,
.notice-source-html h4,
.notice-source-html h5,
.notice-source-html h6 {
  margin: 28px 0 14px;
  color: var(--gold-deep);
  line-height: 1.55;
}

.notice-source-html h1,
.notice-source-html h2 {
  font-size: 18px;
}

.notice-source-html h3,
.notice-source-html h4,
.notice-source-html h5,
.notice-source-html h6 {
  font-size: 16px;
}

.notice-source-html p {
  margin: 0 0 13px;
}

.notice-source-html ul,
.notice-source-html ol {
  margin: 0 0 16px;
  padding-left: 2em;
}

.notice-source-html table {
  width: 100%;
  margin: 18px 0 24px;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 14px;
  line-height: 1.65;
}

.notice-source-html caption {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}

.notice-source-html th,
.notice-source-html td {
  min-width: 72px;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.notice-source-html th {
  background: var(--gold-soft);
  color: var(--ink);
  font-weight: 700;
}

.notice-source-html th p,
.notice-source-html td p {
  margin: 0;
}

.notice-source-html tr:nth-child(even) td {
  background: var(--surface-muted);
}

.notice-source-html img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
}

.notice-source-html a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.notice-source-html pre {
  overflow-x: auto;
  padding: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  white-space: pre-wrap;
}

.notice-document-body > * {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.document-lead {
  margin: 0 auto 24px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.65;
  text-align: center;
  overflow-wrap: anywhere;
}

.document-heading {
  scroll-margin-top: 92px;
  margin: 32px 0 16px;
  padding: 0 0 9px;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--line-strong);
  font-size: 17px;
  line-height: 1.55;
}

.notice-document-body > .document-heading:first-child,
.document-lead + .document-heading {
  margin-top: 8px;
}

.document-subheading {
  margin: 24px 0 12px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.document-paragraph,
.document-clause p {
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
  overflow-wrap: anywhere;
  text-align: left;
}

.document-paragraph {
  margin-bottom: 14px;
  text-indent: 2em;
}

.document-clause {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  margin: 0 auto 12px;
}

.document-clause > span {
  padding-top: 4px;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 700;
}

.document-field {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.document-field dt {
  color: var(--muted);
  font-size: 13px;
}

.document-field dd {
  min-width: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.notice-document-body > .document-lead,
.notice-document-body > .document-heading,
.notice-document-body > .document-subheading,
.notice-document-body > .document-paragraph,
.notice-document-body > .document-clause,
.notice-document-body > .document-field {
  margin-right: auto;
  margin-left: auto;
}

.attachment-list,
.related-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
}

.attachment-list li,
.related-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.attachment-list li:last-child,
.related-list li:last-child {
  border-bottom: 0;
}

.attachment-list span,
.related-list a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.related-list span {
  color: var(--muted);
  white-space: nowrap;
}

.login-body {
  overflow: auto;
  background: #241f14;
}

.login-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 100svh;
  padding: 32px 20px;
  background-image:
    linear-gradient(rgba(25, 27, 23, 0.48), rgba(25, 27, 23, 0.58)),
    url("homepage-solar-bg.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  isolation: isolate;
}

.login-layout > .flash,
.login-entry {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
}

.login-layout > .flash {
  margin: 0;
}

.login-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.login-back-link:hover {
  color: var(--gold-deep);
}

.login-card-nav {
  margin-bottom: 22px;
}

.login-form-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.site-logo-login {
  width: 240px;
  height: 96px;
}

.login-form-wrap {
  width: 100%;
  padding: 28px 32px 30px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 22px 60px rgba(20, 20, 15, 0.3);
  backdrop-filter: blur(10px);
}

.login-heading {
  margin-top: 24px;
}

.login-heading h1 {
  margin: 0;
  font-size: 25px;
}

.login-form {
  margin-top: 22px;
}

.login-form input {
  margin-bottom: 18px;
  height: 44px;
}

.login-form .button {
  height: 44px;
  margin-top: 8px;
}

.auth-switch {
  margin: 20px 0 0;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
}

.error-page {
  max-width: 620px;
  margin: 12vh auto;
  text-align: center;
}

.error-page > span {
  color: var(--gold-strong);
  font-size: 56px;
  font-weight: 700;
}

.error-page h1 {
  margin: 8px 0 26px;
  font-size: 22px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-link,
.membership-link,
.account-role {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.membership-link,
.account-role {
  padding: 5px 9px;
  color: var(--gold-deep);
  background: var(--gold-soft);
  border-radius: 4px;
}

.account-role {
  color: var(--blue);
  background: var(--blue-soft);
}

.auth-page-shell {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.auth-form-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}

.auth-form-page > header {
  padding: 28px 32px 24px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
}

.auth-form-page > header h1 {
  margin: 5px 0 4px;
  font-size: 27px;
}

.auth-form-page > header p:last-child {
  margin: 0;
  color: var(--muted);
}

.registration-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  padding: 30px 32px 34px;
}

.registration-form label {
  display: block;
  margin-bottom: 6px;
  color: #655b49;
  font-size: 12px;
  font-weight: 600;
}

.registration-form input,
.registration-form textarea,
.membership-bind input,
.admin-filter-bar input,
.admin-filter-bar select,
.invite-create-band input,
.invite-create-band select,
.inline-control-form input,
.inline-control-form select,
.inline-reason-form input {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: none;
}

.registration-form input,
.admin-filter-bar input,
.admin-filter-bar select,
.invite-create-band input,
.invite-create-band select,
.inline-control-form input,
.inline-control-form select,
.inline-reason-form input {
  height: 40px;
}

.registration-form textarea {
  min-height: 108px;
  resize: vertical;
}

.registration-form input:focus,
.registration-form textarea:focus,
.membership-bind input:focus,
.admin-filter-bar input:focus,
.admin-filter-bar select:focus,
.invite-create-band input:focus,
.invite-create-band select:focus,
.inline-control-form input:focus,
.inline-control-form select:focus,
.inline-reason-form input:focus {
  border-color: var(--gold-strong);
  box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.18);
}

.registration-wide {
  grid-column: 1 / -1;
}

.registration-actions {
  display: flex;
  gap: 10px;
}

.account-page {
  max-width: 940px;
  margin: 0 auto;
}

.membership-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
}

.membership-status-active_member {
  border-left-color: var(--gold);
}

.membership-status span,
.membership-bind > h2 {
  color: var(--muted);
  font-size: 13px;
}

.membership-status strong {
  display: block;
  margin-top: 4px;
  color: var(--gold-deep);
  font-size: 28px;
}

.membership-status p {
  margin: 5px 0 0;
  color: var(--muted);
}

.membership-status small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.membership-usage,
.membership-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.membership-usage > div,
.membership-plan {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.membership-usage span,
.membership-plan span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.membership-usage strong,
.membership-plan strong {
  display: block;
  margin-top: 5px;
  color: var(--gold-deep);
  font-size: 24px;
}

.membership-plans {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.membership-plan.is-current {
  border-color: var(--gold);
  box-shadow: inset 0 3px 0 var(--gold);
}

.membership-plan small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.account-section {
  margin-top: 30px;
}

.account-list {
  display: grid;
  gap: 8px;
}

.account-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
}

.account-list-item:hover {
  border-color: var(--gold);
}

.account-list-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-list-item span,
.account-empty {
  color: var(--muted);
  font-size: 13px;
}

.account-empty {
  padding: 22px;
  text-align: center;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -6px 0 28px;
}

.source-view-quota {
  color: var(--muted);
  font-size: 13px;
}

.membership-status dl {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 18px;
  margin: 0;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.membership-status dt {
  color: var(--muted);
}

.membership-status dd {
  margin: 0;
  font-weight: 600;
}

.membership-bind {
  margin-top: 22px;
  padding: 24px 30px 28px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.membership-bind h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 18px;
}

.membership-bind form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
}

.membership-bind input {
  height: 42px;
  text-transform: uppercase;
}

.admin-body {
  background: #f7f7f4;
}

.admin-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 9px 24px;
  color: var(--ink);
  background: #fff;
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid var(--line);
}

.admin-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.admin-topbar-brand:hover {
  text-decoration: none;
}

.site-logo-admin {
  width: 130px;
  height: 52px;
}

.admin-topbar-brand strong,
.admin-topbar-brand small,
.admin-topbar-account span,
.admin-topbar-account small,
.admin-topbar-account strong {
  display: block;
}

.admin-topbar-brand strong {
  font-size: 16px;
}

.admin-topbar-brand small,
.admin-topbar-account small {
  color: var(--muted);
  font-size: 10px;
}

.admin-topbar-account {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-topbar-account > span {
  min-width: 84px;
}

.admin-topbar-account > span strong {
  margin-top: 1px;
  font-size: 13px;
}

.admin-topbar-account form {
  margin: 0;
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  width: min(1720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.admin-shell > .flash {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-sidebar {
  position: sticky;
  top: 94px;
  align-self: start;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}

.admin-login-body {
  min-height: 100vh;
  background: #f7f7f4;
}

.admin-login-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 1.05fr);
  min-height: 100vh;
}

.admin-login-intro {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  padding: 8%;
  color: #fff;
  background-image:
    linear-gradient(rgba(32, 29, 22, 0.38), rgba(32, 29, 22, 0.76)),
    url("homepage-solar-bg.jpg");
  background-position: center;
  background-size: cover;
}

.admin-login-intro > div {
  position: relative;
  z-index: 1;
}

.admin-login-intro span {
  color: #ffe89a;
  font-size: 11px;
  font-weight: 800;
}

.admin-login-intro h1 {
  margin: 12px 0 14px;
  font-size: 42px;
  line-height: 1.18;
}

.admin-login-intro p {
  margin: 0;
  color: #fff4d0;
  font-size: 16px;
}

.admin-login-public-link {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 8%;
  padding: 8px 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 4px;
  font-weight: 600;
}

.admin-login-public-link:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.admin-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 44px;
  border-top: 3px solid var(--gold);
}

.admin-login-form-wrap {
  width: min(100%, 400px);
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 18px 46px rgba(47, 42, 32, 0.11);
}

.site-logo-admin-login {
  width: 240px;
  height: 96px;
  margin: 0 auto 22px;
}

.admin-login-heading span {
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 800;
}

.admin-login-heading h2 {
  margin: 4px 0 3px;
  font-size: 27px;
}

.admin-login-heading p {
  margin: 0;
  color: var(--muted);
}

.admin-login-form-wrap .flash {
  margin: 20px 0 -8px;
}

.admin-login-user-entry {
  display: block;
  margin-top: 20px;
  text-align: center;
  font-weight: 600;
}

.admin-sidebar-heading {
  padding: 20px 18px 17px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-heading span,
.admin-sidebar-heading strong {
  display: block;
}

.admin-sidebar-heading span {
  color: var(--gold-deep);
  font-size: 10px;
  font-weight: 800;
}

.admin-sidebar-heading strong {
  margin-top: 3px;
  font-size: 18px;
}

.admin-sidebar nav {
  display: grid;
  padding: 8px;
}

.admin-sidebar nav a {
  padding: 10px 11px;
  color: var(--muted);
  border-left: 3px solid transparent;
  font-weight: 600;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.is-active {
  color: var(--ink);
  background: var(--surface-muted);
  border-left-color: var(--gold);
  text-decoration: none;
}

.admin-content {
  min-width: 0;
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--gold);
}

.admin-page-header p,
.admin-page-header h1,
.admin-page-header span {
  margin: 0;
}

.admin-page-header p {
  color: var(--gold-deep);
  font-size: 10px;
  font-weight: 800;
}

.admin-page-header h1 {
  margin-top: 2px;
  font-size: 25px;
  line-height: 1.25;
}

.admin-page-header div > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}

.admin-kpis > div {
  min-width: 0;
  padding: 17px 18px;
  border-right: 1px solid var(--line);
}

.admin-kpis > div:last-child {
  border-right: 0;
}

.admin-kpis span,
.admin-kpis strong,
.admin-kpis small {
  display: block;
}

.admin-kpis span {
  color: var(--muted);
  font-size: 12px;
}

.admin-kpis strong {
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.2;
}

.admin-kpis small {
  color: var(--muted);
}

.admin-kpis-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-kpis-quality {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 22px;
  margin-bottom: 22px;
}

.admin-panel {
  min-width: 0;
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
}

.admin-two-column > .admin-panel {
  margin-bottom: 0;
}

.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 12px 16px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
}

.admin-panel-heading h2 {
  margin: 0;
  font-size: 16px;
}

.admin-panel-heading > span {
  color: var(--muted);
  font-size: 12px;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: auto;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.admin-table th {
  color: #6a604f;
  background: #fffaf0;
  font-size: 11px;
  white-space: nowrap;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover {
  background: #fffdf8;
}

.admin-table td > small,
.admin-table td > strong + small,
.admin-table td > a + small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.admin-primary-link {
  color: var(--ink);
  font-weight: 650;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 7px;
  color: var(--muted);
  background: #f4f1e9;
  border-radius: 4px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.admin-status.is-success {
  color: #246154;
  background: var(--teal-soft);
}

.admin-status.is-warning {
  color: var(--gold-deep);
  background: var(--gold-soft);
}

.admin-status.is-danger {
  color: var(--red);
  background: var(--red-soft);
}

.admin-status.is-muted,
.admin-muted-text {
  color: var(--muted);
}

.admin-empty {
  padding: 30px !important;
  color: var(--muted);
  text-align: center !important;
}

.admin-error-text {
  max-width: 340px;
  color: var(--red);
  font-size: 12px;
}

.admin-text-action {
  display: inline;
  min-height: 0;
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 650;
  white-space: nowrap;
}

.admin-text-action:hover {
  text-decoration: underline;
}

.admin-text-action.is-danger {
  color: var(--red);
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.admin-user-filters {
  grid-template-columns: minmax(240px, 1fr) 170px 170px auto auto;
}

.admin-segmented {
  display: inline-flex;
  height: 40px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.admin-segmented a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  border-right: 1px solid var(--line);
}

.admin-segmented a:last-child {
  border-right: 0;
}

.admin-segmented a:hover,
.admin-segmented a.is-active {
  color: var(--ink);
  background: var(--gold-soft);
  text-decoration: none;
}

.admin-notice-table {
  min-width: 940px;
}

.admin-notice-table th:first-child {
  width: 34%;
}

.admin-users-table {
  min-width: 1180px;
}

.admin-users-table th:nth-child(1),
.admin-users-table th:nth-child(2) {
  width: 20%;
}

.admin-users-table th:last-child {
  width: 30%;
}

.admin-users-table details {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.admin-users-table details p {
  margin: 5px 0 0;
}

.admin-actions-cell,
.admin-actions-cell form {
  min-width: 0;
}

.admin-actions-cell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.inline-reason-form,
.inline-control-form {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.inline-control-form {
  grid-column: 1 / -1;
}

.inline-control-form input,
.inline-control-form select,
.inline-reason-form input {
  height: 32px;
  padding: 5px 7px;
  font-size: 11px;
}

.audit-summary,
.login-event-list,
.company-ranking {
  margin: 0;
  padding: 0;
  list-style: none;
}

.audit-summary li,
.login-event-list li,
.company-ranking li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.audit-summary li:last-child,
.login-event-list li:last-child,
.company-ranking li:last-child {
  border-bottom: 0;
}

.audit-summary strong,
.audit-summary span,
.login-event-list strong,
.login-event-list small {
  display: block;
}

.audit-summary span,
.login-event-list small {
  color: var(--muted);
  font-size: 11px;
}

.company-ranking {
  counter-reset: company-rank;
}

.company-ranking li {
  counter-increment: company-rank;
}

.company-ranking li span::before {
  display: inline-block;
  width: 24px;
  color: var(--gold-deep);
  content: counter(company-rank, decimal-leading-zero);
  font-size: 11px;
  font-weight: 700;
}

.admin-definition-list,
.quality-report-grid {
  margin: 0;
}

.admin-definition-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.admin-definition-list > div:last-child {
  border-bottom: 0;
}

.admin-definition-list dd {
  margin: 0;
  color: var(--gold-deep);
  font-weight: 700;
}

.quality-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quality-report-grid > div {
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quality-report-grid > div:nth-child(3n) {
  border-right: 0;
}

.quality-report-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.quality-report-grid dd {
  margin: 4px 0 0;
  color: var(--gold-deep);
  font-size: 20px;
  font-weight: 700;
}

.registration-chart {
  max-height: 330px;
  padding: 10px 16px 14px;
  overflow-y: auto;
}

.registration-chart > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  min-height: 27px;
}

.registration-chart span {
  color: var(--muted);
  font-size: 10px;
}

.registration-chart i {
  height: 7px;
  overflow: hidden;
  background: #f2ecde;
  border-radius: 4px;
}

.registration-chart b {
  display: block;
  min-width: 3px;
  height: 100%;
  background: var(--gold);
}

.registration-chart strong {
  font-size: 11px;
  text-align: right;
}

.invite-reveal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 22px 24px;
  background: #fff7d6;
  border: 1px solid #e8cf72;
  border-left: 4px solid var(--gold);
}

.invite-reveal span,
.invite-reveal strong,
.invite-reveal p {
  display: block;
  margin: 0;
}

.invite-reveal span {
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 700;
}

.invite-reveal strong {
  margin: 5px 0 3px;
  font-family: Consolas, monospace;
  font-size: 25px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.invite-reveal p,
.invite-create-band p {
  color: var(--muted);
}

.invite-create-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(520px, 1.45fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
  padding: 20px 22px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
}

.invite-create-band h2,
.invite-create-band p {
  margin: 0;
}

.invite-create-band h2 {
  font-size: 17px;
}

.invite-create-band p {
  margin-top: 4px;
  font-size: 12px;
}

.invite-create-band form {
  display: grid;
  grid-template-columns: 150px 150px minmax(180px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.invite-create-band label span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.audit-details {
  display: block;
  max-width: 360px;
  max-height: 72px;
  overflow: auto;
  color: #5b5449;
  font-family: Consolas, monospace;
  font-size: 11px;
  white-space: pre-wrap;
}

@media (max-width: 1120px) {
  .filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-search {
    grid-column: span 2;
  }

  .admin-shell {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
  }

  .admin-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-kpis > div {
    border-bottom: 1px solid var(--line);
  }

  .admin-kpis > div:nth-child(3n) {
    border-right: 0;
  }

  .admin-user-filters {
    grid-template-columns: minmax(220px, 1fr) 150px 150px auto;
  }

  .admin-user-filters .button-secondary {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .invite-create-band {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 9px 16px;
  }

  .header-account > span {
    display: none;
  }

  .page-shell {
    width: min(100% - 28px, 720px);
    padding-top: 20px;
  }

  .page-heading h1,
  .detail-header h1 {
    font-size: 24px;
  }

  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }

  .filter-search {
    grid-column: 1 / -1;
  }

  .search-bar {
    padding: 14px;
  }

  .filter-row {
    grid-template-columns: 78px minmax(0, 1fr);
    padding: 11px 14px;
  }

  .filter-reset {
    grid-column: 2;
    justify-self: start;
  }

  .table-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .data-table {
    min-width: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    margin-bottom: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .data-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  .data-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 12px;
  }

  .data-table td:first-child {
    display: block;
    padding-top: 2px;
  }

  .data-table td:first-child::before,
  .data-table td.row-action::before {
    display: none;
  }

  .data-table td.row-action {
    display: block;
    padding-bottom: 0;
    border-bottom: 0;
    text-align: left !important;
  }

  .key-facts {
    grid-template-columns: 1fr;
  }

  .fact-primary {
    min-height: 104px;
  }

  .key-facts dl > div {
    padding: 17px 20px;
    border-top: 1px solid var(--line);
  }

  .login-layout {
    padding: 24px 16px;
    background-attachment: scroll;
  }

  .login-form-wrap {
    padding: 26px 24px;
  }

  .admin-login-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-login-intro {
    align-items: flex-end;
    min-height: 32vh;
    padding: 72px 28px 30px;
  }

  .admin-login-intro h1 {
    margin: 8px 0;
    font-size: 30px;
  }

  .admin-login-intro h1 br {
    display: none;
  }

  .admin-login-public-link {
    top: 18px;
    left: 28px;
  }

  .admin-login-panel {
    min-height: 68vh;
    padding: 28px 18px 42px;
  }

  .admin-login-form-wrap {
    padding: 28px 24px;
  }

  .admin-shell {
    display: block;
    width: min(100% - 24px, 960px);
    padding-top: 14px;
  }

  .admin-sidebar {
    position: static;
    margin-bottom: 20px;
  }

  .admin-sidebar-heading {
    padding: 12px 14px;
  }

  .admin-sidebar nav {
    display: flex;
    gap: 3px;
    overflow-x: auto;
  }

  .admin-sidebar nav a {
    flex: 0 0 auto;
    padding: 8px 11px;
    border-bottom: 3px solid transparent;
    border-left: 0;
  }

  .admin-sidebar nav a:hover,
  .admin-sidebar nav a.is-active {
    border-bottom-color: var(--gold);
    border-left-color: transparent;
  }

  .admin-two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-filter-bar,
  .admin-user-filters {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-search-field {
    grid-column: 1 / -1;
  }

  .admin-user-filters select {
    min-width: 0;
  }

  .admin-user-filters .button-secondary {
    grid-column: auto;
  }

  .invite-create-band form {
    grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
  }

  .invite-create-band form .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .notice-document-meta {
    flex-wrap: wrap;
    gap: 4px 14px;
  }

  .notice-document-layout {
    grid-template-columns: minmax(0, 1fr);
    background: var(--surface);
  }

  .notice-toc {
    position: static;
    max-height: none;
    padding: 16px;
    background: var(--surface-muted);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .notice-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
  }

  .notice-toc li + li {
    margin-top: 0;
  }

  .notice-document-body {
    padding: 28px 24px 38px;
  }

  .notice-source-html {
    max-width: none;
    padding: 28px 24px 38px;
    overflow-x: auto;
  }

  .notice-source-html table {
    min-width: 640px;
  }

  .document-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
}

@media (max-width: 520px) {
  .login-layout {
    justify-content: flex-start;
    padding-top: 18px;
  }

  .login-form-wrap {
    padding: 24px 20px;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-header {
    min-height: 62px;
    padding: 8px 12px;
  }

  .site-logo-header {
    width: 120px;
    height: 48px;
  }

  .header-account {
    gap: 7px;
  }

  .header-account > span,
  .header-link {
    display: none;
  }

  .membership-link {
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-topbar {
    min-height: 64px;
    padding: 7px 12px;
  }

  .admin-topbar-brand small,
  .admin-topbar-account > span,
  .admin-topbar-account .button-secondary {
    display: none;
  }

  .admin-topbar-brand strong {
    font-size: 14px;
  }

  .site-logo-admin {
    width: 104px;
    height: 42px;
  }

  .admin-topbar-account {
    gap: 4px;
  }

  .admin-topbar-account .button-quiet {
    padding-left: 8px;
  }

  .auth-page-shell {
    width: calc(100% - 24px);
    padding: 20px 0 40px;
  }

  .auth-form-page > header,
  .registration-form {
    padding-right: 18px;
    padding-left: 18px;
  }

  .registration-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .registration-wide {
    grid-column: auto;
  }

  .registration-actions {
    flex-direction: column;
  }

  .membership-status {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 18px;
  }

  .membership-usage,
  .membership-plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-list-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .detail-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .membership-status dl {
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .membership-bind {
    padding: 20px 18px;
  }

  .membership-bind form {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .admin-page-header .button {
    width: 100%;
  }

  .admin-kpis,
  .admin-kpis-compact,
  .admin-kpis-quality {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-kpis > div,
  .admin-kpis > div:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .admin-kpis > div:nth-child(2n) {
    border-right: 0;
  }

  .admin-filter-bar,
  .admin-user-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-search-field,
  .admin-user-filters .button-secondary {
    grid-column: auto;
  }

  .admin-segmented {
    width: 100%;
  }

  .admin-segmented a {
    flex: 1;
    justify-content: center;
  }

  .quality-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quality-report-grid > div,
  .quality-report-grid > div:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .quality-report-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .invite-reveal {
    align-items: stretch;
    flex-direction: column;
  }

  .invite-reveal strong {
    font-size: 19px;
  }

  .invite-create-band form {
    grid-template-columns: minmax(0, 1fr);
  }

  .invite-create-band form .button {
    grid-column: auto;
  }

  .button-quiet {
    padding-right: 0;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .key-facts dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .key-facts dl > div {
    padding: 15px 16px;
  }

  .tender-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .tender-facts > div,
  .tender-facts > div:nth-child(odd),
  .tender-facts > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tender-facts > div:last-child {
    border-bottom: 0;
  }

  .search-bar {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 8px;
    padding: 12px;
  }

  .search-bar input {
    height: 44px;
    padding: 8px 11px;
    font-size: 14px;
  }

  .search-bar .button {
    min-width: 0;
    height: 44px;
    padding: 8px 12px;
  }

  .filter-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    padding: 12px;
  }

  .filter-label {
    padding-top: 0;
    font-weight: 600;
  }

  .filter-options {
    gap: 2px 12px;
  }

  .filter-reset {
    grid-column: 1;
  }

  .protected-facts {
    align-items: flex-start;
    flex-direction: column;
    margin-top: -16px;
  }

  .filter-actions {
    align-items: stretch;
  }

  .filter-actions .button {
    flex: 1;
  }

  .results-toolbar,
  .attachment-list li,
  .related-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagination {
    justify-content: space-between;
  }

  .related-list span {
    white-space: normal;
  }

  .notice-document-body {
    padding: 24px 18px 34px;
  }

  .notice-source-html {
    padding: 24px 18px 34px;
    font-size: 14px;
  }

  .document-lead {
    font-size: 16px;
    text-align: left;
  }

  .document-clause {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 4px;
  }

  .document-paragraph,
  .document-clause p,
  .document-field dd {
    font-size: 14px;
  }
}

/* ---- Site footer ---- */
.site-footer {
  margin-top: 60px;
  padding: 28px 0 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 0;
}

.icp-link {
  color: var(--muted);
  text-decoration: none;
}

.icp-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---- Static pages ---- */
.static-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 22px 50px;
}

.static-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

.static-content h2 {
  font-size: 19px;
  margin: 34px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.static-content h3 {
  font-size: 16px;
  margin: 18px 0 6px;
}

.static-content p,
.static-content li {
  margin: 6px 0;
}

.static-content ul {
  padding-left: 22px;
}

/* ---- Login options ---- */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 12px;
  font-size: 13px;
}

.forgot-password-link {
  color: var(--muted);
}

.forgot-password-link:hover {
  color: var(--ink);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--gold);
  margin: 0;
}

/* ---- Auth instruction ---- */
.auth-instruction {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
  text-align: center;
}

/* ---- Reset password ---- */
.reset-link-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 20px;
}

.reset-link-box p {
  margin: 0 0 10px;
  font-size: 14px;
}

.reset-link-value {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.reset-link-value code {
  flex: 1;
  word-break: break-all;
  font-size: 12px;
  padding: 10px 12px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
}

.reset-note {
  color: var(--muted);
  font-size: 13px;
}

/* ---- Account page ---- */
.account-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px 56px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  grid-template-areas: "sidebar main";
  gap: 24px;
  align-items: start;
}

.account-layout-main {
  grid-area: main;
  min-width: 0;
}

.account-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 10px 28px rgba(124, 88, 0, 0.06);
}

.account-section h2 {
  font-size: 18px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.account-section-hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.account-form-row {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  gap: 6px 16px;
  margin-bottom: 14px;
  align-items: start;
}

.account-form-row label {
  grid-column: 1;
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 9px 0 0;
}

.account-form-row input {
  grid-column: 2;
  width: 100%;
  max-width: none;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
}

.account-form-row input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 2px var(--gold-soft);
}

.account-form-row input:disabled {
  background: var(--surface-muted);
  color: var(--muted);
  cursor: not-allowed;
}

.account-form-row small {
  grid-column: 2;
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: -1px;
}

.account-form-row .account-status {
  grid-column: 2;
  display: inline-block;
  padding: 4px 10px;
  background: var(--surface-muted);
  border-radius: 4px;
  font-size: 13px;
}

.account-form-actions {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.account-layout-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 88px;
  align-self: start;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(124, 88, 0, 0.05);
}

.account-nav-title {
  display: block;
  padding: 10px 14px 12px;
  color: var(--gold-deep);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.account-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}

.account-nav a.is-active {
  color: var(--gold-deep);
  background: var(--gold-soft);
  font-weight: 700;
}

.account-nav a small {
  float: right;
  color: var(--muted);
  font-size: 12px;
}

.account-nav a:hover {
  background: var(--surface-muted);
}

.account-empty {
  font-size: 14px;
  color: var(--muted);
  padding: 20px 0;
  text-align: center;
}

.membership-bind-note {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.membership-permissions {
  margin-top: 22px;
}

.permission-table-wrap {
  overflow-x: auto;
}

.permission-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}

.permission-table th,
.permission-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.permission-table th {
  color: var(--muted);
  background: var(--surface-muted);
  font-weight: 700;
}

.permission-table td:not(:first-child) {
  color: var(--gold-deep);
  font-weight: 600;
}

@media (max-width: 700px) {
  .account-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "sidebar";
    gap: 16px;
  }
  .account-layout-sidebar {
    position: static;
  }
  .account-section {
    padding: 18px 16px;
    margin-bottom: 18px;
  }
  .account-form-row {
    grid-template-columns: 1fr;
  }
  .account-form-row label,
  .account-form-row input {
    grid-column: 1;
    max-width: 100%;
  }
  .account-form-row small,
  .account-form-row .account-status {
    grid-column: 1;
  }
}

/* ---- Trial banner ---- */
.trial-banner {
  background: var(--blue-soft);
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 20px;
  font-size: 14px;
}

.trial-banner strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
}

.trial-banner span {
  color: var(--ink);
}

/* ---- Admin batch bar ---- */
.admin-batch-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}

.admin-batch-bar strong {
  color: var(--gold-deep);
}

/* ---- Admin settings ---- */
.admin-settings-form {
  padding: 10px 0;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.admin-settings-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.admin-settings-row input,
.admin-settings-row select {
  width: 100%;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
}

.admin-settings-row input:focus,
.admin-settings-row select:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 2px var(--gold-soft);
}

.admin-settings-actions {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-panel-body {
  padding: 12px 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.65;
}

.admin-panel-body code {
  background: var(--surface-muted);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
}

.admin-panel-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---- Logout form no extra space ---- */
.logout-form {
  display: inline;
}

/* ---- Responsive static pages ---- */
@media (max-width: 700px) {
  .static-page {
    padding: 14px 14px 40px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}
