:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --panel: #fff;
  --ink: #17211f;
  --muted: #5d6a66;
  --line: #d8e0dc;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --mint: #d9f4ec;
  --red: #b42318;
  --shadow: 0 18px 40px rgba(28, 44, 40, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}
a { color: var(--accent-strong); }
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  min-height: 64px; padding: 0 24px;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; text-decoration: none; color: var(--ink); }
.nav { display: flex; gap: 8px; flex: 1; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.who { color: var(--muted); font-size: 0.92rem; }
.shell { max-width: 1100px; margin: 0 auto; padding: 32px 20px 64px; }
.auth-grid, .workspace { display: grid; gap: 24px; }
@media (min-width: 860px) {
  .auth-grid { grid-template-columns: 1.2fr 0.8fr; }
  .workspace { grid-template-columns: 320px 1fr; }
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.muted-panel { background: #f3faf7; }
.eyebrow { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; color: var(--accent); font-weight: 700; }
h1 { margin: 8px 0 12px; font-size: 2rem; line-height: 1.15; }
h2 { margin: 0 0 12px; font-size: 1.1rem; }
.lede, .hint { color: var(--muted); }
.stack { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
input[type="text"], input[type="password"], input[type="search"], input[type="file"], input:not([type]) {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit;
}
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { background: #fff4f3; border-color: #f0c2be; color: var(--red); }
.btn.ghost, .linkish {
  background: transparent; border: 0; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer;
}
.linkish:hover, .btn.ghost:hover { color: var(--accent-strong); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hero-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.metrics { display: flex; gap: 12px; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; min-width: 88px; }
.metric strong { display: block; font-size: 1.4rem; }
.metric span { color: var(--muted); font-size: 0.8rem; }
.filter-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.asset-list { display: grid; gap: 12px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.card h3 { margin: 0 0 4px; }
.card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.table-wrap { overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.modal { border: 0; border-radius: 16px; padding: 20px; max-width: min(92vw, 640px); }
.modal img { max-width: 100%; border-radius: 12px; }
.flash { color: var(--red); }
code { font-size: 0.88em; }
