:root {
    --eday-blue: #24479b;
    --eday-blue-dark: #17326f;
    --eday-blue-soft: #edf3ff;
    --eday-gold: #f8b437;
    --eday-gold-soft: #fff6df;
    --eday-green: #12845f;
    --eday-red: #b42336;
    --eday-ink: #15243b;
    --eday-text: #45546b;
    --eday-muted: #6c7a90;
    --eday-line: #dbe3ec;
    --eday-page: #f4f7fb;
    --eday-surface: #ffffff;
    --eday-shadow: 0 16px 40px rgba(21, 36, 59, 0.09);
    --eday-shadow-small: 0 8px 22px rgba(21, 36, 59, 0.07);
}

body.eday-public-shell,
body.eday-user-shell {
    min-height: 100vh;
    color: var(--eday-ink);
    background: var(--eday-page);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.eday-public-shell *,
.eday-user-shell * {
    letter-spacing: 0;
}

.eday-public-shell a,
.eday-user-shell a {
    text-decoration: none;
}

.eday-public-shell button,
.eday-public-shell input,
.eday-user-shell button,
.eday-user-shell input,
.eday-user-shell select,
.eday-user-shell textarea {
    font: inherit;
}

/* Login */
.eday-public-shell .accountContainer {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: none;
    min-height: calc(100vh - 48px);
    margin: 0;
    padding: 0;
}

.eday-public-shell .login-page {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 48px);
    margin: 0;
    padding: 24px;
}

.eday-public-shell .login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
    width: min(1180px, 100%);
    min-height: 640px;
    margin: auto;
    overflow: hidden;
    border: 1px solid var(--eday-line);
    border-radius: 8px;
    background: var(--eday-surface);
    box-shadow: var(--eday-shadow);
}

.eday-public-shell .identity {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 640px;
    padding: 44px 48px 36px;
    overflow: hidden;
    background: var(--eday-blue);
    color: #fff;
}

.eday-public-shell .identity::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 34%;
    height: 8px;
    background: var(--eday-gold);
    content: '';
}

.eday-public-shell .identity .brand {
    position: relative;
    z-index: 1;
}

.eday-public-shell .identity .brand img {
    display: block;
    width: 208px;
    height: auto;
    object-fit: contain;
}

.eday-public-shell .identity .identity-copy {
    position: relative;
    z-index: 1;
    max-width: 530px;
    padding: 72px 0;
}

.eday-public-shell .eyebrow,
.eday-user-shell .eyebrow {
    display: block;
    color: var(--eday-blue);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.eday-public-shell .identity .eyebrow {
    margin-bottom: 14px;
    color: var(--eday-gold);
}

.eday-public-shell .identity h1 {
    max-width: 520px;
    margin: 0;
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.08;
}

.eday-public-shell .identity p {
    max-width: 500px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.7;
}

.eday-public-shell .identity .identity-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 600;
}

.eday-public-shell .identity .identity-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eday-public-shell .login-panel {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 56px;
    background: #fff;
}

.eday-public-shell .login-card {
    width: min(100%, 410px);
}

.eday-public-shell .login-card .heading {
    margin-bottom: 30px;
}

.eday-public-shell .login-card .heading .eyebrow {
    margin-bottom: 10px;
}

.eday-public-shell .login-card .heading h2 {
    margin: 0;
    color: var(--eday-ink);
    font-size: 31px;
    font-weight: 700;
    line-height: 1.2;
}

.eday-public-shell .login-card .heading p {
    margin: 10px 0 0;
    color: var(--eday-muted);
    font-size: 14px;
    line-height: 1.6;
}

.eday-public-shell .login-card .field,
.settings-page .settings-form .field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.eday-public-shell .login-card .field label,
.settings-page .settings-form .field label {
    margin: 0;
    color: #35445a;
    font-size: 12px;
    font-weight: 700;
}

.eday-public-shell .login-card .control {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 52px;
    overflow: hidden;
    border: 1px solid #cfd9e4;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.eday-public-shell .login-card .control:focus-within {
    border-color: var(--eday-blue);
    box-shadow: 0 0 0 3px rgba(36, 71, 155, 0.12);
}

.eday-public-shell .login-card .control > i {
    color: var(--eday-blue);
    text-align: center;
}

.eday-public-shell .login-card .control input {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 10px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--eday-ink);
    font-size: 14px;
    font-weight: 600;
}

.eday-public-shell .login-card .control input::placeholder {
    color: #8a96a7;
    opacity: 1;
}

.eday-public-shell .password-toggle,
.settings-page .password-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-right: 4px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--eday-muted);
}

.eday-public-shell .password-toggle:hover,
.eday-public-shell .password-toggle:focus,
.settings-page .password-toggle:hover,
.settings-page .password-toggle:focus {
    background: var(--eday-blue-soft);
    color: var(--eday-blue);
    outline: 0;
}

.eday-public-shell .login-card .actions {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.eday-public-shell .primary-action,
.eday-public-shell .secondary-action,
.eday-user-shell .primary-button,
.eday-user-shell .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.eday-public-shell .primary-action,
.eday-user-shell .primary-button {
    border: 1px solid var(--eday-blue);
    background: var(--eday-blue);
    color: #fff;
}

.eday-public-shell .primary-action {
    width: 100%;
}

.eday-public-shell .primary-action:hover,
.eday-public-shell .primary-action:focus,
.eday-user-shell .primary-button:hover,
.eday-user-shell .primary-button:focus {
    border-color: var(--eday-blue-dark);
    background: var(--eday-blue-dark);
    color: #fff;
}

.eday-public-shell .secondary-action,
.eday-user-shell .secondary-button {
    border: 1px solid #cfd9e4;
    background: #fff;
    color: var(--eday-blue);
}

.eday-public-shell .secondary-action:hover,
.eday-public-shell .secondary-action:focus,
.eday-user-shell .secondary-button:hover,
.eday-user-shell .secondary-button:focus {
    border-color: var(--eday-blue);
    background: var(--eday-blue-soft);
    color: var(--eday-blue-dark);
}

.eday-public-shell .secondary-action img {
    width: 24px;
    height: 16px;
    object-fit: cover;
}

.eday-public-shell .login-card .divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8a96a7;
    font-size: 11px;
    text-transform: uppercase;
}

.eday-public-shell .login-card .divider::before,
.eday-public-shell .login-card .divider::after {
    flex: 1;
    height: 1px;
    background: var(--eday-line);
    content: '';
}

.eday-public-shell .login-card .alert,
.settings-page .alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.eday-public-shell .login-card .access-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 24px 0 0;
    color: var(--eday-muted);
    font-size: 12px;
    line-height: 1.5;
}

.eday-public-shell .login-card .access-note i {
    margin-top: 2px;
    color: var(--eday-blue);
}

.eday-public-shell .login-card .eu-mark {
    display: grid;
    place-items: center;
    width: 72px;
    height: 56px;
    margin-bottom: 28px;
    border: 1px solid #d8e2ee;
    border-radius: 8px;
    background: var(--eday-blue-soft);
}

.eday-public-shell .login-card .eu-mark img {
    width: 48px;
    height: 32px;
    object-fit: cover;
}

/* Signed-in shell */
.eday-user-shell {
    display: flex;
    flex-direction: column;
}

.eday-user-shell .account-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--eday-line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 5px 18px rgba(21, 36, 59, 0.05);
}

.eday-user-shell .account-header .navbar {
    min-height: 76px;
    padding: 0;
}

.eday-user-shell .account-header .container,
.eday-user-shell .eday-footer .container {
    width: min(100% - 40px, 1240px);
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.eday-user-shell .account-header .brand {
    display: inline-flex;
    align-items: center;
    width: 146px;
    height: 58px;
    margin-right: 32px;
    padding: 4px 0;
}

.eday-user-shell .account-header .brand img {
    display: block;
    width: 138px;
    height: 54px;
    object-fit: contain;
}

.eday-user-shell .account-header .account-desktop-navigation {
    display: flex;
    flex: 1;
    align-items: center;
}

.eday-user-shell .account-header .navigation {
    display: flex;
    gap: 4px;
}

.eday-user-shell .account-header .navigation .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #58677d;
    font-size: 13px;
    font-weight: 700;
}

.eday-user-shell .account-header .navigation .nav-link:hover,
.eday-user-shell .account-header .navigation .nav-link:focus {
    background: var(--eday-blue-soft);
    color: var(--eday-blue);
}

.eday-user-shell .account-header .navigation .nav-link.active {
    border-color: rgba(36, 71, 155, 0.12);
    background: var(--eday-blue-soft);
    color: var(--eday-blue-dark);
}

.eday-user-shell .account-header .account-menu {
    margin-left: auto;
}

.eday-user-shell .account-header .user-button {
    display: grid;
    grid-template-columns: 38px minmax(0, auto) auto;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 5px 12px 5px 6px;
    border: 1px solid var(--eday-line);
    border-radius: 8px;
    background: #fff;
    color: var(--eday-ink);
    box-shadow: var(--eday-shadow-small);
}

.eday-user-shell .account-header .user-button:hover,
.eday-user-shell .account-header .user-button:focus {
    border-color: #bfcddd;
    outline: 0;
}

.eday-user-shell .account-header .user-button .avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: var(--eday-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.eday-user-shell .account-header .user-button .user-copy {
    display: grid;
    min-width: 96px;
    text-align: left;
}

.eday-user-shell .account-header .user-button strong {
    overflow: hidden;
    max-width: 160px;
    color: var(--eday-ink);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eday-user-shell .account-header .user-button small {
    color: var(--eday-muted);
    font-size: 10px;
}

.eday-user-shell .account-header .dropdown-menu {
    min-width: 230px;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid var(--eday-line);
    border-radius: 8px;
    box-shadow: var(--eday-shadow);
}

.eday-user-shell .account-header .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 6px;
    color: var(--eday-text);
    font-size: 12px;
    font-weight: 600;
}

.eday-user-shell .account-header .dropdown-item i {
    width: 18px;
    color: var(--eday-blue);
    text-align: center;
}

.eday-user-shell .account-header .dropdown-item:hover,
.eday-user-shell .account-header .dropdown-item:focus {
    background: var(--eday-blue-soft);
    color: var(--eday-blue-dark);
}

.eday-user-shell .account-header .dropdown-item.logout i {
    color: var(--eday-red);
}

.eday-user-shell .account-header .mobile-menu-toggle {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--eday-line);
    border-radius: 8px;
    background: var(--eday-blue);
    color: #fff;
}

.eday-user-shell .account-header .mobile-menu-toggle:hover,
.eday-user-shell .account-header .mobile-menu-toggle:focus-visible {
    border-color: var(--eday-blue-dark);
    background: var(--eday-blue-dark);
    outline: 3px solid rgba(36, 71, 155, 0.18);
    outline-offset: 2px;
}

.eday-user-shell .mobile-account-drawer {
    width: min(88vw, 360px);
    border: 0;
    background: #fff;
    color: var(--eday-ink);
    box-shadow: 18px 0 46px rgba(21, 36, 59, 0.18);
}

.eday-user-shell .mobile-account-drawer .offcanvas-header {
    min-height: 78px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--eday-line);
}

.eday-user-shell .mobile-account-drawer .drawer-brand {
    display: inline-flex;
    align-items: center;
    width: 128px;
    height: 56px;
}

.eday-user-shell .mobile-account-drawer .drawer-brand img {
    display: block;
    width: 124px;
    height: 52px;
    object-fit: contain;
}

.eday-user-shell .mobile-account-drawer .drawer-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--eday-line);
    border-radius: 8px;
    background: #fff;
    color: var(--eday-blue);
}

.eday-user-shell .mobile-account-drawer .drawer-close:hover,
.eday-user-shell .mobile-account-drawer .drawer-close:focus-visible {
    border-color: var(--eday-blue);
    background: var(--eday-blue-soft);
    outline: 0;
}

.eday-user-shell .mobile-account-drawer .offcanvas-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 18px;
}

.eday-user-shell .mobile-account-drawer .drawer-profile {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: var(--eday-blue-soft);
}

.eday-user-shell .mobile-account-drawer .drawer-profile .avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 7px;
    background: var(--eday-blue);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.eday-user-shell .mobile-account-drawer .drawer-profile > span:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.eday-user-shell .mobile-account-drawer .drawer-profile strong {
    overflow: hidden;
    color: var(--eday-ink);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eday-user-shell .mobile-account-drawer .drawer-profile small {
    color: var(--eday-muted);
    font-size: 10px;
    font-weight: 600;
}

.eday-user-shell .mobile-account-drawer .drawer-navigation {
    display: grid;
    gap: 8px;
    margin-top: 22px;
}

.eday-user-shell .mobile-account-drawer .drawer-link {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--eday-text);
}

.eday-user-shell .mobile-account-drawer .drawer-link > i:first-child {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 7px;
    background: #f2f5f9;
    color: var(--eday-blue);
}

.eday-user-shell .mobile-account-drawer .drawer-link > i:last-child {
    color: #91a0b3;
    font-size: 9px;
    text-align: right;
}

.eday-user-shell .mobile-account-drawer .drawer-link > span {
    display: grid;
    gap: 2px;
}

.eday-user-shell .mobile-account-drawer .drawer-link strong {
    color: inherit;
    font-size: 12px;
    font-weight: 700;
}

.eday-user-shell .mobile-account-drawer .drawer-link small {
    color: var(--eday-muted);
    font-size: 9px;
    font-weight: 500;
}

.eday-user-shell .mobile-account-drawer .drawer-link:hover,
.eday-user-shell .mobile-account-drawer .drawer-link:focus-visible {
    border-color: #d8e2ef;
    background: #f8faff;
    color: var(--eday-blue-dark);
    outline: 0;
}

.eday-user-shell .mobile-account-drawer .drawer-link.active {
    border-color: rgba(36, 71, 155, 0.18);
    background: var(--eday-blue-soft);
    color: var(--eday-blue-dark);
}

.eday-user-shell .mobile-account-drawer .drawer-link.active > i:first-child {
    background: var(--eday-blue);
    color: #fff;
}

.eday-user-shell .mobile-account-drawer .drawer-footer {
    margin-top: auto;
    padding-top: 20px;
}

.eday-user-shell .mobile-account-drawer .drawer-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #ebcbd1;
    border-radius: 8px;
    background: #fff;
    color: var(--eday-red);
    font-size: 12px;
    font-weight: 700;
}

.eday-user-shell .mobile-account-drawer .drawer-logout:hover,
.eday-user-shell .mobile-account-drawer .drawer-logout:focus-visible {
    border-color: var(--eday-red);
    background: #fff5f6;
    color: #8f1828;
    outline: 0;
}

.eday-user-shell .offcanvas-backdrop.show {
    background: #12213a;
    opacity: 0.48;
}

.eday-user-shell .accountContainer {
    flex: 1;
    width: min(100% - 40px, 1240px);
    max-width: none;
    min-height: 0;
    margin: 0 auto;
    padding: 38px 0 52px;
}

.eday-user-shell .account-page,
.eday-user-shell .account-workspace {
    width: 100%;
    max-width: none;
    margin: 0;
}

.eday-user-shell .breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: var(--eday-muted);
    font-size: 11px;
    font-weight: 600;
}

.eday-user-shell .breadcrumbs a {
    color: var(--eday-blue);
}

.eday-user-shell .breadcrumbs i {
    font-size: 8px;
}

.eday-user-shell .page-heading,
.eday-user-shell .account-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.eday-user-shell .page-heading .eyebrow,
.eday-user-shell .account-heading .account-kicker {
    margin-bottom: 8px;
}

.eday-user-shell .page-heading h1,
.eday-user-shell .account-heading .account-title {
    margin: 0;
    color: var(--eday-ink);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
}

.eday-user-shell .page-heading p,
.eday-user-shell .account-heading .account-subtitle {
    margin: 10px 0 0;
    color: var(--eday-muted);
    font-size: 14px;
    line-height: 1.6;
}

.eday-user-shell .survey-workspace .form-introduction {
    margin: -8px 0 24px;
    padding: 18px 20px;
    border: 1px solid var(--eday-line);
    border-left: 4px solid var(--eday-gold);
    border-radius: 8px;
    background: #fff;
    color: var(--eday-muted);
    font-size: 13px;
    line-height: 1.7;
    box-shadow: var(--eday-shadow-small);
}

.eday-user-shell .survey-workspace .form-introduction p,
.eday-user-shell .survey-workspace .form-introduction blockquote {
    margin: 0 0 12px;
}

.eday-user-shell .survey-workspace .form-introduction p:last-child,
.eday-user-shell .survey-workspace .form-introduction blockquote:last-child {
    margin-bottom: 0;
}

.eday-user-shell .survey-workspace .form-introduction ul,
.eday-user-shell .survey-workspace .form-introduction ol {
    margin: 10px 0;
    padding-left: 22px;
}

.eday-user-shell .survey-workspace .form-introduction a {
    color: var(--eday-blue);
    font-weight: 600;
    text-decoration: underline;
}

.eday-user-shell .page-heading .heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eday-user-shell .page-heading .count {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #f0dfad;
    border-radius: 8px;
    background: var(--eday-gold-soft);
    color: #74500c;
    font-size: 12px;
    font-weight: 600;
}

.eday-user-shell .page-heading .count strong {
    font-size: 18px;
    font-weight: 700;
}

.missions-page .overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid var(--eday-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--eday-shadow-small);
}

.missions-page .summary {
    display: flex;
    align-items: center;
    gap: 28px;
}

.missions-page .summary > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.missions-page .summary .summary-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--eday-blue-soft);
    color: var(--eday-blue);
}

.missions-page .summary .summary-icon.gold {
    background: var(--eday-gold-soft);
    color: #8a5f0b;
}

.missions-page .summary span:not(.summary-icon) {
    display: grid;
}

.missions-page .summary strong {
    color: var(--eday-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
}

.missions-page .summary small {
    color: var(--eday-muted);
    font-size: 10px;
    font-weight: 600;
}

.missions-page .search {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    width: min(100%, 330px);
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #cfd9e4;
    border-radius: 8px;
    background: #fff;
    color: var(--eday-muted);
}

.missions-page .search:focus-within {
    border-color: var(--eday-blue);
    box-shadow: 0 0 0 3px rgba(36, 71, 155, 0.1);
}

.missions-page .search i {
    text-align: center;
}

.missions-page .search input {
    width: 100%;
    height: 42px;
    padding: 0 12px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--eday-ink);
    font-size: 12px;
    font-weight: 600;
}

.missions-page .list-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.missions-page .mission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.missions-page .mission-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    min-height: 190px;
    padding: 20px;
    border: 1px solid var(--eday-line);
    border-radius: 8px;
    background: #fff;
    color: var(--eday-ink);
    text-align: left;
    box-shadow: var(--eday-shadow-small);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.missions-page .mission-card:hover,
.missions-page .mission-card:focus {
    border-color: rgba(36, 71, 155, 0.35);
    color: var(--eday-ink);
    box-shadow: 0 14px 30px rgba(21, 36, 59, 0.11);
    transform: translateY(-2px);
}

.missions-page .mission-card .card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.missions-page .mission-card .mission-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--eday-blue-soft);
    color: var(--eday-blue);
    font-size: 15px;
}

.missions-page .mission-card .form-count {
    padding: 6px 9px;
    border-radius: 6px;
    background: var(--eday-gold-soft);
    color: #74500c;
    font-size: 10px;
    font-weight: 700;
}

.missions-page .mission-card .mission-copy {
    display: grid;
    gap: 6px;
    margin: 20px 0 18px;
    text-align: left;
}

.missions-page .mission-card .mission-copy small {
    color: var(--eday-blue);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.missions-page .mission-card .mission-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--eday-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.missions-page .mission-card .card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e6ebf1;
    color: var(--eday-blue);
    font-size: 11px;
    font-weight: 700;
    text-align: left;
}

.missions-page .mission-card .card-action i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--eday-blue);
    color: #fff;
}

.missions-page .forms {
    display: grid;
    gap: 10px;
}

.missions-page .forms .form-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 88px;
    padding: 16px 18px;
    border: 1px solid var(--eday-line);
    border-radius: 8px;
    background: #fff;
    color: var(--eday-ink);
    box-shadow: 0 4px 12px rgba(21, 36, 59, 0.04);
}

.missions-page .forms .form-card:hover,
.missions-page .forms .form-card:focus {
    border-color: rgba(36, 71, 155, 0.35);
    color: var(--eday-ink);
    box-shadow: var(--eday-shadow-small);
}

.missions-page .forms .number {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    background: var(--eday-blue-soft);
    color: var(--eday-blue);
    font-size: 12px;
    font-weight: 700;
}

.missions-page .forms .form-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.missions-page .forms .form-copy strong {
    overflow: hidden;
    color: var(--eday-ink);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.missions-page .forms .form-copy small {
    overflow: hidden;
    color: var(--eday-muted);
    font-size: 12px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.missions-page .forms .open-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--eday-blue);
    font-size: 11px;
    font-weight: 700;
}

.missions-page .search-empty,
.missions-page .empty-state {
    border: 1px dashed #c8d4e1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--eday-muted);
    text-align: center;
}

.missions-page .search-empty {
    margin-top: 12px;
    padding: 24px;
    font-size: 13px;
    font-weight: 600;
}

.missions-page .empty-state {
    display: grid;
    place-items: center;
    min-height: 380px;
    padding: 48px 24px;
}

.missions-page .empty-state .icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: var(--eday-blue-soft);
    color: var(--eday-blue);
    font-size: 20px;
}

.missions-page .empty-state h2 {
    margin: 0;
    color: var(--eday-ink);
    font-size: 20px;
    font-weight: 700;
}

.missions-page .empty-state p {
    margin: 8px 0 20px;
    font-size: 13px;
}

/* Account settings */
.settings-page .settings-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.settings-page .profile-summary,
.settings-page .settings-card {
    border: 1px solid var(--eday-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--eday-shadow-small);
}

.settings-page .profile-summary {
    position: sticky;
    top: 98px;
    padding: 26px 22px;
    text-align: center;
}

.settings-page .profile-summary > img {
    width: 88px;
    height: 88px;
    border: 4px solid var(--eday-blue-soft);
    border-radius: 8px;
    object-fit: cover;
}

.settings-page .profile-summary h2 {
    margin: 16px 0 4px;
    color: var(--eday-ink);
    font-size: 17px;
    font-weight: 700;
}

.settings-page .profile-summary > p {
    margin: 0;
    color: var(--eday-muted);
    font-size: 12px;
}

.settings-page .profile-summary .role {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    padding: 6px 9px;
    border-radius: 6px;
    background: var(--eday-gold-soft);
    color: #74500c;
    font-size: 10px;
    font-weight: 700;
}

.settings-page .profile-summary dl {
    display: grid;
    gap: 13px;
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--eday-line);
    text-align: left;
}

.settings-page .profile-summary dl div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.settings-page .profile-summary dt {
    color: var(--eday-muted);
    font-size: 10px;
    font-weight: 600;
}

.settings-page .profile-summary dd {
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--eday-ink);
    font-size: 11px;
    font-weight: 700;
}

.settings-page .settings-content {
    display: grid;
    gap: 16px;
}

.settings-page .settings-card {
    padding: 24px;
}

.settings-page .settings-card .card-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.settings-page .settings-card .card-heading .icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: var(--eday-blue-soft);
    color: var(--eday-blue);
}

.settings-page .settings-card .card-heading .icon.gold {
    background: var(--eday-gold-soft);
    color: #8a5f0b;
}

.settings-page .settings-card .card-heading h2 {
    margin: 0;
    color: var(--eday-ink);
    font-size: 18px;
    font-weight: 700;
}

.settings-page .settings-card .card-heading p {
    margin: 5px 0 0;
    color: var(--eday-muted);
    font-size: 12px;
    line-height: 1.5;
}

.settings-page .inline-notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 20px;
    padding: 11px 12px;
    border: 1px solid #d3e1f4;
    border-radius: 8px;
    background: #f4f8ff;
    color: #385078;
    font-size: 12px;
    line-height: 1.5;
}

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

.settings-page .settings-form .field.full {
    grid-column: 1 / -1;
}

.settings-page .settings-form input:not([type='hidden']) {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfd9e4;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: var(--eday-ink);
    font-size: 13px;
    font-weight: 600;
}

.settings-page .settings-form input:focus {
    border-color: var(--eday-blue);
    box-shadow: 0 0 0 3px rgba(36, 71, 155, 0.1);
}

.settings-page .settings-form input[readonly] {
    background: #f2f5f8;
    color: #66758a;
}

.settings-page .settings-form input[type='file'] {
    padding: 7px;
    font-size: 11px;
}

.settings-page .settings-form .field > small {
    color: var(--eday-muted);
    font-size: 10px;
}

.settings-page .password-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cfd9e4;
    border-radius: 8px;
}

.settings-page .password-control:focus-within {
    border-color: var(--eday-blue);
    box-shadow: 0 0 0 3px rgba(36, 71, 155, 0.1);
}

.settings-page .password-control input:not([type='hidden']) {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.settings-page .form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

/* Assigned form workspace */
.eday-user-shell .survey-workspace .btn-light,
.eday-user-shell .account-heading .btn-light {
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid var(--eday-line);
    border-radius: 8px;
    background: #fff;
    color: var(--eday-blue);
    font-size: 11px;
    font-weight: 700;
}

.eday-user-shell .survey-utility,
.eday-user-shell .survey-card,
.eday-user-shell .thank-you-page {
    border: 1px solid var(--eday-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--eday-shadow-small);
}

.eday-user-shell .survey-utility {
    margin-bottom: 14px;
    padding: 16px;
}

.eday-user-shell .survey-card {
    max-width: none;
    padding: 22px;
}

.eday-user-shell .survey-card > form > ul {
    display: grid;
    gap: 16px;
    margin: 0;
}

.eday-user-shell .survey-card > form > ul > li {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d5e0eb;
    border-radius: 8px;
    background: #fff;
    color: var(--eday-ink);
}

.eday-user-shell .survey-card > form > ul > li > h4 {
    margin: 0;
    padding: 14px 18px;
    background: var(--eday-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.eday-user-shell .survey-card > form > ul > li > ul {
    margin: 0;
    padding: 8px 16px 14px;
}

.eday-user-shell .survey-card > form > ul > li > ul > li {
    margin: 0;
    padding: 18px 2px;
    border: 0;
    border-bottom: 1px solid #e3e9f0;
    background: #fff;
    color: var(--eday-ink);
}

.eday-user-shell .survey-card > form > ul > li > ul > li:last-child {
    border-bottom: 0;
}

.eday-user-shell .survey-card > form > ul > li > ul > li > ul {
    margin: 14px 0 0;
    padding: 10px;
    border-left: 3px solid var(--eday-gold);
    border-radius: 0 6px 6px 0;
    background: #f7f9fc;
}

.eday-user-shell .survey-card > form > ul > li > ul > li > ul > li {
    margin: 0;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: var(--eday-ink);
}

.eday-user-shell .survey-card .col-form-label {
    padding-top: 8px;
    color: #263750;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.eday-user-shell .survey-card .form-control,
.eday-user-shell .survey-card .form-select {
    min-height: 44px;
    border-color: #cfd9e4;
    border-radius: 8px;
    color: var(--eday-ink);
    font-size: 12px;
    font-weight: 500;
}

.eday-user-shell .survey-card textarea.form-control {
    min-height: 96px;
}

.eday-user-shell .survey-card .form-control:focus,
.eday-user-shell .survey-card .form-select:focus {
    border-color: var(--eday-blue);
    box-shadow: 0 0 0 3px rgba(36, 71, 155, 0.1);
}

.eday-user-shell .survey-card .maxlength-feedback {
    display: block;
    margin-top: 5px;
    color: var(--eday-muted);
    font-size: 9px;
}

.eday-user-shell .survey-card .form-check {
    position: relative;
    min-height: 54px;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
}

.eday-user-shell .survey-card .form-check-label {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 13px 48px 13px 52px;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    background: #fff;
    color: #34445b;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.eday-user-shell .survey-card .form-check-input {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 16px;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 2px solid #aebdcd;
    background: #fff;
    box-shadow: none;
    cursor: pointer;
    pointer-events: none;
    transform: translateY(-50%);
    appearance: none;
}

.eday-user-shell .survey-card .form-check-input[type="radio"] {
    border-radius: 50%;
}

.eday-user-shell .survey-card .form-check-input[type="checkbox"] {
    border-radius: 6px;
}

.eday-user-shell .survey-card .form-check-label:hover {
    border-color: #a8bce0;
    background: #f8faff;
}

.eday-user-shell .survey-card .form-check-input:checked {
    border-color: var(--eday-blue);
}

.eday-user-shell .survey-card .form-check-input[type="radio"]:checked {
    border-width: 6px;
}

.eday-user-shell .survey-card .form-check-input[type="checkbox"]:checked {
    background: var(--eday-blue);
}

.eday-user-shell .survey-card .form-check-input[type="checkbox"]:checked::after {
    position: absolute;
    top: 1px;
    left: 5px;
    width: 7px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: "";
    transform: rotate(45deg);
}

.eday-user-shell .survey-card .form-check-input:checked + .form-check-label {
    border-color: rgba(36, 71, 155, 0.55);
    background: var(--eday-blue-soft);
    color: var(--eday-blue);
    box-shadow: inset 3px 0 0 var(--eday-blue);
}

.eday-user-shell .survey-card .form-check-input:focus-visible + .form-check-label {
    border-color: var(--eday-blue);
    outline: 3px solid rgba(36, 71, 155, 0.2);
    outline-offset: 2px;
}

.eday-user-shell .survey-card .form-check-input:disabled + .form-check-label {
    background: #f4f6f8;
    color: #8a96a6;
    cursor: not-allowed;
}

.eday-user-shell .survey-card .matrix-choice {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -8px 0;
    border-radius: 8px;
    cursor: pointer;
}

.eday-user-shell .survey-card .matrix-choice:hover {
    background: var(--eday-blue-soft);
}

.eday-user-shell .survey-card .matrix-choice input[type="radio"] {
    width: 22px;
    height: 22px;
    margin: 0;
    border: 2px solid #aebdcd;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    appearance: none;
}

.eday-user-shell .survey-card .matrix-choice input[type="radio"]:checked {
    border: 6px solid var(--eday-blue);
}

.eday-user-shell .survey-card .matrix-choice:has(input:focus-visible) {
    outline: 3px solid rgba(36, 71, 155, 0.2);
    outline-offset: 1px;
}

.eday-user-shell .survey-card .table-responsive {
    border-color: var(--eday-line);
    border-radius: 8px;
}

.eday-user-shell .survey-card .table th {
    background: #f1f5f9;
    color: #42516a;
    font-size: 10px;
    font-weight: 700;
}

.eday-user-shell .survey-card .table td {
    color: var(--eday-ink);
    font-size: 11px;
}

.eday-user-shell .survey-card .cache-answer {
    position: static;
    float: none;
    margin: 9px 0 0;
    padding: 6px 9px;
    border-radius: 6px;
    background: #eaf6f1;
    color: #116047;
    font-size: 10px;
    font-weight: 700;
}

.eday-user-shell .form-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--eday-line);
}

.eday-user-shell .form-action-secondary {
    display: flex;
    gap: 8px;
}

/* Footer */
.eday-footer {
    margin: 0;
    border-top: 1px solid var(--eday-line);
    background: rgba(255, 255, 255, 0.78);
    color: var(--eday-muted);
}

.eday-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 48px;
    font-size: 10px;
}

.eday-footer strong {
    color: var(--eday-ink);
    font-weight: 700;
}

.eday-public-shell .eday-footer .container {
    width: min(100% - 40px, 1180px);
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 1050px) {
    .eday-public-shell .login-shell {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
    }

    .eday-public-shell .identity {
        padding: 38px;
    }

    .eday-public-shell .identity h1 {
        font-size: 40px;
    }

    .eday-public-shell .login-panel {
        padding: 42px;
    }

    .missions-page .mission-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .eday-user-shell .account-header .mobile-menu-toggle {
        display: grid;
        margin-left: auto;
    }

    .eday-user-shell .account-header .account-desktop-navigation {
        display: none;
    }

    .settings-page .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-page .profile-summary {
        position: static;
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px;
        text-align: left;
    }

    .settings-page .profile-summary > img {
        grid-row: 1 / span 3;
        width: 72px;
        height: 72px;
    }

    .settings-page .profile-summary h2,
    .settings-page .profile-summary > p {
        grid-column: 2;
        margin: 0;
    }

    .settings-page .profile-summary .role {
        grid-column: 3;
        grid-row: 1 / span 2;
        margin: 0;
    }

    .settings-page .profile-summary dl {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .eday-public-shell .login-page {
        padding: 16px;
    }

    .eday-public-shell .login-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .eday-public-shell .identity {
        min-height: 290px;
        padding: 28px;
    }

    .eday-public-shell .identity .brand img {
        width: 150px;
    }

    .eday-public-shell .identity .identity-copy {
        padding: 36px 0 26px;
    }

    .eday-public-shell .identity h1 {
        font-size: 32px;
    }

    .eday-public-shell .identity p {
        margin-top: 12px;
        font-size: 13px;
    }

    .eday-public-shell .login-panel {
        padding: 38px 28px;
    }

    .eday-user-shell .accountContainer {
        width: min(100% - 28px, 1240px);
        padding-top: 28px;
    }

    .eday-user-shell .page-heading,
    .eday-user-shell .account-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .eday-user-shell .page-heading h1,
    .eday-user-shell .account-heading .account-title {
        font-size: 30px;
    }

    .missions-page .overview {
        align-items: stretch;
        flex-direction: column;
    }

    .missions-page .search {
        width: 100%;
    }

    .missions-page .forms .form-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .missions-page .forms .number {
        width: 42px;
        height: 42px;
    }

    .missions-page .forms .open-action {
        grid-column: 2;
        justify-content: space-between;
        padding-top: 8px;
    }

    .settings-page .settings-form .field-grid {
        grid-template-columns: 1fr;
    }

    .settings-page .settings-form .field.full {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .eday-public-shell .accountContainer,
    .eday-public-shell .login-page {
        min-height: 0;
    }

    .eday-public-shell .login-page {
        padding: 0;
    }

    .eday-public-shell .login-shell {
        width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .eday-public-shell .identity {
        min-height: 250px;
        padding: 24px 22px;
    }

    .eday-public-shell .identity .identity-copy {
        padding: 28px 0 20px;
    }

    .eday-public-shell .identity h1 {
        font-size: 28px;
    }

    .eday-public-shell .identity .identity-meta span:last-child {
        display: none;
    }

    .eday-public-shell .login-panel {
        padding: 34px 22px 40px;
    }

    .eday-public-shell .login-card .heading h2 {
        font-size: 27px;
    }

    .eday-public-shell .eday-footer {
        background: #fff;
    }

    .eday-public-shell .eday-footer .container,
    .eday-user-shell .eday-footer .container {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        width: min(100% - 28px, 1240px);
        padding: 12px 0;
    }

    .eday-user-shell .account-header .container {
        width: min(100% - 24px, 1240px);
    }

    .eday-user-shell .account-header .brand {
        width: 120px;
        margin-right: 12px;
    }

    .eday-user-shell .account-header .brand img {
        width: 116px;
        height: 48px;
    }

    .eday-user-shell .accountContainer {
        width: min(100% - 22px, 1240px);
        padding: 24px 0 36px;
    }

    .eday-user-shell .page-heading .heading-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .eday-user-shell .page-heading .secondary-button,
    .eday-user-shell .account-heading .btn-light {
        width: 100%;
    }

    .missions-page .summary {
        justify-content: space-between;
        gap: 12px;
    }

    .missions-page .summary .summary-icon {
        display: none;
    }

    .missions-page .mission-grid {
        grid-template-columns: 1fr;
    }

    .missions-page .mission-card {
        min-height: 190px;
    }

    .settings-page .profile-summary {
        grid-template-columns: 64px minmax(0, 1fr);
        padding: 18px;
    }

    .settings-page .profile-summary > img {
        width: 64px;
        height: 64px;
    }

    .settings-page .profile-summary .role {
        grid-column: 2;
        grid-row: auto;
        justify-self: start;
    }

    .settings-page .profile-summary dl {
        grid-template-columns: 1fr;
    }

    .settings-page .settings-card {
        padding: 18px;
    }

    .settings-page .form-actions,
    .settings-page .form-actions .primary-button {
        width: 100%;
    }

    .eday-user-shell .form-action-bar,
    .eday-user-shell .form-action-secondary {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eday-public-shell *,
    .eday-user-shell * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
