:root {
  --fjc-red: #e21b1b;
  --fjc-red-soft: #fff0f0;
  --fjc-charcoal: #4a403a;
  --fjc-ink: #241f1c;
  --surface: #ffffff;
  --surface-2: #faf7f6;
  --surface-3: #f3efee;
  --border: #e8dfdc;
  --text: #211d1b;
  --muted: #7b6f69;
  --success: #11895f;
  --danger: #c13a31;
  --warning: #c57a16;
  --info: #6a5a53;
  --shadow-lg: 0 20px 50px rgba(36, 31, 28, .08);
  --shadow-md: 0 12px 28px rgba(36, 31, 28, .06);
  --shadow-sm: 0 8px 18px rgba(36, 31, 28, .04);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(226,27,27,.06), transparent 20%),
    linear-gradient(180deg, #f8f5f4 0%, #f4f1f0 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3 { margin: 0 0 8px; color: var(--fjc-ink); }
h1 { font-size: 34px; line-height: 1.1; }
h3 { font-size: 20px; }
p { margin: 0 0 12px; }
.layout-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}
.sidebar {
  background: linear-gradient(180deg, #433934 0%, #2d2724 100%);
  color: #fff;
  border-radius: 32px;
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.brand-mark {
  width: 62px;
  height: 62px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.brand-title { font-size: 22px; font-weight: 700; }
.brand-subtitle { color: rgba(255,255,255,.7); font-size: 13px; }
.sidebar-nav { display: grid; gap: 8px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  color: rgba(255,255,255,.84);
  transition: .2s ease;
}
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateX(-2px); }
.nav-link.active {
  background: linear-gradient(90deg, rgba(226,27,27,.16), rgba(226,27,27,.28));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.nav-link-ghost { margin-top: 8px; color: #ffb9b9; }
.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  box-shadow: 0 0 0 5px rgba(255,255,255,.04);
}
.nav-link.active .nav-dot { background: var(--fjc-red); }
.sidebar-card {
  margin-top: auto;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 18px;
}
.sidebar-card-title { font-weight: 700; margin-bottom: 8px; }
.sidebar-card-text { color: rgba(255,255,255,.75); line-height: 1.8; font-size: 13px; }
.main-shell { min-width: 0; }
.topbar {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.eyebrow {
  display: inline-flex;
  background: var(--fjc-red-soft);
  color: var(--fjc-red);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.topbar-subtitle { margin-bottom: 0; }
.topbar-user {
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 14px;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(180deg, var(--fjc-red), #bb1717);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
}
.muted { color: var(--muted); }
.small { font-size: 12px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card, .table-wrap {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
}
.card { padding: 22px; }
.kpi-card {
  position: relative;
  overflow: hidden;
  min-height: 154px;
}
.kpi-card::after {
  content: "";
  position: absolute;
  left: -20px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226,27,27,.14), transparent 66%);
}
.kpi-label { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.kpi {
  font-size: 40px;
  font-weight: 700;
  color: var(--fjc-ink);
  margin-bottom: 8px;
}
.kpi-footnote { color: var(--muted); font-size: 13px; }
.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.stat-row:last-child { border-bottom: none; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; }
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 14px;
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: .2s ease;
}
button, .btn, .btn-primary {
  background: linear-gradient(180deg, var(--fjc-red), #c31a1a);
  color: #fff;
  box-shadow: 0 10px 20px rgba(226,27,27,.22);
}
button:hover, .btn:hover { transform: translateY(-1px); }
.btn-secondary {
  background: #fff;
  color: var(--fjc-charcoal);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-warning {
  background: #fff8ee;
  color: #8c5710;
  border: 1px solid #f2d6ab;
  box-shadow: none;
}
.btn-danger {
  background: #fff2f1;
  color: var(--danger);
  border: 1px solid #f1c4bf;
  box-shadow: none;
}
.btn-success {
  background: #ebfaf4;
  color: var(--success);
  border: 1px solid #bfead6;
  box-shadow: none;
}
.table-wrap {
  overflow: auto;
  padding: 8px;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
thead th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 16px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 16px;
  border-bottom: 1px solid #f1ece9;
  text-align: right;
  vertical-align: top;
}
tbody tr:hover { background: rgba(226,27,27,.025); }
tbody tr:last-child td { border-bottom: none; }
form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}
label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  color: var(--fjc-charcoal);
}
input, textarea, select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 14px 16px;
  color: var(--text);
  outline: none;
  transition: .2s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(226,27,27,.45);
  box-shadow: 0 0 0 4px rgba(226,27,27,.08);
}
textarea { min-height: 130px; resize: vertical; }
.alert {
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}
.alert-success { background: #edf9f3; color: #166744; border-color: #caeddc; }
.alert-danger { background: #fff1f1; color: #a72f2f; border-color: #f1cccc; }
.alert-warning { background: #fff7eb; color: #8f5a12; border-color: #f2dbb7; }
.alert-info { background: #f5f1ef; color: #63534c; border-color: #eaded8; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}
.badge-info { background: #f3efee; color: var(--fjc-charcoal); }
.badge-success { background: #ebfaf4; color: var(--success); }
.badge-danger { background: #fff2f1; color: var(--danger); }
.badge-warning { background: #fff7eb; color: var(--warning); }
.badge-secondary { background: #f3efee; color: #6d615b; }
.calendar-list { display: grid; gap: 12px; }
.calendar-list .item {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #fcfbfa 100%);
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-wrap {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
}
.auth-hero {
  background: linear-gradient(140deg, #433934 0%, #2b2522 100%);
  color: #fff;
  padding: 36px;
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.auth-hero::before,
.auth-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.auth-hero::before { width: 320px; height: 320px; top: -120px; left: -120px; }
.auth-hero::after { width: 220px; height: 220px; bottom: -70px; right: -60px; }
.auth-brand {
  width: 120px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255,255,255,.95);
  margin-bottom: 22px;
}
.auth-points { display: grid; gap: 12px; margin-top: 26px; }
.auth-point {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}
.auth-card {
  background: rgba(255,255,255,.93);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 32px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.login-note {
  background: #faf5f4;
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 16px;
  margin-top: 14px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 1100px) {
  .layout-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
  }
  .auth-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .layout-shell, .auth-shell { padding: 14px; }
  .grid-2, .grid-3, form .row, .topbar { grid-template-columns: 1fr; }
  .topbar { display: grid; }
  .topbar-user { min-width: 0; justify-content: flex-start; }
  .sidebar { border-radius: 24px; }
  .card, .table-wrap, .auth-card, .auth-hero, .topbar { border-radius: 22px; }
  h1 { font-size: 28px; }
}


.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
label{display:block;font-weight:700;font-size:13px;margin-bottom:8px;color:var(--fjc-charcoal)}
input,select,textarea{
  width:100%;border:1px solid var(--border);background:#fff;border-radius:14px;padding:13px 14px;
  outline:none;font:inherit;color:var(--text)
}
textarea{min-height:110px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:#d37d7d;box-shadow:0 0 0 4px rgba(226,27,27,.08)}
.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.row-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.row-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.alert{padding:14px 16px;border-radius:16px;margin-bottom:16px;font-weight:700}
.alert-success{background:#ecfaf4;color:#0b7f54;border:1px solid #bbe6d2}
.alert-danger{background:#fff2f1;color:#b33434;border:1px solid #f0c1bb}
.alert-warning{background:#fff8ea;color:#976018;border:1px solid #efd7a7}
.alert-info{background:#f2f5ff;color:#46599a;border:1px solid #cdd6ff}
.badge{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:700}
.badge-success{background:#ecfaf4;color:#0f8c60}
.badge-danger{background:#fff1f0;color:#c13a31}
.badge-warning{background:#fff7e8;color:#c57a16}
.badge-info{background:#eff3ff;color:#4b5b9b}
.badge-secondary{background:#f2efee;color:#6b6461}
.list-clean{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.list-clean li{padding:12px 14px;background:#fff;border:1px solid var(--border);border-radius:14px}
.table-actions{display:flex;gap:8px;flex-wrap:wrap}
.hero-panel{
  background:linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.82));
  border:1px solid rgba(255,255,255,.94);padding:28px;border-radius:28px;box-shadow:var(--shadow-md);
}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.metric-box{padding:18px;border-radius:18px;background:#fff;border:1px solid var(--border)}
.metric-value{font-size:28px;font-weight:700;margin-top:8px}
.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px}
.auth-wrap{width:min(1200px,100%);display:grid;grid-template-columns:1.1fr .9fr;gap:20px}
.auth-hero{background:linear-gradient(150deg,#3f3631 0%,#1f1a18 100%);color:#fff;border-radius:32px;padding:42px;box-shadow:var(--shadow-lg)}
.auth-card{background:#fff;border:1px solid rgba(255,255,255,.94);border-radius:32px;padding:34px;box-shadow:var(--shadow-md)}
.auth-brand{width:80px;height:80px;padding:14px;border-radius:24px;background:#fff;margin-bottom:24px}
.auth-points{display:grid;gap:10px;margin-top:18px}
.auth-point{padding:14px;border:1px solid rgba(255,255,255,.09);border-radius:16px;background:rgba(255,255,255,.05)}
.form-hint{font-size:12px;color:var(--muted);margin-top:6px}
.subtle{background:#fbf8f7;border:1px solid var(--border);border-radius:16px;padding:14px}
.agenda-list{display:grid;gap:12px}
.agenda-item{padding:16px;border:1px solid var(--border);border-radius:18px;background:#fff}
.agenda-item.live{border-color:#f2b8b8;box-shadow:0 0 0 4px rgba(226,27,27,.08)}
.agenda-meta{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-top:8px}
.agenda-grid-head{display:grid;grid-template-columns:2fr 1.2fr .8fr .7fr auto;gap:12px;font-size:12px;color:var(--muted);margin-bottom:8px}
.agenda-grid-row{display:grid;grid-template-columns:2fr 1.2fr .8fr .7fr auto;gap:12px;align-items:start;margin-bottom:10px}
.agenda-remove{background:#fff2f1;color:#c13a31;border:1px solid #f0c2bc;box-shadow:none}
.war-shell{display:grid;grid-template-columns:1.05fr .95fr;gap:18px}
.timer-card{position:sticky;top:18px}
.timer-value{font-size:54px;font-weight:800;line-height:1;color:var(--fjc-red);margin:10px 0}
.live-note{min-height:360px}
.vote-options{display:flex;gap:10px;flex-wrap:wrap}
.vote-pill{padding:14px 16px;border-radius:14px;border:1px solid var(--border);cursor:pointer;background:#fff;font-weight:700}
.vote-pill.active{border-color:#de9b9b;background:#fff5f5}
.timeline{display:grid;gap:12px}
.timeline-item{display:grid;grid-template-columns:auto 1fr;gap:12px}
.timeline-dot{width:12px;height:12px;border-radius:50%;background:var(--fjc-red);margin-top:8px}
.progress{height:10px;background:#eee5e2;border-radius:999px;overflow:hidden}
.progress > span{display:block;height:100%;background:linear-gradient(90deg,var(--fjc-red),#ff8e8e);border-radius:999px}
.calendar-list{display:grid;gap:10px}
.calendar-event{padding:14px 16px;border-radius:16px;background:#fff;border:1px solid var(--border)}
.signature-box{padding:16px;border-radius:18px;background:#fff;border:1px solid var(--border)}
.status-chip{display:inline-flex;padding:8px 12px;background:#f3efee;border-radius:999px;font-size:12px;font-weight:700}
.toolbar{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.toolbar-left,.toolbar-right{display:flex;gap:10px;flex-wrap:wrap}
.note-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.note-toolbar button{box-shadow:none;background:#fff;border:1px solid var(--border);color:var(--fjc-charcoal)}
.code{font-family:monospace;background:#f3efee;padding:2px 6px;border-radius:6px}
@media (max-width: 1100px){
  .layout-shell{grid-template-columns:1fr;padding:16px}
  .sidebar{position:relative;top:auto;height:auto}
  .grid-3,.metric-grid,.row-3,.row-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .war-shell,.auth-wrap{grid-template-columns:1fr}
}
@media (max-width: 720px){
  .grid-2,.grid-3,.row,.row-3,.row-4,.metric-grid{grid-template-columns:1fr}
  .topbar{flex-direction:column;align-items:flex-start}
  .topbar-user{width:100%;justify-content:flex-start}
  .agenda-grid-head{display:none}
  .agenda-grid-row{grid-template-columns:1fr}
  .war-shell{grid-template-columns:1fr}
}
