:root {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #261c1d;
  background: #faf6ef;
  --burgundy: #681632;
  --line: #e8dcd0;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
header { background: var(--burgundy); color: white; border-bottom: 4px solid #d8a34c; }
.bar { max-width: 1160px; margin: auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; font-weight: 700; }
.brand small { display: block; color: #f0cbb9; font-weight: 400; }
.monogram { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #e8b967; border-radius: 12px; color: #f1cb80; font: bold 1.45rem Georgia, serif; }
main { max-width: 1160px; margin: auto; padding: clamp(36px, 8vw, 98px) 24px; }
h1 { margin: 8px 0 12px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -.055em; }
p { line-height: 1.55; }
.eyebrow { margin: 0; font-size: .76rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--burgundy); }
.login { margin: auto; max-width: 480px; padding: clamp(24px, 6vw, 46px); background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 20px 65px #4a231812; }
.login h1 { font-size: clamp(2rem, 5vw, 2.7rem); }
form { display: grid; gap: 12px; margin-top: 28px; }
label { font-weight: 650; }
button, input { padding: 12px 15px; font: inherit; border: 1px solid var(--line); border-radius: 10px; }
input { width: 100%; background: #fff; color: inherit; }
#error { color: #8e2333; }
button { background: var(--burgundy); color: white; border-color: transparent; font-weight: 650; cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
#exit { border: 1px solid #f0cbb984; }
button:hover:enabled { background: #85284a; }
.note { color: #6c5754; font-size: .88rem; margin-top: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; margin-top: 28px; }
.card { display: grid; justify-items: center; gap: 6px; min-height: 195px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: white; color: inherit; text-decoration: none; }
.card:hover { border-color: #a76244; box-shadow: 0 8px 28px #4a231815; }
.card img { object-fit: contain; max-width: 100%; }
.card strong { font-size: 1.12rem; }
.card span { color: #725b55; font-size: .86rem; }
nav, .actions { display: flex; gap: 8px; flex-wrap: wrap; }
#manage { border-color: #f0cbb984; }
#users { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
fieldset { display: grid; gap: 9px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
legend { font-weight: 700; }
fieldset label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
input[type="checkbox"] { width: auto; accent-color: var(--burgundy); }
:focus-visible { outline: 3px solid #a65b22; outline-offset: 4px; }
