:root {
    --navy: #0d2137;
    --navy-2: #17324d;
    --steel: #5e6d78;
    --red: #9d2c32;
    --paper: #f3f5f7;
    --card: #ffffff;
    --line: #d5dee5;
    --ink: #1c2830;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

a { color: var(--navy-2); }

.dossier-header { background: var(--navy); color: white; }
.brand { display: flex; gap: .8rem; align-items: center; color: white; text-decoration: none; }
.brand small { display: block; color: #c5d0d8; font-size: .82rem; }
.brand-mark { width: 1.05rem; height: 1.7rem; background: var(--red); border-radius: 1px; }

.search-form { display: flex; min-width: min(100%, 22rem); }
.search-form input {
    flex: 1;
    border: 0;
    border-radius: 2px 0 0 2px;
    padding: .45rem .7rem;
}
.search-form button {
    border: 0;
    background: var(--red);
    color: white;
    padding: .45rem .8rem;
    border-radius: 0 2px 2px 0;
}

.dossier-nav { background: var(--navy-2); overflow-x: auto; }
.dossier-nav .container-xl { display: flex; gap: .2rem; min-width: max-content; }
.dossier-nav a {
    color: #d5dee6;
    text-decoration: none;
    padding: .7rem .75rem;
    border-bottom: 3px solid transparent;
    font-size: .92rem;
}
.dossier-nav a.active, .dossier-nav a:hover { color: white; border-bottom-color: var(--red); }

.dossier-footer { color: var(--steel); font-size: .85rem; padding: 1.5rem 0 2rem; }

.page-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; margin-bottom: 1rem; }
.page-head h1 { font-size: 1.7rem; margin: 0; letter-spacing: -.02em; }
.lede { color: var(--steel); margin: .2rem 0 0; }

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1rem 1.1rem;
}
.panel h2 { font-size: 1rem; margin: 0 0 .7rem; }

.identity { border-top: 4px solid var(--red); }
.identity .plate {
    display: inline-block;
    border: 2px solid var(--navy);
    border-radius: 4px;
    padding: .15rem .55rem;
    font-weight: 700;
    letter-spacing: .04em;
    background: #f7f4e8;
}
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .6rem; margin: .8rem 0 0; }
.facts div { background: #f7f9fb; border: 1px solid var(--line); padding: .55rem .7rem; }
.facts span { display: block; color: var(--steel); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.facts strong { font-size: 1.05rem; }

.status { display: inline-block; border-radius: 99px; padding: .1rem .55rem; font-size: .78rem; }
.status-Unverified { background: #f8e6d4; color: #7a3b12; }
.status-VisuallyConfirmed { background: #e4ebf2; color: #17324d; }
.status-DocumentConfirmed { background: #e3f0e7; color: #1d5c3a; }

.timeline { margin: .5rem 0 0 .35rem; border-left: 2px solid var(--line); }
.timeline article { position: relative; padding: 0 0 1.1rem 1.2rem; }
.timeline article::before {
    content: "";
    position: absolute;
    left: -.39rem;
    top: .35rem;
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background: var(--navy);
}
.timeline article.inspection::before { background: var(--red); }
.timeline h3 { font-size: 1rem; margin: 0; }
.meta { color: var(--steel); font-size: .88rem; }

.table-dossier { background: white; }
.table-dossier th { color: var(--steel); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.btn-accent { background: var(--navy); color: white; border: 0; }
.btn-accent:hover { background: var(--navy-2); color: white; }
.btn-line { background: white; border: 1px solid var(--line); color: var(--navy); }

.empty-state, .note-block { background: white; border: 1px dashed var(--line); padding: 1.2rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .8rem; }
.photo-grid a { background: white; border: 1px solid var(--line); color: inherit; text-decoration: none; }
.photo-grid img { width: 100%; height: 9rem; object-fit: cover; display: block; background: #e8eef2; }
.photo-grid span { display: block; padding: .45rem .55rem; font-size: .82rem; }
.preview-frame { width: 100%; min-height: 70vh; border: 1px solid var(--line); background: white; }
.form-section { background: white; border: 1px solid var(--line); padding: 1rem; margin-bottom: 1rem; }
label { font-size: .86rem; color: var(--navy-2); }
.danger-link { color: var(--red); }
