:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --panel: #ffffff;
  --text: #22242a;
  --muted: #6d7280;
  --line: #e4e0d7;
  --primary: #d95f78;
  --primary-soft: #fde8ee;
  --accent: #2d7f75;
  --warning: #a7671c;
  --shadow: 0 18px 50px rgba(33, 35, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
}

.login-panel {
  width: min(92vw, 420px);
  margin: 10vh auto 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
}

h1,
p {
  margin: 0;
}

.brand h1,
.dashboard-header h1 {
  font-size: 28px;
  letter-spacing: 0;
}

.brand p,
.eyebrow,
.summary {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
}

.login-form button,
.pager button,
.ghost-btn {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  color: #fff;
  background: var(--primary);
  font-weight: 700;
}

.ghost-btn,
.pager button {
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
}

.error-text {
  min-height: 20px;
  color: #b3261e;
  font-size: 14px;
}

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

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

.eyebrow {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 220px));
  gap: 14px;
  margin-bottom: 18px;
}

.summary {
  margin-bottom: 14px;
  font-size: 14px;
}

.feedback-list {
  display: grid;
  gap: 12px;
}

.feedback-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feedback-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #f0eee8;
  color: var(--muted);
  font-size: 13px;
}

.tag.type {
  color: #9f4056;
  background: var(--primary-soft);
}

.tag.status-new {
  color: #7a4a0b;
  background: #fff2d7;
}

.tag.status-processing {
  color: #155e75;
  background: #dff6fb;
}

.tag.status-resolved {
  color: #1d6b4f;
  background: #dcf4e9;
}

.content {
  margin-bottom: 12px;
  white-space: pre-wrap;
  line-height: 1.65;
}

.user-line {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.status-select {
  width: 130px;
}

.empty {
  padding: 44px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 720px) {
  .dashboard-header,
  .feedback-item {
    grid-template-columns: 1fr;
  }

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

  .toolbar {
    grid-template-columns: 1fr;
  }

  .status-select {
    width: 100%;
  }
}
