/* DevLog - the colours and fonts of alcybersoft.com */
:root {
    --ink: #0d1a2b;
    --gold: #c79330;
    --gold-soft: #e6c873;
    --paper: #f6f1e6;
    --line: #e3d8c2;
    --text: #1d2735;
    --muted: #5d6b7d;
    --alert: #a8362f;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--paper);
    color: var(--text);
    font: 15px/1.5 "Hanken Grotesk", system-ui, sans-serif;
}

a { color: #8a5f12; }
a:hover { color: var(--gold); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

header { background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none;
         font: 600 1.15rem "Fraunces", Georgia, serif; }
.brand:hover { color: var(--white); }
.coin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
        background: var(--gold); color: var(--ink); font-size: .95rem; }
header nav { display: flex; align-items: center; gap: 22px; }
header nav a, header nav button { color: rgba(255, 255, 255, .8); text-decoration: none; font-family: inherit;
                                   font-size: .92rem; font-weight: 500; background: none; border: none; cursor: pointer; }
header nav a:hover, header nav button:hover { color: var(--gold-soft); }

main.wrap { padding-top: 32px; padding-bottom: 48px; }
h1 { font: 600 1.9rem "Fraunces", Georgia, serif; color: var(--ink); margin-bottom: 4px; }
h2 { font: 600 1.15rem "Fraunces", Georgia, serif; color: var(--ink); margin: 26px 0 8px; }
.muted { color: var(--muted); margin-bottom: 20px; }
.empty { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }

.scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fbf8f1; }
tr:last-child td { border-bottom: none; }
td.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.type { font-size: .8rem; color: var(--muted); margin-top: 2px; }

.message { font-size: 1.05rem; padding: 14px 16px; background: var(--white); border-left: 4px solid var(--alert);
           border-radius: 6px; margin-bottom: 20px; white-space: pre-wrap; word-break: break-word; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; background: var(--white);
     border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
dt { color: var(--muted); }
dd { word-break: break-word; }
pre { background: var(--ink); color: #e9eef5; padding: 14px 16px; border-radius: 10px; overflow-x: auto;
      font: 13px/1.5 Consolas, "Courier New", monospace; white-space: pre-wrap; word-break: break-word; }

.login { max-width: 380px; margin: 40px auto; background: var(--white); border: 1px solid var(--line);
         border-radius: 14px; padding: 28px; }
.login form { display: grid; gap: 14px; }
.login label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.login input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.login input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.alert { color: var(--alert); font-weight: 600; margin-bottom: 14px; }
.btn { padding: 11px 18px; border: none; border-radius: 999px; background: var(--gold); color: var(--ink);
       font-family: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; }
.btn:hover { box-shadow: 0 10px 24px -12px rgba(199, 147, 48, .8); }

footer.wrap { color: var(--muted); font-size: .8rem; padding-bottom: 28px; }

/* Migration statuses */
.st-ok { color: #1f7a3f; font-weight: 700; }
.st-wait { color: #9a6a00; font-weight: 700; }
.st-bad { color: var(--alert); font-weight: 700; }
.st-unk { color: #5d6b7d; font-weight: 700; }
.st-na, .zero { color: #a3adb9; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge.st-ok { background: #e3f3e8; }
.badge.st-wait { background: #fbf0d6; }
.badge.st-bad { background: #f8e3e1; }
.badge.st-unk { background: #eceff3; }
.badge.st-na { background: #f3f4f6; }

/* Updates (What's New): the form, the preview as the ERP shows it, the screenshot reminder */
.form { display: grid; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px;
        padding: 18px; margin-top: 16px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: start; }
.form label { display: grid; gap: 5px; align-content: start; font-weight: 600; font-size: .9rem; }
.form label.inline { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea {
    padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; display: grid; gap: 6px; }
.form legend { font-weight: 600; font-size: .9rem; padding: 0 4px; }
.ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 14px; padding-left: 24px; }
.hint { font-weight: 400; font-size: .8rem; color: var(--muted); }
.err { font-weight: 600; font-size: .85rem; color: var(--alert); }
.err:empty { display: none; }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; }
.btn.secondary { background: var(--white); border: 1px solid var(--line); color: var(--text); }
button.link { background: none; border: none; color: #8a5f12; font: inherit; cursor: pointer; text-decoration: underline; padding: 0 4px; }
.inline-form { display: inline; }
.warn { background: #fbf0d6; border: 1px solid #ecd59a; border-radius: 10px; padding: 12px 16px; margin: 14px 0; }
.warn ul { margin: 6px 0 0 20px; }
.status-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.status-bar form { display: inline; }
.muted-inline { color: var(--muted); font-size: .9rem; }
.badge.kind { background: #e8eef7; color: var(--ink); }
.reminder { background: #f8e3e1; border-left: 4px solid var(--alert); border-radius: 6px; padding: 12px 14px; font-size: .92rem; }
.reminder strong { display: block; color: var(--alert); margin-bottom: 2px; }

/* The login panel and the detail window, roughly as the ERP draws them */
.erp-panel { background: linear-gradient(#e4e9f0, #c9d1dc); border: 1px solid #aab4c2; border-radius: 6px; padding: 10px 14px;
             font: 13px Tahoma, Verdana, sans-serif; color: #0d1a2b; display: flex; gap: 10px; flex-wrap: wrap; }
.erp-label { color: #333; }
.erp-detail { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: grid; gap: 10px; }
.erp-detail h3 { font: 600 1.2rem "Fraunces", Georgia, serif; color: var(--ink); }
.erp-detail ol { margin-left: 22px; }
.erp-detail .note { white-space: pre-wrap; color: var(--muted); }
.erp-detail figure { display: grid; gap: 4px; }
.erp-detail img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.erp-detail figcaption { font-size: .85rem; color: var(--muted); }

@media (max-width: 600px) {
    dl { grid-template-columns: 1fr; gap: 2px; }
    dd { margin-bottom: 8px; }
    header nav { gap: 16px; }

    /* Phones: each row becomes a card - what went wrong first, the rest as labelled lines. */
    thead { display: none; }
    table, tbody { display: block; }
    tr { display: flex; flex-direction: column; padding: 12px 14px; border-bottom: 1px solid var(--line); }
    tr:last-child { border-bottom: none; }
    td { border: none; padding: 1px 0; text-align: left; font-size: .9rem; }
    td.num { text-align: left; }
    td.what { order: -1; margin-bottom: 6px; font-size: 1rem; }
    td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
    td[data-label]:empty { display: none; }
}
