/* admin.olict.com
   Olict's own two typefaces and one colour: Cooper for the name, headings and figures, Inter for
   everything you read or press, Olict blue for the brand surfaces. Flat: hairlines, no shadows.
   No inline styles anywhere: the page's Content-Security-Policy forbids them. */
@font-face { font-family: Cooper; font-weight: 500; src: url(/fonts/CooperMdBT-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: Cooper; font-weight: 300; src: url(/fonts/CooperLtBT-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: Inter; font-weight: 400; src: url(/fonts/Inter-Regular.otf) format('opentype'); font-display: swap; }
@font-face { font-family: Inter; font-weight: 500; src: url(/fonts/Inter-Medium.otf) format('opentype'); font-display: swap; }
@font-face { font-family: Inter; font-weight: 600; src: url(/fonts/Inter-SemiBold.otf) format('opentype'); font-display: swap; }

:root {
  --blue: #1560fe; --on-blue: #fff;
  --bg: #fff; --tint: #f4f6fb; --ink: #0b1533; --dim: #5d6680; --line: #dfe3ee; --link: #1560fe;
  --bad: #b3261e; --bad-bg: #fbeceb; --warn: #8a5a00; --warn-bg: #fdf3d9; --ok: #17693a; --ok-bg: #e6f4ea; --plain-bg: #eef1f7;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: Cooper, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1f; --tint: #101832; --ink: #e9ecf5; --dim: #96a0bd; --line: #222c4a; --link: #7ea6ff;
    --bad: #ff9a90; --bad-bg: #3a1716; --warn: #f3c765; --warn-bg: #33280b; --ok: #7fd49a; --ok-bg: #10301d; --plain-bg: #18213d;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--sans); font-feature-settings: 'cv11', 'ss01', 'tnum'; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
code { background: var(--plain-bg); border-radius: 3px; padding: 1px 5px; font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.mark { font-family: var(--display); font-weight: 500; }
.mark sup { font-size: .34em; vertical-align: super; margin-left: .04em; }
.loading { position: fixed; inset: 0; display: grid; place-items: center; background: var(--blue); color: var(--on-blue); font-size: 24px; }

/* ---------- sign-in: the logo at poster size, everything else small and on the bottom edge ---------- */
.gate {
  min-height: 100vh; min-height: 100dvh; background: var(--blue); color: var(--on-blue);
  display: grid; grid-template: "top top" auto "space space" 1fr "mark form" auto / 1fr auto;
  align-items: end; column-gap: 48px; padding: 28px clamp(24px, 4.5vw, 64px) clamp(28px, 4.5vw, 56px);
  overflow: hidden;
}
.gate-top { grid-area: top; display: flex; justify-content: space-between; font-weight: 500; font-size: 13px; }
.gate-top span:last-child { opacity: .7; }
.gate-mark {
  grid-area: mark; font-family: var(--display); font-weight: 500; line-height: .74; letter-spacing: -.02em;
  font-size: clamp(120px, 27vw, 430px); margin: 0 0 -.04em -.05em; white-space: nowrap; user-select: none;
  animation: settle .9s cubic-bezier(.2, .7, .2, 1) both;
}
.gate-mark sup { font-size: .2em; vertical-align: top; position: relative; top: .5em; margin-left: .06em; letter-spacing: 0; }
.gate-box { grid-area: form; width: 300px; padding-bottom: 6px; }
.gate-box h1 { font: 300 34px/1.1 var(--display); margin: 0 0 20px; letter-spacing: -.01em; }
.btn.gbtn {
  display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; color: #0b1533; border: 0; border-radius: 4px;
  padding: 14px 16px; font-weight: 600; font-size: 15px; text-align: left; transition: transform .12s ease;
}
.btn.gbtn:hover { transform: translateY(-1px); }
.btn.gbtn:active { transform: none; }
.btn.gbtn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gate-note { margin: 14px 0 0; font-size: 13px; line-height: 1.45; opacity: .75; }
.gate-msg { margin: 12px 0 0; min-height: 1.5em; font-size: 13px; font-weight: 600; }
.gate-msg:not(:empty) { background: #fff; color: var(--bad); padding: 8px 12px; border-radius: 4px; }
/* The one moment of motion: the name rises into place. It never hides anything, so a browser that
   skips the animation still shows the whole screen. */
@keyframes settle { from { transform: translateY(.12em); } }
@media (prefers-reduced-motion: reduce) { .gate-mark { animation: none; } .btn.gbtn { transition: none; } }
@media (max-width: 860px) {
  .gate { grid-template: "top" auto "space" 1fr "form" auto "mark" auto / 1fr; row-gap: 40px; }
  .gate-box { width: auto; max-width: 340px; }
  .gate-mark { font-size: clamp(110px, 36vw, 300px); }
}

/* ---------- inside ---------- */
.btn { border: 1px solid var(--line); background: var(--bg); border-radius: 4px; padding: 7px 13px; cursor: pointer; font-weight: 500; }
.btn:hover { border-color: var(--dim); }
.btn.quiet { border-color: transparent; background: none; color: var(--dim); padding: 6px 8px; }
.btn.quiet:hover { color: var(--ink); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: stretch; gap: 28px; padding: 0 clamp(16px, 3vw, 40px); background: var(--blue); color: var(--on-blue); }
.mark.small { font-size: 23px; line-height: 52px; white-space: nowrap; }
.tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 0 12px; cursor: pointer; color: inherit; opacity: .72; white-space: nowrap; font-weight: 500; border-bottom: 2px solid transparent; border-top: 2px solid transparent; }
.tabs button:hover { opacity: 1; }
.tabs button[aria-current="page"] { opacity: 1; border-bottom-color: #fff; }
.tabs button:focus-visible, .top .btn:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.tabs .n { margin-left: 7px; font-size: 12px; padding: 1px 6px; border-radius: 3px; background: #fff; color: var(--bad); font-weight: 600; }
.who { display: flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; }
.who > span { opacity: .8; }
.top .btn.quiet { color: #fff; opacity: .8; }
.top .btn.quiet:hover { opacity: 1; }
.banner { margin: 16px clamp(16px, 3vw, 40px) 0; padding: 10px 14px; border-radius: 4px; background: var(--bad-bg); color: var(--bad); font-weight: 500; }
.view { padding: 32px clamp(16px, 3vw, 40px) 64px; max-width: 1320px; margin: 0 auto; }

h2 { font: 300 24px/1.2 var(--display); letter-spacing: -.01em; margin: 44px 0 12px; }
h2:first-child { margin-top: 0; }
h2 small { font: 400 13px/1.2 var(--sans); letter-spacing: 0; color: var(--dim); margin-left: 10px; }
.dim { color: var(--dim); }
.card { border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.pad { padding: 14px 16px; }

/* the four figures: one ruled strip, not four boxes */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.tiles .card { border: 0; border-radius: 0; background: none; }
.tile { padding: 18px 20px 20px 0; }
.tile + .tile { padding-left: 20px; border-left: 1px solid var(--line); }
.tile b { display: block; font: 300 56px/1 var(--display); letter-spacing: -.02em; }
.tile span { display: block; margin-top: 8px; color: var(--dim); font-size: 13px; }
.tile.bad b { color: var(--bad); }
.scanline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; color: var(--dim); font-size: 13px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 16px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 200px; }
.list b { font-weight: 600; }

.chip { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.5; padding: 0 7px; border-radius: 3px; white-space: nowrap; }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.plain { background: var(--plain-bg); color: var(--dim); }

.tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
input[type=text], input[type=search], input[type=date], input[type=number], select { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 6px 9px; min-width: 0; }
input:hover, select:hover { border-color: var(--dim); }
input[type=search] { width: 260px; }
label.check { display: inline-flex; gap: 7px; align-items: center; color: var(--dim); cursor: pointer; }
input[type=checkbox] { accent-color: var(--blue); }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--dim); padding: 10px 14px; white-space: nowrap; background: var(--tint); }
td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.proj { cursor: pointer; }
tr.proj:hover td { background: var(--tint); }
.pname { font-weight: 600; }
.pid { color: var(--dim); font-size: 12.5px; }
.addr { font-size: 13px; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
tr.detail td { background: var(--tint); padding: 16px 18px 20px; box-shadow: inset 2px 0 0 var(--blue); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 24px; font-size: 13px; margin-bottom: 14px; }
.detail-grid b { color: var(--dim); font-weight: 500; margin-right: 8px; }
.finding { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.finding.accepted .grow { color: var(--dim); text-decoration: line-through; }
.finding .grow { flex: 1; min-width: 220px; }
.row-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.row-form input[type=text] { flex: 1; min-width: 160px; }
.row-form b { font-weight: 500; color: var(--dim); }

.sect { margin-bottom: 20px; }
.sect h3 { margin: 0; padding: 12px 16px; font: 300 19px/1.3 var(--display); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--tint); border-radius: 3px 3px 0 0; }
.sect h3 span { color: var(--dim); font: 400 13px/1.3 var(--sans); white-space: nowrap; }
.todo { display: flex; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); align-items: flex-start; cursor: pointer; }
.todo input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.todo.done .txt { color: var(--dim); }
.todo .txt { flex: 1; max-width: 90ch; }
.todo .x { visibility: hidden; }
.todo:hover .x, .todo .x:focus { visibility: visible; }
.add { padding: 10px 16px; border-top: 1px solid var(--line); margin: 0; }

.manual td { padding: 6px 8px; }
.manual td input { width: 100%; border-color: transparent; background: none; }
.manual td input:hover, .manual td input:focus { border-color: var(--line); background: var(--bg); }
.manual tr:last-child td input { border-color: var(--line); }

@media (max-width: 760px) {
  .top { flex-wrap: wrap; gap: 0 16px; }
  .tabs { order: 3; flex-basis: 100%; margin: 0 -12px; }
  .tabs button { padding: 10px 12px; }
  .who { margin-left: auto; }
  .who > span { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { padding: 16px 12px 16px 0; }
  .tile:nth-child(3) { padding-left: 0; border-left: 0; }
  .tile:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tile b { font-size: 44px; }
  input[type=search] { width: 100%; }
}
