.hg-app,
.hg-kiosk {
    --hg-ink: #17212b;
    --hg-muted: #617184;
    --hg-line: #d9e1ea;
    --hg-surface: #ffffff;
    --hg-panel: #f7f9fb;
    --hg-primary: #2364aa;
    --hg-primary-dark: #174a80;
    --hg-alert: #b42318;
    --hg-alert-bg: #fff1f0;
    color: var(--hg-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}

.hg-kiosk {
    max-width: 860px;
    min-height: 85vh;
}

.hg-app-header,
.hg-kiosk-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.hg-app h1,
.hg-kiosk h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: 0;
}

.hg-app h2,
.hg-kiosk h2 {
    margin: 0 0 14px;
    font-size: 22px;
    letter-spacing: 0;
}

.hg-app h3,
.hg-kiosk h3 {
    margin: 0 0 8px;
    font-size: 18px;
    letter-spacing: 0;
}

.hg-app p,
.hg-kiosk p {
    color: var(--hg-muted);
}

.hg-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hg-tabs a {
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    color: var(--hg-ink);
    padding: 8px 12px;
    text-decoration: none;
}

.hg-tabs a.active,
.hg-tabs a:hover {
    background: var(--hg-primary);
    border-color: var(--hg-primary);
    color: #fff;
}

.hg-panel {
    background: var(--hg-panel);
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    margin: 0 0 18px;
    padding: 18px;
}

.hg-admin-grid,
.hg-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.hg-card {
    background: var(--hg-surface);
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    padding: 16px;
}

.hg-card-alert {
    background: var(--hg-alert-bg);
    border-color: #f1aaa5;
}

.hg-card-alert h3 {
    color: var(--hg-alert);
}

.hg-notice {
    background: #eef7ff;
    border: 1px solid #b8dcff;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.hg-form-grid,
.hg-inline-form,
.hg-kiosk-step {
    display: grid;
    gap: 14px;
}

.hg-form-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    align-items: end;
}

.hg-inline-form {
    grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
    align-items: end;
}

.hg-app label,
.hg-kiosk label,
.hg-admin-wrap label {
    display: grid;
    gap: 6px;
    font-weight: 650;
}

.hg-app input,
.hg-app select,
.hg-kiosk input,
.hg-kiosk select,
.hg-admin-wrap input,
.hg-admin-wrap select {
    border: 1px solid var(--hg-line);
    border-radius: 8px;
    font: inherit;
    min-height: 42px;
    padding: 8px 10px;
    width: 100%;
}

.hg-check {
    align-items: center;
    display: flex !important;
    flex-direction: row;
    gap: 8px !important;
}

.hg-check input {
    min-height: auto;
    width: auto;
}

.hg-button,
.hg-link-button {
    appearance: none;
    background: var(--hg-primary);
    border: 1px solid var(--hg-primary);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    text-decoration: none;
}

.hg-button:hover,
.hg-link-button:hover {
    background: var(--hg-primary-dark);
    color: #fff;
}

.hg-button-large {
    font-size: 22px;
    min-height: 60px;
}

.hg-link-button {
    background: transparent;
    border-color: transparent;
    color: var(--hg-primary);
    min-height: 0;
    padding: 0;
}

.hg-link-button:hover {
    background: transparent;
    color: var(--hg-primary-dark);
}

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

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

.hg-table th {
    color: var(--hg-muted);
    font-size: 13px;
    text-transform: uppercase;
}

.hg-kiosk .hg-kiosk-step {
    margin-top: 16px;
}

.hg-kiosk select,
.hg-kiosk input {
    font-size: 22px;
    min-height: 58px;
}

@media (max-width: 760px) {
    .hg-app,
    .hg-kiosk {
        padding: 14px;
    }

    .hg-app-header,
    .hg-kiosk-header {
        align-items: stretch;
        flex-direction: column;
    }

    .hg-tabs a {
        flex: 1 1 auto;
        text-align: center;
    }

    .hg-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
