* { box-sizing: border-box; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  margin: 0;
  color: #e6e2d9;
  background: #0a0a0a;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Bodoni Moda', serif; font-weight: 400; letter-spacing: 0.02em; }
h1 { font-size: 2rem; margin: 0 0 1.5rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.1rem; }
a { color: #c9a24b; }
a:hover { color: #ebc166; }
.topnav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1.5rem;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(78, 70, 55, 0.5);
}
.topnav .brand {
  font-family: 'Bodoni Moda', serif;
  color: #c9a24b;
  letter-spacing: 0.15em;
  text-decoration: none;
  margin-right: 0.5rem;
  font-size: 1rem;
}
.topnav a { color: #d1c5b2; text-decoration: none; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
.topnav a:hover { color: #c9a24b; }
.whoami { margin-left: auto; color: #9a8f7e; font-size: 0.85rem; text-transform: none; letter-spacing: normal; }
.inline-form { display: inline; }
main { max-width: 1040px; margin: 0 auto; padding: 2rem 1.5rem; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid rgba(78, 70, 55, 0.5); }
th { font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #d1c5b2; opacity: 0.8; }

form.stack label { display: block; margin-top: 0.75rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #d1c5b2; opacity: 0.85; }

button, input[type="submit"] {
  background: transparent;
  border: 1px solid #c9a24b;
  color: #c9a24b;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
button:hover, input[type="submit"]:hover { background: #c9a24b; color: #1c1508; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="tel"], input[type="url"], input[type="search"], input[type="date"],
select, textarea {
  width: 100%;
  padding: 0.45rem 0.5rem;
  margin-top: 0.25rem;
  background: #141414;
  border: 1px solid #4e4637;
  color: #e6e2d9;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #c9a24b; }
input[type="checkbox"], input[type="radio"] { accent-color: #c9a24b; }
::placeholder { color: #6b6558; }

.badge {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 0;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; margin-right: 0.25rem;
  border: 1px solid;
}
.badge-flagged { background: rgba(147, 0, 10, 0.12); color: #ff6b6b; border-color: rgba(255, 107, 107, 0.4); }
.badge-estimated { background: rgba(232, 196, 104, 0.1); color: #e8c468; border-color: rgba(232, 196, 104, 0.4); }
.badge-ok { background: rgba(126, 224, 160, 0.1); color: #7ee0a0; border-color: rgba(126, 224, 160, 0.4); }
.status-pending { color: #e8c468; }
.status-approved { color: #7ee0a0; }
.status-rejected { color: #ff6b6b; }
.status-removed { color: #9a8f7e; }
.error { color: #ff6b6b; font-weight: 600; }
.notice { color: #7ee0a0; font-weight: 600; }
.actions { margin-top: 1rem; display: flex; gap: 0.5rem; }

img { cursor: zoom-in; }
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
#lightbox-overlay.open { display: flex; }
#lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
  transition: transform 0.08s ease-out;
}
#lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.25rem;
  line-height: 1;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #c9a24b; }
