:root {
  color-scheme: light;
  --brand: #e1547b;
  --accent: #fa6c8d;
  --bg: #fffbfd;
  --surface: #ffffff;
  --soft: #fff3f7;
  --border: #f5dde6;
  --text: #4d2f3c;
  --muted: #8d5f70;
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;
  --info: #2563eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

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

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

.brand-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.1;
}

.brand-sub {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.nav button.active,
.nav button:hover {
  background: var(--soft);
  color: var(--brand);
}

.logout {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 24px;
}

.main {
  padding: 28px;
}

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

.topbar h1 {
  margin: 0;
  font-size: 28px;
}

.topbar p {
  margin: 5px 0 0;
  color: var(--muted);
}

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

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(225, 84, 123, 0.07);
}

.card.pad {
  padding: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  outline: 0;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(250, 108, 141, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.btn.secondary {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.btn.ghost {
  background: var(--soft);
  color: var(--brand);
}

.btn.error {
  background: var(--error);
}

.btn.small {
  min-height: 34px;
  padding: 8px 11px;
  font-size: 13px;
}

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

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

.item {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
}

.item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.item h3 {
  margin: 0;
  font-size: 16px;
}

.item p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.badge.ACTIVE,
.badge.COMPLETED {
  background: #dcfce7;
  color: var(--success);
}

.badge.PENDING,
.badge.CONTENT_SUBMITTED,
.badge.OPEN,
.badge.IN_REVIEW {
  background: #fef3c7;
  color: var(--warning);
}

.badge.RESOLVED {
  background: #dcfce7;
  color: var(--success);
}

.badge.REJECTED,
.badge.CANCELLED {
  background: #fee2e2;
  color: var(--error);
}

.badge.PAUSED {
  background: #dbeafe;
  color: var(--info);
}

.photos {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 8px;
  margin-top: 12px;
}

.photos img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.empty {
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  width: min(420px, 100%);
  padding: 26px;
}

.login-card h1 {
  margin: 0 0 8px;
}

.login-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.error-text {
  color: var(--error);
  font-size: 13px;
}

.notice-text {
  color: var(--success);
  font-size: 13px;
}

.inline-notice {
  margin: -10px 0 18px;
}

.complaint-item h3 {
  text-transform: uppercase;
  letter-spacing: .02em;
}

.complaint-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--soft);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
}

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

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .logout {
    position: static;
    margin-top: 12px;
  }

  .main {
    padding: 18px;
  }

  .grid.two,
  .grid.three,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
