:root {
  --navy: #0b1c2c;
  --navy-2: #12263a;
  --gold: #c9a36a;
  --cream: #f6f1e8;
  --ink: #132333;
  --muted: #5c6b78;
  --line: #e6dccb;
  --white: #fff;
  --danger: #9b2c2c;
  --hold: #8a5a12;
  --ok: #1f6b4a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Outfit, system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.side {
  position: fixed; inset: 0 auto 0 0; width: 230px;
  background: var(--navy); color: #d7e0e8;
  display: flex; flex-direction: column; padding: 22px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; margin-bottom: 28px; }
.side .brand { flex-wrap: wrap; }
.mark {
  width: 115px; height: 115px; border-radius: 12px;
  background: #fff; display: grid; place-items: center; overflow: hidden; flex: 0 0 115px;
}
.mark img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 12px; }
.login-logo {
  width: 50px; height: 50px; border-radius: 12px; overflow: hidden;
  background: #fff; display: block; margin-bottom: 14px;
}
.login-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; display: block; }
.side nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side nav a { padding: 10px 12px; border-radius: 10px; color: #c5d0d8; }
.side nav a.on, .side nav a:hover { background: rgba(201,163,106,.16); color: var(--gold); }
.side-foot { font-size: 13px; color: #9aadb9; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.side-foot a { color: var(--gold); }
.main { margin-left: 230px; padding: 28px 32px 60px; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
h1 { font-family: "Cormorant Garamond", serif; font-size: 34px; font-weight: 600; }
.ghost, .btn, button.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 9px 16px; font: inherit; cursor: pointer; border: 0;
}
.ghost { border: 1px solid var(--line); background: #fff; }
.btn { background: var(--navy); color: #fff; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.danger { background: var(--danger); color: #fff; }
.flash { background: #e7f4ec; border: 1px solid #b7d8c4; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.stat b { display: block; font-size: 28px; font-family: "Cormorant Garamond", serif; }
.stat span { color: var(--muted); font-size: 13px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #efe4cf; }
.tag.hold { background: #f4e0c0; color: var(--hold); }
.tag.open { background: #dceee4; color: var(--ok); }
a.tag.open:hover { background: #c5e3d2; }
.note-focus td { background: #e7f4ec; }
.tag.done { background: #e6e6e6; color: #555; }
.tag.urgent { background: #f8d4d4; color: var(--danger); }
form.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
form.grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
.muted { color: var(--muted); font-size: 13px; }
.login-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background: #0b1c2c;
}
.login-card {
  width: min(420px, calc(100% - 32px));
  background: #fff; border-radius: 20px; padding: 32px;
}
.login-card h1 { margin-bottom: 6px; }
.login-card p { color: var(--muted); margin-bottom: 22px; }
.login-card label { margin-top: 10px; }
.login-card .btn { width: 100%; justify-content: center; margin-top: 16px; }
.err { background: #f8d4d4; color: var(--danger); padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.actions a, .actions button { margin-right: 8px; font-size: 13px; background: none; border: 0; color: #1d4f7a; cursor: pointer; font-family: inherit; }
@media (max-width: 820px) {
  .side { position: static; width: auto; }
  .main { margin-left: 0; padding: 18px; }
  form.grid { grid-template-columns: 1fr; }
}
