:root {
  --page-bg-top: #fbf4ea;
  --page-bg-bottom: #f3e5d2;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-soft: #fff8f0;
  --surface-tint: #fff2e3;
  --text: #24303a;
  --muted: #5e6c78;
  --brand: #e4821f;
  --brand-deep: #bf6310;
  --brand-soft: #fff0df;
  --accent: #4caf50;
  --accent-deep: #3e9342;
  --accent-soft: #edf8ee;
  --danger: #c44735;
  --danger-deep: #a83828;
  --danger-soft: #fdecea;
  --border: #ead8c4;
  --border-strong: #d9c0a5;
  --shadow-lg: 0 22px 50px rgba(73, 45, 18, 0.12);
  --shadow-md: 0 12px 28px rgba(73, 45, 18, 0.1);
  --shadow-sm: 0 6px 18px rgba(73, 45, 18, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at top left, rgba(228, 130, 31, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(76, 175, 80, 0.12), transparent 20%),
    linear-gradient(180deg, var(--page-bg-top) 0%, var(--page-bg-bottom) 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input[type="submit"] {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(228, 130, 31, 0.28);
  outline-offset: 2px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

input::placeholder,
textarea::placeholder {
  color: #8b97a1;
}

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

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

th,
td {
  padding: 0.9rem 0.85rem;
}

.page-card,
.surface-card {
  background: var(--surface);
  border: 1px solid rgba(217, 192, 165, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.brand-button,
.accent-button,
.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.danger-button,
.button-danger {
  background: linear-gradient(135deg, var(--danger), var(--danger-deep));
  color: #fff;
  border: none;
}

.muted-copy {
  color: var(--muted);
}
