.my-center-main {
    padding: 32px 0 56px;
    background: #f6f6f4;
}

/* Shared entry treatment for ordinary and teacher registration invitations. */
.my-desktop-invite-card,
.my-space-invite-card {
    gap: 14px;
}

.my-desktop-invite-primary,
.my-desktop-invite-teacher,
.my-space-invite-primary,
.my-space-invite-teacher {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    color: var(--my-market-ink, #263028);
    text-decoration: none;
}

.my-desktop-invite-primary,
.my-space-invite-primary {
    padding: 12px;
    border: 1px solid #e2ece4;
    border-radius: 14px;
    background: #f7fbf8;
}

.my-desktop-invite-primary > i:first-child,
.my-space-invite-primary > i:first-child {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: #e1f1e7;
    color: #197b62;
    font-size: 17px;
}

.my-desktop-invite-primary > span,
.my-space-invite-primary > span {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.my-desktop-invite-primary strong,
.my-space-invite-primary strong {
    color: #263028;
    font-size: 14px;
}

.my-desktop-invite-primary em,
.my-space-invite-primary em {
    overflow: hidden;
    color: #7a897f;
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-desktop-invite-primary > i:last-child,
.my-desktop-invite-teacher > i:last-child,
.my-space-invite-primary > i:last-child,
.my-space-invite-teacher > i:last-child {
    color: #92a298;
    font-size: 13px;
}

.my-desktop-invite-teacher,
.my-space-invite-teacher {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    min-height: 40px;
    padding: 0 5px;
    color: #3d6f5c;
    font-size: 13px;
    font-weight: 750;
}

.my-desktop-invite-teacher > i:first-child,
.my-space-invite-teacher > i:first-child {
    color: #b98228;
}

.my-desktop-invite-primary:hover,
.my-desktop-invite-primary:focus-visible,
.my-space-invite-primary:hover,
.my-space-invite-primary:focus-visible {
    border-color: #9ecbb0;
    background: #f1f8f3;
}

.my-desktop-invite-teacher:hover,
.my-desktop-invite-teacher:focus-visible,
.my-space-invite-teacher:hover,
.my-space-invite-teacher:focus-visible {
    color: #197b62;
}

.my-invite-role-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    gap: 6px;
    padding: 0 11px;
    border: 1px solid #e0e8e2;
    border-radius: 9px;
    background: #fff;
    color: #3e6f5d;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.my-invite-role-switch:hover,
.my-invite-role-switch:focus-visible {
    border-color: #afd2bb;
    background: #f3faf5;
    color: #197b62;
}

@media (max-width: 640px) {
    .my-space-invite-primary em {
        font-size: 11px;
    }

    .my-teacher-invite-title-app .my-invite-role-switch {
        width: fit-content;
        margin-top: 10px;
    }
}

.my-center-container {
    display: grid;
    gap: 24px;
}

.my-hero-card,
.my-card-panel,
.my-page-header {
    background: #fff;
    border: 1px solid #ebe5df;
    border-radius: 24px;
    box-shadow: 0 10px 24px rgba(31, 26, 23, 0.06);
}

.my-hero-card {
    position: relative;
    padding: 28px;
}

.my-hero-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.my-hero-settings-link {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ebe5df;
    background: #fffaf6;
    color: #8b7f74;
    text-decoration: none;
    transition: all 0.2s ease;
}

.my-hero-settings-link:hover {
    border-color: #ff5a1f;
    background: #fff2ea;
    color: #ff5a1f;
}

.my-hero-avatar,
.my-hero-avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex: 0 0 72px;
}

.my-hero-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8f57, #ff5a1f);
    color: #fff;
    font-size: 28px;
}

.my-hero-avatar-img {
    object-fit: cover;
}

.my-hero-copy h1,
.my-page-header h1,
.my-section-head h2 {
    margin: 0;
    color: #1f1a17;
}

.my-hero-copy p,
.my-page-header p,
.my-entry-main p,
.my-quick-card p {
    margin: 0;
    color: #5e5650;
}

.my-hero-copy {
    display: grid;
    gap: 8px;
    padding-right: 64px;
}

.my-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #92877d;
}

.my-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.my-nav-tab {
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #ebe5df;
    color: #5e5650;
    text-decoration: none;
    transition: all 0.2s ease;
}

.my-nav-tab.active,
.my-nav-tab:hover {
    background: #ff5a1f;
    border-color: #ff5a1f;
    color: #fff;
}

.my-stat-grid,
.my-quick-grid {
    display: grid;
    gap: 16px;
}

.my-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.my-stat-card,
.my-quick-card {
    text-decoration: none;
}

.my-stat-card {
    display: grid;
    gap: 8px;
    padding: 20px 22px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #ebe5df;
    color: #1f1a17;
    box-shadow: 0 10px 24px rgba(31, 26, 23, 0.06);
}

.my-stat-label {
    color: #92877d;
    font-size: 14px;
}

.my-stat-value {
    font-size: 28px;
    line-height: 1;
}

.my-section {
    display: grid;
    gap: 16px;
}

.my-card-panel {
    padding: 24px;
}

.my-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.my-section-head a {
    color: #ff5a1f;
    text-decoration: none;
}

.my-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.my-quick-card {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid #ebe5df;
    background: #fffaf6;
    color: #1f1a17;
}

.my-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.my-entry-list,
.my-search-list,
.my-setting-list {
    display: grid;
    gap: 14px;
}

.my-entry-item,
.my-search-item {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #ebe5df;
    background: #fff;
    text-decoration: none;
    color: #1f1a17;
}

.my-entry-main,
.my-entry-meta {
    display: grid;
    gap: 6px;
}

.my-entry-meta,
.my-search-item span,
.my-search-item time,
.my-entry-extra {
    color: #92877d;
    font-size: 13px;
}

.my-empty-state {
    padding: 28px 20px;
    border-radius: 18px;
    border: 1px dashed #d9cfc5;
    background: #faf8f6;
    color: #7a7068;
    text-align: center;
}

.my-page-header {
    padding: 24px 28px;
    display: grid;
    gap: 10px;
}

.my-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f1ece6;
}

.my-setting-item:last-child {
    border-bottom: 0;
}

.my-setting-main {
    display: grid;
    gap: 6px;
}

.my-setting-main span {
    color: #6b625c;
}

.my-setting-action,
.my-logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
}

.my-setting-action {
    background: #ff5a1f;
    color: #fff;
}

.my-setting-footer {
    padding-top: 16px;
}

.my-logout-link {
    background: #1f1a17;
    color: #fff;
}

.my-settings-alert,
.my-settings-hero,
.my-settings-grid,
.my-settings-fields,
.my-settings-panel,
.my-settings-identity,
.my-settings-badges,
.my-settings-info-card,
.my-settings-inline-form {
    display: grid;
    gap: 14px;
}

.my-settings-alert {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid #d8ecdd;
    background: #f4fff6;
    color: #23643a;
}

.my-settings-alert.is-error {
    border-color: #f2c8b8;
    background: #fff5f0;
    color: #b94719;
}

.my-settings-hero {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.my-settings-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 24px;
    border: 0;
    background: linear-gradient(135deg, #ff8f57, #ff5a1f);
    color: #fff;
    font-size: 28px;
    overflow: hidden;
    padding: 0;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(255, 90, 31, 0.18);
    cursor: pointer;
    font: inherit;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
}

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

.my-settings-avatar:focus-visible {
    outline: 3px solid rgba(255, 90, 31, 0.28);
    outline-offset: 4px;
}

.my-settings-avatar:hover {
    transform: translateY(-1px);
}

.my-settings-avatar-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.my-settings-date-input {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.my-settings-identity h2,
.my-settings-title h2 {
    margin: 0;
    color: #1f1a17;
}

.my-settings-identity p,
.my-settings-note,
.my-settings-info-card span {
    margin: 0;
    color: #7a7068;
}

.my-settings-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.my-settings-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff4ec;
    color: #9b431b;
    font-size: 13px;
}

.my-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.my-settings-panel {
    align-content: start;
}

.my-settings-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.my-settings-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #fff2ea;
    color: #ff5a1f;
}

.my-settings-field {
    display: grid;
    gap: 8px;
}

.my-settings-field span,
.my-settings-check span {
    color: #5e5650;
    font-size: 14px;
}

.my-settings-field input,
.my-settings-inline-form input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e6ddd4;
    border-radius: 14px;
    background: #fffaf7;
    color: #1f1a17;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.my-settings-field input {
    min-height: 46px;
    padding: 11px 13px;
}

.my-settings-inline-form input {
    min-height: 44px;
    padding: 10px 13px;
}

.my-settings-field input:focus,
.my-settings-inline-form input:focus {
    border-color: #ff9a6b;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.1);
}

.my-settings-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px dashed #e1d5ca;
    border-radius: 16px;
    background: #fffdfa;
}

.my-settings-check input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #ff5a1f;
}

.my-settings-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
}

.my-settings-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.my-settings-primary,
.my-settings-secondary,
.my-settings-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

.my-settings-primary {
    background: #ff5a1f;
    color: #fff;
    border-color: #ff5a1f;
}

.my-settings-secondary {
    width: max-content;
    background: #fff4ec;
    color: #a94619;
    border-color: #ffd4c0;
}

.my-settings-danger {
    width: max-content;
    background: #fff;
    color: #c23f1a;
    border-color: #f1c4b2;
}

.my-settings-primary:hover,
.my-settings-secondary:hover,
.my-settings-danger:hover {
    transform: translateY(-1px);
}

.my-settings-info-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #ebe5df;
    background: #fffaf6;
}

.my-settings-info-card strong {
    color: #1f1a17;
    font-size: 18px;
}

.my-settings-inline-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.my-avatar-page-header {
    gap: 12px;
}

.my-avatar-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    color: #a94619;
    text-decoration: none;
    font-size: 14px;
}

.my-avatar-setting-card {
    display: grid;
    gap: 14px;
}

.my-avatar-setting-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.my-avatar-setting-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #ff8f57, #ff5a1f);
    color: #fff;
    font-size: 28px;
    box-shadow: 0 12px 24px rgba(31, 26, 23, 0.1);
}

.my-avatar-setting-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-avatar-setting-copy {
    display: grid;
    gap: 6px;
}

.my-avatar-setting-copy strong {
    color: #1f1a17;
    font-size: 20px;
}

.my-avatar-setting-copy em,
.my-avatar-setting-note {
    color: #7a7068;
    font-style: normal;
}

.my-avatar-setting-row > .fas {
    color: #a9a099;
}

.my-avatar-setting-note {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid #f1ece6;
    font-size: 13px;
}

.my-avatar-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    background: #000;
}

.my-avatar-modal.is-open {
    display: block;
}

.my-avatar-modal-open {
    overflow: hidden;
}

.my-nickname-modal-open {
    overflow: hidden;
}

.my-gender-modal-open {
    overflow: hidden;
}

.my-avatar-dialog {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.my-avatar-stage {
    --crop-size: 320px;
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
    min-height: 0;
    touch-action: none;
    user-select: none;
}

.my-avatar-stage img {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    max-width: none;
    max-height: none;
    transform-origin: center center;
    will-change: transform;
}

.my-avatar-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--crop-size);
    height: var(--crop-size);
    border: 4px solid #fff;
    box-sizing: border-box;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.54);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.my-avatar-frame::before,
.my-avatar-frame::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 38px;
    height: 8px;
    background: #fff;
    transform: translateX(-50%);
}

.my-avatar-frame::before {
    top: -8px;
}

.my-avatar-frame::after {
    bottom: -8px;
}

.my-avatar-help {
    position: absolute;
    left: 50%;
    bottom: calc(50% - var(--crop-size) / 2 - 46px);
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    transform: translateX(-50%);
    pointer-events: none;
}

.my-avatar-status {
    flex: 0 0 auto;
    min-height: 24px;
    margin: 0;
    padding: 0 28px 16px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    text-align: center;
}

.my-avatar-status.is-success {
    color: #68d08e;
}

.my-avatar-status.is-error {
    color: #ff866e;
}

.my-avatar-actions {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 18px;
    padding: 20px 58px max(28px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.my-avatar-action {
    justify-self: start;
    min-width: 72px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.my-avatar-action.is-primary {
    justify-self: end;
    text-align: right;
}

.my-avatar-action[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.my-app-body {
    --cy-title-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --my-market-ink: #263028;
    --my-market-muted: #748077;
    --my-market-line: #e7deca;
    --my-market-paper: #fffaf0;
    --my-market-card: #fffdf7;
    --my-market-sand: #f5ead2;
    --my-market-yellow: #ffd84d;
    --my-market-orange: #f49a2f;
    --my-market-green: #1f6f5b;
    --my-market-green-dark: #173d34;
    --my-market-red: #d94b40;
    --my-market-shadow: 0 24px 70px rgba(77, 55, 24, 0.13);
    --my-market-soft-shadow: 0 12px 34px rgba(77, 55, 24, 0.1);
    margin: 0;
    background: #f5f5f5;
    color: #222;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.my-app-body a {
    color: inherit;
}

.my-app-page {
    min-height: 100vh;
    padding-bottom: 110px;
    background: #f5f5f5;
}

.my-app-shell {
    width: min(100%, 560px);
    min-height: 100vh;
    margin: 0 auto;
}

.my-app-topbar {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    min-height: 96px;
    padding: max(16px, env(safe-area-inset-top)) 20px 14px;
    box-sizing: border-box;
    background: #f5f5f5;
}

.my-app-topbar h1 {
    margin: 0;
    color: #111;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.my-app-topbar-back,
.my-app-topbar-spacer {
    width: 44px;
    height: 44px;
}

.my-app-topbar-back {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    text-decoration: none;
    font-size: 42px;
    line-height: 1;
}

.my-settings-app-page .my-app-topbar-back {
    color: #202020;
}

.my-app-card {
    margin: 0 0 16px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

.my-app-profile-card {
    border-radius: 0 0 18px 18px;
}

.my-app-profile-row,
.my-app-row,
.my-info-row {
    width: 100%;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.my-app-profile-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 128px;
    padding: 20px 30px;
}

.my-app-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef3f8;
    flex: none;
}

.my-app-profile-avatar img,
.my-info-avatar-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-app-profile-name {
    min-width: 0;
    color: #252525;
    font-size: 23px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-app-list-card,
.my-info-list-card {
    margin-top: 16px;
}

.my-settings-security-heading {
    display: grid;
    gap: 4px;
    padding: 20px 28px 4px;
}

.my-settings-security-heading span {
    color: #252525;
    font-size: 18px;
    font-weight: 700;
}

.my-settings-security-heading small {
    color: #969696;
    font-size: 13px;
}

.my-app-row,
.my-info-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(104px, auto) minmax(0, 1fr) auto;
    align-items: center;
    min-height: 78px;
    padding: 0 28px;
    text-align: left;
}

.my-app-row::after,
.my-info-row::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: 0;
    left: 28px;
    height: 1px;
    background: #efefef;
}

.my-app-row:last-child::after,
.my-info-row:last-child::after {
    display: none;
}

.my-app-row-label,
.my-info-row-label {
    color: #252525;
    font-size: 22px;
    line-height: 1.35;
}

.my-app-row-value,
.my-info-row-value {
    min-width: 0;
    color: #969696;
    font-size: 20px;
    line-height: 1.35;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-app-chevron {
    margin-left: 14px;
    color: #9b9b9b;
    font-size: 28px;
    line-height: 1;
}

.my-app-alert {
    margin: 0 0 16px;
    border-radius: 18px;
    box-shadow: none;
}

.my-app-logout-wrap {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 14px 0 max(14px, env(safe-area-inset-bottom));
    background: transparent;
}

.my-app-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 560px);
    min-height: 76px;
    border-radius: 18px 18px 0 0;
    background: #fff;
    color: #2b2b2b;
    font-size: 22px;
    text-decoration: none;
}

.my-info-list-card {
    border-radius: 18px;
}

.my-info-row {
    grid-template-columns: minmax(100px, auto) minmax(0, 1fr);
    min-height: 78px;
}

.my-info-avatar-row {
    min-height: 128px;
}

.my-info-row-side {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.my-info-avatar-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef3f8;
    flex: none;
}

/* Keep the mobile settings page readable without changing other app pages. */
.my-settings-app-page .my-app-topbar {
    min-height: 72px;
    padding: max(10px, env(safe-area-inset-top)) 18px 10px;
}

.my-settings-app-page .my-app-topbar h1 {
    font-size: 18px;
}

.my-settings-app-page .my-app-row,
.my-settings-app-page .my-info-row {
    min-height: 64px;
    padding-right: 18px;
    padding-left: 18px;
}

.my-settings-app-page .my-app-row::after,
.my-settings-app-page .my-info-row::after {
    right: 18px;
    left: 18px;
}

.my-settings-app-page .my-app-row {
    grid-template-columns: minmax(88px, auto) minmax(0, 1fr) auto;
}

.my-settings-app-page .my-info-row {
    grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
}

.my-settings-app-page .my-app-row-label,
.my-settings-app-page .my-info-row-label {
    font-size: 17px;
    line-height: 1.4;
}

.my-settings-app-page .my-app-row-value,
.my-settings-app-page .my-info-row-value {
    font-size: 16px;
    line-height: 1.4;
}

.my-settings-app-page .my-app-chevron {
    margin-left: 8px;
    font-size: 20px;
}

.my-settings-app-page .my-settings-security-heading {
    padding: 16px 18px 4px;
}

.my-settings-app-page .my-settings-security-heading span {
    font-size: 17px;
}

.my-settings-app-page .my-info-avatar-row {
    min-height: 92px;
}

.my-settings-app-page .my-info-avatar-thumb {
    width: 60px;
    height: 60px;
}

.my-settings-app-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 36px);
    min-height: 52px;
    margin: 0 auto 20px;
    padding: 0 18px;
    border: 1px solid #ffd3cb;
    border-radius: 12px;
    box-sizing: border-box;
    background: #fff;
    color: #d34d3d;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.my-settings-app-logout:active {
    background: #fff5f2;
}

.my-settings-app-page .my-nickname-dialog h2 {
    font-size: 18px;
}

.my-settings-app-page .my-nickname-field input,
.my-settings-app-page .my-birthday-selects select {
    font-size: 16px;
}

.my-settings-app-page .my-nickname-button {
    font-size: 16px;
}

.my-settings-app-page .my-gender-option,
.my-settings-app-page .my-gender-cancel {
    font-size: 17px;
}

.my-nickname-modal {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.42);
}

.my-nickname-modal.is-open {
    display: flex;
}

.my-nickname-dialog {
    width: min(100%, 520px);
    padding: 24px 22px max(22px, env(safe-area-inset-bottom));
    border-radius: 24px;
    box-sizing: border-box;
    background: #fff;
    color: #222;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.my-nickname-dialog h2 {
    margin: 0 0 18px;
    color: #111;
    font-size: 22px;
    font-weight: 500;
    text-align: center;
}

.my-nickname-field {
    display: grid;
    gap: 10px;
}

.my-nickname-field span {
    color: #666;
    font-size: 14px;
}

.my-nickname-field input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-sizing: border-box;
    background: #f8f8f8;
    color: #222;
    font: inherit;
    font-size: 18px;
    outline: none;
}

.my-nickname-field input:focus {
    border-color: #9fc6ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(70, 142, 242, 0.1);
}

.my-nickname-status {
    min-height: 22px;
    margin: 10px 0 14px;
    color: #888;
    font-size: 14px;
    text-align: center;
}

.my-nickname-status.is-error {
    color: #d34d2d;
}

.my-nickname-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.my-birthday-dialog {
    width: min(100%, 560px);
}

.my-birthday-selects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.my-birthday-selects label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.my-birthday-selects label > span {
    color: #777;
    font-size: 13px;
}

.my-birthday-selects select {
    width: 100%;
    min-height: 52px;
    padding: 0 12px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-sizing: border-box;
    background: #f1f2f5;
    color: #222;
    font: inherit;
    font-size: 17px;
    outline: none;
}

.my-birthday-selects select:focus {
    border-color: #9fc6ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(70, 142, 242, 0.1);
}

.my-birthday-selects select:disabled {
    opacity: 0.55;
}

.my-nickname-button {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: #f2f2f2;
    color: #222;
    font: inherit;
    font-size: 17px;
    cursor: pointer;
}

.my-nickname-button.is-primary {
    background: #07c160;
    color: #fff;
}

.my-nickname-button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (min-width: 761px) {
    .my-birthday-modal {
        align-items: center;
    }

    .my-birthday-dialog {
        border-radius: 24px;
    }
}

.my-gender-modal {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.42);
}

.my-gender-modal.is-open {
    display: flex;
}

.my-gender-dialog {
    display: grid;
    gap: 8px;
    width: min(100%, 520px);
    padding-bottom: max(0px, env(safe-area-inset-bottom));
}

.my-gender-option,
.my-gender-cancel {
    min-height: 58px;
    border: 0;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 20px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.my-gender-option:first-child {
    border-radius: 16px 16px 0 0;
}

.my-gender-option:nth-child(3) {
    border-radius: 0 0 16px 16px;
}

.my-gender-cancel {
    margin-top: 6px;
    border-radius: 16px;
    color: #07c160;
}

.my-gender-option.is-active {
    color: #07c160;
    font-weight: 600;
}

.my-profile-status {
    min-height: 20px;
    margin: 0;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.my-profile-status.is-error {
    color: #ffb09f;
}

.my-profile-inline-status {
    min-height: 20px;
    margin: -4px 22px 12px;
    color: #888;
    font-size: 14px;
    text-align: center;
}

.my-profile-inline-status.is-error {
    color: #d34d2d;
}

@media (max-width: 960px) {
    .my-stat-grid,
    .my-quick-grid,
    .my-two-col,
    .my-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .my-center-main {
        padding: 20px 0 40px;
    }

    .my-app-page {
        padding-bottom: 106px;
    }

    .my-app-shell {
        width: 100%;
    }

    .my-app-topbar {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        min-height: 88px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .my-app-topbar h1 {
        font-size: 23px;
    }

    .my-app-topbar-back,
    .my-app-topbar-spacer {
        width: 38px;
        height: 38px;
    }

    .my-app-profile-row {
        min-height: 126px;
        padding: 20px 24px;
    }

    .my-app-profile-avatar {
        width: 88px;
        height: 88px;
    }

    .my-app-profile-name {
        font-size: 22px;
    }

    .my-app-row,
    .my-info-row {
        min-height: 78px;
        padding: 0 22px;
    }

    .my-app-row::after,
    .my-info-row::after {
        right: 22px;
        left: 22px;
    }

    .my-app-row-label,
    .my-info-row-label {
        font-size: 21px;
    }

    .my-app-row-value,
    .my-info-row-value {
        font-size: 20px;
    }

    .my-app-chevron {
        margin-left: 12px;
        font-size: 27px;
    }

    .my-info-avatar-row {
        min-height: 126px;
    }

    .my-info-avatar-thumb {
        width: 76px;
        height: 76px;
    }

    .my-app-logout {
        width: 100%;
    }

    .my-center-container {
        gap: 18px;
    }

    .my-hero-card,
    .my-card-panel,
    .my-page-header {
        border-radius: 18px;
    }

    .my-hero-card,
    .my-card-panel,
    .my-page-header {
        padding: 18px;
    }

    .my-hero-profile {
        align-items: flex-start;
    }

    .my-settings-hero {
        grid-template-columns: 1fr;
    }

    .my-settings-avatar {
        width: 64px;
        height: 64px;
        border-radius: 20px;
    }

    .my-avatar-actions {
        padding: 18px 30px max(28px, env(safe-area-inset-bottom));
    }

    .my-avatar-action {
        min-width: 60px;
        font-size: 20px;
    }

    .my-settings-inline-form {
        grid-template-columns: 1fr;
    }

    .my-settings-actions {
        justify-content: stretch;
    }

    .my-settings-primary,
    .my-settings-secondary,
    .my-settings-danger {
        width: 100%;
    }

    .my-hero-settings-link {
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
    }

    .my-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .my-stat-card {
        padding: 16px 14px;
    }

    .my-hero-copy {
        padding-right: 44px;
    }

    .my-stat-value {
        font-size: 22px;
    }

    .my-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.my-space-body {
    background: #f6f0e8;
}

.my-space-page,
.my-public-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 182, 118, 0.42), transparent 32%),
        radial-gradient(circle at 92% 12%, rgba(120, 71, 43, 0.16), transparent 30%),
        linear-gradient(180deg, #fff2e4 0%, #f6f0e8 34%, #f5f5f5 100%);
}

.my-space-shell {
    width: min(100%, 560px);
    box-sizing: border-box;
    padding: 14px 14px calc(112px + env(safe-area-inset-bottom));
}

.my-space-hero,
.my-public-hero,
.my-space-card {
    border: 1px solid rgba(86, 55, 36, 0.08);
    box-shadow: 0 16px 44px rgba(73, 43, 24, 0.08);
}

.my-space-hero {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at right top, rgba(255, 226, 176, 0.62), transparent 38%),
        linear-gradient(135deg, #3a2418 0%, #8b4421 48%, #ff7a32 100%);
    color: #fff;
}

.my-space-hero::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -58px;
    width: 190px;
    height: 190px;
    border-radius: 46px;
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(18deg);
}

.my-space-hero-top,
.my-space-profile,
.my-space-card-head,
.my-space-message-latest,
.my-space-feed-item,
.my-space-mini-list a,
.my-space-public-link {
    position: relative;
    z-index: 1;
}

.my-space-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.my-space-hero-top span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    letter-spacing: 0.04em;
}

.my-space-hero-top a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none;
}

.my-space-profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.my-space-avatar,
.my-public-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #fff4ed;
}

.my-space-avatar {
    width: 82px;
    height: 82px;
    border: 4px solid rgba(255, 255, 255, 0.28);
}

.my-space-avatar img,
.my-public-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-space-profile-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.my-space-profile-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-space-profile-copy em,
.my-space-muted,
.my-space-card-head span,
.my-space-message-latest span,
.my-space-feed-item em,
.my-space-mini-list span {
    font-style: normal;
}

.my-space-profile-copy em {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
}

.my-space-badges {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.my-space-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.my-space-completion {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.13);
    overflow: hidden;
}

.my-space-completion div {
    display: grid;
    gap: 4px;
}

.my-space-completion strong {
    color: #fff;
    font-size: 15px;
}

.my-space-completion span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.my-space-completion a {
    align-self: center;
    color: #ffe3c6;
    font-size: 13px;
    text-decoration: none;
}

.my-space-completion b {
    grid-column: 1 / -1;
    display: block;
    height: 6px;
    border-radius: 999px;
    background: #ffd7a6;
}

.my-space-public-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
}

.my-space-public-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-space-card {
    display: grid;
    gap: 16px;
    margin-top: 14px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
}

.my-space-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.my-space-card-head div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.my-space-card-head span {
    color: #a66b45;
    font-size: 13px;
}

.my-space-card-head h2 {
    margin: 0;
    overflow: hidden;
    color: #211812;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-space-card-head a,
.my-space-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fffaf0;
    color: #df541e;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.my-space-primary {
    width: max-content;
    background: #ff5a1f;
    color: #fff;
}

.my-space-class-stats,
.my-space-message-grid,
.my-space-record-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.my-space-class-stats-with-group {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.my-space-class-stats a,
.my-space-message-grid a,
.my-space-record-grid a,
.my-space-activity-stats a {
    display: grid;
    gap: 5px;
    min-height: 68px;
    align-content: center;
    border-radius: 18px;
    background: #fff8f2;
    color: #2c211b;
    text-align: center;
    text-decoration: none;
}

.my-space-class-stats strong,
.my-space-message-grid strong,
.my-space-record-grid strong,
.my-space-activity-stats strong {
    color: #2c211b;
    font-size: 22px;
    line-height: 1;
}

.my-space-class-stats span,
.my-space-message-grid span,
.my-space-record-grid span,
.my-space-activity-stats span {
    color: #947f70;
    font-size: 12px;
}

.my-space-class-lines,
.my-space-feed-list,
.my-space-mini-list {
    display: grid;
    gap: 10px;
}

.my-space-class-lines a,
.my-space-message-latest,
.my-space-feed-item,
.my-space-mini-list a {
    border: 1px solid #f0e3d8;
    border-radius: 18px;
    background: #fffdfa;
    color: #2c211b;
    text-decoration: none;
}

.my-space-class-lines a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
}

.my-space-class-lines i {
    color: #ff6b2c;
}

.my-space-class-lines span,
.my-space-message-latest span,
.my-space-feed-item em,
.my-space-mini-list span,
.my-space-muted {
    color: #8f8075;
}

.my-space-muted {
    margin: 0;
    line-height: 1.7;
}

.my-space-message-latest {
    display: grid;
    gap: 6px;
    padding: 14px;
}

.my-space-message-latest strong,
.my-space-feed-item strong,
.my-space-mini-list strong {
    color: #261b15;
    line-height: 1.45;
}

.my-space-message-latest span,
.my-space-feed-item em,
.my-space-mini-list span {
    font-size: 13px;
    line-height: 1.4;
}

.my-space-message-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.my-space-activity-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.my-space-market-published {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 80px;
    padding: 14px;
    border: 1px solid #f0e3d8;
    border-radius: 18px;
    background: #fffdfa;
    color: #2c211b;
    text-decoration: none;
}

.my-space-market-icon {
    background: #fff0e5;
    color: #ff5a1f;
}

.my-space-market-copy strong {
    color: #2c211b;
    font-size: 23px;
    line-height: 1;
}

.my-space-market-copy em {
    color: #8f8075;
    font-size: 13px;
    font-style: normal;
}

.my-space-market-published > i {
    color: #df541e;
}

.my-space-feed-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.my-space-feed-item img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
}

.my-space-feed-item span,
.my-space-mini-list a {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.my-space-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 22px 16px;
    border: 1px dashed #ead8c8;
    border-radius: 20px;
    background: #fff9f3;
    color: #8f8075;
    text-align: center;
}

.my-space-empty i {
    color: #ff6b2c;
    font-size: 24px;
}

.my-space-empty a {
    color: #df541e;
    text-decoration: none;
}

.my-space-record-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.my-space-mini-list a {
    padding: 12px 14px;
}

.my-space-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(80, 49, 30, 0.08);
    border-radius: 24px 24px 0 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -12px 34px rgba(52, 35, 24, 0.1);
}

.my-space-tabbar a {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 7px 0;
    border-radius: 16px;
    color: #9a887c;
    font-size: 12px;
    text-decoration: none;
}

.my-space-tabbar i {
    font-size: 18px;
}

.my-space-tabbar a.is-active {
    background: #fff1e7;
    color: #ff5a1f;
}

.my-public-topbar {
    min-height: 78px;
    background: transparent;
}

.my-public-topbar .my-app-topbar-back {
    color: #211812;
}

.my-public-hero {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 28px 22px 24px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 221, 185, 0.95), transparent 44%),
        linear-gradient(180deg, #fffaf5, #fff);
    text-align: center;
}

.my-public-avatar {
    width: 106px;
    height: 106px;
    border: 5px solid #fff;
    box-shadow: 0 18px 36px rgba(76, 45, 28, 0.12);
}

.my-public-hero h2,
.my-public-empty h2 {
    margin: 0;
    color: #211812;
    font-size: 28px;
    line-height: 1.2;
}

.my-public-hero p,
.my-public-empty p {
    margin: 0;
    color: #8f8075;
}

.my-public-hero .my-space-badges {
    justify-content: center;
}

.my-public-hero .my-space-badges span {
    background: #fff1e7;
    color: #ad4c20;
}

.my-public-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.my-public-contact-actions {
    display: grid;
    gap: 10px;
    min-width: 168px;
}

.my-public-actions .my-public-message-action,
.my-public-actions .my-public-friend-action,
.my-public-friend-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #ff5a1f;
    color: #fff;
    font: inherit;
    text-decoration: none;
}

.my-public-contact-actions .my-public-message-action,
.my-public-contact-actions .my-public-friend-action,
.my-public-friend-form button {
    width: 100%;
    box-sizing: border-box;
}

.my-public-friend-form {
    margin: 0;
}

.my-public-friend-form button {
    cursor: pointer;
}

.my-public-actions .my-public-friend-action {
    background: #fff1e7;
    color: #df541e;
}

.my-public-actions .my-public-friend-action.is-disabled {
    background: #f0ece8;
    color: #92867c;
    cursor: default;
}

.my-public-actions .my-public-message-action:focus-visible,
.my-public-actions .my-public-friend-action:focus-visible,
.my-public-friend-form button:focus-visible {
    outline: 2px solid #b94a1d;
    outline-offset: 2px;
}

.my-public-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.my-public-info-grid div {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    background: #fff8f2;
}

.my-public-info-grid span {
    color: #9a887c;
    font-size: 13px;
}

.my-public-info-grid strong {
    overflow: hidden;
    color: #261b15;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-public-info-class > strong {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: visible;
    white-space: normal;
}

.my-public-info-class-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-public-info-class-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #df541e;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.my-public-info-class-link:hover {
    color: #ad4c20;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.my-public-info-class-link:focus-visible {
    outline: 2px solid #b94a1d;
    outline-offset: 3px;
}

.my-public-info-class-link i {
    font-size: 10px;
}

.my-public-empty {
    justify-items: center;
    padding: 34px 24px;
    text-align: center;
}

.my-public-empty i {
    color: #ff6b2c;
    font-size: 42px;
}

.my-public-checkin-history .my-space-card-head {
    align-items: flex-end;
}

.my-public-checkin-total {
    color: #8f8075;
    font-size: 13px;
}

.my-public-checkin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.my-public-checkin-item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #f0e3d8;
    border-radius: 8px;
    background: #fffdfa;
}

.my-public-checkin-item > a {
    display: block;
    background: #fff8f2;
    line-height: 0;
}

.my-public-checkin-item img {
    display: block;
    width: 100%;
    height: auto;
}

.my-public-checkin-item > div {
    display: grid;
    gap: 6px;
    padding: 10px 11px 11px;
}

.my-public-checkin-item p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #2c211b;
    font-size: 14px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.my-public-checkin-item time {
    color: #8f8075;
    font-size: 12px;
}

.my-public-checkin-pagination,
.my-public-activity-pagination {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.my-public-checkin-pagination a,
.my-public-activity-pagination a {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #f0e3d8;
    border-radius: 8px;
    color: #df541e;
    font-size: 13px;
    line-height: 36px;
    text-decoration: none;
}

.m-my-page .m-public-checkin-history > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.m-my-page .m-public-checkin-history > header h2 {
    margin: 0;
}

.m-my-page .m-public-checkin-history > header span,
.m-my-page .m-public-checkin-history time {
    color: #8d9d95;
    font-size: 11px;
}

.m-my-page .m-public-card > .m-public-checkin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    border: 0;
}

.m-public-checkin-grid article {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #edf2ee;
    border-radius: 8px;
    background: #fff;
}

.m-public-checkin-grid a,
.m-public-checkin-grid img {
    display: block;
    width: 100%;
}

.m-public-checkin-grid img {
    height: auto;
}

.m-public-checkin-grid p {
    display: -webkit-box;
    margin: 8px 8px 4px;
    overflow: hidden;
    color: #35473d;
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.m-public-checkin-grid time {
    display: block;
    margin: 0 8px 9px;
}

.m-my-page .m-public-checkin-history > .m-public-checkin-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0;
    border: 0;
}

.m-public-checkin-pagination a {
    color: #197b62;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 520px) {
    .my-space-shell {
        padding-right: 12px;
        padding-left: 12px;
    }

    .my-space-hero {
        border-radius: 0 0 28px 28px;
        margin: -14px -12px 0;
        padding: max(20px, env(safe-area-inset-top)) 20px 22px;
    }

    .my-space-class-stats {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .my-space-profile-copy strong,
    .my-public-hero h2 {
        font-size: 25px;
    }

    .my-public-actions,
    .my-public-contact-actions {
        width: min(100%, 252px);
    }
}

@media (max-width: 380px) {
    .my-space-class-stats,
    .my-space-message-grid,
    .my-space-record-grid,
    .my-public-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .my-space-activity-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.my-space-page {
    padding-bottom: calc(128px + env(safe-area-inset-bottom));
}

.my-space-tabbar {
    display: grid !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateZ(0);
}

@media (min-width: 641px) {
    .my-space-tabbar {
        right: 50%;
        left: auto;
        width: 560px;
        max-width: calc(100vw - 28px);
        transform: translateX(50%) translateZ(0);
    }
}

@media (max-width: 640px) {
    .my-space-page {
        padding-bottom: calc(120px + env(safe-area-inset-bottom));
    }

    .my-space-shell {
        padding-bottom: calc(118px + env(safe-area-inset-bottom));
    }

    .my-space-tabbar {
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1002;
        width: 100vw;
        max-width: 100vw;
        min-height: calc(66px + env(safe-area-inset-bottom));
        margin: 0;
        padding: 7px max(8px, env(safe-area-inset-left)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
        border-radius: 20px 20px 0 0;
        transform: translateZ(0);
    }

    .my-space-tabbar a {
        min-width: 0;
        padding: 7px 2px;
        font-size: 11px;
        line-height: 1.1;
    }

    .my-space-tabbar i {
        font-size: 17px;
    }
}

/* Scoped /my homepage templates: desktop uses a bento grid, mobile stays app-like. */
.my-desktop-space-page {
    padding-bottom: calc(116px + env(safe-area-inset-bottom));
}

.my-desktop-space-shell {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    width: min(100%, 1180px);
    padding: 28px 24px calc(126px + env(safe-area-inset-bottom));
}

.my-desktop-space-shell > .my-space-hero,
.my-desktop-space-shell > .my-space-card {
    margin-top: 0;
}

.my-desktop-space-shell > .my-space-hero {
    grid-column: span 7;
    min-height: 306px;
    align-content: space-between;
    padding: 28px;
}

.my-desktop-space-shell > .my-space-class-card {
    grid-column: span 7;
}

.my-desktop-space-shell > .my-space-message-card {
    grid-column: span 5;
}

.my-desktop-space-shell > .my-space-activity-card {
    grid-column: span 8;
}

.my-desktop-space-shell > .my-space-record-card {
    grid-column: span 4;
}

.my-desktop-space-shell .my-space-profile-copy strong {
    font-size: 32px;
}

.my-desktop-space-shell .my-space-card {
    align-self: start;
}

.my-desktop-space-tabbar {
    right: auto;
    left: 50%;
    width: min(760px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    border-radius: 26px 26px 0 0;
    transform: translateX(-50%) translateZ(0);
}

.my-mobile-space-page {
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
}

.my-mobile-space-shell {
    display: block;
    width: 100%;
    padding: 14px 12px calc(110px + env(safe-area-inset-bottom));
}

.my-mobile-space-shell > .my-space-card {
    margin-top: 14px;
}

.my-mobile-space-hero {
    margin: -14px -12px 0;
    padding: max(20px, env(safe-area-inset-top)) 20px 22px;
    border-radius: 0 0 28px 28px;
}

.my-mobile-space-tabbar {
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1002;
    display: grid !important;
    width: 100vw;
    max-width: 100vw;
    min-height: calc(66px + env(safe-area-inset-bottom));
    margin: 0;
    padding: 7px max(8px, env(safe-area-inset-left)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    border-radius: 20px 20px 0 0;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateZ(0);
}

.my-mobile-space-tabbar a {
    min-width: 0;
    padding: 7px 2px;
    font-size: 11px;
    line-height: 1.1;
}

.my-mobile-space-tabbar i {
    font-size: 17px;
}

@media (max-width: 960px) {
    .my-desktop-space-shell {
        grid-template-columns: 1fr;
        width: min(100%, 720px);
        padding: 18px 16px calc(122px + env(safe-area-inset-bottom));
    }

    .my-desktop-space-shell > .my-space-hero,
    .my-desktop-space-shell > .my-space-card {
        grid-column: 1;
    }

    .my-desktop-space-tabbar {
        width: min(640px, calc(100vw - 28px));
        max-width: calc(100vw - 28px);
    }
}

@media (max-width: 640px) {
    .my-desktop-space-shell {
        padding: 14px 12px calc(118px + env(safe-area-inset-bottom));
    }

    .my-desktop-space-shell > .my-space-hero {
        margin: -14px -12px 0;
        padding: max(20px, env(safe-area-inset-top)) 20px 22px;
        border-radius: 0 0 28px 28px;
    }

    .my-desktop-space-tabbar {
        right: 0;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        transform: translateZ(0);
    }
}

.my-desktop-portal-body {
    --cy-title-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --my-market-ink: #263028;
    --my-market-muted: #748077;
    --my-market-line: #e7deca;
    --my-market-paper: #fffaf0;
    --my-market-card: #fffdf7;
    --my-market-sand: #f5ead2;
    --my-market-yellow: #ffd84d;
    --my-market-orange: #f49a2f;
    --my-market-green: #1f6f5b;
    --my-market-green-dark: #173d34;
    --my-market-red: #d94b40;
    --my-market-shadow: 0 24px 70px rgba(77, 55, 24, 0.13);
    --my-market-soft-shadow: 0 12px 34px rgba(77, 55, 24, 0.1);
    margin: 0;
    background:
        radial-gradient(circle at 11% 13%, rgba(255, 216, 77, 0.28), transparent 30%),
        radial-gradient(circle at 84% 2%, rgba(31, 111, 91, 0.18), transparent 28%),
        linear-gradient(180deg, #fff4d5 0%, #f7ead0 42%, #f3eadc 100%);
    color: var(--my-market-ink);
    font: 14px/1.7 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.my-desktop-portal-body *,
.my-desktop-portal-body *::before,
.my-desktop-portal-body *::after {
    box-sizing: border-box;
}

.my-desktop-portal-body a {
    color: inherit;
    text-decoration: none;
}

.my-desktop-portal-body img {
    display: block;
    max-width: 100%;
}

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

.my-desktop-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(79, 58, 28, 0.1);
    background: rgba(255, 250, 240, 0.86);
    box-shadow: 0 12px 38px rgba(70, 52, 24, 0.08);
    backdrop-filter: blur(18px);
}

.my-desktop-site-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    height: 70px;
    margin: 0 auto;
    padding: 0 20px;
}

.my-desktop-site-brand,
.my-desktop-site-user,
.my-desktop-site-user-link,
.my-desktop-site-nav a {
    display: inline-flex;
    align-items: center;
}

.my-desktop-site-brand {
    gap: 12px;
    min-width: 210px;
    color: var(--my-market-green-dark);
}

.my-desktop-site-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--my-market-green-dark);
    color: var(--my-market-yellow);
    font-size: 19px;
    box-shadow: 0 12px 26px rgba(18, 72, 59, 0.22);
}

.my-desktop-site-brand span:last-child {
    display: grid;
    gap: 1px;
}

.my-desktop-site-brand strong {
    color: var(--my-market-green-dark);
    font-family: var(--cy-title-font);
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.my-desktop-site-brand em {
    color: #8a7452;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.2;
}

.my-desktop-site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.my-desktop-site-nav a {
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    color: #695b42;
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.my-desktop-site-nav a:hover {
    background: rgba(255, 216, 77, 0.38);
    color: var(--my-market-green-dark);
    transform: translateY(-1px);
}

.my-desktop-site-nav a.is-active {
    background: var(--my-market-green-dark);
    color: #fff5d0;
}

.my-desktop-site-user {
    justify-content: flex-end;
    gap: 8px;
    min-width: 168px;
}

.my-desktop-site-user-link {
    gap: 8px;
    max-width: 178px;
    min-height: 40px;
    padding: 4px 10px 4px 5px;
    border: 1px solid rgba(110, 84, 42, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: #3f382b;
    font-weight: 900;
}

.my-desktop-site-user-link:hover,
.my-desktop-site-user-link.is-active {
    background: var(--my-market-green-dark);
    color: #fff5d0;
}

.my-desktop-site-user-link.is-active {
    box-shadow: 0 12px 26px rgba(18, 72, 59, 0.14);
}

.my-desktop-site-avatar {
    display: inline-flex;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 50%;
    background: #f1dfbd;
    flex: 0 0 auto;
}

.my-desktop-site-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-desktop-site-user-link > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-desktop-site-footer {
    padding: 28px 20px 38px;
    background: #f3eadc;
    color: #8b7b61;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.my-desktop-home {
    padding: 30px 0 64px;
    background:
        radial-gradient(circle at 11% 13%, rgba(255, 216, 77, 0.28), transparent 30%),
        radial-gradient(circle at 84% 2%, rgba(31, 111, 91, 0.18), transparent 28%),
        linear-gradient(180deg, #fff4d5 0%, #f7ead0 42%, #f3eadc 100%);
}

.my-desktop-home-container {
    display: grid;
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.my-desktop-page-title,
.my-desktop-card {
    border: 1px solid rgba(110, 84, 42, 0.12);
    box-shadow: var(--my-market-soft-shadow);
}

.my-desktop-page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 142px;
    padding: 28px 32px;
    border-radius: 32px;
    background:
        linear-gradient(115deg, rgba(255, 250, 240, 0.94), rgba(255, 241, 193, 0.92)),
        radial-gradient(circle at 80% 18%, rgba(255, 216, 77, 0.55), transparent 30%);
    box-shadow: var(--my-market-shadow);
}

.my-desktop-page-title p,
.my-desktop-profile-copy p {
    margin: 0 0 7px;
    color: var(--my-market-green);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.my-desktop-page-title h1,
.my-desktop-profile-copy h1,
.my-desktop-card-head h2 {
    margin: 0;
    color: var(--my-market-ink);
    font-family: var(--cy-title-font);
    line-height: 1.18;
}

.my-desktop-page-title h1 {
    color: #193a31;
    font-size: 38px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.my-desktop-page-title > div:first-child > span,
.my-desktop-profile-copy > span,
.my-desktop-profile-copy span,
.my-desktop-muted {
    color: #665b48;
}

.my-desktop-page-title > div:first-child > span {
    display: block;
    margin-top: 10px;
    font-size: 15px;
}

.my-desktop-page-actions,
.my-desktop-pills,
.my-desktop-card-head,
.my-desktop-line-list a,
.my-desktop-message,
.my-desktop-empty-inline {
    display: flex;
    align-items: center;
}

.my-desktop-page-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.my-desktop-page-actions a,
.my-desktop-card-head > a,
.my-desktop-empty-inline a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: #fffaf0;
    color: var(--my-market-green-dark);
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.my-desktop-page-actions a.is-primary {
    background: var(--my-market-yellow);
    color: #2e2914;
    box-shadow: 0 12px 26px rgba(210, 142, 22, 0.22);
}

.my-desktop-home-container > .my-nav-tabs {
    padding: 10px;
    border: 1px solid rgba(110, 84, 42, 0.12);
    border-radius: 24px;
    background: rgba(255, 253, 247, 0.88);
    box-shadow: var(--my-market-soft-shadow);
}

.my-desktop-home-container > .my-nav-tabs .my-nav-tab {
    border-color: transparent;
    background: transparent;
    color: #695b42;
    font-weight: 850;
}

.my-desktop-home-container > .my-nav-tabs .my-nav-tab:hover {
    background: rgba(255, 216, 77, 0.38);
    color: var(--my-market-green-dark);
}

.my-desktop-home-container > .my-nav-tabs .my-nav-tab.active {
    background: var(--my-market-green-dark);
    color: #fff5d0;
}

.my-desktop-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 18px;
    align-items: start;
}

.my-desktop-profile-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    align-items: stretch;
    gap: 24px;
    min-height: 260px;
    padding: 30px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 4%, rgba(255, 216, 77, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(23, 61, 52, 0.96), rgba(18, 72, 59, 0.94));
    color: #fff7db;
    box-shadow: 0 26px 56px rgba(18, 72, 59, 0.24);
}

.my-desktop-profile-hero::after {
    content: "";
    position: absolute;
    right: -54px;
    bottom: -86px;
    width: 250px;
    height: 250px;
    border-radius: 56px;
    background: rgba(255, 216, 77, 0.14);
    transform: rotate(16deg);
}

.my-desktop-profile-hero > * {
    position: relative;
    z-index: 1;
}

.my-desktop-profile-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
}

.my-desktop-avatar {
    display: inline-flex;
    width: 112px;
    height: 112px;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    background: #f1dfbd;
    box-shadow: 0 18px 36px rgba(10, 34, 28, 0.22);
}

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

.my-desktop-profile-copy {
    min-width: 0;
}

.my-desktop-profile-copy p,
.my-desktop-profile-copy span {
    color: rgba(255, 247, 219, 0.78);
}

.my-desktop-profile-copy h1 {
    overflow: hidden;
    color: #fff8df;
    font-size: 34px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-desktop-profile-summary {
    display: grid;
    align-content: space-between;
    gap: 14px;
    min-width: 0;
}

.my-desktop-pills {
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.my-desktop-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 216, 77, 0.16);
    color: #fff7db;
    font-size: 13px;
}

.my-desktop-profile-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.my-desktop-profile-meta div {
    display: grid;
    gap: 5px;
    min-height: 74px;
    align-content: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.my-desktop-profile-meta span,
.my-desktop-profile-url em {
    color: rgba(255, 247, 219, 0.68);
    font-size: 12px;
    font-style: normal;
}

.my-desktop-profile-meta strong {
    overflow: hidden;
    color: #fff8df;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-desktop-profile-url {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(255, 216, 77, 0.14);
    color: #fff8df;
    text-decoration: none;
}

.my-desktop-profile-url span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-desktop-profile-completion {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(160px, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 247, 219, 0.18);
    border-radius: 18px;
    background: rgba(9, 42, 34, 0.22);
    color: #fff8df;
    text-decoration: none;
}

.my-desktop-profile-completion-label {
    display: grid;
    gap: 2px;
}

.my-desktop-profile-completion-label small {
    color: rgba(255, 247, 219, 0.7);
    font-size: 12px;
}

.my-desktop-profile-completion-label strong {
    color: #fff8df;
    font-size: 20px;
    line-height: 1;
}

.my-desktop-profile-completion-progress {
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 247, 219, 0.2);
}

.my-desktop-profile-completion-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #ffd84d;
}

.my-desktop-profile-completion-summary {
    overflow: hidden;
    color: rgba(255, 247, 219, 0.78);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-desktop-profile-completion-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff2b8;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.my-desktop-main-column,
.my-desktop-side-column,
.my-desktop-line-list,
.my-desktop-feed-list,
.my-desktop-mini-list {
    display: grid;
    gap: 14px;
}

.my-desktop-card {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 253, 247, 0.88);
}

.my-desktop-card-head {
    justify-content: space-between;
    gap: 14px;
}

.my-desktop-card-head span {
    color: var(--my-market-green);
    font-size: 13px;
    font-weight: 950;
}

.my-desktop-muted {
    margin: 0;
    line-height: 1.7;
}

.my-desktop-card-head > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.my-desktop-card-head h2 {
    overflow: hidden;
    font-size: 25px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-desktop-market-published {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 14px;
    border: 1px solid var(--my-market-line);
    border-radius: 18px;
    background: #fffef9;
    color: var(--my-market-ink);
    text-decoration: none;
}

.my-desktop-market-icon,
.my-space-market-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
}

.my-desktop-market-icon {
    background: #f4ead1;
    color: var(--my-market-green);
}

.my-desktop-market-icon i,
.my-space-market-icon i {
    font-size: 21px;
}

.my-desktop-market-copy,
.my-space-market-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.my-desktop-market-copy strong {
    color: var(--my-market-ink);
    font-size: 24px;
    line-height: 1;
}

.my-desktop-market-copy em {
    color: var(--my-market-muted);
    font-size: 13px;
    font-style: normal;
}

.my-desktop-market-published > i {
    color: var(--my-market-green);
}

.my-desktop-stat-grid,
.my-desktop-message-grid,
.my-desktop-record-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.my-desktop-stat-grid.is-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.my-desktop-class-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.my-desktop-message-grid,
.my-desktop-record-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.my-desktop-stat-grid a,
.my-desktop-message-grid a,
.my-desktop-record-grid a {
    display: grid;
    gap: 6px;
    min-height: 78px;
    align-content: center;
    border-radius: 18px;
    background: #fffaf0;
    color: var(--my-market-ink);
    text-align: center;
    text-decoration: none;
}

.my-desktop-stat-grid strong,
.my-desktop-message-grid strong,
.my-desktop-record-grid strong {
    color: var(--my-market-ink);
    font-size: 24px;
    line-height: 1;
}

.my-desktop-stat-grid span,
.my-desktop-message-grid span,
.my-desktop-record-grid span {
    color: #8b7f67;
    font-size: 12px;
}

.my-desktop-class-group strong {
    color: var(--my-market-green);
}

.my-space-class-group strong {
    color: #ff5a1f;
}

.my-desktop-class-group strong i,
.my-space-class-group strong i {
    font-size: 21px;
}

.my-desktop-line-list a,
.my-desktop-message,
.my-desktop-feed-item,
.my-desktop-mini-list a {
    border: 1px solid var(--my-market-line);
    border-radius: 18px;
    background: #fffef9;
    color: var(--my-market-ink);
    text-decoration: none;
}

.my-desktop-line-list a {
    gap: 12px;
    min-height: 50px;
    padding: 0 15px;
}

.my-desktop-line-list i,
.my-desktop-message i,
.my-desktop-empty-inline i {
    color: var(--my-market-green);
}

.my-desktop-message {
    gap: 13px;
    padding: 16px;
}

.my-desktop-message i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: #f4ead1;
    flex: 0 0 auto;
}

.my-desktop-message span,
.my-desktop-feed-item span,
.my-desktop-mini-list a {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.my-desktop-message strong,
.my-desktop-feed-item strong,
.my-desktop-mini-list strong {
    color: var(--my-market-ink);
    line-height: 1.45;
}

.my-desktop-message em,
.my-desktop-feed-item em,
.my-desktop-mini-list span {
    overflow: hidden;
    color: var(--my-market-muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.45;
    text-overflow: ellipsis;
}

.my-desktop-feed-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 13px;
}

.my-desktop-feed-item img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
}

.my-desktop-mini-list a {
    padding: 13px 14px;
}

.my-desktop-empty-inline {
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px;
    border: 1px dashed var(--my-market-line);
    border-radius: 20px;
    background: #fffaf0;
    color: var(--my-market-muted);
}

.my-desktop-empty-inline span {
    flex: 1 1 260px;
}

.my-desktop-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.my-desktop-settings-alert {
    margin: 0;
    border-color: rgba(55, 128, 78, 0.18);
    background: rgba(247, 255, 249, 0.94);
    color: var(--my-market-green-dark);
    box-shadow: var(--my-market-soft-shadow);
}

.my-desktop-settings-alert.is-error {
    border-color: rgba(217, 75, 64, 0.22);
    background: rgba(255, 248, 236, 0.96);
    color: var(--my-market-red);
}

.my-desktop-settings-profile-card {
    align-content: start;
}

.my-desktop-settings-profile-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 112px;
    padding: 18px;
    border: 1px solid var(--my-market-line);
    border-radius: 22px;
    background: #fffef9;
    color: var(--my-market-ink);
    text-decoration: none;
}

.my-desktop-settings-avatar {
    display: inline-flex;
    width: 78px;
    height: 78px;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 24px;
    background: #f1dfbd;
    box-shadow: 0 14px 24px rgba(70, 52, 24, 0.12);
}

.my-desktop-settings-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-desktop-settings-profile-row span:nth-child(2),
.my-desktop-settings-row span {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.my-desktop-settings-profile-row strong,
.my-desktop-settings-row strong {
    overflow: hidden;
    color: var(--my-market-ink);
    font-size: 18px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-desktop-settings-profile-row em,
.my-desktop-settings-row em {
    overflow: hidden;
    color: var(--my-market-muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-desktop-settings-profile-row > i {
    color: var(--my-market-green);
}

.my-desktop-settings-profile-card {
    align-content: start;
}

.my-desktop-settings-list {
    display: grid;
    gap: 12px;
}

.my-desktop-settings-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-height: 72px;
    width: 100%;
    padding: 13px;
    border: 1px solid var(--my-market-line);
    border-radius: 18px;
    background: #fffef9;
    color: var(--my-market-ink);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.my-desktop-settings-row:hover,
.my-desktop-settings-profile-row:hover {
    border-color: rgba(31, 111, 91, 0.24);
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(70, 52, 24, 0.12);
}

.my-desktop-settings-row > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: #f4ead1;
    color: var(--my-market-green);
    font-size: 17px;
}

.my-desktop-settings-row b {
    color: var(--my-market-green);
    font-size: 13px;
    font-weight: 800;
}

.my-desktop-profile-editor {
    gap: 18px;
}

.my-desktop-profile-editor-hint {
    align-self: center;
    color: var(--my-market-muted);
    font-size: 13px;
    font-style: normal;
}

.my-desktop-profile-editor-list {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--my-market-line);
    border-radius: 20px;
    background: #fffef9;
}

.my-desktop-profile-editor-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr);
    align-items: center;
    min-height: 76px;
    width: 100%;
    padding: 10px 18px;
    border: 0;
    border-bottom: 1px solid var(--my-market-line);
    background: transparent;
    color: var(--my-market-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.my-desktop-profile-editor-row:last-child {
    border-bottom: 0;
}

.my-desktop-profile-editor-row:hover,
.my-desktop-profile-editor-row:focus-visible {
    background: #fff8e8;
}

.my-desktop-profile-editor-row:focus-visible {
    outline: 3px solid rgba(31, 111, 91, 0.2);
    outline-offset: -3px;
}

.my-desktop-profile-editor-row.is-avatar {
    min-height: 106px;
}

.my-desktop-profile-editor-label {
    color: var(--my-market-ink);
    font-size: 15px;
    font-weight: 850;
}

.my-desktop-profile-editor-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
    color: var(--my-market-muted);
    text-align: right;
}

.my-desktop-profile-editor-value strong {
    min-width: 0;
    overflow: hidden;
    color: var(--my-market-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-desktop-profile-editor-value > i {
    flex: none;
    color: var(--my-market-green);
    font-size: 15px;
}

.my-desktop-profile-editor-avatar {
    display: inline-flex;
    width: 68px;
    height: 68px;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 20px;
    background: #f1dfbd;
    box-shadow: 0 8px 18px rgba(70, 52, 24, 0.12);
}

.my-desktop-profile-editor-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-desktop-profile-editor-security {
    display: grid;
    gap: 0;
    padding: 0 18px;
    border: 1px solid var(--my-market-line);
    border-radius: 20px;
    background: #fffef9;
}

.my-desktop-profile-editor-security-head {
    display: grid;
    gap: 4px;
    padding: 16px 0 12px;
}

.my-desktop-profile-editor-security-head span {
    color: var(--my-market-green);
    font-size: 13px;
    font-weight: 950;
}

.my-desktop-profile-editor-security-head strong {
    color: var(--my-market-ink);
    font-size: 16px;
}

.my-desktop-profile-editor-security-list {
    display: grid;
}

.my-desktop-profile-editor-security-list > a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    border-top: 1px solid var(--my-market-line);
    color: var(--my-market-muted);
    font-size: 14px;
    text-decoration: none;
}

.my-desktop-profile-editor-security-list > a > span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.my-desktop-profile-editor-security-list > a strong {
    color: var(--my-market-ink);
    font-size: 14px;
}

.my-desktop-profile-editor-security-list > a em {
    overflow: hidden;
    color: var(--my-market-muted);
    font-size: 13px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-desktop-profile-editor-security-list > a b {
    color: var(--my-market-green);
    font-size: 13px;
}

.my-desktop-profile-editor-security-list > a i {
    color: var(--my-market-green);
}

.my-desktop-profile-inline-status {
    margin-right: 0;
    margin-left: 0;
}

@media (max-width: 1120px) {
    .my-desktop-site-inner {
        flex-wrap: wrap;
        height: auto;
        min-height: 70px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .my-desktop-site-nav {
        order: 3;
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .my-desktop-site-nav::-webkit-scrollbar {
        display: none;
    }

    .my-desktop-profile-hero,
    .my-desktop-content-grid,
    .my-desktop-settings-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 760px) {
    .my-desktop-only-topbar {
        display: none;
    }

    .my-desktop-page-title,
    .my-desktop-profile-hero {
        align-items: flex-start;
        padding: 22px;
    }

    .my-desktop-page-actions {
        justify-content: flex-start;
    }

    .my-desktop-profile-meta,
    .my-desktop-stat-grid,
    .my-desktop-stat-grid.is-five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .my-desktop-profile-completion {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .my-desktop-profile-completion-summary {
        grid-column: 1 / -1;
        white-space: normal;
    }

    .my-desktop-profile-editor-security-list > a {
        justify-content: space-between;
    }

    .my-desktop-class-stats {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .my-desktop-class-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.my-phone-container,
.my-password-container {
    max-width: 1200px;
}

.my-phone-page-title {
    min-height: 126px;
}

.my-phone-panel {
    width: 100%;
    margin: 0 auto;
}

.my-phone-form {
    display: grid;
    gap: 14px;
}

.my-phone-current-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 70px;
    padding: 13px 15px;
    border: 1px solid #e9dec5;
    border-radius: 16px;
    background: #fffaf0;
}

.my-phone-current-card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: #f4ead1;
    color: var(--my-market-green);
    font-size: 17px;
}

.my-phone-current-card > span {
    display: grid;
    gap: 2px;
}

.my-phone-current-card em {
    color: var(--my-market-muted);
    font-size: 12px;
    font-style: normal;
}

.my-phone-current-card strong {
    color: var(--my-market-ink);
    font-size: 17px;
    line-height: 1.35;
}

.my-phone-field {
    display: grid;
    grid-template-columns: 82px auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 14px;
    border: 1px solid #e7deca;
    border-radius: 15px;
    background: #fffef9;
    color: var(--my-market-ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.my-phone-field:focus-within {
    border-color: rgba(31, 111, 91, 0.62);
    box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.12);
}

.my-phone-field > span {
    color: #4e594f;
    font-size: 14px;
    font-weight: 800;
}

.my-phone-field > i {
    color: var(--my-market-green);
    font-size: 15px;
}

.my-phone-field input {
    min-width: 0;
    height: 48px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--my-market-ink);
    font: inherit;
    font-size: 15px;
}

.my-phone-field input::placeholder {
    color: #a59a87;
}

.my-phone-code-field {
    grid-template-columns: 82px auto minmax(0, 1fr) auto;
}

.my-phone-code-button {
    min-width: 96px;
    min-height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: #f4ead1;
    color: var(--my-market-green-dark);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.my-phone-code-button:hover,
.my-phone-code-button:focus-visible {
    background: var(--my-market-green);
    color: #fff;
}

.my-phone-code-button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.my-phone-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 14px;
    background: var(--my-market-green);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.my-phone-submit:hover,
.my-phone-submit:focus-visible {
    background: var(--my-market-green-dark);
    transform: translateY(-1px);
}

.my-phone-submit:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.my-phone-skip {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: 100%;
    min-height: 42px;
    margin-right: auto;
    margin-left: auto;
    color: #627066;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.my-phone-skip:hover,
.my-phone-skip:focus-visible {
    color: var(--my-market-green-dark);
    text-decoration: underline;
}

.my-phone-app-page {
    min-height: 100dvh;
    padding: 0 16px max(28px, env(safe-area-inset-bottom));
    background: #f5f5f5;
}

.my-phone-app-topbar {
    min-height: 84px;
    margin: 0 -16px;
    padding-right: 16px;
    padding-left: 16px;
}

.my-phone-app-topbar .my-app-topbar-back {
    color: #202020;
    font-size: 36px;
}

.my-phone-app-card {
    margin: 0;
    border: 1px solid #ececec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20, 20, 20, 0.04);
}

.my-phone-app-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    padding: 0 18px;
    border-bottom: 1px solid #f0f0f0;
    color: #202020;
}

.my-phone-app-current span {
    color: #707070;
    font-size: 14px;
}

.my-phone-app-current strong {
    color: #303030;
    font-size: 15px;
    font-weight: 600;
}

.my-phone-app-form {
    gap: 0;
}

.my-phone-app-form .my-phone-field {
    grid-template-columns: 74px auto minmax(0, 1fr);
    min-height: 58px;
    padding: 0 18px;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.my-phone-app-form .my-phone-code-field {
    grid-template-columns: 74px auto minmax(0, 1fr) auto;
}

.my-phone-app-form .my-phone-field:focus-within {
    box-shadow: inset 3px 0 0 #1f6f5b;
}

.my-phone-app-form .my-phone-field > span {
    color: #252525;
    font-size: 16px;
    font-weight: 500;
}

.my-phone-app-form .my-phone-field > i {
    color: #878787;
    font-size: 14px;
}

.my-phone-app-form .my-phone-field input {
    height: 56px;
    font-size: 16px;
}

.my-phone-app-form .my-phone-code-button {
    min-width: 82px;
    min-height: 34px;
    border-radius: 8px;
    background: #e8f3ef;
    color: #1f6f5b;
    font-size: 12px;
}

.my-phone-app-form .my-phone-code-button:hover,
.my-phone-app-form .my-phone-code-button:focus-visible {
    background: #d3e9e0;
    color: #153c35;
}

.my-phone-app-form .my-phone-submit {
    width: calc(100% - 36px);
    min-height: 48px;
    margin: 22px 18px 24px;
    border-radius: 12px;
    background: #1f6f5b;
    font-size: 16px;
}

.my-phone-app-form .my-phone-skip {
    justify-self: center;
    width: calc(100% - 36px);
    min-height: 40px;
    margin: -14px auto 18px;
    color: #777;
    font-size: 14px;
}

@media (max-width: 640px) {
    .my-phone-app-page {
        padding-right: 0;
        padding-left: 0;
    }

    .my-phone-app-topbar {
        margin: 0;
    }

    .my-phone-app-card {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .my-phone-app-form .my-phone-field {
        padding-right: 16px;
        padding-left: 16px;
    }

    .my-phone-app-form .my-phone-submit {
        width: calc(100% - 32px);
        margin-right: 16px;
        margin-left: 16px;
    }
}

.my-password-page-title {
    min-height: 126px;
}

.my-password-panel {
    width: 100%;
    margin: 0 auto;
}

.my-username-settings-layout {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
}

.my-username-settings-layout .my-password-panel {
    max-width: 720px;
}

.my-password-form {
    display: grid;
    gap: 14px;
}

.my-password-form-row {
    display: grid;
    gap: 7px;
}

.my-password-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #e9dec5;
    border-radius: 15px;
    background: #fffaf0;
    color: var(--my-market-muted);
    font-size: 13px;
    line-height: 1.5;
}

.my-password-note i {
    color: var(--my-market-green);
    font-size: 16px;
}

.my-password-field {
    display: grid;
    grid-template-columns: 96px auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 14px;
    border: 1px solid #e7deca;
    border-radius: 15px;
    background: #fffef9;
    color: var(--my-market-ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.my-password-field:focus-within {
    border-color: rgba(31, 111, 91, 0.62);
    box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.12);
}

.my-password-form-row.is-error .my-password-field {
    border-color: rgba(202, 72, 60, 0.72);
    background: #fffaf7;
}

.my-password-form-row.is-error .my-password-field:focus-within {
    border-color: #ca483c;
    box-shadow: 0 0 0 3px rgba(202, 72, 60, 0.13);
}

.my-password-field > label {
    color: #4e594f;
    font-size: 14px;
    font-weight: 800;
}

.my-password-field > i {
    color: var(--my-market-green);
    font-size: 15px;
}

.my-password-field input {
    min-width: 0;
    height: 48px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--my-market-ink);
    font: inherit;
    font-size: 15px;
}

.my-password-visibility {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #7d877e;
    font: inherit;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.my-password-visibility:hover,
.my-password-visibility:focus-visible {
    background: #f4ead1;
    color: var(--my-market-green-dark);
    outline: 0;
}

.my-password-field-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    padding: 0 4px;
    color: #c43f35;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.my-password-field-error[hidden] {
    display: none;
}

.my-password-field-error > i {
    margin-top: 2px;
    font-size: 12px;
}

.my-password-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 14px;
    background: var(--my-market-green);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.my-password-submit:hover,
.my-password-submit:focus-visible {
    background: var(--my-market-green-dark);
    transform: translateY(-1px);
}

.my-password-submit:disabled,
.my-password-submit:disabled:hover,
.my-password-submit:disabled:focus-visible {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
}

.my-username-current {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 14px;
    border: 1px solid #e9dec5;
    border-radius: 15px;
    background: #fffaf0;
}

.my-username-current > span {
    color: #4e594f;
    font-size: 14px;
    font-weight: 800;
}

.my-username-current strong {
    min-width: 0;
    overflow: hidden;
    color: var(--my-market-ink);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-username-current em {
    color: var(--my-market-muted);
    font-size: 12px;
    font-style: normal;
}

.my-username-code-field {
    grid-template-columns: 96px auto minmax(0, 1fr) auto;
}

.my-username-code-field .my-phone-code-button {
    border: 0;
}

/* Keep the username security page quiet and focused without changing other my pages. */
.my-username-desktop-body {
    background: #f4f7f5;
}

.my-username-desktop-body .my-desktop-home {
    background: #f4f7f5;
}

.my-username-desktop-body .my-desktop-home-container {
    gap: 20px;
}

.my-username-desktop-body .my-desktop-card {
    border-color: #e1e9e4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(32, 57, 48, 0.06);
}

.my-username-desktop-body .my-password-note {
    min-height: 46px;
    padding: 10px 12px;
    border-color: #dcebe3;
    border-radius: 10px;
    background: #f5faf7;
    color: #64766d;
}

.my-username-desktop-body .my-username-current,
.my-username-desktop-body .my-password-field {
    border-color: #e1e9e4;
    border-radius: 12px;
    background: #fbfdfc;
}

.my-username-desktop-body .my-username-current {
    min-height: 52px;
}

.my-username-desktop-body .my-password-field:focus-within {
    background: #fff;
}

.my-password-app-page {
    min-height: 100dvh;
    padding: 0 16px max(28px, env(safe-area-inset-bottom));
    background: #f5f5f5;
}

.my-password-app-topbar {
    min-height: 84px;
    margin: 0 -16px;
    padding-right: 16px;
    padding-left: 16px;
}

.my-password-app-topbar .my-app-topbar-back {
    color: #202020;
    font-size: 36px;
}

.my-password-app-card {
    margin: 0;
    border: 1px solid #ececec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20, 20, 20, 0.04);
}

.my-password-app-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    min-height: 58px;
    padding: 0 18px;
    border-bottom: 1px solid #f0f0f0;
    color: #707070;
    font-size: 14px;
}

.my-password-app-note i {
    color: #1f6f5b;
}

.my-password-app-form {
    gap: 0;
}

.my-password-app-form .my-password-field {
    grid-template-columns: 88px auto minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 0 18px;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.my-password-app-form .my-password-field:focus-within {
    box-shadow: inset 3px 0 0 #1f6f5b;
}

.my-password-app-form .my-password-form-row.is-error .my-password-field,
.my-password-app-form .my-password-form-row.is-error .my-password-field:focus-within {
    border-color: #f0f0f0;
    box-shadow: inset 3px 0 0 #ca483c;
}

.my-password-app-form .my-password-field > label {
    color: #252525;
    font-size: 16px;
    font-weight: 500;
}

.my-password-app-form .my-password-field > i {
    color: #878787;
    font-size: 14px;
}

.my-password-app-form .my-password-field input {
    height: 56px;
    font-size: 16px;
}

.my-password-app-form .my-password-visibility {
    width: 38px;
    height: 38px;
    color: #878787;
}

.my-password-app-form .my-password-visibility:hover,
.my-password-app-form .my-password-visibility:focus-visible {
    background: #e8f3ef;
    color: #1f6f5b;
}

.my-password-app-form .my-password-field-error {
    padding: 0 18px 10px;
    background: #fff;
}

.my-password-app-form .my-password-submit {
    width: calc(100% - 36px);
    min-height: 48px;
    margin: 22px 18px 24px;
    border-radius: 12px;
    background: #1f6f5b;
    font-size: 16px;
}

.my-username-app-current {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 0 18px;
    border: 0;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    background: #fff;
}

.my-username-app-current > span {
    color: #252525;
    font-size: 16px;
    font-weight: 500;
}

.my-username-app-current em {
    color: #8a8a8a;
}

.my-password-app-form .my-username-code-field {
    grid-template-columns: 88px auto minmax(0, 1fr) auto;
}

@media (max-width: 640px) {
    .my-password-app-page {
        padding-right: 0;
        padding-left: 0;
    }

    .my-password-app-topbar {
        margin: 0;
    }

    .my-password-app-card {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .my-password-app-form .my-password-field {
        padding-right: 16px;
        padding-left: 16px;
    }

    .my-password-app-form .my-password-field-error {
        padding-right: 16px;
        padding-left: 16px;
    }

    .my-username-app-current {
        padding-right: 16px;
        padding-left: 16px;
    }

    .my-password-app-form .my-password-submit {
        width: calc(100% - 32px);
        margin-right: 16px;
        margin-left: 16px;
    }
}

/* Teacher invitation management. Raw invitation tokens are only displayed once. */
.my-teacher-invite-page .my-desktop-home-container {
    display: grid;
    gap: 16px;
}

.my-teacher-invite-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.my-teacher-invite-title h1 {
    margin: 0;
    color: #20352f;
    font-size: 21px;
}

.my-teacher-invite-create {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.my-teacher-invite-create select,
.my-teacher-invite-create button,
.my-teacher-invite-link-row input,
.my-teacher-invite-link-row button,
.my-teacher-invite-item form button {
    font: inherit;
}

.my-teacher-invite-create select {
    min-height: 38px;
    padding: 0 28px 0 11px;
    border: 1px solid #d7e5df;
    border-radius: 7px;
    outline: 0;
    color: #36534a;
    background: #fff;
    font-size: 13px;
}

.my-teacher-invite-create button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 13px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: #1f6f5b;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.my-teacher-invite-create button:hover,
.my-teacher-invite-create button:focus-visible {
    background: #175746;
}

.my-teacher-invite-created,
.my-teacher-invite-list {
    border: 1px solid #dce9e3;
    border-radius: 8px;
    background: #fff;
}

.my-teacher-invite-created {
    padding: 16px 18px;
}

.my-teacher-invite-created > div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #244d41;
    font-size: 14px;
}

.my-teacher-invite-created > div:first-child i {
    color: #1f8167;
}

.my-teacher-invite-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 8px;
    margin-top: 12px;
}

.my-teacher-invite-link-row input {
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #dfe9e4;
    border-radius: 6px;
    color: #4f625b;
    background: #f7faf8;
    font-size: 13px;
}

.my-teacher-invite-link-row button,
.my-teacher-invite-item form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.my-teacher-invite-link-row button {
    color: #1f6f5b;
    background: #e8f3ef;
    font-size: 14px;
}

.my-teacher-invite-created > p {
    min-height: 16px;
    margin: 8px 0 0;
    color: #34765f;
    font-size: 12px;
}

.my-teacher-invite-list {
    overflow: hidden;
}

.my-teacher-invite-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 11px 16px;
}

.my-teacher-invite-item + .my-teacher-invite-item {
    border-top: 1px solid #edf2ef;
}

.my-teacher-invite-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    color: #2f7b62;
    background: #e9f5ef;
    font-size: 12px;
    font-weight: 700;
}

.my-teacher-invite-state.is-used {
    color: #7a6450;
    background: #f4eee7;
}

.my-teacher-invite-state.is-inactive {
    color: #8a615b;
    background: #f7eeee;
}

.my-teacher-invite-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.my-teacher-invite-meta strong {
    overflow: hidden;
    color: #263d35;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-teacher-invite-meta span {
    color: #809087;
    font-size: 12px;
}

.my-teacher-invite-item form {
    margin: 0;
}

.my-teacher-invite-item form button {
    width: 32px;
    height: 32px;
    color: #ad5b52;
    background: #fff4f2;
}

.my-teacher-invite-item form button:hover,
.my-teacher-invite-item form button:focus-visible {
    color: #fff;
    background: #b8564c;
}

.my-teacher-invite-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 160px;
    color: #87938d;
    font-size: 14px;
}

.my-teacher-invite-empty i {
    color: #9bb9ad;
}

.my-teacher-invite-app-page {
    min-height: 100dvh;
    background: #f5f5f5;
}

.my-teacher-invite-app-page .my-app-shell {
    display: grid;
    gap: 12px;
}

.my-teacher-invite-create-app {
    justify-content: space-between;
    padding: 13px 16px;
    background: #fff;
}

.my-teacher-invite-create-app select {
    flex: 1 1 auto;
    max-width: 180px;
}

.my-teacher-invite-created-app,
.my-teacher-invite-list-app {
    margin-right: 16px;
    margin-left: 16px;
}

@media (max-width: 640px) {
    .my-teacher-invite-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .my-teacher-invite-item {
        padding-right: 13px;
        padding-left: 13px;
    }

    .my-teacher-invite-meta span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Teacher invitation workspace: follows the personal-center market palette. */
.my-teacher-invite-page .my-desktop-home-container {
    gap: 18px;
}

.my-teacher-invite-title {
    min-height: 150px;
    padding: 29px 32px;
}

.my-teacher-invite-title h1 {
    color: #193a31;
    font-family: var(--cy-title-font);
    font-size: 38px;
    font-weight: 950;
    letter-spacing: 0;
}

.my-teacher-invite-title > div > span {
    display: block;
    margin-top: 10px;
    color: #665b48;
    font-size: 15px;
}

.my-teacher-invite-workspace-card {
    gap: 0;
    overflow: hidden;
    padding: 0;
    border-radius: 24px;
}

.my-teacher-invite-workspace-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(110, 84, 42, .1);
}

.my-teacher-invite-create {
    display: grid;
    grid-template-columns: minmax(320px, 408px) auto;
    align-items: end;
    gap: 2px;
}

.my-teacher-invite-create label {
    display: block;
}

.my-teacher-invite-create select {
    width: 100%;
    min-height: 42px;
    padding: 0 32px 0 12px;
    border: 1px solid rgba(110, 84, 42, .16);
    border-radius: 10px;
    color: #3f382b;
    background: #fffaf0;
    font-size: 14px;
    font-weight: 800;
}

.my-teacher-invite-create select:focus {
    border-color: var(--my-market-green);
    box-shadow: 0 0 0 3px rgba(31, 111, 91, .12);
}

.my-teacher-invite-create button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    color: #2e2914;
    background: var(--my-market-yellow);
    box-shadow: 0 9px 20px rgba(210, 142, 22, .2);
    font-size: 14px;
    font-weight: 900;
}

.my-teacher-invite-create button:hover,
.my-teacher-invite-create button:focus-visible {
    color: #fff8d9;
    background: var(--my-market-green-dark);
}

.my-teacher-invite-create button:disabled {
    cursor: wait;
    opacity: .68;
}

.my-teacher-invite-created {
    margin: 0;
    padding: 18px 24px 16px;
    border: 0;
    border-top: 1px solid rgba(110, 84, 42, .11);
    border-radius: 0;
    background: linear-gradient(90deg, rgba(231, 246, 238, .94), rgba(255, 251, 239, .78));
}

.my-teacher-invite-created-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--my-market-green-dark);
    font-size: 14px;
}

.my-teacher-invite-created-heading i {
    color: var(--my-market-green);
}

.my-teacher-invite-link-row {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 9px;
    margin-top: 11px;
}

.my-teacher-invite-link-row input {
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(31, 111, 91, .17);
    border-radius: 10px;
    color: #425d51;
    background: rgba(255, 255, 255, .82);
    font-size: 13px;
}

.my-teacher-invite-link-row button {
    border-radius: 10px;
    color: #fff7d8;
    background: var(--my-market-green-dark);
    transition: transform .18s ease, background .18s ease;
}

.my-teacher-invite-link-row button:hover,
.my-teacher-invite-link-row button:focus-visible,
.my-teacher-invite-link-row button.is-copied {
    background: var(--my-market-green);
    transform: translateY(-1px);
}

.my-teacher-invite-created > p {
    min-height: 0;
    margin: 8px 0 0;
    color: #30735d;
    font-size: 12px;
    font-weight: 700;
}

.my-teacher-invite-list {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.my-teacher-invite-item {
    grid-template-columns: 36px minmax(0, 1fr) auto auto;
    gap: 12px;
    min-height: 74px;
    padding: 13px 24px;
}

.my-teacher-invite-item + .my-teacher-invite-item {
    border-top-color: rgba(110, 84, 42, .1);
}

.my-teacher-invite-state {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 12px;
    color: #317960;
    background: #e7f5ec;
    font-size: 14px;
}

.my-teacher-invite-state.is-used {
    color: #9a7134;
    background: #fff2d2;
}

.my-teacher-invite-state.is-inactive {
    color: #a15d56;
    background: #fbeceb;
}

.my-teacher-invite-meta {
    gap: 5px;
}

.my-teacher-invite-meta strong {
    color: #2d3b31;
    font-size: 14px;
}

.my-teacher-invite-meta span {
    color: #8a7b62;
    font-size: 12px;
}

.my-teacher-invite-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    color: #28745b;
    background: #e8f5ed;
    font-size: 12px;
    font-weight: 850;
}

.my-teacher-invite-status.is-used {
    color: #8c682f;
    background: #fff1d2;
}

.my-teacher-invite-status.is-inactive {
    color: #9b5e58;
    background: #fcebea;
}

.my-teacher-invite-item form button {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(217, 75, 64, .16);
    border-radius: 10px;
    color: #b04e45;
    background: #fff7f5;
}

.my-teacher-invite-item.has-copy {
    align-items: start;
}

.my-teacher-invite-item.has-copy .my-teacher-invite-state,
.my-teacher-invite-item.has-copy .my-teacher-invite-status,
.my-teacher-invite-item.has-copy form {
    margin-top: 5px;
}

.my-teacher-invite-list-link {
    width: min(560px, 100%);
    margin-top: 3px;
}

.my-teacher-invite-list-link input {
    font-size: 12px;
}

.my-teacher-invite-empty {
    min-height: 150px;
    color: #9a8a70;
}

.my-teacher-invite-empty i {
    color: #d6b86d;
}

.my-teacher-invite-app-page {
    min-height: 100dvh;
    padding: 0 0 max(28px, env(safe-area-inset-bottom));
    background: #f5f1e8;
}

.my-teacher-invite-app-page .my-app-shell {
    gap: 12px;
}

.my-teacher-invite-app-page .my-app-topbar {
    background: rgba(255, 253, 247, .94);
}

.my-teacher-invite-workspace-card-app {
    margin: 0 12px;
    overflow: hidden;
    border: 1px solid rgba(110, 84, 42, .13);
    border-radius: 14px;
    background: #fffdf7;
    box-shadow: 0 8px 22px rgba(77, 55, 24, .06);
}

.my-teacher-invite-workspace-toolbar-app {
    min-height: 0;
    padding: 14px 16px;
}

.my-teacher-invite-workspace-toolbar-app .my-teacher-invite-create {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
}

.my-teacher-invite-title-app {
    min-height: 0;
    margin: 0 12px;
    padding: 18px;
    border-radius: 16px;
}

.my-teacher-invite-title-app h1 {
    font-size: 24px;
}

.my-teacher-invite-title-app > div > span {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.65;
}

.my-teacher-invite-list-app {
    margin: 0;
}

.my-teacher-invite-workspace-card-app .my-teacher-invite-item {
    padding: 12px 14px;
}

.my-teacher-invite-workspace-card-app .my-teacher-invite-item.has-copy {
    grid-template-areas:
        "state meta status revoke"
        ". link link link";
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    align-items: start;
    row-gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.my-teacher-invite-workspace-card-app .my-teacher-invite-item.has-copy .my-teacher-invite-state {
    grid-area: state;
}

.my-teacher-invite-workspace-card-app .my-teacher-invite-item.has-copy .my-teacher-invite-meta {
    grid-area: meta;
}

.my-teacher-invite-workspace-card-app .my-teacher-invite-item.has-copy .my-teacher-invite-status {
    grid-area: status;
}

.my-teacher-invite-workspace-card-app .my-teacher-invite-item.has-copy form {
    grid-area: revoke;
}

.my-teacher-invite-workspace-card-app .my-teacher-invite-item.has-copy .my-teacher-invite-list-link {
    grid-area: link;
    width: 100%;
    margin: 0;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 8px;
}

.my-teacher-invite-workspace-card-app .my-teacher-invite-item.has-copy .my-teacher-invite-list-link input {
    height: 44px;
    padding: 0 12px;
    font-size: 12px;
}

.my-teacher-invite-workspace-card-app .my-teacher-invite-item.has-copy .my-teacher-invite-list-link button {
    min-height: 44px;
    gap: 6px;
    padding: 0 10px;
    color: #fff8dc;
    background: var(--my-market-green-dark);
    font-size: 12px;
    font-weight: 850;
}

@media (max-width: 640px) {
    .my-teacher-invite-title:not(.my-teacher-invite-title-app) {
        min-height: 0;
    }

    .my-teacher-invite-workspace-toolbar-app {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .my-teacher-invite-item {
        grid-template-columns: 34px minmax(0, 1fr) auto auto;
        gap: 8px;
        min-height: 68px;
    }

    .my-teacher-invite-state {
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        border-radius: 10px;
    }

    .my-teacher-invite-item form button {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .my-teacher-invite-list-link {
        margin-top: 5px;
    }

}

@media (max-width: 380px) {
    .my-teacher-invite-status {
        display: none;
    }
}

/* The settings pages use a stable left rail so each group remains easy to scan. */
.my-settings-tab-card {
    display: block;
    overflow: hidden;
    padding: 0;
    border-radius: 24px;
    background: rgba(255, 253, 247, 0.94);
}

.my-settings-tab-layout {
    display: grid;
    grid-template-columns: 216px minmax(0, 1fr);
    min-width: 0;
}

.my-settings-tab-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 20px 14px;
    border-right: 1px solid var(--my-market-line);
    background: rgba(255, 250, 240, 0.72);
}

.my-settings-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--my-market-muted);
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.my-settings-tab > i:first-child,
.my-settings-tab-section-link > i:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    color: var(--my-market-green);
    font-size: 14px;
}

.my-settings-tab:hover,
.my-settings-tab:focus-visible {
    border-color: rgba(31, 111, 91, 0.14);
    background: #fff8e8;
    color: var(--my-market-green-dark);
    outline: none;
}

.my-settings-tab.is-active {
    border-color: rgba(31, 111, 91, 0.14);
    background: var(--my-market-green-dark);
    color: #fff7db;
    box-shadow: 0 8px 16px rgba(18, 72, 59, 0.12);
}

.my-settings-tab.is-active > i:first-child {
    color: #ffd84d;
}

.my-settings-tab-section-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    margin-top: auto;
    padding: 0 12px;
    border-top: 1px solid var(--my-market-line);
    color: var(--my-market-green-dark);
    font-weight: 850;
    text-decoration: none;
}

.my-settings-tab-section-link > span {
    min-width: 0;
    flex: 1 1 auto;
}

.my-settings-tab-section-link > i:last-child {
    color: var(--my-market-muted);
    font-size: 13px;
}

.my-settings-tab-section-link:hover,
.my-settings-tab-section-link:focus-visible {
    color: var(--my-market-green);
    outline: none;
}

.my-settings-tab-section-link--danger,
.my-settings-tab-section-link--danger:hover,
.my-settings-tab-section-link--danger:focus-visible {
    color: #dc2626;
}

.my-settings-tab-section-link--danger > i:last-child {
    color: #dc2626;
}

.my-settings-tab-panels {
    min-width: 0;
    padding: 28px;
}

.my-settings-tab-panel[hidden] {
    display: none;
}

.my-settings-tab-panel {
    display: grid;
    align-content: start;
    gap: 28px;
    min-height: 280px;
}

.my-settings-tab-panel-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0;
}

.my-settings-tab-panel-heading h2,
.my-settings-tab-panel-heading > div > span {
    margin: 0;
}

.my-settings-tab-panel-heading h2 {
    margin-top: 0;
    color: var(--my-market-ink);
    font-family: var(--cy-title-font);
    font-size: 26px;
    font-weight: 950;
    line-height: 1.25;
}

.my-settings-tab-panel-heading > div > span {
    display: block;
    margin-top: 5px;
    color: var(--my-market-muted);
    font-size: 14px;
    line-height: 1.55;
}

.my-settings-tab-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    min-height: 94px;
    padding: 18px;
    border: 1px solid var(--my-market-line);
    border-radius: 18px;
    background: #fffef9;
}

.my-settings-tab-preview > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

.my-settings-tab-preview > div > span {
    color: var(--my-market-muted);
    font-size: 13px;
}

.my-settings-tab-preview strong {
    min-width: 0;
    overflow: hidden;
    color: var(--my-market-ink);
    font-size: 17px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-settings-tab-preview.is-avatar {
    min-height: 118px;
}

.my-settings-tab-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 20px;
    background: #f1dfbd;
    box-shadow: 0 8px 18px rgba(70, 52, 24, 0.12);
}

.my-settings-tab-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-settings-tab-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid rgba(31, 111, 91, 0.15);
    border-radius: 999px;
    background: #f4ead1;
    color: var(--my-market-green-dark);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.my-settings-tab-action:hover,
.my-settings-tab-action:focus-visible {
    background: var(--my-market-green);
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}

.my-settings-security-tab-card .my-settings-tab-panel {
    min-height: 240px;
}

@media (max-width: 760px) {
    .my-desktop-home-container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .my-settings-tab-layout {
        grid-template-columns: 156px minmax(0, 1fr);
    }

    .my-settings-tab-panels {
        padding: 22px;
    }
}

@media (max-width: 640px) {
    .my-settings-app-page {
        min-height: 100vh;
        padding-bottom: max(28px, env(safe-area-inset-bottom));
        background: #f6f8f6;
    }

    .my-settings-app-page .my-app-topbar {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        min-height: 64px;
        padding: max(8px, env(safe-area-inset-top)) 16px 8px;
        background: transparent;
    }

    .my-settings-app-page .my-app-topbar h1 {
        color: var(--my-market-ink);
        font-size: 18px;
        font-weight: 850;
    }

    .my-settings-app-page .my-app-topbar-back,
    .my-settings-app-page .my-app-topbar-spacer {
        width: 36px;
        height: 36px;
    }

    .my-settings-app-page .my-app-topbar-back {
        font-size: 32px;
    }

    .my-settings-app-page .my-settings-tab-card {
        margin: 4px 16px 0;
        border: 1px solid #e9eeea;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(29, 55, 42, 0.05);
    }

    .my-settings-app-page .my-settings-tab-layout {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .my-settings-app-page .my-settings-tab-list {
        gap: 2px;
        padding: 10px 6px 12px;
        border-right-color: #e8eeea;
        background: #f8faf8;
    }

    .my-settings-app-page .my-settings-tab {
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        min-height: 52px;
        padding: 6px 3px;
        border-radius: 10px;
        font-size: 11px;
        line-height: 1.2;
        text-align: center;
    }

    .my-settings-app-page .my-settings-tab > i:first-child,
    .my-settings-app-page .my-settings-tab-section-link > i:first-child {
        width: auto;
        font-size: 16px;
    }

    .my-settings-app-page .my-settings-tab.is-active {
        border-color: transparent;
        box-shadow: 0 6px 14px rgba(18, 72, 59, 0.14);
    }

    .my-settings-app-page .my-settings-tab-section-link {
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        min-height: 58px;
        margin-top: 6px;
        padding: 7px 2px 0;
        font-size: 10px;
        line-height: 1.2;
        text-align: center;
    }

    .my-settings-app-page .my-settings-tab-section-link > i:last-child {
        display: none;
    }

    .my-settings-app-page .my-settings-tab-panels {
        padding: 18px 15px 20px;
    }

    .my-settings-app-page .my-settings-tab-panel {
        gap: 18px;
        min-height: 0;
    }

    .my-settings-app-page .my-settings-tab-panel-heading h2 {
        font-size: 19px;
        line-height: 1.3;
    }

    .my-settings-app-page .my-settings-tab-panel-heading > div > span {
        margin-top: 4px;
        font-size: 12px;
        line-height: 1.5;
    }

    .my-settings-app-page .my-settings-tab-preview,
    .my-settings-app-page .my-settings-tab-preview.is-avatar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        min-height: 0;
        padding: 15px;
        border-color: #e5ebe6;
        border-radius: 14px;
        background: #fcfdfc;
        gap: 15px;
    }

    .my-settings-app-page .my-settings-tab-preview > div {
        min-width: 0;
    }

    .my-settings-app-page .my-settings-tab-preview.is-avatar {
        grid-template-columns: 64px minmax(0, 1fr);
        align-items: center;
    }

    .my-settings-app-page .my-settings-tab-avatar {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

    .my-settings-app-page .my-settings-tab-preview.is-avatar > div {
        grid-column: 2;
        min-width: 0;
    }

    .my-settings-app-page .my-settings-tab-preview strong {
        font-size: 15px;
    }

    .my-settings-app-page .my-settings-tab-action {
        width: 100%;
        max-width: 100%;
        min-height: 42px;
        box-sizing: border-box;
        border-color: transparent;
        border-radius: 12px;
        background: var(--my-market-green-dark);
        color: #fff;
        font-size: 13px;
    }

    .my-settings-app-page .my-settings-tab-preview.is-avatar .my-settings-tab-action {
        grid-column: 1 / -1;
        width: 100%;
        margin-left: 0;
    }

    .my-settings-app-page .my-settings-tab-action:hover,
    .my-settings-app-page .my-settings-tab-action:focus-visible {
        background: var(--my-market-green);
        color: #fff;
    }

    .my-settings-app-page .my-gender-modal {
        align-items: flex-end;
        padding: 0 16px max(16px, env(safe-area-inset-bottom));
        background: rgba(21, 31, 27, 0.48);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }

    .my-settings-app-page .my-gender-dialog {
        display: grid;
        width: 100%;
        max-width: 420px;
        padding: 18px;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 18px 42px rgba(17, 42, 31, 0.22);
        gap: 14px;
        animation: my-settings-gender-sheet-enter 0.2s ease-out;
    }

    .my-settings-app-page .my-gender-dialog h2 {
        margin: 0;
        color: var(--my-market-ink);
        font-size: 17px;
        font-weight: 850;
        line-height: 1.3;
        text-align: center;
    }

    .my-settings-app-page .my-gender-option-list {
        display: grid;
        overflow: hidden;
        border: 1px solid #e6ece7;
        border-radius: 12px;
    }

    .my-settings-app-page .my-gender-option {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 52px;
        padding: 0 14px;
        box-sizing: border-box;
        border: 0;
        border-bottom: 1px solid #edf1ee;
        border-radius: 0;
        background: #fff;
        color: var(--my-market-ink);
        font-size: 16px;
        text-align: left;
    }

    .my-settings-app-page .my-gender-option:last-child {
        border-bottom: 0;
    }

    .my-settings-app-page .my-gender-option > i {
        color: var(--my-market-green);
        font-size: 14px;
        opacity: 0;
        transition: opacity 0.16s ease;
    }

    .my-settings-app-page .my-gender-option.is-active {
        background: #f2f8f4;
        color: var(--my-market-green-dark);
        font-weight: 850;
    }

    .my-settings-app-page .my-gender-option.is-active > i {
        opacity: 1;
    }

    .my-settings-app-page .my-gender-cancel {
        width: 100%;
        min-height: 46px;
        margin-top: 0;
        box-sizing: border-box;
        border: 1px solid #e2e9e4;
        border-radius: 12px;
        background: #fff;
        color: var(--my-market-muted);
        font-size: 15px;
        font-weight: 750;
    }

    .my-settings-app-page .my-profile-status {
        min-height: 0;
        margin: -6px 0 0;
        color: var(--my-market-red);
        font-size: 12px;
    }

    @keyframes my-settings-gender-sheet-enter {
        from {
            opacity: 0;
            transform: translateY(14px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 360px) {
        .my-settings-app-page .my-settings-tab-card {
            margin-right: 10px;
            margin-left: 10px;
        }

        .my-settings-app-page .my-settings-tab-layout {
            grid-template-columns: 78px minmax(0, 1fr);
        }

        .my-settings-app-page .my-settings-tab-list {
            padding-right: 4px;
            padding-left: 4px;
        }

        .my-settings-app-page .my-settings-tab {
            font-size: 10px;
        }

        .my-settings-app-page .my-settings-tab-panels {
            padding-right: 12px;
            padding-left: 12px;
        }
    }
}

/* Invitation management reuses the account-settings rail without nesting cards. */
.my-invite-management-page .my-desktop-home-container {
    gap: 18px;
}

.my-invite-tab {
    text-decoration: none;
}

.my-invite-tab-panel {
    min-height: 400px;
}

.my-invite-tab-heading h1 {
    margin: 0;
    color: var(--my-market-ink);
    font-family: var(--cy-title-font);
    font-size: 30px;
    font-weight: 950;
    line-height: 1.25;
}

.my-invite-workspace {
    min-width: 0;
    border-top: 1px solid var(--my-market-line);
}

.my-invite-workspace .my-teacher-invite-workspace-toolbar {
    padding: 18px 0;
    border-bottom: 0;
}

.my-invite-workspace .my-teacher-invite-list {
    border-color: var(--my-market-line);
    border-radius: 16px;
    background: #fffef9;
}

@media (max-width: 640px) {
    .my-invite-app-page {
        min-height: 100vh;
        padding-bottom: max(28px, env(safe-area-inset-bottom));
        background: #f6f8f6;
    }

    .my-invite-app-page .my-settings-tab-card {
        margin: 4px 16px 0;
        border: 1px solid #e9eeea;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(29, 55, 42, 0.05);
    }

    .my-invite-app-page .my-settings-tab-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .my-invite-app-page .my-settings-tab-list {
        flex-direction: row;
        align-items: stretch;
        gap: 6px;
        padding: 8px;
        border-right: 0;
        border-bottom: 1px solid #e8eeea;
        background: #f8faf8;
    }

    .my-invite-app-page .my-settings-tab {
        flex: 1 1 0;
        flex-direction: row;
        justify-content: center;
        min-width: 0;
        gap: 8px;
        min-height: 44px;
        padding: 0 10px;
        border-radius: 10px;
        font-size: 13px;
        line-height: 1.3;
        text-align: center;
        white-space: nowrap;
    }

    .my-invite-app-page .my-settings-tab > i:first-child,
    .my-invite-app-page .my-settings-tab-section-link > i:first-child {
        width: auto;
        font-size: 16px;
    }

    .my-invite-app-page .my-settings-tab-section-link {
        display: none;
    }

    .my-invite-app-page .my-settings-tab-panels {
        padding: 18px 15px 20px;
    }

    .my-invite-app-page .my-invite-tab-panel {
        gap: 18px;
        min-height: 360px;
    }

    .my-invite-app-page .my-invite-tab-heading h1 {
        font-size: 19px;
        line-height: 1.3;
    }

    .my-invite-app-page .my-invite-tab-heading > div > span {
        margin-top: 4px;
        font-size: 12px;
        line-height: 1.5;
    }

    .my-invite-app-page .my-invite-workspace .my-teacher-invite-workspace-toolbar {
        padding: 14px 0;
    }

    .my-invite-app-page .my-teacher-invite-create {
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
    }

    .my-invite-app-page .my-teacher-invite-create label {
        position: relative;
        min-width: 0;
    }

    .my-invite-app-page .my-teacher-invite-create select {
        box-sizing: border-box;
        width: 100%;
        height: 48px;
        min-height: 48px;
        min-width: 0;
        padding: 0 40px 0 14px;
        border: 1px solid #e7dcc3;
        border-radius: 14px;
        outline: 0;
        color: #3f382b;
        background: #fffaf0;
        font-size: 16px !important;
        font-weight: 800;
        line-height: 46px;
        appearance: none;
        -webkit-appearance: none;
    }

    .my-invite-app-page .my-teacher-invite-create select:focus {
        border-color: var(--my-market-green);
        box-shadow: 0 0 0 3px rgba(31, 111, 91, .12);
    }

    .my-invite-app-page .my-teacher-invite-create label::after {
        position: absolute;
        top: 50%;
        right: 15px;
        color: #806f4c;
        content: "\f078";
        font-family: "Font Awesome 6 Free";
        font-size: 13px;
        font-weight: 900;
        pointer-events: none;
        transform: translateY(-50%);
    }

    .my-invite-app-page .my-teacher-invite-create button {
        box-sizing: border-box;
        height: 48px;
        min-height: 48px;
        line-height: 48px;
    }

    .my-invite-app-page .my-invite-workspace .my-teacher-invite-list {
        border-radius: 14px;
    }

    .my-invite-app-page .my-teacher-invite-item {
        grid-template-columns: 34px minmax(0, 1fr) auto auto;
        gap: 8px;
        padding: 14px;
    }

    .my-invite-app-page .my-teacher-invite-item.has-copy {
        grid-template-areas:
            "state meta status revoke"
            "link link link link";
        align-items: start;
        row-gap: 10px;
    }

    .my-invite-app-page .my-teacher-invite-item.has-copy .my-teacher-invite-state {
        grid-area: state;
    }

    .my-invite-app-page .my-teacher-invite-item.has-copy .my-teacher-invite-meta {
        grid-area: meta;
    }

    .my-invite-app-page .my-teacher-invite-item.has-copy .my-teacher-invite-status {
        grid-area: status;
    }

    .my-invite-app-page .my-teacher-invite-item.has-copy form {
        grid-area: revoke;
    }

    .my-invite-app-page .my-teacher-invite-item.has-copy .my-teacher-invite-list-link {
        grid-area: link;
        width: 100%;
        margin: 0;
        grid-template-columns: minmax(0, 1fr) 100px;
        gap: 8px;
    }

    .my-invite-app-page .my-teacher-invite-item.has-copy .my-teacher-invite-list-link input,
    .my-invite-app-page .my-teacher-invite-item.has-copy .my-teacher-invite-list-link button {
        min-height: 44px;
    }

    .my-invite-app-page .my-teacher-invite-item.has-copy .my-teacher-invite-list-link button {
        gap: 6px;
        padding: 0 10px;
        color: #fff8dc;
        background: var(--my-market-green-dark);
        font-size: 12px;
        font-weight: 850;
        white-space: nowrap;
    }
}
