:root {
    --ink: #1b2933;
    --muted: #687680;
    --line: #dce3e7;
    --surface: #ffffff;
    --soft: #f4f7f8;
    --accent: #d8501c;
    font-family: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
}

header,
main {
    width: min(960px, calc(100% - 32px));
    margin-inline: auto;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0 18px;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

h2 {
    font-size: 1.15rem;
}

header a,
.button-link {
    color: var(--accent);
    font-weight: bold;
}

.eyebrow {
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intranet-note,
.session-info {
    color: var(--muted);
}

.panel {
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    align-items: end;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #bcc8cf;
    border-radius: 5px;
    color: var(--ink);
    background: var(--surface);
    font: inherit;
}

input:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(216, 80, 28, 0.15);
}

button,
.button-link {
    display: inline-block;
    width: fit-content;
    padding: 10px 16px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: var(--accent);
    font: inherit;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

button:disabled,
input:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.message {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 6px;
}

.message.error,
.message.warning {
    border: 1px solid #e1aa96;
    background: #fff2ed;
}

.message.success {
    border: 1px solid #8bc3a0;
    background: #edf9f1;
}

.licence-details {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    margin: 0;
}

.licence-details dt,
.licence-details dd {
    margin: 0;
    padding: 8px;
    border-bottom: 1px solid var(--line);
}

.licence-details dt {
    color: var(--muted);
    font-weight: bold;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
    font-size: 0.84rem;
    text-align: left;
    white-space: nowrap;
}

th {
    color: var(--muted);
}

.error-list {
    color: #8c2f16;
}

@media (max-width: 640px) {
    header {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .licence-details {
        grid-template-columns: 1fr;
    }

    .licence-details dt {
        padding-bottom: 2px;
        border-bottom: 0;
    }

    .licence-details dd {
        padding-top: 2px;
    }
}
