:root {
  --bg: #f6efe3;
  --panel: rgba(255, 251, 246, 0.84);
  --panel-strong: #fffaf4;
  --line: #e8d6bb;
  --text: #3f3027;
  --muted: #7b6557;
  --accent: #b68546;
  --accent-strong: #9b6d31;
  --danger: #d2564b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, #fff9f1 0%, #f5ecdf 46%, #eadfcf 100%);
}

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
}

.sub {
  margin: 12px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-card,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--panel);
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(173, 138, 91, 0.16);
  backdrop-filter: blur(10px);
}

.hero-card {
  min-width: 320px;
  padding: 18px 20px;
}

.hero-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-url {
  font-family: Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-all;
}

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

.top-panels {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(320px, 420px);
  gap: 18px;
}

.panel {
  padding: 22px;
}

.panel.wide {
  min-width: 0;
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.desc {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.stack {
  display: grid;
  gap: 10px;
}

.label {
  font-size: 14px;
  font-weight: 600;
}

.input,
.textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  background: var(--panel-strong);
  font-size: 14px;
  color: var(--text);
}

.input,
select {
  height: 44px;
}

.textarea {
  min-height: 180px;
  padding: 14px;
  resize: vertical;
  line-height: 1.7;
  font-family: inherit;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.button {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #c18a43, #9a6a2e);
  color: white;
}

.button.small {
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.result,
.message {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff6e9;
  border: 1px solid #edd8b8;
  line-height: 1.7;
  font-size: 14px;
}

.message.error {
  background: #fff0ed;
  border-color: #efc2bb;
  color: var(--danger);
}

.hidden {
  display: none;
}

.table-wrap {
  overflow: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.9);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(232, 214, 187, 0.72);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(255, 247, 236, 0.9);
  font-size: 13px;
  color: var(--muted);
}

td {
  font-size: 14px;
}

.mono {
  font-family: Consolas, monospace;
  word-break: break-all;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.status.active {
  background: #eef9f1;
  color: #23784a;
}

.status.disabled {
  background: #fff0ed;
  color: #c14c40;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-editor {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-editor input,
.inline-editor select {
  width: 120px;
}

.inline-editor input[data-field="note"] {
  width: 220px;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 28px;
}

@media (max-width: 1180px) {
  .top-panels {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }

  .hero-card {
    min-width: 0;
    width: 100%;
  }
}
