/* Shared visual identity from original Alpha's delta-force-theme.css. */
:root {
  --brand-gold: #d6af3d;
  --brand-gold-light: #f2d575;
  --brand-charcoal: #191b1e;
  --brand-silver: #d4d4d2;
  --bg-0: #fafaf8;
  --bg-1: #f3f3f1;
  --bg-2: #eeeeeb;
  --panel: #fff;
  --panel-strong: #fff;
  --text: #242629;
  --muted: #595b60;
  --accent: #796014;
  --accent-2: #97751a;
  --accent-soft: #fbf2d6;
  --border: #d9d9d5;
  --focus: #97751a;
  --chip-bg: #fff;
  --chip-border: #d9d9d5;
  --chip-hover: #f4f0e3;
  --shadow: 0 6px 18px rgba(15,23,42,.09), 0 1px 4px rgba(15,23,42,.05);
}
body {
  background: linear-gradient(180deg,#fafaf8 0%,#eeeeeb 100%);
  font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1,h2,h3 { letter-spacing: -.02em; color: #796014; }
.card > h2 {
  border-left: 4px solid var(--brand-gold);
  padding-left: 12px;
}
.auth-page .card > h2 { border-left: 0; padding-left: 0; }
h1 { font-size: clamp(25px,3vw,34px); }
.container { padding: 16px; }
@media(max-width:1200px) { .container { padding:10px; } }
@media(max-width:640px) { .container { padding:6px; } }
.menu {
  background: var(--brand-charcoal);
  border-bottom: 3px solid var(--brand-gold);
  border-radius: 12px;
  padding: 10px 14px;
  gap: 3px;
  flex-wrap: nowrap;
  overflow-x: auto;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.menu a,.menu button {
  background: transparent;
  border: 1px solid transparent;
  color: #e1e1dc;
  border-radius: 8px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.menu a:hover,.menu button:hover { background: #35352e; color: var(--brand-gold-light); transform: none; border-color: transparent; }
.menu a.active { background: var(--brand-gold); color: var(--brand-charcoal); }
.menu #navLogin,.menu #navRegister { border-color: transparent; }
.menu #navLogout { background: transparent; color: #ffb5b5; border-color: #64423e; }
.menu .clockin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-basis: auto;
  padding: 0 18px 0 0;
  margin: 0 16px 0 0;
  border: 0;
  border-right: 1px solid #41413b;
  border-radius: 0;
  color: #f5f5f2;
}
.menu .clockin-brand:hover { background: transparent; border-right-color: #41413b; color: #fff; }
.brand-logo,.login-brand-logo { position: relative; overflow: hidden; flex-shrink: 0; background: #030504; border-radius: 8px; }
.brand-logo { width: 44px; height: 40px; }
.brand-logo img,.login-brand-logo img { position:absolute; width:155%; max-width:none; height:auto; top:50%; left:50%; transform:translate(-50%,-50%); }
.brand-copy { display:flex; flex-direction:column; gap:2px; }
.brand-copy strong { font-size:18px; letter-spacing:-.02em; }
.brand-copy small { font-size:10px; font-weight:400; color:var(--brand-silver); }
.card { border-radius:12px; background:var(--panel); backdrop-filter:none; padding:22px; }
input,select,textarea,button { font-family:inherit; border-radius:8px; }
input,select,textarea { border-color:var(--border); }
input:hover,select:hover,textarea:hover { border-color:#b99a43; }
input:focus,select:focus,textarea:focus { outline:0; border-color:#a07e24; box-shadow:0 0 0 3px rgba(214,175,61,.18); }
button { background:linear-gradient(135deg,#f0d171,#d6af3d); color:#252116; border:1px solid #b38b23; box-shadow:0 2px 6px rgba(125,94,12,.12); }
button:hover { filter:none; background:linear-gradient(135deg,#f7df93,#e2bd50); }
button.secondary { background:#fff; color:#393b3d; border:1px solid #ccccc5; box-shadow:none; }
button.secondary:hover { background:#f3f1e9; border-color:#b99a43; }
button.danger { background:var(--danger); color:#fff; border-color:var(--danger); }
:focus-visible { outline:2px solid var(--focus); outline-offset:3px; }
.admin-submenu button { box-shadow:none; color:var(--muted); }
.admin-submenu button.active { background:#f8edc9; color:#674e0c; border-color:#d6af3d; }
th { background:#f8f0d9; color:#674e0c; font-size:12px; font-weight:600; }
tr:hover td { background:rgba(214,175,61,.045); }
.auth-page > .container > h1 { display:none; }
.auth-page .card { max-width:440px; margin:36px auto 20px; border-top:3px solid var(--brand-gold); padding:28px; }
.auth-page .card h2 { font-size:28px; margin-bottom:20px; }
.auth-page .card .row { grid-template-columns:1fr; gap:16px; }
.login-brand-logo { width:180px; height:180px; margin:0 auto 24px; }
.auth-page .menu a:not(.clockin-brand):not(#navLogin):not(#navRegister) { display:none; }
.register-page .card { max-width:680px; }
.register-page .card .row { grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); }
@media(max-width:640px) {
  .menu { padding:8px; border-radius:9px; }
  .menu .clockin-brand { margin-right:3px; padding-right:10px; }
  .brand-copy small { display:none; }
  .brand-logo { width:29px; height:28px; }
  .brand-copy strong { font-size:14px; }
}
@media(max-width:600px) {
  .card { padding:16px; }
  .auth-page .card { padding:22px; margin-top:24px; }
  .login-brand-logo { width:150px; height:150px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; } }

.menu a.has-unread,.menu a.has-unread.active { background:#20764b; border-color:#4ca877; color:#fff; }
.chat-unread-badge,.conversation-unread { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 5px; border-radius:12px; background:#fff; color:#175835; font-size:11px; font-weight:700; }
.chat-unread-badge[hidden] { display:none; }
.conversation-unread { background:#20764b; color:#fff; flex-shrink:0; }
