:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #dbe3ef;
  --text: #1b2430;
  --muted: #5f6b7a;
  --primary: #1e66f5;
  --primary-soft: #eaf1ff;
  --success: #dff6e5;
  --success-text: #1d6b3b;
  --error: #fde7e7;
  --error-text: #9f2f2f;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 Inter, Arial, sans-serif; }
a { color: var(--primary); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.brand { font-size: 20px; font-weight: 700; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 8px 30px rgba(19, 33, 68, 0.05); }
.narrow { max-width: 520px; margin: 0 auto; }
.auth-card { margin-top: 8vh; }
.grid { display: grid; gap: 18px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.compact-grid { align-items: start; }
.stack, .stack-lg { display: grid; gap: 14px; }
.stack-lg { gap: 20px; }
.hero { margin-bottom: 18px; }
.action { display: block; color: inherit; }
.action:hover { border-color: var(--primary); }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
textarea { min-height: 100px; resize: vertical; }
button, .button-link { border: 0; border-radius: 10px; padding: 10px 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.primary { background: var(--primary); color: white; }
.secondary { background: #eef2f8; color: var(--text); }
.danger { background: #e5484d; color: white; }
.link-button { background: transparent; color: var(--primary); padding: 0; }
.inline-form { display: inline; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.gap { gap: 12px; }
.gap-sm { gap: 8px; }
.filters { margin: 16px 0; }
.full { grid-column: 1 / -1; }
.alert { padding: 12px 14px; border-radius: 12px; }
.alert.success { background: var(--success); color: var(--success-text); }
.alert.error { background: var(--error); color: var(--error-text); }
.muted { color: var(--muted); }
.readonly-box { min-height: 42px; padding: 10px 12px; background: #f2f5f9; border: 1px solid var(--line); border-radius: 10px; }
.choice-group { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; }
.choice input { width: auto; }
.badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 999px; background: #e5484d; color: white; font-size: 12px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.notice { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.notice.unread { background: var(--primary-soft); }
.mt { margin-top: 18px; }
.hint { margin-top: 12px; color: var(--muted); }
@media (max-width: 720px) { .container { padding: 16px; } .topbar { align-items: flex-start; flex-direction: column; } }

.site-footer { text-align: center; padding: 18px 24px 28px; color: var(--muted); font-size: 13px; }
button:disabled { opacity: 0.6; cursor: not-allowed; }
