:root {
    --ink: #17181b;
    --ink-soft: #24262b;
    --gold: #caa85d;
    --yellow: #fff33b;
    --bg: #f3f5f8;
    --panel: #ffffff;
    --text: #101828;
    --muted: #667085;
    --line: #d8dee8;
    --field: #f8fafc;
    --danger: #b42318;
    --success-bg: #eaf8ef;
    --success-text: #166534;
    --error-bg: #fff0ef;
    --error-text: #b42318;
    --shadow: 0 18px 45px rgba(16, 24, 40, 0.10);
    --soft-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 243, 59, 0.14), transparent 34rem),
        linear-gradient(180deg, #f7f8fa 0%, var(--bg) 100%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: #625017;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: var(--ink);
    border-bottom: 3px solid var(--yellow);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner,
.admin-title,
.summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.header-inner {
    min-height: 96px;
}

.brand {
    color: inherit;
}

.innomatics-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.innomatics-brand img {
    display: block;
    height: 70px;
    max-width: min(300px, 72vw);
    object-fit: contain;
    width: auto;
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
}

.top-nav a {
    border-bottom: 2px solid transparent;
    color: #ffffff;
    font-weight: 800;
    padding: 8px 0;
}

.top-nav a:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.main {
    padding: 42px 0 64px;
}

.public-shell .main::before,
.admin-shell .main::before {
    content: "";
    display: block;
    height: 7px;
    width: 86px;
    margin-bottom: 28px;
    background: var(--yellow);
    border-radius: 999px;
}

.page-heading,
.admin-title {
    margin-bottom: 26px;
}

.page-heading {
    max-width: 820px;
}

.page-heading h1,
.admin-title h1 {
    margin: 0;
    color: #101828;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.03;
}

.page-heading p {
    max-width: 720px;
    margin: 12px 0 0;
    color: #475467;
    font-size: 18px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #8a6a00;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.panel {
    background: var(--panel);
    border: 1px solid rgba(16, 24, 40, 0.10);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-weight: 800;
}

label span {
    font-size: 14px;
}

.check-row {
    align-items: center;
    background: #fffbdd;
    border: 1px solid #f5df74;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    padding: 10px 12px;
}

.check-row input {
    width: auto;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: var(--field);
    color: var(--text);
    font: inherit;
    padding: 12px 13px;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #b99a1c;
    outline: 4px solid rgba(255, 243, 59, 0.30);
    background: #ffffff;
}

.full {
    grid-column: 1 / -1;
}

.form-actions,
.filters,
.lookup-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
}

.lookup-form label,
.filters label {
    flex: 1 1 220px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    font-weight: 900;
    padding: 10px 18px;
    text-decoration: none;
}

.btn.primary {
    border-color: var(--yellow);
    background: var(--yellow);
    color: #111111;
}

.btn.primary:hover {
    background: #f3e600;
}

.btn.ghost {
    background: var(--ink);
    border-color: var(--ink);
    color: #ffffff;
}

.btn.ghost:hover {
    background: var(--ink-soft);
}

.btn.danger {
    border-color: var(--danger);
    background: var(--danger);
    color: #ffffff;
}

.btn.small {
    min-height: 34px;
    padding: 6px 11px;
    font-size: 13px;
}

.full-width {
    width: 100%;
}

.alert {
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 14px 16px;
    font-weight: 800;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
}

.complaint-summary,
.table-panel,
.two-column,
.stat-grid {
    margin-top: 22px;
}

.complaint-summary h2 {
    margin: 0;
    font-size: 28px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff8bd;
    color: #5f4a00;
    font-size: 13px;
    font-weight: 900;
    padding: 6px 11px;
    white-space: nowrap;
}

.details-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0 0;
}

.details-list.stacked {
    grid-template-columns: 1fr;
}

dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

dd {
    margin: 3px 0 0;
    word-break: break-word;
}

.timeline {
    display: grid;
    gap: 14px;
    margin: 0;
    padding-left: 20px;
}

.timeline li {
    padding-left: 6px;
}

.timeline time {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.muted,
.empty {
    color: var(--muted);
}

.auth-box,
.confirmation-box {
    max-width: 520px;
    margin: 28px auto;
}

.auth-box h1,
.confirmation-box h1 {
    margin-top: 0;
}

.auth-box form {
    display: grid;
    gap: 16px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat-tile {
    background: #ffffff;
    border: 1px solid rgba(16, 24, 40, 0.10);
    border-left: 5px solid var(--yellow);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
    color: var(--text);
    padding: 16px;
}

.stat-tile:hover {
    transform: translateY(-1px);
}

.stat-tile span {
    display: block;
    color: #475467;
    font-size: 13px;
    font-weight: 900;
}

.stat-tile strong {
    display: block;
    margin-top: 4px;
    font-size: 30px;
}

.filters {
    margin-top: 22px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 14px 10px;
    text-align: left;
    vertical-align: top;
}

tbody tr:hover {
    background: #fffdf0;
}

th {
    color: #475467;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 22px;
}

.two-column aside form {
    display: grid;
    gap: 15px;
}

.danger-form {
    margin-top: 18px;
}

.description-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 15px;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 20px 0;
}

@media (max-width: 900px) {
    .header-inner,
    .admin-title,
    .summary-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-inner {
        min-height: auto;
        padding: 18px 0;
    }

    .innomatics-brand {
        min-width: 0;
    }

    .innomatics-brand img {
        height: 58px;
    }

    .form-grid,
    .details-list,
    .stat-grid,
    .two-column {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 20px;
    }

    .page-heading h1,
    .admin-title h1 {
        font-size: 36px;
    }
}
