:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --panel: #ffffff;
  --line: #dce4ee;
  --text: #172033;
  --muted: #657386;
  --green: #0f9f6e;
  --green-deep: #08704f;
  --red: #d64242;
  --red-deep: #a82f2f;
  --amber: #b7791f;
  --blue: #2563eb;
  --blue-soft: #e8f0ff;
  --shadow: 0 18px 46px rgba(23, 32, 51, 0.09);
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: var(--bg);
}
button, input, select { font: inherit; }
.hidden { display: none !important; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { width: min(1200px, calc(100% - 28px)); margin: 22px auto; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 16px;
}
h1, h2, h3 { margin: 0 0 12px; }
h1 { font-size: 1.55rem; font-weight: 700; letter-spacing: 0; }
h2 { font-size: 0.9rem; color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; }
h3 { font-size: 1rem; color: var(--muted); font-weight: 600; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.field { display: grid; gap: 6px; margin-bottom: 10px; }
.field label { font-size: 0.77rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
input, select {
  width: 100%; padding: 11px 13px;
  border-radius: 8px; border: 1px solid #cbd5e1;
  background: #ffffff; color: var(--text); outline: none;
}
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14); }
button {
  border: 0; border-radius: 8px; padding: 11px 16px;
  font-weight: 700; cursor: pointer;
  background: var(--blue);
  color: #ffffff;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
button.secondary { background: #ffffff; color: var(--text); border: 1px solid #cbd5e1; }
button.danger { background: var(--red); color: #fff; }
button:hover { transform: translateY(-1px); }
button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
th { color: var(--muted); text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.08em; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.tag-green { background: #e8f7f1; color: var(--green-deep); }
.tag-red { background: #fdecec; color: var(--red-deep); }
.tag-amber { background: #fff4d8; color: var(--amber); }
.muted { color: var(--muted); font-size: 0.92rem; }
.error { color: var(--red); margin-top: 8px; min-height: 1.2em; }
.notice { color: var(--green); margin-top: 8px; min-height: 1.2em; }
