/* Matrix City PD — records terminal
   Black / gold / silver. Grunge CRT finish over a dark metal chassis.
   Class names are unchanged from the previous sheet; only the skin differs. */

:root {
  color-scheme: dark;
  --bg:        #09090a;
  --bg-2:      #0e0d10;
  --panel:     #151318;
  --panel-2:   #1d1a21;
  --panel-hi:  #26222c;
  --line:      #38322a;   /* dark bronze */
  --line-2:    #2a2730;
  --ink:       #dcd7c9;
  --ink-dim:   #8d8878;
  --gold:      #c9a54c;
  --gold-hi:   #e7c874;
  --gold-dim:  #7d6a37;
  --silver:    #b9bdc6;
  --silver-dim:#7c8088;
  --danger:    #cc5949;
  --warn:      #d69a3c;
  --ok:        #83a98c;
  --link:      #e7c874;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background:
    linear-gradient(180deg, #0c0b0e 0%, #070708 100%) fixed;
  color: var(--ink);
  font: 14px/1.55 ui-monospace, "SF Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
}

/* --- grunge overlays ---------------------------------------------------- */
body::before {           /* film grain */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: .045; mix-blend-mode: overlay;
}
body::after {            /* scanlines + CRT vignette */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.16) 2px 4px),
    radial-gradient(130% 100% at 50% 35%, rgba(0,0,0,0) 52%, rgba(0,0,0,.6) 100%);
  animation: crt 7s infinite steps(1);
}
@keyframes crt { 0%,96% { opacity: 1; } 97% { opacity: .9; } 98% { opacity: .98; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

.topbar { position: relative; z-index: 2; }
main    { position: relative; z-index: 1; }

/* --- type ------------------------------------------------------------------ */
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

main { max-width: 1040px; margin: 0 auto; padding: 1.5rem 1.15rem 4.5rem; }

h1 {
  font-size: 1.3rem; margin: .1rem 0 1.15rem;
  text-transform: uppercase; letter-spacing: .14em; font-weight: 800;
  color: var(--gold-hi); text-shadow: 0 0 14px rgba(201,165,76,.22);
}
h2 {
  font-size: 1rem; margin-top: 2.1rem; padding-bottom: .35rem;
  text-transform: uppercase; letter-spacing: .11em; font-weight: 700;
  color: var(--silver);
  border-bottom: 1px solid var(--line);
}
.muted, .card-l, .lede { color: var(--ink-dim); }
code { color: var(--gold-hi); }
strong { color: var(--ink); }

/* --- top bar ------------------------------------------------------------- */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.15rem;
  padding: .5rem 1.15rem;
  background: linear-gradient(180deg, #1b1820 0%, #100e13 100%);
  border-bottom: 2px solid var(--gold-dim);
  box-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-hi); text-shadow: 0 0 10px rgba(201,165,76,.3);
}
.brand .crest-mini { width: 20px; height: 24px; display: block; flex: none; }
.topbar nav { display: flex; flex-wrap: wrap; gap: .15rem 1.05rem; align-items: center; }
.topbar nav a {
  color: var(--silver); text-transform: uppercase;
  letter-spacing: .06em; font-size: .8rem;
}
.topbar nav a:hover { color: var(--gold-hi); text-decoration: none; }
.topbar nav .navsep { color: var(--gold-dim); opacity: .7; }
.topbar nav .navform { display: inline; margin: 0; }
.topbar nav .navbtn {
  background: none; border: 0; padding: 0; box-shadow: none; cursor: pointer;
  color: var(--silver); text-transform: uppercase; letter-spacing: .06em;
  font: inherit; font-size: .8rem;
}
.topbar nav .navbtn:hover { color: var(--gold-hi); background: none; }
.topbar nav .navsearch { display: inline-flex; gap: .3rem; align-items: center; }
.topbar nav .navsearch input {
  width: 13rem; max-width: 40vw; margin: 0; padding: .15rem .45rem;
  font: inherit; font-size: .8rem; color: var(--silver);
  background: rgba(0, 0, 0, .35); border: 1px solid var(--gold-dim); border-radius: 3px;
}
.topbar nav .navsearch input:focus { outline: 1px solid var(--gold-hi); }
.topbar .who { color: var(--ink-dim); letter-spacing: .03em; }
.topbar .who a { color: var(--silver); }

/* --- flash ------------------------------------------------------------------ */
.flash {
  list-style: none; margin: 0 0 1.3rem; padding: .6rem .95rem;
  background: linear-gradient(180deg, #241f13, #191510);
  border: 1px solid var(--gold-dim); border-left: 3px solid var(--gold);
  color: var(--ink);
}

/* --- tables ------------------------------------------------------------------ */
table {
  width: 100%; border-collapse: collapse; margin: .7rem 0 1.5rem;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.2);
}
th, td { text-align: left; padding: .5rem .65rem; vertical-align: top; }
th {
  background: linear-gradient(180deg, #221f16, #191611);
  color: var(--gold); font-weight: 700; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 1px solid var(--gold-dim);
}
td { border-bottom: 1px solid var(--line-2); }
tbody tr:last-child td, table tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(201,165,76,.045); }

/* --- forms ------------------------------------------------------------------ */
form.stack { display: grid; gap: .85rem; max-width: 660px; }
label { display: grid; gap: .3rem; }
label > span {
  color: var(--silver-dim); text-transform: uppercase;
  letter-spacing: .06em; font-size: .74rem;
}
input, textarea, select {
  background: #0c0b0f; color: var(--ink);
  border: 1px solid var(--line); border-radius: 3px;
  padding: .5rem .6rem; font: inherit; width: 100%;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.55);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--gold-dim);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.55), 0 0 0 2px rgba(201,165,76,.16);
}
textarea { min-height: 6rem; resize: vertical; }

button, .btn {
  display: inline-block; font: inherit; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: .07em;
  padding: .48rem 1rem; border-radius: 3px;
  color: #1b1608; border: 1px solid #6f5a2b;
  background: linear-gradient(180deg, #dcb862 0%, #c9a54c 45%, #a4842e 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 1px 2px rgba(0,0,0,.55);
  text-shadow: 0 1px 0 rgba(255,255,255,.22);
}
button:hover, .btn:hover { filter: brightness(1.08); text-decoration: none; }
button:active, .btn:active { transform: translateY(1px); box-shadow: inset 0 1px 4px rgba(0,0,0,.5); }
button.ghost, .btn.ghost {
  background: linear-gradient(180deg, #26232b, #191720);
  color: var(--silver); border: 1px solid var(--line);
  text-shadow: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
button.ghost:hover, .btn.ghost:hover { color: var(--gold-hi); border-color: var(--gold-dim); filter: none; }
button.danger {
  background: linear-gradient(180deg, #3a2320, #291816);
  color: #e59386; border-color: #6e3a33; text-shadow: none;
}

/* --- cards / worklists ---------------------------------------------------- */
.cards { display: flex; flex-wrap: wrap; gap: .9rem; }
.card {
  min-width: 168px; padding: 1rem 1.15rem; border-radius: 4px;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--line); border-top-color: #4a4234;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 2px 7px rgba(0,0,0,.45);
}
a.card:hover { border-color: var(--gold-dim); text-decoration: none; }
.card-n {
  font-size: 1.9rem; font-weight: 800; color: var(--gold-hi);
  text-shadow: 0 0 12px rgba(201,165,76,.25);
}
.card-l { text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; color: var(--silver-dim); }

/* --- pills -------------------------------------------------------------------- */
.pill {
  display: inline-block; padding: .08rem .5rem; border-radius: 3px;
  border: 1px solid var(--silver-dim); color: var(--silver);
  text-transform: uppercase; letter-spacing: .05em; font-size: .72rem;
}
.pill.withheld { border-color: var(--danger); color: #e5988c; }
.pill.ok { border-color: var(--ok); color: var(--ok); }
.pill.route-review, .pill.route-require { border-color: var(--danger); color: #e5988c; }
.pill.route-suggest { border-color: var(--warn); color: var(--warn); }
.pill.route-citable { border-color: var(--ok); color: var(--ok); }

/* --- next-step banner --------------------------------------------------------- */
.nextstep {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  margin: 0 0 1.3rem; padding: .6rem .8rem; border-radius: 3px;
  background: linear-gradient(180deg, #1b1922, #131118);
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.nextstep form { display: inline; }
.nextstep-label { color: var(--gold); text-transform: uppercase; letter-spacing: .09em; margin-right: .3rem; }

/* --- misc ------------------------------------------------------------------- */
form.filters { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin: .7rem 0 1.1rem; }
form.filters input[type=text] { width: auto; min-width: 12rem; }
label.inline { display: inline-flex; flex-direction: row; gap: .4rem; align-items: center; }
label.inline input { width: auto; box-shadow: none; }
label.inline > span { text-transform: none; letter-spacing: 0; font-size: inherit; color: var(--ink); }
.row { display: flex; gap: .85rem; flex-wrap: wrap; }
.row > label { flex: 1 1 12rem; }

pre {
  background: #0c0b0f; border: 1px solid var(--line); border-radius: 3px;
  padding: .75rem; overflow-x: auto; box-shadow: inset 0 1px 4px rgba(0,0,0,.5);
}
.doc {
  background: linear-gradient(180deg, #16141a, #121016);
  border: 1px solid var(--line); border-radius: 3px; padding: .85rem 1rem;
}

ul.log { list-style: none; padding: 0; }
ul.log li { border-left: 2px solid var(--gold-dim); padding: .3rem 0 .6rem .75rem; margin-bottom: .5rem; }

.breach {
  margin-top: .4rem; opacity: .3; font-size: .78rem;
  background: transparent; border: 1px dashed var(--line); color: var(--silver-dim);
  text-shadow: none;
}
.breach:hover { opacity: 1; border-color: var(--warn); color: var(--warn); filter: none; }

/* --- landing / crest --------------------------------------------------------- */
.landing { max-width: 620px; margin: 1.5rem auto 0; text-align: center; }
.landing p { text-align: left; }
.landing h1 { color: var(--gold-hi); }
.crest-wrap { display: flex; justify-content: center; margin: .5rem 0 1.4rem; }
/* The seal is a transparent white-ink PNG; mask a brushed-gold gradient with it
   so the distressed edges read as inked metal on the dark chassis. */
.crest {
  display: block; width: 216px; height: 216px;
  background: linear-gradient(155deg, #f3d68d 0%, #d8b45e 32%, #c9a54c 52%, #9a7c38 72%, #ecc86f 100%);
  -webkit-mask: var(--seal) center / contain no-repeat;
          mask: var(--seal) center / contain no-repeat;
  filter: drop-shadow(0 0 13px rgba(201,165,76,.30)) drop-shadow(0 3px 6px rgba(0,0,0,.5));
}
.lede {
  text-align: center; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; color: var(--silver-dim); margin: 0 0 1.6rem;
}
.rule {
  border: 0; height: 1px; margin: 1.4rem 0;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

/* --- there is no spoon (404) ------------------------------------------------- */
.spoon { text-align: center; max-width: 520px; margin: 3.5rem auto 0; }
.spoon h1 { font-size: 3.2rem; letter-spacing: .3em; margin-bottom: .2rem; }
.spoon .lede { font-size: 1.05rem; text-align: center; }
.rabbit {
  display: inline-block; margin-top: 2.6rem;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: #fff; opacity: .22; transition: opacity .3s;
}
.rabbit:hover, .rabbit:focus { opacity: 1; text-decoration: none; text-shadow: 0 0 9px #fff; }

/* --- déjà vu (nav glitch) --------------------------------------------------- */
.topbar nav a.glitch {
  color: #5dff7a !important;
  text-shadow: 0 0 6px #5dff7a, 2px 0 #f0f, -2px 0 #0ff;
  animation: glitch .12s steps(2) infinite;
}
@keyframes glitch { 50% { transform: translateX(1px) skewX(-8deg); } }

/* --- knock, knock (typed phrase overlay) ------------------------------------ */
#wake {
  position: fixed; inset: 0; z-index: 99; background: #000;
  color: #4cff6a; font: 16px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  padding: 3rem; text-shadow: 0 0 8px rgba(76,255,106,.6);
}
#wake pre { margin: 0; white-space: pre-wrap; font: inherit; }
#wake a { color: #4cff6a; text-decoration: underline; }

/* --- close with a reason ---------------------------------------------------- */
.closer { margin: .6rem 0 1.2rem; }
.closer summary { cursor: pointer; color: var(--silver-dim); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.closer summary:hover { color: var(--danger); }
.closer form { margin-top: .6rem; padding: .8rem 1rem; border: 1px solid var(--line); background: var(--panel); }

/* --- inline "edit fields" panel ---------------------------------------------- */
.editpanel { margin: 1.4rem 0; border: 1px solid var(--line); background: var(--panel); }
.editpanel > summary {
  cursor: pointer; padding: .55rem .9rem; color: var(--silver);
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.editpanel > summary:hover { color: var(--gold-hi); }
.editpanel[open] > summary { border-bottom: 1px solid var(--line); }
.editpanel > *:not(summary) { margin-left: .9rem; margin-right: .9rem; }
.editpanel h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--silver-dim); margin: 1.4rem 0 .4rem; }
.editpanel table { font-size: .82rem; }
.editrow { border: 0; background: none; margin: .3rem 0 0; }
.editrow > summary { padding: .1rem 0; font-size: .7rem; }

/* --- recognition + descriptor chips ------------------------------------------ */
.recog { border: 1px solid var(--line); background: var(--panel); padding: .7rem .9rem; margin: .8rem 0; }
.recog legend { color: var(--silver); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: 0 .4rem; }
.recog > label.inline { display: block; margin: .3rem 0; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .5rem 0; }
.chips-label { color: var(--silver-dim); font-size: .72rem; letter-spacing: .09em;
  text-transform: uppercase; min-width: 7rem; }
label.chip { cursor: pointer; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .7rem; border: 1px solid var(--line);
  border-radius: 999px; font-size: .78rem; color: var(--ink-dim); background: var(--panel-2);
  white-space: nowrap;
}
label.chip input { margin: 0; flex: none; }
label.chip:has(input:checked) { border-color: var(--gold); color: var(--gold-hi); background: var(--panel-hi); }
.marks { margin-top: .3rem; display: flex; flex-wrap: wrap; gap: .25rem; }

/* --- chain of custody -------------------------------------------------------- */
ol.custody { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .4rem 0 1rem; }
ol.custody li {
  padding: .3rem .8rem; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--ink-dim); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
}
ol.custody li.done { border-color: var(--gold-dim); color: var(--silver); }
ol.custody li.now  { border-color: var(--gold); color: var(--gold-hi); background: var(--panel-hi); }
ol.custody li + li::before { content: "›"; margin-right: .4rem; color: var(--gold-dim); }
.inline-form { display: flex; gap: .3rem; align-items: center; margin-top: .3rem; flex-wrap: wrap; }

/* --- training sandbox --------------------------------------------------------- */
.sandbox-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem;
  margin: 0 0 1rem; padding: .6rem .9rem; border-radius: 4px;
  background: repeating-linear-gradient(135deg, #2a2410 0 12px, #231e0d 12px 24px);
  border: 1px solid var(--gold-dim); color: var(--gold-hi);
}
.sandbox-banner form { margin: 0; }
.sandbox-banner button { font-size: .8rem; padding: .3rem .7rem; }

/* --- tablet HUD: always-there Detach button ----------------------------------- */
.detach-btn {
  position: fixed; top: .6rem; right: .6rem; z-index: 50;
  padding: .35rem .75rem; border-radius: 4px; font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none;
  background: #3a2320; color: #f0b3a8; border: 1px solid #6e3a33;
  box-shadow: 0 2px 7px rgba(0,0,0,.5);
}
.detach-btn:hover { background: #4a2a26; color: #ffd0c8; text-decoration: none; }

/* --- on an in-world screen (tablet, laptop, classroom display) -----------------
   The scripts draw pages at 2048x1024, a power-of-two size SL shows without
   padding, so the face's own texture never needs zooming. Nothing else opens
   a window exactly that size. Here: double everything so it's readable, and
   widen the page by 2:1 / 16:10 = 1.25, because SL stretches the 2:1 page over
   a 16:10 screen and would otherwise squeeze it side to side. */
@media (min-width: 2040px) and (max-width: 2056px) and (min-height: 1016px) and (max-height: 1032px) {
  html { zoom: 2; overflow-x: hidden; }
  body { width: 80%; transform: scaleX(1.25); transform-origin: 0 0; }
}

/* --- wide tables on a screen that cannot scroll sideways ----------------------
   A prim shows the page at a fixed size and there is no comfortable way to
   scroll one sideways, so a table with a dozen columns is unusable there. On a
   prim (and in a narrow window) these tables stop being tables: each row
   becomes a block, and every cell carries its own heading. */
.prim table.stack-on-prim thead,
.prim table.stack-on-prim tr:first-child th {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.prim table.stack-on-prim,
.prim table.stack-on-prim tbody { display: block; width: 100%; }
.prim table.stack-on-prim tr {
  display: block; margin: 0 0 .7rem; padding: .5rem .7rem;
  border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.02);
}
.prim table.stack-on-prim td {
  display: flex; align-items: center; gap: .6rem;
  border: 0; padding: .2rem 0; width: auto;
}
.prim table.stack-on-prim td::before {
  content: attr(data-label); flex: 0 0 9rem;
  color: var(--silver-dim); text-transform: uppercase; letter-spacing: .05em;
  font-size: .72rem;
}
.prim table.stack-on-prim td[data-label=""]::before { content: ""; flex-basis: 0; }
.prim table.stack-on-prim td input[type="text"],
.prim table.stack-on-prim td input:not([type]),
.prim table.stack-on-prim td select { width: auto; min-width: 12rem; max-width: 100%; }
.prim table.stack-on-prim form { display: contents; }

/* A table nobody has labelled yet still must not push the page sideways:
   it scrolls inside its own box instead of taking the whole page with it. */
.prim table:not(.stack-on-prim) { display: block; overflow-x: auto; }

/* Room to work: the nav and the page itself stop competing for width. */
.prim .topbar nav { flex-wrap: wrap; row-gap: .35rem; }
.prim .topbar nav .navsearch input { width: 11rem; }
.prim main { padding-left: .8rem; padding-right: .8rem; }
.prim table { width: 100%; }

/* --- a record still waiting for its Matrix number ----------------------------- */
.missing-number {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin: .4rem 0 1rem; padding: .55rem .8rem; border-radius: 4px;
  border: 1px dashed var(--gold-dim); color: var(--gold-hi);
}
.missing-number input { width: 9rem; }

/* --- the Official Witness Statement ------------------------------------------- */
.form-head { text-align: center; margin: .5rem 0 1rem; }
.form-dept { letter-spacing: .25em; color: var(--gold-hi); margin: 0; font-size: .85rem; }
.form-title { margin: .2rem 0 0; }
.form-facts { margin: .4rem 0 1rem; }
.form-facts th { width: 13rem; color: var(--silver-dim); font-weight: 600; }
.statement-form fieldset.checks { border: 1px solid var(--line); border-radius: 4px; padding: .5rem .8rem;
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center; }
.statement-form .declaration { align-items: flex-start; line-height: 1.5; }
.statement-text { white-space: pre-wrap; margin: .4rem 0 1rem; padding: .7rem 1rem;
  border-left: 3px solid var(--gold-dim); background: rgba(255,255,255,.03); }
.copy-link { flex: 1 1 22rem; font-family: inherit; }
.form-motto { text-align: center; margin-top: 2rem; letter-spacing: .06em; }

.log-reading { flex-direction: column; align-items: flex-start; }
.log-text { white-space: pre-wrap; font-size: .8rem; max-height: 22rem; overflow: auto; }

.uuid-add { display: flex; gap: .4rem; }
.uuid-add input { flex: 1; }

.identity-check { margin: .4rem 0 1rem; padding: .55rem .8rem; border-radius: 4px; border: 1px solid var(--line); }
.identity-check.flagged { border-color: #6e3a33; background: rgba(110,58,51,.18); }

.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0 .2rem; }
.inline-form input[name="id_name"] { width: 14rem; }

/* --- printing: a statement or a report on paper, as the form looks ------------- */
@media print {
  :root { color-scheme: light; }
  html, body { background: #fff !important; color: #111 !important; }
  .topbar, .flash, .sandbox-banner, .detach-btn, .missing-number, .identity-check,
  form, button, .btn, details > summary, .next-step, nav { display: none !important; }
  details { display: block; }
  details > *:not(summary) { display: block !important; }
  a { color: #111 !important; text-decoration: none; }
  main { max-width: none; margin: 0; padding: 0; }
  table, .form-facts { width: 100%; border-collapse: collapse; }
  .form-facts th, .form-facts td, table th, table td {
    border-bottom: 1px solid #bbb !important; color: #111 !important; }
  .statement-text { border-left: 3px solid #888; background: none; }
  .form-dept, .form-title, h1, h2, h3 { color: #111 !important; text-shadow: none !important; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
.print-link { float: right; }
