:root {
    --askee-main-color: #007d88;
    --askee-main-dark: #006b74;
    --askee-secondary-color: #d9eced;
    --askee-primary-light-5: #ebf5f5;
    --askee-smoke-light: #f2f5f6;
    --askee-heading-color: #262a2e;
    --askee-text-color: #6f6f6f;
    --askee-muted-color: #9e9e9e;
    --askee-border-color: #d8d8d8;
    --askee-topbar-height: 65px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--askee-text-color);
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--askee-main-color);
    text-decoration: none;
}

a:hover {
    color: var(--askee-main-dark);
}

img {
    display: block;
    max-width: 100%;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Authentication page — matches the Askee.play split-screen layout. */
.auth-split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    min-height: 100vh;
}

.auth-form-column {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100vh;
    flex-direction: column;
    background: #fff;
}

.auth-form-content {
    display: flex;
    width: 100%;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    padding: 56px 0;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5.333px;
    margin: 0 0 48px;
}

.auth-brand__logo {
    width: 46px;
    height: 32px;
    padding-right: 14px;
    object-fit: contain;
}

.auth-brand__wordmark {
    width: 120px;
    height: 32px;
    object-fit: contain;
}

.auth-form-panel {
    width: 58.333333%;
    margin: 0 auto;
    padding: 0 12px;
}

.auth-heading {
    margin-bottom: 24px;
    text-align: center;
}

.auth-heading h1 {
    margin: 0 0 8px;
    color: var(--askee-heading-color);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
}

.auth-heading p {
    margin: 0;
    color: var(--askee-text-color);
}

.auth-status,
.auth-error-summary {
    margin: 0 0 24px;
    padding: 11px 14px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.auth-status {
    color: #155724;
    background: #d4edda;
}

.auth-error-summary {
    color: #a2252b;
    background: #fcebec;
}

.form-group {
    margin-bottom: 16px;
}

.form-label-group {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 8px;
}

.form-label-group label {
    color: var(--askee-heading-color);
    font-size: 16px;
    font-weight: 400;
}

.forgot-password {
    color: var(--askee-main-color);
    font-size: 14px;
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid var(--askee-border-color);
    border-radius: 6px;
    outline: none;
    color: var(--askee-heading-color);
    background: #fff;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control::placeholder {
    color: var(--askee-muted-color);
    opacity: 1;
}

.form-control:focus {
    border-color: var(--askee-main-color);
    box-shadow: 0 0 0 2px rgb(0 125 136 / 16%);
}

.form-control.is-invalid {
    border-color: #d44d55;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: #b02a37;
    font-size: 13px;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 64px;
}

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    height: 100%;
    align-items: center;
    padding: 0 12px;
    border: 0;
    color: var(--askee-main-color);
    background: transparent;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.remember-row {
    display: flex;
    min-height: 24px;
    justify-content: center;
    margin: 0 0 16px;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--askee-text-color);
    cursor: pointer;
    font-size: 14px;
}

.remember-label input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--askee-main-color);
}

.btn-primary {
    display: inline-flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border: 1px solid var(--askee-main-color);
    border-radius: 6px;
    color: #fff;
    background: var(--askee-main-color);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    border-color: var(--askee-main-dark);
    color: #fff;
    background: var(--askee-main-dark);
    box-shadow: 0 0 0 3px rgb(0 125 136 / 16%);
}

.auth-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: 60px;
    align-items: center;
    justify-content: center;
    padding: 2px 12px 0;
    color: var(--askee-text-color);
    font-size: 12px;
    text-align: center;
}

.auth-footer p {
    margin: 0;
}

.auth-visual-column {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 56px 12px;
    background: var(--askee-primary-light-5);
}

.auth-content-image {
    position: relative;
    width: 100%;
    max-width: 423px;
    margin: 0 auto;
}

.auth-content-image > img {
    width: 100%;
    max-width: 423px;
    height: auto;
    margin: 0 auto;
}

.auth-box {
    position: absolute;
    z-index: 10;
    right: -100px;
    bottom: 176px;
    width: auto;
    max-width: 300px;
    padding: 28px 30px;
    border: 2px solid #fff;
    border-radius: 20px;
    background: rgb(255 255 255 / 40%);
    box-shadow: 2px 4px 15px 0 rgb(0 0 0 / 10%);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.auth-box-secondary {
    right: auto;
    bottom: 82px;
    left: -100px;
}

.auth-box p {
    margin: 0;
    color: var(--askee-heading-color);
}

/* Authenticated application shell, based on the Askee.play navigation. */
.app-body {
    min-height: 100vh;
    background: var(--askee-smoke-light);
}

.app-brand {
    display: flex;
    height: 46px;
    flex: 0 0 auto;
    align-items: center;
    padding: 6px 0;
}

.app-brand__logo {
    width: 34px;
    height: 34px;
    margin-right: 10px;
    object-fit: contain;
}

.app-brand__wordmark {
    width: 78px;
    height: auto;
    object-fit: contain;
}

.app-topbar {
    position: fixed;
    z-index: 1030;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    height: var(--askee-topbar-height);
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 0 26px;
    border-bottom: 1px solid #eaeaea;
    background: #fff;
}

.app-icon-button {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #63696d;
    background: transparent;
    cursor: pointer;
}

.app-icon-button:hover {
    color: var(--askee-main-color);
    background: var(--askee-primary-light-5);
}

.app-icon-button svg {
    width: 20px;
    height: 20px;
}

.app-topbar__navigation {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: center;
}

.app-topnav {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 4px;
    padding: 3px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.app-topnav__item {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 6px;
    color: #515b61;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.app-topnav__item:hover {
    color: var(--askee-main-dark);
    background: #f4f8f8;
}

.app-topnav__item.is-active {
    color: var(--askee-main-dark);
    background: var(--askee-primary-light-5);
}

.app-topnav__item:focus-visible {
    outline: 2px solid var(--askee-main-color);
    outline-offset: 2px;
}

.app-topbar__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.app-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 2px;
}

.app-profile__avatar {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--askee-main-color);
    font-size: 14px;
    font-weight: 700;
}

.app-profile__text {
    line-height: 1.25;
}

.app-profile__name {
    display: block;
    color: var(--askee-heading-color);
    font-size: 13px;
    font-weight: 700;
}

.app-profile__email {
    display: block;
    max-width: 190px;
    overflow: hidden;
    color: #92989c;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-form {
    margin: 0 0 0 4px;
}

.logout-button {
    padding: 7px 11px;
    border: 1px solid #dce1e3;
    border-radius: 6px;
    color: #5c6267;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

.logout-button:hover {
    border-color: var(--askee-main-color);
    color: var(--askee-main-color);
}

.app-main {
    min-height: 100vh;
    margin-left: 0;
    padding-top: var(--askee-topbar-height);
}

.app-page {
    padding: 30px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.page-heading h1 {
    margin: 0 0 5px;
    color: var(--askee-heading-color);
    font-size: 24px;
    line-height: 1.25;
}

.page-heading p {
    margin: 0;
    font-size: 14px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
    gap: 24px;
}

.app-card {
    overflow: hidden;
    border: 1px solid #e7ebed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgb(38 42 46 / 3%);
}

.app-card__header {
    padding: 20px 22px;
    border-bottom: 1px solid #edf0f1;
}

.app-card__header h2 {
    margin: 0;
    color: var(--askee-heading-color);
    font-size: 17px;
}

.app-card__body {
    padding: 24px 22px;
}

.welcome-panel {
    position: relative;
    display: flex;
    min-height: 285px;
    align-items: center;
    overflow: hidden;
    padding: 38px 42% 38px 36px;
    border-radius: 8px;
    background: var(--askee-primary-light-5);
}

.welcome-panel h2 {
    margin: 0 0 12px;
    color: var(--askee-heading-color);
    font-size: 25px;
}

.welcome-panel p {
    max-width: 520px;
    margin: 0;
}

.welcome-panel img {
    position: absolute;
    right: 22px;
    bottom: -55px;
    width: min(34%, 230px);
}

.quick-list {
    display: grid;
    gap: 13px;
}

.quick-list__item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px;
    border: 1px solid #edf0f1;
    border-radius: 7px;
}

.quick-list__icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: var(--askee-main-color);
    background: var(--askee-primary-light-5);
}

.quick-list__icon svg {
    width: 19px;
    height: 19px;
}

.quick-list__title {
    display: block;
    color: var(--askee-heading-color);
    font-size: 14px;
    font-weight: 700;
}

.quick-list__description {
    display: block;
    color: #92989c;
    font-size: 12px;
}

@media (max-width: 1300px) {
    .auth-box {
        right: 0;
    }

    .auth-box-secondary {
        right: auto;
        left: 0;
    }
}

@media (max-width: 1000px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .app-profile__text {
        display: none;
    }

    .app-topbar {
        gap: 10px;
        padding: 0 14px;
    }

    .app-topnav__item {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .auth-content-image {
        padding-bottom: 190px;
    }

    .auth-box {
        right: 0;
        bottom: -100px;
    }

    .auth-box-secondary {
        bottom: -210px;
        left: 0;
    }
}

@media (max-width: 1199px) {
    .auth-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .auth-form-panel {
        width: 83.333333%;
    }
}

@media (max-width: 991px) {
    .auth-split {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }
}

@media (max-width: 767px) {
    .auth-split {
        display: block;
    }

    .auth-form-column {
        min-height: 100vh;
    }

    .auth-form-content {
        padding: 56px 0 96px;
    }

    .auth-form-panel {
        width: 83.333333%;
    }

    .remember-row {
        min-height: 21px;
    }

    .auth-footer {
        height: 72px;
        align-items: flex-start;
        padding-top: 22px;
    }

    .auth-visual-column {
        display: none;
    }

    .app-profile__text,
    .app-icon-button {
        display: none;
    }

    .app-brand__wordmark {
        display: none;
    }

    .app-brand__logo {
        margin-right: 0;
    }

    .app-topbar {
        gap: 7px;
        padding: 0 9px;
    }

    .app-topnav {
        justify-content: flex-start;
    }

    .app-topnav__item {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 12px;
    }

    .app-page {
        padding: 22px 16px;
    }

    .welcome-panel {
        min-height: 360px;
        align-items: flex-start;
        padding: 30px 28px 180px;
    }

    .welcome-panel img {
        right: 50%;
        bottom: -54px;
        width: 190px;
        transform: translateX(50%);
    }
}

@media (max-width: 575px) {
    .auth-form-panel {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .auth-heading h1 {
        font-size: 24px;
    }

    .logout-button {
        width: 38px;
        overflow: hidden;
        padding: 7px 8px;
        color: transparent;
    }

    .logout-button::before {
        display: block;
        color: #5c6267;
        content: "↪";
        font-size: 18px;
    }
}
