/* Portal v2026-09-02.3 */
:root {
    --accent: #1a9bdb;
    --accent2: #f37c4c;
    --border: #dcdfe4;
    --bg: #f5f6f8;
    --text: #404040;
    --error: #b91c1c;
    --ok: #15803d;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.topnav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 24px;
    background: var(--text);
    color: #fff;
    border-bottom: 3px solid var(--accent2);
}
.topnav .logo { max-width: 200px; width: 100%; height: auto; display: block; }
.topnav .spacer { flex: 1; }
.topnav span { color: #fff; }
.topnav a { color: #fff; text-decoration: none; font-weight: 600; }
.topnav a:hover { color: var(--accent2); text-decoration: underline; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 24px; }

h1 { margin-top: 0; color: var(--text); }

.card {
    max-width: 360px;
    margin: 60px auto;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent2);
    border-radius: 10px;
    text-align: center;
}
.card .logo { max-width: 200px; width: 100%; height: auto; margin-bottom: 20px; }
.card h1 { text-align: left; }
body.centered { display: flex; min-height: 100vh; align-items: flex-start; }

label { display: block; margin: 12px 0 4px; font-weight: 600; font-size: 14px; text-align: left; }
input[type=text], input[type=password], input[type=number], select, textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    margin-top: 4px;
}
textarea { font-family: ui-monospace, Consolas, monospace; }

.checkbox-line { display: flex; align-items: center; gap: 8px; font-weight: normal; }
.checkbox-line input { width: auto; }

button, .btn, .btn-secondary {
    display: inline-block;
    padding: 9px 16px;
    border: none;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}
button:hover, .btn:hover { background: var(--accent2); }
button:disabled { background: #9ca3af; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.btn-secondary:hover { background: var(--accent2); color: #fff; border-color: var(--accent2); }

.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 20px 0; }

.error { color: var(--error); font-weight: 600; }
.ok { color: var(--ok); font-weight: 600; }
.hint { color: #6b7280; font-size: 13px; font-weight: normal; }
.new { color: var(--accent2); font-weight: 600; }

table.list { width: 100%; border-collapse: collapse; background: #fff; }
table.list th, table.list td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
}
table.list th { background: var(--accent2); color: #fff; }

form.form-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
form.form-inline input, form.form-inline select { width: auto; margin-top: 0; }

fieldset { border: 1px solid var(--border); border-radius: 8px; margin-top: 16px; padding: 12px 16px; }
legend { font-weight: 700; padding: 0 6px; color: var(--text); }

ul.history { padding-left: 20px; }
