:root {
  --bg: #b1a296;
  --surface: #d4c9c0;
  --accent: #7395ae;
  --accent-hover: #557a95;
  --text: #1f1f1f;
  --text-muted: #555;
  --border: #333;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-width: 320px;
  max-width: 1600px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

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

button {
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  transition: background 0.2s ease;
}

button:hover {
  background: var(--accent-hover);
}

input,
textarea,
select {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: #000;
}

.page-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  width: 100%;
}

.panel-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: #6c757d;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-danger {
  background: #b00020;
}

.btn-danger:hover {
  background: #8e0018;
}

.button-loading {
  opacity: 0.7;
  pointer-events: none;
}

.confirm-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1500;
  align-items: center;
  justify-content: center;
}

.confirm-overlay.is-visible {
  display: flex;
}

.confirm-dialog {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  width: min(420px, 92vw);
}

.confirm-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.confirm-text {
  margin: 0 0 16px;
  color: var(--text-muted);
  line-height: 1.4;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, 90vw);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: #1f1f1f;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 2000;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-success {
  background: #1b5e20;
}

.toast.is-error {
  background: #b00020;
}

.toast.is-info {
  background: #2c3e50;
}
