body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

nav {
    padding-top: env(safe-area-inset-top);
    height: calc(64px + env(safe-area-inset-top));
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-inline-start: -8px;
    border-radius: 50%;
    color: var(--md-sys-color-on-surface);
}

.back-btn:hover {
    background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
    text-decoration: none;
}

.back-btn i {
    font-size: 24px;
}

.login-wrapper,
.changepassword-wrapper,
.signup-wrapper {
    width: 100%;
    max-width: 480px;
    margin: auto;
    padding: 16px 16px calc(32px + env(safe-area-inset-bottom));
}

.signup-wrapper {
    max-width: 952px;
}

.login-container,
.signup-container,
.changepassword-container {
    padding: 40px;
    border-radius: var(--md-sys-shape-corner-extra-large);
    background: var(--md-sys-color-surface-container-low);
    animation: page-rise var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-emphasized-decelerate);
}

@keyframes page-rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
}

.login-header,
.signup-header,
.changepassword-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
}

.login-header::before,
.signup-header::before,
.changepassword-header::before {
    content: "login";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border-radius: 22px;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    font-family: "Material Symbols Rounded";
    font-size: 32px;
    -webkit-font-feature-settings: "liga";
    font-feature-settings: "liga";
}

.signup-header::before {
    content: "person_add";
}

.changepassword-header::before {
    content: "lock_reset";
}

.login-header h2,
.signup-header h2,
.changepassword-header h2 {
    font-size: var(--md-sys-typescale-headline-medium-size) !important;
    line-height: var(--md-sys-typescale-headline-medium-line-height);
    margin-bottom: 8px;
}

.login-header p,
.signup-header p,
.changepassword-header p {
    color: var(--md-sys-color-on-surface-variant);
    font-size: var(--md-sys-typescale-body-medium-size);
    line-height: var(--md-sys-typescale-body-medium-line-height);
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label,
.verification-section > label {
    padding: 0 4px 2px;
    font-size: var(--md-sys-typescale-body-medium-size);
    color: var(--md-sys-color-on-surface-variant);
}

.form-group input.success,
.verification-code-input.success {
    box-shadow: inset 0 0 0 2px var(--md-sys-color-success);
}

.forgot-password {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}

.forgot-password a {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    margin-inline-end: -12px;
    border-radius: var(--md-sys-shape-corner-full);
    font-size: var(--md-sys-typescale-label-large-size);
    font-weight: 500;
}

.forgot-password a:hover {
    background: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent);
    text-decoration: none;
}

.submit-btn {
    width: 100%;
    height: 56px;
    margin-top: 8px;
    font-size: var(--md-sys-typescale-title-medium-size);
}

.signup-link,
.login-link {
    margin-top: 24px;
    text-align: center;
    color: var(--md-sys-color-on-surface-variant);
    font-size: var(--md-sys-typescale-body-medium-size);
}

.signup-link a,
.login-link a {
    font-weight: 500;
    margin-inline-start: 4px;
}

.signup-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    border-radius: var(--md-sys-shape-corner-extra-large);
    background: var(--md-sys-color-surface-container);
}

.avatar-preview {
    width: 136px;
    height: 136px;
    margin-bottom: 12px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--md-sys-color-surface-container-highest);
    box-shadow: 0 0 0 4px var(--md-sys-color-surface-container), 0 0 0 6px var(--md-sys-color-outline-variant);
}

.avatar-preview.has-image {
    box-shadow: 0 0 0 4px var(--md-sys-color-surface-container), 0 0 0 6px var(--md-sys-color-primary);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-btn,
.avatar-remove-btn {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: var(--md-sys-shape-corner-full);
    font-size: var(--md-sys-typescale-label-large-size);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.avatar-upload-btn {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.avatar-remove-btn {
    background: transparent;
    color: var(--md-sys-color-error);
    box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant);
}

#avatar-input {
    display: none;
}

.verification-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.verification-input-wrapper {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.verification-code-input {
    flex: 1;
    min-width: 0;
    letter-spacing: 4px;
    font-variant-numeric: tabular-nums;
}

.send-code-btn {
    height: 56px;
    flex-shrink: 0;
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.countdown {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: var(--md-sys-shape-corner-small);
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    font-size: var(--md-sys-typescale-label-large-size);
    font-weight: 500;
}

.countdown.warning {
    background: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 16px 24px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.hero h1 {
    font-size: clamp(40px, 5.6vw, 68px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -1px;
    color: var(--md-sys-color-on-surface);
}

.hero h1 em {
    font-style: normal;
    color: var(--md-sys-color-primary);
}

.hero-copy > p {
    max-width: 480px;
    font-size: var(--md-sys-typescale-title-large-size);
    line-height: 30px;
    color: var(--md-sys-color-on-surface-variant);
}

.hero-stage {
    position: relative;
    min-height: 460px;
    padding: 32px;
    border-radius: 48px;
    background: var(--md-sys-color-primary-container);
    overflow: hidden;
}

.mock-chat {
    width: min(320px, 82%);
    border-radius: var(--md-sys-shape-corner-extra-large);
    background: var(--md-sys-color-surface);
    overflow: hidden;
    box-shadow: var(--md-sys-elevation-level1);
}

.mock-chat-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface-variant);
}

.mock-chat-bar .material-symbols-rounded {
    font-size: 22px;
}

.mock-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
    font-weight: 500;
}

.mock-avatar.large {
    width: 52px;
    height: 52px;
    font-size: 22px;
}

.mock-chat-title {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 18px;
}

.mock-chat-title strong {
    color: var(--md-sys-color-on-surface);
    font-weight: 500;
}

.mock-chat-title small {
    font-size: var(--md-sys-typescale-body-small-size);
}

.mock-chat-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 16px 72px;
}

.mock-bubble {
    max-width: 85%;
    padding: 9px 14px;
    border-radius: 18px;
    font-size: var(--md-sys-typescale-body-medium-size);
    line-height: 20px;
}

.mock-bubble.in {
    align-self: flex-start;
    background: var(--md-sys-color-surface-container-highest);
    color: var(--md-sys-color-on-surface);
}

.mock-bubble.out {
    align-self: flex-end;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.mock-seen {
    align-self: flex-end;
    padding: 0 6px;
    font-size: var(--md-sys-typescale-label-small-size);
    color: var(--md-sys-color-on-surface-variant);
}

.mock-call {
    position: absolute;
    inset-inline-end: 32px;
    bottom: 32px;
    width: min(340px, calc(100% - 64px));
    padding: 12px;
    border-radius: var(--md-sys-shape-corner-extra-large);
    background: var(--md-sys-color-surface-container-high);
    box-shadow: var(--md-sys-elevation-level3);
}

.mock-call-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mock-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 104px;
    border-radius: var(--md-sys-shape-corner-large);
    background: var(--md-sys-color-surface-container-highest);
    overflow: hidden;
}

.mock-tile.person {
    box-shadow: inset 0 0 0 3px var(--md-sys-color-primary);
}

.mock-tile.screen {
    background: var(--md-sys-color-secondary-container);
}

.mock-live {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    padding: 2px 8px;
    border-radius: var(--md-sys-shape-corner-small);
    background: var(--md-sys-color-error);
    color: var(--md-sys-color-on-error);
    font-size: 10px;
    font-weight: 700;
}

.mock-window {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 64%;
    margin-top: 16px;
    padding: 10px;
    border-radius: var(--md-sys-shape-corner-small);
    background: var(--md-sys-color-surface);
}

.mock-window span {
    height: 5px;
    border-radius: 3px;
    background: var(--md-sys-color-outline-variant);
}

.mock-window span:last-child {
    width: 60%;
}

.mock-call-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.mock-call-controls .material-symbols-rounded {
    width: 44px;
    height: 44px;
    border-radius: var(--md-sys-shape-corner-large);
    background: var(--md-sys-color-surface-container-highest);
    color: var(--md-sys-color-on-surface);
    font-size: 22px;
}

.mock-call-controls .on {
    border-radius: 50%;
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.mock-call-controls .end {
    width: 64px;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-error);
    color: var(--md-sys-color-on-error);
}

.hero-actions,
.btn-group-main,
.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero .hero-actions {
    justify-content: flex-start;
}

.hero-actions .btn,
.hero-actions .btn-outline {
    height: 56px;
    padding: 0 28px;
    font-size: var(--md-sys-typescale-title-medium-size);
}

.main-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 16px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-container > h2 {
    margin-bottom: 32px;
}

.main-container > h2,
.team-section h2,
.actions-box h2 {
    font-size: var(--md-sys-typescale-headline-large-size);
    line-height: var(--md-sys-typescale-headline-large-line-height);
    text-align: center;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    margin-bottom: 16px;
    border-radius: var(--md-sys-shape-corner-small);
    background: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
    font-size: var(--md-sys-typescale-label-large-size);
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.feature-item {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px;
    border-radius: var(--md-sys-shape-corner-extra-large);
    background: var(--md-sys-color-surface-container);
    transition: border-radius var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized), background-color var(--md-sys-motion-duration-short) linear;
}

.feature-item:nth-child(-n+3) {
    grid-column: span 4;
}

.feature-item:hover {
    background: var(--md-sys-color-surface-container-high);
}

@media (hover: hover) and (min-width: 561px) {
    .feature-item:hover {
        border-radius: 48px;
    }
}

.feature-item i {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: var(--md-sys-shape-corner-large);
    background: var(--md-sys-color-surface-container-highest);
    color: var(--md-sys-color-on-surface-variant);
    font-size: 28px;
}

.feature-item:nth-child(1) i {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.feature-item:nth-child(2) i {
    background: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
}

.feature-item:nth-child(3) i {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.feature-item h3 {
    font-size: var(--md-sys-typescale-title-large-size);
    line-height: var(--md-sys-typescale-title-large-line-height);
}

.feature-item p {
    font-size: var(--md-sys-typescale-body-medium-size);
    line-height: var(--md-sys-typescale-body-medium-line-height);
    color: var(--md-sys-color-on-surface-variant);
}

.actions-box {
    width: 100%;
    margin-top: 64px;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    border-radius: 48px;
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.actions-box h2,
.actions-box p {
    color: var(--md-sys-color-on-secondary-container);
}

.actions-box .btn-outline {
    box-shadow: inset 0 0 0 1px var(--md-sys-color-outline);
}

.team-section {
    width: 100%;
    margin-top: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.team-section > p {
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 24px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 200px;
    padding: 24px 16px;
    border-radius: var(--md-sys-shape-corner-extra-large);
    background: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface);
    transition: background-color var(--md-sys-motion-duration-short) linear;
}

.member-card:hover {
    background: var(--md-sys-color-surface-container-high);
    text-decoration: none;
}

.member-card img {
    width: 88px;
    height: 88px;
    margin-bottom: 12px;
    border-radius: 50%;
    object-fit: cover;
}

.member-card p {
    color: var(--md-sys-color-on-surface-variant);
    font-size: var(--md-sys-typescale-body-medium-size);
}

footer {
    margin-top: auto;
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
    text-align: center;
    color: var(--md-sys-color-on-surface-variant);
    font-size: var(--md-sys-typescale-body-small-size);
}

.error-container,
.soon-container {
    flex: 1;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 16px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.error-code,
.coming-soon {
    font-size: clamp(88px, 22vw, 168px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -4px;
    color: var(--md-sys-color-primary);
}

.coming-soon {
    font-size: clamp(48px, 12vw, 88px);
    letter-spacing: -1px;
}

.description {
    color: var(--md-sys-color-on-surface-variant);
    font-size: var(--md-sys-typescale-body-large-size);
    line-height: var(--md-sys-typescale-body-large-line-height);
}

.error-container .warning-box,
.soon-container .info-box {
    text-align: start;
}

.store-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 8px 16px calc(32px + env(safe-area-inset-bottom));
}

.store-header {
    padding: 16px 4px 24px;
}

.store-header h1 {
    font-size: var(--md-sys-typescale-headline-large-size);
    line-height: var(--md-sys-typescale-headline-large-line-height);
}

.store-header p {
    margin-top: 4px;
    color: var(--md-sys-color-on-surface-variant);
}

.store-sections {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.store-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 4px 12px;
    font-size: var(--md-sys-typescale-title-large-size);
    line-height: var(--md-sys-typescale-title-large-line-height);
}

.store-section-title .material-symbols-rounded {
    color: var(--md-sys-color-primary);
    font-size: 22px;
    font-variation-settings: 'FILL' 1;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.store-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px 12px 16px;
    border-radius: var(--md-sys-shape-corner-extra-large);
    background: var(--md-sys-color-surface-container);
}

.store-card.applied {
    box-shadow: inset 0 0 0 2px var(--md-sys-color-primary);
}

.store-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: var(--md-sys-shape-corner-large-increased);
    background: var(--p-surface);
}

.store-preview .bar {
    height: 10px;
    width: 40%;
    border-radius: 5px;
    background: var(--p-on-surface);
    opacity: 0.7;
}

.store-preview .bubble {
    height: 22px;
    border-radius: 11px;
}

.store-preview .bubble.in {
    width: 62%;
    background: var(--p-surface-high);
}

.store-preview .bubble.out {
    width: 54%;
    align-self: flex-end;
    background: var(--p-primary-container);
}

.store-preview .row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}

.store-preview .dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.store-preview .dot.fab {
    margin-inline-start: auto;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    box-shadow: none;
    padding: 0;
    min-width: 0;
}

.store-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 4px;
}

.store-card-head h3 {
    font-size: var(--md-sys-typescale-title-medium-size);
    line-height: var(--md-sys-typescale-title-medium-line-height);
    font-weight: 500;
}

.store-card-actions {
    display: flex;
    gap: 8px;
}

.store-card-actions > * {
    flex: 1;
}

.no-themes {
    grid-column: 1 / -1;
    padding: 48px 16px;
    text-align: center;
    color: var(--md-sys-color-on-surface-variant);
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .feature-item,
    .feature-item:nth-child(-n+3) {
        grid-column: span 6;
    }

    .feature-item:nth-child(1) {
        grid-column: span 12;
    }
}

@media (max-width: 560px) {
    nav {
        height: calc(56px + env(safe-area-inset-top));
    }

    .nav-logo-mark {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .nav-logo-mark::before {
        width: 20px;
        height: 20px;
    }

    .nav-logo-word {
        font-size: 20px;
    }

    .hero {
        gap: 24px;
        padding-top: 8px;
    }

    .hero-copy {
        gap: 16px;
    }

    .hero h1 {
        font-size: 36px;
        letter-spacing: -0.5px;
    }

    .hero-copy > p {
        font-size: var(--md-sys-typescale-body-large-size);
        line-height: var(--md-sys-typescale-body-large-line-height);
    }

    .hero .hero-actions {
        width: 100%;
        gap: 8px;
    }

    .hero-actions .btn,
    .hero-actions .btn-outline {
        flex: 1 1 auto;
        height: 48px;
        padding: 0 16px;
        font-size: var(--md-sys-typescale-label-large-size);
    }

    .hero-stage {
        min-height: 0;
        padding: 12px;
        border-radius: var(--md-sys-shape-corner-extra-large);
    }

    .mock-chat {
        width: 100%;
        border-radius: var(--md-sys-shape-corner-large-increased);
    }

    .mock-chat-bar {
        padding: 8px 12px;
    }

    .mock-chat-body {
        padding: 12px;
    }

    .mock-call {
        position: static;
        width: 100%;
        margin-top: 8px;
        padding: 8px;
        border-radius: var(--md-sys-shape-corner-large-increased);
        box-shadow: none;
    }

    .mock-tile {
        height: 72px;
    }

    .mock-avatar.large {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .mock-window {
        margin-top: 12px;
        padding: 8px;
    }

    .mock-call-controls {
        margin-top: 8px;
    }

    .mock-call-controls .material-symbols-rounded {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .main-container {
        padding: 40px 16px;
    }

    .main-container > h2,
    .team-section h2,
    .actions-box h2 {
        font-size: var(--md-sys-typescale-headline-small-size);
        line-height: var(--md-sys-typescale-headline-small-line-height);
    }

    .main-container > h2 {
        margin-bottom: 20px;
    }

    .features-grid {
        gap: 2px;
    }

    .feature-item,
    .feature-item:nth-child(-n+3),
    .feature-item:nth-child(1) {
        grid-column: span 12;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: 16px;
        row-gap: 2px;
        align-items: center;
        padding: 14px 16px;
        border-radius: var(--md-sys-shape-corner-extra-small);
    }

    .feature-item:first-child {
        border-top-left-radius: var(--md-sys-shape-corner-large-increased);
        border-top-right-radius: var(--md-sys-shape-corner-large-increased);
    }

    .feature-item:last-child {
        border-bottom-left-radius: var(--md-sys-shape-corner-large-increased);
        border-bottom-right-radius: var(--md-sys-shape-corner-large-increased);
    }

    .feature-item i {
        grid-row: span 2;
        width: 44px;
        height: 44px;
        margin: 0;
        border-radius: var(--md-sys-shape-corner-medium);
        font-size: 24px;
    }

    .feature-item h3 {
        font-size: var(--md-sys-typescale-title-medium-size);
        line-height: var(--md-sys-typescale-title-medium-line-height);
        font-weight: 500;
    }

    .actions-box {
        margin-top: 32px;
        padding: 28px 16px;
        gap: 8px;
        border-radius: var(--md-sys-shape-corner-extra-large);
    }

    .actions-box .btn-group-main {
        margin-top: 8px;
        width: 100%;
        gap: 8px;
    }

    .actions-box .btn {
        flex: 1 1 auto;
        padding: 0 16px;
    }

    .team-section {
        margin-top: 40px;
    }

    .team-section > p {
        margin-bottom: 12px;
    }

    .team-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .member-card {
        width: auto;
        min-width: 0;
        padding: 16px 8px;
        border-radius: var(--md-sys-shape-corner-large-increased);
    }

    .member-card img {
        width: 64px;
        height: 64px;
        margin-bottom: 8px;
    }

    .member-card h4 {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    footer {
        padding-top: 8px;
    }
}

@media (hover: none) {
    .feature-item:hover {
        background: var(--md-sys-color-surface-container);
    }
}

@media (max-width: 768px) {
    .login-container,
    .signup-container,
    .changepassword-container {
        padding: 32px 20px;
    }

    .signup-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero {
        padding-top: 16px;
    }

    .nav-actions .btn-primary span {
        display: none;
    }

    .nav-actions .btn-primary {
        width: 40px;
        min-width: 40px;
        padding: 0;
    }

    .nav-actions .btn-primary i {
        margin: 0;
    }
}

@media (max-width: 420px) {
    .send-code-btn span {
        display: none;
    }

    .send-code-btn i {
        margin: 0;
    }

    .login-container,
    .signup-container,
    .changepassword-container {
        padding: 24px 16px;
        background: transparent;
    }
}

.legal-page {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.legal-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 4px 24px;
}

.legal-header h1 {
    font-size: clamp(36px, 6vw, 52px);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.legal-header p {
    font-size: var(--md-sys-typescale-title-medium-size);
    line-height: var(--md-sys-typescale-title-medium-line-height);
    color: var(--md-sys-color-on-surface-variant);
}

.legal-header small {
    font-size: var(--md-sys-typescale-body-small-size);
    color: var(--md-sys-color-on-surface-variant);
}

.legal-tabs {
    position: sticky;
    top: calc(64px + env(safe-area-inset-top));
    z-index: 50;
    padding: 8px 0;
    background: var(--md-sys-color-surface);
}

.legal-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    color: var(--md-sys-color-on-surface);
    font-size: var(--md-sys-typescale-label-large-size);
    font-weight: 500;
    transition: background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.legal-tab:hover {
    background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
    text-decoration: none;
}

.legal-tab + .legal-tab {
    box-shadow: inset 1px 0 0 var(--md-sys-color-outline);
}

:root[dir="rtl"] .legal-tab + .legal-tab {
    box-shadow: inset -1px 0 0 var(--md-sys-color-outline);
}

.legal-tab.selected {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.legal-tab .material-symbols-rounded {
    font-size: 20px;
}

.legal-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 24px;
    scroll-margin-top: calc(124px + env(safe-area-inset-top));
}

.legal-section > h2 {
    padding: 0 4px 8px;
    font-size: var(--md-sys-typescale-headline-medium-size);
    line-height: var(--md-sys-typescale-headline-medium-line-height);
}

.legal-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    border-radius: var(--md-sys-shape-corner-large-increased);
    background: var(--md-sys-color-surface-container);
}

.legal-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--md-sys-typescale-title-medium-size);
    line-height: var(--md-sys-typescale-title-medium-line-height);
    font-weight: 500;
}

.legal-card h3 .material-symbols-rounded {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--md-sys-shape-corner-medium);
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    font-size: 22px;
}

.legal-card p,
.legal-card li {
    color: var(--md-sys-color-on-surface-variant);
    font-size: var(--md-sys-typescale-body-medium-size);
    line-height: 22px;
}

.legal-card ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding-inline-start: 20px;
}

.legal-action {
    margin-top: 4px;
}

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

.legal-card.warning {
    background: var(--md-sys-color-tertiary-container);
}

.legal-card.warning h3,
.legal-card.warning li {
    color: var(--md-sys-color-on-tertiary-container);
}

.legal-card.warning h3 .material-symbols-rounded {
    background: var(--md-sys-color-tertiary);
    color: var(--md-sys-color-on-tertiary);
}

.footer-links {
    margin-top: 8px;
}

@media (max-width: 560px) {
    .legal-page {
        padding-top: 8px;
    }

    .legal-tabs {
        top: calc(56px + env(safe-area-inset-top));
    }

    .legal-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .legal-card {
        padding: 16px;
    }
}

.store-card-note {
    color: var(--md-sys-color-on-surface-variant);
    font-size: var(--md-sys-typescale-body-small-size);
    line-height: 18px;
}

.store-preview.glass {
    position: relative;
    background: var(--p-surface);
}

.store-preview.glass .bar,
.store-preview.glass .dot {
    background: color-mix(in srgb, var(--p-on-surface) 14%, transparent) !important;
    -webkit-backdrop-filter: blur(6px) saturate(170%);
    backdrop-filter: blur(6px) saturate(170%);
    box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--p-on-surface) 22%, transparent), 0 2px 8px rgba(0, 0, 0, 0.18);
}

.store-preview.glass .bubble.in {
    background: var(--p-surface-high);
}

.store-preview.glass .bubble.out {
    background: var(--p-primary);
}

.store-preview.skin-hyperos .bubble {
    border-radius: 12px;
}

.store-preview.skin-hyperos .dot.fab {
    border-radius: 8px;
}

.store-preview.skin-oneui {
    padding-top: 28px;
}

.store-preview.skin-oneui .bar {
    width: 45%;
    height: 12px;
    border-radius: 6px;
    background: var(--p-on-surface, currentColor) !important;
    opacity: 0.8;
}

.store-preview.skin-oneui .bubble {
    border-radius: 12px;
}
