/* Palette sampled from the Solicorp logo: charcoal #323232, orange #F57C00. */
:root {
    --ink: #323232;
    --ink-soft: #4a4a4a;
    --orange: #f57c00;
    --orange-dark: #d96e00;
    --orange-tint: rgba(245, 124, 0, .14);
    --border: #e2e2e2;
    --muted: #6d6d6d;
    --bg: #f5f5f4;
    --ok: #2e7d32;
    --warn: #a8630b;
    --bad: #c62828;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

a { color: var(--orange-dark); }

/* ---------------------------------------------------------------- top bar */

.topbar { background: var(--ink); color: #fff; border-bottom: 3px solid var(--orange); }

.topbar-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 26px; display: block; }

.topbar nav { display: flex; gap: 22px; flex: 1; }

.topbar nav a {
    color: #cfcfcf;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.topbar nav a:hover { color: #fff; border-bottom-color: var(--orange); }

.topbar-user { display: flex; align-items: center; gap: 14px; font-size: 13px; color: #a8a8a8; }
.topbar-user .signout { color: #a8a8a8; text-decoration: none; }
.topbar-user .signout:hover { color: var(--orange); }

/* ---------------------------------------------------------------- layout */

main { max-width: 1080px; margin: 0 auto; padding: 28px 24px 64px; }
main.bare { max-width: 100%; padding: 0; }

h1 { font-size: 23px; font-weight: 600; margin: 0 0 4px; }
h2 { font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.subtitle { color: var(--muted); margin: 0 0 24px; }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 22px 24px;
    margin-bottom: 18px;
}

.card > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin: -4px 0 18px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }

/* ---------------------------------------------------------------- forms */

label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--ink-soft); }

input[type=text], input[type=password], input[type=number], input[type=url], select, textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font: inherit;
    font-size: 14px;
    background: #fff;
    color: var(--ink);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-tint);
}

.field { margin-bottom: 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.check input { width: 15px; height: 15px; margin: 0; accent-color: var(--orange); }
.check label { margin: 0; font-weight: 500; }

.toggle { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; margin: 0; }
.toggle input { width: 17px; height: 17px; accent-color: var(--orange); }

.picker {
    max-height: 230px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    background: #fafafa;
}

.picker .check { font-weight: 400; font-size: 13.5px; }
.picker code { font-size: 12.5px; color: var(--muted); }

details > summary { color: var(--orange-dark); }

button, .btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 5px;
    border: 1px solid transparent;
    background: var(--orange);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

button:hover, .btn:hover { background: var(--orange-dark); }
button:disabled { background: #c9c9c9; cursor: not-allowed; }

.btn-secondary { background: #fff; color: var(--ink); border-color: var(--border); font-weight: 500; }
.btn-secondary:hover { background: #f0f0f0; color: var(--ink); }
.btn-danger { background: #fff; color: var(--bad); border-color: #eccaca; font-weight: 500; }
.btn-danger:hover { background: #fdf2f2; color: var(--bad); }
.btn-small { padding: 5px 11px; font-size: 13px; }

/* ---------------------------------------------------------------- messages */

.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 14px; }
.alert-error { background: #fdf2f2; border: 1px solid #f0c9c9; color: #8f1d1d; }
.alert-ok { background: #f1f8f1; border: 1px solid #c5e0c6; color: #1f5c22; }
.alert-warn { background: #fff6ea; border: 1px solid #f5d7ae; color: #8a5209; }

/* ---------------------------------------------------------------- tables */

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 0 10px 8px; }
td { padding: 11px 10px; border-top: 1px solid var(--border); vertical-align: middle; }
tr:hover td { background: #fafafa; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 11px; font-size: 12px; font-weight: 600; }
.badge-ok { background: #e8f4e9; color: var(--ok); }
.badge-warn { background: #fdf0dd; color: var(--warn); }
.badge-bad { background: #fbe9e9; color: var(--bad); }

.linkbox { display: flex; gap: 8px; align-items: center; }

.linkbox input {
    font-family: Consolas, monospace;
    font-size: 12.5px;
    background: #fafafa;
}

/* ---------------------------------------------------------------- login */

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, #2b2b2b 0%, #414141 100%);
    padding: 24px;
}

.login-card {
    background: #fff;
    border-radius: 10px;
    padding: 34px 36px 30px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .34);
    border-top: 4px solid var(--orange);
}

.login-card .logo { display: block; width: 190px; margin: 4px auto 6px; }
.login-card .subtitle { text-align: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 24px; }
.login-card button { width: 100%; margin-top: 8px; padding: 11px; }

/* ---------------------------------------------------------------- download page */

.dl-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ededec;
    padding: 24px;
}

.dl-card {
    background: #fff;
    border-radius: 10px;
    max-width: 560px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
}

.dl-head { background: var(--ink); color: #fff; padding: 26px 34px; border-bottom: 3px solid var(--orange); }
.dl-head .logo { display: block; height: 30px; margin-bottom: 16px; }
.dl-head h1 { font-size: 20px; margin-bottom: 5px; }
.dl-head p { margin: 0; color: #b0b0b0; font-size: 14px; }
.dl-body { padding: 28px 34px 32px; }
.dl-body ul { margin: 0 0 22px; padding-left: 20px; color: var(--ink-soft); }
.dl-body li { margin-bottom: 6px; }

.dl-download {
    display: block;
    text-align: center;
    background: var(--orange);
    color: #fff;
    padding: 14px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
}

.dl-download:hover { background: var(--orange-dark); color: #fff; }
.dl-note { font-size: 12.5px; color: var(--muted); margin-top: 16px; text-align: center; }
.dl-lang { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.sep { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }
