/* AIS Group media library: shared styles for the upload, review and admin
   pages. Brand (AIS Group guidelines v1.2): navy #102448, accent #F04E23,
   blue #145BB5, gold #F68B1F, Plus Jakarta Sans headings, Inter body. */

:root {
  --navy: #102448;
  --navy-soft: #1c3563;
  --accent: #F04E23;
  --blue: #145BB5;
  --gold: #F68B1F;
  --paper: #f7f8fa;
  --line: #d9dee7;
  --ink: #1c2333;
  --ink-soft: #5a6478;
  --ok: #1c7c43;
  --warn: #a3591a;
  --bad: #b02a1e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3 {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  color: var(--navy);
  margin: 0 0 0.4rem;
}

header.site {
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

header.site .logo {
  height: 2.4rem;
  width: auto;
  display: block;
}

header.site .mark {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

header.site .wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

header.site .group {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

header.site .strap {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-left: 0.6rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

header.site nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.9rem;
}

header.site nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  padding: 0.25rem 0;
}

header.site nav a:hover,
header.site nav a.current {
  opacity: 1;
  border-bottom: 2px solid var(--gold);
}

header.site .whoami {
  font-size: 0.82rem;
  background: var(--navy-soft);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

header.site .whoami .role {
  opacity: 0.75;
}

main {
  max-width: 60rem;
  margin: 2rem auto 4rem;
  padding: 0 1.2rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}

label {
  display: block;
  font-weight: 600;
  margin: 0.9rem 0 0.3rem;
  color: var(--navy);
}

select, input[type="text"], input[type="search"], input[type="email"], input[type="number"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

select:focus, input:focus, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 1.2rem;
}

@media (max-width: 40rem) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

button.primary {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 0.7rem 1.6rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1.2rem;
}

button.primary:disabled {
  background: var(--line);
  color: var(--ink-soft);
  cursor: not-allowed;
}

button.quiet {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.dropzone {
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 1.6rem;
  text-align: center;
  color: var(--ink-soft);
  margin-top: 1rem;
  cursor: pointer;
}

.dropzone.dragging {
  border-color: var(--accent);
  color: var(--navy);
}

ul.filelist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

ul.filelist li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

ul.filelist .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

ul.filelist .size {
  color: var(--ink-soft);
  min-width: 5.5rem;
  text-align: right;
}

.bar {
  width: 9rem;
  height: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.bar > div {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s;
}

.status-ok { color: var(--ok); font-weight: 600; }
.status-warn { color: var(--warn); font-weight: 600; }
.status-bad { color: var(--bad); font-weight: 600; }

.notice {
  border-left: 4px solid var(--accent);
  background: #fff6f2;
  padding: 0.7rem 1rem;
  border-radius: 0 6px 6px 0;
  margin: 1rem 0;
}

.notice.bad {
  border-left-color: var(--bad);
  background: #fdf1f0;
}

.notice.ok {
  border-left-color: var(--ok);
  background: #f0f9f3;
}

.summary {
  font-size: 1.05rem;
}

table.plain {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.plain th, table.plain td {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--line);
}

table.plain th {
  color: var(--navy);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.85rem;
}

.rolechip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #eef2f9;
  color: var(--blue);
  border: 1px solid #c9d7ee;
}

.rolechip.super { background: #fdf0ec; color: var(--accent); border-color: #f4c8ba; }
.rolechip.marketing { background: #fff7e8; color: var(--warn); border-color: #f0d9ab; }

footer.site {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  padding: 2rem 0 3rem;
}
