* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: #f5f5f3;
    color: #111;
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 245px 1fr;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 245px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0b0b0b;
    color: #fff;
    border-right: 1px solid #222;
}

.brand {
    padding: 30px 24px 28px;
    border-bottom: 1px solid #232323;
}

.brand span {
    display: block;
    font-size: 10px;
    letter-spacing: .2em;
    opacity: .55;
    margin-bottom: 8px;
}

.brand strong {
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 400;
}

.sidebar nav {
    padding: 18px 12px;
    flex: 1;
}

.sidebar nav a {
    display: block;
    padding: 10px 12px;
    margin-bottom: 3px;
    border-radius: 4px;
    color: #aaa;
    font-size: 13px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: #1b1b1b;
    color: #fff;
}

.sidebar-user {
    padding: 20px 24px 24px;
    border-top: 1px solid #232323;
    font-size: 13px;
}

.sidebar-user small {
    display: block;
    color: #777;
    margin: 3px 0 15px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 9px;
}

.logout {
    border: 0;
    background: transparent;
    color: #999;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
}

.main {
    grid-column: 2;
    padding: 42px 44px 80px;
    min-width: 0;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: .18em;
    font-weight: 700;
    color: #777;
    margin-bottom: 9px;
}

h1,
h2 {
    font-family: Georgia, serif;
    font-weight: 400;
    margin: 0;
}

h1 {
    font-size: 38px;
    letter-spacing: -.025em;
}

h2 {
    font-size: 24px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: white;
    border: 1px solid #111;
    padding: 11px 17px;
    font-size: 12px;
    cursor: pointer;
}

.primary-button:hover {
    background: #2a2a2a;
}

.text-link {
    font-size: 12px;
    color: #555;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #ddd;
    border: 1px solid #ddd;
    margin-bottom: 30px;
}

.metric {
    background: #fff;
    padding: 22px;
}

.metric span {
    display: block;
    font-size: 10px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 12px;
}

.metric strong {
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 400;
}

.panel,
.form-panel {
    background: #fff;
    border: 1px solid #ddd;
}

.panel-head {
    padding: 22px 24px;
    border-bottom: 1px solid #e3e3e3;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

th {
    padding: 13px 16px;
    text-align: left;
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #777;
    background: #fafafa;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

td {
    padding: 16px;
    border-bottom: 1px solid #ececec;
    vertical-align: top;
    white-space: nowrap;
}

tbody tr:hover {
    background: #fafafa;
}

.mono {
    font-family: Consolas, monospace;
    font-size: 10px;
    color: #666;
}

.stage {
    display: inline-block;
    border: 1px solid #ccc;
    padding: 4px 7px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.form-panel {
    max-width: 950px;
    padding: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 21px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field.span-2 {
    grid-column: span 2;
}

.field label {
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #555;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 12px;
    background: #fff;
    color: #111;
    border: 1px solid #ccc;
    outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #111;
}

.field textarea {
    resize: vertical;
}

.form-actions {
    margin-top: 28px;
    padding-top: 23px;
    border-top: 1px solid #ddd;
}

.alert,
.success {
    margin-bottom: 20px;
    padding: 12px 15px;
    font-size: 12px;
}

.alert {
    background: #fff0f0;
    border: 1px solid #deb7b7;
}

.success {
    background: #f1f5ef;
    border: 1px solid #c9d5c2;
}

.placeholder {
    max-width: 760px;
    padding: 48px;
}

.placeholder p {
    max-width: 570px;
    color: #666;
    line-height: 1.7;
}

.login-page {
    background: #0b0b0b;
    color: #fff;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 70px;
    gap: 90px;
}

.login-brand h1 {
    font-size: 58px;
    line-height: 1;
    max-width: 560px;
}

.login-brand p {
    color: #777;
    margin-top: 22px;
}

.login-card {
    background: #111;
    border: 1px solid #2b2b2b;
    padding: 34px;
}

.login-card label {
    display: block;
    color: #888;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 18px 0 7px;
}

.login-card input {
    width: 100%;
    border: 1px solid #343434;
    background: #0b0b0b;
    color: white;
    padding: 13px;
}

.login-card button {
    width: 100%;
    margin-top: 24px;
    padding: 13px;
    background: white;
    color: #111;
    border: 0;
    cursor: pointer;
}

@media (max-width: 900px) {

    .shell {
        display: block;
    }

    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .sidebar nav {
        display: flex;
        overflow-x: auto;
    }

    .sidebar nav a {
        white-space: nowrap;
    }

    .sidebar-user {
        display: none;
    }

    .main {
        padding: 28px 20px 60px;
    }

    .metrics {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field.span-2 {
        grid-column: span 1;
    }

    .login-wrap {
        display: block;
        padding: 40px 24px;
    }

    .login-brand {
        margin-bottom: 45px;
    }

    .login-brand h1 {
        font-size: 42px;
    }
}
/* LION-SCANNER-V02 */
.scanner-status {
    margin: -12px 0 28px;
    color: #777;
    font-size: 11px;
}

.scanner-title {
    min-width: 360px;
    white-space: normal;
}

.scanner-trigger,
.scanner-confidence {
    margin-top: 6px;
    color: #888;
    font-size: 10px;
}

.source-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.scanner-actions {
    display: flex;
    gap: 6px;
}

.mini-button {
    border: 1px solid #111;
    background: #111;
    color: #fff;
    padding: 6px 9px;
    cursor: pointer;
    font-size: 10px;
}

.mini-button.secondary {
    background: #fff;
    color: #111;
}

.scanner-note {
    margin-top: 18px;
    color: #777;
    font-size: 11px;
}
.scanner-provider-panel { margin-top: 28px; }
