/* Owner site. Same visual language as the NetScope page (web/app.css of the program):
   grey planes, one blue accent, colour only where it means something. */
:root {
  --bg: #eef1f5;
  --panel: #ffffff;
  --line: #dfe4eb;
  --line-strong: #c9d1dc;
  --text: #1c2431;
  --muted: #677386;
  --accent: #2f6fde;
  --accent-ink: #ffffff;
  --accent-soft: #e7effc;
  --critical: #d64545;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 2px 8px rgba(20, 30, 50, .04);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.4 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: var(--accent); }
.error { color: var(--critical); }

/* ---- brand (as on the program's start screen) ---- */
.brand { font-size: 30px; font-weight: 650; letter-spacing: .2px; display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: url(/icon.svg) center/cover; flex: none; }
a.brand { color: var(--text); text-decoration: none; }
.brand.small { font-size: 20px; gap: 10px; }
.brand.small .brand-mark { width: 26px; height: 26px; border-radius: 7px; }

/* ---- buttons and inputs ---- */
.btn { border: 1px solid var(--line-strong); background: var(--panel); border-radius: 8px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent:hover:not(:disabled) { background: #275fc0; color: #fff; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 10px; background: var(--panel); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---- sign-in page ---- */
.login { min-height: 100vh; padding: 56px 16px 32px; display: flex; flex-direction: column; align-items: center; }
.login-head { text-align: center; margin-bottom: 32px; }
.tagline { color: var(--muted); margin-top: 6px; font-size: 15px; }
.card { width: 360px; max-width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
        box-shadow: var(--shadow); padding: 18px 20px 20px; display: flex; flex-direction: column; }
.card h1 { margin: 0 0 14px; font-size: 16px; font-weight: 650; }
.card label { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.card .field { margin-bottom: 14px; }
.card .error { margin: 0 0 12px; font-size: 13px; }
.card .btn.accent { width: 100%; padding: 8px 12px; margin-top: 2px; }

/* ---- dashboard and users pages ---- */
.page { max-width: 52rem; margin: 0 auto; padding: 24px 16px 32px; }
.top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.top nav { display: flex; gap: 14px; margin-left: auto; }
h1, h2 { font-weight: 650; }
.page button, .page input, .page select { padding: .3rem .5rem; }
table { border-collapse: collapse; width: 100%; margin-bottom: 1.5rem; background: var(--panel); }
/* wide tables scroll inside their own box on narrow screens instead of widening the page */
.scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
th, td { border: 1px solid var(--line); padding: .4rem .6rem; text-align: left; }
form.inline { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---- library request badge (dashboard) ---- */
.badge { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }

/* ---- library moderation page ---- */
.page.wide { max-width: 72rem; }
.filters { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; gap: 4px; }
.btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
a.btn { display: inline-block; text-decoration: none; color: var(--text); }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: var(--accent-soft); }
tr.details > td { background: var(--bg); }
table.profile { width: auto; min-width: 20rem; margin: 8px 0 12px; }
table.profile th { background: var(--panel); font-weight: 600; }
.profile-view h3 { font-size: 14px; font-weight: 650; margin: 12px 0 4px; }
table.modules { width: auto; margin: 0 0 12px; font-size: 13px; }
table.modules th { background: var(--panel); font-weight: 600; white-space: nowrap; }
table.modules td:nth-child(3) { min-width: 14rem; }
img.picture { display: block; max-width: 100%; max-height: 24rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; }
p.decision { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
p.decision .comment { flex: 1 1 16rem; width: auto; }
