/* LookalikeLens owner UI - "detective desk" noir theme.
   Palette base: Mercury #EDE7DA, Shadow #84785F, Coffee #A67956,
   Nutmeg #743C30, Lunar Green #3A4E37, string red #B5392F. */
* { box-sizing: border-box; }
body {
  margin: 0;
  color: #33291a;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
  background: url('/static/street-bg.svg') center / cover no-repeat fixed, #101623;
}
.wrap {
  max-width: 1040px; margin: 28px auto 48px; padding: 40px 52px 40px 52px;
  position: relative;
  background: url('/static/parchment-sheet.svg') center / 100% 100% no-repeat, #e6cfa0;
  border-radius: 3px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.5), 0 22px 60px rgba(0,0,0,0.75);
}

.site-header {
  background: linear-gradient(to bottom, #182033, #0e1420);
  padding: 14px 24px;
  border-bottom: 3px solid #B5392F;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  display: flex; justify-content: space-between; align-items: center;
}
.brand { font-size: 20px; font-weight: 700; color: #f0e2c0; text-decoration: none;
         font-family: "Courier New", Courier, monospace; letter-spacing: 0.05em; }
.header-note { color: #b8ad94; font-size: 13px;
               font-family: "Courier New", Courier, monospace; }
.header-note strong { color: #f0e2c0; }

h1 { font-size: 26px; font-weight: 700; margin: 18px 0 10px;
     font-family: "Courier New", Courier, monospace; letter-spacing: 0.02em; }
h2 { font-size: 17px; font-weight: 700; margin: 26px 0 10px;
     font-family: "Courier New", Courier, monospace;
     text-transform: uppercase; letter-spacing: 0.12em; }
.muted, .sub { color: #6f6248; font-size: 14px; }
.sub { padding-top: 6px; }
.sub strong { color: #2c2a24; }
.note { color: #6f6248; font-size: 13px; line-height: 1.6; }
.foot { margin-top: 26px; padding-top: 12px; border-top: 2px dashed #c9bd9f;
        color: #6f6248; font-size: 12.5px; line-height: 1.6;
        font-family: "Courier New", Courier, monospace; }
a { color: #3A4E37; }
.open { display: inline-block; color: #B5392F; font-weight: 700; font-size: 13px;
        text-decoration: none; font-family: "Courier New", Courier, monospace;
        text-transform: uppercase; letter-spacing: 0.1em;
        border: 2px solid #B5392F; padding: 3px 9px; border-radius: 2px;
        transform: rotate(-1.5deg); opacity: 0.9; }
.open:hover { background: rgba(181,57,47,0.08); }

/* Domain entry - case intake form */
.center-box { max-width: 580px; margin: 46px auto 40px; }
.center-box h1 { margin-top: 0; }
.center-box label { display: block; font-size: 12px; font-weight: 700;
                    text-transform: uppercase; letter-spacing: 0.14em;
                    font-family: "Courier New", Courier, monospace;
                    color: #743C30; margin: 18px 0 6px; }
.fieldrow { display: flex; gap: 12px; align-items: flex-end; }
.fieldrow input {
  flex: 1; background: rgba(255,253,248,0.6); border: none;
  border-bottom: 2px dashed #84785F; border-radius: 0;
  padding: 10px 6px; font-size: 16px; color: #2c2a24;
  font-family: "Courier New", Courier, monospace;
}
.fieldrow input:focus { outline: none; border-bottom: 2px solid #B5392F; }
.fieldrow button {
  background: rgba(181,57,47,0.06); color: #B5392F;
  border: 3px solid #B5392F; border-radius: 3px;
  box-shadow: inset 0 0 0 1px #B5392F;
  padding: 9px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: "Courier New", Courier, monospace;
  text-transform: uppercase; letter-spacing: 0.1em;
  transform: rotate(-2deg); opacity: 0.92;
}
.fieldrow button:hover { background: rgba(181,57,47,0.14); }
.form-error { color: #743C30; font-size: 14px; margin-top: 10px; font-weight: 700; }
.hint { font-size: 13px; color: #6f6248; margin-top: 14px; line-height: 1.55; }

/* Case board - pinned notes on the corkboard */
.tablewrap {
  position: relative;
  background:
    radial-gradient(circle at 8px 8px, rgba(0,0,0,0.14) 1.5px, rgba(0,0,0,0) 1.5px),
    #4a4132;
  background-size: 26px 26px, auto;
  border-radius: 6px; padding: 22px 22px 8px 22px; margin-top: 12px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.3);
  border: 6px solid #5d4f3a;
}
.tablewrap::before { /* the red string, running through the pins */
  content: ""; position: absolute; left: 37px; top: 14px; bottom: 14px;
  border-left: 2px dashed rgba(196, 64, 52, 0.6);
}
table.cases { width: 100%; border-collapse: collapse; margin: 0; }
table.cases, table.cases tbody, table.cases tr, table.cases td { display: block; }
.cases th { display: none; }
.cases tr:has(th) { display: none; }
.cases tr {
  position: relative;
  background: url('/static/parchment-note.svg') center / 100% 100% no-repeat, #ecd9ae;
  margin: 0 0 18px 30px; padding: 16px 18px 14px;
  border-radius: 2px;
  box-shadow: 0 3px 5px rgba(0,0,0,0.35), 0 10px 18px rgba(0,0,0,0.25);
  transform: rotate(-0.9deg);
}
.cases tr:nth-child(even) { transform: rotate(0.7deg); }
.cases tr::before { /* pushpin */
  content: ""; position: absolute; top: -9px; left: 8px;
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d96659, #B5392F 55%, #7e2418);
  box-shadow: 0 3px 4px rgba(0,0,0,0.45);
}
.cases td { padding: 2px 0; border: none; font-size: 15px; }
.cases td.dom { margin-bottom: 6px; }
.dom { font-weight: 600; }
.domlink { color: #2b2620; font-weight: 700; font-size: 17.5px;
           font-family: "Courier New", Courier, monospace; text-decoration: none;
           border-bottom: 2px solid rgba(58,78,55,0.4); }
.domlink:hover { border-bottom-color: #B5392F; color: #B5392F; }
.cases td .open { margin-top: 6px; }

/* Stamps */
.pill { display: inline-block; font-size: 13px; font-weight: 700;
       text-transform: uppercase; letter-spacing: 0.14em;
       font-family: "Courier New", Courier, monospace;
       padding: 4px 10px; border-radius: 3px; margin: 0 6px 4px 0;
       background: transparent;
       border: 2.5px solid currentColor;
       box-shadow: inset 0 0 0 1px currentColor;
       transform: rotate(-2.5deg); opacity: 0.85; }
.pill-sample { color: #84785F; }
.pill-live { color: #3A4E37; }
.verdict-suspicious { color: #B5392F; }
.verdict-innocent { color: #3A4E37; }
.verdict-unclear { color: #A67956; }

/* Staged board gets a big honesty stamp across the panel */
.tablewrap.staged::after {
  content: "PRACTICE - NOT LIVE FINDINGS";
  position: absolute; right: 22px; top: -16px;
  font-family: "Courier New", Courier, monospace; font-weight: 700;
  font-size: 14px; letter-spacing: 0.12em; color: #17171c;
  background: #f7c948;
  border-top: 5px solid #17171c; border-bottom: 5px solid #17171c;
  padding: 6px 16px; transform: rotate(3deg);
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Case page */
.case-kicker { display: inline-block; background: #e3cf9f; color: #743C30;
               border: 1px solid #c9b184; border-bottom: none;
               padding: 5px 16px 3px; border-radius: 6px 6px 0 0;
               font-family: "Courier New", Courier, monospace;
               font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em;
               margin-bottom: 0; }
.case-domain { margin: 0 0 10px; font-size: 30px;
               font-family: "Courier New", Courier, monospace;
               border-bottom: 3px double #B5392F; padding-bottom: 8px; }
.h-flag { color: #743C30; border-bottom: 2px dashed #B5392F; padding-bottom: 5px; }
.h-coffee { color: #A67956; border-bottom: 2px dashed #A67956; padding-bottom: 5px; }
.h-green { color: #3A4E37; border-bottom: 2px dashed #3A4E37; padding-bottom: 5px; }
ul { margin-left: 20px; padding: 0; }
li { font-size: 15px; color: #3f3a30; margin-bottom: 6px; }

/* Evidence - tagged property of the case */
.evidence { border-top: none; padding: 14px 0;
            border: 1px dashed #b3a67f; border-radius: 4px;
            background: #faf3e0; padding: 14px 16px; margin-bottom: 14px;
            box-shadow: 2px 3px 0 rgba(60,50,35,0.1); }
.evidence-link { font-weight: 700; color: #17171c;
                 font-family: "Courier New", Courier, monospace;
                 background: #f7c948; padding: 3px 10px; text-decoration: none;
                 border: 1.5px solid #17171c; transform: rotate(-1.5deg) skewX(-6deg);
                 display: inline-block; box-shadow: 2px 2px 0 rgba(0,0,0,0.35); }
.rows .row { display: flex; gap: 18px; padding: 8px 0;
             border-bottom: 1px dashed #d8cdb5; font-size: 14.5px; }
.rows .k { width: 190px; flex-shrink: 0; color: #743C30;
           font-family: "Courier New", Courier, monospace; font-size: 12.5px;
           text-transform: uppercase; letter-spacing: 0.08em; padding-top: 2px; }
.claim { font-size: 12px; color: #A67956; font-weight: 600; }
blockquote { background: #fffdf4; border: 1px solid #e0d7c2;
             border-left: 3px solid #B5392F; margin: 12px 0 0;
             font-family: "Courier New", Courier, monospace; font-size: 13.5px;
             padding: 12px 14px; transform: rotate(-0.5deg); color: #3f3a30;
             box-shadow: 2px 3px 0 rgba(60, 50, 35, 0.14); }
code { background: #e0d7c2; padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* Evidence photo - polaroid popup */
.shot-overlay { position: fixed; inset: 0; background: rgba(18, 15, 11, 0.78);
                display: flex; align-items: center; justify-content: center;
                padding: 20px; z-index: 50; }
.shot-overlay[hidden] { display: none; }
.shot-panel { background: #fdfcf8; border-radius: 2px; max-width: 920px;
              width: 100%; max-height: 92vh; overflow: auto;
              padding: 16px 16px 12px;
              transform: rotate(-0.8deg);
              box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.shot-bar { display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 12px; font-weight: 700; color: #3f3a30;
            font-family: "Courier New", Courier, monospace;
            text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; }
.shot-bar::before { content: ""; }
.shot-bar button { font: inherit; font-size: 1.25rem; line-height: 1;
                   cursor: pointer; border: 2px solid #B5392F;
                   background: transparent; border-radius: 3px; padding: 2px 9px;
                   color: #B5392F; font-weight: 700; }
.shot-panel img { max-width: 100%; border: 1px solid #c9bd9f;
                  display: block; }

.previous-captures { margin-top: 1rem; }
.previous-captures summary { cursor: pointer; color: #84785F; font-size: 0.95rem;
  margin-bottom: 0.75rem; font-family: "Courier New", Courier, monospace; }


@media (max-width: 640px) {
  .wrap { margin: 16px 10px 30px; padding: 22px 18px 22px 30px;
          background-position: 18px 0, 0 0, 0 0; }
  .wrap::after { right: 10px; font-size: 26px; top: -10px; }
  .site-header { padding: 14px 16px; }
  .cases tr { margin-left: 18px; padding: 13px 13px 11px; }
  .tablewrap { padding: 16px 12px 6px 12px; border-width: 4px; }
  .tablewrap::before { left: 25px; }
  .tablewrap.staged::after { font-size: 10.5px; right: 8px; top: -14px; padding: 3px 7px; }
  .rows .k { width: 120px; }
  .fieldrow { flex-direction: column; align-items: stretch; }
              }
