:root {
  /* Culorile siglei ProtectMark / ProWatch: antracit + roșu pe alb */
  --ink: #2b2a28; --muted: #6b6966; --line: #e6e4e1; --bg: #f6f5f3; --card: #fff;
  --brand: #2b2a28; --brand-2: #c4161c; --accent: #e21f25; --accent-dark: #b5121b;
  --ok: #1e8449; --warn: #a86a00; --bad: #c4161c;
  --radius: 12px; --shadow: 0 2px 10px rgba(43, 42, 40, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--accent-dark); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { background: #fff; color: var(--ink); border-bottom: 3px solid var(--accent); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.brand small { font-size: .74rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; line-height: 1.25; }
@media (max-width: 560px) { .brand small { display: none; } .brand img { height: 32px; } }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .92rem; font-weight: 600; }
.nav a:hover, .nav a.on { background: #f1efec; }
.nav a.on { color: var(--accent-dark); }
.nav a.cta { background: var(--accent); color: #fff; }
.nav a.cta:hover { background: var(--accent-dark); }

/* Hero + search */
.hero { background: linear-gradient(160deg, #2b2a28 0%, #3d3b38 100%); color: #fff; padding: 44px 0 80px; position: relative; }
.hero h1 span { color: var(--accent); }
.hero h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.2; }
.hero p { margin: 0; opacity: .85; max-width: 640px; }
.searchbox { background: var(--card); color: var(--ink); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.18);
             padding: 18px; margin-top: -56px; position: relative; }
.sgrid { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr 1fr auto; gap: 10px; align-items: end; }
.sgrid label { display: block; font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226, 31, 37, .12); }
.sopts { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: .86rem; color: var(--muted); }
.sopts label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.sopts input { width: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 8px; border: 0;
       background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #45433f; }
.btn.alt { background: var(--accent); color: #fff; }
.btn.alt:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn:disabled { opacity: .5; cursor: default; }
@media (max-width: 860px) { .sgrid { grid-template-columns: 1fr 1fr; } .sgrid .go { grid-column: 1 / -1; } }
@media (max-width: 520px) { .sgrid { grid-template-columns: 1fr; } }

/* Sections */
section { margin: 28px 0; }
h2 { font-size: 1.25rem; margin: 0 0 14px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat b { display: block; font-size: 1.7rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.card.stat { border-top: 3px solid var(--accent); }
.stat span { color: var(--muted); font-size: .86rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.cta-card h3 { margin: 0 0 6px; }
.cta-card p { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }

/* Tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; background: var(--card); }
.tbl th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .9rem; }
.tbl tr:hover td { background: #faf9f7; }
.tbl .img { width: 76px; }
.thumb { width: 64px; height: 48px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; display: block; }
.thumb.empty { display: grid; place-items: center; color: #b7c0cf; font-size: .7rem; }
.mname { font-weight: 700; color: var(--ink); text-decoration: none; }
.mname:hover { color: var(--accent-dark); text-decoration: underline; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { background: #f1efec; color: var(--ink); border-radius: 6px; padding: 1px 7px; font-size: .78rem; font-weight: 700; }
.st { font-size: .76rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.st.ok { background: #e7f6ec; color: var(--ok); } .st.pub { background: #fff5e0; color: var(--warn); }
.st.adm { background: #eceae7; color: var(--ink); } .st.bad { background: #fdecea; color: var(--bad); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* Mark page */
.mhead { display: grid; grid-template-columns: 220px 1fr; gap: 18px; }
.mhead .logo-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; min-height: 180px; padding: 12px; }
.mhead .logo-box img { max-width: 100%; max-height: 200px; }
.mhead h1 { margin: 0 0 8px; font-size: 1.7rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.fact { background: #f7f9fc; border-radius: 8px; padding: 10px 12px; }
.fact small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .4px; }
.fact b { font-size: .95rem; }
@media (max-width: 680px) { .mhead { grid-template-columns: 1fr; } }
.goods .row { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.goods .cls { font-weight: 800; color: var(--accent); font-size: 1.1rem; }
.timeline li { margin: 6px 0; }

/* Lead bar + modal */
.leadbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--brand); color: #fff; border-radius: 999px;
           padding: 8px 8px 8px 18px; display: none; align-items: center; gap: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 50; }
.leadbar.on { display: flex; }
.modal { position: fixed; inset: 0; background: rgba(10, 20, 40, .5); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 60; }
.modal.on { display: flex; }
.modal .card { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; }
.form-grid { display: grid; gap: 10px; }
.form-grid label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.note { padding: 10px 12px; border-radius: 8px; font-size: .88rem; }
.note.ok { background: #e7f6ec; color: var(--ok); } .note.err { background: #fdecea; color: var(--bad); }

footer { margin-top: 48px; background: #fff; color: var(--muted); padding: 28px 0; font-size: .86rem; border-top: 3px solid var(--accent); }
footer a { color: var(--accent-dark); }
footer .fgrid { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
footer .fgrid img { height: 64px; width: auto; }
footer .fgrid > div { flex: 1; min-width: 260px; }
.empty-state { text-align: center; color: var(--muted); padding: 32px 10px; }
.tbl td a { white-space: nowrap; }

/* Mod încorporat (iframe pe protectmark.ro) */
html.embed body { background: transparent; }
html.embed .hero { padding: 24px 0 64px; }
html.embed footer { display: none; }
