:root {
  --imperial: #001D51;
  --champagne: #E8D4A0;
  --linen: #F5F0E8;
  --ink: #0a0f1e;
  --muted: #6b7280;
  --border: #d8d2c4;
  --danger: #b42318;
  --success: #067647;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: var(--linen);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--imperial); }

.topbar {
  background: var(--imperial);
  color: white;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar h1 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.4px;
  margin: 0;
  color: var(--champagne);
}
.topbar .user { font-size: 13px; color: rgba(255,255,255,0.85); }
.topbar .user form { display: inline; }
.topbar .user button {
  background: transparent;
  color: var(--champagne);
  border: 1px solid rgba(232, 212, 160, 0.4);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 12px;
}

.container {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 28px;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

h2 { font-size: 18px; font-weight: 600; margin: 0 0 16px; color: var(--imperial); }
h3 { font-size: 14px; font-weight: 600; margin: 24px 0 10px; color: var(--imperial); text-transform: uppercase; letter-spacing: 0.6px; }

.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="file"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: white;
  font-family: inherit;
}
input:focus { outline: none; border-color: var(--imperial); }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.4px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 14px; }
.row .field { flex: 1; }

button, .btn {
  background: var(--imperial);
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}
button:hover, .btn:hover { background: #00194a; }
.btn-ghost {
  background: transparent;
  color: var(--imperial);
  border: 1px solid var(--imperial);
}
.btn-ghost:hover { background: var(--linen); }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 5px 10px; font-size: 12px; }

.error { background: #fef3f2; border: 1px solid #fda29b; color: var(--danger); padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.success { background: #ecfdf3; border: 1px solid #abefc6; color: var(--success); padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.muted { color: var(--muted); font-size: 13px; }

.login-wrap { max-width: 380px; margin: 100px auto; }
.login-wrap .card { padding: 32px; }
.login-wrap h2 { text-align: center; margin-bottom: 4px; }
.login-wrap p.muted { text-align: center; margin-top: 0; margin-bottom: 24px; }

.empty { padding: 40px; text-align: center; color: var(--muted); font-size: 14px; }
.actions-inline { display: flex; gap: 8px; align-items: center; }
.actions-inline form { display: inline; margin: 0; }

.tag { display: inline-block; background: var(--linen); color: var(--imperial); border: 1px solid var(--border); padding: 2px 8px; border-radius: 12px; font-size: 11px; margin-left: 6px; }

.share-link-box {
  background: var(--linen);
  border: 1px dashed var(--imperial);
  padding: 14px;
  border-radius: 6px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  word-break: break-all;
  margin-top: 8px;
}
