@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700;800;900&display=swap');
/* Internal messaging */
.messaging-page { max-width: 1540px; }
.messaging-header { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.messaging-header h1 { margin:4px 0 7px; font:800 clamp(28px,4vw,38px) var(--app-font-heading); color:#14213d; }
.messaging-header p { margin:0; color:#69788e; }
.messaging-compose { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:0 18px; border:0; border-radius:8px; background:#24499a; color:#fff; font-weight:700; box-shadow:0 5px 13px rgba(36,73,154,.18); }
.messaging-compose:hover { background:#193c87; }
.messaging-compose:disabled { opacity:.55; cursor:not-allowed; }
.messaging-shell { display:grid; grid-template-columns:230px minmax(340px, .85fr) minmax(430px, 1.3fr); min-height:650px; overflow:hidden; border:1px solid #dce4ef; border-radius:14px; background:#fff; box-shadow:0 9px 30px rgba(20,40,73,.08); }
.messaging-sidebar { padding:20px 12px; border-right:1px solid #e6ebf2; background:#f7f9fc; }
.messaging-sidebar nav { display:grid; gap:3px; }
.message-folder { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:42px; padding:8px 12px; border:0; border-radius:8px; background:transparent; color:#536278; font-size:13px; text-align:left; }
.message-folder:hover { background:#edf2fa; color:#244575; }
.message-folder.active { background:#244575; color:#fff; font-weight:700; box-shadow:0 4px 12px rgba(25,55,100,.14); }
.message-folder b { display:grid; place-items:center; min-width:22px; height:22px; padding:0 6px; border-radius:12px; background:#e6ecf5; color:#40516a; font-size:10px; }
.message-folder.active b { background:rgba(255,255,255,.18); color:#fff; }
.custom-folder-title { display:flex; align-items:center; justify-content:space-between; margin:21px 9px 8px; color:#8490a2; font-size:10px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.custom-folder-title button,.folder-more { border:0; background:transparent; color:#6b7a90; font-weight:800; }
.custom-folder-title button { width:28px; height:28px; border-radius:6px; font-size:18px; }
.custom-folder-title button:hover,.folder-more:hover { background:#e2e8f2; color:#244575; }
.custom-folder-row { display:grid; grid-template-columns:1fr 30px; align-items:center; }
.folder-more { height:30px; border-radius:6px; letter-spacing:-1px; }
.messaging-content { min-width:0; border-right:1px solid #e6ebf2; }
.messaging-list-head { display:flex; align-items:center; justify-content:space-between; min-height:80px; padding:16px 19px; border-bottom:1px solid #e8edf4; }
.messaging-list-head h2 { margin:0 0 4px; color:#172b4b; font:700 17px var(--app-font-heading); }
.messaging-list-head span { color:#8190a4; font-size:11px; }
.messaging-list-head button { display:grid; place-items:center; width:34px; height:34px; border:1px solid #dbe3ee; border-radius:8px; background:#fff; color:#526985; font-size:18px; }
.message-list { max-height:calc(100vh - 210px); min-height:568px; overflow:auto; }
.message-row { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:11px; width:100%; padding:16px 15px; border:0; border-bottom:1px solid #edf0f5; background:#fff; color:#536278; text-align:left; transition:background .15s ease; }
.message-row:hover { background:#f7f9fc; }
.message-row.unread { background:#f0f5ff; box-shadow:inset 3px 0 #2d5ec1; }
.message-row-icon { display:grid; place-items:center; width:38px; height:38px; border-radius:10px; background:#e9eef7; color:#244575; font-size:13px; font-weight:800; }
.message-row.unread .message-row-icon { background:#24499a; color:#fff; }
.message-row-copy { min-width:0; }
.message-row-copy > span { display:flex; align-items:center; gap:7px; }
.message-row-copy strong { overflow:hidden; color:#20314c; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.message-row-copy i { color:#e1a900; font-style:normal; font-size:11px; }
.message-row-copy small { display:block; margin:4px 0; overflow:hidden; color:#728196; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.message-row-copy p { margin:0; overflow:hidden; color:#8793a4; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.message-row time { padding-top:2px; color:#919daf; font-size:9px; white-space:nowrap; }
.messaging-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:320px; padding:30px; color:#8996a8; text-align:center; }
.messaging-empty strong { margin-bottom:7px; color:#516177; font-size:16px; }
.messaging-detail { min-width:0; max-height:calc(100vh - 150px); overflow:auto; background:#fbfcfe; }
.message-detail-head { display:flex; gap:13px; min-height:80px; padding:16px 20px; border-bottom:1px solid #e8edf4; background:#fff; }
.message-detail-head .detail-back { display:none; align-self:flex-start; padding:5px; border:0; background:transparent; color:#244575; font-size:20px; }
.message-detail-head span { color:#2d5ab1; font-size:9px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.message-detail-head h2 { margin:3px 0 4px; color:#182a45; font:700 18px var(--app-font-heading); overflow-wrap:anywhere; }
.message-detail-head small { color:#7d8a9c; font-size:11px; }
.message-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:10px 16px; border-bottom:1px solid #e4e9f1; background:#f3f6fa; }
.message-toolbar button,.message-toolbar label { display:inline-flex; align-items:center; gap:6px; min-height:31px; padding:0 9px; border:1px solid #d8e0eb; border-radius:6px; background:#fff; color:#4a5c74; font-size:10px; font-weight:600; }
.message-toolbar button:hover { border-color:#9aacbe; color:#244575; }
.message-toolbar button.danger { margin-left:auto; color:#b83245; }
.message-toolbar select { max-width:100px; border:0; background:transparent; color:inherit; font-size:10px; }
.conversation-posts { display:flex; flex-direction:column; gap:13px; padding:20px; }
.conversation-post { width:88%; padding:14px 16px; border:1px solid #e0e6ee; border-radius:4px 13px 13px 13px; background:#fff; box-shadow:0 2px 7px rgba(20,40,70,.04); }
.conversation-post.mine { align-self:flex-end; border-color:#d1dcf2; border-radius:13px 4px 13px 13px; background:#edf3ff; }
.conversation-post header { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:8px; }
.conversation-post header strong { color:#213a64; font-size:12px; }
.conversation-post header span { color:#8b97a7; font-size:9px; text-align:right; }
.conversation-post p,.system-message-body p { margin:0; color:#4e5d71; font-size:13px; line-height:1.65; overflow-wrap:anywhere; }
.reply-form { display:flex; gap:9px; padding:15px 20px 20px; border-top:1px solid #e3e8ef; background:#fff; }
.reply-form textarea { flex:1; resize:vertical; padding:11px 13px; border:1px solid #ccd6e3; border-radius:8px; color:#344258; }
.reply-form textarea:focus { outline:2px solid rgba(36,73,154,.15); border-color:#6080bc; }
.reply-form .messaging-compose { align-self:flex-end; }
.conversation-closed { margin:16px 20px; padding:12px; border-radius:7px; background:#fff5dd; color:#806421; font-size:12px; text-align:center; }
.system-message-body { margin:24px; padding:25px; border:1px solid #dce3ec; border-radius:10px; background:#fff; }
.system-seal { display:grid; place-items:center; width:46px; height:46px; margin-bottom:18px; border-radius:50%; background:#193a69; color:#fff; font:800 13px var(--app-font-heading); box-shadow:0 0 0 4px #e6ecf4; }
.messaging-modal { width:min(94vw,680px); }
.messaging-modal textarea { width:100%; resize:vertical; }
.recipient-picker { display:grid; grid-template-columns:1fr 1fr; max-height:180px; margin-top:8px; overflow:auto; border:1px solid #dfe5ed; border-radius:7px; }
.recipient-picker label { display:flex; align-items:center; gap:9px; padding:9px 11px; border-bottom:1px solid #edf0f4; cursor:pointer; }
.recipient-picker label:hover { background:#f5f8fc; }
.recipient-picker label span { display:flex; min-width:0; flex-direction:column; }
.recipient-picker strong { color:#32445e; font-size:12px; }
.recipient-picker small { color:#8290a1; font-size:9px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.recipient-picker > p { grid-column:1/-1; padding:14px; color:#7d899a; font-size:12px; text-align:center; }

@media (max-width: 1180px) {
  .messaging-shell { grid-template-columns:205px minmax(300px,1fr) minmax(390px,1.15fr); }
  .message-toolbar button { font-size:0; }
  .message-toolbar button::first-letter { font-size:12px; }
}
@media (max-width: 900px) {
  .messaging-shell { grid-template-columns:190px 1fr; }
  .messaging-detail { position:absolute; z-index:5; inset:0; max-height:none; }
  .messaging-shell { position:relative; }
  .message-detail-head .detail-back { display:block; }
  .messaging-content.detail-open { visibility:hidden; }
}
@media (max-width: 620px) {
  .messaging-page { padding:18px 13px; }
  .messaging-header { align-items:stretch; flex-direction:column; }
  .messaging-header p { font-size:13px; }
  .messaging-shell { display:block; min-height:0; }
  .messaging-sidebar { border:0; border-bottom:1px solid #e4e9f0; overflow-x:auto; padding:9px; }
  .messaging-sidebar nav { display:flex; min-width:max-content; }
  .message-folder { width:auto; }
  .custom-folder-title { margin:0 3px 0 10px; }
  .custom-folder-title span,.folder-more { display:none; }
  #custom-folders { display:flex; }
  .custom-folder-row { display:flex; }
  .message-list { min-height:480px; max-height:none; }
  .messaging-detail { position:fixed; z-index:90; inset:0; max-height:none; padding-bottom:env(safe-area-inset-bottom); }
  .recipient-picker { grid-template-columns:1fr; }
  .reply-form { align-items:stretch; flex-direction:column; }
}
:root {
  --background: 210 33% 98%;
  --foreground: 222 47% 11%;
  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 224 64% 33%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --primary: 224 64% 33%;
  --primary-foreground: 0 0% 100%;
  --secondary: 222 47% 95%;
  --secondary-foreground: 222 47% 11%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  
  --sidebar: 217 38% 17%;
  --sidebar-foreground: 210 40% 98%;

  --app-font-sans: 'Inter', sans-serif;
  --app-font-heading: 'Montserrat', sans-serif;
  --radius: 0.5rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 20px 40px -10px rgba(0,0,0,0.1), 0 10px 20px -5px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--app-font-sans);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Public help and interactive tools */
.public-tool-page { max-width: 1180px; }
.tool-search { margin: 0 0 22px; padding: 18px; border: 1px solid #dce4ef; border-radius: 12px; background: #fff; }
.tool-search label { display: block; margin-bottom: 8px; color: #283f63; font-weight: 700; }
.tool-search input { width: 100%; padding: 12px 14px; border: 1px solid #cdd8e6; border-radius: 8px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid #dce4ef; border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }
.faq-item summary { padding: 17px 20px; color: #20395f; font-weight: 700; cursor: pointer; }
.faq-item p { margin: 0; padding: 0 20px 19px; color: #5d6c80; line-height: 1.65; }
.tool-empty { padding: 28px; color: #718096; text-align: center; }
.tutorial-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tutorial-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px; border: 1px solid #dce4ef; border-radius: 12px; background: #fff; }
.tutorial-steps li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #244575; color: #fff; font-weight: 800; }
.tutorial-steps h2 { margin: 0 0 8px; color: #1d3557; font: 700 18px var(--app-font-heading); }
.tutorial-steps p { margin: 0 0 12px; color: #66758a; line-height: 1.6; }
.tutorial-steps a { color: #2458a6; font-weight: 700; }
.tool-callout { margin-top: 22px; }
.quiz-card { max-width: 760px; margin: 0 auto; }
.quiz-progress { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; color: #536681; font-weight: 700; }
.quiz-progress progress { flex: 1; accent-color: #244575; }
.quiz-question { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.quiz-question legend { margin-bottom: 18px; color: #182e50; font: 700 21px/1.4 var(--app-font-heading); }
.quiz-question label { display: flex; gap: 10px; padding: 14px; border: 1px solid #d9e1ec; border-radius: 9px; cursor: pointer; }
.quiz-question label:has(input:checked) { border-color: #315b9f; background: #f0f5ff; }
.quiz-actions { display: flex; gap: 10px; margin-top: 22px; }
.tool-checklist { padding-left: 20px; color: #56667d; line-height: 1.8; }
.xml-card { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 18px; }
.xml-card code { display: inline-block; padding: 9px 12px; border-radius: 6px; background: #eef2f7; color: #244575; }
.xml-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.xml-fields { display: grid; gap: 0; }
.xml-fields div { display: grid; grid-template-columns: 160px 1fr; padding: 12px 0; border-bottom: 1px solid #edf0f4; }
.xml-fields dt { color: #244575; font-weight: 800; }
.xml-fields dd { margin: 0; color: #68778b; }
.submission-history,.submission-manager { margin-top: 22px; }
.submission-history > header,.submission-manager > header { margin-bottom: 16px; }
.submission-item { padding: 18px 0; border-bottom: 1px solid #e6ebf2; }
.submission-item:last-child { border-bottom: 0; }
.submission-item > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.submission-item > header div { display: grid; gap: 4px; }
.submission-item > header strong { color: #20395f; }
.submission-item small,.submission-empty { color: #718096; }
.submission-item > p { color: #536278; line-height: 1.6; white-space: pre-wrap; }
.submission-item dl { display: grid; gap: 7px; color: #536278; }
.submission-item dl div { display: grid; grid-template-columns: 110px 1fr; }
.submission-item dt { font-weight: 700; }
.submission-item dd { margin: 0; }
.submission-note { padding: 12px; border-radius: 7px; background: #f0f5ff; color: #294a7d; }
.submission-note p { margin: 5px 0 0; white-space: pre-wrap; }
.submission-item form { display: grid; grid-template-columns: minmax(150px,.35fr) 1fr auto; gap: 8px; margin-top: 14px; }
.submission-item form select,.submission-item form input { min-width: 0; padding: 9px 10px; border: 1px solid #ccd7e5; border-radius: 7px; }
@media (max-width: 620px) {
  .tutorial-steps li { grid-template-columns: 1fr; }
  .xml-card { align-items: stretch; flex-direction: column; }
  .xml-fields div { grid-template-columns: 1fr; gap: 4px; }
  .submission-item form { grid-template-columns: 1fr; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: rise-in .65s cubic-bezier(.2,.7,.2,1) both; }
.reveal-2 { animation-delay: .08s; }
.reveal-3 { animation-delay: .16s; }
.reveal-4 { animation-delay: .24s; }

.display { font-family: var(--app-font-heading); font-weight: 800; }
.heading { font-family: var(--app-font-heading); font-weight: 700; }

.page-shell { min-height: 100dvh; display: flex; }
.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 280px;
  display: flex;
  flex-direction: column;
  background: hsl(var(--sidebar));
  color: hsl(var(--sidebar-foreground));
}
.rail-mark { 
  position: relative;
  display: flex; 
  align-items: center; 
  justify-content: center;
  height: 110px;
  background-image: linear-gradient(to bottom, rgba(13, 23, 46, 0.4), rgba(13, 23, 46, 0.9)), url('/sidebar-header.jpg');
  background-size: cover;
  background-position: center;
}
.rail-mark-title { 
  font-family: var(--app-font-heading); 
  font-weight: 900; 
  font-size: 22px; 
  letter-spacing: -0.04em; 
  color: white;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.rail-mark-title .highlight {
  font-weight: 400;
  font-size: 16px;
}
.rail-mark-flag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  display: flex;
}
.rail-mark-flag > div { flex: 1; }
.flag-blue { background-color: #002395; }
.flag-white { background-color: #FFFFFF; }
.flag-red { background-color: #ED2939; }

.rail-nav { display: flex; flex-direction: column; padding: 24px 16px; overflow-y: auto; }
.rail-nav-section { display: flex; flex-direction: column; gap: 4px; }
.rail-divider { border: 0; height: 1px; background: rgba(255, 255, 255, 0.08); margin: 12px 0; width: 100%; }

.rail-link {
  display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 8px 16px;
  color: #a4b4c7; border-radius: 8px; font-size: 14.5px; font-weight: 500;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none; background: transparent; border: none; width: 100%; text-align: left;
  cursor: pointer; line-height: 1.25;
}
.rail-link:hover { color: white; background: rgba(255,255,255,0.06); }
.rail-link.active { color: white; background: #2D4263; font-weight: 600; }

.rail-link span:not(.ui-icon) { flex: 1; }

.ui-icon { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; }
.ui-icon svg { width: 100%; height: 100%; }

.game-menu-chevron { transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0.6; display: flex; align-items: center; }
.game-menu-trigger:hover .game-menu-chevron { opacity: 1; }
.game-menu-trigger.open .game-menu-chevron { transform: rotate(90deg); }

.game-menu { display: flex; flex-direction: column; }
.game-submenu { 
  display: flex; flex-direction: column; gap: 2px; margin: 4px 0 8px 24px; padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  animation: slide-down .3s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: top;
}
@keyframes slide-down {
  from { opacity: 0; transform: scaleY(0.95); }
  to { opacity: 1; transform: scaleY(1); }
}

.game-submenu-link { 
  display: flex; flex-direction: column; padding: 8px 12px; border-radius: 6px; 
  color: #92a4ba; font-size: 13.5px; transition: all .2s ease; 
}
.game-submenu-link small { font-size: 10px; opacity: 0.8; margin-top: 2px; }
.game-submenu-link:hover { color: white; background: rgba(255,255,255,0.05); }
.game-submenu-link.active { color: white; font-weight: 600; background: rgba(255,255,255,0.1); }

.school-submenu-title { display: block; padding: 12px 12px 4px; color: #7c8ba0; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.category-menu-trigger { width: 100%; border: 0; text-align: left; background: transparent; }
.category-menu-trigger span:nth-child(2) { flex: 1; }
.rail-meta { margin-top: auto; padding: 20px; color: rgba(255,255,255,0.5); font-size: 12px; line-height: 1.5; text-align: center; }

.main-column { width: calc(100% - 280px); margin-left: 280px; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { 
  height: 64px; 
  display: flex; 
  align-items: center; 
  justify-content: flex-end; 
  padding: 0 clamp(24px, 4vw, 48px); 
  background: white; 
  position: sticky; 
  top: 0; 
  z-index: 10; 
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.topbar-actions { display: flex; align-items: center; gap: 16px; }
.topbar-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  color: hsl(var(--primary));
  font-weight: 600;
  font-size: 14px;
}

.mobile-menu { display:none; border:0; background:transparent; color:hsl(var(--foreground)); margin-right: auto; }
.account-menu { position: relative; }
.topbar-messages {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  color: #244575;
  background: #fff;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.topbar-messages:hover { color: #fff; background: #24499a; border-color: #24499a; transform: translateY(-1px); }
.topbar-messages .ui-icon { width: 18px; height: 18px; }
.topbar-message-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #df2539;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(173, 25, 45, .3);
}
.topbar-profile {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.account-menu-chevron { width: 14px; height: 14px; margin-left: 2px; transition: transform .2s ease; }
.topbar-profile[aria-expanded="true"] .account-menu-chevron { transform: rotate(90deg); }
.account-dropdown {
  position: absolute;
  z-index: 80;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  overflow: hidden;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #fff;
  color: #17233a;
  box-shadow: 0 18px 48px rgba(15, 31, 55, .2);
  animation: account-menu-in .16s ease-out;
}
.account-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  border-top: 1px solid #dce3ee;
  border-left: 1px solid #dce3ee;
  background: #fff;
  transform: rotate(45deg);
}
.account-dropdown-head { padding: 16px 18px 13px; border-bottom: 1px solid #edf1f6; }
.account-dropdown-head span { display: block; color: #718096; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.account-dropdown-head strong { display: block; margin-top: 4px; font-size: 15px; }
.account-dropdown nav { display: grid; padding: 7px; }
.account-dropdown nav a,
.account-logout {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #344258;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.account-dropdown nav a:hover { background: #eef3fb; color: #173f86; transform: translateX(2px); }
.account-dropdown .ui-icon { width: 17px; height: 17px; color: #60718b; }
.account-notification-dot { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #e12b3d; box-shadow: 0 0 0 3px #fde9ec; }
.account-logout { border-top: 1px solid #edf1f6; border-radius: 0; padding: 12px 18px; color: #bd2638; }
.account-logout:hover { background: #fff2f3; }
@keyframes account-menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.page-content { flex: 1; display: flex; flex-direction: column; padding: clamp(24px, 4vw, 48px); max-width: 1400px; margin: 0 auto; width: 100%; }

/* Homepage Specific (Split Panel) */
.gateway-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 20px 0;
}
.gateway-panel {
  display: flex;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  width: 100%;
  max-width: 1100px;
  min-height: 600px;
}
.gateway-visual {
  flex: 1;
  background-color: #F8FAFC;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid hsl(var(--border));
}
.gateway-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.gateway-form {
  flex: 1;
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
}

.gateway-form-header {
  text-align: center;
  margin-bottom: 32px;
}
.gateway-form-header h1 {
  font-family: var(--app-font-heading);
  font-weight: 700;
  font-size: 24px;
  color: hsl(var(--foreground));
  margin: 0;
}
.gateway-form-header .flag-divider {
  display: flex;
  width: 60px;
  height: 3px;
  margin: 16px auto 0;
}

.gateway-field {
  margin-bottom: 20px;
}
.gateway-field .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.gateway-field .input-icon {
  position: absolute;
  left: 16px;
  color: hsl(var(--muted-foreground));
}
.gateway-field input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 48px;
  border: 1px solid hsl(var(--border));
  border-radius: 24px;
  font-size: 14px;
  color: hsl(var(--foreground));
  background: white;
  transition: all 0.2s;
}
.gateway-field input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.gateway-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
  color: hsl(var(--muted-foreground));
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: hsl(var(--primary));
  color: white;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover {
  background: hsl(224 64% 28%);
  transform: translateY(-1px);
}
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: #3B5998; /* Facebookish blue for alternative */
  color: white;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: background 0.2s, transform 0.1s;
  margin-top: 12px;
}
.btn-secondary:hover {
  background: #2d4373;
  transform: translateY(-1px);
}

.gateway-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  margin: 24px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gateway-divider::before, .gateway-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid hsl(var(--border));
}
.gateway-divider::before { margin-right: 12px; }
.gateway-divider::after { margin-left: 12px; }

.gateway-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gateway-footer a {
  color: hsl(var(--primary));
  font-weight: 500;
}
.gateway-footer a:hover {
  text-decoration: underline;
}

.gateway-motto {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: hsl(var(--sidebar));
  font-family: var(--app-font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.gateway-motto .line {
  width: 32px;
  height: 1px;
  background: hsl(var(--border));
}

/* Secondary Pages Styling */
.page-header { margin-bottom: 40px; }
.page-header h1 { font-family: var(--app-font-heading); font-size: 32px; font-weight: 700; color: hsl(var(--foreground)); margin: 0 0 8px; }
.page-header p { color: hsl(var(--muted-foreground)); font-size: 16px; max-width: 600px; margin: 0; }

.content-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 32px;
  border: 1px solid hsl(var(--border));
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

/* Guestbook */
.guestbook-page { max-width: 1500px; }
.guestbook-panel { overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 12px; background: white; box-shadow: var(--shadow-md); }
.guestbook-titlebar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; color: white; background: #18355f; font: 700 15px var(--app-font-heading); }
.guestbook-body { padding: 22px; }
.guestbook-intro { margin: 0 0 18px; color: #697789; font-size: 14px; line-height: 1.6; }
.guestbook-intro strong { color: #24499a; }
.guestbook-add { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 15px; border: 0; border-radius: 6px; color: white; background: #3568cf; font-weight: 700; }
.guestbook-add:hover { background: #2856b6; }
.guestbook-add:disabled { opacity: .55; cursor: not-allowed; }
.guestbook-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 10px; color: #7b8796; font-size: 12px; }
.guestbook-tools label { display: flex; align-items: center; gap: 8px; }
.guestbook-tools input { width: 190px; padding: 7px 9px; border: 1px solid hsl(var(--border)); border-radius: 5px; }
.guestbook-table-wrap { overflow-x: auto; border: 1px solid hsl(var(--border)); }
.guestbook-table { width: 100%; border-collapse: collapse; min-width: 650px; font-size: 13px; }
.guestbook-table th { padding: 12px 14px; color: white; background: #18355f; text-align: left; font-weight: 700; }
.guestbook-table th:first-child { width: 140px; }
.guestbook-table th:nth-child(2) { width: 170px; }
.guestbook-table td { padding: 12px 14px; color: #667487; border-top: 1px solid #e7ebf0; }
.guestbook-table tbody tr:nth-child(odd) { background: #f5f7fa; }
.rating-stars { color: #f0b429; letter-spacing: 2px; white-space: nowrap; }
.rating-stars i { color: #d8dee7; font-style: normal; }
.guestbook-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; color: #7b8796; font-size: 12px; }
.pagination { display: flex; }
.pagination button { min-width: 34px; height: 34px; border: 1px solid hsl(var(--border)); color: #667487; background: white; }
.pagination button.active { color: white; background: #3568cf; border-color: #3568cf; }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }
.guestbook-modal h2 { margin: 0; color: #46566d; font-size: 21px; font-weight: 500; }
.guestbook-guidance { margin: 0 0 22px; color: #6b7788; font-size: 14px; line-height: 1.65; }
.rating-picker { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; color: #687588; }
.rating-picker > div { display: flex; }
.rating-picker button { padding: 1px 2px; border: 0; color: #d6dce5; background: transparent; font-size: 24px; }
.rating-picker button.selected { color: #f0b429; }
.rating-picker strong { color: #34445a; font-size: 14px; }
.guestbook-modal textarea { min-height: 120px; }
.guestbook-modal .form-field small { display: block; margin-top: 7px; color: hsl(var(--muted-foreground)); font-size: 12px; text-align: right; }

/* Piloris */
.pillory-page { max-width: 1600px; }
.pillory-panel { overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 12px; background: white; box-shadow: var(--shadow-md); }
.pillory-titlebar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; color: white; background: #18355f; font: 700 15px var(--app-font-heading); }
.pillory-body { padding: 22px; }
.pillory-intro { margin: 0 0 14px; color: #697789; font-size: 14px; }
.pillory-table-wrap { overflow-x: auto; border: 1px solid hsl(var(--border)); }
.pillory-table { width: 100%; min-width: 1050px; border-collapse: collapse; font-size: 12px; }
.pillory-table th { padding: 12px 11px; color: white; background: #18355f; text-align: left; white-space: nowrap; }
.pillory-table th:first-child { width: 65px; }
.pillory-table th:nth-child(2) { width: 170px; }
.pillory-table th:nth-child(3), .pillory-table th:nth-child(5) { width: 145px; }
.pillory-table th:nth-child(6) { width: 125px; }
.pillory-table th:last-child { width: 145px; }
.pillory-table td { padding: 13px 11px; color: #687588; border-top: 1px solid #e2e7ed; vertical-align: top; line-height: 1.5; }
.pillory-table tbody tr:nth-child(odd) { background: #f3f5f8; }
.pillory-table td strong { color: #34445a; }
.pillory-table td a { color: #3568cf; font-weight: 600; }
.pillory-empty { padding: 40px !important; text-align: center; }

/* Règlement */
.regulation-page { max-width: 1450px; }
.regulation-hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; padding: 30px 34px; border-radius: 14px; color: white; background: linear-gradient(125deg, #122b50, #24499a); box-shadow: var(--shadow-md); }
.regulation-hero .section-kicker { color: #a9c6ff; }
.regulation-hero h1 { margin: 5px 0 8px; font: 800 34px var(--app-font-heading); }
.regulation-hero p { margin: 0; color: #d8e3f6; }
.regulation-hero time { color: #d8e3f6; font-size: 12px; white-space: nowrap; }
.regulation-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.regulation-summary { position: sticky; top: 84px; overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 12px; background: white; box-shadow: var(--shadow-sm); }
.regulation-summary > strong { display: block; padding: 15px 18px; color: white; background: #18355f; font-family: var(--app-font-heading); }
.regulation-summary nav { display: grid; max-height: calc(100vh - 180px); overflow-y: auto; padding: 10px; }
.regulation-summary a { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 6px; color: #58677b; font-size: 12px; line-height: 1.25; }
.regulation-summary a:hover { color: #24499a; background: #edf2fb; }
.regulation-summary a span { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px; color: #24499a; background: #e8eef9; font-weight: 800; font-size: 10px; }
.regulation-document { padding: 34px; border: 1px solid hsl(var(--border)); border-radius: 12px; background: white; box-shadow: var(--shadow-sm); }
.regulation-notice { margin-bottom: 10px; padding: 16px 18px; border-left: 4px solid #ed2939; border-radius: 7px; color: #526176; background: #fff5f5; font-size: 13px; line-height: 1.55; }
.regulation-document > section { display: grid; grid-template-columns: 48px 1fr; gap: 17px; padding: 28px 0; border-bottom: 1px solid #e8ecf1; scroll-margin-top: 80px; }
.regulation-number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: white; background: #24499a; font: 800 13px var(--app-font-heading); }
.regulation-document h2 { margin: 0 0 12px; color: #172b49; font: 750 20px var(--app-font-heading); }
.regulation-document p { position: relative; margin: 9px 0; padding-left: 15px; color: #5e6d80; font-size: 13px; line-height: 1.75; }
.regulation-document p::before { content: ''; position: absolute; top: 9px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #8aa5d5; }
.regulation-footer { display: flex; align-items: center; gap: 13px; margin-top: 28px; padding: 18px; border-radius: 10px; color: white; background: #18355f; }
.regulation-footer > svg { flex: 0 0 auto; }
.regulation-footer div { display: grid; flex: 1; font-size: 13px; }
.regulation-footer span { color: #cbd8ea; font-size: 11px; }
.regulation-footer a { padding: 9px 13px; border-radius: 7px; color: #18355f; background: white; font-size: 11px; font-weight: 800; }

/* Contact & Wiki */
.wiki-card { background: white; border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 24px; transition: transform 0.2s, box-shadow 0.2s; }
.wiki-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: hsl(var(--primary)); }
.wiki-card-icon { color: hsl(var(--primary)); margin-bottom: 16px; }
.wiki-card h2 { font-family: var(--app-font-heading); font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.wiki-card p { color: hsl(var(--muted-foreground)); font-size: 14px; line-height: 1.5; margin: 0; }
.info-page-card { max-width: 720px; text-align: center; }
.info-page-card > svg { color: hsl(var(--primary)); }
.development-badge { display: inline-flex; margin-top: 16px; padding: 6px 11px; border-radius: 999px; color: #9b4e00; background: #fff0d9; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.info-page-card h2 { margin: 16px 0 8px; font-size: 20px; }
.info-page-card p { margin: 0; color: hsl(var(--muted-foreground)); line-height: 1.6; }
.version-page { max-width: 1500px; }
.version-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.version-document, .version-summary { border: 1px solid hsl(var(--border)); border-radius: 12px; background: white; box-shadow: var(--shadow-sm); }
.version-document { padding: 30px 34px 38px; }
.version-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; color: hsl(var(--muted-foreground)); font-size: 13px; }
.version-toolbar select { min-width: 90px; padding: 8px 30px 8px 12px; border: 1px solid hsl(var(--border)); border-radius: 7px; color: hsl(var(--foreground)); background: white; }
.version-header { padding-bottom: 22px; border-bottom: 1px solid hsl(var(--border)); }
.version-header h1 { margin: 6px 0 7px; font: 800 30px var(--app-font-heading); }
.version-header time { color: hsl(var(--muted-foreground)); font-size: 13px; }
.version-document section { padding-top: 25px; scroll-margin-top: 90px; }
.version-document section h2 { margin: 0 0 13px; font: 700 18px var(--app-font-heading); color: #18355f; }
.version-document ul { margin: 0; padding-left: 21px; color: #526176; font-size: 14px; line-height: 1.75; }
.version-document li::marker { color: #24499a; }
.version-summary { position: sticky; top: 88px; overflow: hidden; }
.version-summary-title { padding: 14px 18px; color: white; background: #18355f; font-family: var(--app-font-heading); font-size: 14px; font-weight: 700; }
.version-summary nav { display: grid; padding: 14px 16px 18px; }
.version-summary a { position: relative; padding: 8px 8px 8px 17px; color: #526176; font-size: 13px; }
.version-summary a::before { content: ''; position: absolute; top: 14px; left: 3px; width: 5px; height: 5px; border-radius: 50%; background: #24499a; }
.version-summary a:hover { color: #24499a; }
.changelog-list { display: grid; gap: 8px; }
.changelog-entry { display: grid; grid-template-columns: 94px 1fr; gap: 12px; align-items: start; padding: 10px 12px; border-radius: 7px; background: #f7f9fc; color: #526176; font-size: 13px; line-height: 1.5; }
.changelog-entry time { color: #24499a; font-weight: 700; }

.contact-item { display: flex; gap: 16px; padding: 24px; background: white; border: 1px solid hsl(var(--border)); border-radius: 12px; margin-bottom: 16px; align-items: center; }
.contact-icon { width: 48px; height: 48px; border-radius: 12px; background: hsl(222 47% 95%); color: hsl(var(--primary)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info strong { display: block; font-family: var(--app-font-heading); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.contact-info span { color: hsl(var(--muted-foreground)); font-size: 14px; }

/* Forms */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 500; font-size: 13px; color: hsl(var(--foreground)); margin-bottom: 8px; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 12px 16px; font-size: 14px; transition: border-color 0.2s; }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1); }
.form-submit { margin-top: 24px; }
.form-message { padding: 16px; border-radius: 8px; font-size: 14px; margin-top: 16px; background: hsl(142 71% 45% / 0.1); color: hsl(142 76% 25%); border: 1px solid hsl(142 71% 45% / 0.2); }
.form-message.error { background: hsl(0 84% 60% / 0.1); color: hsl(0 84% 40%); border-color: hsl(0 84% 60% / 0.2); }
.token-page { align-items: center; justify-content: center; }
.token-card { width: 100%; max-width: 520px; text-align: center; }
.token-card > svg { color: hsl(var(--primary)); margin-bottom: 16px; }
.token-card h1 { font-size: 24px; margin: 0 0 28px; }
.token-card .form-field { text-align: left; }
.member-page { justify-content: center; }
.member-card { display: flex; align-items: center; gap: 20px; }
.member-avatar { width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; color: white; background: hsl(var(--primary)); }
.member-details { display: grid; gap: 5px; min-width: 0; flex: 1; }
.member-details span, .member-details small { color: hsl(var(--muted-foreground)); }
.member-details strong { overflow-wrap: anywhere; }
.btn-outline { min-height: 44px; padding: 0 20px; border: 1px solid hsl(var(--primary)); border-radius: 22px; color: hsl(var(--primary)); background: white; font-weight: 600; }
.btn-outline:hover { background: hsl(var(--secondary)); }
.characters-section { margin-top: 28px; padding: 30px; border: 1px solid hsl(var(--border)); border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }
.characters-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.characters-heading h2 { margin: 4px 0 0; font-size: 24px; }
.section-kicker { color: #2852a4; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.btn-new-character { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 24px; background: #20bd8a; color: white; font-weight: 700; box-shadow: 0 8px 18px rgba(32,189,138,.2); }
.btn-new-character:hover { background: #18a97a; transform: translateY(-1px); }
.btn-new-character:disabled { opacity: .65; cursor: wait; transform: none; }
.characters-empty { display: grid; justify-items: center; padding: 52px 24px; border: 1px dashed hsl(var(--border)); border-radius: 14px; text-align: center; background: #f8fafc; }
.empty-badge { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; color: hsl(var(--primary)); background: #e8eef9; }
.characters-empty h3 { margin: 0 0 8px; font: 700 18px var(--app-font-heading); }
.characters-empty p { max-width: 470px; margin: 0 0 24px; color: hsl(var(--muted-foreground)); line-height: 1.6; }
.character-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); gap: 20px; }
.character-card { overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.character-grade { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; color: white; background: linear-gradient(125deg, #18355f, #2853ad); }
.character-grade > div { display: grid; gap: 3px; min-width: 0; }
.character-grade span { color: #b9cdf0; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.character-grade strong { font: 750 19px var(--app-font-heading); }
.rank-insignia { width: 44px; height: 58px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0,0,0,.28)); }
.school-player-identity { display: inline-flex; align-items: center; gap: 9px; }
.school-player-identity .rank-insignia { width: 29px; height: 38px; }
.character-profile { display: flex; align-items: center; gap: 14px; padding: 18px 18px 14px; }
.character-card-name { min-width: 0; flex: 1; }
.character-avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 12px; color: white; background: hsl(var(--primary)); font-weight: 800; }
.character-card-name span { color: hsl(var(--muted-foreground)); font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.character-card h3 { margin: 3px 0 0; font: 700 17px var(--app-font-heading); overflow-wrap: anywhere; }
.character-information { margin: 0; border-top: 1px solid #e5e9ef; }
.character-information > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 9px 18px; border-bottom: 1px solid #e5e9ef; }
.character-information dt { color: #768397; font-size: 11px; }
.character-information dd { margin: 0; color: #31445f; font-size: 12px; font-weight: 700; text-align: right; }
.character-information .character-vitals { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.character-vitals > span { display: grid; gap: 3px; padding: 10px 18px; }
.character-vitals > span + span { border-left: 1px solid #e5e9ef; }
.character-vitals dd { text-align: left; }
.character-vitals span:first-child dd { color: #d69a17; }
.character-vitals span:last-child dd { color: #16845f; }
.character-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 16px 18px 18px; }
.btn-select-character, .btn-delete-character { min-height: 39px; padding: 8px 12px; border: 0; border-radius: 8px; color: white; font-size: 12px; font-weight: 800; }
.btn-select-character { background: #3568cf; }
.btn-select-character:hover { background: #2856b6; }
.btn-delete-character { background: #c43228; }
.btn-delete-character:hover { color: white; background: #aa281f; }
.cooldown-notice { margin: -4px 0 22px; padding: 15px 17px; border-left: 4px solid #ed2939; border-radius: 8px; color: #7a352f; background: #fff4f2; font-size: 13px; line-height: 1.6; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(8,20,42,.68); backdrop-filter: blur(4px); }
.modal-backdrop[hidden] { display: none; }
.character-modal { position: relative; width: min(100%, 520px); overflow: hidden; border-radius: 18px; background: white; box-shadow: 0 24px 70px rgba(0,0,0,.25); animation: rise-in .25s ease both; }
.character-modal > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 28px 20px; border-bottom: 1px solid hsl(var(--border)); }
.character-modal h2 { margin: 4px 0 0; font-size: 22px; }
.modal-close { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; color: hsl(var(--muted-foreground)); background: hsl(var(--muted)); }
.character-modal form { padding: 26px 28px 28px; }
.character-modal .form-field small { display: block; margin-top: 8px; color: hsl(var(--muted-foreground)); font-size: 12px; }
.character-modal footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.btn-modal-secondary { min-height: 46px; padding: 0 20px; border: 0; border-radius: 24px; color: #46566d; background: #e9edf3; font-weight: 700; }
.modal-blue-square { position: absolute; right: 10px; bottom: 10px; width: 9px; height: 9px; border-radius: 2px; background: #24499a; }
.danger-modal .section-kicker { color: #c43228; }
.danger-copy { margin: 0 0 22px; color: #5f6d80; font-size: 14px; line-height: 1.65; }
.btn-danger { min-height: 46px; padding: 0 20px; border: 0; border-radius: 24px; color: white; background: #c43228; font-weight: 700; }
.btn-danger:hover { background: #aa281f; }
.btn-danger:disabled { opacity: .65; cursor: wait; }

/* ==========================================================================
   ENP-75 COMMAND DESK (CASERNE)
   ========================================================================== */

.enp-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: clamp(16px, 3vw, 32px);
    max-width: 1600px;
}
.enp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: #0B1120;
    border-radius: 16px;
    border: 1px solid #1e293b;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: calc(100vh - 120px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.enp-sidebar {
    background: #0f172a;
    border-right: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.enp-sidebar-header {
    background: linear-gradient(to right, #002395 0%, #002395 33%, #FFFFFF 33%, #FFFFFF 66%, #ED2939 66%, #ED2939 100%);
    padding-bottom: 2px;
}
.enp-sidebar-header-inner {
    padding: 24px;
    background: #0f172a;
}
.enp-sidebar-header-inner h2 {
    margin: 0;
    color: #f8fafc;
    font-family: var(--app-font-heading);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
}
.enp-sidebar-header-inner span {
    display: block;
    margin-top: 4px;
    color: #3b82f6;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.enp-nav {
    padding: 16px 0;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
.enp-nav-group {
    margin-bottom: 24px;
}
.enp-nav-group:last-child {
    margin-bottom: 0;
}
.enp-nav-group strong {
    display: block;
    padding: 0 20px;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.enp-nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 20px 8px 48px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}
.enp-nav-link::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #475569;
    transition: all 0.2s;
}
.enp-nav-link:hover {
    background: rgba(255,255,255,0.03);
    color: #ffffff;
}
.enp-nav-link:hover::before {
    background: #94a3b8;
}
.enp-nav-link.active {
    background: rgba(37, 99, 235, 0.08);
    color: #3b82f6;
    font-weight: 600;
}
.enp-nav-link.active::before {
    background: #3b82f6;
    box-shadow: 0 0 8px #3b82f6;
}
.enp-nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #3b82f6;
}

.enp-content {
    background: #0B1120;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
    min-width: 0;
    max-width: 100%;
}
.enp-header {
    padding: 32px 40px;
    border-bottom: 1px solid #1e293b;
    background: #0B1120;
    position: sticky;
    top: 0;
    z-index: 10;
}
.enp-header .section-kicker {
    color: #3b82f6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.enp-header h1 {
    margin: 8px 0 0;
    font-family: var(--app-font-heading);
    font-weight: 800;
    font-size: 28px;
    color: #f8fafc;
}
.enp-header p {
    margin: 8px 0 0;
    color: #94a3b8;
    font-size: 14px;
}

/* Placeholder */
.enp-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 40px;
    height: 100%;
}
.enp-placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.5);
    color: #475569;
    margin-bottom: 24px;
    border: 1px solid #1e293b;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}
.enp-placeholder h2 {
    font-family: var(--app-font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 12px;
}
.enp-placeholder p {
    color: #94a3b8;
    max-width: 480px;
    line-height: 1.6;
    margin: 0 0 40px;
    font-size: 14px;
}
.enp-status-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 400px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 24px;
}
.enp-status-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.enp-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.enp-status-dot.offline { background: #ef4444; box-shadow: 0 0 10px #ef4444; }
.enp-status-dot.online { background: #10b981; box-shadow: 0 0 10px #10b981; }
.enp-status-dot.pending { background: #f59e0b; box-shadow: 0 0 10px #f59e0b; }
.enp-status-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.enp-status-text strong {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
}
.enp-status-text span {
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}
.enp-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    color: #3b82f6;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.enp-btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

/* Management Module */
.enp-module {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.enp-module-scroll {
    padding: 32px 40px;
    min-width: 0;
    max-width: 100%;
}
.enp-module .form-message {
    margin: 0 40px 24px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}
.enp-module .form-message:not(.error) {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.enp-module .form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.enp-stats-container {
    margin-bottom: 24px;
}
.school-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.school-stat-grid article {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.school-stat-grid article strong {
    font-family: var(--app-font-heading);
    font-size: 28px;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1;
    margin-bottom: 6px;
}
.school-stat-grid article span {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.enp-module-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 24px;
    align-items: start;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}
.enp-module-main, .enp-module-side { min-width: 0; }
.enp-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
    min-width: 0;
    max-width: 100%;
}
.enp-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111827;
}
.enp-card-kicker {
    display: block;
    color: #3b82f6;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.enp-card-header h2 {
    margin: 0;
    font-family: var(--app-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
}
.enp-badge {
    background: rgba(37, 99, 235, 0.1);
    color: #3b82f6;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.enp-card-body {
    padding: 24px;
}

.enp-form-group {
    margin-bottom: 16px;
}
.enp-form-group label {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}
.enp-form-group input, .enp-form-group select, .enp-form-group textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 10px 14px;
    color: #f8fafc;
    font-size: 13px;
    transition: all 0.2s;
    font-family: inherit;
    resize: vertical;
}
.enp-form-group input::placeholder {
    color: #475569;
}
.enp-form-group input:focus, .enp-form-group select:focus, .enp-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: #0B1120;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.enp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.enp-btn-primary {
    background: #2563eb;
    color: white;
}
.enp-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}
.enp-btn-primary:active {
    transform: translateY(0);
}

/* Roster Table */
.enp-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
.enp-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}
.enp-table th {
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.5);
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #1e293b;
    white-space: nowrap;
}
.enp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #1e293b;
    color: #cbd5e1;
    vertical-align: middle;
    white-space: nowrap;
}
.enp-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.enp-table td strong {
    color: #f8fafc;
    font-weight: 600;
}
.enp-table-empty {
    text-align: center;
    padding: 40px !important;
    color: #64748b !important;
}

.school-post, .school-unit {
    width: 100%;
    min-width: 140px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 6px 10px;
    color: #e2e8f0;
    font-size: 12px;
    transition: all 0.2s;
}
.school-post:focus, .school-unit:focus {
    outline: none;
    border-color: #3b82f6;
    background: #0B1120;
}
.school-unit {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.school-action {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.05em;
}
.school-action:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}
.school-action:active {
    transform: translateY(0);
}
.school-action.secondary {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}
.school-action.secondary:hover {
    background: rgba(59, 130, 246, 0.2);
}
.school-action.leader {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.25);
}
.school-action.leader.active {
    background: rgba(168, 85, 247, 0.25);
    color: #e9d5ff;
}

.promotion-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.promotion-column {
    display: grid;
    gap: 24px;
    min-width: 0;
}
.promotion-review-list, .promotion-history, .promotion-inbox {
    display: grid;
    gap: 12px;
}
.promotion-review-card, .promotion-history-item {
    padding: 16px;
    border: 1px solid #1e293b;
    border-radius: 10px;
    background: rgba(15, 23, 42, .55);
    color: #cbd5e1;
}
.promotion-review-card > header, .promotion-history-item > header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}
.promotion-review-card header div, .promotion-review-card header strong,
.promotion-history-item header strong {
    display: block;
}
.promotion-review-card header span, .promotion-review-card > p,
.promotion-history-item small, .promotion-history-item p {
    color: #94a3b8;
    font-size: 12px;
}
.promotion-review-card header b {
    max-width: 55%;
    color: #93c5fd;
    font-size: 12px;
    text-align: right;
}
.promotion-review-card form {
    display: grid;
    grid-template-columns: 170px minmax(180px, 1fr) auto;
    gap: 10px;
    margin-top: 14px;
}
.promotion-review-card select, .promotion-review-card textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #334155;
    border-radius: 7px;
    color: #e2e8f0;
    background: #0b1120;
    font: inherit;
}
.promotion-prior-opinion, .promotion-history-item > div {
    display: grid;
    gap: 3px;
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 3px solid #3b82f6;
    background: rgba(59, 130, 246, .08);
    font-size: 12px;
}
.promotion-status {
    padding: 4px 8px;
    border-radius: 999px;
    color: #fbbf24;
    background: rgba(245, 158, 11, .12);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.promotion-status.approved { color: #34d399; background: rgba(16, 185, 129, .12); }
.promotion-status.rejected { color: #f87171; background: rgba(239, 68, 68, .12); }
.promotion-message-item {
    width: 100%;
    padding: 14px;
    border: 1px solid #1e293b;
    border-radius: 9px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, .45);
    text-align: left;
}
.promotion-message-item.unread {
    border-left: 4px solid #3b82f6;
    background: rgba(37, 99, 235, .1);
}
.promotion-message-item span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.promotion-message-item small, .promotion-message-item p {
    color: #94a3b8;
    font-size: 11px;
}
.promotion-message-item p { margin: 8px 0 0; line-height: 1.55; }
.promotion-empty {
    margin: 0;
    padding: 18px;
    color: #64748b;
    text-align: center;
}

/* Contracts */
.enp-contract-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.enp-contract-list article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #1e293b;
    border-radius: 8px;
}
.enp-contract-list article div {
    display: flex;
    flex-direction: column;
}
.enp-contract-list article strong {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 600;
}
.enp-contract-list article span {
    color: #64748b;
    font-size: 11px;
    margin-top: 2px;
}
.enp-contract-list article small {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.enp-contract-list p {
    color: #64748b;
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
    margin: 0;
}

/* Responsive ENP */
@media (max-width: 1024px) {
    .enp-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }
    .enp-module-grid {
        grid-template-columns: 1fr;
    }
    .promotion-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .enp-page {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .enp-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        min-height: auto;
    }
    .enp-sidebar {
        border-right: none;
        border-bottom: 1px solid #1e293b;
    }
    .enp-sidebar-header-inner {
        padding: 16px 20px;
    }
    .enp-nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding: 0;
        max-height: none;
        -webkit-overflow-scrolling: touch;
    }
    .enp-nav::-webkit-scrollbar {
        height: 0;
        width: 0;
    }
    .enp-nav-group {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        border-right: 1px solid #1e293b;
    }
    .enp-nav-group:last-child {
        border-right: none;
    }
    .enp-nav-group strong {
        display: none;
    }
    .enp-nav-link {
        white-space: nowrap;
        padding: 16px 20px;
        width: auto;
        border-bottom: 3px solid transparent;
        border-left: none;
    }
    .enp-nav-link::before {
        display: none;
    }
    .enp-nav-link.active {
        border-left: none;
        border-bottom: 3px solid #3b82f6;
        background: rgba(37, 99, 235, 0.1);
    }
    .enp-nav-link.active::after {
        display: none;
    }
    .school-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
    .enp-module-scroll {
        padding: 24px 20px;
        overflow: hidden;
    }
    .enp-header {
        padding: 24px 20px;
    }
    .enp-module .form-message {
        margin: 0 20px 20px;
    }
    .promotion-review-card form {
        grid-template-columns: 1fr;
    }
}

/* Operational modules: notebook, wallet, training, fleet, forum and vacancies */
.ops-page{max-width:1540px;gap:22px}.ops-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:28px 32px;border-radius:16px;color:#fff;background:linear-gradient(125deg,#122b50,#2853ad);box-shadow:0 10px 26px rgba(20,44,88,.16)}.ops-hero h1{margin:5px 0 7px;font:800 clamp(27px,3vw,36px) var(--app-font-heading)}.ops-hero p{max-width:720px;margin:0;color:#d9e6fb;line-height:1.55}.ops-hero .section-kicker{color:#abc8ff}.ops-primary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 17px;border:0;border-radius:8px;background:#3568cf;color:#fff;font-size:12px;font-weight:800;white-space:nowrap;box-shadow:0 5px 13px rgba(25,54,112,.18)}.ops-primary:hover{background:#244fa9}.ops-primary:disabled{opacity:.5;cursor:not-allowed}.ops-hero>.ops-primary{background:#fff;color:#173d82}.ops-hero-stat,.wallet-balance{min-width:165px;padding:15px 18px;border:1px solid rgba(255,255,255,.23);border-radius:12px;background:rgba(255,255,255,.09);text-align:center}.ops-hero-stat strong,.wallet-balance strong{display:block;font:800 32px var(--app-font-heading)}.ops-hero-stat span,.wallet-balance span,.wallet-balance small{display:block;color:#d6e3f7;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em}
.ops-toolbar{display:flex;align-items:center;gap:12px;padding:14px 17px;border:1px solid #dfe6ef;border-radius:12px;background:#fff;box-shadow:0 4px 16px rgba(20,42,78,.05)}.ops-toolbar>span{margin-left:auto;color:#708096;font-size:12px;font-weight:700}.ops-search{display:flex;align-items:center;gap:9px;flex:1;color:#64758d}.ops-search input{width:100%;border:0;outline:0;color:#243b5f;background:transparent}.ops-toolbar select,.ops-card select,.fleet-card select,.topic-shell select{min-height:38px;padding:7px 10px;border:1px solid #ccd6e3;border-radius:7px;background:#fff;color:#344861}.ops-card{overflow:hidden;border:1px solid #dfe6ef;border-radius:13px;background:#fff;box-shadow:0 7px 22px rgba(20,42,78,.06)}.ops-card>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:19px 21px;border-bottom:1px solid #e6ebf2}.ops-card>header h2{margin:3px 0 0;font:750 19px var(--app-font-heading)}.ops-columns{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(420px,1.25fr);gap:22px;align-items:start}.ops-form{display:grid;gap:16px;padding:22px}.ops-form label{display:grid;gap:6px;color:#53647a;font-size:12px;font-weight:700}.ops-form input,.ops-form textarea,.ops-modal select{width:100%;min-height:42px;padding:9px 11px;border:1px solid #ccd6e3;border-radius:8px}.ops-hint{margin:0;padding:11px;border-radius:7px;background:#eff4fb;color:#5c6c81;font-size:11px;line-height:1.5}.ops-loading,.ops-empty{grid-column:1/-1;display:flex;min-height:160px;align-items:center;justify-content:center;flex-direction:column;gap:6px;padding:28px;color:#8491a2;text-align:center}.ops-empty strong{color:#40526b}.ops-chip{display:inline-block;padding:5px 8px;border-radius:999px;background:#e9f0fb;color:#2852a4;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.ops-status{display:inline-flex;align-items:center;width:max-content;padding:5px 8px;border-radius:999px;background:#e4e9ef;color:#536174;font-size:9px;font-weight:900;text-transform:uppercase}.ops-status.approved,.ops-status.passed,.ops-status.open,.ops-status.available{background:#dff4e9;color:#087346}.ops-status.pending,.ops-status.inspection{background:#fff0c9;color:#886300}.ops-status.rejected,.ops-status.failed,.ops-status.closed,.ops-status.out_of_service{background:#fbe1e3;color:#a52936}.ops-status.garage,.ops-status.in_use{background:#dfeafb;color:#27569e}
.notebook-grid,.training-grid,.fleet-grid,.vacancy-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.notebook-card,.training-card,.fleet-card,.vacancy-public-card{display:flex;min-height:220px;flex-direction:column;padding:20px;border:1px solid #dfe6ef;border-radius:12px;background:#fff;box-shadow:0 5px 17px rgba(20,42,78,.05);transition:transform .17s ease,box-shadow .17s ease}.notebook-card:hover,.training-card:hover,.fleet-card:hover,.vacancy-public-card:hover{transform:translateY(-2px);box-shadow:0 10px 27px rgba(20,42,78,.1)}.notebook-card header,.training-card header,.fleet-card header,.vacancy-public-card header{display:flex;align-items:center;justify-content:space-between;gap:10px}.notebook-card header button{width:29px;height:29px;border:0;border-radius:6px;background:#edf2f8;color:#3d587d}.notebook-card .danger-link{color:#b72c39}.notebook-card h2,.training-card h2,.fleet-card h2,.vacancy-public-card h2{margin:16px 0 8px;color:#203755;font:750 18px var(--app-font-heading)}.notebook-card p,.training-card p,.fleet-card p,.vacancy-public-card>p{margin:0;color:#647388;font-size:12px;line-height:1.65}.notebook-card footer{margin-top:auto;padding-top:18px;color:#8b96a5;font-size:9px}.ops-modal{width:min(94vw,650px)}
.ledger-list{max-height:560px;overflow:auto}.ledger-row{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:12px;padding:15px 20px;border-bottom:1px solid #edf0f4}.ledger-sign{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font-size:18px;font-weight:800}.ledger-row div strong,.ledger-row div small{display:block}.ledger-row div strong{color:#344861;font-size:12px}.ledger-row div small{margin-top:4px;color:#8490a0;font-size:9px}.ledger-row>b{font-size:12px}.credit{color:#108059}.ledger-sign.credit{background:#dff5eb}.debit{color:#bd3341}.ledger-sign.debit{background:#fbe5e7}
.ops-tabs{display:flex;gap:4px;padding:5px;border:1px solid #dfe6ef;border-radius:10px;background:#fff;overflow-x:auto}.ops-tabs button{min-height:38px;padding:0 16px;border:0;border-radius:7px;background:transparent;color:#607088;font-size:12px;font-weight:750;white-space:nowrap}.ops-tabs button.active{background:#183e7f;color:#fff}.ops-tabs b{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:5px;padding:0 5px;border-radius:10px;background:#e03042;color:#fff;font-size:9px}.training-card dl,.fleet-card dl,.vacancy-public-card dl{display:grid;gap:7px;margin:16px 0}.training-card dl div,.fleet-card dl div,.vacancy-public-card dl div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid #edf0f4;font-size:10px}.training-card dd,.fleet-card dd,.vacancy-public-card dd{margin:0;color:#344861;font-weight:700;text-align:right}.training-card dt,.fleet-card dt,.vacancy-public-card dt{color:#7c8999}.training-card .ops-primary{margin-top:auto}.history-row,.manager-request{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;border-bottom:1px solid #e7ebf1}.history-row strong,.history-row small,.manager-request strong,.manager-request span{display:block}.history-row small,.manager-request span{margin-top:4px;color:#8490a0;font-size:10px}.history-row p,.manager-request p{margin:8px 0 0;color:#697789;font-size:11px}.manager-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.manager-metrics article{padding:20px;border:1px solid #dfe6ef;border-left:4px solid #2853ad;border-radius:10px;background:#fff}.manager-metrics span{display:block;color:#728097;font-size:11px}.manager-metrics strong{display:block;margin-top:6px;color:#19375f;font:800 27px var(--app-font-heading)}.manager-request>div:last-child{display:flex;align-items:center;justify-content:flex-end;gap:7px}.manager-request button{padding:7px 9px;border:1px solid #b8c6d8;border-radius:6px;background:#fff;color:#29476f;font-size:10px;font-weight:750}
.fleet-summary{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.fleet-summary span{padding:10px 12px;border:1px solid rgba(255,255,255,.2);border-radius:9px;background:rgba(255,255,255,.08);font-size:10px}.fleet-summary strong{display:block;font-size:18px}.fleet-kind{color:#627289;font-size:9px;font-weight:850;text-transform:uppercase}.fleet-card select{margin-top:auto;width:100%}.fleet-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto}.fleet-actions button{padding:7px 9px;border:1px solid #b8c6d8;border-radius:6px;background:#fff;color:#29476f;font-size:10px;font-weight:750}
.fleet-vehicle-image{width:calc(100% + 40px);height:138px;margin:-20px -20px 18px;object-fit:cover;border-radius:11px 11px 0 0;background:#dce4ef}.training-candidate-stats{display:inline-flex!important;align-items:center;gap:3px;width:max-content;margin-top:8px!important;padding:5px 8px;border-radius:6px;background:#edf3fb!important;color:#385577!important;font-size:9px!important}.training-candidate-stats b{color:#173d7b;font-size:11px}
.ops-page-actions{display:flex;justify-content:flex-end;margin:-6px 0 14px}.ops-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ops-check{display:flex!important;align-items:center;gap:9px;color:#425773;font-size:11px;font-weight:700}.ops-check input{width:auto!important;margin:0}@media(max-width:620px){.ops-form-grid{grid-template-columns:1fr}}
.forum-category-list{display:grid;gap:16px}.forum-category{overflow:hidden;border:1px solid #dfe6ef;border-radius:12px;background:#fff;box-shadow:0 5px 17px rgba(20,42,78,.05)}.forum-category>header{display:flex;justify-content:space-between;gap:16px;padding:16px 19px;color:#fff;background:#18355f}.forum-category h2{margin:0;font:750 16px var(--app-font-heading)}.forum-category header p{margin:4px 0 0;color:#c9d7e9;font-size:10px}.forum-category header>strong{display:grid;place-items:center;min-width:32px;height:32px;border:1px solid rgba(255,255,255,.3);border-radius:50%;font-size:11px}.forum-topic-row{display:grid;grid-template-columns:34px minmax(180px,1fr) 90px 150px;align-items:center;gap:13px;padding:14px 17px;border-bottom:1px solid #e7ebf1;color:#596a80}.forum-topic-row:hover{background:#f5f8fc}.forum-topic-row>span{font-size:10px}.forum-topic-row strong,.forum-topic-row small{display:block}.forum-topic-row strong{color:#26415f;font-size:12px}.forum-topic-row small{margin-top:4px;color:#8a95a4;font-size:9px}.topic-state{color:#3568cf}.forum-empty-row{padding:20px;color:#8a95a4;text-align:center;font-size:11px}.ops-back{width:max-content;padding:0;border:0;background:transparent;color:#2853ad;font-weight:750}.topic-shell>header h2{margin:7px 0 3px}.topic-shell>header p{margin:0;color:#7b8899;font-size:10px}.forum-post{display:grid;grid-template-columns:155px 1fr;border-bottom:1px solid #e5eaf0}.forum-post aside{display:flex;align-items:center;flex-direction:column;padding:23px 15px;background:#f5f7fa;text-align:center}.forum-post aside>span{display:grid;place-items:center;width:46px;height:46px;margin-bottom:9px;border-radius:12px;background:#2853ad;color:#fff;font-weight:800}.forum-post aside strong{color:#2a405e;font-size:11px}.forum-post aside small{margin-top:4px;color:#8490a0;font-size:9px}.forum-post>div{padding:20px}.forum-post>div header{display:flex;justify-content:space-between;color:#8994a3;font-size:9px}.forum-post>div p{color:#465970;font-size:13px;line-height:1.7}.forum-reply{display:grid;gap:9px;padding:20px}.forum-reply label{color:#53647a;font-size:11px;font-weight:750}.forum-reply textarea{padding:11px;border:1px solid #ccd6e3;border-radius:8px;resize:vertical}.forum-reply .ops-primary{justify-self:end}
.vacancy-deadline{margin:auto 0 15px;padding:11px 13px;border-left:3px solid #20a779;border-radius:6px;background:#eef9f5}.vacancy-deadline.closed{border-color:#bb3340;background:#fff1f2}.vacancy-deadline span,.vacancy-deadline strong{display:block}.vacancy-deadline span{color:#718096;font-size:9px;text-transform:uppercase}.vacancy-deadline strong{margin-top:4px;color:#29415f;font-size:11px}.vacancy-public-card>.ops-status{margin-top:auto}.vacancy-public-card>.ops-primary{width:100%}
@media(max-width:1050px){.notebook-grid,.training-grid,.fleet-grid,.vacancy-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-columns{grid-template-columns:1fr}.forum-topic-row{grid-template-columns:30px 1fr 75px}.forum-topic-row>span:last-child{display:none}}
@media(max-width:700px){.ops-hero{align-items:stretch;flex-direction:column;padding:23px 20px}.ops-hero-stat,.wallet-balance{min-width:0}.ops-toolbar{align-items:stretch;flex-direction:column}.ops-toolbar>span{margin-left:0}.notebook-grid,.training-grid,.fleet-grid,.vacancy-card-grid,.manager-metrics{grid-template-columns:1fr}.history-row,.manager-request{align-items:flex-start;flex-direction:column}.manager-request>div:last-child{justify-content:flex-start;flex-wrap:wrap}.forum-topic-row{grid-template-columns:26px 1fr}.forum-topic-row>span:nth-last-child(-n+2){display:none}.forum-post{grid-template-columns:1fr}.forum-post aside{align-items:center;flex-direction:row;gap:10px;padding:13px}.forum-post aside>span{width:34px;height:34px;margin:0}.topic-shell>header{align-items:flex-start;flex-direction:column}.forum-reply .ops-primary{width:100%}}
@media (max-width: 480px) {
    .school-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* Organization and vacancy management */
.organization-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:20px;padding:16px 20px;background:#fff;border:1px solid #dfe6ef;border-radius:12px;box-shadow:0 5px 18px rgba(20,42,78,.06)}
.organization-toolbar label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#526176}
.organization-toolbar select,.organization-toolbar input,.vacancy-publish-form select,.vacancy-publish-form input,.vacancy-publish-form textarea{min-height:42px;padding:9px 12px;border:1px solid #ccd6e3;border-radius:8px;background:#fff;color:#172b4d;font:inherit}
.organization-toolbar input{flex:1;min-width:180px}
.organization-layout{display:grid;grid-template-columns:minmax(280px,34%) 1fr;gap:22px;align-items:start}
.organization-tree-card,.organization-detail-card{background:#fff;border:1px solid #dfe6ef;border-radius:14px;box-shadow:0 8px 24px rgba(20,42,78,.07);overflow:hidden}
.organization-tree-card>header{padding:22px;border-bottom:1px solid #e7edf4}.organization-tree-card h2{margin:4px 0 0;font-size:20px}
.organization-tree{padding:14px;max-height:72vh;overflow:auto}.organization-tree ul{list-style:none;margin:0;padding:0}.organization-tree ul ul{margin-left:17px;padding-left:13px;border-left:1px solid #d8e1ed}
.organization-unit-button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;margin:3px 0;padding:10px 12px;border:0;border-radius:8px;background:transparent;text-align:left;color:#233b60;cursor:pointer}
.organization-unit-button:hover,.organization-unit-button.active{background:#eaf0fa;color:#173e83}.organization-unit-button span{font-weight:750}.organization-unit-button small{font-size:10px;text-align:right;text-transform:uppercase;letter-spacing:.05em;color:#718096}
.organization-loading,.vacancy-no-applicant{padding:24px;text-align:center;color:#718096}
.organization-empty{min-height:340px;display:grid;place-content:center;text-align:center;padding:30px;color:#718096}.organization-empty>span{font-size:34px;color:#2852a4}.organization-empty h2{margin:10px 0 5px;color:#1b3154}
.organization-detail-header{display:flex;justify-content:space-between;gap:20px;padding:24px 26px;color:#fff;background:linear-gradient(135deg,#18355f,#2852a4)}.organization-detail-header span{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:#cedaf0}.organization-detail-header h2{margin:5px 0 0}.organization-detail-header b{align-self:center;padding:7px 10px;border:1px solid rgba(255,255,255,.3);border-radius:20px;font-size:12px;white-space:nowrap}
.organization-position-index{display:flex;gap:7px;flex-wrap:wrap;padding:16px 24px;border-bottom:1px solid #e7edf4}.organization-position-index a{padding:6px 9px;border-radius:20px;background:#eff4fb;font-size:12px;color:#24499a;text-decoration:none}
.position-detail-list{padding:4px 24px 24px}.position-detail{padding:24px 0;border-bottom:1px solid #e4eaf2;scroll-margin-top:20px}.position-detail:last-child{border:0}.position-detail header span{font-size:10px;font-weight:800;color:#2852a4}.position-detail h3{margin:4px 0 8px;font-size:21px}.position-detail h4{margin:20px 0 8px}.position-detail>p,.position-detail li{color:#526176;line-height:1.6}.position-detail li+li{margin-top:5px}
.position-requirements{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.position-requirements div{padding:11px;background:#f5f7fb;border-radius:8px}.position-requirements dt{font-size:10px;text-transform:uppercase;font-weight:800;color:#718096}.position-requirements dd{margin:4px 0 0;font-size:13px;font-weight:700;color:#22395d}
.vacancy-table td small{display:block;margin-top:4px;color:#718096}.vacancy-eligible,.vacancy-ineligible,.vacancy-applied{display:block;font-size:11px;font-weight:800}.vacancy-eligible{color:#168a57}.vacancy-ineligible{color:#a75244}.vacancy-applied{color:#2852a4}.vacancy-apply{margin-top:7px;padding:6px 10px;border:0;border-radius:6px;background:#2852a4;color:#fff;font-weight:700;cursor:pointer}.vacancy-apply:disabled{background:#c8d0dc;cursor:not-allowed}
.vacancy-section-header{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:20px}.vacancy-section-header h2{margin:4px 0 0}.vacancy-authority{padding:7px 11px;border-radius:20px;background:#eaf0fa;color:#24499a;font-size:11px;font-weight:800}
.vacancy-publish-card{margin-bottom:22px}.vacancy-publish-form{display:grid;grid-template-columns:1.35fr 1.35fr 1fr 1fr;gap:14px}.vacancy-publish-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:750;color:#526176}.vacancy-publish-form .vacancy-wide{grid-column:1/-1}.vacancy-publish-form button{justify-self:start}
.vacancy-management-list{display:grid;gap:16px}.vacancy-management-card{border:1px solid #dfe6ef;border-radius:11px;overflow:hidden}.vacancy-management-card>header{display:flex;justify-content:space-between;gap:15px;padding:17px 19px;background:#f5f7fb}.vacancy-management-card h3{margin:6px 0 2px}.vacancy-management-card header p{margin:0;color:#718096;font-size:12px}.vacancy-status{padding:4px 7px;border-radius:4px;background:#dce4ef;font-size:10px;font-weight:900;text-transform:uppercase}.vacancy-status.open{background:#d9f3e6;color:#087343}.vacancy-status.filled{background:#dce8fb;color:#214b91}.vacancy-management-details{margin:0;padding:14px 19px;border-bottom:1px solid #e4eaf2;color:#526176}
.vacancy-applicant-list>article{display:grid;grid-template-columns:1fr auto;gap:20px;padding:16px 19px;border-top:1px solid #e7edf4}.vacancy-applicant-list>article:first-child{border-top:0}.vacancy-applicant-list span{display:block;font-size:11px;color:#718096}.vacancy-applicant-list p{margin:8px 0 0;color:#526176}.vacancy-review-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;max-width:390px}.vacancy-review-actions button{padding:6px 8px;border:1px solid #b9c7da;border-radius:6px;background:#fff;color:#29466f;cursor:pointer;font-size:11px;font-weight:700}.vacancy-review-actions .nominate{border-color:#168a57;background:#168a57;color:#fff}
@media(max-width:900px){.organization-layout{grid-template-columns:1fr}.organization-tree{max-height:430px}.vacancy-publish-form{grid-template-columns:1fr 1fr}.vacancy-applicant-list>article{grid-template-columns:1fr}.vacancy-review-actions{justify-content:flex-start;max-width:none}}
@media(max-width:620px){.organization-toolbar{align-items:stretch;flex-direction:column}.organization-layout{gap:14px}.position-requirements{grid-template-columns:1fr}.organization-detail-header{padding:20px}.position-detail-list{padding:4px 18px 18px}.organization-position-index{padding:14px 18px}.vacancy-publish-form{grid-template-columns:1fr}.vacancy-publish-form .vacancy-wide{grid-column:auto}.vacancy-management-card>header{flex-direction:column}.vacancy-applicant-list>article{padding:14px}}
.account-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 25px 28px; border: 1px solid #efc4c0; border-left: 5px solid #c43228; border-radius: 14px; background: #fffafa; }
.account-danger-zone h2 { margin: 5px 0 7px; font-size: 20px; color: #861f18; }
.account-danger-zone p { margin: 0; color: #6c4a47; font-size: 13px; line-height: 1.55; }
.account-danger-zone .section-kicker { color: #c43228; }
.btn-danger-outline { min-height: 44px; flex: 0 0 auto; padding: 0 19px; border: 1px solid #c43228; border-radius: 22px; color: #a82720; background: white; font-weight: 700; }
.btn-danger-outline:hover { color: white; background: #c43228; }

.account-delete-modal { width: min(100%, 580px); }
.account-delete-modal .danger-copy strong { display: block; margin-bottom: 8px; color: #861f18; }
.danger-confirmation { display: flex; align-items: flex-start; gap: 11px; padding: 14px 15px; border: 1px solid #efc4c0; border-radius: 9px; color: #603d39; background: #fff7f6; font-size: 13px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.danger-confirmation input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: #c43228; }

/* Tableau de bord */
.dashboard-page { max-width: 1550px; gap: 22px; }
.dashboard-welcome { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 26px 30px; border-radius: 15px; color: white; background: linear-gradient(125deg, #122b50, #2853ad); box-shadow: var(--shadow-md); }
.dashboard-welcome h1 { margin: 4px 0 5px; font: 800 31px var(--app-font-heading); }
.dashboard-welcome p { margin: 0; color: #d8e4f7; }
.dashboard-welcome .section-kicker { color: #a9c6ff; }
.dashboard-clock { display: grid; min-width: 180px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.25); text-align: right; }
.dashboard-clock span { color: #c7d7ee; font-size: 11px; text-transform: capitalize; }
.dashboard-clock strong { margin-top: 3px; font: 800 25px var(--app-font-heading); }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dashboard-top-grid { grid-template-columns: 1.05fr .95fr; }
.dashboard-panel { overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 12px; background: white; box-shadow: var(--shadow-sm); }
.dashboard-panel > header { padding: 13px 17px; color: white; background: #18355f; font: 700 14px var(--app-font-heading); }
.dashboard-panel-body { padding: 19px; }
.task-list { display: grid; gap: 0; margin: 0 0 15px; padding: 0; list-style: none; }
.task-list li { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 9px 2px; border-bottom: 1px solid #edf0f4; color: #536379; font-size: 12px; }
.task-list li::before { content: ''; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #3568cf; }
.task-list li span { flex: 1; }
.task-list small { padding: 3px 7px; border-radius: 999px; color: #65758a; background: #edf1f6; font-size: 9px; }
.dashboard-secondary { min-height: 34px; padding: 0 12px; border: 1px solid #dbe1e9; border-radius: 6px; color: #526176; background: #f7f9fb; font-size: 11px; font-weight: 700; }
.summary-identity { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.summary-rank-copy { flex: 1; min-width: 0; }
.dashboard-rank-insignia { width: 36px; height: 48px; margin-left: auto; }
.summary-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: white; background: #2853ad; font-weight: 800; }
.summary-identity strong, .summary-identity span { display: block; }
.summary-identity strong { color: #263b58; font: 750 17px var(--app-font-heading); }
.summary-identity span { margin-top: 3px; color: #7a8798; font-size: 11px; }
.character-summary dl { margin: 0 0 14px; border-top: 1px solid #e8ecf1; }
.character-summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 1px solid #e8ecf1; font-size: 11px; }
.character-summary dt { color: #7a8798; }
.character-summary dd { margin: 0; color: #344862; font-weight: 700; text-align: right; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #20a779; }
.dashboard-action { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 13px; border: 0; border-radius: 6px; color: white; background: #3568cf; font-size: 11px; font-weight: 800; }
.dashboard-action:hover { color: white; background: #2856b6; }
.dashboard-action-block { width: 100%; margin-bottom: 14px; }
.history-filters { display: flex; gap: 8px; margin-bottom: 18px; }
.history-filters select, .service-filters select, .vacancy-filters select { min-height: 34px; padding: 0 28px 0 10px; border: 1px solid #dfe4eb; border-radius: 5px; color: #5f6e82; background: white; font-size: 11px; }
.history-line { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: start; padding: 13px 0; border-top: 1px solid #e9edf2; color: #68778a; font-size: 12px; }
.history-line time { color: #2853ad; font-weight: 700; }
.statistics-list { display: grid; gap: 7px; margin: 0; padding-left: 18px; color: #637286; font-size: 11px; }
.statistics-list li::marker { color: #2853ad; }
.statistics-list strong { color: #2853ad; }
.service-filters, .vacancy-filters { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.service-filters select { flex: 1; }
.dashboard-empty { margin-top: 18px; padding: 34px 15px; border: 1px dashed #dbe1e9; border-radius: 8px; color: #8995a4; background: #fafbfd; text-align: center; font-size: 11px; }
.vacancy-table-wrap { overflow-x: auto; margin-top: 17px; border: 1px solid #e0e5ec; }
.vacancy-table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 11px; }
.vacancy-table th { padding: 11px 12px; color: white; background: #18355f; text-align: left; }
.vacancy-table td { padding: 22px 12px; color: #8995a4; text-align: center; }
.dashboard-footer { display: flex; justify-content: space-between; gap: 16px; }
.dashboard-footer a { color: #2853ad; font-size: 12px; font-weight: 800; }

/* Acheter des crédits */
.credits-page { max-width: 1500px; gap: 24px; }
.credits-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 32px; border-radius: 16px; color: white; background: linear-gradient(125deg, #122b50, #2853ad); box-shadow: var(--shadow-md); }
.credits-hero h1 { margin: 5px 0 8px; font: 800 34px var(--app-font-heading); }
.credits-hero p { max-width: 700px; margin: 0; color: #d9e6fb; line-height: 1.6; }
.credits-hero .section-kicker { color: #adc8ff; }
.credits-balance { min-width: 150px; padding: 16px 20px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(255,255,255,.1); text-align: center; }
.credits-balance span, .credits-balance small { display: block; color: #d9e6fb; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.credits-balance strong { display: block; margin: 3px 0; font: 800 34px var(--app-font-heading); }
.credits-notice { padding: 13px 17px; border-left: 4px solid #3568cf; border-radius: 7px; color: #315077; background: #eaf2ff; font-size: 13px; }
.credits-notice.connected { border-color: #20a779; color: #176b51; background: #ecfbf6; }
.credits-section, .credits-panel { overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 13px; background: white; box-shadow: var(--shadow-sm); }
.credits-section { padding: 26px; }
.credits-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.credits-section-heading h2 { margin: 4px 0 0; color: #172b49; font: 750 21px var(--app-font-heading); }
.secure-label { color: #5d6d82; font-size: 12px; }
.credit-packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.credit-package { position: relative; display: grid; justify-items: center; gap: 5px; min-height: 155px; padding: 23px 14px 18px; border: 2px solid #e4e9f0; border-radius: 12px; color: #172b49; background: #fbfcfe; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.credit-package:hover { transform: translateY(-2px); border-color: #91ace0; }
.credit-package.selected { border-color: #2853ad; background: #f2f6ff; box-shadow: 0 9px 24px rgba(40,83,173,.13); }
.credit-package strong { font: 750 18px var(--app-font-heading); }
.credit-package small { color: #2853ad; font-size: 16px; font-weight: 800; }
.credit-package em { color: #16845f; font-size: 11px; font-style: normal; font-weight: 800; }
.credit-coin { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #18355f; background: linear-gradient(145deg, #ffe890, #e9b93c); border: 3px solid #f5d66d; font: 900 18px var(--app-font-heading); box-shadow: 0 4px 10px rgba(153,111,13,.2); }
.package-tag { position: absolute; top: -11px; padding: 5px 10px; border-radius: 999px; color: white; background: #ed2939; font-size: 9px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.credits-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.credits-panel > header { padding: 14px 18px; color: white; background: #18355f; font: 700 14px var(--app-font-heading); }
.credits-panel-body { padding: 20px; }
.credits-empty { display: flex; align-items: center; gap: 15px; min-height: 110px; color: #5f6e82; }
.credits-empty > span { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 11px; color: #2853ad; background: #e9effa; }
.credits-empty strong { display: block; margin-bottom: 5px; color: #293d5a; }
.credits-empty p, .order-summary p { margin: 0; color: #7a8798; font-size: 12px; line-height: 1.5; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 8px 0; color: #697789; font-size: 13px; }
.summary-row strong { color: #293d5a; }
.summary-row.total { margin: 8px 0 12px; padding: 14px 0; border-top: 1px solid #e3e8ef; border-bottom: 1px solid #e3e8ef; }
.summary-row.total strong { color: #2853ad; font-size: 21px; }
.payment-section { box-shadow: none; }
.payment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.payment-card { overflow: hidden; border: 1px solid #e0e6ee; border-top: 4px solid #2853ad; border-radius: 10px; background: #fbfcfe; }
.payment-card-top { display: flex; align-items: center; gap: 14px; padding: 20px 20px 12px; }
.payment-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; color: white; background: #2853ad; font-weight: 900; }
.payment-card h3 { margin: 0 0 4px; color: #263b58; font: 750 17px var(--app-font-heading); }
.payment-card p { margin: 0; color: #768497; font-size: 12px; }
.payment-card ul { margin: 0 20px 18px 76px; padding-left: 16px; color: #65758a; font-size: 12px; line-height: 1.7; }
.payment-card li::marker { color: #20a779; }
.payment-button { width: 100%; min-height: 40px; border: 0; color: #526176; background: #e9edf3; font-size: 12px; font-weight: 800; }
.payment-button:hover { color: #18355f; background: #dfe5ee; }
.payment-paypal { border-top-color: #1674bd; }
.payment-paypal .payment-icon { background: #1674bd; }
.payment-card-bank { border-top-color: #24499a; }
.payment-amazon { border-top-color: #ed9d20; }
.payment-amazon .payment-icon { color: #172b49; background: #f8b63a; }
.payment-bank { border-top-color: #20a779; }
.payment-bank .payment-icon { background: #20a779; }
.payment-steam { border-top-color: #536174; }
.payment-steam .payment-icon { background: #536174; }
.payment-referral { border-top-color: #ed2939; }
.payment-referral .payment-icon { background: #ed2939; }
.credits-help { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 12px; color: white; background: #18355f; }
.credits-help strong { font-family: var(--app-font-heading); }
.credits-help span { flex: 1; color: #cfdaea; font-size: 12px; }
.credits-help a { padding: 10px 14px; border-radius: 7px; color: #18355f; background: white; font-size: 12px; font-weight: 800; }

/* Responsive */

/* Administration de carrière & centre opérationnel */
.command-page { max-width:1600px; }
.command-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; margin-bottom:22px; padding:30px 34px; overflow:hidden; border-radius:15px; color:#fff; background:linear-gradient(125deg,#102a51,#244f94); box-shadow:0 12px 30px rgba(17,43,79,.16); }
.command-hero h1 { margin:5px 0 8px; font:800 clamp(26px,3vw,38px) var(--app-font-heading); letter-spacing:-.025em; }
.command-hero p { max-width:720px; margin:0; color:#d4e0f2; line-height:1.55; }
.command-hero .section-kicker { color:#aecdff; }
.operations-hero { background:linear-gradient(125deg,#10293d,#17657b); }
.command-identity { display:flex; min-width:245px; flex-direction:column; padding:17px 20px; border:1px solid rgba(255,255,255,.2); border-radius:11px; background:rgba(255,255,255,.1); backdrop-filter:blur(8px); }
.command-identity strong { font:700 16px var(--app-font-heading); }
.command-identity span { margin-top:6px; color:#d6e2f2; font-size:11px; }
.command-tabs { display:flex; gap:4px; overflow-x:auto; padding:5px; border:1px solid #dce4ee; border-radius:11px; background:#fff; box-shadow:0 3px 12px rgba(25,48,80,.04); scrollbar-width:thin; }
.command-tabs button { flex:0 0 auto; min-height:40px; padding:8px 13px; border:0; border-radius:7px; background:transparent; color:#68778c; font-size:11px; font-weight:700; white-space:nowrap; }
.command-tabs button:hover { color:#214574; background:#f0f4fa; }
.command-tabs button.active { color:#fff; background:#244575; box-shadow:0 4px 10px rgba(29,61,105,.18); }
.operations-command .command-tabs button.active { background:#17657b; }
.command-tools { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:15px 0; }
.command-tools > div { display:flex; gap:8px; }
.command-tools input,.command-tools select { min-height:39px; padding:0 12px; border:1px solid #d7e0eb; border-radius:7px; background:#fff; color:#4f5e73; font-size:12px; }
.command-tools input { width:min(340px,42vw); }
.command-tools span { color:#8290a2; font-size:11px; }
.command-content { display:grid; gap:17px; }
.command-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; }
.command-metrics article { position:relative; min-height:128px; padding:20px; overflow:hidden; border:1px solid #dfe6ef; border-radius:11px; background:#fff; box-shadow:0 4px 15px rgba(22,46,77,.05); }
.command-metrics article::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:#2d61ad; }
.command-metrics article.attention::before { background:#e7a327; }
.command-metrics span { display:block; color:#78869a; font-size:10px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.command-metrics strong { display:block; margin:9px 0 7px; color:#17365f; font:800 27px var(--app-font-heading); }
.command-metrics small { color:#8490a1; font-size:10px; }
.command-metrics a { color:#2c5faa; font-weight:700; }
.command-two { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(280px,.7fr); gap:17px; }
.command-panel { overflow:hidden; border:1px solid #dfe6ef; border-radius:12px; background:#fff; box-shadow:0 4px 16px rgba(22,46,77,.045); }
.command-panel > header { display:flex; align-items:center; justify-content:space-between; gap:15px; min-height:75px; padding:16px 20px; border-bottom:1px solid #e8edf3; background:#fbfcfe; }
.command-panel > header h2 { margin:3px 0 0; color:#1e3555; font:700 16px var(--app-font-heading); }
.command-eyebrow { color:#7f8da0; font-size:9px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.command-panel .ops-primary { width:auto; min-height:35px; padding:0 12px; border-radius:7px; font-size:10px; }
.command-list { display:grid; }
.command-row { position:relative; display:grid; grid-template-columns:8px minmax(0,1fr) auto; gap:13px; padding:16px 19px; border-bottom:1px solid #edf1f5; }
.command-row:last-child { border-bottom:0; }
.command-row-marker { width:7px; height:7px; margin-top:6px; border-radius:50%; background:#3a6db6; box-shadow:0 0 0 4px #eaf1fb; }
.operation-row.urgency-high .command-row-marker,.operation-row.urgency-urgent .command-row-marker { background:#e19422; box-shadow:0 0 0 4px #fff2d9; }
.operation-row.urgency-critical .command-row-marker { background:#d83345; box-shadow:0 0 0 4px #fde5e8; }
.command-row header { display:flex; align-items:center; gap:10px; }
.command-row header strong { color:#263c59; font-size:13px; }
.command-row p { margin:7px 0 9px; color:#647388; font-size:11px; line-height:1.55; }
.command-row footer { display:flex; flex-wrap:wrap; gap:12px; color:#8a96a6; font-size:9px; }
.command-review { display:flex; align-items:center; gap:5px; }
.command-review button { min-height:29px; padding:0 8px; border:1px solid #d9e1eb; border-radius:5px; color:#52657d; background:#fff; font-size:9px; font-weight:700; }
.command-review button:hover { border-color:#6382ad; color:#244575; }
.command-empty { min-height:150px; }
.command-empty span { margin-top:6px; color:#8995a5; font-size:11px; }
.command-quick > a { display:flex; flex-direction:column; gap:5px; margin:12px 16px; padding:15px; border:1px solid #e0e7f0; border-radius:8px; color:#274b7c; background:#f8faff; }
.command-quick > a:hover { border-color:#aebed5; transform:translateY(-1px); }
.command-quick > a strong { font-size:12px; }
.command-quick > a span { color:#7c899a; font-size:10px; }
.personal-record dl { display:grid; grid-template-columns:repeat(3,1fr); margin:0; }
.personal-record dl div { padding:19px 21px; border-right:1px solid #edf1f5; border-bottom:1px solid #edf1f5; }
.personal-record dt { color:#8793a4; font-size:9px; font-weight:800; text-transform:uppercase; }
.personal-record dd { margin:7px 0 0; color:#293f5b; font-size:12px; font-weight:700; }
.command-modal { width:min(94vw,640px); max-height:90vh; overflow:auto; }
.command-modal textarea { width:100%; resize:vertical; }
.fleet-mini-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; padding:16px; }
.fleet-mini-grid > article { padding:15px; border:1px solid #e1e7ef; border-radius:9px; background:#fbfcfe; }
.fleet-mini-grid header { display:flex; align-items:center; justify-content:space-between; gap:7px; }
.fleet-mini-grid strong { color:#273e5d; font-size:12px; }
.fleet-mini-grid p,.fleet-mini-grid small { color:#7c899b; font-size:10px; }
.fleet-mini-grid div span { display:flex; justify-content:space-between; color:#607087; font-size:10px; }
.fleet-mini-grid meter { width:100%; height:8px; margin:5px 0 9px; }
.vehicle-detail-card { display:flex; flex-direction:column; }
.vehicle-detail-card > p { margin:7px 0 13px; }
.vehicle-detail-card dl { display:grid; grid-template-columns:1fr 1fr; margin:7px 0 11px; border-top:1px solid #e7edf4; }
.vehicle-detail-card dl div { padding:9px 6px 3px 0; }
.vehicle-detail-card dt { color:#8a96a6; font-size:8px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.vehicle-detail-card dd { margin:4px 0 0; color:#40536d; font-size:10px; font-weight:700; }
.vehicle-breakdown { margin:2px 0 10px; padding:8px 9px; border-radius:6px; color:#a13543; background:#fff0f1; font-size:10px; line-height:1.45; }
.vehicle-actions { display:flex; flex-wrap:wrap; gap:5px; margin-top:auto; padding-top:9px; border-top:1px solid #e7edf4; }
.vehicle-actions button { min-height:28px; padding:0 7px; border:1px solid #d6e0eb; border-radius:5px; color:#416186; background:#fff; font-size:9px; font-weight:700; }
.vehicle-actions button:hover { border-color:#5a83b9; color:#173f76; background:#f4f8ff; }
.vehicle-events { display:grid; gap:4px; margin-top:12px; padding-top:10px; border-top:1px solid #e7edf4; }
.vehicle-events strong { color:#53657b; font-size:9px; text-transform:uppercase; letter-spacing:.05em; }
.vehicle-events span { color:#8490a0; font-size:9px; }
.stat-bars { display:grid; grid-template-columns:repeat(4,1fr); }
.stat-bars span { padding:25px 20px; border-right:1px solid #e8edf3; color:#78869a; font-size:11px; }
.stat-bars b { display:block; margin-top:8px; color:#1f436e; font:800 24px var(--app-font-heading); }

@media (max-width: 960px) {
  .gateway-panel { flex-direction: column; min-height: auto; }
  .gateway-visual { min-height: 250px; border-right: none; border-bottom: 1px solid hsl(var(--border)); }
  .guestbook-layout { grid-template-columns: 1fr; }
  .version-layout { grid-template-columns: 1fr; }
  .version-summary { position: static; grid-row: 1; }
  .regulation-layout { grid-template-columns: 1fr; }
  .regulation-summary { position: static; }
  .regulation-summary nav { grid-template-columns: repeat(2, 1fr); max-height: none; }
  .credit-packages { grid-template-columns: repeat(2, 1fr); }
  .credits-layout { grid-template-columns: 1fr; }
  .command-metrics { grid-template-columns:repeat(2,1fr); }
  .command-two { grid-template-columns:1fr; }
  .dashboard-grid, .dashboard-top-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .side-rail { transform: translateX(-100%); transition: transform 0.3s ease; }
  .side-rail.open { transform: translateX(0); box-shadow: 10px 0 30px rgba(0,0,0,0.2); }
  .main-column { width: 100%; margin-left: 0; }
  .topbar { padding: 0 20px; justify-content: space-between; }
  .mobile-menu { display: block; }
  .page-content { padding: 24px 16px; }
  .gateway-form { padding: 32px 24px; }
  .grid-2 { grid-template-columns: 1fr; }
  .member-card { align-items: flex-start; flex-wrap: wrap; }
  .member-card .btn-outline { width: 100%; }
  .characters-section { padding: 22px 18px; }
  .characters-heading { align-items: stretch; flex-direction: column; }
  .characters-heading .btn-new-character { width: 100%; }
  .character-modal > header, .character-modal form { padding-left: 20px; padding-right: 20px; }
  .character-modal footer { flex-direction: column-reverse; }
  .character-modal footer button { width: 100%; }
  .character-card { flex-wrap: wrap; }
  .btn-delete-character { width: 100%; }
  .account-danger-zone { align-items: stretch; flex-direction: column; padding: 22px 18px; }
  .btn-danger-outline { width: 100%; }
  .version-document { padding: 24px 20px 30px; }
  .changelog-entry { grid-template-columns: 1fr; gap: 3px; }
  .guestbook-body { padding: 16px; }
  .guestbook-tools, .guestbook-footer { align-items: stretch; flex-direction: column; }
  .guestbook-tools label { justify-content: space-between; }
  .guestbook-tools input { min-width: 0; flex: 1; }
  .pagination { overflow-x: auto; }
  .pillory-body { padding: 16px; }
  .regulation-hero { align-items: start; flex-direction: column; padding: 24px 20px; }
  .regulation-hero h1 { font-size: 28px; }
  .regulation-summary nav { grid-template-columns: 1fr; }
  .regulation-document { padding: 22px 18px; }
  .regulation-document > section { grid-template-columns: 1fr; }
  .regulation-number { width: 38px; height: 38px; }
  .regulation-footer { align-items: start; flex-wrap: wrap; }
  .regulation-footer a { width: 100%; text-align: center; }
  .credits-hero { align-items: stretch; flex-direction: column; padding: 24px 20px; }
  .credits-balance { min-width: 0; }
  .credits-section { padding: 20px 16px; }
  .credits-section-heading { align-items: flex-start; flex-direction: column; }
  .credit-packages, .payment-grid { grid-template-columns: 1fr; }
  .credits-help { align-items: flex-start; flex-direction: column; }
  .credits-help a { width: 100%; text-align: center; }
  .dashboard-welcome { align-items: stretch; flex-direction: column; padding: 23px 20px; }
  .dashboard-clock { padding: 15px 0 0; border-top: 1px solid rgba(255,255,255,.25); border-left: 0; text-align: left; }
  .service-filters, .vacancy-filters { align-items: stretch; flex-direction: column; }
  .service-filters select, .vacancy-filters select, .vacancy-filters .dashboard-action { width: 100%; }
  .dashboard-footer { align-items: flex-start; flex-direction: column; }
  .command-hero { align-items:stretch; flex-direction:column; padding:23px 20px; }
  .command-identity { min-width:0; }
  .command-tools { align-items:stretch; flex-direction:column; }
  .command-tools > div { flex-direction:column; }
  .command-tools input { width:100%; }
  .command-metrics { grid-template-columns:1fr 1fr; }
  .personal-record dl { grid-template-columns:1fr 1fr; }
  .command-row { grid-template-columns:8px 1fr; }
  .command-review { grid-column:2; flex-wrap:wrap; }
  .stat-bars { grid-template-columns:1fr 1fr; }
}

@media (max-width: 480px) {
  .command-metrics,.personal-record dl,.stat-bars { grid-template-columns:1fr; }
  .command-tabs { margin-inline:-4px; }
}
