/* Intelgic suite look: near-black page with a faint grid, dark panels, neon-blue accent.
   The token names match the other *.intelgic.ai apps so a later shared theme can drop in. */
:root {
  color-scheme: dark;
  --bg: #080A09; --surface: #111513; --surface-2: #181D1A; --surface-3: #202622; --line: #2A322D;
  --ink: #FFFFFF; --ink2: #9DA8A1; --ink3: #5E6A63;
  --brand: #14C2FF; --brand2: #0090CC; --neon: #14C2FF; --neon-rgb: 20, 194, 255; --neon-bright: #7FE0FF;
  --on-neon: #04130B; --good: #3ED598; --warn: #FFB020; --danger: #FF5A5F;
  --grid-line: #22303A;
  --shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(var(--neon-rgb), .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--ink); font: 16px/1.55 var(--font); min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 15% -10%, rgba(var(--neon-rgb), .10), transparent 55%),
    radial-gradient(ellipse at 100% 110%, rgba(var(--neon-rgb), .07), transparent 50%),
    linear-gradient(rgba(34, 48, 58, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 48, 58, .35) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  background-attachment: fixed;
}
a { color: var(--neon); }
a:hover { color: var(--neon-bright); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* Header: wordmark with a small eyebrow, glass bar */
.top { position: sticky; top: 0; z-index: 5; background: rgba(8, 10, 9, .72); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 60px; }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; padding: 8px 0; }
.brand .word { font-size: 24px; font-weight: 300; letter-spacing: .5px; }
.brand .mark { font-weight: 800; letter-spacing: -2px; margin-right: 3px; }
.brand .eyebrow { color: var(--neon); font-size: 10px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; margin-top: 4px; }
nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
nav a, .top .linkish { color: var(--ink2); text-decoration: none; font: inherit; font-size: 14px; background: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer; padding: 6px 12px; }
nav a:hover, .top .linkish:hover { color: var(--ink); border-color: var(--line); }
nav a.on { color: var(--ink); background: var(--surface-2); border-color: var(--line); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--neon); text-decoration: underline; cursor: pointer; }
.linkish:disabled { color: var(--ink3); text-decoration: none; cursor: default; }
.env { background: rgba(255, 176, 32, .12); color: var(--warn); border-bottom: 1px solid rgba(255, 176, 32, .35); text-align: center; padding: 6px 16px; font-size: 14px; }

main { padding-top: 12px; padding-bottom: 72px; min-height: 60vh; }
.hero { margin: 16px 0 22px; padding: 30px 24px 28px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(135deg, rgba(var(--neon-rgb), .14), rgba(17, 21, 19, .9) 55%); box-shadow: var(--shadow); }
.hero h1 { font-size: 34px; line-height: 1.15; margin: 0 0 10px; font-weight: 800; }
.hero p { color: var(--ink2); margin: 0; max-width: 640px; white-space: pre-wrap; }
h1 { font-size: 26px; margin: 18px 0 6px; font-weight: 800; }
h2 { font-size: 19px; margin: 0 0 4px; font-weight: 700; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.section-head h2 { font-size: 22px; }
.counter { font-weight: 700; color: var(--neon); }
.muted { color: var(--ink2); }
.small { font-size: 14px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 12px 0; box-shadow: var(--shadow); }
.item { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink3); margin-top: 2px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--on-neon); }
.tick.done { background: var(--good); border-color: var(--good); }
.tick.redo, .tick.unsent { border-color: var(--warn); }
.item.is-done h2 { color: var(--ink2); }
.meta { display: flex; gap: 8px 14px; flex-wrap: wrap; font-size: 14px; color: var(--ink2); margin: 2px 0 6px; }
.tag { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.tag.redo { color: var(--warn); border-color: var(--warn); }
.desc { white-space: pre-wrap; margin: 6px 0; }

label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: 15px; }
label.check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
input[type=checkbox] { accent-color: var(--neon); width: 16px; height: 16px; margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], textarea, select {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(var(--neon-rgb), .18); }
::placeholder { color: var(--ink3); }
input[type=file] { color: var(--ink2); font: inherit; font-size: 14px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; margin-right: 10px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--neon); }
textarea { min-height: 90px; }
textarea.code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 13px; min-height: 320px; }

.btn { display: inline-block; font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--neon); background: var(--neon); color: var(--on-neon); cursor: pointer; text-decoration: none; margin-top: 10px; }
.btn:hover { background: var(--neon-bright); border-color: var(--neon-bright); color: var(--on-neon); }
.btn.ghost { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--neon); color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.err { color: var(--danger); margin: 8px 0 0; white-space: pre-wrap; }
.okmsg { color: var(--good); margin: 6px 0 0; }

.progress { height: 8px; background: var(--surface-3); border-radius: 6px; overflow: hidden; margin: 8px 0 4px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--brand2), var(--neon)); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink2); font-weight: 600; font-size: 13px; }
.table-wrap { overflow-x: auto; }
.signin { max-width: 440px; margin: 40px auto; }
.field-row { display: grid; grid-template-columns: 1fr 130px 100px 40px; gap: 8px; align-items: center; margin: 6px 0; }
.field-row .btn { margin: 0; padding: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.policy h2 { font-size: 20px; margin-top: 8px; }
.policy .body { white-space: pre-wrap; color: var(--ink2); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0; }
dl.kv dt { color: var(--ink2); }
dl.kv dd { margin: 0; white-space: pre-wrap; }
ul.preview { padding-left: 20px; }

/* Footer: HR's note, then the company line */
.foot { color: var(--ink2); font-size: 14px; padding: 14px 16px 6px; border-top: 1px solid var(--line); white-space: pre-wrap; }
.legal { text-align: center; color: rgba(255, 255, 255, .6); font-size: 11px; letter-spacing: .2px; padding: 8px 16px 22px; }

/* Links inside HR-written text: always underlined, wrap long addresses on small screens. */
.desc a, .policy .body a, .hero p a, .foot a { text-decoration: underline; overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .field-row, .grid2 { grid-template-columns: 1fr 1fr; }
  .hero { padding: 24px 18px; }
  .hero h1 { font-size: 28px; }
  .brand .word { font-size: 21px; }
  th.hide-sm, td.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
