body.admin-login-page {
    margin: 0;
    background: #f7f8fa;
    color: #252a31;
    font-family: "Inter", sans-serif;
}

.admin-login-page > main {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.admin-login-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 400px;
    padding: 36px;
    border: 1px solid #e5e8ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(25, 35, 45, 0.05);
}

.admin-login-brand {
    display: inline-block;
    margin-bottom: 28px;
    color: #252a31;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
}

.admin-login-brand span {
    color: #b7411d;
}

.admin-login-card h1 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
}

.admin-login-description {
    margin: 0 0 28px;
    color: #656b73;
    font-size: 14px;
    line-height: 1.6;
}

.admin-login-field {
    margin-bottom: 20px;
}

.admin-login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.admin-login-field input {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #dde2e7;
    border-radius: 5px;
    background: #fbfcfd;
    color: #252a31;
    font: inherit;
    font-size: 16px;
}

.admin-login-field input:focus {
    outline: 2px solid #b7411d;
    outline-offset: 2px;
    background: #fff;
}

.admin-login-submit {
    width: 100%;
    min-height: 48px;
    padding: 14px;
    border: 0;
    border-radius: 5px;
    background: #f26336;
    color: #17191d;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.admin-login-submit:hover {
    background: #ff8058;
}

.admin-login-card :is(a, button):focus-visible {
    outline: 2px solid #b7411d;
    outline-offset: 4px;
}

.admin-login-error {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #f4c7c7;
    border-radius: 5px;
    background: #fff1f1;
    color: #a12626;
    font-size: 14px;
    line-height: 1.5;
}

.admin-login-back {
    display: block;
    margin-top: 24px;
    color: #656b73;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

.admin-login-back:hover {
    color: #252a31;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .admin-login-card {
        padding: 28px 22px;
    }
}

/* Dashboard */

.gre-dashboard {
    min-height: 100vh;
    background: #f6f7f9;
    color: #252a31;
    font-family: "Inter", sans-serif;
}

.dash-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.dash-header {
    background: #fff;
    border-bottom: 1px solid #e5e8ec;
}

.dash-header-inner {
    display: flex;
    align-items: center;
    gap: 25px;
    min-height: 90px;
}

.dash-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #252a31;
    text-decoration: none;
}

.dash-brand:hover {
    color: #252a31;
}

.dash-brand strong {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 44px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -1.5px;
    line-height: 1;
}

.dash-logout-form {
    margin: 0;
}

.dash-logout {
    padding: 10px 0;
    border: 0;
    background: none;
    color: #a93614;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.dash-logout:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 480px) {
    .dash-header-inner {
        flex-wrap: wrap;
        padding: 16px 0;
    }
}

.dash-brand > span {
    padding-left: 14px;
    border-left: 1px solid #dfe2e6;
    color: #555b65;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    line-height: 1.5;
}

.dash-admin-label {
    padding: 7px 10px;
    border-radius: 5px;
    background: #f2f4f6;
    color: #656b73;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

.dash-website-link {
    margin-left: auto;
    color: #555b65;
    font-size: 14px;
    text-decoration: none;
}

.dash-website-link:hover {
    color: #a93614;
}

.dash-content {
    padding-top: 55px;
}

.dash-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 35px;
}

.dash-eyebrow {
    color: #a93614;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.dash-heading h1 {
    margin: 12px 0;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -1.3px;
}

.dash-heading p {
    margin: 0;
    color: #656b73;
    font-size: 15px;
    line-height: 1.7;
}

.dash-button,
.dash-button-secondary {
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.dash-button {
    background: #f26336;
    color: #17191d;
}

.dash-button:hover {
    background: #ff8058;
}

.dash-button-secondary {
    background: #fff;
    color: #414852;
    border-color: #dfe2e6;
}

.dash-button-secondary:hover {
    background: #f7f8fa;
}

/* Inbox */

.dash-inbox {
    overflow: hidden;
    border: 1px solid #e5e8ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(25, 35, 45, 0.025);
}

.dash-inbox-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border-bottom: 1px solid #edf0f2;
}

.dash-inbox-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dash-inbox-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #fff1e9;
    color: #b7411d;
}

.dash-inbox-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.dash-inbox-title h2 {
    margin: 0 0 7px;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.5;
}

.dash-inbox-title p {
    margin: 0;
    color: #727880;
    font-size: 13px;
    line-height: 1.6;
}

.dash-count {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 5px;
    background: #f0f2f5;
    color: #555b65;
    font-size: 12px;
    vertical-align: middle;
}

.dash-search input,
.dash-field input {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #dfe2e6;
    border-radius: 6px;
    background: #fbfcfd;
    color: #252a31;
    font: inherit;
    font-size: 16px;
}

.dash-search {
    width: 240px;
    max-width: 100%;
    flex-shrink: 0;
}

.dash-empty {
    padding: 75px 24px;
    text-align: center;
}

.dash-empty-symbol {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 22px;
    border: 1px dashed #d2d7dd;
    border-radius: 18px;
    color: #b7411d;
    font-size: 30px;
}

.dash-empty h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 600;
}

.dash-empty p {
    margin: 0;
    color: #727880;
    font-size: 15px;
}

.dash-table-wrap {
    overflow-x: auto;
}

.dash-table {
    width: 100%;
    min-width: 740px;
    border-collapse: collapse;
    font-size: 14px;
}

.dash-table th {
    padding: 16px 24px;
    background: #fafbfc;
    color: #656b73;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
}

.dash-table td {
    max-width: 300px;
    padding: 22px 24px;
    border-top: 1px solid #edf0f2;
    color: #555b65;
    overflow-wrap: anywhere;
}

.dash-table strong {
    color: #252a31;
    font-weight: 600;
}

.dash-table-secondary {
    display: block;
    margin-top: 6px;
    font-size: 13px;
}

.dash-submission-row:hover {
    background: #fdfaf8;
}

.dash-view-button {
    padding: 8px 14px;
    border: 1px solid #e5e8ec;
    border-radius: 5px;
    background: #fff;
    color: #a93614;
    font-weight: 600;
    cursor: pointer;
}

.dash-no-results {
    padding: 25px;
    margin: 0;
    color: #656b73;
    text-align: center;
}

.dash-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 0;
    color: #727880;
    font-size: 12px;
}

/* Modals */

.dash-dialog {
    width: min(520px, calc(100% - 32px));
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 30px;
    overflow-y: auto;
    border: 1px solid #e5e8ec;
    border-radius: 14px;
    background: #fff;
    color: #252a31;
    font-family: "Inter", sans-serif;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.18);
}

.dash-dialog::backdrop {
    background: rgba(20, 25, 30, 0.45);
    backdrop-filter: blur(3px);
}

.dash-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.dash-dialog h2 {
    margin: 10px 0 0;
    font-size: 24px;
    font-weight: 700;
}

.dash-close {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 6px;
    background: #f2f4f6;
    color: #555b65;
    font-size: 25px;
    cursor: pointer;
}

.dash-dialog-description {
    margin-bottom: 25px;
    color: #656b73;
    font-size: 14px;
    line-height: 1.7;
}

.dash-field {
    display: grid;
    gap: 9px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.dash-field small {
    color: #727880;
    font-size: 12px;
    font-weight: 400;
}

.dash-dialog-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

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

.dash-details dt {
    margin-bottom: 6px;
    color: #727880;
    font-size: 12px;
    font-weight: 500;
}

.dash-details dd {
    margin: 0;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.dash-message {
    padding: 20px;
    border-radius: 8px;
    background: #f7f8fa;
}

.dash-message h3 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
}

.dash-message p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.dash-notice {
    padding: 14px 18px;
    margin-bottom: 24px;
    border: 1px solid #b8dbca;
    border-radius: 7px;
    background: #f0faf5;
    color: #245c42;
    font-size: 14px;
}

.dash-notice-error {
    border-color: #f4c7c7;
    background: #fff1f1;
    color: #a12626;
}

.gre-dashboard :is(input, button, a):focus-visible,
.dash-dialog :is(input, button):focus-visible {
    outline: 2px solid #b7411d;
    outline-offset: 3px;
}

.dash-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 800px) {
    .dash-heading,
    .dash-inbox-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dash-search {
        width: 100%;
    }

    .dash-content {
        padding-top: 35px;
    }
}

@media (max-width: 480px) {
    .dash-container {
        width: calc(100% - 32px);
    }

    .dash-admin-label {
        display: none;
    }

    .dash-header-inner {
        gap: 15px;
    }

    .dash-inbox-heading {
        padding: 20px;
    }

    .dash-footer {
        flex-direction: column;
        gap: 8px;
    }

    .dash-dialog {
        padding: 24px 20px;
    }

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