:root {
  --bg: #efe7d7;
  --panel: rgba(255, 255, 255, 0.8);
  --ink: #1f2933;
  --muted: #5f6c76;
  --line: rgba(31, 41, 51, 0.12);
  --brand: #165d52;
  --brand-2: #bf6d1f;
  --ok: #0f8b4c;
  --warn: #c05621;
  --err: #b83232;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(22, 93, 82, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(191, 109, 31, 0.16), transparent 26%),
    linear-gradient(135deg, #f7f2e8 0%, #ece1cb 100%);
}

a {
  color: var(--brand);
  text-decoration: none;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.button-link.alt {
  background: rgba(31, 41, 51, 0.08);
  color: var(--ink);
}

.button-link.disabled {
  background: rgba(31, 41, 51, 0.08);
  color: var(--muted);
  cursor: default;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(31, 41, 51, 0.08);
}

.auth-panel {
  width: min(520px, calc(100% - 32px));
  margin: 56px auto;
  padding: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(22, 93, 82, 0.12);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 6px rgba(191, 109, 31, 0.15);
}

h1,
h2,
h3 {
  margin: 0;
}

.lead {
  color: var(--muted);
  line-height: 1.7;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(31, 41, 51, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

input:focus,
select:focus {
  outline: 2px solid rgba(22, 93, 82, 0.22);
  border-color: rgba(22, 93, 82, 0.4);
}

button {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

button.alt {
  background: rgba(31, 41, 51, 0.08);
  color: var(--ink);
}

button.warn {
  background: var(--brand-2);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: 1.05fr 1.2fr;
}

.card {
  padding: 24px;
}

.stats-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  display: grid;
  gap: 10px;
}

.stat-card strong {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-card span {
  font-size: 34px;
  font-weight: 800;
  color: var(--brand);
}

.flash {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
}

.flash.info {
  background: rgba(22, 93, 82, 0.12);
  color: var(--brand);
}

.flash.success {
  background: rgba(15, 139, 76, 0.12);
  color: var(--ok);
}

.flash.error {
  background: rgba(184, 50, 50, 0.12);
  color: var(--err);
}

.meta-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.meta-item strong {
  color: var(--muted);
  font-size: 13px;
}

.meta-item span {
  font-weight: 700;
}

.note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card {
  display: grid;
  gap: 0;
}

.tool-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.tool-path {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.tool-footer {
  margin-top: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

td form {
  display: flex;
  gap: 8px;
  align-items: center;
}

td .stack {
  display: grid;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(22, 93, 82, 0.12);
  color: var(--brand);
}

.tag.member {
  background: rgba(31, 41, 51, 0.08);
  color: var(--ink);
}

.must-change {
  color: var(--warn);
  font-weight: 700;
}

.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-form.compact input,
.inline-form.compact select {
  padding: 10px 12px;
}

.inline-form.compact button {
  padding: 10px 12px;
}

.danger {
  background: #b83232;
  color: #fff;
}

.inline-form input,
.inline-form select {
  min-width: 0;
}

@media (max-width: 900px) {
  .grid.two {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  td form,
  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }
}
